Mantis - Resin
Viewing Issue Advanced Details
1631 minor always 03-01-07 10:33 03-29-07 13:20
ferg  
 
normal  
closed  
fixed  
none    
none 3.1.1  
0001631: JSP resin-c binding
(rep by Steve Ferguson)

We have run into a little problem trying to deploy one of our web applications with Resin and IBM JDK 1.4.2. We have the need to use the IBM JDK due to one of our 3rd party jar files so we need to make this work. When we start our application, JSPs compile successfully, but on startup, we receive several errors related to parsing XML. Here is an example. We did not receive these errors when we ran with Sun JDK 1.4.2, and did nothing special with regard to XML parsers, it just worked.


2007-03-01 08:31:51,162 () action.ActionServlet ERROR - (main) - Parsing error

processing resource path /WEB-INF/helpdesk-struts-config.xml,/WEB-INF/user-struts-config.xml,/WEB-INF/admin-struts-config.xml,/WEB-INF/ao-struts-config.xml,/WEB-INF/ata-struts-config.xml,/WEB-INF/ara-struts-config.xml,/WEB-INF/fsa-struts-config.xml,/WEB-INF/webtest-struts-config.xml

java.lang.NullPointerException

        at org.apache.commons.digester.Digester.createSAXException(Digester.java:2540)

        at org.apache.commons.digester.Digester.createSAXException(Digester.java:2566)

        at org.apache.commons.digester.Digester.startElement(Digester.java:1276)

        at com.caucho.xml.XmlParser.addElement(XmlParser.java:2601)

        at com.caucho.xml.XmlParser.parseElement(XmlParser.java:649)

        at com.caucho.xml.XmlParser.parseNode(XmlParser.java(Compiled Code))

        at com.caucho.xml.XmlParser.parseInt(XmlParser.java:242)

        at com.caucho.xml.AbstractParser.parse(AbstractParser.java:633)

        at org.apache.commons.digester.Digester.parse(Digester.java:1548)

        at org.apache.struts.action.ActionServlet.parseModuleConfigFile(ActionServlet.java:1006)

        at org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet.java:955)

        at org.apache.struts.action.ActionServlet.init(ActionServlet.java:470)

        at javax.servlet.GenericServlet.init(GenericServlet.java:69)

        at com.caucho.server.dispatch.ServletConfigImpl.createServletImpl(ServletConfigImpl.java:646)

        at com.caucho.server.dispatch.ServletConfigImpl.createServlet(ServletConfigImpl.java:587)

        at com.caucho.server.dispatch.ServletManager.init(ServletManager.java:154)

        at com.caucho.server.webapp.Application.start(Application.java:1654)


So to attempt to work around this problem, we tried to disable the cauco parser, in favor of using the xerces parser. We placed the following in our resin.conf


  <system-property javax.xml.parsers.DocumentBuilderFactory=

                "org.apache.xerces.jaxp.DocumentBuilderFactoryImpl"/>

   <system-property javax.xml.parsers.SAXParserFactory=

                "org.apache.xerces.jaxp.SAXParserFactoryImpl"/>

   <system-property javax.xml.transform.TransformerFactory=

                "org.apache.xalan.processor.TransformerFactoryImpl"/>


I then am unable to compile JSPs with some vague messages regarding the c standard tag libraries.


[09:50:51.324] Loading .tld files from global classpath

[09:51:15.848] /WEB-INF/pages/admin/ata/app/reg_form_preview.jsp:1: org.xml.sax.SAXParseException: The prefix "resin-c" for element "resin-c:out" is not bound.


Has anyone out there encountered problems like these with Resin and the IBM 1.4.2 JDK and solved this problem? Thanks in advance for any help.

Notes
(0001792)
ferg   
03-29-07 13:20   
jsp/1100