geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andreas Schraitle (JIRA)" <j...@apache.org>
Subject [jira] [Created] (GERONIMO-6516) Update Installation Guide for Daytrader Sample App.
Date Thu, 06 Feb 2014 20:10:09 GMT
Andreas Schraitle created GERONIMO-6516:
-------------------------------------------

             Summary: Update Installation Guide for Daytrader Sample App.
                 Key: GERONIMO-6516
                 URL: https://issues.apache.org/jira/browse/GERONIMO-6516
             Project: Geronimo
          Issue Type: Wish
      Security Level: public (Regular issues)
          Components: sample apps
    Affects Versions: 3.0.0
            Reporter: Andreas Schraitle
            Priority: Trivial


Hey Guys,
I'd like to install the daytrader sample app V3.0 to geronimo, running with the pre-provided
derby-db. 

I downloaded the sources from:
http://svn.apache.org/repos/asf/geronimo/daytrader/tags/daytrader-parent-3.0.0/
And tried to follow the install steps provided in:
   http://geronimo.apache.org/GMOxDOC30/daytrader-a-more-complex-application.html

I've successfully run 'mvn install' and ran the db-install script. I tried to deploy the .ear
file via the web-console, but this fails. It seems that the corresponding jdbc-datasource
is missing.

The output of the web-deployer is:

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]
[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]
)
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 org.apache.geronimo.deployment.Deployer.deploy(Deployer.java:140)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.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.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(Unknown Source)

Can you update the installation guide by adding some lines how to import/configure the datasource
?

Thanks in advance!
-Andreas








--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Mime
View raw message