You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@geronimo.apache.org by David Blevins <da...@visi.com> on 2007/10/03 01:37:43 UTC
Re: message-driven-destination tag doesn't work
Score 1 more for you :) Found another bug. I filed a jira here
http://issues.apache.org/jira/browse/OPENEJB-701
Essentially the tag was removed as of EJB 2.1 and replaced with this:
<message-driven>...
<activation-config>
<activation-config-property>
<activation-config-property-name>destinationType</activation-
config-property-name>
<activation-config-property-value>javax.jms.Queue</activation-
config-property-value>
</activation-config-property>
</activation-config>
</message-driven>
I thought we had code in there to convert this, but apparently we
don't. We will definitely add that. In the mean time you can use
the "new" tag for specifying javax.jms.Queue and things will work.
-David
On Sep 26, 2007, at 7:15 AM, Zakharov, Vasily M wrote:
> Hi, all,
>
> Is <message-driven><message-driven-destination> tag still correct or
> not?
>
> I'm trying to deploy SPECjAppServer2004 on G2.0.1, and ejb-jar.xml
> file
> in one of the SjAS modules contains the following code:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise
> JavaBeans 2.0//EN" "http://java.sun.com/dtd/ejb-jar_2_0.dtd">
> <ejb-jar> ...
> <enterprise-beans> ...
> <message-driven> ...
> <message-driven-destination>
>
> <destination-type>javax.jms.Queue</destination-type>
> </message-driven-destination>
>
> At deployment the following error is produced:
>
> ... Caused by: javax.xml.bind.UnmarshalException: unexpected element
> (uri:"http://java.sun.com/xml/ns/javaee",
> local:"message-driven-destination").
> (see the full stack at the end of this mail at [1])
>
> On G1.2 this code worked fine. If <message-driven-destination> tag is
> removed altogether, the deployment goes ok on G2.0.1 also. Is it a bug
> or am I doing something wrong?
>
> Vasily Zakharov
> Intel ESSD
>
>
> [1]
> 20:05:34,112 ERROR [Deployer] Deployment failed due to
> org.apache.geronimo.common.DeploymentException: Failed parsing
> descriptors for module: C:\VMZ\Temp\geronimo-deploymentUtil34703.jar
> at
> org.apache.geronimo.openejb.deployment.EjbModuleBuilder.createModule
> (Ejb
> ModuleBuilder.java:239)
> at
> org.apache.geronimo.openejb.deployment.EjbModuleBuilder.createModule
> (Ejb
> ModuleBuilder.java:168)
> at
> org.apache.geronimo.openejb.deployment.EjbModuleBuilder$
> $FastClassByCGLI
> B$$cd80af20.invoke(<generated>)
> at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
> at
> org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke
> (FastMethodInv
> oker.java:38)
> at
> org.apache.geronimo.gbean.runtime.GBeanOperation.invoke
> (GBeanOperation.j
> ava:124)
> at
> org.apache.geronimo.gbean.runtime.GBeanInstance.invoke
> (GBeanInstance.jav
> a:830)
> at
> org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:
> 57)
> at
> org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke
> (RawOperation
> Invoker.java:35)
> at
> org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept
> (ProxyM
> ethodInterceptor.java:96)
> at
> org.apache.geronimo.j2ee.deployment.ModuleBuilder$$EnhancerByCGLIB$
> $4ad8
> 1242.createModule(<generated>)
> at
> org.apache.geronimo.j2ee.deployment.EARConfigBuilder.addModules
> (EARConfi
> gBuilder.java:767)
> at
> org.apache.geronimo.j2ee.deployment.EARConfigBuilder.getEarPlan
> (EARConfi
> gBuilder.java:384)
> at
> org.apache.geronimo.j2ee.deployment.EARConfigBuilder.getDeploymentPlan
> (E
> ARConfigBuilder.java:277)
> 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
> (FastMethodInv
> oker.java:38)
> at
> org.apache.geronimo.gbean.runtime.GBeanOperation.invoke
> (GBeanOperation.j
> ava:124)
> at
> org.apache.geronimo.gbean.runtime.GBeanInstance.invoke
> (GBeanInstance.jav
> a:830)
> at
> org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:
> 57)
> at
> org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke
> (RawOperation
> Invoker.java:35)
> at
> org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept
> (ProxyM
> ethodInterceptor.java:96)
> at
> org.apache.geronimo.j2ee.deployment.CorbaGBeanNameSource$
> $EnhancerByCGLI
> B$$82058c57.getDeploymentPlan(<generated>)
> at
> org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:234)
> at
> org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:126)
> at
> org.apache.geronimo.deployment.Deployer$$FastClassByCGLIB$
> $734a235d.invo
> ke(<generated>)
> at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
> at
> org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke
> (FastMethodInv
> oker.java:38)
> at
> org.apache.geronimo.gbean.runtime.GBeanOperation.invoke
> (GBeanOperation.j
> ava:124)
> at
> org.apache.geronimo.gbean.runtime.GBeanInstance.invoke
> (GBeanInstance.jav
> a:865)
> at
> org.apache.geronimo.kernel.basic.BasicKernel.invoke
> (BasicKernel.java:239
> )
> at
> org.apache.geronimo.kernel.KernelGBean.invoke(KernelGBean.java:342)
> at
> org.apache.geronimo.kernel.KernelGBean$$FastClassByCGLIB$
> $1cccefc9.invok
> e(<generated>)
> at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
> at
> org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke
> (FastMethodInv
> oker.java:38)
> at
> org.apache.geronimo.gbean.runtime.GBeanOperation.invoke
> (GBeanOperation.j
> ava:124)
> at
> org.apache.geronimo.gbean.runtime.GBeanInstance.invoke
> (GBeanInstance.jav
> a:865)
> at
> org.apache.geronimo.kernel.basic.BasicKernel.invoke
> (BasicKernel.java:239
> )
> at
> org.apache.geronimo.system.jmx.MBeanGBeanBridge.invoke
> (MBeanGBeanBridge.
> java:168)
> at
> com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke
> (DynamicMetaDataImpl.j
> ava:213)
> at
> com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220)
> at
> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke
> (DefaultMBea
> nServerInterceptor.java:815)
> at
> com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784)
> at
> javax.management.remote.rmi.RMIConnectionImpl.doOperation
> (RMIConnectionI
> mpl.java:1408)
> at
> javax.management.remote.rmi.RMIConnectionImpl.access$100
> (RMIConnectionIm
> pl.java:81)
> at
> javax.management.remote.rmi.RMIConnectionImpl
> $PrivilegedOperation.run(RM
> IConnectionImpl.java:1245)
> at java.security.AccessController.doPrivileged(Native Method)
> at
> javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation
> (RMIC
> onnectionImpl.java:1348)
> at
> javax.management.remote.rmi.RMIConnectionImpl.invoke
> (RMIConnectionImpl.j
> ava:782)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke
> (NativeMethodAccessorImpl.jav
> a:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke
> (DelegatingMethodAccessor
> Impl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at
> sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294)
> at sun.rmi.transport.Transport$1.run(Transport.java:153)
> at java.security.AccessController.doPrivileged(Native Method)
> at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
> at
> sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:
> 466)
> at
> sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run
> (TCPTransport.ja
> va:707)
> at java.lang.Thread.run(Thread.java:595)
> Caused by: org.apache.openejb.OpenEJBException: Cannot unmarshall the
> ejb-jar.xml file:
> jar:file:/C:/VMZ/Temp/geronimo-deploymentUtil34703.jar!/META-INF/
> ejb-jar
> .xml: unexpected element (uri:"http://java.sun.com/xml/ns/javaee",
> local:"message-driven-destination"). Expected elements are
> <{http://java.sun.com/xml/ns/javaee}display-name>,<{http://
> java.sun.com/
> xml/ns/javaee}post-construct>,<{http://java.sun.com/xml/ns/javaee}
> timeou
> t-method>,<{http://java.sun.com/xml/ns/javaee}ejb-ref>,<{http://
> java.sun
> .com/xml/ns/javaee}around-invoke>,<{http://java.sun.com/xml/ns/
> javaee}me
> ssaging-type>,<{http://java.sun.com/xml/ns/javaee}icon>,<{http://
> java.su
> n.com/xml/ns/javaee}resource-ref>,<{http://java.sun.com/xml/ns/
> javaee}ac
> tivation-config>,<{http://java.sun.com/xml/ns/javaee}transaction-
> type>,<
> {http://java.sun.com/xml/ns/javaee}ejb-class>,<{http://java.sun.com/
> xml/
> ns/javaee}ejb-local-ref>,<{http://java.sun.com/xml/ns/javaee}
> message-des
> tination-ref>,<{http://java.sun.com/xml/ns/javaee}env-entry>,<
> {http://ja
> va.sun.com/xml/ns/javaee}description>,<{http://java.sun.com/xml/ns/
> javae
> e}security-identity>,<{http://java.sun.com/xml/ns/javaee}ejb-name>,<
> {htt
> p://java.sun.com/xml/ns/javaee}mapped-name>,<{http://java.sun.com/
> xml/ns
> /javaee}service-ref>,<{http://java.sun.com/xml/ns/javaee}message-
> destina
> tion-type>,<{http://java.sun.com/xml/ns/javaee}persistence-context-
> ref>,
> <{http://java.sun.com/xml/ns/javaee}message-destination-link>,<
> {http://j
> ava.sun.com/xml/ns/javaee}resource-env-ref>,<{http://java.sun.com/
> xml/ns
> /javaee}persistence-unit-ref>,<{http://java.sun.com/xml/ns/javaee}
> pre-de
> stroy>
> at
> org.apache.openejb.config.ReadDescriptors.readEjbJar
> (ReadDescriptors.jav
> a:260)
> at
> org.apache.openejb.config.ReadDescriptors.deploy
> (ReadDescriptors.java:52
> )
> at
> org.apache.geronimo.openejb.deployment.EjbModuleBuilder.createModule
> (Ejb
> ModuleBuilder.java:237)
> ... 59 more
> Caused by: javax.xml.bind.UnmarshalException: unexpected element
> (uri:"http://java.sun.com/xml/ns/javaee",
> local:"message-driven-destination"). Expected elements are
> <{http://java.sun.com/xml/ns/javaee}display-name>,<{http://
> java.sun.com/
> xml/ns/javaee}post-construct>,<{http://java.sun.com/xml/ns/javaee}
> timeou
> t-method>,<{http://java.sun.com/xml/ns/javaee}ejb-ref>,<{http://
> java.sun
> .com/xml/ns/javaee}around-invoke>,<{http://java.sun.com/xml/ns/
> javaee}me
> ssaging-type>,<{http://java.sun.com/xml/ns/javaee}icon>,<{http://
> java.su
> n.com/xml/ns/javaee}resource-ref>,<{http://java.sun.com/xml/ns/
> javaee}ac
> tivation-config>,<{http://java.sun.com/xml/ns/javaee}transaction-
> type>,<
> {http://java.sun.com/xml/ns/javaee}ejb-class>,<{http://java.sun.com/
> xml/
> ns/javaee}ejb-local-ref>,<{http://java.sun.com/xml/ns/javaee}
> message-des
> tination-ref>,<{http://java.sun.com/xml/ns/javaee}env-entry>,<
> {http://ja
> va.sun.com/xml/ns/javaee}description>,<{http://java.sun.com/xml/ns/
> javae
> e}security-identity>,<{http://java.sun.com/xml/ns/javaee}ejb-name>,<
> {htt
> p://java.sun.com/xml/ns/javaee}mapped-name>,<{http://java.sun.com/
> xml/ns
> /javaee}service-ref>,<{http://java.sun.com/xml/ns/javaee}message-
> destina
> tion-type>,<{http://java.sun.com/xml/ns/javaee}persistence-context-
> ref>,
> <{http://java.sun.com/xml/ns/javaee}message-destination-link>,<
> {http://j
> ava.sun.com/xml/ns/javaee}resource-env-ref>,<{http://java.sun.com/
> xml/ns
> /javaee}persistence-unit-ref>,<{http://java.sun.com/xml/ns/javaee}
> pre-de
> stroy>
> at
> com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext.handleEv
> en
> t(UnmarshallingContext.java:523)
> at
> com.sun.xml.bind.v2.runtime.unmarshaller.Loader.reportError
> (Loader.java:
> 199)
> at
> com.sun.xml.bind.v2.runtime.unmarshaller.Loader.reportError
> (Loader.java:
> 194)
> at
> com.sun.xml.bind.v2.runtime.unmarshaller.Loader.reportUnexpectedChildE
> le
> ment(Loader.java:71)
> at
> com.sun.xml.bind.v2.runtime.unmarshaller.Loader.childElement
> (Loader.java
> :65)
> at
> com.sun.xml.bind.v2.runtime.unmarshaller.StructureLoader.childElement(
> St
> ructureLoader.java:209)
> at
> com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext._startEl
> em
> ent(UnmarshallingContext.java:366)
> at
> com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext.startEle
> me
> nt(UnmarshallingContext.java:347)
> at
> com.sun.xml.bind.v2.runtime.unmarshaller.SAXConnector.startElement
> (SAXCo
> nnector.java:101)
> at
> org.xml.sax.helpers.XMLFilterImpl.startElement(XMLFilterImpl.java:527)
> at
> org.apache.openejb.jee.JaxbJavaee$NamespaceFilter.startElement
> (JaxbJavae
> e.java:124)
> at
> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElem
> en
> t(AbstractSAXParser.java:533)
> at
> com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.startEleme
> nt
> (XMLDTDValidator.java:798)
> at
> com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanS
> ta
> rtElement(XMLNSDocumentScannerImpl.java:330)
> at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl
> $F
> ragmentContentDispatcher.dispatch
> (XMLDocumentFragmentScannerImpl.java:16
> 93)
> at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl
> .s
> canDocument(XMLDocumentFragmentScannerImpl.java:368)
> at
> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse
> (XML1
> 1Configuration.java:834)
> at
> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse
> (XML1
> 1Configuration.java:764)
> at
> com.sun.org.apache.xerces.internal.parsers.XMLParser.parse
> (XMLParser.jav
> a:148)
> at
> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse
> (Abstr
> actSAXParser.java:1242)
> at
> org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:333)
> at
> com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0
> (Unm
> arshallerImpl.java:194)
> at
> com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal
> (Unma
> rshallerImpl.java:167)
> at
> javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal
> (AbstractUnmars
> hallerImpl.java:120)
> at
> javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal
> (AbstractUnmars
> hallerImpl.java:103)
> at
> org.apache.openejb.jee.JaxbJavaee.unmarshal(JaxbJavaee.java:103)
> at
> org.apache.openejb.config.ReadDescriptors.readEjbJar
> (ReadDescriptors.jav
> a:255)
> ... 61 more
> --------------------------------------------------------------------
> Closed Joint Stock Company Intel A/O
> Registered legal address: 125252, Moscow, Russian Federation,
> Chapayevsky Per, 14.
>
> This e-mail and any attachments may contain confidential material for
> the sole use of the intended recipient(s). Any review or distribution
> by others is strictly prohibited. If you are not the intended
> recipient, please contact the sender and delete all copies.
>