我用struts2框架做了一个简单的crud,项目部署到tomcat是没问题的,可以项目部署到weblogic10上面就报这种错误。<2011-3-28 下午01时52分21秒 CST> <Notice> <WebLogicServer> <BEA-000395> <Following extensions directory contents added to the end of the classpath:
E:\bea\wlserver_10.0\platform\lib\p13n\p13n-schemas.jar;E:\bea\wlserver_10.0\platform\lib\p13n\p13n_common.jar;E:\bea\wlserver_10.0\platform\lib\p13n\p13n_system.jar;E:\bea\wlserver_10.0\platform\lib\wlp\netuix_common.jar;E:\bea\wlserver_10.0\platform\lib\wlp\netuix_schemas.jar;E:\bea\wlserver_10.0\platform\lib\wlp\netuix_system.jar;E:\bea\wlserver_10.0\platform\lib\wlp\wsrp-client.jar;E:\bea\wlserver_10.0\platform\lib\wlp\wsrp-common.jar> 
<2011-3-28 下午01时52分21秒 CST> <Info> <WebLogicServer> <BEA-000377> <Starting WebLogic Server with Java HotSpot(TM) Client VM Version 1.5.0_06-b05 from Sun Microsystems Inc.> 
<2011-3-28 下午01时52分22秒 CST> <Info> <Management> <BEA-141107> <Version: WebLogic Server 10.0  Wed May 9 18:10:27 EDT 2007 933139 
WebLogic Server WebService Client 10.0  Wed May 9 18:24:04 EDT 2007 933139 > 
<2011-3-28 下午01时52分23秒 CST> <Info> <WebLogicServer> <BEA-000215> <Loaded License : E:\bea\license.bea> 
<2011-3-28 下午01时52分23秒 CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING> 
<2011-3-28 下午01时52分23秒 CST> <Info> <WorkManager> <BEA-002900> <Initializing self-tuning thread pool> 
<2011-3-28 下午01时52分23秒 CST> <Notice> <Log Management> <BEA-170019> <The server log file E:\bea\user_projects\domains\base_domain\servers\AdminServer\logs\AdminServer.log is opened. All server side log events will be written to this file.> 
<2011-3-28 下午01时52分26秒 CST> <Notice> <Security> <BEA-090082> <Security initializing using security realm myrealm.> 
<2011-3-28 下午01时52分29秒 CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STANDBY> 
<2011-3-28 下午01时52分29秒 CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING> 
log4j:WARN No appenders could be found for logger (com.opensymphony.xwork2.config.providers.XmlConfigurationProvider).
log4j:WARN Please initialize the log4j system properly.
<2011-3-28 下午01时52分33秒 CST> <Error> <HTTP> <BEA-101165> <Could not load user defined filter in web.xml: org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.
Unable to load configuration. - action - file:/E:/bea/user_projects/domains/base_domain/autodeploy/oracle_extjs_crud/WEB-INF/classes/struts.xml:12:68
at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:428)
at org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:69)
at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:51)
at weblogic.servlet.internal.FilterManager$FilterInitAction.run(FilterManager.java:320)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
Truncated. see log file for complete stacktrace
Unable to load configuration. - action - file:/E:/bea/user_projects/domains/base_domain/autodeploy/oracle_extjs_crud/WEB-INF/classes/struts.xml:12:68
at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:69)
at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:371)
at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:415)
at org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:69)
at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:51)
Truncated. see log file for complete stacktrace
Action class [com.tengzhisoftware.action.EmpAction] not found - action - file:/E:/bea/user_projects/domains/base_domain/autodeploy/oracle_extjs_crud/WEB-INF/classes/struts.xml:12:68
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.verifyAction(XmlConfigurationProvider.java:420)
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addAction(XmlConfigurationProvider.java:365)
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addPackage(XmlConfigurationProvider.java:479)
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadPackages(XmlConfigurationProvider.java:275)
at org.apache.struts2.config.StrutsXmlConfigurationProvider.loadPackages(StrutsXmlConfigurationProvider.java:111)
Truncated. see log file for complete stacktrace

<2011-3-28 下午01时52分33秒 CST> <Notice> <Log Management> <BEA-170027> <The server initialized the domain log broadcaster successfully. Log messages will now be broadcasted to the domain log.> 
<2011-3-28 下午01时52分34秒 CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to ADMIN> 
<2011-3-28 下午01时52分34秒 CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RESUMING> 
<2011-3-28 下午01时52分34秒 CST> <Notice> <Server> <BEA-002613> <Channel "Default[1]" is now listening on 127.0.0.1:7001 for protocols iiop, t3, ldap, snmp, http.> 
<2011-3-28 下午01时52分34秒 CST> <Notice> <Server> <BEA-002613> <Channel "Default" is now listening on 100.100.100.151:7001 for protocols iiop, t3, ldap, snmp, http.> 
<2011-3-28 下午01时52分34秒 CST> <Notice> <WebLogicServer> <BEA-000331> <Started WebLogic Admin Server "AdminServer" for domain "mydomain" running in Development Mode> 
<2011-3-28 下午01时52分34秒 CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RUNNING> 
<2011-3-28 下午01时52分34秒 CST> <Notice> <WebLogicServer> <BEA-000360> <Server started in RUNNING mode> -----------------------------------------------------------------------------------------
这是我的web.xml配置
<?xml version="1.0" encoding="UTF-8"?>
<web-app id="WebApp_9" version="2.4"
xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"> <display-name>Struts Blank</display-name> <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 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>
<constant name="struts.devMode" value="true" />
<constant name="struts.i18n.encoding" value="UTF-8" />
<package name="emp" extends="json-default">
<!-- 查询员工 -->
<action name="searchEmp"
class="com.tengzhisoftware.action.EmpAction" method="searchEmp">
<result type="json" />
</action>
<!-- 查询部门 -->
<action name="searchDept"
class="com.tengzhisoftware.action.DeptAction" method="searchDept">
<result type="json" />
</action>
<!-- 查询职位 -->
<action name="searchPost"
class="com.tengzhisoftware.action.PostAction" method="searchPost">
<result type="json" />
</action>
<!-- 添加员工 -->
<action name="addEmp"
class="com.tengzhisoftware.action.EmpAction" method="addEmp">
<result type="json">
<param name="excludeProperties">page,start,limit</param>
</result>
</action>
<!-- 删除员工 -->
<action name="deleteEmp"
class="com.tengzhisoftware.action.EmpAction" method="deleteEmp">
<result type="json">
<param name="includeProperties">success</param>
</result>
</action>
<!-- 批量更新员工 -->
<action name="updateEmp"
class="com.tengzhisoftware.action.EmpAction" method="updateEmp">
<result type="json">
<param name="excludeProperties">page,start,limit</param>
</result>
</action>
</package>
</struts>