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

2010-10-22 Thread Pid
> Pid > To: > Tomcat Users List > 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 th

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 To: Tomcat Users List Date: 10/22/2010 12:37 PM Subject: Re: javax.naming.NamingException: Cannot create resource instance On 22/10/2010 06:40, Aparna1 V

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 ty

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 " To: Tomcat Users List Date: 10/22/2010 01:11 AM Subject: RE: javax.naming.NamingException: Cannot create resource instance I know it's allowed in TC 4. I was say

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 instanc

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 " To: Tomcat Users List 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 separated like that. In TC

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

2010-10-21 Thread Propes, Barry L
at allowed? -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 I am getting the

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 configurati

javax.naming.NamingException: Cannot create resource instance

2010-10-21 Thread Aparna1 V
Param: jdbc/global05 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

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: > > jdbc/jpetstore > javax.sql.DataSource > Container > > >--looks for jdbc/jpetstore and finds it here in dataAccess-context.xml-- *sigh* T

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

2009-04-06 Thread Martin Gainty
> Date: Mon, 6 Apr 2009 17:30:55 +0100 > From: p...@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 > > &

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

2009-04-06 Thread Pid
ELECT 1;" >>> >>> username="vhousehold" >>> >>> url="jdbc:mysql://localhost:3306/vhousehold" >>> >>> maxActive="4"/> >>> >>> >>>

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

2009-04-06 Thread Mighty Tornado
/> > > > > > > > > > > In web.xml I have the following: > > > > > > > > > > Connection Pool > > > > jdbc/vhousehold > > > > javax.sql.Datasource > > > >

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

2009-04-06 Thread Pid
ing: > > > > > Connection Pool > > jdbc/vhousehold > > javax.sql.Datasource > > Container > > > > > I try to get this data source in my application using the following code: > > > DataSourc

javax.naming.NamingException: Cannot create resource instance

2009-04-06 Thread Mighty Tornado
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

2008-10-02 Thread Ziggy O
gt;>>>> fullname = jndiPrefix + datasource; >>>>>> else >>>>>> fullname = datasource; >>>>>> >>>>>> // JNDI >>>>>> Context ctx = null; >>>>>> DataSo

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

2008-10-02 Thread David Smith
And here is the Configuration. Context.xml (User and password modified) [code] [/code] web.xml [code] Oracle Datasource jdbc/theDb oracle.jdbc.pool.OracleDataSource Container [/code] And here is the stack trace of the error [cod

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 &g

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

2008-10-02 Thread Ziggy O
if (ctx != null) >>>>> { >>>>> ds = (DataSource)envContext.lookup(fullname); >>>>> if (ds != null) >>>>> { >>>>>

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

2008-10-02 Thread Ziggy O
>> } >>>> } >>>> } >>>> [/code] >>>> >>>> And here is the Configuration. >>>> >>>> Context.xml (User and password modified) >>>> >>>> [code] >>>>

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

2008-10-02 Thread David Smith
Context.xml (User and password modified) [code] [/code] web.xml [code] Oracle Datasource jdbc/theDb oracle.jdbc.pool.OracleDataSource Container [/code] And here is the stack trace of the error [code] javax.naming.NamingException: Cannot cr

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

