]
|
| Subject: Re: jndi problem
|
--|
hi,
i solved
[EMAIL PROTECTED]
|
| cc:
|
| Subject: Re: jndi problem
Temporarily remove the res-ref entry from your web.xml file, and through the
admin console add a resource link to the global resource in the context of
your web app.
Or add manually a resource link entry in your server.xml to the context
entry.
This is an annoying little quirk.
-Original
You have:
parameter
nameurl/name
valuejdbc:microsoft:sqlserver://localhost:1433/value
/parameter
The value needs some additional information.
If you named your database as robinhood then you need the string to read:
jdbc:microsoft:sqlserver://localhost:1433/robinhood?autoReconnect=true
Bill,
Am I missing something here? I have successfully(???) configured a
connection pool, which I can use when accessing my app via port 8080.
Well, if you can use it then you have been successful. Can you use it or
can't you?
However, when I try to do the same using apache/mod_webapp, I am
Well, if you can use it then you have been successful. Can you use it or
can't you?
Yes and no :)
However, when I try to do the same using apache/mod_webapp, I am unable
to get a connection.
The use of mod_webapp should not interfere with any CP stuff.
Well, that's what I thought. But
Bill,
If you are using a Realm with your JNDI datasource, then you'll have to
have the DataSource defined at the global level. That's what I found
while doing the same thing. You can define the Realm at the Context
level, but you'll need a reference to the global datasource in the
context, and
Sure, here it is.
-Original Message-
From: Vincent Aumont [mailto:[EMAIL PROTECTED]
Sent: Saturday, November 01, 2003 6:15 PM
To: Tomcat Users List
Subject: Re: JNDI problem using 4.1.27
Could you post your server.xml file? You attachment did not make it to
the list.
-Vincent
Could you post your server.xml file? You attachment did not make it to
the list.
-Vincent.
Anderson, James H [IT] wrote:
I can't seem to get JNDI working. I'm trying to access an MySQL database via
JNDI and it's not working. catalina.out contains this msg:
DBCP borrowObject failed: ...,
I should amend this to say that the problem looks more like it has to do with
connection pooling than with JNDI.
-Original Message-
From: Anderson, James H [IT]
Sent: Friday, October 31, 2003 3:36 PM
To: '[EMAIL PROTECTED]'
Subject: JNDI problem using 4.1.27
I
Howdy,
Did you try creating the datasource by hand using the instructions on
the JNDI How-To
(http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-example
s-howto.html) page? If so, what happened?
As an aside, you may wish to revisit the log4j introductory manual for
some tips on how
change user to username and driverName to url
Jake
At 09:23 PM 1/12/2003 +1300, you wrote:
I have just installed Tomcat 4.1 - to date I have been using Tomcat 4.0. In
4.0 I have the following resource in the DefaultContext. I have copied this
context from the sever.xml of 4.0 to the server.xml
On Sun, 12 Jan 2003 21:32, Jacob Kjome wrote:
change user to username and driverName to url
Did this - but still had the same problem.
A little reading put me right however, as I have now found that the reason was
that I was attempting to define the context in the DefaultContext. This
appears
Actually, you can define your JNDI Datasource in GlobalNamingResources
and then define a ResourceLink inside your context although I would have
thought that DefaultContext would have worked as well?
Jake
At 10:25 PM 1/12/2003 +1300, you wrote:
On Sun, 12 Jan 2003 21:32, Jacob Kjome wrote:
Hello everyone,
I was wondering if anyone had success with JNDI functionality
under Tomcat 4.0, because I'm desperate. The only thing I would
like to do is have a bean initialized and populated with values taken
from server.xml file and as respond I always get:
15 matches
Mail list logo