[jboss-user] [Installation, Configuration & Deployment] - Re: packaging a war file with struts 1.3.8 for jboss 4.0.4
tb44
do-not-reply at jboss.com
Fri Apr 20 13:47:03 EDT 2007
i try a solution but i have still a prblem (not same).
i build an ear file with contain :
* one file war
* 2 file jar
* struts file struts-2.0.6/lib/commons-beanutils-1.6.jar
struts-2.0.6/lib/commons-chain-1.1.jar
struts-2.0.6/lib/commons-logging.jar
struts-2.0.6/lib/commons-validator-1.3.0.jar
struts-2.0.6/lib/struts-core-1.3.5.jar
struts-2.0.6/lib/struts2-codebehind-plugin-2.0.6.jar
struts-2.0.6/lib/struts2-config-browser-plugin-2.0.6.jar
struts-2.0.6/lib/struts2-core-2.0.6.jar
struts-2.0.6/lib/struts2-jasperreports-plugin-2.0.6.jar
struts-2.0.6/lib/struts2-jfreechart-plugin-2.0.6.jar
struts-2.0.6/lib/struts2-jsf-plugin-2.0.6.jar
struts-2.0.6/lib/struts2-pell-multipart-plugin-2.0.6.jar
struts-2.0.6/lib/struts2-plexus-plugin-2.0.6.jar
struts-2.0.6/lib/struts2-sitegraph-plugin-2.0.6.jar
struts-2.0.6/lib/struts2-sitemesh-plugin-2.0.6.jar
struts-2.0.6/lib/struts2-spring-plugin-2.0.6.jar
struts-2.0.6/lib/struts2-struts1-plugin-2.0.6.jar
struts-2.0.6/lib/struts2-tiles-plugin-2.0.6.jar
* META-INF/application.xml
* META-INF/jboss-app.xml which is:
<jboss-app>
<loader-repository>orvault:loader=orvault.ear
<loader-repository-config>
java2ParentDelegation=false
</loader-repository-config>
</loader-repository>
</jboss-app>
i have also changed MANIFEST file for war package like this :
Manifest-Version: 1.0
Class-Path: ./struts-2.0.6/lib/struts-core-1.3.5.jar ./struts-2.0.6/lib/commons-beanutils-1.7.0.jar ./struts-2.0.6/lib/commons-logging-1.0.4.jar
it resolve the problem of ClassNotFound ActionServlet but now log jboss say this :
Caused by: org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: Invalid class loader hierarchy. You have more than one version of 'org.apache.commons.logging.Log' visible, which is not allowed.
i try to remove commons-logging-1.0.4.jar from manifest, struts directory and also copy commons-logging file from server jboss but not efficient.
how can i manage to execute my ear application ?
thanks.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039369#4039369
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039369
More information about the jboss-user
mailing list