Unable to run spring struts maven project on WebLogic 10.3.3 using Eclipse -
if build project war , deploy on weblogic, works well, if run on server using eclipse, got error:
caused by: bean type class com.opensymphony.xwork2.objectfactory name xwork has been loaded bean - zip:d:/documents%20and%20settings/admini/.m2/repository/org/apache/struts/struts2-core/2.3.12/struts2-core-2.3.12.jar!/struts-default.xml:29:72 - bean - zip:h:/runtime/weblogic1033/user_projects/domains/crmframeworkdomain/servers/adminserver/tmp/_wl_user/_auto_generated_ear_/nefp93/war/web-inf/lib/struts2-core-2.3.12.jar!/struts-default.xml:29:72
stacktrace
<2013/4/20 下午06時59分34秒 cst> <error> <http> <bea-101165> <could not load user defined filter in web.xml: org.apache.struts2.dispatcher.ng.filter.strutsprepareandexecutefilter. unable load configuration. - bean - zip:h:/runtime/weblogic1033/user_projects/domains/crmframeworkdomain/servers/adminserver/tmp/_wl_user/_auto_generated_ear_/nefp93/war/web-inf/lib/struts2-core-2.3.12.jar!/struts-default.xml:29:72 @ org.apache.struts2.dispatcher.dispatcher.init(dispatcher.java:485) @ org.apache.struts2.dispatcher.ng.initoperations.initdispatcher(initoperations.java:74) @ org.apache.struts2.dispatcher.ng.filter.strutsprepareandexecutefilter.init(strutsprepareandexecutefilter.java:51) @ weblogic.servlet.internal.filtermanager$filterinitaction.run(filtermanager.java:332) @ weblogic.security.acl.internal.authenticatedsubject.doas(authenticatedsubject.java:321) truncated. see log file complete stacktrace caused by: unable load configuration. - bean - zip:h:/runtime/weblogic1033/user_projects/domains/crmframeworkdomain/servers/adminserver/tmp/_wl_user/_auto_generated_ear_/nefp93/war/web-inf/lib/struts2-core-2.3.12.jar!/struts-default.xml:29:72 @ com.opensymphony.xwork2.config.configurationmanager.getconfiguration(configurationmanager.java:70) @ org.apache.struts2.dispatcher.dispatcher.init_preloadconfiguration(dispatcher.java:429) @ org.apache.struts2.dispatcher.dispatcher.init(dispatcher.java:473) @ org.apache.struts2.dispatcher.ng.initoperations.initdispatcher(initoperations.java:74) @ org.apache.struts2.dispatcher.ng.filter.strutsprepareandexecutefilter.init(strutsprepareandexecutefilter.java:51) truncated. see log file complete stacktrace caused by: unable load bean: type: class:com.opensymphony.xwork2.objectfactory - bean - zip:h:/runtime/weblogic1033/user_projects/domains/crmframeworkdomain/servers/adminserver/tmp/_wl_user/_auto_generated_ear_/nefp93/war/web-inf/lib/struts2-core-2.3.12.jar!/struts-default.xml:29:72 @ com.opensymphony.xwork2.config.providers.xmlconfigurationprovider.register(xmlconfigurationprovider.java:245) @ org.apache.struts2.config.strutsxmlconfigurationprovider.register(strutsxmlconfigurationprovider.java:102) @ com.opensymphony.xwork2.config.impl.defaultconfiguration.reloadcontainer(defaultconfiguration.java:226) @ com.opensymphony.xwork2.config.configurationmanager.getconfiguration(configurationmanager.java:67) @ org.apache.struts2.dispatcher.dispatcher.init_preloadconfiguration(dispatcher.java:429) truncated. see log file complete stacktrace caused by: bean type class com.opensymphony.xwork2.objectfactory name xwork has been loaded bean - zip:d:/documents%20and%20settings/admini/.m2/repository/org/apache/struts/struts2-core/2.3.12/struts2-core-2.3.12.jar!/struts-default.xml:29:72 - bean - zip:h:/runtime/weblogic1033/user_projects/domains/crmframeworkdomain/servers/adminserver/tmp/_wl_user/_auto_generated_ear_/nefp93/war/web-inf/lib/struts2-core-2.3.12.jar!/struts-default.xml:29:72 @ com.opensymphony.xwork2.config.providers.xmlconfigurationprovider.register(xmlconfigurationprovider.java:229) @ org.apache.struts2.config.strutsxmlconfigurationprovider.register(strutsxmlconfigurationprovider.java:102) @ com.opensymphony.xwork2.config.impl.defaultconfiguration.reloadcontainer(defaultconfiguration.java:226) @ com.opensymphony.xwork2.config.configurationmanager.getconfiguration(configurationmanager.java:67) @ org.apache.struts2.dispatcher.dispatcher.init_preloadconfiguration(dispatcher.java:429) truncated. see log file complete stacktrace
i don't know why there's struts2-core.2.3.12.jar in _auto_generated_ear
is there configuration of plugins should change?
weblogic 10.3.3
jdk 1.6
eclipse juno
maven 3.0.5
and here eclipse project archive: loki.zip
i faced same issue. in case 1 or more action classes configured in struts.xml not defined on package. once defined missing classes worked fine. please ensure action classes configured in struts.xml defined in correct location.
struts.xml
<action name="welcome" class="com.vk.translate.action.dummyaction"> <result name="success">/login.jsp</result> </action>
dummyaction not defined in above code. once defined worked.
Comments
Post a Comment