Centos7我用systemctl启动了Tomcat却无法访问?
[Unit]
Description=tomcat:/opt/Tomcat/bin
After=network.target

[Service]
Type=forking
PidFile=/opt/Tomcat/tomcat.pid
ExecStart=/opt/Tomcat/bin/startup.sh
ExecStop=/opt/Tomcat/bin/shutdown.sh
PrivateTmp=true

[Install]
WantedBy=multi-user.target                                                                                                  
~                                                                                                      
"tomcat.service" 13L, 246C                                                           7,1          全部

以上是我tomcat.service文件的内容,我tomcat安装在/opt/Tomcat。
当我用./bin/startup.sh启动tomcat的时候,8080和8009端口都打开 且可以访问tomcat默认页面。 这里证明我的网络没有问题。我./shutdown.sh关闭后.用ss -plntu 确认端口关闭然后systemctl start tomcat.service启动也可以看到8080端口和8009在被监听但是我用浏览器就无法访问。Tomcat是9.0.14
网上搜了很多办法都是说是防火墙 或者网络 我ping的通且selinux firewalld都关了。
求解
我再贴几张图吧。第一次用csdn发帖 可能排版不好看
Tomcat启动正常图片
Tomcat用systemctl启动不正常图片

------------分割
控制台日志对比
左图是startup.sh正常可以访问的,右图是systemctl启动的 不能访问。

我QQ是2805096298有大佬方便的话加我QQ帮忙吧~

qq_40058321
cocosum 是不是防火墙开启了,端口号没有开放
5 天之前 回复
qq_33534050
qq_33534050 回复舍文: 对,VMware14
8 个月之前 回复
songwei1006
舍文 centos7是在虚拟机上安装的?
8 个月之前 回复

3个回答

2019年9月12日10:57:04更
解决方案:
一网友跟我说了有个帖子里方法可行,我看了下确实可以。
要在启动脚本里加入一条
Environment="JAVA_HOME=/home/jdk/jdk1.7.0_79"
来设置一下变量。
原贴:
https://www.cnblogs.com/taomylife/p/7992817.html?tdsourcetag=s_pcqq_aiomsg

看下catalina.out日志文件,是不是应用后台报错了。

qq_33534050
qq_33534050 我看了 的确有点不一样可是丝毫看不出问题所在。
8 个月之前 回复

建议查看宿主机和虚拟机的网络配置

