PDA

View Full Version : Why won't resin play nicely with JSTL 1.2?


laredotornado
12-08-2009, 10:06 PM
Hi,

I'm using Resin 3.0.19 (on Mac 10.5.6, Java 1.5) and I'm trying to deploy a web application. When I visit my initial JSF page (it is a MyFaces 1.2.7 app), I get this baffling error ...

jar:file:/opt/containers/resin/dev-resin/tmp/web/myco-galc-capitol-tours-webapp/WEB-INF/lib/jstl-1.2.jar!/META-INF/c.tld:6: <taglib xmlns="http://java.sun.com/xml/ns/javaee"> is an unexpected top-level tag. <jsp12:taglib xmlns:jsp12="http://java.sun.com/JSP/TagLibraryDescriptor">, <taglib xmlns="http://java.sun.com/xml/ns/j2ee"> or <taglib xmlns=""> are expected. Syntax: (<taglib> | (<taglib> | <jsp12:taglib>) | <jsp12:taglib> | <taglib>)

Caused by:
com.caucho.xml.XmlParseException - jar:file:/opt/containers/resin/dev-resin/tmp/web/myco-galc-capitol-tours-webapp/WEB-INF/lib/jstl-1.2.jar!/META-INF/c.tld:6: <taglib xmlns="http://java.sun.com/xml/ns/javaee"> is an unexpected top-level tag. <jsp12:taglib xmlns:jsp12="http://java.sun.com/JSP/TagLibraryDescriptor">, <taglib xmlns="http://java.sun.com/xml/ns/j2ee"> or <taglib xmlns=""> are expected. Syntax: (<taglib> | (<taglib> | <jsp12:taglib>) | <jsp12:taglib> | <taglib>)

Is there something I don't know about resin not being able to run MyFaces 1.2.7 apps, or something along the lines of JSF 1.2?

Thanks for any ideas at all -- I'm clueless on this one. - Dave

ferg
12-12-2009, 01:39 AM
and some of the XML files in that application are invalid.

You can disable the check with a

<web-app-default>
<jsp validate-taglib-schema="false"/>
</web-app-default>

in your resin.xml

Alo
07-21-2010, 06:33 AM
I have read many posts from this nice forum and all of them are interesting to read out, we hope that you will keep up the good work.

Adam12
08-05-2010, 06:49 PM
Its interesting to read out from here.