Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 73328 invoked from network); 2 Mar 2008 20:59:42 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 Mar 2008 20:59:42 -0000 Received: (qmail 80614 invoked by uid 500); 2 Mar 2008 20:59:36 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 80588 invoked by uid 500); 2 Mar 2008 20:59:36 -0000 Mailing-List: contact user-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: user@geronimo.apache.org List-Id: Delivered-To: mailing list user@geronimo.apache.org Received: (qmail 80577 invoked by uid 99); 2 Mar 2008 20:59:36 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 02 Mar 2008 12:59:36 -0800 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jaw981@gmail.com designates 72.14.204.234 as permitted sender) Received: from [72.14.204.234] (HELO qb-out-0506.google.com) (72.14.204.234) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 02 Mar 2008 20:58:59 +0000 Received: by qb-out-0506.google.com with SMTP id d8so7227819qbc.3 for ; Sun, 02 Mar 2008 12:59:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; bh=58ZYbEmobNt5MyMGmSGqJdzlo6PYuCVr7KQh60dH44Y=; b=P+c8fqTP4BJh3lS2zXpD06v6A73ASxLvMSEx2rpQq95AV6dg5QkBQJSmtms4p5po1sx+8k/5frDSA6l+e5OtwdoVcv+pgnGgO2F5zGP15JF+hkv1qbTKryvkK+YTycDurHCvnt7WUcp+9Tu8JRX48z4VHAr3MyYbNF2QFw+CpKg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=DD540FUFwlxa+VOAJuLtcYo5pfs/OQibY6hp5ZpL5bJJcEP8CO8U6whRru2I0k1oPpYbKf6LyTwiIS7QV60a6Br7Ed8b63BUAao/cP7mXF73tpq+hSPQXxgcMZGzgjfOmADddPcxbcpifykLejUsU7p3zfSvQOh7HcRL25njFlc= Received: by 10.150.230.2 with SMTP id c2mr4234844ybh.161.1204491547125; Sun, 02 Mar 2008 12:59:07 -0800 (PST) Received: by 10.150.154.19 with HTTP; Sun, 2 Mar 2008 12:59:07 -0800 (PST) Message-ID: <73a75e430803021259n37f4e193ic21d8df86d264f4@mail.gmail.com> Date: Sun, 2 Mar 2008 15:59:07 -0500 From: "Jason Warner" To: user@geronimo.apache.org Subject: Re: exception while running the 5 minute GEP tutorial example In-Reply-To: <15779115.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_1582_22946814.1204491547107" References: <15779115.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_1582_22946814.1204491547107 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline The first thing that jumps out at me is that you're using the deployment-1.1schema. For deployment on Geronimo 2.0, you should be using deployment-1.2. I think the eclipse plugin sets the deployment xmlns to 1.1 when a new web project is created for Geronimo 2.0. This was a bug that was noted a week or so ago in this jira: https://issues.apache.org/jira/browse/GERONIMODEVTOOLS-253 Try changing over to deployment-1.2 in your geronimo-web.xml. Hope this helps! On Sat, Mar 1, 2008 at 1:44 PM, seleshmaster wrote: > > Hi guys; > > I am a newbi to JEE. I installed geronimo 2.0 and I was just following > this > tutorial to get my hands wet > > http://cwiki.apache.org/GMOxDOC21/5-minute-tutorial-on-enterprise-application-development-with-eclipse-and-geronimo.html#5-minuteTutorialonEnterpriseApplicationDevelopmentwithEclipseandGeronimo-CreateEnterpriseApplicationProject > > http://cwiki.apache.org/GMOxDOC21/5-minute-tutorial-on-enterprise-application-development-with-eclipse-and-geronimo.html#5-minuteTutorialonEnterpriseApplicationDevelopmentwithEclipseandGeronimo-CreateEnterpriseApplicationProject > > Finally when I tried to deploy the EAR project on the server, I am > getting > the following exception. Anyone has any idea? > > thx for the help. > > > [severity=ERROR,message=unexpected element > (uri:"http://geronimo.apache.org/xml/ns/deployment-1.1", > local:"environment"). Expected elements are > <{http://openejb.apache.org/xml/ns/openejb-jar-2.2}ejb-ql-compiler-factory > >,<{http://openejb.apache.org/xml/ns/openejb-jar-2.2}enterprise-beans > >,<{http://geronimo.apache.org/xml/ns/deployment-1.2}service > >,<{http://geronimo.apache.org/xml/ns/deployment-1.2}gbean > >,<{http://java.sun.com/xml/ns/persistence}persistence > >,<{http://geronimo.apache.org/xml/ns/naming-1.2}cmp-connection-factory > >,<{http://openejb.apache.org/xml/ns/openejb-jar-2.2}db-syntax-factory > >,<{http://geronimo.apache.org/xml/ns/naming-1.2}message-destination > >,<{ > http://openejb.apache.org/xml/ns/openejb-jar-2.2}enforce-foreign-key-constraints > >,<{http://geronimo.apache.org/xml/ns/security-2.0}security > >,<{http://openejb.apache.org/xml/ns/openejb-jar-2.2}relationships > >,<{http://geronimo.apache.org/xml/ns/deployment-1.2}environment > >,<{http://geronimo.apache.org/xml/ns/j2ee/application-1.2}security > >,locator=[node=null,object=null,url=null,line=3,col=20,offset=-1]] > 13:29:20,805 ERROR [Deployer] Deployment failed due to > org.apache.geronimo.common.DeploymentException: Failed parsing descriptors > for module: /tmp/geronimo-deploymentUtil35456.jar > at > org.apache.geronimo.openejb.deployment.EjbModuleBuilder.createModule( > EjbModuleBuilder.java:277) > at > org.apache.geronimo.openejb.deployment.EjbModuleBuilder.createModule( > EjbModuleBuilder.java:199) > at > > org.apache.geronimo.openejb.deployment.EjbModuleBuilder$$FastClassByCGLIB$$cd80af20.invoke > () > 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:124) > at > org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java > :830) > 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$$2b8f267d.createModule > () > at > org.apache.geronimo.j2ee.deployment.EARConfigBuilder.addModules( > EARConfigBuilder.java:767) > at > org.apache.geronimo.j2ee.deployment.EARConfigBuilder.getEarPlan( > EARConfigBuilder.java:384) > at > org.apache.geronimo.j2ee.deployment.EARConfigBuilder.getDeploymentPlan( > EARConfigBuilder.java:277) > at > > org.apache.geronimo.j2ee.deployment.EARConfigBuilder$$FastClassByCGLIB$$38e56ec6.invoke > () > 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:124) > at > org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java > :830) > 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$$62bca092.getDeploymentPlan > () > 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.invoke > () > 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:124) > at > org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java > :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.invoke > () > 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:124) > at > org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java > :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.java:213) > at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java > :220) > at > com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke( > DefaultMBeanServerInterceptor.java:815) > at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke( > JmxMBeanServer.java:784) > at > javax.management.remote.rmi.RMIConnectionImpl.doOperation( > RMIConnectionImpl.java:1410) > at > javax.management.remote.rmi.RMIConnectionImpl.access$100( > RMIConnectionImpl.java:81) > at > javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run( > RMIConnectionImpl.java:1247) > at java.security.AccessController.doPrivileged(Native Method) > at > javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation( > RMIConnectionImpl.java:1350) > at > javax.management.remote.rmi.RMIConnectionImpl.invoke( > RMIConnectionImpl.java:784) > at sun.reflect.GeneratedMethodAccessor165.invoke(Unknown Source) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke( > DelegatingMethodAccessorImpl.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.java > :707) > at java.lang.Thread.run(Thread.java:613) > Caused by: org.apache.openejb.OpenEJBException: Cannot unmarshall the > openejb-jar.xml. Xml content written to: /tmp/openejb-jar-35457.xml: > unexpected element (uri:"http://geronimo.apache.org/xml/ns/deployment-1.1 > ", > local:"environment"). Expected elements are > <{http://openejb.apache.org/xml/ns/openejb-jar-2.2}ejb-ql-compiler-factory > >,<{http://openejb.apache.org/xml/ns/openejb-jar-2.2}enterprise-beans > >,<{http://geronimo.apache.org/xml/ns/deployment-1.2}service > >,<{http://geronimo.apache.org/xml/ns/deployment-1.2}gbean > >,<{http://java.sun.com/xml/ns/persistence}persistence > >,<{http://geronimo.apache.org/xml/ns/naming-1.2}cmp-connection-factory > >,<{http://openejb.apache.org/xml/ns/openejb-jar-2.2}db-syntax-factory > >,<{http://geronimo.apache.org/xml/ns/naming-1.2}message-destination > >,<{ > http://openejb.apache.org/xml/ns/openejb-jar-2.2}enforce-foreign-key-constraints > >,<{http://geronimo.apache.org/xml/ns/security-2.0}security > >,<{http://openejb.apache.org/xml/ns/openejb-jar-2.2}relationships > >,<{http://geronimo.apache.org/xml/ns/deployment-1.2}environment > >,<{http://geronimo.apache.org/xml/ns/j2ee/application-1.2}security > > > at > org.apache.openejb.config.ReadDescriptors.readOpenejbJar( > ReadDescriptors.java:207) > at > org.apache.openejb.config.ReadDescriptors.deploy(ReadDescriptors.java:65) > at > org.apache.geronimo.openejb.deployment.EjbModuleBuilder.createModule( > EjbModuleBuilder.java:272) > ... 58 more > Caused by: javax.xml.bind.UnmarshalException: unexpected element > (uri:"http://geronimo.apache.org/xml/ns/deployment-1.1", > local:"environment"). Expected elements are > <{http://openejb.apache.org/xml/ns/openejb-jar-2.2}ejb-ql-compiler-factory > >,<{http://openejb.apache.org/xml/ns/openejb-jar-2.2}enterprise-beans > >,<{http://geronimo.apache.org/xml/ns/deployment-1.2}service > >,<{http://geronimo.apache.org/xml/ns/deployment-1.2}gbean > >,<{http://java.sun.com/xml/ns/persistence}persistence > >,<{http://geronimo.apache.org/xml/ns/naming-1.2}cmp-connection-factory > >,<{http://openejb.apache.org/xml/ns/openejb-jar-2.2}db-syntax-factory > >,<{http://geronimo.apache.org/xml/ns/naming-1.2}message-destination > >,<{ > http://openejb.apache.org/xml/ns/openejb-jar-2.2}enforce-foreign-key-constraints > >,<{http://geronimo.apache.org/xml/ns/security-2.0}security > >,<{http://openejb.apache.org/xml/ns/openejb-jar-2.2}relationships > >,<{http://geronimo.apache.org/xml/ns/deployment-1.2}environment > >,<{http://geronimo.apache.org/xml/ns/j2ee/application-1.2}security > > > at > com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext.handleEvent( > 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.reportUnexpectedChildElement > (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( > StructureLoader.java:209) > at > > com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext._startElement > (UnmarshallingContext.java:366) > at > com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext.startElement > (UnmarshallingContext.java:347) > at > com.sun.xml.bind.v2.runtime.unmarshaller.SAXConnector.startElement( > SAXConnector.java:101) > at org.xml.sax.helpers.XMLFilterImpl.startElement( > XMLFilterImpl.java:527) > at > org.apache.openejb.jee.oejb2.NamespaceFilter.startElement( > NamespaceFilter.java:179) > at > com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement( > AbstractSAXParser.java:533) > at > > com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement > (XMLNSDocumentScannerImpl.java:330) > at > > com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch > (XMLDocumentFragmentScannerImpl.java:1693) > at > > com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument > (XMLDocumentFragmentScannerImpl.java:368) > at > com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse( > XML11Configuration.java:834) > at > com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse( > XML11Configuration.java:764) > at > com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java > :148) > at > com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse( > AbstractSAXParser.java:1242) > at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:333) > at > com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0( > UnmarshallerImpl.java:194) > at > com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal( > UnmarshallerImpl.java:167) > at > javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal( > AbstractUnmarshallerImpl.java:120) > at > javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal( > AbstractUnmarshallerImpl.java:103) > at > org.apache.openejb.jee.oejb2.JaxbOpenejbJar2.unmarshal( > JaxbOpenejbJar2.java:104) > at > org.apache.openejb.jee.oejb2.JaxbOpenejbJar2.unmarshal( > JaxbOpenejbJar2.java:66) > at > org.apache.openejb.config.ReadDescriptors.readOpenejbJar( > ReadDescriptors.java:117) > ... 60 more > > > -- > View this message in context: > http://www.nabble.com/exception-while-running-the-5-minute-GEP-tutorial-example-tp15779115s134p15779115.html > Sent from the Apache Geronimo - Users mailing list archive at Nabble.com. > > -- ~Jason Warner ------=_Part_1582_22946814.1204491547107 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline The first thing that jumps out at me is that you're using the deploymen= t-1.1 schema.  For deployment on Geronimo 2.0, you should be using dep= loyment-1.2.  I think the eclipse plugin sets the deployment xmlns to = 1.1 when a new web project is created for Geronimo 2.0.  This was a bu= g that was noted a week or so ago in this jira: https://issues.apache.org/jira/= browse/GERONIMODEVTOOLS-253