qq_33534050
qq_33534050 网络真的没问题,我用自带的启动脚本就可以访问。我防火墙都关了 也ping的通。我用的是桥接,和主机在一个网段
8 个月之前 回复
Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
tomcat启动了 但网页无法访问
我暑假在家tomcat还用的好好的。一来学校tomcat启动了(没报错)但是访问http://localhost:8888/没有欢迎页面显示。rn什么问题。我换过别的端口什么8080,8888,8898,都一样启动没问题,可是访问不了欢迎页面,自己写jsp的页面也不行。html的都不行。我用MyEclipse里的tomcat也是一样。tomcat是6.0的。重新下了apache-tomcat-6.0.20.zip,解压开来运行rnhttp://localhost:8080/还是一样。是学校网络问题?还是其他什么问题?我还没分刚注册的。
tomcat启不动了
tomcat上所有的项目都删掉了 还是启不动 求解rnrnrn2014-3-10 21:10:40 org.apache.catalina.core.AprLifecycleListener initrn信息: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: E:\Installtool\jdk1.6\jre\bin;E:\Installtool\apache-tomcat-6.0.10\binrn2014-3-10 21:10:41 org.apache.coyote.http11.Http11Protocol initrn信息: Initializing Coyote HTTP/1.1 on http-8080rn2014-3-10 21:10:41 org.apache.catalina.startup.Catalina loadrn信息: Initialization processed in 953 msrn2014-3-10 21:10:41 org.apache.catalina.core.StandardService startrn信息: Starting service Catalinarn2014-3-10 21:10:41 org.apache.catalina.core.StandardEngine startrn信息: Starting Servlet Engine: Apache Tomcat/6.0.10rn2014-3-10 21:10:42 org.apache.catalina.core.ApplicationContext logrn信息: ContextListener: contextInitialized()rn2014-3-10 21:10:42 org.apache.catalina.core.ApplicationContext logrn信息: SessionListener: contextInitialized()rn2014-3-10 21:10:53 org.apache.catalina.core.ApplicationContext logrn信息: Initializing Spring root WebApplicationContextrn2014-03-10 21:10:53,900 INFO [org.springframework.web.context.ContextLoader] - rn2014-03-10 21:10:54,837 INFO [org.springframework.web.context.support.XmlWebApplicationContext] - rn2014-03-10 21:10:55,461 INFO [org.springframework.beans.factory.xml.XmlBeanDefinitionReader] - rn2014-03-10 21:10:59,881 INFO [org.springframework.beans.factory.support.DefaultListableBeanFactory] - rn2014-03-10 21:11:05,312 INFO [org.springframework.orm.hibernate3.LocalSessionFactoryBean] - rn2014-03-10 21:11:06,623 INFO [com.mchange.v2.log.MLog] - rn2014-03-10 21:11:06,875 INFO [com.mchange.v2.c3p0.C3P0Registry] - rn2014-03-10 21:11:07,156 INFO [com.mchange.v2.c3p0.PoolBackedDataSource] - com.mchange.v2.c3p0.WrapperConnectionPoolDataSource@57e40274 [ acquireIncrement -> 30, acquireRetryAttempts -> 30, acquireRetryDelay -> 1000, autoCommitOnClose -> false, automaticTestTable -> null, breakAfterAcquireFailure -> false, checkoutTimeout -> 0, connectionTesterClassName -> com.mchange.v2.c3p0.impl.DefaultConnectionTester, factoryClassLocation -> null, forceIgnoreUnresolvedTransactions -> false, identityToken -> 57e40274, idleConnectionTestPeriod -> 3000, initialPoolSize -> 5, maxIdleTime -> 300, maxPoolSize -> 100, maxStatements -> 50, maxStatementsPerConnection -> 0, minPoolSize -> 5, nestedDataSource -> com.mchange.v2.c3p0.DriverManagerDataSource@46b29c9d [ description -> null, driverClass -> null, factoryClassLocation -> null, identityToken -> 46b29c9d, jdbcUrl -> jdbc:oracle:thin:@170.101.100.2:1521/csmadb, properties -> user=******, password=****** ], preferredTestQuery -> null, propertyCycle -> 300, testConnectionOnCheckin -> false, testConnectionOnCheckout -> false, usesTraditionalReflectiveProxies -> false ], factoryClassLocation -> null, identityToken -> 5e35dc95, numHelperThreads -> 3 ]>
Tomcat不能启动了??
昨天一直都很好,今天开机后就不能启动了,重启机器仍然是这样,不知为什么,去哪能查到原因呢??求高手!!!Service Status显示Disabled
Tomcat服务已经启动了,但是浏览器却无法访问Tomcat的默认主页http://localhost:8080
安装的JDK为1.4,Tomcat为5.0.28。需要与IIS相连,但连单独装Tomcat都无法用浏览器访问默认主页,系统里并没有安装什么防火墙,JAVA_HOME、classpath环境变量都设置了,安装过程中没有任何异常提示,请问为什么?原操作系统是Win2K Server,IIS用作Web服务器,已经存在了公司的网站,但都是些静态页面,不会对Tomcat有什么骚扰呀!
CentOS7无法访问tomcat问题解决
1,有可能是防火墙问题打开8080端口 > firewall-cmd --permanent --remove-port=8080/tcp > firewall-cmd --reload 2,有可能是阿里云或者是腾讯云服务器的安全组规则在作祟
【求助】Tomcat不能启动了。
在WindowsNT下安装了Tomcat 4.1.21,启动没有问题。rn后来把Tomcat 4.1.21卸载装Tomcat 4.1.18就再也无法启动服务了。rn卸载Tomcat 4.1.18重装Tomcat 4.1.21也无法启动。rn已经走投无路了,救命!
tomcat启动了,还是无法访问webapps里面的项目
在linux里(ip是192.168.4.252),用 startup.sh 开启了tomcat,但是webapps目录下的 项目却无法访问。甚至,连自带的manager都无法访问。rnrn比如 在别的电脑输入192.168.4.252:8084,提示无法打开页面,但是却能ping通192.168.4.252.不知道是为什么。
关于腾讯云 tomcat项目启动了但外网无法访问的问题
一、先确定自己tomcat是否真的启动成功 ps -ef|grep tomcat  出现类似如下内容即为启动成功 二、设置安全组 开放对 tomcat所设置端口号 设置允许 我的端口号位 80   三、查看防火墙端口是否开启  firewall-cmd --query-port=80/tcp   出现红色字体提示即为防火墙未开启  开启防火墙 : systemctl sta...
tomcat启动了,却进入不了本地页面
我用的tomcat7.0 + eclipse for java ee rn浏览器访问http://localhost:8080就返回一个404错误rn而且我用MyEclipse启动tomcat就可以访问tomcat的页面rnrn求指导
springboot启动了,访问却报404错误
    发生这个情况,是因为公司项目要统一springboot版本,就把springboot从2.0.0改成1.5.12;然后就出现了这个问题。    以往遇到这个问题,都是因为没有扫描到包。但这次明明扫到包了,却还是报404;    后来发现,原来是1.x和2.x版本的服务项目名配置格式不一样,导致不生效。修改以后就可以访问了。SpringBoot版本配置1.xserver.context-pa...
