首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > J2EE开发 >

tomcat启动的异常 严重: Error processing TLD files for context path /test

2011-12-18 
tomcat启动的错误 严重: Error processing TLD files for context path /testtomcat启动异常:Java code严

tomcat启动的错误 严重: Error processing TLD files for context path /test
tomcat启动异常:

Java code
严重: Error processing TLD files for context path /testjavax.servlet.ServletException: Exception processing TLD at resource path /WEB-INF/struts-logic.tld in context /test    at org.apache.catalina.startup.TldConfig.tldScanTld(TldConfig.java:541)    at org.apache.catalina.startup.TldConfig.execute(TldConfig.java:305)    at org.apache.catalina.startup.TldConfig.lifecycleEvent(TldConfig.java:729)    at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)    at org.apache.catalina.core.StandardContext.start(StandardContext.java:4184)    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760)    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740)    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)    at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:927)    at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:890)    at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)    at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1150)    at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)    at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022)    at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)    at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)    at org.apache.catalina.core.StandardService.start(StandardService.java:448)    at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)    at org.apache.catalina.startup.Catalina.start(Catalina.java:552)    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)    at java.lang.reflect.Method.invoke(Method.java:592)    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)

对程序没有什么影响 我没有struts的标签。

下面是我的web.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">
  <filter>
<filter-name>jdbcFilter</filter-name>
<filter-class>com.dfgg.sms.web.JdbcFilter</filter-class>
</filter>

<filter-mapping>
<filter-name>jdbcFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
  
  
  <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>
  <welcome-file-list>
  <welcome-file>login.jsp</welcome-file>
  </welcome-file-list>  
</web-app>

下面是struts-config.xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.2//EN" "http://struts.apache.org/dtds/struts-config_1_2.dtd">

<struts-config>
  <data-sources />
  <form-beans >
  <form-bean name="loginForm" type="com.dfgg.sms.form.LoginForm" />

  </form-beans>

  <global-exceptions />

  <action-mappings >
  <action
  attribute="loginForm"
  input="/login.jsp"
  name="loginForm"
  path="/login"
  scope="request"
  type="com.dfgg.sms.action.LoginAction">
  <forward name="success" path="/frame.jsp" />
  <forward name="fail" path="/fail.jsp" />
  </action>

  </action-mappings>

  <message-resources parameter="com.dfgg.sms.struts.ApplicationResources" />
</struts-config>



[解决办法]
javax.servlet.ServletException: Exception processing TLD at resource path /WEB-INF/struts-logic.tld in context /test


这句话是说,执行你WEB-INF/struts-logic.tld文件的时候出错..

1. 把你的jsp代码贴出来看看? 
2. 查看jar包有没有重复,导致冲突的?
[解决办法]
应该是jar包问题吧

热点排行