On 10/30/2012 8:32 AM, p.krishnamoor...@accenture.com wrote:
Hi,

I was working to inject the JNDI datasource context outside the
tomcat container. I referred this link -
https://blogs.oracle.com/randystuph/entry/injecting_jndi_datasources_for_junit.

 In order to initialize the datasource context, I had to put three
java-naming jars (naming-java-5.0.28, naming-resources-5.5.15,
naming-factory-5.5.12) and now Junits are running fine.

But now my tomcat server is not starting up; it throws exception -
Name java:comp is not bound in this Contex

It would be nice, if someone can share some thoughts on this.

Regards, Pramod.

Let me start with the obvious:

http://www.catb.org/esr/faqs/smart-questions.html

Second, search the mailing list. There has been a lot of discussions covering this issue. Most of the time it occurs because the web application is managing database pooling (instead of Tomcat) and using Spring or Hibernate or JPA and there's a misconfiguration.

Third of all, it sounds like your web application is not starting, not Tomcat.

At a minimum, we'll need

1. OS (and version - be specific)
2. Tomcat (and version - be specific)
3. Java (and version - be specific)
4. Log files showing the error (paste them in, the list strips
   attachments
4. JNDI configuration (paste them in, remove comments obscure
   passwords, etc.)
   If it's in Tomcat, your Resource element
   If it's in Spring, your bean configuration
   If it's in Hibernate, your hibernate configuration

Borrowing Pid's crystal ball:

If the web application worked before, and not now, I would say you have an IDE configuration problem. I've seen this when the IDE wasn't configured to properly separate test from deployment.

If the web application has never worked, I would say you have a resource configuration problem (see item 4 above).

. . . . just my two cents
/mde/

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to