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
Not sure, but I don't think you need all those attributes separated like that. In TC4 you had to do that -- but not so after 5.0, or at least 5.5 And on top of that, you've got two ResourceLink name attributes pointing to the same class with different names. Not sure, but is that allowed? ---

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

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
Mighty Tornado wrote: > I added the same entry to context.xml under $CATALINA/conf and it did work. > Could there be something else wrong? Did you remove it before trying to add it here? p > On Mon, Apr 6, 2009 at 12:30 PM, Pid wrote: > >> Mighty Tornado wrote: >>> JVM: 1.5.0_16Tomcat: 6.0.1

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

2009-04-06 Thread Mighty Tornado
I added the same entry to context.xml under $CATALINA/conf and it did work. Could there be something else wrong? On Mon, Apr 6, 2009 at 12:30 PM, Pid wrote: > Mighty Tornado wrote: > > JVM: 1.5.0_16Tomcat: 6.0.16 2 > > OS: Mac OS X Leopard > > > > Hi, > > > > I defined the following context.xml

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

2009-04-06 Thread Pid
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: > > > > crossContext="true"> > > > auth="Container" > > description="DB Connection" > > name="jdbc/vhousehold" > > type="javax.sql

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

2008-10-02 Thread Ziggy O
Yes it looks like that fact it is named with uppercase C was the problem. I renamed it to context.xml and it finally worked. Thank you all for your help. On Thu, Oct 2, 2008 at 5:59 PM, David Smith <[EMAIL PROTECTED]> wrote: > We have a winner! > The Windows file system is one of the few (the

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

2008-10-02 Thread David Smith
We have a winner! The Windows file system is one of the few (the only one I can think of) that's not case sensitive. Unix, linux, bsd, macos, etc. , ... are all case sensitive. You should change the file name 'Context.xml' to 'context.xml' and check to be sure it stays that way as you build

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
A bit more info which i think might be relevant. When i run it on my desktop i ran it directly from within Netbeans but when i run it on the Unix server i export the project as a war file (within netbeans) and copy it into the webapps directory on the Unix environment. Is it possible that netbean

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

2008-10-02 Thread Ziggy O
Hi, The tomcat version on my Desktop is 5.5.27 and the Tomcat version on the Unix environment is 5.5.23. Could the above minor version difference cause it? 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

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

2008-10-02 Thread David Smith
Ok... 1) I don't see a tomcat version, could you post that? 2) Are you sure the tomcat version on the production environment the same as your dev system? 3) This is probably not causing the immediate problem, but ... in your web.xml should be javax.sql.Datasource, not oracle.jdbc.pool.Oracle

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

2008-10-02 Thread Ziggy O
No mate that was the full stack trace. Thanks On Wed, Oct 1, 2008 at 7:02 PM, David Smith <[EMAIL PROTECTED]> wrote: > Seems like such a generic error would have a root cause. Was there > anything more to the stack trace? > > --David > > > Ziggy O wrote: > >> Hi, >> >> I am trying to connect t

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

2008-10-01 Thread David Smith
Seems like such a generic error would have a root cause. Was there anything more to the stack trace? --David Ziggy O wrote: Hi, I am trying to connect to an oracle database but cant seem to get the jdbc connection to work. I am developing the application on a Windows desktop and transferring

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

2008-10-01 Thread Ziggy O
I forgot to mention that i am using Tomcat 5.5 on both the windows and unix environment. Thanks. On Wed, Oct 1, 2008 at 5:54 PM, Ziggy O <[EMAIL PROTECTED]> wrote: > Hi, > > I am trying to connect to an oracle database but cant seem to get the jdbc > connection to work. I am developing the appl