Author Login
Post Reply
user Digest 25 Feb 2010 22:29:20 -0000 Issue 9013
Topics (messages 205151 through 205155):
Struts with JSF and Tiles error
205151 by: Sekar, Sowmya
Re: Problem reloading Struts 2 app in Tomcat and Eclipse
205152 by: Volker Karlmeier
205153 by: Volker Karlmeier
205155 by: Greg Lindholm
Re: Nabble and mailing list archives
205154 by: Dale Newfield
Administrivia:
---------------------------------------------------------------------
To post to the list, e-mail: user@(protected)
To unsubscribe, e-mail: user-digest-unsubscribe@(protected)
For additional commands, e-mail: user-digest-help@(protected)
----------------------------------------------------------------------

Attachment:
user_205151.ezm (zipped)Hi,
I have an existing Struts 1 application with Tiles and JSP. I would like to use JSF 2 components instead of the JSP tags and leave the business logic and actions as is.
These are the steps I followed :
1. Copied jsf-impl , jsf-api.jar and struts-faces-1.3.8.jar in my web-inf/lib folder of my application
2. Configured the faces servlet in my web.xml
<servlet>
<servlet-name>faces</servlet-name>
<servlet-class>
javax.faces.webapp.FacesServlet</servlet-class>
<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/struts-config.xml</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>faces</servlet-name>
<url-pattern>/faces/*</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>action</servlet-name>
<url-pattern>/do/*</url-pattern>
</servlet-mapping>
I also configured my action servlet as follows :
<servlet>
<servlet-name>action</servlet-name>
<servlet-class>
org.apache.struts.action.ActionServlet</servlet-class>
<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/struts-config.xml</param-value>
</init-param>
<load-on-startup>2</load-on-startup>
</servlet>
I forwarded a menu option to a page through an action class using tiles. The target page is /faces/pages/home.jsp.
After the action is executed, it throws the following error -
WARNING: executePhase(RENDER_RESPONSE 6,
com.sun.faces.context.FacesContextImpl@(protected)
java.lang.NullPointerException at
com.sun.faces.renderkit.RenderKitImpl.createResponseWriter (
RenderKitImpl.java:183)
FacesContext is returned as null.
Please help
Sowmya Sekar

Attachment:
user_205152.ezm (zipped)-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
that seems to me as if you have a problem with your sax-parser.
You should have a look if you have
1) the correct JDK (think 5.5.28 runs with 1.5, doesn't it ?)
2) the correct xerces - libraries in your classpath
3) not any other libraries in your classpath that provide a SaxParser.
Maybe this helps.
regards
Volker
Am 24.02.2010 16:33, schrieb Greg Lindholm:
> I decided to finally ask about this problem I've been seeing for
> several years. During development I will run my Struts 2 (2.1.8)
> apps in Tomcat (5.5.25) from Eclipse (3.5.1). I've included the
> current versions I'm using but this problem goes way back over many
> different versions over a couple years.
>
> Here's the problem, if I make any changes while the app is running
> like change a properties file of change a class, Eclipse will push
> the changes to the deploy area and Tomcat will see the change and
> attempt to reload the application (that's all good and expected).
> However the reload always fails with the exception stack below and
> I have to manually stop and restart Tomcat to get it to load
> successfully and see the updates. I never had this problem with
> Struts 1 or even JSF, Tomcat was always able to reload the apps
> automatically.
>
> Anyone have any idea why the reload is failing and how to fix?
>
> Here is the stack dump:
>
> Feb 24, 2010 10:15:44 AM
>
org.apache.catalina.loader.WebappClassLoader findResourceInternal
> INFO: Illegal access: this web application instance has been
> stopped already. Could not load
> META-INF/services/org.apache.xerces.xni.parser.XMLParserConfiguration.
>
>
The eventual following stack trace is caused by an error thrown for
> debugging purposes as well as to attempt to terminate the thread
> which caused the illegal access, and has no functional impact.
> 2010-02-24 10:15:44,081 ERROR
>
org.apache.struts2.dispatcher.Dispatcher:27 - Dispatcher
> initialization failed Unable to load configuration. - [unknown
> location] at
>
com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration (
ConfigurationManager.java:58)
>
>
at
org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration (
Dispatcher.java:374)
> at
>
org.apache.struts2.dispatcher.Dispatcher.init (
Dispatcher.java:418)
> at
>
org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher (
InitOperations.java:69)
>
>
at
org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init (
StrutsPrepareAndExecuteFilter.java:51)
> at
>
org.apache.catalina.core.ApplicationFilterConfig.getFilter (
ApplicationFilterConfig.java:221)
>
>
at
org.apache.catalina.core.ApplicationFilterConfig.setFilterDef (
ApplicationFilterConfig.java:302)
> at
> org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:78)
>
>
at
org.apache.catalina.core.StandardContext.filterStart (
StandardContext.java:3635)
> at
>
org.apache.catalina.core.StandardContext.start (
StandardContext.java:4222)
>
>
at
org.apache.catalina.core.StandardContext.reload (
StandardContext.java:3025)
> at
>
org.apache.catalina.loader.WebappLoader.backgroundProcess (
WebappLoader.java:432)
>
>
at
org.apache.catalina.core.ContainerBase.backgroundProcess (
ContainerBase.java:1278)
> at
>
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1570)
>
>
at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1579)
> at
>
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1579)
>
>
at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1559)
> at
java.lang.Thread.run (
Thread.java:619) Caused by: Caught
> exception while loading file struts-default.xml - [unknown
> location] at
>
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadConfigurationFiles (
XmlConfigurationProvider.java:902)
>
>
at
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadDocuments (
XmlConfigurationProvider.java:143)
> at
>
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.init (
XmlConfigurationProvider.java:110)
>
>
at
com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer (
DefaultConfiguration.java:168)
> at
>
com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration (
ConfigurationManager.java:55)
>
>
... 17 more
> Caused by:
java.lang.ClassCastException:
>
org.apache.xerces.parsers.XIncludeAwareParserConfiguration cannot
> be cast to
org.apache.xerces.xni.parser.XMLParserConfiguration at
> org.apache.xerces.parsers.DOMParser.<init>(Unknown Source) at
> org.apache.xerces.parsers.DOMParser.<init>(Unknown Source) at
> org.apache.xerces.jaxp.DocumentBuilderImpl.<init>(Unknown Source)
> at
>
org.apache.xerces.jaxp.DocumentBuilderFactoryImpl.newDocumentBuilder(Unknown
>
>
Source)
> at
>
com.sun.org.apache.xalan.internal.xsltc.trax.SAX2DOM.createDocument (
SAX2DOM.java:326)
>
>
at
com.sun.org.apache.xalan.internal.xsltc.trax.SAX2DOM.<init>(SAX2DOM.java:85)
> at
>
com.sun.org.apache.xalan.internal.xsltc.runtime.output.TransletOutputHandlerFactory.getSerializationHandler (
TransletOutputHandlerFactory.java:187)
>
>
at
com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.getOutputHandler (
TransformerImpl.java:392)
> at
>
com.sun.org.apache.xalan.internal.xsltc.trax.TransformerHandlerImpl.setResult (
TransformerHandlerImpl.java:137)
>
>
at
com.opensymphony.xwork2.util.DomHelper$DOMBuilder.setup(DomHelper.java:205)
> at
>
com.opensymphony.xwork2.util.DomHelper$DOMBuilder.<init>(DomHelper.java:190)
>
>
at
com.opensymphony.xwork2.util.DomHelper$DOMBuilder.<init>(DomHelper.java:181)
> at
>
com.opensymphony.xwork2.util.DomHelper$DOMBuilder.<init>(DomHelper.java:167)
>
>
at
com.opensymphony.xwork2.util.DomHelper.parse (
DomHelper.java:107)
> at
>
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadConfigurationFiles (
XmlConfigurationProvider.java:893)
>
>
... 21 more
> 2010-02-24 10:15:46,982 ERROR
> org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/amsn]:3639
>
>
- - Exception starting filter struts2
> Unable to load configuration. - [unknown location] at
>
org.apache.struts2.dispatcher.Dispatcher.init (
Dispatcher.java:431)
> at
>
org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher (
InitOperations.java:69)
>
>
at
org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init (
StrutsPrepareAndExecuteFilter.java:51)
> at
>
org.apache.catalina.core.ApplicationFilterConfig.getFilter (
ApplicationFilterConfig.java:221)
>
>
at
org.apache.catalina.core.ApplicationFilterConfig.setFilterDef (
ApplicationFilterConfig.java:302)
> at
> org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:78)
>
>
at
org.apache.catalina.core.StandardContext.filterStart (
StandardContext.java:3635)
> at
>
org.apache.catalina.core.StandardContext.start (
StandardContext.java:4222)
>
>
at
org.apache.catalina.core.StandardContext.reload (
StandardContext.java:3025)
> at
>
org.apache.catalina.loader.WebappLoader.backgroundProcess (
WebappLoader.java:432)
>
>
at
org.apache.catalina.core.ContainerBase.backgroundProcess (
ContainerBase.java:1278)
> at
>
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1570)
>
>
at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1579)
> at
>
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1579)
>
>
at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1559)
> at
java.lang.Thread.run (
Thread.java:619) Caused by: Unable to load
> configuration. - [unknown location] at
>
com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration (
ConfigurationManager.java:58)
>
>
at
org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration (
Dispatcher.java:374)
> at
>
org.apache.struts2.dispatcher.Dispatcher.init (
Dispatcher.java:418)
> ... 15 more Caused by: Caught exception while loading file
> struts-default.xml - [unknown location] at
>
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadConfigurationFiles (
XmlConfigurationProvider.java:902)
>
>
at
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadDocuments (
XmlConfigurationProvider.java:143)
> at
>
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.init (
XmlConfigurationProvider.java:110)
>
>
at
com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer (
DefaultConfiguration.java:168)
> at
>
com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration (
ConfigurationManager.java:55)
>
>
... 17 more
> Caused by:
java.lang.ClassCastException:
>
org.apache.xerces.parsers.XIncludeAwareParserConfiguration cannot
> be cast to
org.apache.xerces.xni.parser.XMLParserConfiguration at
> org.apache.xerces.parsers.DOMParser.<init>(Unknown Source) at
> org.apache.xerces.parsers.DOMParser.<init>(Unknown Source) at
> org.apache.xerces.jaxp.DocumentBuilderImpl.<init>(Unknown Source)
> at
>
org.apache.xerces.jaxp.DocumentBuilderFactoryImpl.newDocumentBuilder(Unknown
>
>
Source)
> at
>
com.sun.org.apache.xalan.internal.xsltc.trax.SAX2DOM.createDocument (
SAX2DOM.java:326)
>
>
at
com.sun.org.apache.xalan.internal.xsltc.trax.SAX2DOM.<init>(SAX2DOM.java:85)
> at
>
com.sun.org.apache.xalan.internal.xsltc.runtime.output.TransletOutputHandlerFactory.getSerializationHandler (
TransletOutputHandlerFactory.java:187)
>
>
at
com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.getOutputHandler (
TransformerImpl.java:392)
> at
>
com.sun.org.apache.xalan.internal.xsltc.trax.TransformerHandlerImpl.setResult (
TransformerHandlerImpl.java:137)
>
>
at
com.opensymphony.xwork2.util.DomHelper$DOMBuilder.setup(DomHelper.java:205)
> at
>
com.opensymphony.xwork2.util.DomHelper$DOMBuilder.<init>(DomHelper.java:190)
>
>
at
com.opensymphony.xwork2.util.DomHelper$DOMBuilder.<init>(DomHelper.java:181)
> at
>
com.opensymphony.xwork2.util.DomHelper$DOMBuilder.<init>(DomHelper.java:167)
>
>
at
com.opensymphony.xwork2.util.DomHelper.parse (
DomHelper.java:107)
> at
>
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadConfigurationFiles (
XmlConfigurationProvider.java:893)
>
>
... 21 more
> Feb 24, 2010 10:15:49 AM
org.apache.catalina.core.StandardContext> start SEVERE: Error filterStart Feb 24, 2010 10:15:49 AM
>
org.apache.catalina.core.StandardContext start SEVERE: Context
> [/amsn] startup failed due to previous errors
>
> ---------------------------------------------------------------------
>
>
To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
- --
- -------------------------------
words a just some place to hide
a wall that we can run behind..
- -------------------------------
Volker Karlmeier
Friedrich-Freye-Str. 61
45481 Mlheim/Ruhr
Tel. : (+49) 208-7785675
Mobil: (+49) 176-21056587
Mail : Volker@(protected)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
iEYEARECAAYFAkuG534ACgkQaEMQXBIqssFSAgCcDJ5eoPnJaMre15YTPvbJJI38
wKIAn1qJSjcK+kPluncuVpicSmygKYn0
=unBo
-----END PGP SIGNATURE-----

Attachment:
0x122AB2C1.asc (zipped)
Attachment:
user_205153.ezm (zipped)-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi again,
regarding your reloading problem I have another idea. Look here,
if you have the next problem :)
http://tomcat.apache.org/tomcat-5.5-doc/config/context.html
regards
Volker
Am 24.02.2010 16:33, schrieb Greg Lindholm:
> I decided to finally ask about this problem I've been seeing for
> several years. During development I will run my Struts 2 (2.1.8)
> apps in Tomcat (5.5.25) from Eclipse (3.5.1). I've included the
> current versions I'm using but this problem goes way back over many
> different versions over a couple years.
>
> Here's the problem, if I make any changes while the app is running
> like change a properties file of change a class, Eclipse will push
> the changes to the deploy area and Tomcat will see the change and
> attempt to reload the application (that's all good and expected).
> However the reload always fails with the exception stack below and
> I have to manually stop and restart Tomcat to get it to load
> successfully and see the updates. I never had this problem with
> Struts 1 or even JSF, Tomcat was always able to reload the apps
> automatically.
>
> Anyone have any idea why the reload is failing and how to fix?
>
> Here is the stack dump:
>
> Feb 24, 2010 10:15:44 AM
>
org.apache.catalina.loader.WebappClassLoader findResourceInternal
> INFO: Illegal access: this web application instance has been
> stopped already. Could not load
> META-INF/services/org.apache.xerces.xni.parser.XMLParserConfiguration.
>
>
The eventual following stack trace is caused by an error thrown for
> debugging purposes as well as to attempt to terminate the thread
> which caused the illegal access, and has no functional impact.
> 2010-02-24 10:15:44,081 ERROR
>
org.apache.struts2.dispatcher.Dispatcher:27 - Dispatcher
> initialization failed Unable to load configuration. - [unknown
> location] at
>
com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration (
ConfigurationManager.java:58)
>
>
at
org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration (
Dispatcher.java:374)
> at
>
org.apache.struts2.dispatcher.Dispatcher.init (
Dispatcher.java:418)
> at
>
org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher (
InitOperations.java:69)
>
>
at
org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init (
StrutsPrepareAndExecuteFilter.java:51)
> at
>
org.apache.catalina.core.ApplicationFilterConfig.getFilter (
ApplicationFilterConfig.java:221)
>
>
at
org.apache.catalina.core.ApplicationFilterConfig.setFilterDef (
ApplicationFilterConfig.java:302)
> at
> org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:78)
>
>
at
org.apache.catalina.core.StandardContext.filterStart (
StandardContext.java:3635)
> at
>
org.apache.catalina.core.StandardContext.start (
StandardContext.java:4222)
>
>
at
org.apache.catalina.core.StandardContext.reload (
StandardContext.java:3025)
> at
>
org.apache.catalina.loader.WebappLoader.backgroundProcess (
WebappLoader.java:432)
>
>
at
org.apache.catalina.core.ContainerBase.backgroundProcess (
ContainerBase.java:1278)
> at
>
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1570)
>
>
at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1579)
> at
>
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1579)
>
>
at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1559)
> at
java.lang.Thread.run (
Thread.java:619) Caused by: Caught
> exception while loading file struts-default.xml - [unknown
> location] at
>
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadConfigurationFiles (
XmlConfigurationProvider.java:902)
>
>
at
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadDocuments (
XmlConfigurationProvider.java:143)
> at
>
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.init (
XmlConfigurationProvider.java:110)
>
>
at
com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer (
DefaultConfiguration.java:168)
> at
>
com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration (
ConfigurationManager.java:55)
>
>
... 17 more
> Caused by:
java.lang.ClassCastException:
>
org.apache.xerces.parsers.XIncludeAwareParserConfiguration cannot
> be cast to
org.apache.xerces.xni.parser.XMLParserConfiguration at
> org.apache.xerces.parsers.DOMParser.<init>(Unknown Source) at
> org.apache.xerces.parsers.DOMParser.<init>(Unknown Source) at
> org.apache.xerces.jaxp.DocumentBuilderImpl.<init>(Unknown Source)
> at
>
org.apache.xerces.jaxp.DocumentBuilderFactoryImpl.newDocumentBuilder(Unknown
>
>
Source)
> at
>
com.sun.org.apache.xalan.internal.xsltc.trax.SAX2DOM.createDocument (
SAX2DOM.java:326)
>
>
at
com.sun.org.apache.xalan.internal.xsltc.trax.SAX2DOM.<init>(SAX2DOM.java:85)
> at
>
com.sun.org.apache.xalan.internal.xsltc.runtime.output.TransletOutputHandlerFactory.getSerializationHandler (
TransletOutputHandlerFactory.java:187)
>
>
at
com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.getOutputHandler (
TransformerImpl.java:392)
> at
>
com.sun.org.apache.xalan.internal.xsltc.trax.TransformerHandlerImpl.setResult (
TransformerHandlerImpl.java:137)
>
>
at
com.opensymphony.xwork2.util.DomHelper$DOMBuilder.setup(DomHelper.java:205)
> at
>
com.opensymphony.xwork2.util.DomHelper$DOMBuilder.<init>(DomHelper.java:190)
>
>
at
com.opensymphony.xwork2.util.DomHelper$DOMBuilder.<init>(DomHelper.java:181)
> at
>
com.opensymphony.xwork2.util.DomHelper$DOMBuilder.<init>(DomHelper.java:167)
>
>
at
com.opensymphony.xwork2.util.DomHelper.parse (
DomHelper.java:107)
> at
>
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadConfigurationFiles (
XmlConfigurationProvider.java:893)
>
>
... 21 more
> 2010-02-24 10:15:46,982 ERROR
> org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/amsn]:3639
>
>
- - Exception starting filter struts2
> Unable to load configuration. - [unknown location] at
>
org.apache.struts2.dispatcher.Dispatcher.init (
Dispatcher.java:431)
> at
>
org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher (
InitOperations.java:69)
>
>
at
org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init (
StrutsPrepareAndExecuteFilter.java:51)
> at
>
org.apache.catalina.core.ApplicationFilterConfig.getFilter (
ApplicationFilterConfig.java:221)
>
>
at
org.apache.catalina.core.ApplicationFilterConfig.setFilterDef (
ApplicationFilterConfig.java:302)
> at
> org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:78)
>
>
at
org.apache.catalina.core.StandardContext.filterStart (
StandardContext.java:3635)
> at
>
org.apache.catalina.core.StandardContext.start (
StandardContext.java:4222)
>
>
at
org.apache.catalina.core.StandardContext.reload (
StandardContext.java:3025)
> at
>
org.apache.catalina.loader.WebappLoader.backgroundProcess (
WebappLoader.java:432)
>
>
at
org.apache.catalina.core.ContainerBase.backgroundProcess (
ContainerBase.java:1278)
> at
>
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1570)
>
>
at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1579)
> at
>
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1579)
>
>
at
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1559)
> at
java.lang.Thread.run (
Thread.java:619) Caused by: Unable to load
> configuration. - [unknown location] at
>
com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration (
ConfigurationManager.java:58)
>
>
at
org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration (
Dispatcher.java:374)
> at
>
org.apache.struts2.dispatcher.Dispatcher.init (
Dispatcher.java:418)
> ... 15 more Caused by: Caught exception while loading file
> struts-default.xml - [unknown location] at
>
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadConfigurationFiles (
XmlConfigurationProvider.java:902)
>
>
at
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadDocuments (
XmlConfigurationProvider.java:143)
> at
>
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.init (
XmlConfigurationProvider.java:110)
>
>
at
com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer (
DefaultConfiguration.java:168)
> at
>
com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration (
ConfigurationManager.java:55)
>
>
... 17 more
> Caused by:
java.lang.ClassCastException:
>
org.apache.xerces.parsers.XIncludeAwareParserConfiguration cannot
> be cast to
org.apache.xerces.xni.parser.XMLParserConfiguration at
> org.apache.xerces.parsers.DOMParser.<init>(Unknown Source) at
> org.apache.xerces.parsers.DOMParser.<init>(Unknown Source) at
> org.apache.xerces.jaxp.DocumentBuilderImpl.<init>(Unknown Source)
> at
>
org.apache.xerces.jaxp.DocumentBuilderFactoryImpl.newDocumentBuilder(Unknown
>
>
Source)
> at
>
com.sun.org.apache.xalan.internal.xsltc.trax.SAX2DOM.createDocument (
SAX2DOM.java:326)
>
>
at
com.sun.org.apache.xalan.internal.xsltc.trax.SAX2DOM.<init>(SAX2DOM.java:85)
> at
>
com.sun.org.apache.xalan.internal.xsltc.runtime.output.TransletOutputHandlerFactory.getSerializationHandler (
TransletOutputHandlerFactory.java:187)
>
>
at
com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.getOutputHandler (
TransformerImpl.java:392)
> at
>
com.sun.org.apache.xalan.internal.xsltc.trax.TransformerHandlerImpl.setResult (
TransformerHandlerImpl.java:137)
>
>
at
com.opensymphony.xwork2.util.DomHelper$DOMBuilder.setup(DomHelper.java:205)
> at
>
com.opensymphony.xwork2.util.DomHelper$DOMBuilder.<init>(DomHelper.java:190)
>
>
at
com.opensymphony.xwork2.util.DomHelper$DOMBuilder.<init>(DomHelper.java:181)
> at
>
com.opensymphony.xwork2.util.DomHelper$DOMBuilder.<init>(DomHelper.java:167)
>
>
at
com.opensymphony.xwork2.util.DomHelper.parse (
DomHelper.java:107)
> at
>
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadConfigurationFiles (
XmlConfigurationProvider.java:893)
>
>
... 21 more
> Feb 24, 2010 10:15:49 AM
org.apache.catalina.core.StandardContext> start SEVERE: Error filterStart Feb 24, 2010 10:15:49 AM
>
org.apache.catalina.core.StandardContext start SEVERE: Context
> [/amsn] startup failed due to previous errors
>
> ---------------------------------------------------------------------
>
>
To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
- --
- -------------------------------
words a just some place to hide
a wall that we can run behind..
- -------------------------------
Volker Karlmeier
Friedrich-Freye-Str. 61
45481 Mlheim/Ruhr
Tel. : (+49) 208-7785675
Mobil: (+49) 176-21056587
Mail : Volker@(protected)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
iEYEARECAAYFAkuG5/EACgkQaEMQXBIqssF/dQCgh/eEYeM8Ku7yAYjzqe1ii3y9
hmgAn3Dk/VBkKIyK9KiYP67sPDcWCnhU
=nklc
-----END PGP SIGNATURE-----

Attachment:
0x122AB2C1.asc (zipped)
Attachment:
user_205155.ezm (zipped)>1) the correct JDK (think 5.5.28 runs with 1.5, doesn't it ?)
Running with JDK 1.6.0_16
> 2) the correct xerces - libraries in your classpath
I've got xercesImpl.jar (2.9.1) in my WEB-INF/lib folder and as far as
I know that is the only SAXParser.
> 3) not any other libraries in your classpath that provide a SaxParser.
Not that I'm aware of but how would I know? I have Struts 2 and
Hibernate and all there dependent jars but nothing else that looks
like it's an XML parser.
>regarding your reloading problem I have another idea. Look here,
>if you have the next problem :)
>http://tomcat.apache.org/tomcat-5.5-doc/config/context.html
I not finding anything that looks like a problem off this link.
Again, everything works when I launch Tomcat fresh or restart it from
within Eclipse. I only get the error when Tomcat attempts to reload
the application.
Here seems to be the core issue:
Caused by:
java.lang.ClassCastException:
org.apache.xerces.parsers.XIncludeAwareParserConfiguration cannot be
cast to
org.apache.xerces.xni.parser.XMLParserConfigurationAny ideas on how to figure out what is going on?
On Thu, Feb 25, 2010 at 4:13 PM, Volker Karlmeier <volker@(protected):
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi again,
>
> regarding your reloading problem I have another idea. Look here,
> if you have the next problem :)
> http://tomcat.apache.org/tomcat-5.5-doc/config/context.html
>
> regards
>
> Volker
>
>
>
> Am 24.02.2010 16:33, schrieb Greg Lindholm:
>> I decided to finally ask about this problem I've been seeing for
>> several years. During development I will run my Struts 2 (2.1.8)
>> apps in Tomcat (5.5.25) from Eclipse (3.5.1). I've included the
>> current versions I'm using but this problem goes way back over many
>> different versions over a couple years.
>>
>> Here's the problem, if I make any changes while the app is running
>> like change a properties file of change a class, Eclipse will push
>> the changes to the deploy area and Tomcat will see the change and
>> attempt to reload the application (that's all good and expected).
>> However the reload always fails with the exception stack below and
>> I have to manually stop and restart Tomcat to get it to load
>> successfully and see the updates. I never had this problem with
>> Struts 1 or even JSF, Tomcat was always able to reload the apps
>> automatically.
>>
>> Anyone have any idea why the reload is failing and how to fix?
>>
>> Here is the stack dump:
>>
>> Feb 24, 2010 10:15:44 AM
>>
org.apache.catalina.loader.WebappClassLoader findResourceInternal
>> INFO: Illegal access: this web application instance has been
>> stopped already. Could not load
>> META-INF/services/org.apache.xerces.xni.parser.XMLParserConfiguration.
>>
>>
> The eventual following stack trace is caused by an error thrown for
>> debugging purposes as well as to attempt to terminate the thread
>> which caused the illegal access, and has no functional impact.
>> 2010-02-24 10:15:44,081 ERROR
>>
org.apache.struts2.dispatcher.Dispatcher:27 - Dispatcher
>> initialization failed Unable to load configuration. - [unknown
>> location] at
>>
com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration (
ConfigurationManager.java:58)
>>
>>
> at
>
org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration (
Dispatcher.java:374)
>> at
>>
org.apache.struts2.dispatcher.Dispatcher.init (
Dispatcher.java:418)
>> at
>>
org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher (
InitOperations.java:69)
>>
>>
> at
>
org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init (
StrutsPrepareAndExecuteFilter.java:51)
>> at
>>
org.apache.catalina.core.ApplicationFilterConfig.getFilter (
ApplicationFilterConfig.java:221)
>>
>>
> at
>
org.apache.catalina.core.ApplicationFilterConfig.setFilterDef (
ApplicationFilterConfig.java:302)
>> at
>> org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:78)
>>
>>
> at
>
org.apache.catalina.core.StandardContext.filterStart (
StandardContext.java:3635)
>> at
>>
org.apache.catalina.core.StandardContext.start (
StandardContext.java:4222)
>>
>>
> at
>
org.apache.catalina.core.StandardContext.reload (
StandardContext.java:3025)
>> at
>>
org.apache.catalina.loader.WebappLoader.backgroundProcess (
WebappLoader.java:432)
>>
>>
> at
>
org.apache.catalina.core.ContainerBase.backgroundProcess (
ContainerBase.java:1278)
>> at
>>
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1570)
>>
>>
> at
>
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1579)
>> at
>>
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1579)
>>
>>
> at
>
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1559)
>> at
java.lang.Thread.run (
Thread.java:619) Caused by: Caught
>> exception while loading file struts-default.xml - [unknown
>> location] at
>>
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadConfigurationFiles (
XmlConfigurationProvider.java:902)
>>
>>
> at
>
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadDocuments (
XmlConfigurationProvider.java:143)
>> at
>>
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.init (
XmlConfigurationProvider.java:110)
>>
>>
> at
>
com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer (
DefaultConfiguration.java:168)
>> at
>>
com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration (
ConfigurationManager.java:55)
>>
>>
> ... 17 more
>> Caused by:
java.lang.ClassCastException:
>>
org.apache.xerces.parsers.XIncludeAwareParserConfiguration cannot
>> be cast to
org.apache.xerces.xni.parser.XMLParserConfiguration at
>> org.apache.xerces.parsers.DOMParser.<init>(Unknown Source) at
>> org.apache.xerces.parsers.DOMParser.<init>(Unknown Source) at
>> org.apache.xerces.jaxp.DocumentBuilderImpl.<init>(Unknown Source)
>> at
>>
org.apache.xerces.jaxp.DocumentBuilderFactoryImpl.newDocumentBuilder(Unknown
>>
>>
> Source)
>> at
>>
com.sun.org.apache.xalan.internal.xsltc.trax.SAX2DOM.createDocument (
SAX2DOM.java:326)
>>
>>
> at
> com.sun.org.apache.xalan.internal.xsltc.trax.SAX2DOM.<init>(SAX2DOM.java:85)
>> at
>>
com.sun.org.apache.xalan.internal.xsltc.runtime.output.TransletOutputHandlerFactory.getSerializationHandler (
TransletOutputHandlerFactory.java:187)
>>
>>
> at
>
com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.getOutputHandler (
TransformerImpl.java:392)
>> at
>>
com.sun.org.apache.xalan.internal.xsltc.trax.TransformerHandlerImpl.setResult (
TransformerHandlerImpl.java:137)
>>
>>
> at
>
com.opensymphony.xwork2.util.DomHelper$DOMBuilder.setup(DomHelper.java:205)
>> at
>>
com.opensymphony.xwork2.util.DomHelper$DOMBuilder.<init>(DomHelper.java:190)
>>
>>
> at
>
com.opensymphony.xwork2.util.DomHelper$DOMBuilder.<init>(DomHelper.java:181)
>> at
>>
com.opensymphony.xwork2.util.DomHelper$DOMBuilder.<init>(DomHelper.java:167)
>>
>>
> at
com.opensymphony.xwork2.util.DomHelper.parse (
DomHelper.java:107)
>> at
>>
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadConfigurationFiles (
XmlConfigurationProvider.java:893)
>>
>>
> ... 21 more
>> 2010-02-24 10:15:46,982 ERROR
>> org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/amsn]:3639
>>
>>
> - - Exception starting filter struts2
>> Unable to load configuration. - [unknown location] at
>>
org.apache.struts2.dispatcher.Dispatcher.init (
Dispatcher.java:431)
>> at
>>
org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher (
InitOperations.java:69)
>>
>>
> at
>
org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init (
StrutsPrepareAndExecuteFilter.java:51)
>> at
>>
org.apache.catalina.core.ApplicationFilterConfig.getFilter (
ApplicationFilterConfig.java:221)
>>
>>
> at
>
org.apache.catalina.core.ApplicationFilterConfig.setFilterDef (
ApplicationFilterConfig.java:302)
>> at
>> org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:78)
>>
>>
> at
>
org.apache.catalina.core.StandardContext.filterStart (
StandardContext.java:3635)
>> at
>>
org.apache.catalina.core.StandardContext.start (
StandardContext.java:4222)
>>
>>
> at
>
org.apache.catalina.core.StandardContext.reload (
StandardContext.java:3025)
>> at
>>
org.apache.catalina.loader.WebappLoader.backgroundProcess (
WebappLoader.java:432)
>>
>>
> at
>
org.apache.catalina.core.ContainerBase.backgroundProcess (
ContainerBase.java:1278)
>> at
>>
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1570)
>>
>>
> at
>
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1579)
>> at
>>
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1579)
>>
>>
> at
>
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1559)
>> at
java.lang.Thread.run (
Thread.java:619) Caused by: Unable to load
>> configuration. - [unknown location] at
>>
com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration (
ConfigurationManager.java:58)
>>
>>
> at
>
org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration (
Dispatcher.java:374)
>> at
>>
org.apache.struts2.dispatcher.Dispatcher.init (
Dispatcher.java:418)
>> ... 15 more Caused by: Caught exception while loading file
>> struts-default.xml - [unknown location] at
>>
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadConfigurationFiles (
XmlConfigurationProvider.java:902)
>>
>>
> at
>
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadDocuments (
XmlConfigurationProvider.java:143)
>> at
>>
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.init (
XmlConfigurationProvider.java:110)
>>
>>
> at
>
com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer (
DefaultConfiguration.java:168)
>> at
>>
com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration (
ConfigurationManager.java:55)
>>
>>
> ... 17 more
>> Caused by:
java.lang.ClassCastException:
>>
org.apache.xerces.parsers.XIncludeAwareParserConfiguration cannot
>> be cast to
org.apache.xerces.xni.parser.XMLParserConfiguration at
>> org.apache.xerces.parsers.DOMParser.<init>(Unknown Source) at
>> org.apache.xerces.parsers.DOMParser.<init>(Unknown Source) at
>> org.apache.xerces.jaxp.DocumentBuilderImpl.<init>(Unknown Source)
>> at
>>
org.apache.xerces.jaxp.DocumentBuilderFactoryImpl.newDocumentBuilder(Unknown
>>
>>
> Source)
>> at
>>
com.sun.org.apache.xalan.internal.xsltc.trax.SAX2DOM.createDocument (
SAX2DOM.java:326)
>>
>>
> at
> com.sun.org.apache.xalan.internal.xsltc.trax.SAX2DOM.<init>(SAX2DOM.java:85)
>> at
>>
com.sun.org.apache.xalan.internal.xsltc.runtime.output.TransletOutputHandlerFactory.getSerializationHandler (
TransletOutputHandlerFactory.java:187)
>>
>>
> at
>
com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.getOutputHandler (
TransformerImpl.java:392)
>> at
>>
com.sun.org.apache.xalan.internal.xsltc.trax.TransformerHandlerImpl.setResult (
TransformerHandlerImpl.java:137)
>>
>>
> at
>
com.opensymphony.xwork2.util.DomHelper$DOMBuilder.setup(DomHelper.java:205)
>> at
>>
com.opensymphony.xwork2.util.DomHelper$DOMBuilder.<init>(DomHelper.java:190)
>>
>>
> at
>
com.opensymphony.xwork2.util.DomHelper$DOMBuilder.<init>(DomHelper.java:181)
>> at
>>
com.opensymphony.xwork2.util.DomHelper$DOMBuilder.<init>(DomHelper.java:167)
>>
>>
> at
com.opensymphony.xwork2.util.DomHelper.parse (
DomHelper.java:107)
>> at
>>
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadConfigurationFiles (
XmlConfigurationProvider.java:893)
>>
>>
> ... 21 more
>> Feb 24, 2010 10:15:49 AM
org.apache.catalina.core.StandardContext>> start SEVERE: Error filterStart Feb 24, 2010 10:15:49 AM
>>
org.apache.catalina.core.StandardContext start SEVERE: Context
>> [/amsn] startup failed due to previous errors
>>
>> ---------------------------------------------------------------------
>>
>>
> To unsubscribe, e-mail: user-unsubscribe@(protected)
>> For additional commands, e-mail: user-help@(protected)
>>
>
>
> - --
> - -------------------------------
> words a just some place to hide
> a wall that we can run behind..
> - -------------------------------
> Volker Karlmeier
> Friedrich-Freye-Str. 61
> 45481 Mlheim/Ruhr
>
> Tel. : (+49) 208-7785675
> Mobil: (+49) 176-21056587
> Mail : Volker@(protected)
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.9 (GNU/Linux)
>
> iEYEARECAAYFAkuG5/EACgkQaEMQXBIqssF/dQCgh/eEYeM8Ku7yAYjzqe1ii3y9
> hmgAn3Dk/VBkKIyK9KiYP67sPDcWCnhU
> =nklc
> -----END PGP SIGNATURE-----
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>

Attachment:
user_205154.ezm (zipped)Greg Lindholm wrote:
> This mailing list on Nabble seems to be gone, at least I can't find it.
http://old.nabble.com/Struts-f203.html
-Dale