Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

adding bean as a JNDI to tomcat

 
sam liya
Ranch Hand
Posts: 1240
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please go through the URL : http://www.microdeveloper.com/html/JNDI_Orcl_Tomcat.html while configuring JNDI to Tomcat.
 
sam liya
Ranch Hand
Posts: 1240
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 liya
Ranch Hand
Posts: 1240
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic