geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jklcom99 <jeff_k...@yahoo.com>
Subject Re: javax.jms.JMSException: Failed to build body from bytes
Date Tue, 14 Oct 2008 12:38:13 GMT

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.


Mime
View raw message