Hello Charles,

I use C3P0 0.9.1. 
The JVM is Sun JDK 1.6.0_18 (64 bit) 
Platform RH Enterprise linux 5


The full stacktrace is :

javax.naming.NamingException: Could not create resource factory instance [Root 
exception is java.lang.IllegalAccessException: Class 
org.apache.naming.factory.ResourceFactory can not access a member of class 
com.mchange.v2.c3p0.DataSources with modifiers "private"]
        at 
org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory.java:102)
        at 
javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304)
        at org.apache.naming.NamingContext.lookup(NamingContext.java:793)
        at org.apache.naming.NamingContext.lookup(NamingContext.java:140)
        at 
org.apache.naming.NamingContextBindingsEnumeration.nextElementInternal(NamingContextBindingsEnumeration.java:113)
        at 
org.apache.naming.NamingContextBindingsEnumeration.next(NamingContextBindingsEnumeration.java:71)
        at 
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans(GlobalResourcesLifecycleListener.java:137)
        at 
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans(GlobalResourcesLifecycleListener.java:144)
        at 
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.createMBeans(GlobalResourcesLifecycleListener.java:109)
        at 
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.lifecycleEvent(GlobalResourcesLifecycleListener.java:81)
        at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
        at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:703)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:581)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Caused by: java.lang.IllegalAccessException: Class 
org.apache.naming.factory.ResourceFactory can not access a member of class 
com.mchange.v2.c3p0.DataSources with modifiers "private"
        at sun.reflect.Reflection.ensureMemberAccess(Reflection.java:65)
        at java.lang.Class.newInstance0(Class.java:349)
        at java.lang.Class.newInstance(Class.java:308)
        at 
org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory.java:98)
        ... 18 more

________________________________________
Van: Caldarale, Charles R [chuck.caldar...@unisys.com]
Verzonden: woensdag 19 mei 2010 15:02
Aan: Tomcat Users List
Onderwerp: RE: C3p0 datasource

> From: Woude, Alexander van der
> [mailto:alexander.vander.wo...@capgemini.com]
> Subject: C3p0 datasource
>
> I have some trouble in getting c3p0 ComboPooledDataSource working in
> Tomcat 6.0.26.

What version of c3p0?

What JVM?

What platform?

Are you running with a security manager?

> the error is :
> FAIL - Encountered exception javax.naming.NamingException: Could not
> create resource factory instance
> [Root exception is java.lang.IllegalAccessException: Class
> org.apache.naming.factory.ResourceFactory
> can not access a member of class com.mchange.v2.c3p0.DataSources with
> modifiers "private"]

The above would indicate that the version of c3p0 you're using is not quite 
spec compliant.

Is there anything else in the logs, such as a stack trace?

- Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org







This message contains information that may be privileged or confidential and is 
the property of the Capgemini Group. It is 
intended only for the person to whom it is addressed. If you are not the 
intended recipient, you are not authorized to 
read, print, retain, copy, disseminate, distribute, or use this message or any 
part thereof. If you receive this message 
in error, please notify the sender immediately and delete all copies of this 
message.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to