> 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
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
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
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
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
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
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
> 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
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
-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
> 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
> >
&
ELECT 1;"
>>>
>>> username="vhousehold"
>>>
>>> url="jdbc:mysql://localhost:3306/vhousehold"
>>>
>>> maxActive="4"/>
>>>
>>>
>>>
/>
> >
> >
> >
> >
> > In web.xml I have the following:
> >
> >
> >
> >
> > Connection Pool
> >
> > jdbc/vhousehold
> >
> > javax.sql.Datasource
> >
> >
ing:
>
>
>
>
> Connection Pool
>
> jdbc/vhousehold
>
> javax.sql.Datasource
>
> Container
>
>
>
>
> I try to get this data source in my application using the following code:
>
>
> DataSourc
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
gt;>>>> fullname = jndiPrefix + datasource;
>>>>>> else
>>>>>> fullname = datasource;
>>>>>>
>>>>>> // JNDI
>>>>>> Context ctx = null;
>>>>>> DataSo
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
> 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
if (ctx != null)
>>>>> {
>>>>> ds = (DataSource)envContext.lookup(fullname);
>>>>> if (ds != null)
>>>>> {
>>>>>
>> }
>>>> }
>>>> }
>>>> [/code]
>>>>
>>>> And here is the Configuration.
>>>>
>>>> Context.xml (User and password modified)
>>>>
>>>> [code]
>>>>
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
> url="jdbc:oracle:thin:@localhost:1521:webdev"
>> username="webuser" password="webuser" maxActive="20"
>> maxIdle="10"
>> maxWait="-1"/>
>> [/c
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
url="jdbc:oracle:thin:@localhost:1521:webdev"
> username="webuser" password="webuser" maxActive="20"
> maxIdle="10"
> maxWait="-1"/>
> [/code]
>
> web.xm
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
:
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
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)
ch.util.MessageBusAgent
lookupConnectionFactory
SEVERE: Could not retrieve MessageBus connection factory via JNDI:
javax.naming.NamingException: Cannot create resource instance
at org.apache.naming.factory.ResourceFactory.
getObjectInstance(ResourceFactory.java:132)
at
28 matches
Mail list logo