geronimo-dev mailing list archives

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

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

Shenghao Fang commented on GERONIMO-5890:
-----------------------------------------

The root cause is that the ear is packaged as a osgi bundle and the resource put in the root
folder cannot be accessed by the bundle classloader. Put the resource into the jar embedded
in the bundle and add the jar to the class path in the manifest.mf of the bundle can make
the resource found by the classloader.

> 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