You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Stuart <st...@truetel.com> on 2005/07/09 09:19:59 UTC

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:stuart@truetel.com] 
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: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


RE: add to classpath

Posted by Stuart <st...@truetel.com>.
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:dns4@cornell.edu] 
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:g.raghupathy@btinternet.com] 
>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" <st...@truetel.com>
>To: "'Tomcat Users List'" <to...@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:stuart@truetel.com]
>>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: tomcat-user-unsubscribe@jakarta.apache.org
>>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>>
>>    
>>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>  
>


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: add to classpath

Posted by David Smith <dn...@cornell.edu>.
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:g.raghupathy@btinternet.com] 
>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" <st...@truetel.com>
>To: "'Tomcat Users List'" <to...@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:stuart@truetel.com]
>>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: tomcat-user-unsubscribe@jakarta.apache.org
>>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>>
>>    
>>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>  
>


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


RE: add to classpath

Posted by Stuart <st...@truetel.com>.
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:g.raghupathy@btinternet.com] 
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" <st...@truetel.com>
To: "'Tomcat Users List'" <to...@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:stuart@truetel.com]
> 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: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: add to classpath

Posted by Gurumoorthy <g....@btinternet.com>.
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" <st...@truetel.com>
To: "'Tomcat Users List'" <to...@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:stuart@truetel.com]
> 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: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org