Re: javax.naming.NamingException: Cannot create resource instance

2010-10-22 Thread Pid
On 22/10/2010 06:40, Aparna1 V wrote: oh! but i need to connect to both those datasources. Is this not possible in tomcat6? Yes it is possible. And on top of that, you've got two ResourceLink name attributes pointing to the same class with different names. This is irrelevant. The type

Re: javax.naming.NamingException: Cannot create resource instance

2010-10-22 Thread Aparna1 V
It fails to parse the server.xml when i declare more than one resource under the Context element. Please help me out... From: Pid p...@pidster.com To: Tomcat Users List users@tomcat.apache.org Date: 10/22/2010 12:37 PM Subject: Re: javax.naming.NamingException: Cannot create resource

Re: javax.naming.NamingException: Cannot create resource instance

2010-10-22 Thread Pid
To: Tomcat Users List users@tomcat.apache.org Date: 10/22/2010 12:37 PM Subject: Re: javax.naming.NamingException: Cannot create resource instance On 22/10/2010 06:40, Aparna1 V wrote: oh! but i need to connect to both those datasources. Is this not possible in tomcat6? Yes

javax.naming.NamingException: Cannot create resource instance

2010-10-21 Thread Aparna1 V
javax.naming.NamingException: Cannot create resource instance at org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory.java:142) at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304

RE: javax.naming.NamingException: Cannot create resource instance

2010-10-21 Thread Caldarale, Charles R
From: Aparna1 V [mailto:aparna...@tcs.com] Subject: javax.naming.NamingException: Cannot create resource instance Please advise as to what could be wrong since im using the server.xml that i was using with the tomcat 4. You just answered your own question. The configuration of Tomcat 6

RE: javax.naming.NamingException: Cannot create resource instance

2010-10-21 Thread Propes, Barry L
? -Original Message- From: Aparna1 V [mailto:aparna...@tcs.com] Sent: Thursday, October 21, 2010 10:25 AM To: users@tomcat.apache.org Subject: javax.naming.NamingException: Cannot create resource instance ResourceLink name=jdbc/sql_2005 global=jdbc/sql_2005 type

RE: javax.naming.NamingException: Cannot create resource instance

2010-10-21 Thread Aparna1 V
Hi Barry, That is allowed in TC 4. From: Propes, Barry L barry.l.pro...@citi.com To: Tomcat Users List users@tomcat.apache.org Date: 10/21/2010 09:21 PM Subject: RE: javax.naming.NamingException: Cannot create resource instance Not sure, but I don't think you need all those attributes

RE: javax.naming.NamingException: Cannot create resource instance

2010-10-21 Thread Propes, Barry L
I know it's allowed in TC 4. I was saying not allowed in 5, or after 5.0 or 5.5. -Original Message- From: Aparna1 V [mailto:aparna...@tcs.com] Sent: Thursday, October 21, 2010 10:55 AM To: Tomcat Users List Subject: RE: javax.naming.NamingException: Cannot create resource instance Hi

RE: javax.naming.NamingException: Cannot create resource instance

2010-10-21 Thread Aparna1 V
oh! but i need to connect to both those datasources. Is this not possible in tomcat6? From: Propes, Barry L barry.l.pro...@citi.com To: Tomcat Users List users@tomcat.apache.org Date: 10/22/2010 01:11 AM Subject: RE: javax.naming.NamingException: Cannot create resource instance I know

javax.naming.NamingException: Cannot create resource instance

2009-04-06 Thread Mighty Tornado
the following code: DataSource ds = (DataSource)initContext.lookup( java:/comp/env/jdbc/vhousehold); and it fails. This is the exception I get: javax.naming.NamingException: Cannot create resource instance at org.apache.naming.factory.ResourceFactory.getObjectInstance

Re: javax.naming.NamingException: Cannot create resource instance

2009-04-06 Thread Pid
/resource-ref I try to get this data source in my application using the following code: DataSource ds = (DataSource)initContext.lookup( java:/comp/env/jdbc/vhousehold); and it fails. This is the exception I get: javax.naming.NamingException: Cannot create resource instance

Re: javax.naming.NamingException: Cannot create resource instance

2009-04-06 Thread Mighty Tornado
code: DataSource ds = (DataSource)initContext.lookup( java:/comp/env/jdbc/vhousehold); and it fails. This is the exception I get: javax.naming.NamingException: Cannot create resource instance at org.apache.naming.factory.ResourceFactory.getObjectInstance

