idea启动web项目,tomcat启动了,项目启动不了,谁遇到过类似的问题

发布于 2021-12-04 04:36:22 字数 7952 浏览 855 评论 9

idea启动web项目,tomcat启动了,项目启动不了,谁遇到过类似的问题

idea的配置:

Tomcat启动信息:

D:apache-tomcat-7.0.67bincatalina.bat run
[2015-12-24 10:17:01,766] Artifact trunk:Web exploded: Server is not connected. Deploy is not available.
Using CATALINA_BASE:   "C:Userszhangwz.IntelliJIdea14systemtomcatUnnamed_CloudIPAWebServer_6"
Using CATALINA_HOME:   "D:apache-tomcat-7.0.67"
Using CATALINA_TMPDIR: "D:apache-tomcat-7.0.67temp"
Using JRE_HOME:        "C:Program FilesJavajdk1.6.0_45jre"
Using CLASSPATH:       "D:apache-tomcat-7.0.67binbootstrap.jar;D:apache-tomcat-7.0.67bintomcat-juli.jar"

2015-12-24 9:37:45 org.apache.catalina.startup.VersionLoggerListener log
信息: Server version:        Apache Tomcat/7.0.67
2015-12-24 9:37:45 org.apache.catalina.startup.VersionLoggerListener log
信息: Server built:          Dec 7 2015 13:07:11 UTC
2015-12-24 9:37:45 org.apache.catalina.startup.VersionLoggerListener log
信息: Server number:         7.0.67.0
2015-12-24 9:37:45 org.apache.catalina.startup.VersionLoggerListener log
信息: OS Name:               Windows 7
2015-12-24 9:37:45 org.apache.catalina.startup.VersionLoggerListener log
信息: OS Version:            6.1
2015-12-24 9:37:45 org.apache.catalina.startup.VersionLoggerListener log
信息: Architecture:          amd64
2015-12-24 9:37:45 org.apache.catalina.startup.VersionLoggerListener log
信息: Java Home:             C:Program FilesJavajdk1.6.0_45jre
2015-12-24 9:37:45 org.apache.catalina.startup.VersionLoggerListener log
信息: JVM Version:           1.6.0_45-b06
2015-12-24 9:37:45 org.apache.catalina.startup.VersionLoggerListener log
信息: JVM Vendor:            Sun Microsystems Inc.
2015-12-24 9:37:45 org.apache.catalina.startup.VersionLoggerListener log
信息: CATALINA_BASE:         C:Userszhangwz.IntelliJIdea14systemtomcatUnnamed_CloudIPAWebServer_6
2015-12-24 9:37:45 org.apache.catalina.startup.VersionLoggerListener log
信息: CATALINA_HOME:         D:apache-tomcat-7.0.67
2015-12-24 9:37:45 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dcom.sun.management.jmxremote=
2015-12-24 9:37:45 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dcom.sun.management.jmxremote.port=1099
2015-12-24 9:37:45 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dcom.sun.management.jmxremote.ssl=false
2015-12-24 9:37:45 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dcom.sun.management.jmxremote.authenticate=false
2015-12-24 9:37:45 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Djava.rmi.server.hostname=127.0.0.1
2015-12-24 9:37:45 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Djava.util.logging.config.file=C:Userszhangwz.IntelliJIdea14systemtomcatUnnamed_CloudIPAWebServer_6conflogging.properties
2015-12-24 9:37:45 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
2015-12-24 9:37:45 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Djava.endorsed.dirs=D:apache-tomcat-7.0.67endorsed
2015-12-24 9:37:45 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dcatalina.base=C:Userszhangwz.IntelliJIdea14systemtomcatUnnamed_CloudIPAWebServer_6
2015-12-24 9:37:45 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dcatalina.home=D:apache-tomcat-7.0.67
2015-12-24 9:37:45 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Djava.io.tmpdir=D:apache-tomcat-7.0.67temp
2015-12-24 9:37:45 org.apache.catalina.core.AprLifecycleListener lifecycleEvent
信息: Loaded APR based Apache Tomcat Native library 1.1.33 using APR version 1.5.1.
2015-12-24 9:37:45 org.apache.catalina.core.AprLifecycleListener lifecycleEvent
信息: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].
2015-12-24 9:37:46 org.apache.catalina.core.AprLifecycleListener initializeSSL
信息: OpenSSL successfully initialized (OpenSSL 1.0.1m 19 Mar 2015)
2015-12-24 9:37:46 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["http-apr-8080"]
2015-12-24 9:37:46 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["ajp-apr-8009"]
2015-12-24 9:37:46 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 1077 ms
2015-12-24 9:37:46 org.apache.catalina.core.StandardService startInternal
信息: Starting service Catalina
2015-12-24 9:37:46 org.apache.catalina.core.StandardEngine startInternal
信息: Starting Servlet Engine: Apache Tomcat/7.0.67
2015-12-24 9:37:46 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["http-apr-8080"]
2015-12-24 9:37:46 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["ajp-apr-8009"]
2015-12-24 9:37:46 org.apache.catalina.startup.Catalina start
信息: Server startup in 33 ms
Connected to server
[2015-12-24 09:37:46,598] Artifact trunk:Web exploded: Artifact is being deployed, please wait...
2015-12-24 9:37:46 org.apache.catalina.loader.WebappClassLoaderBase validateJarFile
信息: validateJarFile(E:IdeaSpaceCloudIPAWebServeroutartifactstrunk_Web_explodedWEB-INFlibjavaee.jar) - jar not loaded. See Servlet Spec 3.0, section 10.7.2. Offending class: javax/servlet/Servlet.class
2015-12-24 9:37:46 org.apache.catalina.loader.WebappClassLoaderBase validateJarFile
信息: validateJarFile(E:IdeaSpaceCloudIPAWebServeroutartifactstrunk_Web_explodedWEB-INFlibjavax.el-api-2.2.4.jar) - jar not loaded. See Servlet Spec 3.0, section 10.7.2. Offending class: javax/el/Expression.class
2015-12-24 9:37:46 org.apache.catalina.loader.WebappClassLoaderBase validateJarFile
信息: validateJarFile(E:IdeaSpaceCloudIPAWebServeroutartifactstrunk_Web_explodedWEB-INFlibservlet-api-2.5-6.1.14.jar) - jar not loaded. See Servlet Spec 3.0, section 10.7.2. Offending class: javax/servlet/Servlet.class
2015-12-24 9:37:51 org.apache.catalina.startup.TldConfig execute
信息: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
2015-12-24 9:37:51 org.apache.tomcat.websocket.server.WsSci onStartup
信息: JSR 356 WebSocket (Java WebSocket 1.1) support is not available when running on Java 6. To suppress this message, run Tomcat on Java 7, remove the WebSocket JARs from $CATALINA_HOME/lib or add the WebSocket JARs to the tomcat.util.scan.DefaultJarScanner.jarsToSkip property in $CATALINA_BASE/conf/catalina.properties. Note that the deprecated Tomcat 7 WebSocket API will be available. 
[2015-12-24 09:37:51,474] Artifact trunk:Web exploded: Artifact is deployed successfully
[2015-12-24 09:37:51,475] Artifact trunk:Web exploded: Deploy took 4,877 milliseconds
2015-12-24 9:37:56 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory D:apache-tomcat-7.0.67webappsmanager
2015-12-24 9:37:56 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deployment of web application directory D:apache-tomcat-7.0.67webappsmanager has finished in 99 ms