我的myEclipse不能启动了
出现这个 重做系统还是这样rn[img=http://b216.photo.store.qq.com/psb?/0e43b45e-9990-4952-8ebd-8944bc9b36d6/h62n*7PWX4iHRSU6wp2MmZdDjnu5o84aR9Nos4YNEVA!/b/YfIyy4A6cgAAYvYlyIDAcQAA][/img]
我的QQ不能启动了。:(
不知道为什么,我的QQ不能再启动运行了。rn一运行就说:rn应用程序错误。rn"0x00421bbb"指令引用的"0x36503fae"内存。该内存不能为"written"。rn要终止程序,请单击“确定”。rn要调试程序,请单击“取消”。rnrn该怎么办?rn以前我也好像也碰到过,后来是重新安装操作系统才搞定了,这次我可不想啊。rn有好多资料要备份的说,会很累啊。rn有没有好的解决之道的说?rnrnrn期待中…………
我的win2000不能启动了
我的win2000启动时加载到桌布时就死机,硬盘灯一直亮着,不知为什么。我该怎么做?rnwin2000有没有类似win98的"msconfing.exe"rn
我不能启动了。帮忙!!!
启动时出现rnrnVFS:Cannot open root devicernKernel panic : VFS:Unable mount root fs on 03:10rnrn不能启动。怎么办?rn
我的LINUX不能启动了?
由于换电,我的LINUX(RED FLAG)重起后,在系统启动画面停止响应,但可以启动到安全模式!如何修复
我的WINDOWS不能启动了!!!!!!!!!!!!
我原有WIN98(在C:)和WIN2K(在D:),后来我 rnformat /q c:     //(不要问为什么):rn在C:重装了WIN98。rn启动时,2K没了,就扫来WIN2K的安装盘。rn手工修复:rnfixboot [enter]rnfixmbr [enter]rn重启,只有rnNTLDR is missingrnpress any key to rebootrn我想NTLDR是 NT LOADER 的意思,它是装在MBR里的,我就用win98的启动盘启动,rnfdisk /mbr [enter]rn但没有效果。rn大虾们帮忙啊!!!!rn
我的机器不能启动了!!!
我最近的电脑出了一个怪毛病,请各位大虾帮忙.电脑启动是出现UNKNOW FLASH TYPErn然后就停止不动.在BIOS里检测硬盘没问题.就是不能启动.这是怎么回事.
我的win2k不能启动了!!
我的在2000中安装了活动目录,可能是由于杀毒的原因,现在启动时总说启动目录服务失败,找不到系统文件,但可以用安全模式启动,请问大学如何删除活动目录服务,或有什么办法解决这个问题吗??
我的EXCHANGE 不能启动了
1.我打开EXCHANGE SYSTEM MANAGER弹出一个错误窗口:有一个命名冲突FACILITY:32。ID NO:8007203A。----无法打开 rn2.我打开AD,弹出一个错误菜单:找不到命令信息因为:有一个命名冲突,请与系统管理员联系,以 确认您的域名是否配置 正确而且处于联机状态。rnrnrn在上礼拜五我的服务器空间不够了,我做了一下压缩磁盘,完后,可以使用。今天早上就不能用了,另外域名解析可能是不正确,一直没有解决。rn
CentOS7 添加系统服务(systemctl)
1.目录/usr/lib/systemd/system2.添加文件(*.service),以Tomcat为例:[Unit]Description=testAfter=syslog.target network.target remote-fs.target nss-lookup.target[Service]Type=forkingPIDFile=/home/apache-tomcat/tomca...
linux下 tomcat启动了。但进程找不到
我在linux下启动tomcat了。正常显示。rn[root@localhost bin]# ./startup.shrnUsing CATALINA_BASE: /usr/local/tomcatrnUsing CATALINA_HOME: /usr/local/tomcatrnUsing CATALINA_TMPDIR: /usr/local/tomcat/temprnUsing JRE_HOME: /usr/jdk1.6.0_10/jrernrn就这么显示。具我所知这个是正常启动了。rn但我用ps -ef就没有tomcat进程。也打不开网站。www.网址.com:8080或者www.网址.com都打不开jsp。rn还有就是我以前tomcat和apache结合过。不过我apache没有开。
启动了Tomcat,但无法打开jsp页面
HTTP Status 404 - /test.jsprnrn--------------------------------------------------------------------------------rnrntype Status reportrnrnmessage /test.jsprnrndescription The requested resource (/test.jsp) is not available.rnrnrn--------------------------------------------------------------------------------rnrnApache Tomcat/5.5.23rn---------rnjsp页面是放在root目录下的
tomcat启动了,工程没有启动
今天在把一个myeclipse工程导入到eclipse里,按照网上的教程修改了.project文件等,但是启动tomcat的时候一闪就启动完成了,但是工程没有启动。启动的信息也很少。看了下编译的只有class文件,jsp相关的文件和目录都没有。rn[img=http://img.my.csdn.net/uploads/201301/15/1358263251_5845.jpg][/img]
systemctl的使用及配置(centos7)
一.设置开机自启动1.创建一个服务[root@MiWiFi-R3-srv ~]# vim /usr/lib/systemd/system/nexus.service2.填写相关内容 [Unit] Description=nexus[Service] Type=forking ExecStart=/usr/local/nexus/nexus-3.7.1-02/bin/nexus start ExecR
【Systemctl】Centos7系统监控
开机启动用户进程及进程监控,Centos6及更老版本皆是在/etc/inittab文件中实现的,从Centos7开始,Centos加入了系统服务机制,如查看防火墙状态: 用户如何把自己的进程加入系统服务,容我慢慢道来~ 1.进入/usr/lib/systemd/system,ls一下: 2.cat防火墙服务,看一下文件的格式是怎样的。 文件中各条语句的含义请转至: 英文:https://ww...
tomcat又不能正常启动了,求解决!
Server Tomcat v7.0 Server at localhost failed to start.新手求帮忙rnDec 01, 2013 2:19:40 PM org.apache.catalina.core.AprLifecycleListener initrnINFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: G:\Tools\JAVA\jdk\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;G:/Tools/JAVA/jdk/bin/../jre/bin/server;G:/Tools/JAVA/jdk/bin/../jre/bin;G:/Tools/JAVA/jdk/bin/../jre/lib/amd64;G:\Tools\Python\;G:\Tools\JAVA\jdk\bin;G:\Tools\JAVA\jdk\jre\bin;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;c:\Program Files (x86)\Lenovo\Lenovo Home\;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x86;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x64;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Program Files\ThinkPad\Bluetooth Software\;C:\Program Files\ThinkPad\Bluetooth Software\syswow64;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Microsoft\Web Platform Installer\;C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v1.0\;C:\Program Files (x86)\Windows Kits\8.0\Windows Performance Toolkit\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;G:\Tools\MATLAB\matlab\runtime\win64;G:\Tools\MATLAB\matlab\bin;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x86;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x64;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x86;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x64;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x86;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x64;G:\Tools\TortoiseSVN\bin;G:\Tools\nodejs\;G:\Tools\Lua\5.1;G:\Tools\Lua\5.1\clibs;c:\Program Files (x86)\Lenovo\Lenovo Home\DCMainWin.exe;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;G:\Tools\MySQL\MySQL Server 5.6\bin;C:\Users\Fenice\AppData\Roaming\npm;G:\Tools\nodejs;.;;.;;G:\Tools\Eclipse\eclipse-jee-kepler-R-win32-x86_64\eclipse;;.rnDec 01, 2013 2:19:40 PM org.apache.tomcat.util.digester.SetPropertiesRule beginrnWARNING: [SetPropertiesRule]Server/Service/Engine/Host/Context Setting property 'source' to 'org.eclipse.jst.jee.server:firstWeb' did not find a matching property.rnDec 01, 2013 2:19:40 PM org.apache.tomcat.util.digester.SetPropertiesRule beginrnWARNING: [SetPropertiesRule]Server/Service/Engine/Host/Context Setting property 'source' to 'org.eclipse.jst.jee.server:WebApp' did not find a matching property.rnDec 01, 2013 2:19:40 PM org.apache.tomcat.util.digester.SetPropertiesRule beginrnWARNING: [SetPropertiesRule]Server/Service/Engine/Host/Context Setting property 'source' to 'org.eclipse.jst.jee.server:CreditRisk' did not find a matching property.rnDec 01, 2013 2:19:40 PM org.apache.coyote.AbstractProtocol initrnINFO: Initializing ProtocolHandler ["http-bio-8080"]rnDec 01, 2013 2:19:40 PM org.apache.coyote.AbstractProtocol initrnINFO: Initializing ProtocolHandler ["ajp-bio-8009"]rnDec 01, 2013 2:19:40 PM org.apache.catalina.startup.Catalina loadrnINFO: Initialization processed in 748 msrnDec 01, 2013 2:19:40 PM org.apache.catalina.core.StandardService startInternalrnINFO: Starting service CatalinarnDec 01, 2013 2:19:40 PM org.apache.catalina.core.StandardEngine startInternalrnINFO: Starting Servlet Engine: Apache Tomcat/7.0.42rnDec 01, 2013 2:19:41 PM org.apache.catalina.core.ContainerBase startInternalrnSEVERE: A child container failed during startrnrnjava.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/CreditRisk]]rn at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:252)rn at java.util.concurrent.FutureTask.get(FutureTask.java:111)rn at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1123)rn at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:800)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)rn at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)rn at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)rn at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)rn at java.util.concurrent.FutureTask.run(FutureTask.java:166)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)rn at java.lang.Thread.run(Thread.java:724)rnCaused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/CreditRisk]]rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)rn ... 7 morernCaused by: java.lang.NoClassDefFoundError: org/jfree/data/category/CategoryDatasetrn at java.lang.Class.getDeclaredFields0(Native Method)rn at java.lang.Class.privateGetDeclaredFields(Class.java:2387)rn at java.lang.Class.getDeclaredFields(Class.java:1796)rn at org.apache.catalina.util.Introspection.getDeclaredFields(Introspection.java:106)rn at org.apache.catalina.startup.WebAnnotationSet.loadFieldsAnnotation(WebAnnotationSet.java:263)rn at org.apache.catalina.startup.WebAnnotationSet.loadApplicationServletAnnotations(WebAnnotationSet.java:142)rn at org.apache.catalina.startup.WebAnnotationSet.loadApplicationAnnotations(WebAnnotationSet.java:67)rn at org.apache.catalina.startup.ContextConfig.applicationAnnotationsConfig(ContextConfig.java:405)rn at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:881)rn at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:376)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)rn at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)rn at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5322)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)rn ... 7 morernCaused by: java.lang.ClassNotFoundException: org.jfree.data.category.CategoryDatasetrn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1714)rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1559)rn ... 21 morernrnDec 01, 2013 2:19:41 PM org.apache.catalina.core.ContainerBase startInternalrnSEVERE: A child container failed during startrnjava.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost]]rn at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:252)rn at java.util.concurrent.FutureTask.get(FutureTask.java:111)rn at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1123)rn at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:302)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)rn at org.apache.catalina.core.StandardService.startInternal(StandardService.java:443)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)rn at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:732)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:691)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)rn at java.lang.reflect.Method.invoke(Method.java:606)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:322)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:456)rnCaused by: org.apache.catalina.LifecycleException: Failed to start component
谁帮我看看,tomcat不能启动了
今天突然tomcat不能启动了,出错:rnCatalina.start: LifecycleException: Error creating server socket (java.net.BindrnException): java.net.BindException: Address already in use: JVM_BindrnLifecycleException: Error creating server socket (java.net.BindException): javrna.net.BindException: Address already in use: JVM_Bindrn at org.apache.catalina.connector.warp.WarpConnector.initialize(WarpConnernctor.java:491)rn at org.apache.catalina.core.StandardService.initialize(StandardService.jrnava:454)rn at org.apache.catalina.core.StandardServer.initialize(StandardServer.javrna:553)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:780)rn at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)rn at org.apache.catalina.startup.Catalina.process(Catalina.java:179)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.rnjava:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesrnsorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:324)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)rn----- Root Cause -----rnjava.net.BindException: Address already in use: JVM_Bindrn at java.net.PlainSocketImpl.socketBind(Native Method)rn at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:331)rn at java.net.ServerSocket.bind(ServerSocket.java:309)rn at java.net.ServerSocket.(ServerSocket.java:183)rn at java.net.ServerSocket.(ServerSocket.java:139)rn at org.apache.catalina.net.DefaultServerSocketFactory.createSocket(DefaurnltServerSocketFactory.java:118)rn at org.apache.catalina.connector.warp.WarpConnector.initialize(WarpConnernctor.java:485)rn at org.apache.catalina.core.StandardService.initialize(StandardService.jrnava:454)rn at org.apache.catalina.core.StandardServer.initialize(StandardServer.javrna:553)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:780)rn at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)rn at org.apache.catalina.startup.Catalina.process(Catalina.java:179)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.rnjava:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesrnsorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:324)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)rnrn我换了端口也不好用,版本是4。0,那位高手帮我看看是什么毛病,谢谢!
tomcat不能debug启动了(急)
请问这是什么错误?我的tomcat不能以debug方式运行.rnrn信息: Starting Coyote HTTP/1.1 on http-8080rn2009-3-9 9:09:09 org.apache.coyote.ajp.AjpAprProtocol startrn信息: Starting Coyote AJP/1.3 on ajp-8009rn2009-3-9 9:09:09 org.apache.catalina.startup.Catalina startrn信息: Server startup in 1754 msrnException in thread "http-8080-1" java.lang.NullPointerExceptionrn at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1495)rn at java.lang.Thread.run(Thread.java:619)
tomcat如何验证已经成功启动了?
[b]我用的startup.bat启动tomcat ,觉得启动成功了!但右下角又没有标志![/b]rnrn[img=https://img-bbs.csdn.net/upload/201609/21/1474444752_913076.jpg][/img]rnrnrnrnrn [b]但是验证时进入不了主页!!咋回事哦??[/b]rnrn[img=https://img-bbs.csdn.net/upload/201609/21/1474444659_938477.png][/img]rn rn
tomcat启动了但是打不开网页
我的tomcat是同学传给我的,试了两个版本,在他们电脑上都能用,只有我不行。问题:tomcat启动正常,但是打不开http://localhost:8080/ 显示的错误信息是:您正在查找的页当前不可用。 网站可能遇到支持问题,或者您需要 调整您的浏览器设置。 请各位帮帮忙
TOMCAT启动了,其它人为什么访问不了我的网站
在MYECLIPSE里部署好了tomcat并且启动了,rnhttp://169.254.95.20:8080/news/jsp/show.jsp rn这是网址,为什么开不了,还有什么没有做到吗,rn高手指点下
用myeclipse启动tomcat启动到一半不动了,急
2011-11-23 17:30:04 org.apache.catalina.core.AprLifecycleListener initrn信息: Loaded APR based Apache Tomcat Native library 1.1.20.rn2011-11-23 17:30:04 org.apache.catalina.core.AprLifecycleListener initrn信息: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].rn2011-11-23 17:30:05 org.apache.coyote.http11.Http11AprProtocol initrn信息: Initializing Coyote HTTP/1.1 on http-8088rn2011-11-23 17:30:05 org.apache.coyote.ajp.AjpAprProtocol initrn信息: Initializing Coyote AJP/1.3 on ajp-8009rn2011-11-23 17:30:05 org.apache.catalina.startup.Catalina loadrn信息: Initialization processed in 1502 msrn2011-11-23 17:30:05 org.apache.catalina.core.StandardService startrn信息: Starting service Catalinarn2011-11-23 17:30:05 org.apache.catalina.core.StandardEngine startrn信息: Starting Servlet Engine: Apache Tomcat/6.0.26rn2011-11-23 17:30:05 org.apache.catalina.startup.HostConfig deployDirectoryrn信息: Deploying web application directory ROOTrn2011-11-23 17:30:05 org.apache.catalina.startup.HostConfig deployDirectoryrn信息: Deploying web application directory xfjdrnlog4j:WARN No such property [datePattern] in org.apache.log4j.RollingFileAppender.rn2011-11-23 17:30:08 org.apache.catalina.core.ApplicationContext logrn信息: Set web app root system property: 'webapp.root' = [E:\xfjd\webapps\xfjd\]rn2011-11-23 17:30:08 org.apache.catalina.core.ApplicationContext logrn信息: Initializing log4j from [E:\xfjd\webapps\xfjd\WEB-INF\classes\log4j.properties]rnlog4j:WARN No such property [datePattern] in org.apache.log4j.RollingFileAppender.rn2011-11-23 17:30:08 org.apache.catalina.core.ApplicationContext logrn信息: Initializing Spring root WebApplicationContextrnrn就到这里不动了 ,怎么回事啊。。。
启动了tomcat,怎么.jsp文件会提示我下载?
1.tomcat4.1.27提示信息如下rnStarting service Tomcat-StandalonernApache Tomcat/4.1.27rnWebappClassLoader: validateJarFile(E:\web\ei\ei\WEB-INF\lib\servlet.jar) - jar nrnot loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Srnervlet.classrn[INFO] PropertyMessageResources - -Initializing, config='org.apache.struts.util.rnLocalStrings', returnNull=truern[INFO] PropertyMessageResources - -Initializing, config='org.apache.struts.actiornn.ActionResources', returnNull=truern[INFO] PropertyMessageResources - -Initializing, config='org.apache.webapp.adminrn.ApplicationResources', returnNull=truern[INFO] Http11Protocol - -Starting Coyote HTTP/1.1 on port 8080rn[INFO] ChannelSocket - -JK2: ajp13 listening on 0.0.0.0/0.0.0.0:8009rn[INFO] JkMain - -Jk running ID=0 time=0/90 config=E:\jakarta-tomcat\bin\..\confrn\jk2.propertiesrn2.我的jsp文件的内容,名称test.jsprnrnrn<%@ page language = "java"%>rnrn<%@ page contentType = "text/hmtl;charset=gb2312"%>rn JavaBean的Welcome页面rnrnrnrnJava Beans的Welcome页面rnrn rnrnrn<%rnif(request.getParameter("welstr")==null)rnrn //do nothingrnrnelsernrn String Tempwelstr = request.getParameter("welstr").toString();rn wel.setwelcomestring(Tempwelstr);rnrn //显示的当前的属性welcomestring 的值,也就是自定义的欢迎信息rn out.print("");rn out.print("Java Bean页面,"+wel.getwelcomestring()+" ");rn out.print("");rn out.print("");rn out.print("登陆时间是:"+wel.getUserTime());rn out.print("");rn%>rn rnrn rn rn rn 自定义欢迎信息rn rn rn rn rnrn rn rn rn rn rn rn rnrnrnrnrnrnrn3.javabean的源文件rnpackage welcome;rnrnrnimport javax.servlet.*;rnimport javax.servlet.http.*;rnimport java.util.*;rnimport java.lang.*;rnrnpublic class welcomernrn /*rn 初始化JavaBean的成员变量 rn */rn String welcomestring = new String("欢迎您的光临!");rn Date UserTime = new Date();rn /*Class构造器*/rn public welcome()rn rn rn /*属性welcomestring的Get方法*/rn public String getwelcomestring()rn rn return this.welcomestring;rn rn /*属性welcomestring的Set方法*/rn public void setwelcomestring(String welcomestr)rn rn this.welcomestring = welcomestr;rn rn /*属性UserTime的Get方法*/rn public String getUserTime()rn rn return this.UserTime.toString();rn rn /*属性UserTime的Set方法*/rn public void setUserTime()rn rn this.getUserTime();rn rnrn4.将welcome.jsp放在了自建虚拟目录中的WEB-INF/classes/welcome目录下rn5.请大虾帮忙!rnrn
xp不能启动了
我安装了avast,是win7和xp的双系统,在xp上装了win7后,又装杀毒avast,结果出错了!说是什么aswsp.sys出错了!求高手指点!
php.exe启动了多个???
winnt+sql7+iis4,在开iis服务时,php.exe启动了多个,导致网络很慢???rnsos!!!!!rn
eclipse 不能启动了?
我启动参数为rn-vmargsrn-Xms128mrn-Xmx512mrn时运行好好的,就是经常报内存不足。rn于是就改为:rn-vmargsrn-Xms128mrn-Xmx512mrn-xx:PermSize=128Mrn-xx:MaxPermSize=128Mrn结果不能启动了。rn一启动就报错。“could not create the java virtual machine”rn这么回事啊,大家帮帮忙。rn
php.exe启动了多个??
winnt+sql7+iis4,在开iis服务时,php.exe启动了多个,导致网络很慢???rnsos!!!!!
启不动了。怎么办?
今天无聊拆了拆电脑玩。没想到装回去后电脑启不动了。总是出现“COMS CHECKSUM ERROR” 的错误。键盘也没反应。为什么啊!~?
我Tomcat正常启动了,服务也开启了。却始终连接不上localhost:8080,求教
2014-1-12 17:27:25 org.apache.catalina.core.AprLifecycleListener initrn信息: Loaded APR based Apache Tomcat Native library 1.1.27 using APR version 1.4.6.rn2014-1-12 17:27:25 org.apache.catalina.core.AprLifecycleListener initrn信息: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].rn2014-1-12 17:27:26 org.apache.catalina.core.AprLifecycleListener initializeSSLrn信息: OpenSSL successfully initialized with version OpenSSL 1.0.1d 5 Feb 2013rn2014-1-12 17:27:26 org.apache.coyote.http11.Http11AprProtocol initrn信息: Initializing Coyote HTTP/1.1 on http-8080rn2014-1-12 17:27:26 org.apache.coyote.ajp.AjpAprProtocol initrn信息: Initializing Coyote AJP/1.3 on ajp-8009rn2014-1-12 17:27:26 org.apache.catalina.startup.Catalina loadrn信息: Initialization processed in 1165 msrn2014-1-12 17:27:26 org.apache.catalina.core.StandardService startrn信息: Starting service Catalinarn2014-1-12 17:27:26 org.apache.catalina.core.StandardEngine startrn信息: Starting Servlet Engine: Apache Tomcat/6.0.37rn2014-1-12 17:27:26 org.apache.catalina.startup.HostConfig deployDescriptorrn信息: Deploying configuration descriptor host-manager.xmlrn2014-1-12 17:27:27 org.apache.catalina.startup.HostConfig deployDescriptorrn信息: Deploying configuration descriptor manager.xmlrn2014-1-12 17:27:27 org.apache.catalina.startup.HostConfig deployDirectoryrn信息: Deploying web application directory docsrn2014-1-12 17:27:27 org.apache.catalina.startup.HostConfig deployDirectoryrn信息: Deploying web application directory examplesrn2014-1-12 17:27:27 org.apache.catalina.core.ApplicationContext logrn信息: ContextListener: contextInitialized()rn2014-1-12 17:27:27 org.apache.catalina.core.ApplicationContext logrn信息: SessionListener: contextInitialized()rn2014-1-12 17:27:27 org.apache.catalina.startup.HostConfig deployDirectoryrn信息: Deploying web application directory ROOTrn2014-1-12 17:27:27 org.apache.coyote.http11.Http11AprProtocol startrn信息: Starting Coyote HTTP/1.1 on http-8080rn2014-1-12 17:27:27 org.apache.coyote.ajp.AjpAprProtocol startrn信息: Starting Coyote AJP/1.3 on ajp-8009rn2014-1-12 17:27:27 org.apache.catalina.startup.Catalina startrn信息: Server startup in 844 msrn
XP不能启动了???!!!
我的机子C盘WIN ME ,D盘XP,但最近一开机XP不能启动,说是要re-install\system32\hal.dll.rn请问我该怎么办?能把具体步骤告诉我吗?谢谢了!!!(XP 里有好多资料哇,救救我!) rn
相关热词 c#入门推荐书 c# 解码海康数据流 c# xml的遍历循环 c# 取 查看源码没有的 c#解决高并发 委托 c#日期转化为字符串 c# 显示问号 c# 字典对象池 c#5.0 安装程序 c# 分页算法