You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@geronimo.apache.org by jklcom99 <je...@yahoo.com> on 2008/10/13 23:10:26 UTC

Re: javax.jms.JMSException: Failed to build body from bytes

Hi Kevan,

I tested out your sample with inPlace deplopment today and it works, the
ContextClassLoader is correct.  

In the sample deployment plan:
<?xml version="1.0" encoding="UTF-8"?>
<application xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/application_5.xsd" version="5">
  <description>Geronimo Sample EAR for jms-mdb</description>
  <display-name>Geronimo Sample EAR for jms-mdb</display-name>
  <module>
    <ejb>jms-mdb-ejb-2.1.2-SNAPSHOT.jar</ejb>
  </module>
  <module>
    <web>
      <web-uri>jms-mdb-war-2.1.2-SNAPSHOT.war</web-uri>
      <context-root>/order</context-root>
    </web>
  </module>
</application>

Where ejb reference is an actual jar jms-mdb-ejb-2.1.2-SNAPSHOT.jar under
jms-mdb.ear

In MyApp deployment plan

<application>
...

<module>
   <ejb>app-ejb.jar<ejb>
</module>

...
</application>

where app-ejb.jar is another folder under:
-> MyApp.ear
    -> app-ejb.jar
       -> META-INF
           - manifest.mf
           - openejb-jar.xml

Is there something I'm missing in migrating from 1.1.1 to 2.1.2?

-- 
View this message in context: http://www.nabble.com/javax.jms.JMSException%3A-Failed-to-build-body-from-bytes-tp18404327s134p19962992.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.


Re: javax.jms.JMSException: Failed to build body from bytes

Posted by jklcom99 <je...@yahoo.com>.
Kevan,

I went through the deployment plans again and not seeing anything... no
idea.

Here's what got started between the two servers, maybe you will see
something:

For G1.1.1
100%  89s Startup complete                  Listening on Ports:
     [java]     1527 127.0.0.1 Derby Connector
     [java]     1099 0.0.0.0   RMI Naming
     [java]     4201 127.0.0.1 ActiveIO Connector EJB
     [java]     4242 127.0.0.1 Remote Login Listener
     [java]     8009 127.0.0.1 Tomcat Connector AJP
     [java]     8080 127.0.0.1 Tomcat Connector HTTP
     [java]     8888 0.0.0.0   ActiveMQ Message Broker Connector
     [java]     8443 0.0.0.0   Tomcat Connector HTTPS
     [java]     9999 127.0.0.1 JMX Remoting Connector
     [java]
     [java]   Started Application Modules:
     [java]     EAR: geronimo/webconsole-tomcat/1.1.1/car
     [java]     EAR: myApp/1.0/car
     [java]     RAR: geronimo/activemq/1.1.1/car
     [java]     RAR: appDataSource/1.0/rar
     [java]     RAR: appJMS/1.0/rar
     [java]     WAR: geronimo/remote-deploy-tomcat/1.1.1/car
     [java]     WAR: appWeb/1.0/war

For G2.1.2
100% 105s Startup complete            Listening on Ports:
     [java]     1050 127.0.0.1 CORBA Naming Service
     [java]     1527 127.0.0.1 Derby Connector
     [java]     2001 127.0.0.1 OpenEJB ORB Adapter
     [java]     1099 0.0.0.0   RMI Naming
     [java]     4201 127.0.0.1 OpenEJB Daemon
     [java]     6882 127.0.0.1 OpenEJB ORB Adapter
     [java]     8009 127.0.0.1 Tomcat Connector AJP AJP
     [java]     8080 127.0.0.1 Tomcat Connector HTTP BIO HTTP
     [java]     8888 127.0.0.1 ActiveMQ Transport Connector
     [java]     8443 127.0.0.1 Tomcat Connector HTTPS BIO HTTPS
     [java]     9999 127.0.0.1 JMX Remoting Connector
     [java]    61613 127.0.0.1 ActiveMQ Transport Connector
     [java]
     [java]   Started Application Modules:
     [java]     EAR: myApp/1.0/car
     [java]     EAR: org.apache.geronimo.configs/uddi-tomcat/2.1.2/car
     [java]     EAR: org.apache.geronimo.plugins/console-tomcat/2.1.2/car
     [java]     JAR: org.apache.geronimo.configs/mejb/2.1.2/car
     [java]     JAR: org.apache.geronimo.plugins/agent/2.1.2/car
     [java]     RAR: appDataSource/1.0/rar
     [java]     RAR: appJMS/1.0/rar
     [java]     RAR: org.apache.geronimo.configs/activemq-ra/2.1.2/car
     [java]     RAR: org.apache.geronimo.configs/system-database/2.1.2/car
     [java]     RAR: org.apache.geronimo.plugins/agent-ds/2.1.2/car
     [java]     RAR: org.apache.geronimo.plugins/mconsole-ds/2.1.2/car
     [java]     WAR: appWeb/1.0/war
     [java]     WAR:
