struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Petr Jurak <109...@seznam.cz>
Subject Struts-config parsing exception on Sun Java System Application Server 8.2
Date Fri, 20 Jul 2007 07:21:33 GMT

Hello to all,
these days I'm trying to run my Struts webapp on Sun's AppServer 8.2. It
runs on Java v1.5.0_11. My webapp is built on Struts v1.3.8.
The first problem was to start ActionServlet because of missing method in
Digester. I mean method parse(URL). But this problem I corrected using a
hint from Struts JIRA [STR-2610]. So it's working now.
The strange thing I've encountered is parsing exception when parsing
struts-config. I found that this exception was raised when attemting to read
form-bean config. 
    
    <form-beans>
        <form-bean name="NAH003MenuForm"
type="cz.cpost.eip.nah.beans.NAH003MenuBean"/>
    </form-beans>

But when I chage <form-bean name="NAH003MenuForm"
type="cz.cpost.eip.nah.beans.NAH003MenuBean"/>

to <form-bean name="NAH003MenuForm"
type="cz.cpost.eip.nah.beans.NAH003MenuBean "/>
or <form-bean name="NAH003MenuForm"
type="cz.cpost.eip.nah.beans.NAH003Menubean"/>
or <form-bean name="NAH003MenuForm"
type="cz.cpost.eip.nah.beans.NAH003MenuForm"/>
it works okay! But I don't want to rename all my beans objects. :/

I have to say this webapp works okay on Sybase EAServer 5.x and on the same
JVM.
I tried to replace Xerces 2.6.2 by 2.9.0, but without effect. In
/WEB-INF/lib I don't have any jars files
related to Xerces. I'm little disappointed. Is there anybody how could help
me???
Thanx.

Peter


DTD of struts-config:

<!DOCTYPE struts-config PUBLIC
          "-//Apache Software Foundation//DTD Struts Configuration 1.3//EN"
          "http://struts.apache.org/dtds/struts-config_1_3.dtd">

WEB-INF/lib:
antlr-2.7.2.jar
bsf-2.3.0.jar
commons-beanutils-1.7.0.jar
commons-beanutils-bean-collections.jar
commons-beanutils-core.jar
commons-chain-1.1.jar
commons-fileupload-1.1.1.jar
commons-io-1.1.jar
commons-logging-1.0.4.jar
commons-validator-1.3.1.jar
dir.list
dom4j.jar
eipcommon.jar
itext-1.4.8.jar
jstl-1.0.2.jar
Log.jar
log4j.jar
oro-2.0.8.jar
spring-aspects.jar
spring-mock.jar
spring.jar
standard-1.0.2.jar
struts-core-1.3.8.jar
struts-el-1.3.8.jar
struts-extras-1.3.8.jar
struts-faces-1.3.8.jar
Struts-Layout-1.2.jar
struts-mailreader-dao-1.3.8.jar
struts-scripting-1.3.8.jar
struts-taglib-1.3.8.jar
struts-tiles-1.3.8.jar

Error log:

2007-07-20 09:18:44,218 ERROR [ActionServlet]  - Parsing error processing
resource path jndi:/server/nah/WEB-INF/struts-config.xml
java.lang.reflect.InvocationTargetException
	at
org.apache.commons.digester.Digester.createSAXException(Digester.java:2540)
	at
org.apache.commons.digester.Digester.createSAXException(Digester.java:2566)
	at org.apache.commons.digester.Digester.startElement(Digester.java:1276)
	at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:533)
	at
com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:220)
	at
com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.emptyElement(XMLDTDValidator.java:819)
	at
com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:322)
	at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1693)
	at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:368)
	at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:834)
	at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764)
	at
com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:148)
	at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1242)
	at org.apache.commons.digester.Digester.parse(Digester.java:1567)
	at org.apache.struts.action.ActionServlet.parseModuleConfigFile(Unknown
Source)
	at org.apache.struts.action.ActionServlet.initModuleConfig(Unknown Source)
	at org.apache.struts.action.ActionServlet.init(Unknown Source)
	at javax.servlet.GenericServlet.init(GenericServlet.java:261)
	at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1099)
	at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:931)
	at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4183)
	at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4536)
	at com.sun.enterprise.web.WebModule.start(WebModule.java:241)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1086)
	at org.apache.catalina.core.StandardHost.start(StandardHost.java:847)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1086)
	at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:483)
	at org.apache.catalina.startup.Embedded.start(Embedded.java:894)
	at com.sun.enterprise.web.WebContainer.start(WebContainer.java:741)
	at
com.sun.enterprise.web.PEWebContainer.startInstance(PEWebContainer.java:515)
	at
com.sun.enterprise.web.PEWebContainerLifecycle.onStartup(PEWebContainerLifecycle.java:54)
	at
com.sun.enterprise.server.ApplicationServer.onStartup(ApplicationServer.java:300)
	at com.sun.enterprise.server.PEMain.run(PEMain.java:294)
	at com.sun.enterprise.server.PEMain.main(PEMain.java:220)
	
	Error in server.log
	
[#|2007-07-20T09:18:44.218+0200|INFO|sun-appserver-pe8.2|javax.enterprise.system.container.web|_ThreadID=10;|WebModule[/nah]Marking
servlet action as unavailable|#]

[#|2007-07-20T09:18:44.218+0200|SEVERE|sun-appserver-pe8.2|javax.enterprise.system.container.web|_ThreadID=10;|WebModule[/nah]Servlet
/nah threw load() exception
javax.servlet.UnavailableException: Parsing error processing resource path
jndi:/server/nah/WEB-INF/struts-config.xml
	at org.apache.struts.action.ActionServlet.handleConfigException(Unknown
Source)
	at org.apache.struts.action.ActionServlet.parseModuleConfigFile(Unknown
Source)
	at org.apache.struts.action.ActionServlet.initModuleConfig(Unknown Source)
	at org.apache.struts.action.ActionServlet.init(Unknown Source)
	at javax.servlet.GenericServlet.init(GenericServlet.java:261)
	at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1099)
	at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:931)
	at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4183)
	at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4536)
	at com.sun.enterprise.web.WebModule.start(WebModule.java:241)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1086)
	at org.apache.catalina.core.StandardHost.start(StandardHost.java:847)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1086)
	at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:483)
	at org.apache.catalina.startup.Embedded.start(Embedded.java:894)
	at com.sun.enterprise.web.WebContainer.start(WebContainer.java:741)
	at
com.sun.enterprise.web.PEWebContainer.startInstance(PEWebContainer.java:515)
	at
com.sun.enterprise.web.PEWebContainerLifecycle.onStartup(PEWebContainerLifecycle.java:54)
	at
com.sun.enterprise.server.ApplicationServer.onStartup(ApplicationServer.java:300)
	at com.sun.enterprise.server.PEMain.run(PEMain.java:294)
	at com.sun.enterprise.server.PEMain.main(PEMain.java:220)

-- 
View this message in context: http://www.nabble.com/Struts-config-parsing-exception-on-Sun-Java-System-Application-Server-8.2-tf4115450.html#a11703286
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message