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] [classes: org.apache.geronimo.configs/openejb//car] [all: org.apache.geronimo.configs/axis//car] [all: org.apache.geronimo.configs/axis2//car] [all: org.apache.geronimo.configs/j2ee-corba-yoko/3.0.0/car] [all: org.apache.geronimo.modules/geronimo-bval//jar] [all: org.apache.geronimo.configs/openjpa2/3.0.0/car] [all: org.apache.geronimo.configs/tomcat7/3.0.0/car] [all: org.apache.geronimo.configs/myfaces/3.0.0/car] [all: org.apache.geronimo.configs/system-database//car] [all: org.apache.geronimo.configs/tomcat7//car] [all: org.apache.geronimo.configs/wink/3.0.0/car] [all: org.apache.geronimo.configs/openjpa2//car] )

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via geronimo-dev by Andreas Schraitle (JIRA), 1 year ago
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
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] [classes: org.apache.geronimo.configs/openejb//car] [all: org.apache.geronimo.configs/axis//car] [all: org.apache.geronimo.configs/axis2//car] [all: org.apache.geronimo.configs/j2ee-corba-yoko/3.0.0/car] [all: org.apache.geronimo.modules/geronimo-bval//jar] [all: org.apache.geronimo.configs/openjpa2/3.0.0/car] [all: org.apache.geronimo.configs/tomcat7/3.0.0/car] [all: org.apache.geronimo.configs/myfaces/3.0.0/car] [all: org.apache.geronimo.configs/system-database//car] [all: org.apache.geronimo.configs/tomcat7//car] [all: org.apache.geronimo.configs/wink/3.0.0/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:476)
at org.apache.geronimo.j2ee.deployment.SwitchingModuleBuilder.addGBeans(SwitchingModuleBuilder.java:174)
at org.apache.geronimo.j2ee.deployment.EARConfigBuilder.buildConfiguration(EARConfigBuilder.java:764)
at org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:256)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
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.deployment.plugin.local.AbstractDeployCommand.doDeploy(AbstractDeployCommand.java:116)
at java.lang.Thread.run(Unknown Source)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Know the solutions? Share your knowledge to help other developers to debug faster.