Try changing over to deployment-1.2 in your geronimo-web.xml.

Ho= pe this helps!


On Sat, Mar 1, 2008 at= 1:44 PM, seleshmaster <selesh= master@gmail.com> wrote:

Hi guys;

I am a newbi to JEE. I installed geronimo 2.0 and I was just following this=
tutorial to get my hands wet
http://cwiki.apache.org/GMOxDOC21/5-minut= e-tutorial-on-enterprise-application-development-with-eclipse-and-geronimo.= html#5-minuteTutorialonEnterpriseApplicationDevelopmentwithEclipseandGeroni= mo-CreateEnterpriseApplicationProject
http://cwiki.apache.org/GMOxDOC21/5-minut= e-tutorial-on-enterprise-application-development-with-eclipse-and-geronimo.= html#5-minuteTutorialonEnterpriseApplicationDevelopmentwithEclipseandGeroni= mo-CreateEnterpriseApplicationProject

Finally when I tried to deploy  the EAR project on the server, I am ge= tting
the following exception. Anyone has any idea?

thx for the help.


[severity=3DERROR,message=3Dunexpected element
(uri:"http://geronimo.apache.org/xml/ns/deployment-1.1",<= br> local:"environment"). Expected elements are
<{http://openejb.apache.org/xml/ns/openejb= -jar-2.2}ejb-ql-compiler-factory>,<{http:/= /openejb.apache.org/xml/ns/openejb-jar-2.2}enterprise-beans>,<{http://geronimo.apache.org/xml/ns/deployment-1.2}service>= ;,<{http://geronimo.apache.org/xml/ns/deployment-1.2}gbean>,<{http://java.sun.com/xml/ns/persistence}persistence&= gt;,<{http://geronimo.apache.org/xml/ns/naming-= 1.2}cmp-connection-factory>,<{http://open= ejb.apache.org/xml/ns/openejb-jar-2.2}db-syntax-factory>,<{http://geronimo.apache.org/xml/ns/naming-1.2}message-destin= ation>,<{http://openejb.apa= che.org/xml/ns/openejb-jar-2.2}enforce-foreign-key-constraints>,<= {http://geronimo.apache.org/xml/ns/security-2.0}security&g= t;,<{http://openejb.apache.org/xml/ns/openejb-jar-2.= 2}relationships>,<{http://geronimo.apache.org/x= ml/ns/deployment-1.2}environment>,<{http://g= eronimo.apache.org/xml/ns/j2ee/application-1.2}security>,locator=3D[= node=3Dnull,object=3Dnull,url=3Dnull,line=3D3,col=3D20,offset=3D-1]]
13:29:20,805 ERROR [Deployer] Deployment failed due to
org.apache.geronimo.common.DeploymentException: Failed parsing descriptors<= br> for module: /tmp/geronimo-deploymentUtil35456.jar
       at
org.apache.geronimo.openejb.deployment.EjbModuleBuilder.createModule(EjbMod= uleBuilder.java:277)
       at
org.apache.geronimo.openejb.deployment.EjbModuleBuilder.createModule(EjbMod= uleBuilder.java:199)
       at
org.apache.geronimo.openejb.deployment.EjbModuleBuilder$$FastClassByCGLIB$$= cd80af20.invoke(<generated>)
       at net.sf.cglib.reflect.FastMethod.invoke(FastM= ethod.java:53)
       at
org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoke= r.java:38)
       at
org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java= :124)
       at
