Hi,
i've got a really strange problem: my application runs fine after a fresh start of the Tomcat (5.0.18), but when I remove and re-install the application using the manager webapp of tomcat, I get this:
SEVERE: Could not find datasource: java:comp/env/jdbc/lt04jay
javax.naming.NameNotFoundException: Name jdbc is not bound in this Context
at org.apache.naming.NamingContext.lookup(NamingContext.java:814)
at org.apache.naming.NamingContext.lookup(NamingContext.java:184)
at org.apache.naming.NamingContext.lookup(NamingContext.java:825)
at org.apache.naming.NamingContext.lookup(NamingContext.java:184)
at org.apache.naming.NamingContext.lookup(NamingContext.java:825)
at org.apache.naming.NamingContext.lookup(NamingContext.java:197)
at org.apache.naming.SelectorContext.lookup(SelectorContext.java:183)
at javax.naming.InitialContext.lookup(InitialContext.java:347)
at net.sf.hibernate.connection.DatasourceConnectionProvider.configure(DatasourceConnectionProvider.java:44)
[...]
I've tried some other solutions from the forum like the declaration of the datasource in the <GlobalNamingResources> or adding a name="blah:/something/else" to the <session-factory> in hibernate.cfg.xml, but nothing works.
I even tried to use Tomcat 4.1.29: same problem.
Only a full server restart makes the app working again. ;-(
It feels really strange to me that my application runs fine until I _completely remove_ it and re-installing it from scratch while the server is running. I would think that after the removal, nothing is left of the app, even no open connections that might cause this problem...?
Any ideas?
Thanks,
Michael
|