[jboss-user] [Installation, Configuration & DEPLOYMENT] - Struts + ClassLoading
thanz@gmx.at
do-not-reply at jboss.com
Tue May 19 04:06:55 EDT 2009
Hello
We are using JBoss 5.0.1 and we try to make a new Web App.
So, first we have an EAR with all jars in it.
Then we have a WAR which contains just the core.
The EAR get deployed, we can start it and we see the page(index).
But when we try to add struts(1.x.x) we get some problems.
Fist, when we add struts.jar to the EAR the class-Loader doesnt find it.
We get the error :
| 2009-05-19 09:54:10,156 WARN [org.jboss.wsf.container.jboss50.deployer.JAXWSDeployerHookPreJSE] (main) Cannot load servlet class: org.apache.struts.action.ActionServlet
|
When we add struts.jar to WEB-INF/lib in the WAR he finds it.
In our other Project we have all jars in the EAR and everything works fine.
Our 2nd Problem :
In struts-config.xml we defined that the MessageResourceFactory Class is in a specific package. We added that JAR to the EAR but he cant find it.
| package not found xx.xx.xxx.xxx_xxxxx.xxx.mymessageresource
| defined package: xx.xx.xxx.xxx_xxxxx.xxx.mymessageresource
| loadClass org.apache.struts.util.MessageResourcesFactory resolve=false
|
In the other Project everything works fine :
| package not found xx.xx.xxx.xxx_xxxxx.xxx.mymessageresource
| defined package: xx.xx.xxx.xxx_xxxxx.xxx.mymessageresource
| loaded class locally class xx.xx.xxx.xxx_xxxxx.xxx.mymessageresource.MyMessageResourceFactory{cl=BaseClassLoader at 1499c0f{vfszip:/D:/ENTWICKLUNG/dv-java/jboss-5.0.1.GA/server/default/deploy/xxxxxx.ear/} codeSource=(jar:file:/D:/ENTWICKLUNG/dv-java/jboss-5.0.1.GA/server/default/deploy/xxxxxx.ear!/xxx_xxxxxxx.jar <no signer certificates>)}
|
So why does on Project find the Class in the Jar, and the other doesnt ?
We are using the same Jboss, we just wanted to do a new EAR.
Anyone can help ?
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4231792#4231792
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4231792
More information about the jboss-user
mailing list