1 Reply Latest reply on Mar 16, 2007 1:15 PM by mikaelstaldal

    Problem with using RELAX NG validation in JBoss

    mikaelstaldal

      I want to use RELAX NG validation of XML documents in JBoss, and I want to use the javax.xml.validation API to lookup the validator.

      However, I cannot get my application to find the RELAX NG validation when running within JBoss.

      I use these two jar files:
      https://isorelax-jaxp-bridge.dev.java.net/
      http://www.thaiopensource.com/relaxng/jing.html
      and it works fine from a standalone Java application.

      I have tried to put these two jar files in every possible location,


      server/myapp/deploy
      server/myapp/lib
      lib
      lib/endorsed


      but I always get this error:

      java.lang.IllegalArgumentException: http://relaxng.org/ns/structure/1.0
       at javax.xml.validation.SchemaFactory.newInstance(Unknown Source)
      


        • 1. Re: Problem with using RELAX NG validation in JBoss
          mikaelstaldal

          I forgot to include some information about my environment:

          [Server] Release ID: JBoss [Zion] 4.0.5.GA (build: CVSTag=Branch_4_0 date=200610162339)
          [ServerInfo] Java version: 1.5.0_08,Sun Microsystems Inc.
          [ServerInfo] Java VM: Java HotSpot(TM) Server VM 1.5.0_08-b03,Sun Microsystems Inc.
          [ServerInfo] OS-System: Linux 2.6.17-11-386,i386