Bugs item #620890, was opened at 2002-10-09 10:18
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=620890&group_id=22866

Category: CatalinaBundle
Group: v3.0 Rabbit Hole
>Status: Closed
>Resolution: Wont Fix
Priority: 5
Submitted By: Theo Harper (btharper)
Assigned to: Scott M Stark (starksm)
Summary: Struts with JBoss 3.0.3_Tomcat_4.1.12

Initial Comment:
JBoss-3.0.3_Tomcat-4.1.12 does to allow a WAR file to 
be deployed that uses the Struts 1.1b2.

For example, try deploying the 
http://jakarta.apache.org/builds/jakarta-
struts/release/v1.1-b2/jakarta-struts-1.1-b2-blank.war 
causes a ClassNotFoundException (XmlDefinition) when 
reading tiles-defs.xml.

Deploying this with JBoss3.0.2_Tomcat-4.0.4 works 
okay. 

Deploying to a vanilla Tomcat4.1.12 (downloaded from 
jakarta.apache.org) works okay.

It looks like the class loader used by common-digester 
is not the one created from WEB-INF/classes and WEB-
INF/lib but the classes loader common-digester was 
loaded from.  Commons-digester has the option to use 
the thread context class loader but this is not enabled.



----------------------------------------------------------------------

>Comment By: Scott M Stark (starksm)
Date: 2002-10-28 11:26

Message:
Logged In: YES 
user_id=175228

The struts layer has to allow the Digester to use the thread 
context class loader. Tomcat-4.0.4 does not use the 
common-digester package and so in this case the WEB-
INF/lib version is used and the Digester class loader is the 
web app class loader. Report this a problem in the 
configuration of struts. You need to be able to specify that 
the thread context class loader is used to create objects.

Alternatively you could enable the servlet 2.3 class loading 
model that loads classes from the web app before the parent 
by setting the Java2ClassLoadingCompliance attribute to 
false as shown here:

 <mbean 
code="org.jboss.web.catalina.EmbeddedCatalinaService41"
   name="jboss.web:service=EmbeddedCatalina41">
   <attribute 
name="Java2ClassLoadingCompliance">false</attribute>
...


----------------------------------------------------------------------

Comment By: Halil-C. G�rsoy (che---)
Date: 2002-10-17 03:32

Message:
Logged In: YES 
user_id=455149

Hi Folks,

after i have copied all JAR's (commons-...) from the lib-Dir
in the struts-validator.war into the the lib directory from
my default config i was able to deploy
jakarta-struts-1.1-b2-blank.war and the exampels without any
further problems in JB 3.0.3/TC 4.1.12

With should work as a q&d workaround until this is fixed.



----------------------------------------------------------------------

Comment By: Theo Harper (btharper)
Date: 2002-10-09 12:20

Message:
Logged In: YES 
user_id=73492

I have found commons-digester in jboss-3.0.3_tomcat-
4.1.12/tomcat-4.1.x/server/lib/commons-digester.jar.

It's getting loaded up when the tomcat service starts.

----------------------------------------------------------------------

Comment By: Theo Harper (btharper)
Date: 2002-10-09 12:11

Message:
Logged In: YES 
user_id=73492

It seems that the Digester is getting loaded by a classLoader 
not associated with the WebApp, the WebappClassLoader is 
not being called when new 
org.apache.commons.digester.Digester() is executed (I 
assume something has loaded it already).

This means the classLoader used by the Digester only has 
itself on its classpath.

I have attached some output that might help ...



----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=620890&group_id=22866


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to