JavaRanch » Java Forums »
Products »
Tomcat
| Author |
adding bean as a JNDI to tomcat
|
sameera liyanage
Ranch Hand
Joined: Nov 25, 2008
Posts: 643
|
|
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)
|
 |
sameera liyanage
Ranch Hand
Joined: Nov 25, 2008
Posts: 643
|
|
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
|
 |
sameera liyanage
Ranch Hand
Joined: Nov 25, 2008
Posts: 643
|
|
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.
|
 |
 |
|
|
subject: adding bean as a JNDI to tomcat
|
|
|
|