File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Other Java Products and Servers and the fly likes Oracle Drivers Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Java Products and Servers
Bookmark "Oracle Drivers" Watch "Oracle Drivers" New topic

Oracle Drivers

Roger Gazdzicki
Ranch Hand

Joined: Oct 04, 2002
Posts: 47
I am new to resin and trying to load the Oracle Drivers and set up the properties file to access the database.
I put the classes12.jar in the lib folder of resin, I set up resin to recognize another path
d:\projects\testProject, and put the file in the d:\projects\testProject\WEB-INF folder.
I get a error of
500 Servlet Exception
java.util.MissingResourceException: Can't find bundle for base name,
locale en_US
at java.util.ResourceBundle.throwMissingResourceException(
at java.util.ResourceBundle.getBundleImpl(
at java.util.ResourceBundle.getBundle(
at testProject.OracleConnection.initialize(
at testProject.OracleConnection.getInstance(
at testProject.Emp.<init>(
at _test__jsp._jspServicetestproject/Test.jsp:9)
at com.caucho.jsp.JavaPage.service(
at com.caucho.jsp.Page.subservice(
at com.caucho.server.http.FilterChainPage.doFilter(
at com.caucho.server.http.Invocation.service(
at com.caucho.server.http.CacheInvocation.service(
at com.caucho.server.http.HttpRequest.handleRequest(
at com.caucho.server.http.HttpRequest.handleConnection(

Obviously I am missing something, but what?
[ February 14, 2003: Message edited by: Roger Garner ]

Roger G<br /> <br />Anybody who tries to make anything idiot proof has obviously underestimated the intelligence of an idiot.
Frank Carver

Joined: Jan 07, 1999
Posts: 6920
It looks like your properties file is being loaded as a resource from the classpath. The WEB-INF directory is not usually in the classpath; try putting it in WEB-INF/classes.

Read about me at ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
Roger Gazdzicki
Ranch Hand

Joined: Oct 04, 2002
Posts: 47
I have tried to put it in the following locations
last one is the package where the classes reside.
I am defining the property file in a class as follows

and the file looks as follows

I placed each one individually in each location.
I then made a copy in every location to no avail.
Thanks for the help and quick response.

[ October 07, 2002: Message edited by: Roger Garner ]
[ October 07, 2002: Message edited by: Roger Garner ]
[ October 07, 2002: Message edited by: Roger Garner ]
[ February 14, 2003: Message edited by: Roger Garner ]
Rick Hightower
Ranch Hand

Joined: Feb 20, 2002
Posts: 350
try loading the properties file as a class resource instead... I know this will work... I've done it.
off the top of my head i think it looks like this

Rick Hightower is CTO of Mammatus which focuses on Cloud Computing, EC2, etc. Rick is invovled in Java CDI and Java EE as well. linkedin,twitter,blog
I agree. Here's the link:
subject: Oracle Drivers