org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:8= 30)
       at org.apache.geronimo.gbean.runtime.RawInvoker= .invoke(RawInvoker.java:57)
       at
org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInv= oker.java:35)
       at
org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMeth= odInterceptor.java:96)
       at
org.apache.geronimo.j2ee.deployment.ModuleBuilder$$EnhancerByCGLIB$$2b8f267= d.createModule(<generated>)
       at
org.apache.geronimo.j2ee.deployment.EARConfigBuilder.addModules(EARConfigBu= ilder.java:767)
       at
org.apache.geronimo.j2ee.deployment.EARConfigBuilder.getEarPlan(EARConfigBu= ilder.java:384)
       at
org.apache.geronimo.j2ee.deployment.EARConfigBuilder.getDeploymentPlan(EARC= onfigBuilder.java:277)
       at
org.apache.geronimo.j2ee.deployment.EARConfigBuilder$$FastClassByCGLIB$$38e= 56ec6.invoke(<generated>)
       at net.sf.cglib.reflect.FastMethod.invoke(FastM= ethod.java:53)
       at
org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoke= r.java:38)
       at
org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java= :124)
       at
org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:8= 30)
       at org.apache.geronimo.gbean.runtime.RawInvoker= .invoke(RawInvoker.java:57)
       at
org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInv= oker.java:35)
       at
