geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jacky Liu (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (GERONIMO-5890) DBInitialization did not start because SQL resource file not found
Date Mon, 11 Apr 2011 02:33:06 GMT

    [ https://issues.apache.org/jira/browse/GERONIMO-5890?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13018178#comment-13018178
] 

Jacky Liu commented on GERONIMO-5890:
-------------------------------------

I found a way to solve the problem, that is I put BankDB.sql in ejb archive. And I cd ..\bank\bank-ejb
and mvn clean install. After that bank-ejb-3.0-SNAPSHOT.jar contains BankDB.sql. Then I cd
..\bank\bank-ear and mvn clean install. When these steps are done, I deployed ear in geronimo
server and navigated to DB Manager, and it showed that initialization worked. You can go to
http://localhost:8080/bank/ to check it out.

solution.patch also contains changes to customer and DataCDInfo.

> DBInitialization did not start because SQL resource file not found
> ------------------------------------------------------------------
>
>                 Key: GERONIMO-5890
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-5890
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: sample apps
>    Affects Versions: 3.0
>         Environment: Windows XP SP3 x86
> sun jdk 1.6.0_23
> geronimo build on 20110407
>            Reporter: Jacky Liu
>            Priority: Minor
>              Labels: samples
>         Attachments: bank-ear-3.0-SNAPSHOT.ear, solution.patch
>
>
> 1. cd ...\samples\trunk\samples\javaee5\bank\bank-ear and mvn clean install -> successful
> 2. deploy bank-ear-3.0-SNAPSHOT.ear on geronimo using geronimo console -> successful
but can't start bank-ear-3.0-SNAPSHOT.car
> Caused by: org.apache.geronimo.gbean.InvalidConfigurationException: Configuration org.apache.geronimo.samples/bank-ear/3.0-SNAPSHOT/car
failed to start due to the following reasons:
>   The service J2EEApplication=org.apache.geronimo.samples/bank-ear/3.0-SNAPSHOT/car,j2eeType=GBean,name=DBInitialization
did not start because SQL resource file not found: BankDB.sql
> java.lang.Exception: SQL resource file not found: BankDB.sql
> at org.apache.geronimo.connector.wrapper.DatabaseInitializationGBean.getSQLInput(DatabaseInitializationGBean.java:136)
> at org.apache.geronimo.connector.wrapper.DatabaseInitializationGBean.<init>(DatabaseInitializationGBean.java:85)
> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
> at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
> at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
> at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
> at org.apache.xbean.recipe.ReflectionUtil$ConstructorFactory.create(ReflectionUtil.java:952)
> at org.apache.xbean.recipe.ObjectRecipe.internalCreate(ObjectRecipe.java:276)
> at org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:96)
> at org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:61)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:933)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:271)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:105)
> at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:127)
> at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:560)
> at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:386)
> at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:460)
> at org.apache.geronimo.kernel.config.KernelConfigurationManager.start(KernelConfigurationManager.java:226)
> at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:702)
> at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:681)
> at org.apache.geronimo.deployment.plugin.local.StartCommand.run(StartCommand.java:67)
> at java.lang.Thread.run(Thread.java:662)
> Same error occured when I tried to deploy customer-ear-3.0-SNAPSHOT.ear and DataCDInfo-ear-3.0-SNAPSHOT.ear

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message