Re: [Resin-interest] Tapestry on resin...
Alex schrieb: 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 It seems that tapestry expects a particular parser implementation. You can force one by supplying a system property If they really want a particular implementation, they should not be using the JAXP mechanism at all, but directly instantiate their implementation class. web-app system-property javax.xml.stream.XMLInputFactory=org.codehaus.stax2.XMLInputFactory2/ /web-app But wouldn't that set the property for the entire JVM instead of for one particular webapp/context? The system-property tag could also go under resin, cluster or host tags. And likewise this? Which may create problems for other apps? Nabble - Tomcat - User - Problem with system property http://www.nabble.com/Problem-with-system-property-td24389677.html -- Michael Ludwig ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
Re: [Resin-interest] Tapestry on resin...
web-app system-property javax .xml.stream.XMLInputFactory=org.codehaus.stax2.XMLInputFactory2/ /web-app But wouldn't that set the property for the entire JVM instead of for one particular webapp/ Not if you supply your own context aware instance of Properties using System.setProperties(Properties). That isolates the apps/hosts/cluster from each other and they can have their own sets of properties. --Alex The system-property tag could also go under resin, cluster or host tags. And likewise this? Which may create problems for other apps? Nabble - Tomcat - User - Problem with system property http://www.nabble.com/Problem-with-system-property-td24389677.html -- Michael Ludwig ___ 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
Re: [Resin-interest] Tapestry on resin...
Hi Alex and Michael I added the jar files to resin, and I set the the system-properties in the app-default.xml file. And it is working now!!! I think it is working, cause, I dont have a resin-web.xml file in my war file, rigth? Thanks a lots for your help. Fernando Avalos. Date: Fri, 14 Aug 2009 09:23:49 -0700 From: Alex a...@caucho.com Subject: Re: [Resin-interest] Tapestry on resin... To: General Discussion for the Resin application server resin-interest@caucho.com Message-ID: 63e63508-f7f6-4ac3-9b98-1f817332e...@caucho.com Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes web-app system-property javax .xml.stream.XMLInputFactory=org.codehaus.stax2.XMLInputFactory2/ /web-app But wouldn't that set the property for the entire JVM instead of for one particular webapp/ Not if you supply your own context aware instance of Properties using System.setProperties(Properties). That isolates the apps/hosts/cluster from each other and they can have their own sets of properties. --Alex The system-property tag could also go under resin, cluster or host tags. And likewise this? Which may create problems for other apps? Nabble - Tomcat - User - Problem with system property http://www.nabble.com/Problem-with-system-property-td24389677.html -- Michael Ludwig ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest _ Gracias Messenger por estos 10 años www.aniversariomessenger.com.mx___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest