Fernando,

It seems that tapestry expects a particular parser implementation. You can force one by supplying a system property


<web-app>
<system-property javax.xml.stream.XMLInputFactory="org.codehaus.stax2.XMLInputFactory2"/>
</web-app>

The <system-property> tag could also go under <resin>, <cluster> or <host> tags.

Regards,
Alex

org.codehaus.stax2.XMLInputFactory2



Hello,

I need to work with tapestry on the resin application server, I am really new to Resin and I am getting this error.

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:65) (for service 'TemplateParser'): com.caucho.xml.stream.XMLInputFactoryImpl
cannot be cast to org.codehaus.stax2.XMLInputFactory2
at org .apache .tapestry5 .ioc .internal .services .JustInTimeObjectCreator .obtainObjectFromCreator(JustInTimeObjectCreator.java:78) at org .apache .tapestry5 .ioc .internal .services .JustInTimeObjectCreator.createObject(JustInTimeObjectCreator.java:57) at $TemplateParser_12315f2e17e.delegate($TemplateParser_12315f2e17e.java) at $ TemplateParser_12315f2e17e .parseTemplate($TemplateParser_12315f2e17e.java) at org .apache .tapestry5 .internal .services .ComponentTemplateSourceImpl .parseTemplate(ComponentTemplateSourceImpl.java:151) at org .apache .tapestry5 .internal .services .ComponentTemplateSourceImpl .getTemplate(ComponentTemplateSourceImpl.java:135) at $ ComponentTemplateSource_12315f2e17d .getTemplate($ComponentTemplateSource_12315f2e17d.java)

Any suggestions?

Thanks in advance.

Favalos.


Con Windows Live, puedes organizar, editar y compartir tus fotos. _______________________________________________
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest

_______________________________________________
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest

Reply via email to