跟随日志到以下目录

C:Userszhangwz.IntelliJIdea14systemtomcatUnnamed_CloudIPAWebServer_6

workCatalinalocalhostmanager

C:Userszhangwz.IntelliJIdea14systemtomcatUnnamed_CloudIPAWebServer_6

workCatalinalocalhosttrunk

两个目录都是空的


如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(9

明月松间行 2021-12-05 16:34:13

我也遇到一样的情况,下了个7.0.79的tomcat还是一样报错。无解。

复古式 2021-12-05 16:26:20

回复
@wanyi8358 : 你怎么解决的 啊???

平定天下 2021-12-05 16:22:28

回复
@wanyi8358 : 我的tomcat是8.0的

想挽留 2021-12-05 15:45:11

回复
@wanyi8358 : 换成9.0终于好了

女中豪杰 2021-12-05 15:31:38

表示换了一个新版本的tomcat解决了,原来的是7.0.63,换成7.0.77,ieda的版本是2017.1.2,网上还有一种解决办法,就是删除tomcat/bin/catalina.bat 中的 JAVA_OPTS ,表示试了以后不行,而且在这个启动脚本中,还有用到JAVA_OPTS的地方,这个解决办法的原始在一个老外的帖子中。

悸初 2021-12-05 15:14:03

我的项目也是在IDEA上的web项目 ,一个可以正常使用,一个tomcat启动后 项目没有反应,现在XML配置文件也只想了输出目录

永不分离 2021-12-05 11:30:24

怎么解决的啊?大神,我也遇到这个问题了,xml文件改完路径重新生成了,没有用啊

灵芸 2021-12-04 20:44:29

如果我没记错的话,idea15都出来了吧?

白龙吟 2021-12-04 14:03:51

已解决

在参考了这篇文章之后 http://my.oschina.net/letiantian/blog/173025

具体原理不详。。

找到具体原因了:

这里程序自动生成的compile output是指向程序打包的目录,也就是图二中的目录

像idea会给每一个项目生成一个tomcat在我自己硬盘里的C盘用户底下有C:Userszhangwz.IntelliJIdea14systemtomcatUnnamed_CloudIPAWebServer_6confCatalinalocalhost这个目录底下有个XML配置文件,里面项目也指向了之前的out输出目录

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文