-
1. Re: JBossMessageEndpointFactory ClassNotFoundException when
weston.price Apr 18, 2007 12:53 PM (in response to michele.curioni)As a test could you try the following:
1) Move the RAR out of the EAR file and deploy it as a standalone adapter
2) Keep the jar with the message-listener-type in the RAR file standalone deployment.
3) Deploy the MDB either in an EAR or as a standalone ejb jar file.
Thanks. -
2. Re: JBossMessageEndpointFactory ClassNotFoundException when
weston.price Apr 18, 2007 12:54 PM (in response to michele.curioni)Also, could you post your jboss.xml file that you are using to tie the MDB to the adapter.
-
3. Re: JBossMessageEndpointFactory ClassNotFoundException when
weston.price Apr 18, 2007 3:16 PM (in response to michele.curioni)Also, make sure the jar that contains the message-listener is reference from the MANIFEST.MF of your ejb.jar file as well for the internal EAR deployment.
-
4. Re: JBossMessageEndpointFactory ClassNotFoundException when
michele.curioni Apr 19, 2007 5:36 AM (in response to michele.curioni)Hi there,
I'd rather avoid deploying the rar separately, because it needs quite a few things that are part of the ear. I don't want to have to deploy many different files.
I give you more details about the content of the ear:
- InputDriver.jar contains the message-listener interface, as well as other classes needed by the rar
- InputDriver.rar is the resource adapter
- RawProtocolService.jar contains the MDB that implements the message-listener interface, and its manifest points to InputDriver.jar in this way: "Class-Path: InputDriver.jar"
jboss.xml for the MDB is this:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE jboss PUBLIC "-//JBoss//DTD JBOSS 4.0//EN" "http://www.jboss.org/j2ee/dtd/jboss_4_0.dtd">
<enterprise-beans>
<ejb-name>MyApp/RawProtocolService</ejb-name>
<jndi-name>MyApp/RawProtocolService</jndi-name>
<local-jndi-name>MyApp/RawProtocolServiceLocal</local-jndi-name>
<method-attributes>
</method-attributes>
<message-driven>
<ejb-name>MyApp/RawProtocolRoutingMDBean</ejb-name>
<resource-adapter-name>MyApp.ear#InputDriver.rar</resource-adapter-name>
</message-driven>
</enterprise-beans>
<assembly-descriptor/>
<resource-managers/>
Thanks,
Michele -
5. Re: JBossMessageEndpointFactory ClassNotFoundException when
weston.price Apr 19, 2007 6:45 AM (in response to michele.curioni)I ran a simple test with your configuration and I am not seeing the error.
What version of JBoss are you using? -
6. Re: JBossMessageEndpointFactory ClassNotFoundException when
michele.curioni Apr 19, 2007 10:25 AM (in response to michele.curioni)I'm using 4.0.2.
Did you try to deploy, stop the MDB with JMX console, and restart it? -
7. Re: JBossMessageEndpointFactory ClassNotFoundException when
weston.price Apr 19, 2007 10:32 AM (in response to michele.curioni)Yes.
I did not test against 4.0.2, I used 4.2. I will set that up. -
8. Re: JBossMessageEndpointFactory ClassNotFoundException when
weston.price Apr 20, 2007 6:08 AM (in response to michele.curioni)4.0.2 (no patches applied) works without error as well.
-
9. Re: JBossMessageEndpointFactory ClassNotFoundException when
weston.price Apr 20, 2007 6:09 AM (in response to michele.curioni)If you can send me your email I can forward you the project I am using to test this. Maybe we can find the difference between the two.
-
10. Re: JBossMessageEndpointFactory ClassNotFoundException when
michele.curioni Apr 25, 2007 5:04 AM (in response to michele.curioni)Hi there,
I tried your project, and it works fine for me too on both version of jboss (4.0.2 and 4.2.0)
I cannot see any difference in the structure of the ear nor in the descriptors.
Is there anything else we can try?
Thanks,
Michele -
11. Re: JBossMessageEndpointFactory ClassNotFoundException when
weston.price Apr 25, 2007 7:59 PM (in response to michele.curioni)Nothing really jumps out at me. The only thing I can think of is if your listener interface is referencing classes that cannot be found. Can you check this?