SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
Jothi Shankar Kumar wrote:I even have the classes12.jar in the lib folder of my Tomcat installation.
Often the most important part of the news is what they didn't tell.
Tim Holloway wrote:Is this a duplicate? I responded to a post just like this very recently, and my recommendation was to check the URL very carefully.
And, for the record, an old Oracle driver class is probably OK here, since classes12.jar is an old driver jar. It was superseded in Oracle 9i.
SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
Karthik Shiraly wrote:Just an idea, haven't tried this out myself: Can you change driverClassName to "oracle.jdbc.OracleDriver" and try. The FAQ mentions that "oracle.jdbc.driver.*" is a deprecated package from a couple of years now...
SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
de.dpwn.fcap.core.service.user.impl.UserServiceImpl.sayHallo(UserServiceImpl.java:29)
SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
Jothi Shankar Kumar wrote:
SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
Jothi Shankar Kumar wrote:Do we have to configure this in the server.xml or in the context.xml??? This is really getting annoying to make DBCP configured in Tomcat.
For Tomcat 5, unlike Tomcat 4.x, it is NOT recommended to place <Context> elements directly in the server.xml file. This is because it makes modifying the Context configuration more invasive since the main conf/server.xml file cannot be reloaded without restarting Tomcat.
SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
Often the most important part of the news is what they didn't tell.
Karthik Shiraly wrote:Hi Jothi,
Please change <resource> to <Resource> in your context.xml and check if it works. I get this error when I use <resource> because it's not a valid tag in context.xml, but <Resource> is. I think the JNDI lookup works because it's created out of the web.xml <resource-ref>, but then Tomcat simply ignores the erroneous <resource> tag and is unable to find the associated Resource.
Cheers
Karthik
SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
Jothi Shankar Kumar wrote:
Man... Thank you really very very much. It was my mistake to have it small (like <resource>) and I changed it to (<Resource>) and it worked.
Jaikiran Pai wrote:
Jothi Shankar Kumar wrote:
Man... Thank you really very very much. It was my mistake to have it small (like <resource>) and I changed it to (<Resource>) and it worked.
That is really weird for 2 reasons:
1) The xml validation should have failed. But I guess, that's disabled by default?
2) With that wrongly configured "resource", Tomcat was able to return a DataSource instance to the code, but wasn't able to create a connection on a call to getConnection(). Instead I would have expected the lookup of the datasource to fail.
Anyway, good to know that it's resolved.
SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
Jothi Shankar Kumar wrote:
Do you know how to get this xml validation enabled??
Often the most important part of the news is what they didn't tell.
Tim Holloway wrote:I don't think that will help. I believe it's for indicating validation of the web.xml files in WARs.
SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
Jothi Shankar Kumar wrote:Obtaining the Connection from the JNDI tree is now fine. I have another question here...What do I do with the obtained Connections after I have performed my work??? Do I have to explicitly close them by myself??
Often the most important part of the news is what they didn't tell.
SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
Jothi Shankar Kumar wrote:So the Connection object that I obtain by calling dataSource.getConnection() actually returns me a kind of a proxy to the actual Connection object. How will the original Connection object be notified that I have closed the proxy Connection object???
Often the most important part of the news is what they didn't tell.
Space pants. Tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
|