[jboss-user] [EJB 3.0] - Re: War to remote EJB fails with ClassCastException
iwalberg
do-not-reply at jboss.com
Mon Oct 20 12:50:30 EDT 2008
I started the server with option -verbose:class as you recommended and got:
[Loaded com.comp.service.ProjectService from file:/data/jboss-4.2.2.GA/server/default/tmp/deploy/tmp5998StatusTool-exp.war/WEB-INF/lib/project-common-1.3.SNAPSHOT.jar]
| [Loaded org.jboss.ejb3.JBossProxy from file:/data/jboss-4.2.2.GA/server/default/tmp/deploy/tmp5917jboss-ejb3.jar]
| [Loaded com.comp.data.ProjectDTO from file:/data/jboss-4.2.2.GA/server/default/tmp/deploy/tmp5998StatusTool-exp.war/WEB-INF/lib/project-common-1.3.SNAPSHOT.jar]
| [Loaded $Proxy59 from org.jboss.web.tomcat.service.WebAppClassLoader]
| ...
| [Loaded org.jboss.remoting.loading.ClassByteClassLoader$MyRef from file:/data/jboss-4.2.2.GA/server/default/lib/jboss-remoting.jar]
| [Loaded com.comp.data.ProjectDTO from org.jboss.remoting.loading.ClassByteClassLoader]
|
|
| Both my EJB (ProjectService interface) and data object (ProjectDTO) are loaded from the expected jar. This jar is a copy of the same jar located in the remote server's server/default/deploy directory.
|
| I see that JBoss is also loading my data object from its remoting ClassByteClassLoader.
|
| In making sure that both servers were using the same class, I noticed that the common jar did not live inside the project ear deployed remotely, but instead was sitting standalone in the server/default/deploy directory. This had been deployed by others and built and deployed by Maven and I don't know why that was done. I decided to do the same on the local JBoss. It worked!
|
| Now, I want to know why! Can anyone help me understand what's really happening here? Any thoughts on why the commons jar should be outside the ear?
|
| Ilane
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4183311#4183311
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4183311
More information about the jboss-user
mailing list