Glassfish V2.1 is unable to load correct woodstox stax implemention
-------------------------------------------------------------------
Key: TAP5-551
URL: https://issues.apache.org/jira/browse/TAP5-551
Project: Tapestry 5
Issue Type: Bug
Components: tapestry-core
Affects Versions: 5.1.0.0
Reporter: Thilo Tanner
Glassfish throws the following error while loading a template file:
[ERROR] InternalModule.TemplateParser Construction of service TemplateParser
failed
Error invoking constructor
org.apache.tapestry5.internal.services.TemplateParserImpl(Map, boolean)
(at TemplateParserImpl.java:50) via
org.apache.tapestry5.internal.services.InternalModule.bind(ServiceBinder)
(at InternalModule.java:65) (for service 'TemplateParser'):
com.sun.xml.stream.ZephyrParserFactory cannot be cast to
org.codehaus.stax2.XMLInputFactory2
...
Workaround:
Add the system property below to Application Server > JVM Settings > JVM
Options and restart Glassfish
-Djavax.xml.stream.XMLInputFactory=com.ctc.wstx.stax.WstxInputFactory
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.