struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jan Froehlich" <Jan.Froehl...@infomotion.de>
Subject AW: Struts2 configuration problems
Date Mon, 14 Jul 2008 13:31:47 GMT
Well, ok thats really odd... The libs and configuration I added are definetely s2.

If you take a look at the other error I got - executed actions but in properties just returns
the DefaultTextProvider - can you give me a hint about that? Might be that I got two issues....

Thanks in advance!

-----Urspr√ľngliche Nachricht-----
Von: Gabriel Belingueres [mailto:belingueres@gmail.com] 
Gesendet: Montag, 14. Juli 2008 14:47
An: Struts Users Mailing List
Betreff: Re: Struts2 configuration problems

<struts-config> is not a the document root element of S2's struts.xml
file. That's the root element of S1 configuration file.

2008/7/14 Jan Froehlich <Jan.Froehlich@infomotion.de>:
> Hello List...
>
> I tried to extend a existing webapp based on a own framework with some
> actions using struts2.
> After I added all necessary libraries, the struts2 filter and the
> struts.xml I have some errors when the tomcat starts up. (see further
> below)
>
> Whats odd about that - I can call a defined action and in the debugger I
> can see that the execute method is called. But when I try to access
> properties of the action with <s:property value="MyValue" /> it is
> empty. Trying it with <s:property /> shows the class
> DefaultTextProvider.
>
> Tried to find something about that issue on the list, but I am not sure
> for what I should search.
> The exception gave just a few responses, but with no clue how to fix it.
>
> Thanks in advance!
> Jan Froehlich
>
>  Parse Error at line 2 column 16: Document root element "struts-config",
> must match DOCTYPE root "null".
> org.xml.sax.SAXParseException: Document root element "struts-config",
> must match DOCTYPE root "null".
>        at
> org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unkno
> wn Source)
>        at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown
> Source)
>        at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
> Source)
>        at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
> Source)
>        at
> org.apache.xerces.impl.dtd.XMLDTDValidator.rootElementSpecified(Unknown
> Source)
>        at
> org.apache.xerces.impl.dtd.XMLDTDValidator.handleStartElement(Unknown
> Source)
>        at
> org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown Source)
>        at
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(U
> nknown Source)
>        at
> org.apache.xerces.impl.XMLDocumentScannerImpl$ContentDispatcher.scanRoot
> ElementHook(Unknown Source)
>        at
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDis
> patcher.dispatch(Unknown Source)
>        at
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unkno
> wn Source)
>        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
> Source)
>        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
> Source)
>        at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
>        at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
> Source)
>        at javax.xml.parsers.SAXParser.parse(SAXParser.java:344)
>        at javax.xml.parsers.SAXParser.parse(SAXParser.java:120)
>        at org.apache.struts.digester.Digester.parse(Digester.java:755)
>        at
> org.apache.struts.action.ActionServlet.initMapping(ActionServlet.java:13
> 32)
>        at
> org.apache.struts.action.ActionServlet.init(ActionServlet.java:466)
>        at javax.servlet.GenericServlet.init(GenericServlet.java:212)
>        at
> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.jav
> a:1139)
>        at
> org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:966)
>        at
> org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.j
> ava:3956)
>        at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:4230
> )
>        at
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.ja
> va:760)
>        at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740)
>        at
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)
>        at
> org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:
> 626)
>        at
> org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java
> :553)
>        at
> org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:488)
>        at
> org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149)
>        at
> org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:31
> 1)
>        at
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu
> pport.java:120)
>        at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022)
>        at
> org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
>        at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
>        at
> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
>        at
> org.apache.catalina.core.StandardService.start(StandardService.java:448)
>        at
> org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
>        at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
>        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:585)
>        at
> org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
>        at
> org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
> Parse Error at line 2 column 16: Document is invalid: no grammar found.
> org.xml.sax.SAXParseException: Document is invalid: no grammar found.
>        at
> org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unkno
> wn Source)
>        at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown
> Source)
>        at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
> Source)
>        at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
> Source)
>        at
> org.apache.xerces.impl.dtd.XMLDTDValidator.handleStartElement(Unknown
> Source)
>        at
> org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown Source)
>        at
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(U
> nknown Source)
>        at
> org.apache.xerces.impl.XMLDocumentScannerImpl$ContentDispatcher.scanRoot
> ElementHook(Unknown Source)
>        at
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDis
> patcher.dispatch(Unknown Source)
>        at
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unkno
> wn Source)
>        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
> Source)
>        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
> Source)
>        at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
>        at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
> Source)
>        at javax.xml.parsers.SAXParser.parse(SAXParser.java:344)
>        at javax.xml.parsers.SAXParser.parse(SAXParser.java:120)
>        at org.apache.struts.digester.Digester.parse(Digester.java:755)
>        at
> org.apache.struts.action.ActionServlet.initMapping(ActionServlet.java:13
> 32)
>        at
> org.apache.struts.action.ActionServlet.init(ActionServlet.java:466)
>        at javax.servlet.GenericServlet.init(GenericServlet.java:212)
>        at
> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.jav
> a:1139)
>        at
> org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:966)
>        at
> org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.j
> ava:3956)
>        at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:4230
> )
>        at
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.ja
> va:760)
>        at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740)
>        at
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)
>        at
> org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:
> 626)
>        at
> org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java
> :553)
>        at
> org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:488)
>        at
> org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149)
>        at
> org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:31
> 1)
>        at
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSu
> pport.java:120)
>        at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022)
>        at
> org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
>        at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
>        at
> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
>        at
> org.apache.catalina.core.StandardService.start(StandardService.java:448)
>        at
> org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
>        at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
>        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:585)
>        at
> org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
>        at
> org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

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


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


Mime
View raw message