geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Krishnakumar B" <www....@gmail.com>
Subject deployment plan error
Date Thu, 07 Dec 2006 10:09:26 GMT
Hi,

I am trying to deploy a SLSB with JPA

The geronimo plan is as follows

<openejb-jar xmlns="http://www.openejb.org/xml/ns/openejb-jar-2.1"
xmlns:nam="http://geronimo.apache.org/xml/ns/naming-1.2">

    <cmp-connection-factory>
        <resource-link>SystemDatasource</resource-link>
    </cmp-connection-factory>

    <enterprise-beans>
        <session>
            <ejb-name>SimpleStatelessSession</ejb-name>
            <jndi-name>client/test/simple/SimpleStatelessSessionHome</jndi-name>
            <nam:persistence-context-ref>
            <nam:persistence-context-ref-name>jpa/simple</nam:persistence-context-ref-name>
            <nam:persistence-unit-name>openjpa-test-unit</nam:persistence-unit-name>
            <nam:persistence-context-type>transaction-scoped</nam:persistence-context-type>
            </nam:persistence-context-ref>
        </session>
    </enterprise-beans>

</openejb-jar>

When i deploy this plan i get the following exception

Could not validate xmlObject of type
T=persistence-context-refType@http://geronimo.apache.org/xml/ns/naming-1.2
org.apache.geronimo.common.DeploymentException: Could not validate
xmlObject of type
T=persistence-context-refType@http://geronimo.apache.org/xml/ns/naming-1.2
	at org.apache.geronimo.naming.deployment.AbstractNamingBuilder.convert(AbstractNamingBuilder.java:142)
	at org.apache.geronimo.persistence.builder.PersistenceContextRefBuilder.getPersistenceContextRefs(PersistenceContextRefBuilder.java:116)
	at org.apache.geronimo.persistence.builder.PersistenceContextRefBuilder.buildNaming(PersistenceContextRefBuilder.java:64)
	at org.apache.geronimo.persistence.builder.PersistenceContextRefBuilder$$FastClassByCGLIB$$adb4ada.invoke(<generated>)
	at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
	at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38)
	at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:122)
	at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:820)
	at org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57)
	at org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java:35)
	at org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:96)
	at org.apache.geronimo.j2ee.deployment.NamingBuilder$$EnhancerByCGLIB$$c07b9577.buildNaming(<generated>)
	at org.apache.geronimo.j2ee.deployment.NamingBuilderCollection.buildNaming(NamingBuilderCollection.java:58)
	at org.apache.geronimo.j2ee.deployment.NamingBuilderCollection$$FastClassByCGLIB$$5fe23b0e.invoke(<generated>)
	at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
	at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38)
	at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:122)
	at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:820)
	at org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57)
	at org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java:35)
	at org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:96)
	at org.apache.geronimo.j2ee.deployment.NamingBuilder$$EnhancerByCGLIB$$c07b9577.buildNaming(<generated>)
	at org.apache.openejb.deployment.XmlBeansSessionBuilder.processEnvironmentRefs(XmlBeansSessionBuilder.java:288)
	at org.apache.openejb.deployment.XmlBeansSessionBuilder.addEJBContainerGBean(XmlBeansSessionBuilder.java:258)
	at org.apache.openejb.deployment.XmlBeansSessionBuilder.buildBeans(XmlBeansSessionBuilder.java:98)
	at org.apache.openejb.deployment.OpenEjbModuleBuilder.addGBeans(OpenEjbModuleBuilder.java:692)
	at org.apache.openejb.deployment.OpenEjbModuleBuilder$$FastClassByCGLIB$$1f23a7d4.invoke(<generated>)
	at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
	at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38)
	at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:122)
	at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:820)
	at org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57)
	at org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java:35)
	at org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:96)
	at org.apache.geronimo.j2ee.deployment.ModuleBuilder$$EnhancerByCGLIB$$35033cf3.addGBeans(<generated>)
	at org.apache.geronimo.j2ee.deployment.EARConfigBuilder.buildConfiguration(EARConfigBuilder.java:572)
	at org.apache.geronimo.j2ee.deployment.EARConfigBuilder$$FastClassByCGLIB$$38e56ec6.invoke(<generated>)
	at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
	at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38)
	at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:122)
	at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:820)
	at org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57)
	at org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java:35)
	at org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:96)
	at org.apache.geronimo.j2ee.deployment.CorbaGBeanNameSource$$EnhancerByCGLIB$$6c30b708.buildConfiguration(<generated>)
	at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:302)
	at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:124)
	at org.apache.geronimo.deployment.Deployer$$FastClassByCGLIB$$734a235d.invoke(<generated>)
	at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
	at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38)
	at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:122)
	at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:855)
	at org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java:239)
	at org.apache.geronimo.deployment.plugin.local.AbstractDeployCommand.doDeploy(AbstractDeployCommand.java:114)
	at org.apache.geronimo.deployment.plugin.local.DistributeCommand.run(DistributeCommand.java:60)
	at java.lang.Thread.run(Thread.java:595)
Caused by: org.apache.xmlbeans.XmlException: Invalid deployment
descriptor: [jar:file:/C:/geronimo_testing/geronimo-jetty6-jee5-2.0-SNAPSHOT/var/temp/geronimo-deployer2545.tmpdir/test-ejb-jpa-2.0-SNAPSHOT.jar!/META-INF/openejb-jar.xml:33:
error: cvc-elt.2: Element
'abstract-naming-entry@http://geronimo.apache.org/xml/ns/naming-1.2'
is abstract and cannot be used in an instance]
Descriptor: <xml-fragment
xmlns:nam="http://geronimo.apache.org/xml/ns/naming-1.2">
  <nam:persistence-context-ref-name>jpa/simple</nam:persistence-context-ref-name>
  <nam:persistence-unit-name>openjpa-test-unit</nam:persistence-unit-name>
  <nam:persistence-context-type>transaction-scoped</nam:persistence-context-type>
</xml-fragment>
	at org.apache.geronimo.deployment.xmlbeans.XmlBeansUtil.validateDD(XmlBeansUtil.java:213)
	at org.apache.geronimo.naming.deployment.AbstractNamingBuilder.convert(AbstractNamingBuilder.java:140)
	... 55 more

I get the same error when i deploy the JPA version of daytrader.

Any help on how to proceed.

Regards
Krish

Mime
View raw message