-
1. Re: Petstore xml/jaxp parsing problem with Jboss3RC2 VS Jbos
attila1 May 8, 2002 11:44 PM (in response to attila1)I also tried to modify the run.bat file and added these parts (well !!! customized to fit the jboss3.0RC2) :
2.4 :
REM Add the XML parser jars and set the JAXP factory names
REM Crimson parser JAXP setup(default)
set JBOSS_CLASSPATH=%JBOSS_CLASSPATH%;../lib/crimson.jar
set JAXP=-Djavax.xml.parsers.DocumentBuilderFactory=org.apache.crimson.jaxp.DocumentBuilderFactoryImpl
set JAXP=%JAXP% -Djavax.xml.parsers.SAXParserFactory=org.apache.crimson.jaxp.SAXParserFactoryImpl
3.0RC2:
set JBOSS_CLASSPATH=%JBOSS_CLASSPATH%;../lib/crimson.jar;%JAVAC_JAR%;%RUNJAR%
rem Setup JBoss sepecific properties
set JAVA_OPTS=%JAVA_OPTS% -Djavax.xml.parsers.DocumentBuilderFactory=org.apache.crimson.jaxp.DocumentBuilderFactoryImpl
set JAVA_OPTS=%JAVA_OPTS% -Djavax.xml.parsers.SAXParserFactory=org.apache.crimson.jaxp.SAXParserFactoryImpl
But I still got the same parsing error. Thanks for any feedback. -
2. Re: Petstore xml/jaxp parsing problem with Jboss3RC2 VS Jbos
attila1 May 10, 2002 2:52 PM (in response to attila1)hmm, I'm not getting much of a response !!! Let me put it this way. In the patching instructions for the petstore 1.1.2, it says to remove jaxp.jar and parser.jar from the lib folder before you build the ear file. I found out that if I didn't remove those files, the petore app is unable to parse the requestmappings.xml file. If I remove those 2 files, then I don't have this problem. There is obviously a conflict between those 2 files and the xml parser used by jboss. Does anyone understand why this was happening and why the patching instructions asked to remove those 2 files explicitly.
Thanks.