geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stephen Davidson <steverdavid...@gmail.com>
Subject Re: deploy
Date Mon, 16 Apr 2012 20:48:43 GMT
I AM able to create the datasource, but I think I may need a different name
for it.  The datasource I create is jdbc/TradeDataSource.  I can query
against the database, though my datafiles are currenlty empty.  
However, when I try to deploy the application, I get this exception:

The application was not deployed.
Unable to resolve resource reference 'java:comp/env/jdbc/TradeDataSource'
(Could not find resource 'jdbc/TradeDataSource'. Perhaps it has not yet been
configured, or your application does not have a dependency declared for that
resource module?
Search conducted in current module and dependencies:
[all: org.apache.geronimo.configs/j2ee-server//car]
[all: org.apache.geronimo.configs/openjpa2/3.0-beta-1/car]
[all: org.apache.geronimo.configs/axis//car]
[all: org.apache.geronimo.configs/axis2//car]
[classes: org.apache.geronimo.configs/openejb//car]
[all: org.apache.geronimo.configs/j2ee-corba-yoko/3.0-beta-1/car]
[all: org.apache.geronimo.modules/geronimo-bval//jar]
[all: org.apache.geronimo.configs/tomcat7/3.0-beta-1/car]
[all: org.apache.geronimo.configs/myfaces/3.0-beta-1/car]
[all: org.apache.geronimo.modules/geronimo-openejb//jar]
[all: org.apache.openwebbeans/openwebbeans-impl//jar]
[all: org.apache.openwebbeans/openwebbeans-web//jar]
[all: org.apache.geronimo.configs/system-database//car]
[all: org.apache.geronimo.configs/tomcat7//car]
[all: org.apache.geronimo.configs/wink/3.0-beta-1/car]
[all: org.apache.geronimo.configs/openjpa2//car]
)
org.apache.geronimo.common.DeploymentException: Unable to resolve resource
reference 'java:comp/env/jdbc/TradeDataSource' (Could not find resource
'jdbc/TradeDataSource'. Perhaps it has not yet been configured, or your
application does not have a dependency declared for that resource module?
Search conducted in current module and dependencies:
[all: org.apache.geronimo.configs/j2ee-server//car]
[all: org.apache.geronimo.configs/openjpa2/3.0-beta-1/car]
[all: org.apache.geronimo.configs/axis//car]
[all: org.apache.geronimo.configs/axis2//car]
[classes: org.apache.geronimo.configs/openejb//car]
[all: org.apache.geronimo.configs/j2ee-corba-yoko/3.0-beta-1/car]
[all: org.apache.geronimo.modules/geronimo-bval//jar]
[all: org.apache.geronimo.configs/tomcat7/3.0-beta-1/car]
[all: org.apache.geronimo.configs/myfaces/3.0-beta-1/car]
[all: org.apache.geronimo.modules/geronimo-openejb//jar]
[all: org.apache.openwebbeans/openwebbeans-impl//jar]
[all: org.apache.openwebbeans/openwebbeans-web//jar]
[all: org.apache.geronimo.configs/system-database//car]
[all: org.apache.geronimo.configs/tomcat7//car]
[all: org.apache.geronimo.configs/wink/3.0-beta-1/car]
[all: org.apache.geronimo.configs/openjpa2//car]
)
at
org.apache.geronimo.connector.deployment.ResourceRefBuilder.buildReference(ResourceRefBuilder.java:267)
at
org.apache.geronimo.connector.deployment.ResourceRefBuilder.buildNaming(ResourceRefBuilder.java:164)
at
org.apache.geronimo.j2ee.deployment.NamingBuilderCollection.buildNaming(NamingBuilderCollection.java:98)
at
org.apache.geronimo.web25.deployment.AbstractWebModuleBuilder.configureBasicWebModuleAttributes(AbstractWebModuleBuilder.java:704)
at
org.apache.geronimo.tomcat.deployment.TomcatModuleBuilder.addGBeans(TomcatModuleBuilder.java:483)
at
org.apache.geronimo.j2ee.deployment.SwitchingModuleBuilder.addGBeans(SwitchingModuleBuilder.java:174)
at
org.apache.geronimo.j2ee.deployment.EARConfigBuilder.buildConfiguration(EARConfigBuilder.java:763)
at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:255)
at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:140)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke(ReflectionMethodInvoker.java:34)
at
org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:131)
at
org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:883)
at org.apache.geronimo.kernel.basic.BasicKernel.invoke(BasicKernel.java:245)
at
org.apache.geronimo.deployment.plugin.local.AbstractDeployCommand.doDeploy(AbstractDeployCommand.java:116)
at
org.apache.geronimo.deployment.plugin.local.DistributeCommand.run(DistributeCommand.java:61)
at java.lang.Thread.run(Thread.java:662)



--
View this message in context: http://apache-geronimo.328035.n3.nabble.com/deploy-tp3909648p3915518.html
Sent from the Users mailing list archive at Nabble.com.

Mime
View raw message