org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMeth= odInterceptor.java:96)
       at
org.apache.geronimo.j2ee.deployment.CorbaGBeanNameSource$$EnhancerByCGLIB$$= 62bca092.getDeploymentPlan(<generated>)
       at org.apache.geronimo.deployment.Deployer.depl= oy(Deployer.java:234)
       at org.apache.geronimo.deployment.Deployer.depl= oy(Deployer.java:126)
       at
org.apache.geronimo.deployment.Deployer$$FastClassByCGLIB$$734a235d.invoke(= <generated>)
       at net.sf.cglib.reflect.FastMethod.invoke(FastM= ethod.java:53)
       at
org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoke= r.java:38)
       at
org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java= :124)
       at
org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:8= 65)
       at
org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java:239)        at org.apache.geronimo.kernel.KernelGBean.invok= e(KernelGBean.java:342)
       at
org.apache.geronimo.kernel.KernelGBean$$FastClassByCGLIB$$1cccefc9.invoke(&= lt;generated>)
       at net.sf.cglib.reflect.FastMethod.invoke(FastM= ethod.java:53)
       at
org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoke= r.java:38)
       at
org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java= :124)
       at
org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:8= 65)
       at
org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java:239)        at
org.apache.geronimo.system.jmx.MBeanGBeanBridge.invoke(MBeanGBeanBridge.jav= a:168)
       at
