geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Philip Mark Donaghy <pmdgeron...@yahoo.fr>
Subject Re: Problem testing ConverterApp from J2EETutorial
Date Wed, 16 Jun 2004 11:39:48 GMT
Seems to be that this bug is due to the fact that the
builder is looking for the assembly-descriptor
element. This element is optional according to the xml
schema descriptor file
http://java.sun.com/xml/ns/j2ee/ejb-jar_2_1.xsd

I'll submit a bug, the workaround is to include an
empty <assembly-descriptor/> element to the ejb
deployment descriptor.

Phil

--- Philip Mark Donaghy <pmdgeronimo@yahoo.fr> a écrit
: > Hello Geronimo users and developers,
> 
> Sun's J2EE Tutorial comes with provided ears which
> need to be modified to work with Geronimo.
> 
> <tutorial_install>/examples/ejb/provided-ears
> 
> I am attempted to deploy the ConverterApp. Keeping
> it
> simple for now :)
> 
> I extracted the provided jar.
> I have added an openejb-jar.xml to META-INF.
> 
> Problem occurs during deployment. See stack trace :
> 
> java -jar bin/deployer.jar --install --module
>
/home/phil/soft/doc/j2eetutorial14/examples/ejb/provided-ears/ConverterApp/ejb-jar-ic-geronimo.jar
> java.lang.NullPointerException
>         at
>
org.openejb.deployment.OpenEJBModuleBuilder.addGBeans(OpenEJBModuleBuilder.java:409)
>         at
>
org.openejb.deployment.OpenEJBModuleBuilder$$FastClassByCGLIB$$11bd7b20.invoke(<generated>)
>         at
>
net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:87)
>         at
>
org.apache.geronimo.gbean.jmx.FastMethodInvoker.invoke(FastMethodInvoker.java:38)
>         at
>
org.apache.geronimo.gbean.jmx.GBeanMBeanOperation.invoke(GBeanMBeanOperation.java:141)
>         at
>
org.apache.geronimo.gbean.jmx.GBeanMBean.invoke(GBeanMBean.java:740)
>         at
>
org.apache.geronimo.gbean.jmx.RawInvoker.invoke(RawInvoker.java:89)
>         at
>
org.apache.geronimo.gbean.jmx.RawOperationInvoker.invoke(RawOperationInvoker.java:34)
>         at
>
org.apache.geronimo.gbean.jmx.CGLibMethodInterceptor.intercept(CGLibMethodInterceptor.java:110)
>         at
>
org.apache.geronimo.j2ee.deployment.ModuleBuilder$$EnhancerByCGLIB$$9e45a280.addGBeans(<generated>)
>         at
>
org.apache.geronimo.j2ee.deployment.EARConfigBuilder.buildConfiguration(EARConfigBuilder.java:209)
>         at
>
org.apache.geronimo.j2ee.deployment.EARConfigBuilder.buildConfiguration(EARConfigBuilder.java:142)
>         at
>
org.apache.geronimo.j2ee.deployment.EARConfigBuilder$$FastClassByCGLIB$$38e56ec6.invoke(<generated>)
>         at
>
net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:87)
>         at
>
org.apache.geronimo.gbean.jmx.FastMethodInvoker.invoke(FastMethodInvoker.java:38)
>         at
>
org.apache.geronimo.gbean.jmx.GBeanMBeanOperation.invoke(GBeanMBeanOperation.java:141)
>         at
>
org.apache.geronimo.gbean.jmx.GBeanMBean.invoke(GBeanMBean.java:740)
>         at
>
org.apache.geronimo.gbean.jmx.RawInvoker.invoke(RawInvoker.java:89)
>         at
>
org.apache.geronimo.gbean.jmx.RawOperationInvoker.invoke(RawOperationInvoker.java:34)
>         at
>
org.apache.geronimo.gbean.jmx.CGLibMethodInterceptor.intercept(CGLibMethodInterceptor.java:110)
>         at
>
org.apache.geronimo.deployment.ConfigurationBuilder$$EnhancerByCGLIB$$7a1ca0ae.buildConfiguration(<generated>)
>         at
>
org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:132)
>         at
>
org.apache.geronimo.deployment.Deployer$$FastClassByCGLIB$$734a235d.invoke(<generated>)
>         at
>
net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:87)
>         at
>
org.apache.geronimo.gbean.jmx.FastMethodInvoker.invoke(FastMethodInvoker.java:38)
>         at
>
org.apache.geronimo.gbean.jmx.GBeanMBeanOperation.invoke(GBeanMBeanOperation.java:141)
>         at
>
org.apache.geronimo.gbean.jmx.GBeanMBean.invoke(GBeanMBean.java:761)
>         at
>
mx4j.server.interceptor.InvokerMBeanServerInterceptor.invoke(InvokerMBeanServerInterceptor.java:218)
>         at
>
mx4j.server.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:121)
>         at
>
mx4j.server.interceptor.SecurityMBeanServerInterceptor.invoke(SecurityMBeanServerInterceptor.java:86)
>         at
>
mx4j.server.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:121)
>         at
>
mx4j.server.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:121)
>         at
>
mx4j.server.interceptor.ContextClassLoaderMBeanServerInterceptor.invoke(ContextClassLoaderMBeanServerInterceptor.java:205)
>         at
>
mx4j.server.MX4JMBeanServer.invoke(MX4JMBeanServer.java:1079)
>         at
>
org.apache.geronimo.kernel.Kernel.invoke(Kernel.java:231)
>         at
>
org.apache.geronimo.system.main.CommandLine.main(CommandLine.java:82)
> 
> Any ideas, openejb-jar.xml and ejb-jar.xml are
> attached.
> 
> Thanks,
> 
> Phil
> 
> 
> 	
> 
> 	
> 		
> Yahoo! Mail : votre e-mail personnel et gratuit qui
> vous suit partout ! 
> Créez votre Yahoo! Mail sur
> http://fr.benefits.yahoo.com/
> 
> Dialoguez en direct avec vos amis grâce à Yahoo!
> Messenger !Téléchargez Yahoo! Messenger sur
http://fr.messenger.yahoo.com> <?xml version="1.0"?>
> 
> <openejb-jar
>    
> xmlns="http://www.openejb.org/xml/ns/openejb-jar"
>    
>
configId="your/domain/name/j2eetutorial14/ejb/ConverterApp"
>     parentId="org/apache/geronimo/Server">
> 
>     <enterprise-beans>
>         <session>
>             <ejb-name>ConverterBean</ejb-name>
>             <jndi-name>ConverterBean</jndi-name>
>         </session>
>     </enterprise-beans>
> 
> </openejb-jar>
> > <?xml version="1.0" encoding="UTF-8"?>
> <ejb-jar xmlns="http://java.sun.com/xml/ns/j2ee"
> version="2.1"
>
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
> http://java.sun.com/xml/ns/j2ee/ejb-jar_2_1.xsd">
> <display-name>ConverterJAR</display-name>
> <enterprise-beans>
> <session>
> <ejb-name>ConverterBean</ejb-name>
> <home>converter.ConverterHome</home>
> <remote>converter.Converter</remote>
> <ejb-class>converter.ConverterBean</ejb-class>
> <session-type>Stateless</session-type>
> <transaction-type>Bean</transaction-type>
> <security-identity>
> <use-caller-identity/>
> </security-identity>
> </session>
> </enterprise-beans>
> </ejb-jar>
>  


	

	
		
Yahoo! Mail : votre e-mail personnel et gratuit qui vous suit partout ! 
Créez votre Yahoo! Mail sur http://fr.benefits.yahoo.com/

Dialoguez en direct avec vos amis grâce à Yahoo! Messenger !Téléchargez Yahoo! Messenger
sur http://fr.messenger.yahoo.com

Mime
View raw message