Achim, I think , Krishna 's answer looks more short & clear than mine..!
Thanks, Santosh. "Don't talk about yourself; it will be done when you leave. " -----Original Message----- From: Krishnakumar B [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 25, 2006 5:42 PM To: [email protected] Subject: Re: Problems deploying EAR Hi Achim, I think u need to modify your application plan. You can put ur openejb-jar.xml in ur application plan and deploy the EAR since u r creating a EAR. The application plan has modules in it web, ejb and within this u have all ur references to DataSource. <application> <module> <web></web> </module> <module> <ejb> <resource-ref> </ejb> </module> </application> Regards Krish On 4/25/06, Achim Weßling <[EMAIL PROTECTED]> wrote: > Hi Santosh, > > I've a J2EE-Application packaged as 'opencrx-core-CRX-App.ear'. In the > installation instructions of this app is described, that I have to > create a connection-pool with the name 'jdbc_opencrx_CRX'. > > So I created the following deployment plan for the app > 'opencrx-core-CRX-App.ear': > > <?xml version="1.0" encoding="UTF-8"?> > <application > xmlns="http://geronimo.apache.org/xml/ns/j2ee/application-1.0" > xmlns:naming="http://geronimo.apache.org/xml/ns/naming-1.0" > configId="CRX-App" > parentId="org/apache/geronimo/Server"> > > <dependency> > <uri>openmdx/kernel/1.12.1/jar</uri> > </dependency> > > <naming:resource-ref> > <naming:ref-name>jdbc/datasource[0]</naming:ref-name> > <naming:resource-link>jdbc_opencrx_CRX</naming:resource-link> > </naming:resource-ref> > > </application> > > I saved this as 'CRX-App-application.xml'. In the webconsole of geronimo > I put in the Archive-filed 'opencrx-core-CRX-App.ear' and in the > Plan-field 'CRX-App-application.xml'. > > When pressing the install-button I get the decribed error. > > Thanks, > Achim > > Am Dienstag, den 25.04.2006, 16:48 +0530 schrieb Santosh Koti: > > 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...?) > > > > > > Thanks, > > Santosh. > > "Don't talk about yourself; it will be done when you leave. " > > > > > > -----Original Message----- > > From: Achim Weßling [mailto:[EMAIL PROTECTED] > > Sent: Tuesday, April 25, 2006 2:16 PM > > To: [email protected] > > 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 > > '[EMAIL PROTECTED]://geronimo.apache.org/xml/ns/deployment-1.0 > > [EMAIL PROTECTED]://geronimo.apache.org/xml/ns/deployment-1.0 > > [EMAIL PROTECTED]://geronimo.apache.org/xml/ns/deployment-1.0 > > [EMAIL PROTECTED]://geronimo.apache.org/xml/ns/j2ee/application-1.0 > > [EMAIL PROTECTED]://geronimo.apache.org/xml/ns/j2ee/application-1.0 > > [EMAIL PROTECTED]://geronimo.apache.org/xml/ns/security-1.1 > > [EMAIL PROTECTED]://geronimo.apache.org/xml/ns/deployment-1.0' instead of > > '[EMAIL PROTECTED]://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 '[EMAIL > > PROTECTED]://geronimo.apache.org/xml/ns/deployment-1.0 [EMAIL > > PROTECTED]://geronimo.apache.org/xml/ns/deployment-1.0 [EMAIL > > PROTECTED]://geronimo.apache.org/xml/ns/deployment-1.0 [EMAIL > > PROTECTED]://geronimo.apache.org/xml/ns/j2ee/application-1.0 [EMAIL > > PROTECTED]://geronimo.apache.org/xml/ns/j2ee/application-1.0 [EMAIL > > PROTECTED]://geronimo.apache.org/xml/ns/security-1.1 [EMAIL > > PROTECTED]://geronimo.apache.org/xml/ns/deployment-1.0' instead of '[EMAIL > > PROTECTED]://geronimo.apache.org/xml/ns/naming-1.0' here] > > Descriptor: <xml-fragment configId="CRX-App" > > parentId="org/apache/geronimo/Server" > > xmlns:naming="http://geronimo.apache.org/xml/ns/naming-1.0" > > xmlns:dep="http://geronimo.apache.org/xml/ns/deployment-1.0"> > > <dep:dependency> > > <dep:uri>openmdx/kernel/1.12.1/jar</dep:uri> > > </dep:dependency> > > <naming:resource-ref> > > <naming:ref-name>jdbc/datasource[0]</naming:ref-name> > > <naming:resource-link>jdbc_opencrx_CRX</naming:resource-link> > > </naming:resource-ref> > > </xml-fragment> > > at > > org.apache.geronimo.j2ee.deployment.EARConfigBuilder.getEarPlan(EARConfigBuilder.java:206) > > at > > org.apache.geronimo.j2ee.deployment.EARConfigBuilder.getDeploymentPlan(EARConfigBuilder.java:122) > > 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: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(RawOperationInvoker.java:36) > > at > > org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:96) > > at > > org.apache.geronimo.deployment.ConfigurationBuilder$$EnhancerByCGLIB$$e50408ff.getDeploymentPlan(<generated>) > > 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.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: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(ApplicationFilterChain.java:252) > > at > > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) > > at > > org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672) > > at > > org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:574) > > at > > org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:499) > > at > > org.apache.pluto.invoker.impl.PortletInvokerImpl.invoke(PortletInvokerImpl.java:120) > > at > > org.apache.pluto.invoker.impl.PortletInvokerImpl.action(PortletInvokerImpl.java:68) > > at > > org.apache.pluto.PortletContainerImpl.processPortletAction(PortletContainerImpl.java:164) > > at > > org.apache.pluto.portalImpl.core.PortletContainerWrapperImpl.processPortletAction(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(ApplicationFilterChain.java:252) > > at > > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.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(AuthenticatorBase.java:482) > > at > > org.apache.geronimo.tomcat.GeronimoStandardContext$SystemMethodValve.invoke(GeronimoStandardContext.java:272) > > at > > org.apache.geronimo.tomcat.valve.DefaultSubjectValve.invoke(DefaultSubjectValve.java:46) > > at > > org.apache.geronimo.tomcat.valve.PolicyContextValve.invoke(PolicyContextValve.java:50) > > at > > org.apache.geronimo.tomcat.valve.TransactionContextValve.invoke(TransactionContextValve.java:53) > > at > > org.apache.geronimo.tomcat.valve.ComponentContextValve.invoke(ComponentContextValve.java:47) > > at > > org.apache.geronimo.tomcat.valve.InstanceContextValve.invoke(InstanceContextValve.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.java:107) > > at > > org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:526) > > at > > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) > > at > > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856) > > at > > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744) > > at > > org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) > > at > > org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.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 '[EMAIL > > PROTECTED]://geronimo.apache.org/xml/ns/deployment-1.0 [EMAIL > > PROTECTED]://geronimo.apache.org/xml/ns/deployment-1.0 [EMAIL > > PROTECTED]://geronimo.apache.org/xml/ns/deployment-1.0 [EMAIL > > PROTECTED]://geronimo.apache.org/xml/ns/j2ee/application-1.0 [EMAIL > > PROTECTED]://geronimo.apache.org/xml/ns/j2ee/application-1.0 [EMAIL > > PROTECTED]://geronimo.apache.org/xml/ns/security-1.1 [EMAIL > > PROTECTED]://geronimo.apache.org/xml/ns/deployment-1.0' instead of '[EMAIL > > PROTECTED]://geronimo.apache.org/xml/ns/naming-1.0' here] > > Descriptor: <xml-fragment configId="CRX-App" > > parentId="org/apache/geronimo/Server" > > xmlns:naming="http://geronimo.apache.org/xml/ns/naming-1.0" > > xmlns:dep="http://geronimo.apache.org/xml/ns/deployment-1.0"> > > <dep:dependency> > > <dep:uri>openmdx/kernel/1.12.1/jar</dep:uri> > > </dep:dependency> > > <naming:resource-ref> > > <naming:ref-name>jdbc/datasource[0]</naming:ref-name> > > <naming:resource-link>jdbc_opencrx_CRX</naming:resource-link> > > </naming:resource-ref> > > </xml-fragment> > > at > > org.apache.geronimo.schema.SchemaConversionUtils.validateDD(SchemaConversionUtils.java:594) > > at > > org.apache.geronimo.schema.SchemaConversionUtils.fixGeronimoSchema(SchemaConversionUtils.java:365) > > at > > org.apache.geronimo.j2ee.deployment.EARConfigBuilder.getEarPlan(EARConfigBuilder.java:188) > > ... 59 more > > > > Thanks, > > Achim > > > > > > > > > > Am Dienstag, den 25.04.2006, 14:01 +0530 schrieb Santosh Koti: > > > Achim, > > > > > > 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. > > > > > > Thanks, > > > Santosh. > > > > > > "Don't talk about yourself; it will be done when you leave. " > > > > > > > > > -----Original Message----- > > > From: Achim Weßling [mailto:[EMAIL PROTECTED] > > > Sent: Tuesday, April 25, 2006 1:00 PM > > > To: [email protected] > > > Subject: Re: Problems deploying EAR > > > > > > Thanks Aaron > > > > > > for the hints, but I still don't get it to work. After looking at the > > > usage page I changed my deploymentplan as follows: > > > > > > <?xml version="1.0" encoding="UTF-8"?> > > > <application > > > xmlns="http://geronimo.apache.org/xml/ns/j2ee/application-1.0" > > > xmlns:naming="http://geronimo.apache.org/xml/ns/naming-1.0" > > > configId="CRX-App" > > > parentId="org/apache/geronimo/Server"> > > > > > > <dependency> > > > <uri>openmdx/kernel/1.12.1/jar</uri> > > > </dependency> > > > > > > <naming:resource-ref> > > > <naming:ref-name>jdbc/datasource[0]</naming:ref-name> > > > <naming:resource-link>jdbc_opencrx_CRX</naming:resource-link> > > > </naming:resource-ref> > > > > > > </application> > > > > > > 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 ;-( > > > > > > Can you help me at this point? > > > > > > Thanks > > > Achim > > > > > > > > > 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ßling <[EMAIL PROTECTED]> 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: > > > > > > > > > > <?xml version="1.0" encoding="UTF-8"?> > > > > > <application > > > > > xmlns="http://geronimo.apache.org/xml/ns/j2ee/application-1.0" > > > > > xmlns:naming="http://geronimo.apache.org/xml/ns/naming-1.0" > > > > > configId="CRX-App"> > > > > > > > > > > <dependency> > > > > > <uri>openmdx/kernel/1.12.1/jar</uri> > > > > > </dependency> > > > > > </application> > > > > > > > > > > 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: > > > > > > > > > > <resource-ref id="jdbc_datasource_0"> > > > > > <res-ref-name>jdbc/datasource[0]</res-ref-name> > > > > > <res-type>javax.sql.DataSource</res-type> > > > > > <res-auth>Container</res-auth> > > > > > </resource-ref> > > > > > > > > > > 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ßling > > > > > INFOKOM Gütersloh AöR > > > > > Fachbereich Technische Anwendungen > > > > > Herzebrocker Str. 140 > > > > > 33334 Gütersloh > > > > > Tel.: 0 52 41 / 85 - 29 26 > > > > > [EMAIL PROTECTED] > > > > > http://www.infokom-gt-de > > > > > > > > > > > **************** 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*** >