com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java= :213)
       at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(= MetaDataImpl.java:220)
       at
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanSe= rverInterceptor.java:815)
       at com.sun.jmx.mbeanserver.JmxMBeanServer.invok= e(JmxMBeanServer.java:784)
       at
javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl= .java:1410)
       at
javax.management.remote.rmi.RMIConnectionImpl.access$100(RMIConnectionImpl.= java:81)
       at
javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMICo= nnectionImpl.java:1247)
       at java.security.AccessController.doPrivileged(= Native Method)
       at
javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConn= ectionImpl.java:1350)
       at
javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java= :784)
       at sun.reflect.GeneratedMethodAccessor165.invok= e(Unknown Source)
       at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp= l.java:25)
       at java.lang.reflect.Method.invoke(Method.java:= 585)
       at sun.rmi.server.UnicastServerRef.dispatch(Uni= castServerRef.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(Tran= sport.java:149)
       at sun.rmi.transport.tcp.TCPTransport.handleMes= sages(TCPTransport.java:466)
       at
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:= 707)
       at java.lang.Thread.run(Thread.java:613)
Caused by: org.apache.openejb.OpenEJBException: Cannot unmarshall the
openejb-jar.xml. Xml content written to: /tmp/openejb-jar-35457.xml:
unexpected element (uri:"http://geronimo.apache.org/xml/ns/deploym= ent-1.1",
local:"environment"). Expected elements are
<{http://openejb.apache.org/xml/ns/openejb= -jar-2.2}ejb-ql-compiler-factory>,<{http:/= /openejb.apache.org/xml/ns/openejb-jar-2.2}enterprise-beans>,<{http://geronimo.apache.org/xml/ns/deployment-1.2}service>= ;,<{http://geronimo.apache.org/xml/ns/deployment-1.2}gbean>,<{http://java.sun.com/xml/ns/persistence}persistence&= gt;,<{http://geronimo.apache.org/xml/ns/naming-= 1.2}cmp-connection-factory>,<{http://open= ejb.apache.org/xml/ns/openejb-jar-2.2}db-syntax-factory>,<{http://geronimo.apache.org/xml/ns/naming-1.2}message-destin= ation>,<{http://openejb.apa= che.org/xml/ns/openejb-jar-2.2}enforce-foreign-key-constraints>,<= {http://geronimo.apache.org/xml/ns/security-2.0}security&g= t;,<{http://openejb.apache.org/xml/ns/openejb-jar-2.= 2}relationships>,<{http://geronimo.apache.org/x= ml/ns/deployment-1.2}environment>,<{http://g= eronimo.apache.org/xml/ns/j2ee/application-1.2}security>
       at
org.apache.openejb.config.ReadDescriptors.readOpenejbJar(ReadDescriptors.ja= va:207)
       at
org.apache.openejb.config.ReadDescriptors.deploy(ReadDescriptors.java:65)        at
org.apache.geronimo.openejb.deployment.EjbModuleBuilder.createModule(EjbMod= uleBuilder.java:272)
       ... 58 more
Caused by: javax.xml.bind.UnmarshalException: unexpected element
(uri:"http://geronimo.apache.org/xml/ns/deployment-1.1",<= br> local:"environment"). Expected elements are
<{http://openejb.apache.org/xml/ns/openejb= -jar-2.2}ejb-ql-compiler-factory>,<{http:/= /openejb.apache.org/xml/ns/openejb-jar-2.2}enterprise-beans>,<{http://geronimo.apache.org/xml/ns/deployment-1.2}service>= ;,<{http://geronimo.apache.org/xml/ns/deployment-1.2}gbean>,<{http://java.sun.com/xml/ns/persistence}persistence&= gt;,<{http://geronimo.apache.org/xml/ns/naming-= 1.2}cmp-connection-factory>,<{http://open= ejb.apache.org/xml/ns/openejb-jar-2.2}db-syntax-factory>,<{http://geronimo.apache.org/xml/ns/naming-1.2}message-destin= ation>,<{http://openejb.apa= che.org/xml/ns/openejb-jar-2.2}enforce-foreign-key-constraints>,<= {http://geronimo.apache.org/xml/ns/security-2.0}security&g= t;,<{http://openejb.apache.org/xml/ns/openejb-jar-2.= 2}relationships>,<{http://geronimo.apache.org/x= ml/ns/deployment-1.2}environment>,<{http://g= eronimo.apache.org/xml/ns/j2ee/application-1.2}security>
       at
com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext.handleEvent(U= nmarshallingContext.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.reportUnexpectedChildElemen= t(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(Struc= tureLoader.java:209)
       at
com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext._startElement= (UnmarshallingContext.java:366)
       at
com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext.startElement(= UnmarshallingContext.java:347)
       at
com.sun.xml.bind.v2.runtime.unmarshaller.SAXConnector.startElement(SAXConne= ctor.java:101)
       at org.xml.sax.helpers.XMLFilterImpl.startEleme= nt(XMLFilterImpl.java:527)
       at
org.apache.openejb.jee.oejb2.NamespaceFilter.startElement(NamespaceFilter.j= ava:179)
       at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(A= bstractSAXParser.java:533)
       at
com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartE= lement(XMLNSDocumentScannerImpl.java:330)
       at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$Frag= mentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1693)        at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scan= Document(XMLDocumentFragmentScannerImpl.java:368)
       at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Co= nfiguration.java:834)
       at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Co= nfiguration.java:764)
       at
com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:1= 48)
       at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Abstract= SAXParser.java:1242)
       at org.xml.sax.helpers.XMLFilterImpl.parse(XMLF= ilterImpl.java:333)
       at
com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(Unmars= hallerImpl.java:194)
       at
com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(Unmarsh= allerImpl.java:167)
       at
javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshal= lerImpl.java:120)
       at
javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshal= lerImpl.java:103)
       at
org.apache.openejb.jee.oejb2.JaxbOpenejbJar2.unmarshal(JaxbOpenejbJar2.java= :104)
       at
org.apache.openejb.jee.oejb2.JaxbOpenejbJar2.unmarshal(JaxbOpenejbJar2.java= :66)
       at
org.apache.openejb.config.ReadDescriptors.readOpenejbJar(ReadDescriptors.ja= va:117)
       ... 60 more


--
View this message in context: http://www.nabble.com/exception-while-running-the-5-minu= te-GEP-tutorial-example-tp15779115s134p15779115.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.




--
~Jason Warner ------=_Part_1582_22946814.1204491547107--