org.apache.geronimo.configs/dojo-legacy-tomcat/2.1.2/car
     [java]     WAR: org.apache.geronimo.configs/dojo-tomcat/2.1.2/car
     [java]     WAR:
org.apache.geronimo.configs/remote-deploy-tomcat/2.1.2/car
     [java]     WAR:
org.apache.geronimo.plugins/plancreator-console-tomcat/2.1.2/car
     [java]     WAR:
org.apache.geronimo.plugins/plugin-console-tomcat/2.1.2/car
     [java]     WAR:
org.apache.geronimo.plugins/sysdb-console-tomcat/2.1.2/car

-- 
View this message in context: http://www.nabble.com/javax.jms.JMSException%3A-Failed-to-build-body-from-bytes-tp18404327s134p20016160.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.


Re: javax.jms.JMSException: Failed to build body from bytes

Posted by jklcom99 <je...@yahoo.com>.
Hi Kevan,

Thanks for looking into this, hope we can get closure soon :-).
openejb-jar.xml:

<openejb-jar xmlns="http://openejb.apache.org/xml/ns/openejb-jar-2.2">
    <dep:environment
xmlns:dep="http://geronimo.apache.org/xml/ns/deployment-1.2">
		<dep:moduleId>
			<dep:groupId>myApp</dep:groupId>
			<dep:artifactId>AppServicesEjb</dep:artifactId>
			<dep:version>1.0</dep:version>
			<dep:type>car</dep:type>
		</dep:moduleId>
		<dependencies xmlns='http://geronimo.apache.org/xml/ns/deployment-1.2'>
			<dependency>
				<groupId>myApp</groupId>
				<artifactId>AppDataSource</artifactId>
				<version>1.0</version>
				<type>rar</type>
			</dependency>
		</dependencies>
		<dep:hidden-classes/>
		<dep:non-overridable-classes/>
	</dep:environment>
	<enterprise-beans>
		<session>
			<ejb-name>AppServices</ejb-name>
			<ejb-ref xmlns="http://geronimo.apache.org/xml/ns/naming-1.2">
				<ref-name>ejb/AppServices</ref-name>
				<ejb-link>AppServices</ejb-link>
			</ejb-ref>
			<ejb-local-ref xmlns="http://geronimo.apache.org/xml/ns/naming-1.2">
				<ref-name>AppServicesLocal</ref-name>
				<ejb-link>AppServices</ejb-link>
			</ejb-local-ref>
      <resource-adapter>
        <resource-link>Resources-ConnectionFactory</resource-link>
      </resource-adapter>
      <resource-ref xmlns="http://geronimo.apache.org/xml/ns/naming-1.2">
				<ref-name>jdbc/myApp.datasource</ref-name>
				<resource-link>myApp.datasource</resource-link>
			</resource-ref>
		</session>
	</enterprise-beans>
</openejb-jar>


