at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
... 20 more
2011-5-11 20:41:42 org.apache.catalina.core.StandardContext startInternal
严重:
Error filterStart2011-5-11 20:41:42 org.apache.catalina.core.StandardContext startInternal
严重: Context [/struts]
startup failed due to previous errors2011-5-11 20:41:42 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory struts2
2011-5-11 20:41:42 org.apache.coyote.AbstractProtocolHandler start
信息: Starting ProtocolHandler ["http-bio-8080"]
2011-5-11 20:41:42 org.apache.coyote.AbstractProtocolHandler start
信息: Starting ProtocolHandler ["ajp-bio-8009"]
2011-5-11 20:41:42 org.apache.catalina.startup.Catalina start
信息: Server startup in 1038 ms
web.xml
XML code
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.5"
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
<filter>
<filter-name>struts2</filter-name>
<filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>struts2</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
</web-app>
struts.xml
XML code
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
"http://struts.apache.org/dtds/struts-2.0.dtd">
<struts>
</struts>
是不是少了什么包啊?
我现在已经导入了fileupload,io,logging,freemarker,ognl,struts2-core-2.2.3,xwork这几个包。
------解决方案--------------------
commons-lang.jar
------解决方案--------------------
请问lz用的jdk的版本?1.6是自带的commons包。不然就导入commons包吧!