• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

adding bean as a JNDI to tomcat

 
Ranch Hand
Posts: 1325
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.

 
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please go through the URL : http://www.microdeveloper.com/html/JNDI_Orcl_Tomcat.html while configuring JNDI to Tomcat.
 
shawn peter
Ranch Hand
Posts: 1325
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
shawn peter
Ranch Hand
Posts: 1325
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.

 
That which doesn't kill us makes us stronger. I think a piece of pie wouldn't kill me. Tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic