You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@geronimo.apache.org by fmchale <fm...@cisco.com> on 2008/02/04 23:20:12 UTC

Newbie Configuration Help ( i think)

Hello,  I am trying to use geronimo 2.0.2 with toplink-essentials for
persistence ,oracle as the database, and a database pool created through the
geronimo console. I have deployed toplink-essentials,
toplink-essentials-agent, ojdbc14.jar to geronimo through the console and
the database pool exists in console.dbpool.  

I keep getting this error when I deploy
14:15:54,171 ERROR [Deployer] Deployment failed due to 
org.apache.geronimo.common.DeploymentException: Unable to initialize webapp
GBean for ElvisWAR.war
	at
org.apache.geronimo.jetty6.deployment.JettyModuleBuilder.addGBeans(JettyModuleBuilder.java:502)
	at
org.apache.geronimo.jetty6.deployment.JettyModuleBuilder$$FastClassByCGLIB$$1a00be84.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: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$$fc7272bc.addGBeans(<generated>)
	at
org.apache.geronimo.j2ee.deployment.SwitchingModuleBuilder.addGBeans(SwitchingModuleBuilder.java:165)
	at
org.apache.geronimo.j2ee.deployment.SwitchingModuleBuilder$$FastClassByCGLIB$$d0c31844.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: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$$fc7272bc.addGBeans(<generated>)
	at
org.apache.geronimo.j2ee.deployment.EARConfigBuilder.buildConfiguration(EARConfigBuilder.java:628)
	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: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.deployment.ConfigurationBuilder$$EnhancerByCGLIB$$fd984faf.buildConfiguration(<generated>)
	at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:304)
	at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:126)
	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: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(<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: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.interceptor.DefaultMBeanServerInterceptor.invoke(Unknown
Source)
	at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(Unknown Source)
	at javax.management.remote.rmi.RMIConnectionImpl.doOperation(Unknown
Source)
	at javax.management.remote.rmi.RMIConnectionImpl.access$200(Unknown Source)
	at
javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(Unknown
Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at
javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(Unknown
Source)
	at javax.management.remote.rmi.RMIConnectionImpl.invoke(Unknown Source)
	at sun.reflect.GeneratedMethodAccessor170.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at sun.rmi.server.UnicastServerRef.dispatch(Unknown Source)
	at sun.rmi.transport.Transport$1.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at sun.rmi.transport.Transport.serviceCall(Unknown Source)
	at sun.rmi.transport.tcp.TCPTransport.handleMessages(Unknown Source)
	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(Unknown
Source)
	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)
Caused by: org.apache.geronimo.common.DeploymentException: Unable to resolve
reference "JtaDataSourceWrapper"
    in gbean
elvisear/elvis-ear/1.0/ear?J2EEApplication=elvisear/elvis-ear/1.0/ear,PersistenceUnitModule=WEB-INF/lib/ELVIS_Model.jar,WebModule=ElvisWAR.war,j2eeType=PersistenceUnit,name=ELVIS_Model
    to a gbean matching the pattern
[?name=console.dbpool/ElvisPool#org.apache.geronimo.connector.outbound.ConnectionFactorySource]
    due to: No matches for referencePatterns:
[?name=console.dbpool/ElvisPool#org.apache.geronimo.connector.outbound.ConnectionFactorySource]
	at
org.apache.geronimo.deployment.DeploymentContext.getConfigurationData(DeploymentContext.java:516)
	at
org.apache.geronimo.jetty6.deployment.JettyModuleBuilder.addGBeans(JettyModuleBuilder.java:496)


For the life of me and 4 days of searching I cant figure out what this
Unable to resolve reference to JtaDataSourceWrapper is.  Im assuming it has
to do with the datasource, and maybe the datasource being systemwide.  But
am unsure and if it is am def. unsure how to remedy it.  Any help would be
totally appreciated.

My ear contains a jar for my entities, a jar for ejb3 session beans, and my
war.  Here are the respective deployment descriptors. 

persistence.xml located inside the jar containing entities
------------------------------------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<persistence version="1.0" xmlns="http://java.sun.com/xml/ns/persistence"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/persistence
http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd">
	<persistence-unit name="ELVIS_Model">
		<provider>
			oracle.toplink.essentials.PersistenceProvider
		</provider>
		<jta-data-source>console.dbpool/ElvisPool</jta-data-source>
		<class>
		com.englrn.elvis.model.Address</class>
		<class>
		com.englrn.elvis.model.CNAddress</class>
		<class>
		com.englrn.elvis.model.Contact</class>
		<class>
		com.englrn.elvis.model.INAddress</class>
		<class>
		com.englrn.elvis.model.PerformanceObjective</class>
		<class>
		com.englrn.elvis.model.PerformanceObjectiveType</class>
		<class>
		com.englrn.elvis.model.Price</class>
		<class>
		com.englrn.elvis.model.PurchaseOrder</class>
		<class>
		com.englrn.elvis.model.Rating</class>
		<class>
		com.englrn.elvis.model.Service</class>
		<class>
		com.englrn.elvis.model.ServiceType</class>
		<class>
		com.englrn.elvis.model.StatementOfWork</class>
		<class>
		com.englrn.elvis.model.USAddress</class>
		<class>
		com.englrn.elvis.model.Vendor</class>
	</persistence-unit>
</persistence>
--------------------------------------------------------------------

application.xml located in META-INF of ear
--------------------------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<application xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:application="http://java.sun.com/xml/ns/javaee/application_5.xsd"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/application_5.xsd" id="Application_ID"
version="5">
  <module>
    <ejb>ElvisEJB.jar</ejb>
  </module>
  <module>
    <web>
      <web-uri>ElvisWAR.war</web-uri>
      <context-root>ElvisWAR</context-root>
    </web>
  </module>
</application>
-------------------------------------------------------------------


geronimo-application.xml located in META-INF of ear 
-------------------------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<application xmlns="http://geronimo.apache.org/xml/ns/j2ee/application-1.1"
xmlns:sec="http://geronimo.apache.org/xml/ns/security-1.1"
xmlns:sys="http://geronimo.apache.org/xml/ns/deployment-1.1"
application-name="Elvisear">
  <sys:environment>
    <sys:moduleId>
      <sys:groupId>elvisear</sys:groupId>
      <sys:artifactId>elvis-ear</sys:artifactId>
      <sys:version>1.0</sys:version>
      <sys:type>ear</sys:type>
    </sys:moduleId>
    <sys:dependencies>
      <sys:dependency>
        <sys:groupId>oracle</sys:groupId>
        <sys:artifactId>jdbc</sys:artifactId>
        <sys:version>10.2.0.1</sys:version>
        <sys:type>jar</sys:type>
      </sys:dependency>
      <sys:dependency>
        <sys:groupId>oracle</sys:groupId>
        <sys:artifactId>toplink-essentials</sys:artifactId>
        <sys:version>2.58g</sys:version>
        <sys:type>jar</sys:type>
      </sys:dependency>
      <sys:dependency>
        <sys:groupId>oracle</sys:groupId>
        <sys:artifactId>toplink-essentials-agent</sys:artifactId>
        <sys:version>2.58g</sys:version>
        <sys:type>jar</sys:type>
      </sys:dependency>
      <sys:dependency>
        <sys:groupId>facelets</sys:groupId>
        <sys:artifactId>jsf-facelets</sys:artifactId>
        <sys:version>1.1.14</sys:version>
        <sys:type>jar</sys:type>
      </sys:dependency>
      <sys:dependency>
        <sys:groupId>facelets</sys:groupId>
        <sys:artifactId>el-api</sys:artifactId>
        <sys:version>1.0</sys:version>
        <sys:type>jar</sys:type>
      </sys:dependency>
      <sys:dependency>
        <sys:groupId>facelets</sys:groupId>
        <sys:artifactId>el-impl</sys:artifactId>
        <sys:version>1.0</sys:version>
        <sys:type>jar</sys:type>
      </sys:dependency>
    </sys:dependencies>
  </sys:environment>
</application>
------------------------------------------------------------------------------

then I have a web.xml and geronimo-web.xml for the war.
-- 
View this message in context: http://www.nabble.com/Newbie-Configuration-Help-%28-i-think%29-tp15278753s134p15278753.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.


Re: Newbie Configuration Help ( i think)

Posted by fmchale <fm...@cisco.com>.
Thanks so much for your help, that solved the issue.  Unfortunately now Im
getting a toplink NPE.  Thanks again.


djencks wrote:
> 
> I see 2 problems:
> 
> 1. in persistence.xml the <jta-data-source>console.dbpool/ElvisPool</ 
> jta-data-source> should have the name of the datasource in that pool,  
> not the name of the pool configuration itself.  Since you didn't show  
> the plan the console generated I have to admit that you might have  
> actually named the datasource console.dbpool/ElvisPool but I kinda  
> doubt it.
> 
> 2. The geronimo plan needs to have a dependency on the ElvisPool  
> configuration or it won't be able to find the datasource even if you  
> give the correct name in persistence.xml
> 
> hope this helps
> 
> david jencks
> 
> On Feb 4, 2008, at 2:20 PM, fmchale wrote:
> 
>>
>> Hello,  I am trying to use geronimo 2.0.2 with toplink-essentials for
>> persistence ,oracle as the database, and a database pool created  
>> through the
>> geronimo console. I have deployed toplink-essentials,
>> toplink-essentials-agent, ojdbc14.jar to geronimo through the  
>> console and
>> the database pool exists in console.dbpool.
>>
>> I keep getting this error when I deploy
>> 14:15:54,171 ERROR [Deployer] Deployment failed due to
>> org.apache.geronimo.common.DeploymentException: Unable to  
>> initialize webapp
>> GBean for ElvisWAR.war
>> 	at
>> org.apache.geronimo.jetty6.deployment.JettyModuleBuilder.addGBeans 
>> (JettyModuleBuilder.java:502)
>> 	at
>> org.apache.geronimo.jetty6.deployment.JettyModuleBuilder$ 
>> $FastClassByCGLIB$$1a00be84.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: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$ 
>> $fc7272bc.addGBeans(<generated>)
>> 	at
>> org.apache.geronimo.j2ee.deployment.SwitchingModuleBuilder.addGBeans 
>> (SwitchingModuleBuilder.java:165)
>> 	at
>> org.apache.geronimo.j2ee.deployment.SwitchingModuleBuilder$ 
>> $FastClassByCGLIB$$d0c31844.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: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$ 
>> $fc7272bc.addGBeans(<generated>)
>> 	at
>> org.apache.geronimo.j2ee.deployment.EARConfigBuilder.buildConfiguratio 
>> n(EARConfigBuilder.java:628)
>> 	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: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.deployment.ConfigurationBuilder$$EnhancerByCGLIB 
>> $$fd984faf.buildConfiguration(<generated>)
>> 	at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:304)
>> 	at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:126)
>> 	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: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(<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: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.interceptor.DefaultMBeanServerInterceptor.invoke 
>> (Unknown
>> Source)
>> 	at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(Unknown Source)
>> 	at javax.management.remote.rmi.RMIConnectionImpl.doOperation(Unknown
>> Source)
>> 	at javax.management.remote.rmi.RMIConnectionImpl.access$200 
>> (Unknown Source)
>> 	at
>> javax.management.remote.rmi.RMIConnectionImpl 
>> $PrivilegedOperation.run(Unknown
>> Source)
>> 	at java.security.AccessController.doPrivileged(Native Method)
>> 	at
>> javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation 
>> (Unknown
>> Source)
>> 	at javax.management.remote.rmi.RMIConnectionImpl.invoke(Unknown  
>> Source)
>> 	at sun.reflect.GeneratedMethodAccessor170.invoke(Unknown Source)
>> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>> 	at java.lang.reflect.Method.invoke(Unknown Source)
>> 	at sun.rmi.server.UnicastServerRef.dispatch(Unknown Source)
>> 	at sun.rmi.transport.Transport$1.run(Unknown Source)
>> 	at java.security.AccessController.doPrivileged(Native Method)
>> 	at sun.rmi.transport.Transport.serviceCall(Unknown Source)
>> 	at sun.rmi.transport.tcp.TCPTransport.handleMessages(Unknown Source)
>> 	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(Unknown
>> Source)
>> 	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run 
>> (Unknown Source)
>> 	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown  
>> Source)
>> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
>> 	at java.lang.Thread.run(Unknown Source)
>> Caused by: org.apache.geronimo.common.DeploymentException: Unable  
>> to resolve
>> reference "JtaDataSourceWrapper"
>>     in gbean
>> elvisear/elvis-ear/1.0/ear?J2EEApplication=elvisear/elvis-ear/1.0/ 
>> ear,PersistenceUnitModule=WEB-INF/lib/ 
>> ELVIS_Model.jar,WebModule=ElvisWAR.war,j2eeType=PersistenceUnit,name=E 
>> LVIS_Model
>>     to a gbean matching the pattern
>> [?name=console.dbpool/ 
>> ElvisPool#org.apache.geronimo.connector.outbound.ConnectionFactorySour 
>> ce]
>>     due to: No matches for referencePatterns:
>> [?name=console.dbpool/ 
>> ElvisPool#org.apache.geronimo.connector.outbound.ConnectionFactorySour 
>> ce]
>> 	at
>> org.apache.geronimo.deployment.DeploymentContext.getConfigurationData( 
>> DeploymentContext.java:516)
>> 	at
>> org.apache.geronimo.jetty6.deployment.JettyModuleBuilder.addGBeans 
>> (JettyModuleBuilder.java:496)
>>
>>
>> For the life of me and 4 days of searching I cant figure out what this
>> Unable to resolve reference to JtaDataSourceWrapper is.  Im  
>> assuming it has
>> to do with the datasource, and maybe the datasource being  
>> systemwide.  But
>> am unsure and if it is am def. unsure how to remedy it.  Any help  
>> would be
>> totally appreciated.
>>
>> My ear contains a jar for my entities, a jar for ejb3 session  
>> beans, and my
>> war.  Here are the respective deployment descriptors.
>>
>> persistence.xml located inside the jar containing entities
>> ---------------------------------------------------------------------- 
>> --------
>> <?xml version="1.0" encoding="UTF-8"?>
>> <persistence version="1.0" xmlns="http://java.sun.com/xml/ns/ 
>> persistence"
>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>> xsi:schemaLocation="http://java.sun.com/xml/ns/persistence
>> http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd">
>> 	<persistence-unit name="ELVIS_Model">
>> 		<provider>
>> 			oracle.toplink.essentials.PersistenceProvider
>> 		</provider>
>> 		<jta-data-source>console.dbpool/ElvisPool</jta-data-source>
>> 		<class>
>> 		com.englrn.elvis.model.Address</class>
>> 		<class>
>> 		com.englrn.elvis.model.CNAddress</class>
>> 		<class>
>> 		com.englrn.elvis.model.Contact</class>
>> 		<class>
>> 		com.englrn.elvis.model.INAddress</class>
>> 		<class>
>> 		com.englrn.elvis.model.PerformanceObjective</class>
>> 		<class>
>> 		com.englrn.elvis.model.PerformanceObjectiveType</class>
>> 		<class>
>> 		com.englrn.elvis.model.Price</class>
>> 		<class>
>> 		com.englrn.elvis.model.PurchaseOrder</class>
>> 		<class>
>> 		com.englrn.elvis.model.Rating</class>
>> 		<class>
>> 		com.englrn.elvis.model.Service</class>
>> 		<class>
>> 		com.englrn.elvis.model.ServiceType</class>
>> 		<class>
>> 		com.englrn.elvis.model.StatementOfWork</class>
>> 		<class>
>> 		com.englrn.elvis.model.USAddress</class>
>> 		<class>
>> 		com.englrn.elvis.model.Vendor</class>
>> 	</persistence-unit>
>> </persistence>
>> --------------------------------------------------------------------
>>
>> application.xml located in META-INF of ear
>> --------------------------------------------------------------------
>> <?xml version="1.0" encoding="UTF-8"?>
>> <application xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>> xmlns="http://java.sun.com/xml/ns/javaee"
>> xmlns:application="http://java.sun.com/xml/ns/javaee/ 
>> application_5.xsd"
>> xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
>> http://java.sun.com/xml/ns/javaee/application_5.xsd"  
>> id="Application_ID"
>> version="5">
>>   <module>
>>     <ejb>ElvisEJB.jar</ejb>
>>   </module>
>>   <module>
>>     <web>
>>       <web-uri>ElvisWAR.war</web-uri>
>>       <context-root>ElvisWAR</context-root>
>>     </web>
>>   </module>
>> </application>
>> -------------------------------------------------------------------
>>
>>
>> geronimo-application.xml located in META-INF of ear
>> -------------------------------------------------------------------
>> <?xml version="1.0" encoding="UTF-8"?>
>> <application xmlns="http://geronimo.apache.org/xml/ns/j2ee/ 
>> application-1.1"
>> xmlns:sec="http://geronimo.apache.org/xml/ns/security-1.1"
>> xmlns:sys="http://geronimo.apache.org/xml/ns/deployment-1.1"
>> application-name="Elvisear">
>>   <sys:environment>
>>     <sys:moduleId>
>>       <sys:groupId>elvisear</sys:groupId>
>>       <sys:artifactId>elvis-ear</sys:artifactId>
>>       <sys:version>1.0</sys:version>
>>       <sys:type>ear</sys:type>
>>     </sys:moduleId>
>>     <sys:dependencies>
>>       <sys:dependency>
>>         <sys:groupId>oracle</sys:groupId>
>>         <sys:artifactId>jdbc</sys:artifactId>
>>         <sys:version>10.2.0.1</sys:version>
>>         <sys:type>jar</sys:type>
>>       </sys:dependency>
>>       <sys:dependency>
>>         <sys:groupId>oracle</sys:groupId>
>>         <sys:artifactId>toplink-essentials</sys:artifactId>
>>         <sys:version>2.58g</sys:version>
>>         <sys:type>jar</sys:type>
>>       </sys:dependency>
>>       <sys:dependency>
>>         <sys:groupId>oracle</sys:groupId>
>>         <sys:artifactId>toplink-essentials-agent</sys:artifactId>
>>         <sys:version>2.58g</sys:version>
>>         <sys:type>jar</sys:type>
>>       </sys:dependency>
>>       <sys:dependency>
>>         <sys:groupId>facelets</sys:groupId>
>>         <sys:artifactId>jsf-facelets</sys:artifactId>
>>         <sys:version>1.1.14</sys:version>
>>         <sys:type>jar</sys:type>
>>       </sys:dependency>
>>       <sys:dependency>
>>         <sys:groupId>facelets</sys:groupId>
>>         <sys:artifactId>el-api</sys:artifactId>
>>         <sys:version>1.0</sys:version>
>>         <sys:type>jar</sys:type>
>>       </sys:dependency>
>>       <sys:dependency>
>>         <sys:groupId>facelets</sys:groupId>
>>         <sys:artifactId>el-impl</sys:artifactId>
>>         <sys:version>1.0</sys:version>
>>         <sys:type>jar</sys:type>
>>       </sys:dependency>
>>     </sys:dependencies>
>>   </sys:environment>
>> </application>
>> ---------------------------------------------------------------------- 
>> --------
>>
>> then I have a web.xml and geronimo-web.xml for the war.
>> -- 
>> View this message in context: http://www.nabble.com/Newbie- 
>> Configuration-Help-%28-i-think%29-tp15278753s134p15278753.html
>> Sent from the Apache Geronimo - Users mailing list archive at  
>> Nabble.com.
>>
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Newbie-Configuration-Help-%28-i-think%29-tp15278753s134p15280892.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.


Re: Newbie Configuration Help ( i think)

Posted by David Jencks <da...@yahoo.com>.
I see 2 problems:

1. in persistence.xml the <jta-data-source>console.dbpool/ElvisPool</ 
jta-data-source> should have the name of the datasource in that pool,  
not the name of the pool configuration itself.  Since you didn't show  
the plan the console generated I have to admit that you might have  
actually named the datasource console.dbpool/ElvisPool but I kinda  
doubt it.

2. The geronimo plan needs to have a dependency on the ElvisPool  
configuration or it won't be able to find the datasource even if you  
give the correct name in persistence.xml

hope this helps

david jencks

On Feb 4, 2008, at 2:20 PM, fmchale wrote:

>
> Hello,  I am trying to use geronimo 2.0.2 with toplink-essentials for
> persistence ,oracle as the database, and a database pool created  
> through the
> geronimo console. I have deployed toplink-essentials,
> toplink-essentials-agent, ojdbc14.jar to geronimo through the  
> console and
> the database pool exists in console.dbpool.
>
> I keep getting this error when I deploy
> 14:15:54,171 ERROR [Deployer] Deployment failed due to
> org.apache.geronimo.common.DeploymentException: Unable to  
> initialize webapp
> GBean for ElvisWAR.war
> 	at
> org.apache.geronimo.jetty6.deployment.JettyModuleBuilder.addGBeans 
> (JettyModuleBuilder.java:502)
> 	at
> org.apache.geronimo.jetty6.deployment.JettyModuleBuilder$ 
> $FastClassByCGLIB$$1a00be84.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: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$ 
> $fc7272bc.addGBeans(<generated>)
> 	at
> org.apache.geronimo.j2ee.deployment.SwitchingModuleBuilder.addGBeans 
> (SwitchingModuleBuilder.java:165)
> 	at
> org.apache.geronimo.j2ee.deployment.SwitchingModuleBuilder$ 
> $FastClassByCGLIB$$d0c31844.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: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$ 
> $fc7272bc.addGBeans(<generated>)
> 	at
> org.apache.geronimo.j2ee.deployment.EARConfigBuilder.buildConfiguratio 
> n(EARConfigBuilder.java:628)
> 	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: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.deployment.ConfigurationBuilder$$EnhancerByCGLIB 
> $$fd984faf.buildConfiguration(<generated>)
> 	at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:304)
> 	at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:126)
> 	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: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(<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: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.interceptor.DefaultMBeanServerInterceptor.invoke 
> (Unknown
> Source)
> 	at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(Unknown Source)
> 	at javax.management.remote.rmi.RMIConnectionImpl.doOperation(Unknown
> Source)
> 	at javax.management.remote.rmi.RMIConnectionImpl.access$200 
> (Unknown Source)
> 	at
> javax.management.remote.rmi.RMIConnectionImpl 
> $PrivilegedOperation.run(Unknown
> Source)
> 	at java.security.AccessController.doPrivileged(Native Method)
> 	at
> javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation 
> (Unknown
> Source)
> 	at javax.management.remote.rmi.RMIConnectionImpl.invoke(Unknown  
> Source)
> 	at sun.reflect.GeneratedMethodAccessor170.invoke(Unknown Source)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> 	at java.lang.reflect.Method.invoke(Unknown Source)
> 	at sun.rmi.server.UnicastServerRef.dispatch(Unknown Source)
> 	at sun.rmi.transport.Transport$1.run(Unknown Source)
> 	at java.security.AccessController.doPrivileged(Native Method)
> 	at sun.rmi.transport.Transport.serviceCall(Unknown Source)
> 	at sun.rmi.transport.tcp.TCPTransport.handleMessages(Unknown Source)
> 	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(Unknown
> Source)
> 	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run 
> (Unknown Source)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown  
> Source)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
> 	at java.lang.Thread.run(Unknown Source)
> Caused by: org.apache.geronimo.common.DeploymentException: Unable  
> to resolve
> reference "JtaDataSourceWrapper"
>     in gbean
> elvisear/elvis-ear/1.0/ear?J2EEApplication=elvisear/elvis-ear/1.0/ 
> ear,PersistenceUnitModule=WEB-INF/lib/ 
> ELVIS_Model.jar,WebModule=ElvisWAR.war,j2eeType=PersistenceUnit,name=E 
> LVIS_Model
>     to a gbean matching the pattern
> [?name=console.dbpool/ 
> ElvisPool#org.apache.geronimo.connector.outbound.ConnectionFactorySour 
> ce]
>     due to: No matches for referencePatterns:
> [?name=console.dbpool/ 
> ElvisPool#org.apache.geronimo.connector.outbound.ConnectionFactorySour 
> ce]
> 	at
> org.apache.geronimo.deployment.DeploymentContext.getConfigurationData( 
> DeploymentContext.java:516)
> 	at
> org.apache.geronimo.jetty6.deployment.JettyModuleBuilder.addGBeans 
> (JettyModuleBuilder.java:496)
>
>
> For the life of me and 4 days of searching I cant figure out what this
> Unable to resolve reference to JtaDataSourceWrapper is.  Im  
> assuming it has
> to do with the datasource, and maybe the datasource being  
> systemwide.  But
> am unsure and if it is am def. unsure how to remedy it.  Any help  
> would be
> totally appreciated.
>
> My ear contains a jar for my entities, a jar for ejb3 session  
> beans, and my
> war.  Here are the respective deployment descriptors.
>
> persistence.xml located inside the jar containing entities
> ---------------------------------------------------------------------- 
> --------
> <?xml version="1.0" encoding="UTF-8"?>
> <persistence version="1.0" xmlns="http://java.sun.com/xml/ns/ 
> persistence"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="http://java.sun.com/xml/ns/persistence
> http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd">
> 	<persistence-unit name="ELVIS_Model">
> 		<provider>
> 			oracle.toplink.essentials.PersistenceProvider
> 		</provider>
> 		<jta-data-source>console.dbpool/ElvisPool</jta-data-source>
> 		<class>
> 		com.englrn.elvis.model.Address</class>
> 		<class>
> 		com.englrn.elvis.model.CNAddress</class>
> 		<class>
> 		com.englrn.elvis.model.Contact</class>
> 		<class>
> 		com.englrn.elvis.model.INAddress</class>
> 		<class>
> 		com.englrn.elvis.model.PerformanceObjective</class>
> 		<class>
> 		com.englrn.elvis.model.PerformanceObjectiveType</class>
> 		<class>
> 		com.englrn.elvis.model.Price</class>
> 		<class>
> 		com.englrn.elvis.model.PurchaseOrder</class>
> 		<class>
> 		com.englrn.elvis.model.Rating</class>
> 		<class>
> 		com.englrn.elvis.model.Service</class>
> 		<class>
> 		com.englrn.elvis.model.ServiceType</class>
> 		<class>
> 		com.englrn.elvis.model.StatementOfWork</class>
> 		<class>
> 		com.englrn.elvis.model.USAddress</class>
> 		<class>
> 		com.englrn.elvis.model.Vendor</class>
> 	</persistence-unit>
> </persistence>
> --------------------------------------------------------------------
>
> application.xml located in META-INF of ear
> --------------------------------------------------------------------
> <?xml version="1.0" encoding="UTF-8"?>
> <application xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns="http://java.sun.com/xml/ns/javaee"
> xmlns:application="http://java.sun.com/xml/ns/javaee/ 
> application_5.xsd"
> xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
> http://java.sun.com/xml/ns/javaee/application_5.xsd"  
> id="Application_ID"
> version="5">
>   <module>
>     <ejb>ElvisEJB.jar</ejb>
>   </module>
>   <module>
>     <web>
>       <web-uri>ElvisWAR.war</web-uri>
>       <context-root>ElvisWAR</context-root>
>     </web>
>   </module>
> </application>
> -------------------------------------------------------------------
>
>
> geronimo-application.xml located in META-INF of ear
> -------------------------------------------------------------------
> <?xml version="1.0" encoding="UTF-8"?>
> <application xmlns="http://geronimo.apache.org/xml/ns/j2ee/ 
> application-1.1"
> xmlns:sec="http://geronimo.apache.org/xml/ns/security-1.1"
> xmlns:sys="http://geronimo.apache.org/xml/ns/deployment-1.1"
> application-name="Elvisear">
>   <sys:environment>
>     <sys:moduleId>
>       <sys:groupId>elvisear</sys:groupId>
>       <sys:artifactId>elvis-ear</sys:artifactId>
>       <sys:version>1.0</sys:version>
>       <sys:type>ear</sys:type>
>     </sys:moduleId>
>     <sys:dependencies>
>       <sys:dependency>
>         <sys:groupId>oracle</sys:groupId>
>         <sys:artifactId>jdbc</sys:artifactId>
>         <sys:version>10.2.0.1</sys:version>
>         <sys:type>jar</sys:type>
>       </sys:dependency>
>       <sys:dependency>
>         <sys:groupId>oracle</sys:groupId>
>         <sys:artifactId>toplink-essentials</sys:artifactId>
>         <sys:version>2.58g</sys:version>
>         <sys:type>jar</sys:type>
>       </sys:dependency>
>       <sys:dependency>
>         <sys:groupId>oracle</sys:groupId>
>         <sys:artifactId>toplink-essentials-agent</sys:artifactId>
>         <sys:version>2.58g</sys:version>
>         <sys:type>jar</sys:type>
>       </sys:dependency>
>       <sys:dependency>
>         <sys:groupId>facelets</sys:groupId>
>         <sys:artifactId>jsf-facelets</sys:artifactId>
>         <sys:version>1.1.14</sys:version>
>         <sys:type>jar</sys:type>
>       </sys:dependency>
>       <sys:dependency>
>         <sys:groupId>facelets</sys:groupId>
>         <sys:artifactId>el-api</sys:artifactId>
>         <sys:version>1.0</sys:version>
>         <sys:type>jar</sys:type>
>       </sys:dependency>
>       <sys:dependency>
>         <sys:groupId>facelets</sys:groupId>
>         <sys:artifactId>el-impl</sys:artifactId>
>         <sys:version>1.0</sys:version>
>         <sys:type>jar</sys:type>
>       </sys:dependency>
>     </sys:dependencies>
>   </sys:environment>
> </application>
> ---------------------------------------------------------------------- 
> --------
>
> then I have a web.xml and geronimo-web.xml for the war.
> -- 
> View this message in context: http://www.nabble.com/Newbie- 
> Configuration-Help-%28-i-think%29-tp15278753s134p15278753.html
> Sent from the Apache Geronimo - Users mailing list archive at  
> Nabble.com.
>