This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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: 1071
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: 1071
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: 1071
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.

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: adding bean as a JNDI to tomcat
 
Similar Threads
how to use spring context loader
How to JNDI-Cannot create resource instance
jndi PROBLEM
context lookup() from a servlet
Configuring JNDI for JavaBean in Tomcat 5