Re: Problem with different Struts versions

2001-12-28 Thread Geoffrey Mroz

I have tomcat 4.01 working with multiple webapps, and with different versions of 
struts (1.0.1 and a nightly build).

The only thing that comes to mind is something in your tomcat4/conf/server.xml file?  
I've got:

Context path=/App1 docBase=App1 debug=0 reloadable=true/
Context path=/application2 docBase=application2 debug=0 reloadable=true /

No EJB's, Resources etc., but it works fine.

Could that be it?

-- Geoff

 Hi,
 
 I did setup two  webapps with different versions of
 struts.jar (
 http://jakarta.apache.org/struts).
 in their WEB-INF/lib directory.
 (struts 1.0.1 and struts-devel)
 So there is a
 webapp1/WEB-INF/lib/struts.jar  (1.0.1 version)
 (struts-exercise-taglib)
 webapp2/WEB-INF/lib/struts.jar  ( devel version)
 (struts-tiles).
 
 What happens?
 
 When tomcat starts, it tries to start the
 ActionServlet of e.g  the
 first webapp.
 When starting webapp1 is finished tomcat tries to
 start webapp2. There is a
 a syntax error in struts-config.xml of webapps 2 in
 the logfile (read
 further before answering!!)
 
 Visible to the user is that some of  the examples of
 struts-1.0.1  stop
 working
 (e.g.  /struts-exercise-taglib/html-link.jsp) (
 Exceptions !!! )
 
 struts-tiles doesn't even start ( parse error in
 struts-config.xml as
 described)
 
 If I remove one webapp (doesn't matter which)  from
 the deployment dir,
 than the remaining webapp works
 
 Has anybody seen this problem?
 How can I avoid that?
 I thought tomcat 4.0.1 runs separate Instances of all
 classes in jars in
 the webapp dir.
 There seems to be an interaction?!?
 
 Please advice...
 
 Best Regards
 Die
 
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 


--
Sent via jApache.org

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Problem with different Struts versions

2001-12-28 Thread Dietmar Kling

Thanks for your answer,

however i can not get them to work  parallel.

I attach the logfiles ...
and yes it works if i remove one webapps :(

?? ?? ??

Regards
Dietmar


Geoffrey Mroz wrote:


 

 Subject:

 Re: Problem with different Struts versions
 From:

 Geoffrey Mroz [EMAIL PROTECTED]
 Date:

 Fri, 28 Dec 2001 10:38:40 -0500
 To:

 [EMAIL PROTECTED]

 To:

 [EMAIL PROTECTED]


I have tomcat 4.01 working with multiple webapps, and with different versions of 
struts (1.0.1 and a nightly build).

The only thing that comes to mind is something in your tomcat4/conf/server.xml file?  
I've got:
   
Context path=/App1 docBase=App1 debug=0 reloadable=true/
Context path=/application2 docBase=application2 debug=0 reloadable=true /

No EJB's, Resources etc., but it works fine.

Could that be it?

-- Geoff

Hi,

I did setup two  webapps with different versions of
struts.jar (
http://jakarta.apache.org/struts).
in their WEB-INF/lib directory.
(struts 1.0.1 and struts-devel)
So there is a
webapp1/WEB-INF/lib/struts.jar  (1.0.1 version)
(struts-exercise-taglib)
webapp2/WEB-INF/lib/struts.jar  ( devel version)
(struts-tiles).

What happens?

When tomcat starts, it tries to start the
ActionServlet of e.g  the
first webapp.
When starting webapp1 is finished tomcat tries to
start webapp2. There is a
a syntax error in struts-config.xml of webapps 2 in
the logfile (read
further before answering!!)

Visible to the user is that some of  the examples of
struts-1.0.1  stop
working
(e.g.  /struts-exercise-taglib/html-link.jsp) (
Exceptions !!! )

struts-tiles doesn't even start ( parse error in
struts-config.xml as
described)

If I remove one webapp (doesn't matter which)  from
the deployment dir,
than the remaining webapp works

Has anybody seen this problem?
How can I avoid that?
I thought tomcat 4.0.1 runs separate Instances of all
classes in jars in
the webapp dir.
There seems to be an interaction?!?

Please advice...

Best Regards
Die


--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]



--
Sent via jApache.org

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]





Starting service Tomcat-Standalone
Apache Tomcat/4.0.1
register('-//Apache Software Foundation//DTD Struts Configuration 1.0//EN', 
'jar:file:/var/tomcat4/webapps/struts-tiles/WEB-INF/lib/struts.jar!/org/apache/struts/resources/struts-config_1_0.dtd'
register('-//Apache Software Foundation//DTD Struts Configuration 1.1//EN', 
'jar:file:/var/tomcat4/webapps/struts-tiles/WEB-INF/lib/struts.jar!/org/apache/struts/resources/struts-config_1_1.dtd'
register('-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN', 
'jar:file:/var/tomcat4/webapps/struts-tiles/WEB-INF/lib/struts.jar!/org/apache/struts/resources/web-app_2_2.dtd'
register('-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN', 
'jar:file:/var/tomcat4/webapps/struts-tiles/WEB-INF/lib/struts.jar!/org/apache/struts/resources/web-app_2_3.dtd'
resolveEntity('-//Apache Software Foundation//DTD Struts Configuration 1.1//EN', 
'http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd')
 Resolving to alternate DTD 
'jar:file:/var/tomcat4/webapps/struts-tiles/WEB-INF/lib/struts.jar!/org/apache/struts/resources/struts-config_1_1.dtd'
New org.apache.struts.action.ActionFormBean
Set org.apache.struts.action.ActionFormBean properties
Call 
org.apache.struts.tiles.ActionComponentServlet.addFormBean(ActionFormBean[invoiceForm])
Pop org.apache.struts.action.ActionFormBean
New org.apache.struts.action.ActionFormBean
Set org.apache.struts.action.ActionFormBean properties
Call 
org.apache.struts.tiles.ActionComponentServlet.addFormBean(ActionFormBean[portalPrefsForm])
Pop org.apache.struts.action.ActionFormBean
New org.apache.struts.action.ActionForward
Set org.apache.struts.action.ActionForward properties
Call org.apache.struts.tiles.ActionComponentServlet.addForward(ActionForward[failure])
Pop org.apache.struts.action.ActionForward
New org.apache.struts.action.ActionMapping
Set org.apache.struts.action.ActionMapping properties
New org.apache.struts.action.ActionForward
Set org.apache.struts.action.ActionForward properties
Call org.apache.struts.action.ActionMapping.addForward(ActionForward[success])
Pop org.apache.struts.action.ActionForward
Call 
org.apache.struts.tiles.ActionComponentServlet.addMapping(ActionMapping[path=/tutorial/forwardExampleAction,
 type=org.apache.struts.example.tiles.tutorial.ForwardExampleAction])
Pop org.apache.struts.action.ActionMapping
New org.apache.struts.action.ActionMapping
Set org.apache.struts.action.ActionMapping properties
New org.apache.struts.action.ActionForward
Set org.apache.struts.action.ActionForward properties
Call org.apache.struts.action.ActionMapping.addForward(ActionForward[failure])
Pop org.apache.struts.action.ActionForward
New

Re: Problem with different Struts versions

2001-12-28 Thread Dietmar Kling

Hi,

at last ...

I switched to IBM-1.3.0 SDK (running tomcat) and everything works fine

-- sigh ---

portable or not portable, that is the question :(

Regards
Dietmar








--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]