Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 30212 invoked from network); 25 Apr 2006 08:46:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 25 Apr 2006 08:46:37 -0000 Received: (qmail 63326 invoked by uid 500); 25 Apr 2006 08:46:34 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 63299 invoked by uid 500); 25 Apr 2006 08:46:34 -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 63288 invoked by uid 99); 25 Apr 2006 08:46:33 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Apr 2006 01:46:33 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [212.184.16.16] (HELO mailserver.gt-net.de) (212.184.16.16) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Apr 2006 01:46:32 -0700 Subject: RE: Problems deploying EAR From: Achim =?ISO-8859-1?Q?We=DFling?= To: user@geronimo.apache.org In-Reply-To: <4690875E336998438DF43A78B8E38CF2E4F52B@BLRKECMSG01.ad.infosys.com> References: <4690875E336998438DF43A78B8E38CF2E4F52B@BLRKECMSG01.ad.infosys.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Tue, 25 Apr 2006 10:46:03 +0200 Message-Id: <1145954765.5776.12.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hallo Santosh, this is the output of my webconsole: org.apache.xmlbeans.XmlException: Invalid deployment descriptor: [error: cvc-complex-type.2.4a: Expected elements 'dependency@http://geronimo.apache.org/xml/ns/deployment-1.0 hidden-classes@http://geronimo.apache.org/xml/ns/deployment-1.0 non-overridable-classes@http://geronimo.apache.org/xml/ns/deployment-1.0 module@http://geronimo.apache.org/xml/ns/j2ee/application-1.0 ext-module@http://geronimo.apache.org/xml/ns/j2ee/application-1.0 security@http://geronimo.apache.org/xml/ns/security-1.1 gbean@http://geronimo.apache.org/xml/ns/deployment-1.0' instead of 'resource-ref@http://geronimo.apache.org/xml/ns/naming-1.0' here] Descriptor: < And this is the output in the geronimo.out: org.apache.geronimo.common.DeploymentException: org.apache.xmlbeans.XmlExce= ption: Invalid deployment descriptor: [error: cvc-complex-type.2.4a: Expect= ed elements 'dependency@http://geronimo.apache.org/xml/ns/deployment-1.0 hi= dden-classes@http://geronimo.apache.org/xml/ns/deployment-1.0 non-overridab= le-classes@http://geronimo.apache.org/xml/ns/deployment-1.0 module@http://g= eronimo.apache.org/xml/ns/j2ee/application-1.0 ext-module@http://geronimo.a= pache.org/xml/ns/j2ee/application-1.0 security@http://geronimo.apache.org/x= ml/ns/security-1.1 gbean@http://geronimo.apache.org/xml/ns/deployment-1.0' = instead of 'resource-ref@http://geronimo.apache.org/xml/ns/naming-1.0' here= ] Descriptor: openmdx/kernel/1.12.1/jar jdbc/datasource[0] jdbc_opencrx_CRX at org.apache.geronimo.j2ee.deployment.EARConfigBuilder.getEarPlan(EARConf= igBuilder.java:206) at org.apache.geronimo.j2ee.deployment.EARConfigBuilder.getDeploymentPlan(= EARConfigBuilder.java:122) 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(FastMethodIn= voker.java:38) at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.= java:118) at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.ja= va:800) at org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57) at org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperatio= nInvoker.java:36) at org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(Proxy= MethodInterceptor.java:96) at org.apache.geronimo.deployment.ConfigurationBuilder$$EnhancerByCGLIB$$e= 50408ff.getDeploymentPlan() at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:219) at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:102) at org.apache.geronimo.deployment.Deployer$$FastClassByCGLIB$$734a235d.inv= oke() at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53) at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodIn= voker.java:38) at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.= java:118) at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.ja= va:835) at org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java:17= 8) at org.apache.geronimo.console.configmanager.DeploymentPortlet.processActi= on(DeploymentPortlet.java:112) at org.apache.pluto.core.PortletServlet.dispatch(PortletServlet.java:229) at org.apache.pluto.core.PortletServlet.doPost(PortletServlet.java:163) at javax.servlet.http.HttpServlet.service(HttpServlet.java:615) at javax.servlet.http.HttpServlet.service(HttpServlet.java:688) at org.apache.pluto.core.PortletServlet.service(PortletServlet.java:153) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applic= ationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFil= terChain.java:173) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispat= cher.java:672) at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDis= patcher.java:574) at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispa= tcher.java:499) at org.apache.pluto.invoker.impl.PortletInvokerImpl.invoke(PortletInvokerI= mpl.java:120) at org.apache.pluto.invoker.impl.PortletInvokerImpl.action(PortletInvokerI= mpl.java:68) at org.apache.pluto.PortletContainerImpl.processPortletAction(PortletConta= inerImpl.java:164) at org.apache.pluto.portalImpl.core.PortletContainerWrapperImpl.processPor= tletAction(PortletContainerWrapperImpl.java:82) at org.apache.pluto.portalImpl.Servlet.doGet(Servlet.java:227) at org.apache.pluto.portalImpl.Servlet.doPost(Servlet.java:267) at javax.servlet.http.HttpServlet.service(HttpServlet.java:615) at javax.servlet.http.HttpServlet.service(HttpServlet.java:688) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applic= ationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFil= terChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperVal= ve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextVal= ve.java:178) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authenticato= rBase.java:482) at org.apache.geronimo.tomcat.GeronimoStandardContext$SystemMethodValve.in= voke(GeronimoStandardContext.java:272) at org.apache.geronimo.tomcat.valve.DefaultSubjectValve.invoke(DefaultSubj= ectValve.java:46) at org.apache.geronimo.tomcat.valve.PolicyContextValve.invoke(PolicyContex= tValve.java:50) at org.apache.geronimo.tomcat.valve.TransactionContextValve.invoke(Transac= tionContextValve.java:53) at org.apache.geronimo.tomcat.valve.ComponentContextValve.invoke(Component= ContextValve.java:47) at org.apache.geronimo.tomcat.valve.InstanceContextValve.invoke(InstanceCo= ntextValve.java:60) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.jav= a:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.jav= a:105) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve= .java:107) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:52= 6) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:= 148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:8= 56) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process= Connection(Http11Protocol.java:744) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoin= t.java:527) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollo= werWorkerThread.java:80) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPoo= l.java:684) at java.lang.Thread.run(Thread.java:595) Caused by: org.apache.xmlbeans.XmlException: Invalid deployment descriptor:= [error: cvc-complex-type.2.4a: Expected elements 'dependency@http://geroni= mo.apache.org/xml/ns/deployment-1.0 hidden-classes@http://geronimo.apache.o= rg/xml/ns/deployment-1.0 non-overridable-classes@http://geronimo.apache.org= /xml/ns/deployment-1.0 module@http://geronimo.apache.org/xml/ns/j2ee/applic= ation-1.0 ext-module@http://geronimo.apache.org/xml/ns/j2ee/application-1.0= security@http://geronimo.apache.org/xml/ns/security-1.1 gbean@http://geron= imo.apache.org/xml/ns/deployment-1.0' instead of 'resource-ref@http://geron= imo.apache.org/xml/ns/naming-1.0' here] Descriptor: openmdx/kernel/1.12.1/jar jdbc/datasource[0] jdbc_opencrx_CRX at org.apache.geronimo.schema.SchemaConversionUtils.validateDD(SchemaConve= rsionUtils.java:594) at org.apache.geronimo.schema.SchemaConversionUtils.fixGeronimoSchema(Sche= maConversionUtils.java:365) at org.apache.geronimo.j2ee.deployment.EARConfigBuilder.getEarPlan(EARConf= igBuilder.java:188) ... 59 more Thanks, Achim Am Dienstag, den 25.04.2006, 14:01 +0530 schrieb Santosh Koti: > Achim, >=20 > In the exception (on ur console) it would hint as to which element(s) are= violating the structure of the schema. (Eg: Expected elements are... ) > Can u post that in detail. >=20 > Thanks, > Santosh. >=20 > "Don't talk about yourself; it will be done when you leave. " >=20 >=20 > -----Original Message----- > From: Achim We=C3=9Fling [mailto:achim.wessling@gt-net.de] > Sent: Tuesday, April 25, 2006 1:00 PM > To: user@geronimo.apache.org > Subject: Re: Problems deploying EAR >=20 > Thanks Aaron >=20 > for the hints, but I still don't get it to work. After looking at the > usage page I changed my deploymentplan as follows: >=20 > > xmlns=3D"http://geronimo.apache.org/xml/ns/j2ee/application-1.0" > xmlns:naming=3D"http://geronimo.apache.org/xml/ns/naming-1.0" > configId=3D"CRX-App" > parentId=3D"org/apache/geronimo/Server"> >=20 > > openmdx/kernel/1.12.1/jar > >=20 > > jdbc/datasource[0] > jdbc_opencrx_CRX > >=20 > >=20 > But this way I get a exception saying the structure of my deploymentplan > is false. I looked at > http://geronimo.apache.org/schemas-1.0/geronimo-config-1.0.xsd and saw, > that my structure is false, but I did not find a hint how the correct > structure looks like ;-( >=20 > Can you help me at this point? >=20 > Thanks > Achim >=20 >=20 > Am Montag, den 24.04.2006, 10:37 -0400 schrieb Aaron Mulder: > > If you go into the admin console, select the Database Pools entry, and > > then click "usage" next to the jdbc_opencrx_CRX pool, it will give you > > an example of how to set this up. The example there is for a web app, > > but the resource reference you'd put in openejb-jar.xml has the same > > syntax as it shows for geronimo-web.xml -- the only difference is that > > in openejb-jar.xml, the resource reference is configured at the level > > of an individual EJB, whereas in geronimo-web.xml it's configured at > > the level of the entire WAR. > > > > Let me know if this is enough to get you going. > > > > Thanks, > > Aaron > > > > On 4/24/06, Achim We=C3=9Fling wrote: > > > Hallo, > > > > > > I'm new to geronimo, so I've some difficulties to deploy apps to the > > > server. > > > > > > I've a ear-file which I try to deploy with the following plan: > > > > > > > > > > > xmlns=3D"http://geronimo.apache.org/xml/ns/j2ee/application-1.0" > > > xmlns:naming=3D"http://geronimo.apache.org/xml/ns/naming-1.0" > > > configId=3D"CRX-App"> > > > > > > > > > openmdx/kernel/1.12.1/jar > > > > > > > > > > > > When doing so I get the following error: > > > > > > Unable to resolve resource reference 'jdbc/datasource[0]' (no matchin= g > > > resources found) > > > > > > So I looked inside the ear-file for config-files using > > > 'jdbc/datasource[0]' and found this inside ejb-jar.xml: > > > > > > > > > jdbc/datasource[0] > > > javax.sql.DataSource > > > Container > > > > > > > > > I created a Server-wide DatabasePool with the name 'jdbc_opencrx_CRX'= , > > > how do I map this pool 'jdbc/datasource[0]'? > > > > > > Many thanks! > > > > > > > > > -- > > > Achim We=C3=9Fling > > > INFOKOM G=C3=BCtersloh A=C3=B6R > > > Fachbereich Technische Anwendungen > > > Herzebrocker Str. 140 > > > 33334 G=C3=BCtersloh > > > Tel.: 0 52 41 / 85 - 29 26 > > > Achim.Wessling@gt-net.de > > > http://www.infokom-gt-de > > > >=20 > **************** CAUTION - Disclaimer ***************** > This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended sol= ely for the use of the addressee(s). If you are not the intended recipient,= please notify the sender by e-mail and delete the original message. Furthe= r, you are not to copy, disclose, or distribute this e-mail or its contents= to any other person and any such actions are unlawful. This e-mail may con= tain viruses. Infosys has taken every reasonable precaution to minimize thi= s risk, but is not liable for any damage you may sustain as a result of any= virus in this e-mail. You should carry out your own virus checks before op= ening the e-mail or attachment. Infosys reserves the right to monitor and r= eview the content of all messages sent to or from this e-mail address. Mess= ages sent to or from this e-mail address may be stored on the Infosys e-mai= l system. > ***INFOSYS******** End of Disclaimer ********INFOSYS***