Hi,
I was having just the same problem and (took at least few hours searching on google and interpreting user posts) looks like a classloader issue. The following discussions throw a light on it.
 
http://www.jboss.org/index.html?module=bb&op=viewtopic&t=59192&postdays=0&postorder=asc&start=0
 
http://www.jbossgroup.com/index.html?module=bb&op=viewtopic&p=3887843

Eventually it boils down to two solutions -
 
1. In the $JBOSS_HOME/server/default/deploy/jbossweb-tomcat55.sar/META-INF/jboss-service.xml file you need to change two parameters -
 
<attribute name="Java2ClassLoadingCompliance">true</attribute>
 
<attribute name="UseJBossWebLoader">true</attribute>
 
The following link tells why.
 
http://jira.jboss.com/jira/browse/JBAS-1691
 
This method works I have tested myself.
 
2. You need to package your web or client application WITHOUT the ejb (home/remote) classes. They should be present ONLY in the ejb jar file.
 
This approach I haven't tested but should work as per the above discussions.
 
Atul.

 
On 12/2/05, PitPalme <[EMAIL PROTECTED]> wrote:
Hi, thanks for replying.

JBoss versions I've tested with:

4.0.1sp1
4.0.3sp1

About the client: one is a Servlet, the other one a MDB.

The MDB is the main client, the servlet I've just create to continue testing at home, where I can't make use of the MDB, as I can't send a message to it (it's not a JMS message it works on).

I've meanwhile found http://www.jboss.com/index.html?module=bb&op=viewtopic&t=64201
and therein
http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossClassLoadingUseCases
and
http://wiki.jboss.org/wiki/Wiki.jsp?page=ClassLoadingConfiguration

So I guess the Servlet will not work at any time, which is something I could live with (at least I wouldn't know why I'd really *need* the Servlet being able to load the business object in a different ear). But not being able to get the RemoteObject from a different EAR when calling from the MDB is a show stopper for me, because it would require me to shut down MDB-service every time one of the many enterprise applications that should be accessed through the MDB deploys an update :-/

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3910380#3910380

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3910380


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to