You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@turbine.apache.org by Didier Dubois <di...@idbsoft.ch> on 2001/03/13 17:04:56 UTC

CLASSPATH + Running Multiple Turbine Version

Dear All,

Is there a way to run multiple Turbine versions using Tomcat?

As far as I understand, Tomcat use the following order for his
CLASSPATH:

1- system's $CLASSPATH env. variable.
2- ~/bin/tomcat.sh settings [like ~/lib/*.jar]
3- webapps/myapplication/WEB-INF/lib

But it seems that if I put Turbine specific jar only in the 3rd
location, Turbine does not work.

Is there an other way to ask Tomcat to run multiple instances of Tubine
[of different versions for instance]????


Regards,
Didier.


-- 
mailto:didier.dubois@idbsoft.ch	 http://www.idbsoft.ch

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


Re: CLASSPATH + Running Multiple Turbine Version

Posted by Sean Legassick <se...@informage.net>.
In message <3A...@idbsoft.ch>, Didier Dubois 
<di...@idbsoft.ch> writes
>Sean Legassick wrote:
>>
>> In message <3A...@idbsoft.ch>, Didier Dubois
>> <di...@idbsoft.ch> writes
>> >Yes (sorry):
>> >While accessing http://myserver/myapp/servlet/myapp I got the following
>> >in the logs lines, and this disappear if I put Turbine's jars in the 2nd
>> >Location.
>>
>> Where have you put your TurbineResources.properties file?
>>
>
>In: webapps/myapp/WEB-INF/conf/TurbineResources.properties

Well I'm stumped then - clearly when you put the turbine jar in 
WEB-INF/lib the TR.props file is not being found. Perhaps you should 
check your web.xml file. Other than that I can't help you from the 
information you've given, except to say that I've done exactly the same 
as you (moved an app from the webapps dir of the TDK to the webapps dir 
of a TC3.2.1 installation) and everything worked fine for me...

-- 
Sean Legassick
sean@informage.net

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


Re: CLASSPATH + Running Multiple Turbine Version

Posted by Didier Dubois <di...@idbsoft.ch>.
Sean Legassick wrote:
> 
> In message <3A...@idbsoft.ch>, Didier Dubois
> <di...@idbsoft.ch> writes
> >Yes (sorry):
> >While accessing http://myserver/myapp/servlet/myapp I got the following
> >in the logs lines, and this disappear if I put Turbine's jars in the 2nd
> >Location.
> 
> Where have you put your TurbineResources.properties file?
> 

In: webapps/myapp/WEB-INF/conf/TurbineResources.properties

I Just put the whole tree from a TDK application into the Tomact 3.2.1
webapps tree.
May be I missed something?


> --
> Sean Legassick
> sean@informage.net
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: turbine-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: turbine-dev-help@jakarta.apache.org

-- 
mailto:didier.dubois@idbsoft.ch	 http://www.idbsoft.ch

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


Re: CLASSPATH + Running Multiple Turbine Version

Posted by Sean Legassick <se...@informage.net>.
In message <3A...@idbsoft.ch>, Didier Dubois 
<di...@idbsoft.ch> writes
>Yes (sorry):
>While accessing http://myserver/mysapp/servlet/myapp I got the following
>in the logs lines, and this disappear if I put Turbine's jars in the 2nd
>Location.

Where have you put your TurbineResources.properties file?

-- 
Sean Legassick
sean@informage.net

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


Re: CLASSPATH + Running Multiple Turbine Version

Posted by Didier Dubois <di...@idbsoft.ch>.
Sean Legassick wrote:
> 
> In message <3A...@idbsoft.ch>, Didier Dubois
> <di...@idbsoft.ch> writes
> >As far as I understand, Tomcat use the following order for his
> >CLASSPATH:
> >
> >1- system's $CLASSPATH env. variable.
> >2- ~/bin/tomcat.sh settings [like ~/lib/*.jar]
> >3- webapps/myapplication/WEB-INF/lib
> >
> >But it seems that if I put Turbine specific jar only in the 3rd
> >location, Turbine does not work.
> 
> Well that's what works for me - could you give some more details on
> "does not work"?

Yes (sorry):
While accessing http://myserver/mysapp/servlet/myapp I got the following
in the logs lines, and this disappear if I put Turbine's jars in the 2nd
Location.

"""
2001-03-13 06:16:56 - PoolTcpConnector: Starting Ajp13ConnectionHandler
on 8009
java.lang.Exception: The logfile= property and the turbine.logs=
property in the TurbineResources.properties file are null 
or could not be found.  At least one of these properties must be defined
in the TurbineResources.properties file. 
Please make sure that you have properly defined the path to the
TurbineResources.properties file
and you have called
"TurbineResourceService.setPropertiesFileName("/path/to/TurbineResources.properties");"
in your code.
If you are using this class with the Turbine Servlet, this should have
been called for you already.
If you are getting this error using the Turbine Servlet, the path to the
properties file or
the path to the logfile or the logcount was not defined correctly.
Please refer to the INSTALL 
document for instructions on how to do this.

	at org.apache.turbine.util.Log.init(Log.java:208)
	at org.apache.turbine.util.Log.<clinit>(Log.java:115)
	at
org.apache.turbine.services.TurbineServices.initServices(TurbineServices.java:221)
	at org.apache.turbine.Turbine.init(Turbine.java:540)
	at
org.apache.tomcat.core.ServletWrapper.doInit(ServletWrapper.java:317)	at
org.apache.tomcat.core.Handler.init(Handler.java:215)
	at org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:296)
	at org.apache.tomcat.core.Handler.service(Handler.java:254)
	at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
	at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
	at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
	at
org.apache.tomcat.service.connector.Ajp13ConnectionHandler.processConnection(Ajp13ConnectionHandler.java:160)
	at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
	at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
	at java.lang.Thread.run(Thread.java:484)
Error=BaseSecurityService.getUserInstance:
org.apache.turbine.om.security.TurbineUser
Error=Turbine.handleException: Failed to instantiate User object


"""

> 
> >Is there an other way to ask Tomcat to run multiple instances of Tubine
> >[of different versions for instance]????
> 
> Yes, different contexts (putting the Turbine jar in WEB-INF/lib)
> 
> --
> Sean Legassick
> sean@informage.net
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: turbine-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: turbine-dev-help@jakarta.apache.org

-- 
mailto:didier.dubois@idbsoft.ch	 http://www.idbsoft.ch

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


Re: CLASSPATH + Running Multiple Turbine Version

Posted by Sean Legassick <se...@informage.net>.
In message <3A...@idbsoft.ch>, Didier Dubois 
<di...@idbsoft.ch> writes
>As far as I understand, Tomcat use the following order for his
>CLASSPATH:
>
>1- system's $CLASSPATH env. variable.
>2- ~/bin/tomcat.sh settings [like ~/lib/*.jar]
>3- webapps/myapplication/WEB-INF/lib
>
>But it seems that if I put Turbine specific jar only in the 3rd
>location, Turbine does not work.

Well that's what works for me - could you give some more details on 
"does not work"?

>Is there an other way to ask Tomcat to run multiple instances of Tubine
>[of different versions for instance]????

Yes, different contexts (putting the Turbine jar in WEB-INF/lib)

-- 
Sean Legassick
sean@informage.net

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