Can you update your code to the latest cvs head and check again?

-dain

On Jun 16, 2004, at 4:39 AM, Philip Mark Donaghy wrote:

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 <[EMAIL PROTECTED]> 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(OpenEJBModuleBuil der.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(FastMethodInvoke r.java:38)
        at

org.apache.geronimo.gbean.jmx.GBeanMBeanOperation.invoke(GBeanMBeanOper ation.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(RawOperationIn voker.java:34)
        at

org.apache.geronimo.gbean.jmx.CGLibMethodInterceptor.intercept(CGLibMet hodInterceptor.java:110)
        at

org.apache.geronimo.j2ee.deployment.ModuleBuilder$$EnhancerByCGLIB$$9e4 5a280.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(FastMethodInvoke r.java:38)
        at

org.apache.geronimo.gbean.jmx.GBeanMBeanOperation.invoke(GBeanMBeanOper ation.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(RawOperationIn voker.java:34)
        at

org.apache.geronimo.gbean.jmx.CGLibMethodInterceptor.intercept(CGLibMet hodInterceptor.java:110)
        at

org.apache.geronimo.deployment.ConfigurationBuilder$$EnhancerByCGLIB$$7 a1ca0ae.buildConfiguration(<generated>)
        at

org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:132)
        at

org.apache.geronimo.deployment.Deployer$$FastClassByCGLIB$$734a235d.inv oke(<generated>)
        at

net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:87)
        at

org.apache.geronimo.gbean.jmx.FastMethodInvoker.invoke(FastMethodInvoke r.java:38)
        at

org.apache.geronimo.gbean.jmx.GBeanMBeanOperation.invoke(GBeanMBeanOper ation.java:141)
        at

org.apache.geronimo.gbean.jmx.GBeanMBean.invoke(GBeanMBean.java:761)
        at

mx4j.server.interceptor.InvokerMBeanServerInterceptor.invoke(InvokerMBe anServerInterceptor.java:218)
        at

mx4j.server.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBe anServerInterceptor.java:121)
        at

mx4j.server.interceptor.SecurityMBeanServerInterceptor.invoke(SecurityM BeanServerInterceptor.java:86)
        at

mx4j.server.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBe anServerInterceptor.java:121)
        at

mx4j.server.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBe anServerInterceptor.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



Reply via email to