File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Tomcat and the fly likes adding bean as a JNDI to tomcat Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "adding bean as a JNDI to tomcat" Watch "adding bean as a JNDI to tomcat" New topic
Author

adding bean as a JNDI to tomcat

sam liyanage
Ranch Hand

Joined: Nov 25, 2008
Posts: 1031
i did a small struts example.i need to add a small bean to JNDI to tomcat.
i used tomcat docs guid file to do this.here is the path at my computer
file:///C:/Tomcat/apache-tomcat-6.0.18/webapps/docs/jndi-resources-howto.html
in my application there are only jsp and servlet and jaba bean.
where to put this things in guid file.

Vamsi Mohan
Ranch Hand

Joined: Jun 20, 2009
Posts: 80
Please go through the URL : http://www.microdeveloper.com/html/JNDI_Orcl_Tomcat.html while configuring JNDI to Tomcat.


VAMSI MOHAN.V
(SCJP5.0, IBM Rational Solution Designer, IBM Rational Architect, IBM RUP Designer)
sam liyanage
Ranch Hand

Joined: Nov 25, 2008
Posts: 1031
here i got exception
"could not load the tomcat server configuration at\Server\Tomcat v5.5 Server at localhost-config.the configuration may be corrupt or incomplete."

here is my server.xml


here is my context.xml


here is my java class
sam liyanage
Ranch Hand

Joined: Nov 25, 2008
Posts: 1031
i correct the first question.But now problem is here.when i am going to run my application it gives this error.


here is my context.xml in tomcat/conf


here is my server.xml


here is my application code.

 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: adding bean as a JNDI to tomcat
 
Similar Threads
jndi PROBLEM
Configuring JNDI for JavaBean in Tomcat 5
How to JNDI-Cannot create resource instance
how to use spring context loader
context lookup() from a servlet