Kevan Miller wrote:
> 
> 
> On Oct 13, 2008, at 5:10 PM, jklcom99 wrote:
> 
>>
>> Hi Kevan,
>>
>> I tested out your sample with inPlace deplopment today and it works,  
>> the
>> ContextClassLoader is correct.
>>
>> In the sample deployment plan:
>> <?xml version="1.0" encoding="UTF-8"?>
>> <application xmlns="http://java.sun.com/xml/ns/javaee"
>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>> xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
>> http://java.sun.com/xml/ns/javaee/application_5.xsd" version="5">
>>  <description>Geronimo Sample EAR for jms-mdb</description>
>>  <display-name>Geronimo Sample EAR for jms-mdb</display-name>
>>  <module>
>>    <ejb>jms-mdb-ejb-2.1.2-SNAPSHOT.jar</ejb>
>>  </module>
>>  <module>
>>    <web>
>>      <web-uri>jms-mdb-war-2.1.2-SNAPSHOT.war</web-uri>
>>      <context-root>/order</context-root>
>>    </web>
>>  </module>
>> </application>
>>
>> Where ejb reference is an actual jar jms-mdb-ejb-2.1.2-SNAPSHOT.jar  
>> under
>> jms-mdb.ear
>>
>> In MyApp deployment plan
>>
>> <application>
>> ...
>>
>> <module>
>>   <ejb>app-ejb.jar<ejb>
>> </module>
>>
>> ...
>> </application>
>>
>> where app-ejb.jar is another folder under:
>> -> MyApp.ear
>>    -> app-ejb.jar
>>       -> META-INF
>>           - manifest.mf
>>           - openejb-jar.xml
>>
>> Is there something I'm missing in migrating from 1.1.1 to 2.1.2?
> 
> Hi Jeff,
> Slowly, but surely.... :)  So, what does your openejb-jar.xml look  
> like? FYI, I exploded my jar, ran an inplace deploy, and the  
> ClassLoader looks correct. Still looking for a way to reproduce your  
> problem...
> 
> --kevan
> 

-- 
View this message in context: http://www.nabble.com/javax.jms.JMSException%3A-Failed-to-build-body-from-bytes-tp18404327s134p19972648.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.


Re: javax.jms.JMSException: Failed to build body from bytes

Posted by Kevan Miller <ke...@gmail.com>.
On Oct 13, 2008, at 5:10 PM, jklcom99 wrote:

>
> Hi Kevan,
>
> I tested out your sample with inPlace deplopment today and it works,  
> the
> ContextClassLoader is correct.
>
> In the sample deployment plan:
> <?xml version="1.0" encoding="UTF-8"?>
> <application xmlns="http://java.sun.com/xml/ns/javaee"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
> http://java.sun.com/xml/ns/javaee/application_5.xsd" version="5">
>  <description>Geronimo Sample EAR for jms-mdb</description>
>  <display-name>Geronimo Sample EAR for jms-mdb</display-name>
>  <module>
>    <ejb>jms-mdb-ejb-2.1.2-SNAPSHOT.jar</ejb>
>  </module>
>  <module>
>    <web>
>      <web-uri>jms-mdb-war-2.1.2-SNAPSHOT.war</web-uri>
>      <context-root>/order</context-root>
>    </web>
>  </module>
> </application>
>
> Where ejb reference is an actual jar jms-mdb-ejb-2.1.2-SNAPSHOT.jar  
> under
> jms-mdb.ear
>
> In MyApp deployment plan
>
> <application>
> ...
>
> <module>
>   <ejb>app-ejb.jar<ejb>
> </module>
>
> ...
> </application>
>
> where app-ejb.jar is another folder under:
> -> MyApp.ear
>    -> app-ejb.jar
>       -> META-INF
>           - manifest.mf
>           - openejb-jar.xml
>
> Is there something I'm missing in migrating from 1.1.1 to 2.1.2?

Hi Jeff,
Slowly, but surely.... :)  So, what does your openejb-jar.xml look  
like? FYI, I exploded my jar, ran an inplace deploy, and the  
ClassLoader looks correct. Still looking for a way to reproduce your  
problem...

--kevan