Hi Theo,

Could you describe your environment? I've had struts working with no
problem for some time.

Regards,

Liam.


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Theo Harper
Sent: Wednesday, October 09, 2002 8:41 PM
To: '[EMAIL PROTECTED]'
Subject: RE: [JBoss-user] JBoss 3.0.3 & tomcat 4.1.12 Can't Deploy Web
Application


I have tried using jakarta-struts-1.1-b2-blank.war from the Struts site,
and this deploys fine win JBoss-3.0.2_Tomcat-4.0.4 but not with
JBoss-3.0.3_Tomcat-4.1.12 .  It gives the same ClassNotFoundException
for XmlDefinition.

Theo


-----Original Message-----
From: Theo Harper 
Sent: 09 October 2002 08:49
To: '[EMAIL PROTECTED]'
Subject: [JBoss-user] JBoss 3.0.3 & tomcat 4.1.12 Can't Deploy Web
Application


Hi,

I am having problems using struts (and tiles) with
JBoss-3.0.3_Tomcat-4.1.12. 

My application uses the following in the struts-config.xml file.

<plug-in className="org.apache.struts.tiles.TilesPlugin" > <set-property
property="definitions-config" value="/WEB-INF/tiles-defs.xml"/>
<set-property property="definitions-debug" value="0" /> <set-property
property="definitions-parser-details" value="0" /> <set-property
property="definitions-parser-validate" value="true" /> </plug-in>

The tiles-defs.xml file contains the following (cut down):

<tiles-definitions>

<definition name="deployer.rootlayout" path="/layouts/root_layout.jsp">
<put name="docRoot" value="../" /> <put name="titleString"
value="Welcome to ..."/> <put name="topBanner"
value="/include/banner.jsp"/> <put name="lowerBanner"
value="/include/lowerbanner.jsp"/>
<put name="content" value="/secure/home_content.jsp"/>
<put name="footer" value="/include/footer.jsp"/> 
</definition>

I have traced the error down to the class loader being used by
commons-digester, when it creates the XmlDefinition class. It does not
seem to be the class loader I would expect for my web app, i.e. the
WebappClassLoader. Should the digester be set to use the
Thread.currentThread().getContextClassLoader()?

The CL I get is:

org.jboss.mx.loading.UnifiedClassLoader@17e4dee{ url=file:/E:/My
Projects/EvoDev/jboss-3.0.3_tomcat-4.1.12/server/evo/tmp/deploy/tomcat-4
.1.x
/server/lib/commons-digester.jar/79.commons-digester.jar }

The struts.jar is definitely in the WEB-INF/lib dirctory.

The error is as follows: 

java.lang.ClassNotFoundException:
org.apache.struts.tiles.xmlDefinition.XmlDefinition
at
org.jboss.mx.loading.UnifiedLoaderRepository2.loadClass(UnifiedLoaderRep
osit
ory2.java:166)
at
org.jboss.mx.loading.UnifiedClassLoader.loadClass(UnifiedClassLoader.jav
a:28
3)
at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
at
org.apache.commons.digester.ObjectCreateRule.begin(ObjectCreateRule.java
:252
)
at org.apache.commons.digester.Digester.startElement(Digester.java:1237)
at org.apache.xerces.parsers.SAXParser.startElement(SAXParser.java:1376)
at
org.apache.xerces.validators.common.XMLValidator.callStartElement(XMLVal
idat
or.java:1284)
at
org.apache.xerces.framework.XMLDocumentScanner.scanElement(XMLDocumentSc
anne
r.java:1806)
at
org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatc
h(XM
LDocumentScanner.java:1182)
at
org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScan
ner.
java:381)
at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1098)
at org.apache.commons.digester.Digester.parse(Digester.java:1514)
at
org.apache.struts.tiles.xmlDefinition.XmlParser.parse(XmlParser.java:341
)
at
org.apache.struts.tiles.xmlDefinition.I18nFactorySet.parseXmlFile(I18nFa
ctor
ySet.java:529)
at
org.apache.struts.tiles.xmlDefinition.I18nFactorySet.parseXmlFiles(I18nF
acto
rySet.java:466)
at
org.apache.struts.tiles.xmlDefinition.I18nFactorySet.createDefaultFactor
y(I1
8nFactorySet.java:294)
at
org.apache.struts.tiles.xmlDefinition.I18nFactorySet.initFactory(I18nFac
tory
Set.java:267)
at
org.apache.struts.tiles.xmlDefinition.I18nFactorySet.initFactory(I18nFac
tory
Set.java:215)
at
org.apache.struts.tiles.definition.ComponentDefinitionsFactoryWrapper.in
it(C
omponentDefinitionsFactoryWrapper.java:69)
at
org.apache.struts.tiles.DefinitionsUtil.createDefinitionsFactory(Definit
ions
Util.java:276)
at org.apache.struts.tiles.TilesPlugin.init(TilesPlugin.java:147)
at
org.apache.struts.action.ActionServlet.initApplicationPlugIns(ActionServ
let.
java:991)
at org.apache.struts.action.ActionServlet.init(ActionServlet.java:458)
at javax.servlet.GenericServlet.init(GenericServlet.java:256)
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.jav
a:92
4)
at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:813)
at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.j
ava:
3341)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3534
)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.ja
va:8
21)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579)
at
org.jboss.web.catalina.EmbeddedCatalinaService41.createWebContext(Embedd
edCa
talinaService41.java:427)
at
org.jboss.web.catalina.EmbeddedCatalinaService41.performDeploy(EmbeddedC
atal
inaService41.java:302)
at
org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:300)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:802)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:794)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:616)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:580)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:564)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39
)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl
.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDi
spat
cher.java:284)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
at
org.jboss.jmx.adaptor.rmi.RMIAdaptorImpl.invoke(RMIAdaptorImpl.java:283)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39
)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl
.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261)
at sun.rmi.transport.Transport$1.run(Transport.java:148)
at java.security.AccessController.doPrivileged(Native Method) at
sun.rmi.transport.Transport.serviceCall(Transport.java:144)
at
sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
at
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.ja
va:7
01)
at java.lang.Thread.run(Thread.java:536)

Any help much appreciated,

Theo 


This e-mail and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom it is
addressed. If you have received this e-mail in error you must not copy,
distribute or take any action in reliance on it. Please notify the
sender by e-mail or telephone. We utilise an anti-virus system and
therefore any files sent via e-mail will have been checked for known
viruses. You are however advised to run your own virus check before
opening any attachments received as we will not in any event accept any
liability whatsoever once an e-mail and/or any attachment is received.
Any views expressed by an individual within this e-mail do not
necessarily reflect the views of Systems Union Group plc or any of its
subsidiary companies.



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


This e-mail and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom it is
addressed. If you have received this e-mail in error you must not copy,
distribute or take any action in reliance on it. Please notify the
sender by e-mail or telephone. We utilise an anti-virus system and
therefore any files sent via e-mail will have been checked for known
viruses. You are however advised to run your own virus check before
opening any attachments received as we will not in any event accept any
liability whatsoever once an e-mail and/or any attachment is received.
Any views expressed by an individual within this e-mail do not
necessarily reflect the views of Systems Union Group plc or any of its
subsidiary companies.



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



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

Reply via email to