Steve --

We've had problems with Resin & the IBM JVM -- we're on Resin 3.0.19 and IBM J2RE 1.5.0 IBM J9 2.3 Linux amd64.

Ours have generally been problems with classloading like below. Often a redeploy of the web app fixes it, sometimes not.

We are actually about to move off of the IBM JVM to Sun's because of this (sounds like you don't have that option).

dwh


Caused by: java.lang.NullPointerException
       at java.util.zip.Inflater.ensureOpen(Inflater.java:344)
       at java.util.zip.Inflater.reset(Inflater.java:314)
       at java.util.zip.ZipFile.getInflater(ZipFile.java:412)
       at java.util.zip.ZipFile.getInputStream(ZipFile.java:359)
       at java.util.zip.ZipFile.getInputStream(ZipFile.java:324)
       at com.caucho.vfs.Jar.openReadImpl(Jar.java:448)
       at com.caucho.vfs.JarPath.openReadImpl(JarPath.java:191)
       at com.caucho.vfs.Path.openRead(Path.java:788)
       at com.caucho.loader.ClassEntry.load(ClassEntry.java:365)
at com.caucho.loader.DynamicClassLoader.loadClass(DynamicClassLoader.java:1234)

Ferguson, Steve (DIS Contractor) wrote:

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 3^rd 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.

Steve Ferguson

------------------------------------------------------------------------

_______________________________________________
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