Re: add to classpath
Then I would highly recommend a persistent backend like a Db instead of playing with the classpath. Just my opinion. --David Stuart wrote: Guru, I need to do this so that I can deliver the application following my company's standard format. The tomcat application is just a small part of what is being delivered and we like to put all configuration information in a standard place for all apps. [please don't ask for any more explanation that this just accept the fact that I need to do it] *8-) BTW: I have just gone ahead and modified the Catalina.sh (I would rather have some other way but at least it works...). Thanks, Stuart -Original Message- From: Gurumoorthy [mailto:[EMAIL PROTECTED] Sent: Saturday, July 09, 2005 10:29 PM To: Tomcat Users List Subject: Re: add to classpath why are you doing this ? just copy the jars to the lib directory inside WEB-INF .. and restart the app ... or if this spans into multiple application then ... put them in the tomcat/common/bin directory ... Regards guru - Original Message - From: Stuart [EMAIL PROTECTED] To: 'Tomcat Users List' tomcat-user@jakarta.apache.org Sent: Saturday, July 09, 2005 8:19 AM Subject: add to classpath Hi, Please scratch that last question. I still do not know what the problem is but I think I will just go with modifying Catalina.sh. Actually all I need to do is add to the tomcat classpath so that my web applications can find things in different locations. Is there are better way than hacking the .sh file (jakarta-tomcat-5.0.28)? Thanks, Stuart -Original Message- From: Stuart [mailto:[EMAIL PROTECTED] Sent: Saturday, July 09, 2005 1:42 PM To: 'Tomcat Users List' Subject: Problem using org.apache.catalina.startup.Bootstrap Hi, I am trying to start Tomcat using my own script and am getting the following error (Please help!): /cygdrive/c/j2sdk1.4.2_07/bin/java -classpath .\;c:\data\stuart\npshome\var\prop erties\lsms;c:\jakarta-tomcat-5.0.28\bin\bootstrap.jar;c:\j2sdk1.4.2_07\lib\ tool s.jar -Dcatalina.base=c:\data\stuart\npshome\var\lsmsweb -Dcatalina.home=c:\jakarta-tomcat-5.0.28 -Djava.io.tmpdir= -Djava.endorsed.dirs=c:\jakarta-tomcat-5.0.28\bin;c:\jakarta-tomcat-5.0.28\c ommon\lib org.apache.catalina.startup.Bootstrap start Bootstrap: Class loader creation threw exception java.lang.ExceptionInInitializerError at org.apache.catalina.startup.ClassLoaderFactory.clinit(ClassLoaderFactory.j ava:63) at org.apache.catalina.startup.Bootstrap.initClassLoaders(Bootstrap.java :103)at org.apache.catalina.startup.Bootstrap.init(Bootstrap.java:196) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:402) Caused by: org.apache.commons.logging.LogConfigurationException: org.apache.comm ons.logging.LogConfigurationException: java.lang.NullPointerException (Caused by java.lang.NullPointerException) (Caused by org.apache.commons.logging.LogConfig urationException: java.lang.NullPointerException (Caused by java.lang.NullPointerException))at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactory Impl.java:543)at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactory Impl.java:235) Regards, Stuart - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: add to classpath
David, Can the DB hold my hibernate.cfg.xml, castor.properties, log4j.properties? Even if there was a way to put these in the database I'm afraid its more trouble than it worth. Thanks for the suggestions but I'll just stick with my script change. Stuart -Original Message- From: David Smith [mailto:[EMAIL PROTECTED] Sent: Monday, July 11, 2005 12:57 AM To: Tomcat Users List Subject: Re: add to classpath Then I would highly recommend a persistent backend like a Db instead of playing with the classpath. Just my opinion. --David Stuart wrote: Guru, I need to do this so that I can deliver the application following my company's standard format. The tomcat application is just a small part of what is being delivered and we like to put all configuration information in a standard place for all apps. [please don't ask for any more explanation that this just accept the fact that I need to do it] *8-) BTW: I have just gone ahead and modified the Catalina.sh (I would rather have some other way but at least it works...). Thanks, Stuart -Original Message- From: Gurumoorthy [mailto:[EMAIL PROTECTED] Sent: Saturday, July 09, 2005 10:29 PM To: Tomcat Users List Subject: Re: add to classpath why are you doing this ? just copy the jars to the lib directory inside WEB-INF .. and restart the app ... or if this spans into multiple application then ... put them in the tomcat/common/bin directory ... Regards guru - Original Message - From: Stuart [EMAIL PROTECTED] To: 'Tomcat Users List' tomcat-user@jakarta.apache.org Sent: Saturday, July 09, 2005 8:19 AM Subject: add to classpath Hi, Please scratch that last question. I still do not know what the problem is but I think I will just go with modifying Catalina.sh. Actually all I need to do is add to the tomcat classpath so that my web applications can find things in different locations. Is there are better way than hacking the .sh file (jakarta-tomcat-5.0.28)? Thanks, Stuart -Original Message- From: Stuart [mailto:[EMAIL PROTECTED] Sent: Saturday, July 09, 2005 1:42 PM To: 'Tomcat Users List' Subject: Problem using org.apache.catalina.startup.Bootstrap Hi, I am trying to start Tomcat using my own script and am getting the following error (Please help!): /cygdrive/c/j2sdk1.4.2_07/bin/java -classpath .\;c:\data\stuart\npshome\var\prop erties\lsms;c:\jakarta-tomcat-5.0.28\bin\bootstrap.jar;c:\j2sdk1.4.2_07\lib \ tool s.jar -Dcatalina.base=c:\data\stuart\npshome\var\lsmsweb -Dcatalina.home=c:\jakarta-tomcat-5.0.28 -Djava.io.tmpdir= -Djava.endorsed.dirs=c:\jakarta-tomcat-5.0.28\bin;c:\jakarta-tomcat-5.0.28\ c ommon\lib org.apache.catalina.startup.Bootstrap start Bootstrap: Class loader creation threw exception java.lang.ExceptionInInitializerError at org.apache.catalina.startup.ClassLoaderFactory.clinit(ClassLoaderFactory. j ava:63) at org.apache.catalina.startup.Bootstrap.initClassLoaders(Bootstrap.java :103)at org.apache.catalina.startup.Bootstrap.init(Bootstrap.java:196) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:402) Caused by: org.apache.commons.logging.LogConfigurationException: org.apache.comm ons.logging.LogConfigurationException: java.lang.NullPointerException (Caused by java.lang.NullPointerException) (Caused by org.apache.commons.logging.LogConfig urationException: java.lang.NullPointerException (Caused by java.lang.NullPointerException))at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactory Impl.java:543)at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactory Impl.java:235) Regards, Stuart - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
add to classpath
Hi, Please scratch that last question. I still do not know what the problem is but I think I will just go with modifying Catalina.sh. Actually all I need to do is add to the tomcat classpath so that my web applications can find things in different locations. Is there are better way than hacking the .sh file (jakarta-tomcat-5.0.28)? Thanks, Stuart -Original Message- From: Stuart [mailto:[EMAIL PROTECTED] Sent: Saturday, July 09, 2005 1:42 PM To: 'Tomcat Users List' Subject: Problem using org.apache.catalina.startup.Bootstrap Hi, I am trying to start Tomcat using my own script and am getting the following error (Please help!): /cygdrive/c/j2sdk1.4.2_07/bin/java -classpath .\;c:\data\stuart\npshome\var\prop erties\lsms;c:\jakarta-tomcat-5.0.28\bin\bootstrap.jar;c:\j2sdk1.4.2_07\lib\ tool s.jar -Dcatalina.base=c:\data\stuart\npshome\var\lsmsweb -Dcatalina.home=c:\jakarta-tomcat-5.0.28 -Djava.io.tmpdir= -Djava.endorsed.dirs=c:\jakarta-tomcat-5.0.28\bin;c:\jakarta-tomcat-5.0.28\c ommon\lib org.apache.catalina.startup.Bootstrap start Bootstrap: Class loader creation threw exception java.lang.ExceptionInInitializerError at org.apache.catalina.startup.ClassLoaderFactory.clinit(ClassLoaderFactory.j ava:63) at org.apache.catalina.startup.Bootstrap.initClassLoaders(Bootstrap.java :103)at org.apache.catalina.startup.Bootstrap.init(Bootstrap.java:196) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:402) Caused by: org.apache.commons.logging.LogConfigurationException: org.apache.comm ons.logging.LogConfigurationException: java.lang.NullPointerException (Caused by java.lang.NullPointerException) (Caused by org.apache.commons.logging.LogConfig urationException: java.lang.NullPointerException (Caused by java.lang.NullPointerException))at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactory Impl.java:543)at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactory Impl.java:235) Regards, Stuart - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: add to classpath
why are you doing this ? just copy the jars to the lib directory inside WEB-INF .. and restart the app ... or if this spans into multiple application then ... put them in the tomcat/common/bin directory ... Regards guru - Original Message - From: Stuart [EMAIL PROTECTED] To: 'Tomcat Users List' tomcat-user@jakarta.apache.org Sent: Saturday, July 09, 2005 8:19 AM Subject: add to classpath Hi, Please scratch that last question. I still do not know what the problem is but I think I will just go with modifying Catalina.sh. Actually all I need to do is add to the tomcat classpath so that my web applications can find things in different locations. Is there are better way than hacking the .sh file (jakarta-tomcat-5.0.28)? Thanks, Stuart -Original Message- From: Stuart [mailto:[EMAIL PROTECTED] Sent: Saturday, July 09, 2005 1:42 PM To: 'Tomcat Users List' Subject: Problem using org.apache.catalina.startup.Bootstrap Hi, I am trying to start Tomcat using my own script and am getting the following error (Please help!): /cygdrive/c/j2sdk1.4.2_07/bin/java -classpath .\;c:\data\stuart\npshome\var\prop erties\lsms;c:\jakarta-tomcat-5.0.28\bin\bootstrap.jar;c:\j2sdk1.4.2_07\lib\ tool s.jar -Dcatalina.base=c:\data\stuart\npshome\var\lsmsweb -Dcatalina.home=c:\jakarta-tomcat-5.0.28 -Djava.io.tmpdir= -Djava.endorsed.dirs=c:\jakarta-tomcat-5.0.28\bin;c:\jakarta-tomcat-5.0.28\c ommon\lib org.apache.catalina.startup.Bootstrap start Bootstrap: Class loader creation threw exception java.lang.ExceptionInInitializerError at org.apache.catalina.startup.ClassLoaderFactory.clinit(ClassLoaderFactory.j ava:63) at org.apache.catalina.startup.Bootstrap.initClassLoaders(Bootstrap.java :103)at org.apache.catalina.startup.Bootstrap.init(Bootstrap.java:196) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:402) Caused by: org.apache.commons.logging.LogConfigurationException: org.apache.comm ons.logging.LogConfigurationException: java.lang.NullPointerException (Caused by java.lang.NullPointerException) (Caused by org.apache.commons.logging.LogConfig urationException: java.lang.NullPointerException (Caused by java.lang.NullPointerException))at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactory Impl.java:543)at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactory Impl.java:235) Regards, Stuart - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: add to classpath
Guru, I need to do this so that I can deliver the application following my company's standard format. The tomcat application is just a small part of what is being delivered and we like to put all configuration information in a standard place for all apps. [please don't ask for any more explanation that this just accept the fact that I need to do it] *8-) BTW: I have just gone ahead and modified the Catalina.sh (I would rather have some other way but at least it works...). Thanks, Stuart -Original Message- From: Gurumoorthy [mailto:[EMAIL PROTECTED] Sent: Saturday, July 09, 2005 10:29 PM To: Tomcat Users List Subject: Re: add to classpath why are you doing this ? just copy the jars to the lib directory inside WEB-INF .. and restart the app ... or if this spans into multiple application then ... put them in the tomcat/common/bin directory ... Regards guru - Original Message - From: Stuart [EMAIL PROTECTED] To: 'Tomcat Users List' tomcat-user@jakarta.apache.org Sent: Saturday, July 09, 2005 8:19 AM Subject: add to classpath Hi, Please scratch that last question. I still do not know what the problem is but I think I will just go with modifying Catalina.sh. Actually all I need to do is add to the tomcat classpath so that my web applications can find things in different locations. Is there are better way than hacking the .sh file (jakarta-tomcat-5.0.28)? Thanks, Stuart -Original Message- From: Stuart [mailto:[EMAIL PROTECTED] Sent: Saturday, July 09, 2005 1:42 PM To: 'Tomcat Users List' Subject: Problem using org.apache.catalina.startup.Bootstrap Hi, I am trying to start Tomcat using my own script and am getting the following error (Please help!): /cygdrive/c/j2sdk1.4.2_07/bin/java -classpath .\;c:\data\stuart\npshome\var\prop erties\lsms;c:\jakarta-tomcat-5.0.28\bin\bootstrap.jar;c:\j2sdk1.4.2_07\lib\ tool s.jar -Dcatalina.base=c:\data\stuart\npshome\var\lsmsweb -Dcatalina.home=c:\jakarta-tomcat-5.0.28 -Djava.io.tmpdir= -Djava.endorsed.dirs=c:\jakarta-tomcat-5.0.28\bin;c:\jakarta-tomcat-5.0.28\c ommon\lib org.apache.catalina.startup.Bootstrap start Bootstrap: Class loader creation threw exception java.lang.ExceptionInInitializerError at org.apache.catalina.startup.ClassLoaderFactory.clinit(ClassLoaderFactory.j ava:63) at org.apache.catalina.startup.Bootstrap.initClassLoaders(Bootstrap.java :103)at org.apache.catalina.startup.Bootstrap.init(Bootstrap.java:196) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:402) Caused by: org.apache.commons.logging.LogConfigurationException: org.apache.comm ons.logging.LogConfigurationException: java.lang.NullPointerException (Caused by java.lang.NullPointerException) (Caused by org.apache.commons.logging.LogConfig urationException: java.lang.NullPointerException (Caused by java.lang.NullPointerException))at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactory Impl.java:543)at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactory Impl.java:235) Regards, Stuart - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]