A股上市公司传智教育(股票代码 003032)旗下技术交流社区北京昌平校区

 找回密码
 加入黑马

QQ登录

只需一步,快速开始

© 何德虎 黑马帝   /  2011-10-3 20:20  /  3349 人查看  /  4 人回复  /   0 人收藏 转载请遵从CC协议 禁止商业使用本文

将一个系统部署到tomcat,但是登陆tomcat的控制台看到它的状态是未启动的,我点击start后顶部提示
FAIL - Application at context path /office could not be started
请问是哪里处问题了?其他的部署进来都没问题,为什么它会有问题?tomcat重启过了

4 个回复

倒序浏览
黑马网友  发表于 2011-10-3 20:40:46
沙发
文本路径/不能被启动. 由此可见,应是路径错误(比如输错了路径)或者context配制文件有错误,还有可能多导入了JAR包。
应该是context配置有问题,重新配置下看。
还有你是否发布项目?
回复 使用道具 举报
黑马网友  发表于 2011-10-4 06:49:17
藤椅
失败-运行的文本路径/(或者)属性不能被启动.
由此可见,应是路径错误(比如输错了路径)或者属性(比如设了隐藏)不正确
回复 使用道具 举报
黑马网友  发表于 2011-10-4 09:02:03
板凳
tomcat日志里面有两个报错:
严重: Begin event threw exception
java.lang.IllegalArgumentException: taglib definition not consistent with specification version
严重: Parse error in application web.xml file at jndi:/localhost/office/WEB-INF/web.xml
java.lang.IllegalArgumentException: taglib definition not consistent with specification version
        at org.apache.tomcat.util.digester.Digester.createSAXException(Digester.java:2687)
        at org.apache.tomcat.util.digester.Digester.createSAXException(Digester.java:2713)
        at org.apache.tomcat.util.digester.Digester.startElement(Digester.java:1285)
        at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
        at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
        at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
        at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
        at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
        at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
        at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1543)
        at org.apache.catalina.startup.ContextConfig.parseWebXml(ContextConfig.java:1690)
        at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1208)
        at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:881)
        at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:315)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
        at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:89)
        at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:4700)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:140)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:810)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:788)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:558)
        at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1051)
        at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:977)
        at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:507)
        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1322)
        at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:307)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
        at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:89)
        at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:325)
        at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:305)
        at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1036)
        at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:773)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:140)
        at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1028)
        at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:278)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:140)
        at org.apache.catalina.core.StandardService.startInternal(StandardService.java:429)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:140)
        at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:662)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:140)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:592)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:290)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:418)
2011-10-4 1:12:49 org.apache.catalina.startup.ContextConfig parseWebXml
严重: Occurred at line 24 column 11
2011-10-4 1:12:49 org.apache.catalina.startup.ContextConfig configureStart
严重: Marking this application unavailable due to previous error(s)
2011-10-4 1:12:49 org.apache.catalina.core.StandardContext startInternal
严重: Error getConfigured
2011-10-4 1:12:49 org.apache.catalina.core.StandardContext startInternal
严重: Context [/office] startup failed due to previous errors
2011-10-4 1:12:49 org.apache.catalina.startup.HostConfig deployDirectory
回复 使用道具 举报
黑马网友  发表于 2011-10-4 19:06:16
报纸
[quote] 原帖由 [i]caodaoxi[/i] 于 2011-10-04 14:38 发表 [url=http://bbs.itheima.com/redirect.jsp?goto=findpost&pid=12192&ptid=1976][img]http://bbs.itheima.com/images/common/back.gif[/img][/url]严重: Begin event threw exception
java.lang.IllegalArgumentException: taglib definition not consistent with specification version
严重: Parse error in application web.xml file at jndi:/localhost/office/WEB-INF/web.xml
java.lang.IllegalArgumentException: taglib definition not consistent with specification version
你看这几行的提示看以看出应该是你的web.xml文件写错了
java.lang.IllegalArgumentException: taglib definition not consistent with specification version
意思说你的taglib标签定义的不符合标准 请仔细检查一下或把你的wel.xml文件的taglib标签定义部分代码贴出来 [/quote][code=xml]<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.4" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee   http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
  <servlet>
    <servlet-name>action</servlet-name>
    <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
    <init-param>
      <param-name>config</param-name>
      <param-value>/WEB-INF/struts-config.xml</param-value>
    </init-param>
    <init-param>
      <param-name>debug</param-name>
      <param-value>3</param-value>
    </init-param>
    <init-param>
      <param-name>detail</param-name>
      <param-value>3</param-value>
    </init-param>
    <load-on-startup>0</load-on-startup>
  </servlet>
  <servlet-mapping>
    <servlet-name>action</servlet-name>
    <url-pattern>*.do</url-pattern>
  </servlet-mapping>
  <taglib>
    <taglib-uri>struts-html</taglib-uri>
    <taglib-location>/WEB-INF/tld/struts-html.tld</taglib-location>
  </taglib>
  <taglib>
    <taglib-uri>struts-bean</taglib-uri>
    <taglib-location>/WEB-INF/tld/struts-bean.tld</taglib-location>
  </taglib>
  <taglib>
    <taglib-uri>struts-logic</taglib-uri>
    <taglib-location>/WEB-INF/tld/struts-logic.tld</taglib-location>
  </taglib>
  <taglib>
    <taglib-uri>office</taglib-uri>
    <taglib-location>/WEB-INF/tld/office.tld</taglib-location>
  </taglib>
</web-app>[/code]
回复 使用道具 举报
您需要登录后才可以回帖 登录 | 加入黑马