So I've been trying to use this site and the daemon script here.
http://www.linuxjava.net/howto/webapp/#tomcat
It works so far. I mean, at least the server starts, I can get to the site, etc. So far, so good. The only problem is, for some reason when I start tomcat using root everything runs fine. When I start tomcat using this script, however, I get this....
FATAL [http-8080-Processor25] (DatasourceConnectionProvider.java:47) - Could not find datasource: java:comp/env/jdbc/sybDB javax.naming.NameNotFoundException: Name jdbc is not bound in this Context
Any idea what the difference would be?
Preston
On 10/31/05, Preston Crawford me@prestoncrawford.com wrote:
Any idea what the difference would be?
Paths and/or Classpaths?
Greg
I give up. This works as root, but not as "tomcat" user. There is something really wrong at the nexus of Tomcat 5.0.28, Hibernate 3 and CentOS. And I can't for the life of me figure out what it is. This app, as currently configured, runs fine under Websphere on Windows and under Tomcat on Windows.
Preston
So I've been trying to use this site and the daemon script here.
http://www.linuxjava.net/howto/webapp/#tomcat
It works so far. I mean, at least the server starts, I can get to the site, etc. So far, so good. The only problem is, for some reason when I start tomcat using root everything runs fine. When I start tomcat using this script, however, I get this....
FATAL [http-8080-Processor25] (DatasourceConnectionProvider.java:47) - Could not find datasource: java:comp/env/jdbc/sybDB javax.naming.NameNotFoundException: Name jdbc is not bound in this Context
Any idea what the difference would be?
Preston
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
On 10/31/05, Preston Crawford me@prestoncrawford.com wrote:
I give up. This works as root, but not as "tomcat" user. There is something really wrong at the nexus of Tomcat 5.0.28, Hibernate 3 and CentOS. And I can't for the life of me figure out what it is. This app, as currently configured, runs fine under Websphere on Windows and under Tomcat on Windows.
Check your PATH/CLASSPATH :)
Greg
On 10/31/05, Preston Crawford me@prestoncrawford.com wrote:
I give up. This works as root, but not as "tomcat" user. There is something really wrong at the nexus of Tomcat 5.0.28, Hibernate 3 and CentOS. And I can't for the life of me figure out what it is. This app, as currently configured, runs fine under Websphere on Windows and under Tomcat on Windows.
Preston
I really hate to say "I told you so" ( http://lists.centos.org/pipermail/centos/2005-October/014099.html ) but these instructions WORK, are TESTED, and will take you about 5 minutes apart from download time. Not to mention that they should also be compatible with the apps repository for centos once it's rolled out. Once you're done, 'service tomcat5 start' is all that's needed.....
-- Jim Perrin System Administrator - UIT Ft Gordon & US Army Signal Center
On 10/31/05, Preston Crawford me@prestoncrawford.com wrote:
I give up. This works as root, but not as "tomcat" user. There is something really wrong at the nexus of Tomcat 5.0.28, Hibernate 3 and CentOS. And I can't for the life of me figure out what it is. This app, as currently configured, runs fine under Websphere on Windows and under Tomcat on Windows.
Preston
I really hate to say "I told you so" ( http://lists.centos.org/pipermail/centos/2005-October/014099.html ) but these instructions WORK, are TESTED, and will take you about 5 minutes apart from download time. Not to mention that they should also be compatible with the apps repository for centos once it's rolled out. Once you're done, 'service tomcat5 start' is all that's needed.....
You are right and you are right. :-) Those work and they're tested.
But your solution doesn't fit me. I need complete control over the version of Tomcat, JDK, etc. that I'm running. I figured out the problem, so I'm fine now. I can't exactly tell you what I did differently. I just unpacked Tomcat again, reinstalled our custom configurations and it started working.
Preston