2008-10-02 Thread Ziggy O
> url="jdbc:oracle:thin:@localhost:1521:webdev" >> username="webuser" password="webuser" maxActive="20" >> maxIdle="10" >> maxWait="-1"/> >> [/c

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

2008-10-01 Thread David Smith
Source Container [/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) at javax.naming.spi.NamingManager.getObjectIn

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

2008-10-01 Thread Ziggy O
url="jdbc:oracle:thin:@localhost:1521:webdev" > username="webuser" password="webuser" maxActive="20" > maxIdle="10" > maxWait="-1"/> > [/code] > > web.xm

javax.naming.NamingException: Cannot create resource instance

2008-10-01 Thread Ziggy O
uration. Context.xml (User and password modified) [code] [/code] web.xml [code] Oracle Datasource jdbc/theDb oracle.jdbc.pool.OracleDataSource Container [/code] And here is the stack trace of the error [code] javax.naming.NamingException: Cannot create resourc

Re: Cannot create resource instance

2007-07-30 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Amol, Amol Chaudhari wrote: > jndiContextRoot.lookup("java:comp/UserTransaction"); Did you ever setup this JNDI object? Where is the configuration for that? (Please excuse my ignorance... I don't use transations in such a manner). > If I comment out

Re: Cannot create resource instance

2007-07-30 Thread Amol Chaudhari
Chris, Thanks for the reply. Here's my complete btnSave_action method :- public String btnSave_action() { System.out.println("in btnSave_action..."); UserTransaction userTransaction = null; try { Context jndiContextRoot = new InitialContext(); userTra

Re: Cannot create resource instance

2007-07-27 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Amol, Amol Chaudhari wrote: > Can't any of the gurus help me on this? Perhaps. Can you post the code you are using near this line of code: test.Student.btnSave_action(Student.java:593) Also describe how you are configuring your JNDI DataSource. In

javax.naming.NamingException: Cannot create resource instance

2007-07-27 Thread Amol Chaudhari
: 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

Re: Cannot create resource instance

2007-07-27 Thread Amol Chaudhari
cat 5.5.17. While trying to > add a new record to my screen i am getting the following exception. Can > anyone help me on this? > > javax.naming.NamingException: Cannot create resource instance > at > org.apache.naming.factory.TransactionFactory.getObjectInstance(Tran

Cannot create resource instance

2007-07-26 Thread Amol Chaudhari
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:792) at

RE: Cannot create resource instance

2007-03-08 Thread Caldarale, Charles R
> From: Natasha N Wright [mailto:[EMAIL PROTECTED] > Subject: Re: Cannot create resource instance > > classes.zip is the file listed in my classpath. Do not add any extra .zip or .jar files to the Tomcat classpath - that is guaranteed to cause problems with the classloaders. -

Re: Cannot create resource instance

2007-03-08 Thread David Smith
l Message- >> From: Natasha N Wright [mailto:[EMAIL PROTECTED] Sent: 08 March >> 2007 15:39 >> To: Tomcat Users List >> Subject: Re: Cannot create resource instance >> >> Thanks, but i followed the examples on the tomcat site. I have >> removed the factor

Re: Cannot create resource instance

2007-03-08 Thread Natasha N Wright
March 2007 15:39 To: Tomcat Users List Subject: Re: Cannot create resource instance Thanks, but i followed the examples on the tomcat site. I have removed the factory declaration from server.xml but this still doesnt help I'm still getting a Cannot create resource instance error, i have

Re: Cannot create resource instance

2007-03-08 Thread Natasha N Wright
March 2007 15:39 To: Tomcat Users List Subject: Re: Cannot create resource instance Thanks, but i followed the examples on the tomcat site. I have removed the factory declaration from server.xml but this still doesnt help I'm still getting a Cannot create resource instance error, i have

RE: Cannot create resource instance

2007-03-08 Thread Raghupathy, Gurumoorthy
: Cannot create resource instance Thanks, but i followed the examples on the tomcat site. I have removed the factory declaration from server.xml but this still doesnt help I'm still getting a Cannot create resource instance error, i have pasted the stack dump to offer more clarity. C

Re: Cannot create resource instance

2007-03-08 Thread Natasha N Wright
Thanks, but i followed the examples on the tomcat site. I have removed the factory declaration from server.xml but this still doesnt help I'm still getting a Cannot create resource instance error, i have pasted the stack dump to offer more clarity. Cheers, Natasha STACK

Re: Cannot create resource instance

2007-03-07 Thread David Smith
e are configuration differences between 5.0.x and 5.5.x. --David Natasha N Wright wrote: Hi, I am trying to create a servlet which connects to a oracle database. My servlet is called from an HTML form. When it is called i recieve a javax naming exception Cannot create resource instance

Re: Cannot create resource instance

2007-03-07 Thread Natasha N Wright
am trying to create a servlet which connects to a oracle database. My servlet is called from an HTML form. When it is called i recieve a javax naming exception Cannot create resource instance error. Please can someone advise me what I need to configure? I get no tomcat errors on startup

Re: Cannot create resource instance

2007-03-07 Thread David Smith
called from an HTML form. When it is called i recieve a javax naming exception Cannot create resource instance error. Please can someone advise me what I need to configure? I get no tomcat errors on startup. Thankyou i am calling the db connection with the following java

Cannot create resource instance

2007-03-07 Thread Natasha N Wright
Hi, I am trying to create a servlet which connects to a oracle database. My servlet is called from an HTML form. When it is called i recieve a javax naming exception Cannot create resource instance error. Please can someone advise me what I need to configure? I get no tomcat errors on

Re: NamingException: Cannot create resource instance

2006-09-09 Thread Kevin Hart
nt stmt = conn.createStatement(); > > 17:ResultSet rset = stmt.executeQuery("select * from employee;"); > > .. > > > > As you can see, I'm just trying to get an example working. > > > > Thanks again for any help, > > Kevin > > &

Re: NamingException: Cannot create resource instance

2006-09-07 Thread David Smith
[EMAIL PROTECTED]>: Hello, I'm trying to get a jsp to access a mysql database. I'm using the "preferred" JNDI resources approach with Tomcat, but I keep getting the NamingException: Cannot create resource instance error. I know others have posted with this error. I&#

Re: NamingException: Cannot create resource instance

2006-09-07 Thread Kevin Hart
database. I'm using the > "preferred" JNDI resources approach with Tomcat, but I keep getting the > NamingException: Cannot create resource instance error. I know others > have posted with this error. I've read some of those posts, but > the solutions don't seem t

NamingException: Cannot create resource instance

2006-09-07 Thread Kevin Hart
Hello, I'm trying to get a jsp to access a mysql database. I'm using the "preferred" JNDI resources approach with Tomcat, but I keep getting the NamingException: Cannot create resource instance error. I know others have posted with this error. I've read some of those

javax.servlet.ServletException: Cannot create resource instance

2006-08-31 Thread Sameer Acharya
Hi, Iam using Tomcat 5.5.9 and trying to define a bean resource and get an instance of the same inside a jsp thru JNDI lookup,Iam getting the following exception in the browser : - javax.servlet.ServletException: Cannot create resource instance

Tomcat & JNDI -> javax.naming.NamingException: Cannot create resource instance

2006-02-15 Thread Claus Giesenberg (1&1 Privat)
Hi ! While writing a custom JNDI Resource factory, Tomcat 5 runs into an exception i can't explain: javax.naming.NamingException: Cannot create resource instance at org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory.java:132)

Tomcat 5.5.12 custom Resource factory - javax.naming.NamingException: Cannot create resource instance

2005-12-26 Thread Dave Whitla
bound in the JNDI tree afterwards as expected. However they cannot be retrieved. Attempts to look them up in the deployed webapp result in NamingExceptions being thrown with the message "Cannot create resource instance". Interestingly, when debugging tomcat during this process it seems