Re: javax.naming.NamingException: Cannot create resource instance

2009-04-06 Thread Pid
using the following code: DataSource ds = (DataSource)initContext.lookup( java:/comp/env/jdbc/vhousehold); and it fails. This is the exception I get: javax.naming.NamingException: Cannot create resource instance at org.apache.naming.factory.ResourceFactory.getObjectInstance

RE: javax.naming.NamingException: Cannot create resource instance

2009-04-06 Thread Martin Gainty
...@pidster.com To: users@tomcat.apache.org Subject: Re: javax.naming.NamingException: Cannot create resource instance Mighty Tornado wrote: JVM: 1.5.0_16Tomcat: 6.0.16 2 OS: Mac OS X Leopard Hi, I defined the following context.xml under META-INF: ?xml version=1.0 encoding=UTF-8

Re: javax.naming.NamingException: Cannot create resource instance

2009-04-06 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Martin, On 4/6/2009 2:17 PM, Martin Gainty wrote: /WEB-INF/web.xml: resource-ref res-ref-namejdbc/jpetstore/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref

Re: javax.naming.NamingException: Cannot create resource instance

2008-10-02 Thread Ziggy O
of the error [code] javax.naming.NamingException: Cannot create resource instance at org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory.java:143) at javax.naming.spi.NamingManager.getObjectInstance(Unknown Source

Re: javax.naming.NamingException: Cannot create resource instance

2008-10-02 Thread David Smith
trace of the error [code] javax.naming.NamingException: Cannot create resource instance at org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory.java:143) at javax.naming.spi.NamingManager.getObjectInstance(Unknown Source

Re: javax.naming.NamingException: Cannot create resource instance

2008-10-02 Thread Ziggy O
-authContainer/res-auth /resource-ref [/code] And here is the stack trace of the error [code] javax.naming.NamingException: Cannot create resource instance at org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory.java:143

Re: javax.naming.NamingException: Cannot create resource instance

2008-10-02 Thread Ziggy O
] javax.naming.NamingException: Cannot create resource instance at org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory.java:143) at javax.naming.spi.NamingManager.getObjectInstance(Unknown Source) at org.apache.naming.NamingContext.lookup(NamingContext.java:793

RE: javax.naming.NamingException: Cannot create resource instance

2008-10-02 Thread Caldarale, Charles R
From: Ziggy O [mailto:[EMAIL PROTECTED] Subject: Re: javax.naming.NamingException: Cannot create resource instance One thing i have noticed is that if i take the /META-INF/Context.xml file and copy it into $CATALINA_HOME/conf/Catalina/localhost/testapp.xml it does work. If the file

Re: javax.naming.NamingException: Cannot create resource instance

2008-10-02 Thread David Smith
[code] javax.naming.NamingException: Cannot create resource instance at org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory.java:143) at javax.naming.spi.NamingManager.getObjectInstance(Unknown Source) at org.apache.naming.NamingContext.lookup

Re: javax.naming.NamingException: Cannot create resource instance

2008-10-02 Thread Ziggy O
] javax.naming.NamingException: Cannot create resource instance at org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory.java:143) at javax.naming.spi.NamingManager.getObjectInstance(Unknown Source) at org.apache.naming.NamingContext.lookup(NamingContext.java:793

javax.naming.NamingException: Cannot create resource instance

2008-10-01 Thread Ziggy O
] And here is the stack trace of the error [code] javax.naming.NamingException: Cannot create resource instance at org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory.java:143) at javax.naming.spi.NamingManager.getObjectInstance(Unknown Source

Re: javax.naming.NamingException: Cannot create resource instance

2008-10-01 Thread Ziggy O
: Cannot create resource instance at org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory.java:143) at javax.naming.spi.NamingManager.getObjectInstance(Unknown Source) at org.apache.naming.NamingContext.lookup(NamingContext.java:793

Re: javax.naming.NamingException: Cannot create resource instance

2008-10-01 Thread David Smith
-ref-name res-typeoracle.jdbc.pool.OracleDataSource/res-type res-authContainer/res-auth /resource-ref [/code] And here is the stack trace of the error [code] javax.naming.NamingException: Cannot create resource instance

javax.naming.NamingException: Cannot create resource instance

2007-07-27 Thread Amol Chaudhari
is: javax.naming.NamingException: Cannot create resource instance at org.apache.naming.factory.TransactionFactory.getObjectInstance(TransactionFactory.java:112) at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304) at org.apache.naming.NamingContext.lookup(NamingContext.java