Hi committers!

This class cast exception is a major issue! Tapestry will usually not run on
any application server (I tested Glassfish and Websphere CE 2) because the
appservers will use their own implementation of Stax.

The main problem is in
org.apache.tapestry5.internal.services.TemplateParserImpl.<init>(TemplateParserImpl.java:44).
Here, XMLInputFactory2 is asked for an instance - but XMLInputFactory2 does
not implement the method newInstance. This is delegated to XMLInputFactory.
So, the original XMLInputFactory is used - which returns the platform
implementation of Stax.

There is a workaround but a main stream web application framework should run
on JEE compatible web and application servers without tweaking.

Here is the way to replace Woodstox with standard Stax implementation.
http://derkoe.wordpress.com/2009/04/16/tapestry-51-woodstox/ (see also
"Woodstox dependency needed?" on this mailing list).

I also added a JIRA here: https://issues.apache.org/jira/browse/TAP5-745

Chris
-- 
View this message in context: 
http://n2.nabble.com/T5.1.0.5%2C-XMLInputFactory-class-cast-exception-tp2985027p3062507.html
Sent from the Tapestry Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to