Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 20578 invoked from network); 25 Apr 2006 11:28:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 25 Apr 2006 11:28:41 -0000 Received: (qmail 20053 invoked by uid 500); 25 Apr 2006 11:28:38 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 20023 invoked by uid 500); 25 Apr 2006 11:28:38 -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 20012 invoked by uid 99); 25 Apr 2006 11:28:38 -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 04:28:38 -0700 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=DNS_FROM_RFC_ABUSE X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [61.95.162.76] (HELO Kecgate02.infosys.com) (61.95.162.76) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Apr 2006 04:28:36 -0700 Received: from indhubbhs01.ad.infosys.com ([192.168.200.81]) by Kecgate02.infosys.com with InterScan Messaging Security Suite; Tue, 25 Apr 2006 16:57:24 +0530 Received: from BLRKECMSG14.ad.infosys.com ([172.22.147.6]) by indhubbhs01.ad.infosys.com with Microsoft SMTPSVC(6.0.3790.1830); Tue, 25 Apr 2006 16:56:56 +0530 Received: from BLRKECMSG01.ad.infosys.com ([172.25.213.131]) by BLRKECMSG14.ad.infosys.com with Microsoft SMTPSVC(6.0.3790.1830); Tue, 25 Apr 2006 16:56:56 +0530 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: RE: Problems deploying EAR Date: Tue, 25 Apr 2006 16:56:55 +0530 Message-ID: <4690875E336998438DF43A78B8E38CF2E4F52D@BLRKECMSG01.ad.infosys.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Problems deploying EAR Thread-Index: AcZoRKGI+1lml6fsRGGha4Uvv86y2gAFLWcwAABJsBA= From: "Santosh Koti" To: X-OriginalArrivalTime: 25 Apr 2006 11:26:56.0021 (UTC) FILETIME=[28AA7450:01C6685B] X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Achim, Chk ur deployment plan (assuming it is an EAR plan , by looking at the = the mail subject..:~) : =20 a. See that u have defined ur ejbs under tag/element & there = only describe ur 'resource-ref' related info.. b. '' should be declared in 'ext-module' element , where u = give ur DB pool information. PS: Before deploying , validate ur deployment plan. (Either in eclipse, = or open the same in the browser, if any tags are mismatching..!) Post if u get any further exception..! Hope this helps..! Thanks, Santosh. "Don't talk about yourself; it will be done when you leave. " =20 -----Original Message----- From: Santosh Koti=20 Sent: Tuesday, April 25, 2006 4:49 PM To: 'user@geronimo.apache.org' Subject: RE: Problems deploying EAR Achim, The problem is due to incorrect usage of 'resource-ref' in ur deployment = plan. 'resource-ref' should be used in ur openejb-jar.xml/ejb-jar.xml or = in Geronimo-web.xml/web.xml. Can u tell what is the type of ur deployment plan...? Is it at web-tier level, ejb-level, or resource-level or at EAR = (application) level ? PS: Can u also post ur deployment plan...? (If possible, else part of = it...?) =20 Thanks, Santosh. "Don't talk about yourself; it will be done when you leave. " =20 -----Original Message----- From: Achim We=DFling [mailto:achim.wessling@gt-net.de]=20 Sent: Tuesday, April 25, 2006 2:16 PM To: user@geronimo.apache.org Subject: RE: Problems deploying EAR 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.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: openmdx/kernel/1.12.1/jar jdbc/datasource[0] jdbc_opencrx_CRX at = org.apache.geronimo.j2ee.deployment.EARConfigBuilder.getEarPlan(EARConfig= Builder.java:206) at = org.apache.geronimo.j2ee.deployment.EARConfigBuilder.getDeploymentPlan(EA= RConfigBuilder.java:122) at = org.apache.geronimo.j2ee.deployment.EARConfigBuilder$$FastClassByCGLIB$$3= 8e56ec6.invoke() at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53) at = org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvo= ker.java:38) at = org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.ja= va:118) at = org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java= :800) at = org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57) at = org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationI= nvoker.java:36) at = org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMe= thodInterceptor.java:96) at = org.apache.geronimo.deployment.ConfigurationBuilder$$EnhancerByCGLIB$$e50= 408ff.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.invok= e() at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53) at = org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvo= ker.java:38) at = org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.ja= va:118) at = org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java= :835) at = org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java:178)= at = org.apache.geronimo.console.configmanager.DeploymentPortlet.processAction= (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(Applicat= ionFilterChain.java:252) at = org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilte= rChain.java:173) at = org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatch= er.java:672) at = org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispa= tcher.java:574) at = org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatc= her.java:499) at = org.apache.pluto.invoker.impl.PortletInvokerImpl.invoke(PortletInvokerImp= l.java:120) at = org.apache.pluto.invoker.impl.PortletInvokerImpl.action(PortletInvokerImp= l.java:68) at = org.apache.pluto.PortletContainerImpl.processPortletAction(PortletContain= erImpl.java:164) at = org.apache.pluto.portalImpl.core.PortletContainerWrapperImpl.processPortl= etAction(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(Applicat= ionFilterChain.java:252) at = org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilte= rChain.java:173) at = org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve= .java:213) at = org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve= .java:178) at = org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorB= ase.java:482) at = org.apache.geronimo.tomcat.GeronimoStandardContext$SystemMethodValve.invo= ke(GeronimoStandardContext.java:272) at = org.apache.geronimo.tomcat.valve.DefaultSubjectValve.invoke(DefaultSubjec= tValve.java:46) at = org.apache.geronimo.tomcat.valve.PolicyContextValve.invoke(PolicyContextV= alve.java:50) at = org.apache.geronimo.tomcat.valve.TransactionContextValve.invoke(Transacti= onContextValve.java:53) at = org.apache.geronimo.tomcat.valve.ComponentContextValve.invoke(ComponentCo= ntextValve.java:47) at = org.apache.geronimo.tomcat.valve.InstanceContextValve.invoke(InstanceCont= extValve.java:60) at = org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:= 126) at = org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:= 105) at = org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.j= ava:107) at = org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:526)= at = org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:14= 8) at = org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856= ) at = org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processCo= nnection(Http11Protocol.java:744) at = org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.= java:527) at = org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowe= rWorkerThread.java:80) at = org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.= 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://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: openmdx/kernel/1.12.1/jar jdbc/datasource[0] jdbc_opencrx_CRX at = org.apache.geronimo.schema.SchemaConversionUtils.validateDD(SchemaConvers= ionUtils.java:594) at = org.apache.geronimo.schema.SchemaConversionUtils.fixGeronimoSchema(Schema= ConversionUtils.java:365) at = org.apache.geronimo.j2ee.deployment.EARConfigBuilder.getEarPlan(EARConfig= Builder.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=DFling [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=DFling 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 = matching > > > 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=DFling > > > INFOKOM G=FCtersloh A=F6R > > > Fachbereich Technische Anwendungen > > > Herzebrocker Str. 140 > > > 33334 G=FCtersloh > > > 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 = solely 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. Further, 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 contain viruses. Infosys has taken every = reasonable precaution to minimize this 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 opening the e-mail or = attachment. Infosys reserves the right to monitor and review the content = of all messages sent to or from this e-mail address. Messages sent to or = from this e-mail address may be stored on the Infosys e-mail system. > ***INFOSYS******** End of Disclaimer ********INFOSYS***