I am trying to migrate an app running in geronimo 1.1.1 to 2.0-m5.

I get the following errors

1) During deployment

[severity=ERROR,message=unexpected element (uri:"http://www.openejb.org/openejb-
jar/1.1", local:"cmp-connection-factory"). Expected elements are <{http://www.op
enejb.org/openejb-jar/1.1}ejb-deployment>,locator=[node=null,object=null,url=nul
l,line=2,col=93,offset=-1]]

My plan has

<ejb>TestEJB.jar</ejb>
     <openejb-jar xmlns="http://www.openejb.org/xml/ns/openejb-jar-2.1";>
      <cmp-connection-factory>
       <resource-link>jdbc/testdb</resource-link>
     </cmp-connection-factory>
     <enterprise-beans>
....

     <resourceadapter>
       <outbound-resourceadapter>
         <connection-definition>
           
<connectionfactory-interface>javax.sql.DataSource</connectionfactory-interface>
           <connectiondefinition-instance>
             <name>jdbc/testdb</name>
.....

And a Null pointer exception

java.lang.NullPointerException
       at org.apache.geronimo.openejb.deployment.EjbRefBuilder.addRefs(EjbRefBu
ilder.java:245)
       at org.apache.geronimo.openejb.deployment.EjbRefBuilder.buildNaming(EjbR
efBuilder.java:112)
       at org.apache.geronimo.openejb.deployment.EjbRefBuilder$$FastClassByCGLI
B$$dbba8597.invoke(<generated>)
       at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
       at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethod
Invoker.java:38)
       at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperatio
n.java:127)
       at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.
java:820)
       at org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:5
7)
       at org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperat
ionInvoker.java:35)
       at org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(Pro
xyMethodInterceptor.java:96)
       at org.apache.geronimo.j2ee.deployment.NamingBuilder$$EnhancerByCGLIB$$f
c95401b.buildNaming(<generated>)
       at org.apache.geronimo.j2ee.deployment.NamingBuilderCollection.buildNami
ng(NamingBuilderCollection.java:58)
       at org.apache.geronimo.j2ee.deployment.NamingBuilderCollection$$FastClas
sByCGLIB$$5fe23b0e.invoke(<generated>)
       at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
       at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethod
Invoker.java:38)
       at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperatio
n.java:127)
       at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.
java:820)
       at org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:5
7)
       at org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperat
ionInvoker.java:35)
       at org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(Pro
xyMethodInterceptor.java:96)
       at org.apache.geronimo.j2ee.deployment.NamingBuilder$$EnhancerByCGLIB$$f
c95401b.buildNaming(<generated>)

the web module has a ejb-ref

   <web>TestWeb.war</web>
   <web-app xmlns="http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-1.2";>
        <context-root>/test</context-root>
        <ejb-ref xmlns="http://geronimo.apache.org/xml/ns/naming-1.2";>
                <ref-name>ejb/CarRentalManager</ref-name>
                <pattern>
                        <name>CarRentalManager</name>
                </pattern>
        </ejb-ref>
   </web-app>
.......
  <enterprise-beans>
       <session>
        <ejb-name>CarRentalManager</ejb-name>
        <jndi-name>ejb/CarRentalManager</jndi-name>
      </session>
.............

This application runs in 1.1.1 and i am running as is in 2.0 after
changing namespace references to 1.2 in the geronimo plan.

<application xmlns="http://geronimo.apache.org/xml/ns/j2ee/application-1.2";
.....

regards
Krish

Reply via email to