dev@glassfish.java.net

Re: Cannot instantiate JdbcConnectionPoolDeployer

From: Shing Wai Chan <Shing-Wai.Chan_at_Sun.COM>
Date: Wed, 14 Jan 2009 15:37:53 -0800

Ok. I see why.
The resource.restart_needed is defined in
connectors-runtime/src/main/resources/com/sun/enterprise/resource/deployer/LocalStrings.properties

But there is another file with the same name and package directory:
connectors-runtime/src/main/java/com/sun/enterprise/resource/deployer/LocalStrings.properties

I have unjar the connectors-runtime.jar. It contains the later one which
does not have what it needs.
Someone need to take a look at that.

Thanks.
     Shing Wai Chan


Shing Wai Chan wrote:
> Hi,
> While running the web devtests, I see the stack trace enclosed.
> It is coming the following line in JdbcConnectionPoolDeployer:
>
> static private String msg = sm.getString("resource.restart_needed");
>
> Is there anything missing for connectors?
> Thanks.
> Shing Wai Chan
>
>
> ps:
>
>
> [#|2009-01-14T08:42:56.442-0800|FINE|glassfish|javax.enterprise.system.util|_ThreadID=25;_ThreadName=Thread-3;ClassName=null;MethodName=null;|No
> local string for: resource.restart_needed
> java.util.MissingResourceException: Can't find resource for bundle
> java.util.PropertyResourceBundle, key resource.restart_needed
> at java.util.ResourceBundle.getObject(ResourceBundle.java:384)
> at java.util.ResourceBundle.getString(ResourceBundle.java:344)
> at
> com.sun.enterprise.util.i18n.StringManagerBase.getStringWithDefault(StringManagerBase.java:189)
>
> at
> com.sun.enterprise.util.i18n.StringManagerBase.getString(StringManagerBase.java:172)
>
> at
> com.sun.enterprise.resource.deployer.JdbcConnectionPoolDeployer.<clinit>(JdbcConnectionPoolDeployer.java:98)
>
> 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 java.lang.Class.newInstance0(Class.java:355)
> at java.lang.Class.newInstance(Class.java:308)
> at
> com.sun.hk2.component.ConstructorWomb.create(ConstructorWomb.java:72)
> at
> com.sun.hk2.component.AbstractWombImpl.get(AbstractWombImpl.java:76)
> at
> com.sun.hk2.component.SingletonInhabitant.get(SingletonInhabitant.java:58)
>
> at
> com.sun.hk2.component.LazyInhabitant.get(LazyInhabitant.java:107)
> at
> com.sun.hk2.component.AbstractInhabitantImpl.get(AbstractInhabitantImpl.java:60)
>
> at org.jvnet.hk2.component.Habitat$1.get(Habitat.java:252)
> at java.util.AbstractList$Itr.next(AbstractList.java:345)
> at
> org.glassfish.javaee.services.ResourceManager.getResourceDeployer(ResourceManager.java:370)
>
> at
> org.glassfish.javaee.services.ResourceManager.undeployResources(ResourceManager.java:156)
>
> at
> org.glassfish.javaee.services.ResourceManager.preDestroy(ResourceManager.java:130)
>
> at
> com.sun.hk2.component.AbstractWombInhabitantImpl.dispose(AbstractWombInhabitantImpl.java:74)
>
> at
> com.sun.hk2.component.SingletonInhabitant.release(SingletonInhabitant.java:66)
>
> at
> com.sun.hk2.component.LazyInhabitant.release(LazyInhabitant.java:112)
> at
> com.sun.enterprise.v3.server.AppServerStartup.stop(AppServerStartup.java:279)
>
> at org.jvnet.hk2.osgiadapter.HK2Main.stop(HK2Main.java:245)
> at
> org.apache.felix.framework.util.SecureAction.stopActivator(SecureAction.java:613)
>
> at org.apache.felix.framework.Felix._stopBundle(Felix.java:1995)
> at org.apache.felix.framework.Felix.stopBundle(Felix.java:1952)
> at org.apache.felix.framework.BundleImpl.stop(BundleImpl.java:407)
> at
> org.jvnet.hk2.osgiadapter.OSGiModuleImpl.detach(OSGiModuleImpl.java:189)
> at
> org.jvnet.hk2.osgiadapter.OSGiModuleImpl.stop(OSGiModuleImpl.java:171)
> at
> com.sun.enterprise.v3.admin.StopDomainCommand.execute(StopDomainCommand.java:67)
>
> at
> com.sun.enterprise.v3.admin.CommandRunner$2.execute(CommandRunner.java:302)
>
> at
> com.sun.enterprise.v3.admin.CommandRunner$3.run(CommandRunner.java:324)
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>