Re: Resin 2.0.0 & Struts 1.0 & JDK1.4.0-beta3 BUG?

2001-12-31 Thread Dietmar Kling

Hi,

seems to me like my JDK1.4.0 bug (see archive: Problem with different 
Struts versions )
Replace JDK with IBM JDK
 and i bet this Exception will go away ...

Regards
Dietmar


Ted Husted wrote:

>
> 
>
> Subject:
>
> Re: Resin 2.0.0 & Struts 1.0 & JDK1.4.0-beta3 BUG?
> From:
>
> Ted Husted <[EMAIL PROTECTED]>
> Date:
>
> Mon, 31 Dec 2001 09:19:54 -0500
> To:
>
> Struts Users Mailing List <[EMAIL PROTECTED]>
>
> To:
>
> Struts Users Mailing List <[EMAIL PROTECTED]>
>
>
>It looks like there are some mis-matched JARs. Try replacing the ones in
>the WEB-INF/lib with fresh copies from the struts-example application
>(assuming that one works for you).
>
>
>Lenharcik Juraj wrote:
>
>>Hi,
>>
>>I have tried to run a simple struts web-app with this configuration (above).
>>I get then this exception:
>>
>>$ Resin 2.0.0 (built Fri Jun  8 12:04:24 PDT 2001)
>>Copyright(c) 1998-2001 Caucho Technology.  All rights reserved.
>>
>>Starting Resin on Sat, 22 Dec 2001 08:44:50 +0100 (CET)
>>Begin event threw exception
>>java.lang.IllegalArgumentException: object is not an instance of declaring
>>class
>>
>>at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>at
>>sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
>>java:42)
>>at
>>sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
>>sorImpl.java:28)
>>at java.lang.reflect.Method.invoke(Method.java:327)
>>at
>>org.apache.struts.util.PropertyUtils.setSimpleProperty(PropertyUtils.
>>java:825)
>>at
>>org.apache.struts.util.PropertyUtils.setNestedProperty(PropertyUtils.
>>java:756)
>>at
>>org.apache.struts.util.PropertyUtils.setProperty(PropertyUtils.java:7
>>82)
>>at org.apache.struts.util.BeanUtils.populate(BeanUtils.java:541)
>>at
>>org.apache.struts.digester.SetPropertiesRule.begin(SetPropertiesRule.
>>java:120)
>>at
>>org.apache.struts.digester.Digester.startElement(Digester.java:498)
>>at
>>org.xml.sax.helpers.XMLReaderAdapter.startElement(XMLReaderAdapter.ja
>>va:329)
>>at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1490)
>>at org.apache.crimson.parser.Parser2.content(Parser2.java:1779)
>>at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1507)
>>at org.apache.crimson.parser.Parser2.content(Parser2.java:1779)
>>at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1507)
>>at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:500)
>>at org.apache.crimson.parser.Parser2.parse(Parser2.java:305)
>>at
>>org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:433)
>>
>>at
>>org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223)
>>
>>at javax.xml.parsers.SAXParser.parse(SAXParser.java:316)
>>at javax.xml.parsers.SAXParser.parse(SAXParser.java:91)
>>at org.apache.struts.digester.Digester.parse(Digester.java:716)
>>at
>>org.apache.struts.action.ActionServlet.initMapping(ActionServlet.java
>>:1301)
>>at
>>org.apache.struts.action.ActionServlet.init(ActionServlet.java:465)
>>at javax.servlet.GenericServlet.init(GenericServlet.java:82)
>>at
>>com.caucho.server.http.Application.createServlet(Application.java:212
>>7)
>>at
>>com.caucho.server.http.Application.loadServlet(Application.java:2091)
>>
>>at
>>com.caucho.server.http.Application.initServlets(Application.java:1347
>>)
>>at com.caucho.server.http.Application.init(Application.java:1303)
>>at com.caucho.server.http.VirtualHost.init(VirtualHost.java:446)
>>at
>>com.caucho.server.http.ServletServer.initHosts(ServletServer.java:480
>>)
>>at com.caucho.server.http.ServletServer.init(ServletServer.java:386)
>>at
>>com.caucho.server.http.ServletServer.(ServletServer.java:214)
>>at com.caucho.server.http.ResinServer.init(ResinServer.java:289)
>>at com.caucho.server.http.ResinServer.main(ResinServer.java:871)
>>at com.caucho.server.http.HttpServer.main(HttpServer.java:93)
>>http listening to *:8080
>>srun listening to 127.0.0.1:6802
>>
>>When I run it with java 1.3.0._02 it works fine. Can someone explain me,
>>waht happend?
>>
>>Thank you Juraj
>>
>>plz do as CC -> [EMAIL PROTECTED]
>>
>>--
>>To unsubscribe, e-mail:   
>>For additional commands, e-mail: 
>>
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 
>




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




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:   
For additional commands, e-mail: 




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:
>   
>
>
>
>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:
>>
>>For additional commands, e-mail:
>>
>>
>
>
>--
>Sent via jApache.org
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 
>




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.Actio

Problem with different Struts versions

2001-12-27 Thread Dietmar Kling

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:   
For additional commands, e-mail: