|
View:
New views
7 Messages
—
Rating Filter:
Alert me
|
|
|
[T5.1] Running on Glassfish?Hello all, I've been developing locally on Tomcat, but will have to ultimately deploy onto https://glassfish.dev.java.net/ Glassfish . My app works as expected while on Tomcat, but once deployed to Glassfish I get an exception: java.lang.RuntimeException: Exception constructing service 'TemplateParser': 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:59) (for service 'TemplateParser'): com.sun.xml.stream.ZephyrParserFactory cannot be cast to org.codehaus.stax2.XMLInputFactory2 Which would seem to indicate some XML library conflict. Any thoughts on resolution? Thanks, Levi -- View this message in context: http://n2.nabble.com/-T5.1--Running-on-Glassfish--tp2362542p2362542.html Sent from the Tapestry Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
Re: [T5.1] Running on Glassfish?I had tested my app on Glassfish v. 2 and v. 3 prelude and didn't have any
issues. Cheers, Alex K On Fri, Feb 20, 2009 at 10:35 PM, xfile80303 <levi@...> wrote: > > Hello all, > > I've been developing locally on Tomcat, but will have to ultimately deploy > onto https://glassfish.dev.java.net/ Glassfish . > > My app works as expected while on Tomcat, but once deployed to Glassfish I > get an exception: > > java.lang.RuntimeException: Exception constructing service > 'TemplateParser': > 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:59) (for service 'TemplateParser'): > com.sun.xml.stream.ZephyrParserFactory cannot be cast to > org.codehaus.stax2.XMLInputFactory2 > > Which would seem to indicate some XML library conflict. > > Any thoughts on resolution? > > Thanks, > > Levi > > > -- > View this message in context: > http://n2.nabble.com/-T5.1--Running-on-Glassfish--tp2362542p2362542.html > Sent from the Tapestry Users mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@... > For additional commands, e-mail: users-help@... > > |
|
|
Re: [T5.1] Running on Glassfish?5.1 parses templates using the Woodstock STaX parser ... and it uses a
couple of Woodstock extensions. I'm not familiar with Glassfish, but I suspect it is forcing its own STaX parser on you, ignoring the Woodstock parser. There probably an option to turn that off. On Fri, Feb 20, 2009 at 7:35 PM, xfile80303 <levi@...> wrote: > > Hello all, > > I've been developing locally on Tomcat, but will have to ultimately deploy > onto https://glassfish.dev.java.net/ Glassfish . > > My app works as expected while on Tomcat, but once deployed to Glassfish I > get an exception: > > java.lang.RuntimeException: Exception constructing service 'TemplateParser': > 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:59) (for service 'TemplateParser'): > com.sun.xml.stream.ZephyrParserFactory cannot be cast to > org.codehaus.stax2.XMLInputFactory2 > > Which would seem to indicate some XML library conflict. > > Any thoughts on resolution? > > Thanks, > > Levi > > > -- > View this message in context: http://n2.nabble.com/-T5.1--Running-on-Glassfish--tp2362542p2362542.html > Sent from the Tapestry Users mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@... > For additional commands, e-mail: users-help@... > > -- Howard M. Lewis Ship Creator Apache Tapestry and Apache HiveMind --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
Re: [T5.1] Running on Glassfish?Thanks Alex. Are you using Tapestry 5.1? Cheers, Levi akochnev wrote: > > I had tested my app on Glassfish v. 2 and v. 3 prelude and didn't have any > issues. > > Cheers, > > Alex K > -- View this message in context: http://n2.nabble.com/-T5.1--Running-on-Glassfish--tp2362542p2374812.html Sent from the Tapestry Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
Re: [T5.1] Running on Glassfish?Hi Howard, Does Tapestry set any of these system properties: javax.xml.stream.XMLEventFactory javax.xml.stream.XMLInputFactory javax.xml.stream.XMLOutputFactory and if so, to what values? Thanks, Levi Howard Lewis Ship wrote: > > 5.1 parses templates using the Woodstock STaX parser ... and it uses a > couple of Woodstock extensions. I'm not familiar with Glassfish, but I > suspect it is forcing its own STaX parser on you, ignoring the > Woodstock parser. There probably an option to turn that off. > -- View this message in context: http://n2.nabble.com/-T5.1--Running-on-Glassfish--tp2362542p2374826.html Sent from the Tapestry Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
Re: [T5.1] Running on Glassfish?Ah, good point, my work is on 5.0.18 at this time.
Cheers, Alex K On Mon, Feb 23, 2009 at 5:33 PM, xfile80303 <levi@...> wrote: > > Thanks Alex. Are you using Tapestry 5.1? > > Cheers, > > Levi > > > akochnev wrote: > > > > I had tested my app on Glassfish v. 2 and v. 3 prelude and didn't have > any > > issues. > > > > Cheers, > > > > Alex K > > > > -- > View this message in context: > http://n2.nabble.com/-T5.1--Running-on-Glassfish--tp2362542p2374812.html > Sent from the Tapestry Users mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@... > For additional commands, e-mail: users-help@... > > |
|
|
Re: [T5.1] Running on Glassfish?Hello all, I've been developing locally on Tomcat, but will have to ultimately deploy onto Glassfish . My app works as expected while on Tomcat, but once deployed to Glassfish I get an exception: java.lang.RuntimeException: Exception constructing service 'TemplateParser': 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:59) (for service 'TemplateParser'): com.sun.xml.stream.ZephyrParserFactory cannot be cast to org.codehaus.stax2.XMLInputFactory2 Which would seem to indicate some XML library conflict. Any thoughts on resolution? Thanks, Levi For anyone else who may care, we've come up with a solution: Here are the complete steps to run a Tapestry app on Glassfish v2.1 using JDK 6 in 64 bit mode 1) install Glassfish v2.1 and JDK 6 2) modify config/asenv.conf to use JDK 6 like this: - AS_JAVA="/opt/jdk1.6.0_13" 3) start Glassfish domain1 4) copy woodstox-core-asl*.jar and stax2-api*.jar from Tapestry application to domains/domain1/lib/ext/ dir (if using Glassfish default domain1). 5) go to Glassfish admin page using browser and modify: - in Application Server/JVM Settings/JVM Options add: "-d64" - in Configuration/System Properties add: Instance Variable Name Default Value ---------------------------------------------------------------------------------------- javax.xml.stream.XMLEventFactory com.ctc.wstx.stax.WstxEventFactory javax.xml.stream.XMLInputFactory com.ctc.wstx.stax.WstxInputFactory javax.xml.stream.XMLOutputFactory com.ctc.wstx.stax.WstxOutputFactory 6) restart Glassfish -- View this message in context: http://n2.nabble.com/-T5.1--Running-on-Glassfish--tp2362542p2563985.html Sent from the Tapestry Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
| Free embeddable forum powered by Nabble | Forum Help |