Petals Distribution

ESB 4.1+Java7 : Install a service-unit --> SAX2 driver class org.apache.xerces.parsers.SAXParser not found

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Critical Critical
  • Resolution: Fixed
  • Affects Version/s: 4.1.0
  • Fix Version/s: 5.0.0-M1
  • Component/s: Components
  • Security Level: Public
  • Description:
    Hide

    I have just installes Petals ESB 4.1 on several servers. Topology is master-slave, with the same topology.xml on all the servers. I have installed SOAP-BC on the ESB servers, and everything runs fine. Now, I try to install a service unit generated with Petals Studio 1.3.3 ( I did this operation quite a few times in the past, without any problem) the SU is not installed, and I see this in the petals.log : Error to read default parent => SchemaException: Can not get schema: : org.xml.sax.SAXException: SAX2 driver class org.apache.xerces.parsers.SAXParser not found What could be the cause ?

    see full discussion on http://forum.petalslink.com/Petals-4-1-BC-SOAP-SAX-driver-error-td4025515.html

    Proposed Workaround:
    It seems the problem is solved removing the JAR xercesImpl-2.8.1 from the BC SOAP. With OpenJDK7 and Java7 (that is based on OpenJDK7), Xerces is found as SAX parser from the BC SOAP classloader but the JDK is not able to load the class. I don't known why.

    As Petals ESB can use the SAX2 parser provided by the JVM, it is sufficient to remove the JAR xercesImpl-2.8.1 from the BC SOAP. In the zip file, rename the JAR xercesImpl-2.8.1, and update the JBI descriptor removing the two entries associated to xercesImpl-2.8.1.jar

    Show
    I have just installes Petals ESB 4.1 on several servers. Topology is master-slave, with the same topology.xml on all the servers. I have installed SOAP-BC on the ESB servers, and everything runs fine. Now, I try to install a service unit generated with Petals Studio 1.3.3 ( I did this operation quite a few times in the past, without any problem) the SU is not installed, and I see this in the petals.log : Error to read default parent => SchemaException: Can not get schema: : org.xml.sax.SAXException: SAX2 driver class org.apache.xerces.parsers.SAXParser not found What could be the cause ? see full discussion on http://forum.petalslink.com/Petals-4-1-BC-SOAP-SAX-driver-error-td4025515.html Proposed Workaround: It seems the problem is solved removing the JAR xercesImpl-2.8.1 from the BC SOAP. With OpenJDK7 and Java7 (that is based on OpenJDK7), Xerces is found as SAX parser from the BC SOAP classloader but the JDK is not able to load the class. I don't known why. As Petals ESB can use the SAX2 parser provided by the JVM, it is sufficient to remove the JAR xercesImpl-2.8.1 from the BC SOAP. In the zip file, rename the JAR xercesImpl-2.8.1, and update the JBI descriptor removing the two entries associated to xercesImpl-2.8.1.jar
  • Environment:
    Petals 4.1 ; Java 7

Issue Links

People

Dates

  • Created:
    Thu, 22 Aug 2013 - 12:48:15 +0200
    Updated:
    Thu, 19 Jun 2014 - 16:21:35 +0200
    Resolved:
    Thu, 19 Jun 2014 - 16:21:25 +0200