[SoapRMI] XPP2 junit tests fail
Aleksander Slominski
aslom_at_cs.indiana.edu
Thu, 28 Aug 2003 10:10:04 -0400
it seems that you have other verion of Xerces2 that is much newer than
xercesImpl_2_0_1_event_position_patch.jar so Xerces2 test fails:
Timo Thomas wrote:
>
> [java] found class org.gjt.xpp.x2impl.X2PullParserFactoryImpl
> [java] .F.F.F.E....E.F..E.E
> [java] Time: 0,651
> [java] There were 4 errors:
> [java] 1) testAttribUniq(parser.ParserTest)
> [java] java.lang.IncompatibleClassChangeError
> [java] at org.gjt.xpp.x2impl.x2pullparser.X2PullParser.getPosDesc(X2Pul
> lParser.java:1109)
if you remove xercesImpl_2_0_1_event_position_patch.jar that may help
(but you will have no position info).
otherwise i would try JDK 1.4.2 as it seems to work (with current verion
of XPP2 from CVS):
C:\Forge\codes\xsoap\java\PullParser>build all junit
c:\j2sdk1.4.2\bin\java.exe -classpath
lib\ant\StampysoftAntTasks_Alek.jar;lib\an
t\jaxp.jar;lib\ant\jakarta-regexp-1.3-dev.jar;lib\ant\crimson.jar;lib\ant\ant-1.
4.1.jar;lib\xerces2_patched\xercesImpl_2_0_1_event_position_patch.jar;lib\junit\
junit37.jar;;c:\j2sdk1.4.2\lib\tools.jar org.apache.tools.ant.Main
-buildfile bu
ild.xml all junit
Buildfile: build.xml
clean:
[delete] Deleting directory C:\Forge\codes\xsoap\java\PullParser\build\lib
[delete] Deleting directory C:\Forge\codes\xsoap\java\PullParser\build\intf
[delete] Deleting directory
C:\Forge\codes\xsoap\java\PullParser\build\impl\t
ag
[delete] Deleting directory
C:\Forge\codes\xsoap\java\PullParser\build\impl\p
ullparser
[delete] Deleting directory
C:\Forge\codes\xsoap\java\PullParser\build\impl\n
ode
[delete] Deleting directory
C:\Forge\codes\xsoap\java\PullParser\build\impl\f
actory
[delete] Deleting directory
C:\Forge\codes\xsoap\java\PullParser\build\impl\f
ormat
[delete] Deleting directory C:\Forge\codes\xsoap\java\PullParser\build\impl
[delete] Deleting directory
C:\Forge\codes\xsoap\java\PullParser\build\x2impl
[delete] Deleting directory C:\Forge\codes\xsoap\java\PullParser\build\apis
[delete] Deleting directory
C:\Forge\codes\xsoap\java\PullParser\build\driver
s
[delete] Deleting directory C:\Forge\codes\xsoap\java\PullParser\build\tests
[delete] Deleting directory
C:\Forge\codes\xsoap\java\PullParser\build\sample
s
[delete] Deleting directory C:\Forge\codes\xsoap\java\PullParser\doc\api
[delete] Deleting directory
C:\Forge\codes\xsoap\java\PullParser\doc\api_impl
prepare:
[mkdir] Created dir: C:\Forge\codes\xsoap\java\PullParser\build\lib
[mkdir] Created dir: C:\Forge\codes\xsoap\java\PullParser\doc\api
[mkdir] Created dir: C:\Forge\codes\xsoap\java\PullParser\doc\api_impl
intf:
[mkdir] Created dir: C:\Forge\codes\xsoap\java\PullParser\build\intf
[javac] Compiling 13 source files to C:\Forge\codes\xsoap\java\PullParser\bu
ild\intf
[touch] Creating C:\Forge\codes\xsoap\java\PullParser\build\intf\PullParser2
.1.10_b4_VERSION
intf_jar:
[jar] Building jar: C:\Forge\codes\xsoap\java\PullParser\build\lib\PullPar
ser-intf-2.1.10_b4.jar
impl_tag:
[mkdir] Created dir: C:\Forge\codes\xsoap\java\PullParser\build\impl\tag
[javac] Compiling 5 source files to C:\Forge\codes\xsoap\java\PullParser\bui
ld\impl\tag
impl_pp:
[mkdir] Created dir: C:\Forge\codes\xsoap\java\PullParser\build\impl\pullpar
ser
[javac] Compiling 5 source files to C:\Forge\codes\xsoap\java\PullParser\bui
ld\impl\pullparser
impl_node:
[mkdir] Created dir: C:\Forge\codes\xsoap\java\PullParser\build\impl\node
[javac] Compiling 2 source files to C:\Forge\codes\xsoap\java\PullParser\bui
ld\impl\node
impl_format:
[mkdir] Created dir: C:\Forge\codes\xsoap\java\PullParser\build\impl\format
[javac] Compiling 2 source files to C:\Forge\codes\xsoap\java\PullParser\bui
ld\impl\format
api_sax2:
[mkdir] Created dir: C:\Forge\codes\xsoap\java\PullParser\build\apis\sax2
[javac] Compiling 30 source files to C:\Forge\codes\xsoap\java\PullParser\bu
ild\apis\sax2
[javac] Note: Some input files use or override a deprecated API.
[javac] Note: Recompile with -deprecation for details.
driver_sax2:
[mkdir] Created dir: C:\Forge\codes\xsoap\java\PullParser\build\drivers\sax2
[javac] Compiling 1 source file to C:\Forge\codes\xsoap\java\PullParser\buil
d\drivers\sax2
api_jaxp11:
[mkdir] Created dir: C:\Forge\codes\xsoap\java\PullParser\build\apis\jaxp11
[javac] Compiling 7 source files to C:\Forge\codes\xsoap\java\PullParser\bui
ld\apis\jaxp11
[javac] Note: Some input files use or override a deprecated API.
[javac] Note: Recompile with -deprecation for details.
driver_jaxp11:
[mkdir] Created dir: C:\Forge\codes\xsoap\java\PullParser\build\drivers\jaxp
11
[mkdir] Created dir: C:\Forge\codes\xsoap\java\PullParser\build\drivers\jaxp
11\META-INF\services
[copy] Copying 1 file to C:\Forge\codes\xsoap\java\PullParser\build\drivers
\jaxp11\META-INF\services
[javac] Compiling 3 source files to C:\Forge\codes\xsoap\java\PullParser\bui
ld\drivers\jaxp11
[javac] Note: C:\Forge\codes\xsoap\java\PullParser\src\java\drivers\jaxp11\o
rg\gjt\xpp\jaxp11\SAXParserImpl.java uses or overrides a deprecated API.
[javac] Note: Recompile with -deprecation for details.
drivers:
impl:
[mkdir] Created dir: C:\Forge\codes\xsoap\java\PullParser\build\impl\factory
\META-INF\services
[javac] Compiling 1 source file to C:\Forge\codes\xsoap\java\PullParser\buil
d\impl\factory
[copy] Copying 1 file to C:\Forge\codes\xsoap\java\PullParser\build\impl\fa
ctory\META-INF\services
[jar] Building jar: C:\Forge\codes\xsoap\java\PullParser\build\lib\PullPar
ser-standard-2.1.10_b4.jar
[jar] Building jar: C:\Forge\codes\xsoap\java\PullParser\build\lib\PullPar
ser-2.1.10_b4.jar
check_x2:
x2impl_pp:
[mkdir] Created dir: C:\Forge\codes\xsoap\java\PullParser\build\x2impl\pullp
arser
[javac] Compiling 4 source files to C:\Forge\codes\xsoap\java\PullParser\bui
ld\x2impl\pullparser
x2impl:
[mkdir] Created dir: C:\Forge\codes\xsoap\java\PullParser\build\x2impl\facto
ry
[javac] Compiling 1 source file to C:\Forge\codes\xsoap\java\PullParser\buil
d\x2impl\factory
[mkdir] Created dir: C:\Forge\codes\xsoap\java\PullParser\build\x2impl\facto
ry\META-INF\services
[copy] Copying 1 file to C:\Forge\codes\xsoap\java\PullParser\build\x2impl\
factory\META-INF\services
[jar] Building jar: C:\Forge\codes\xsoap\java\PullParser\build\lib\PullPar
ser-x2-2.1.10_b4.jar
check_junit:
tests:
[mkdir] Created dir: C:\Forge\codes\xsoap\java\PullParser\build\tests
[javac] Compiling 6 source files to C:\Forge\codes\xsoap\java\PullParser\bui
ld\tests
samples:
[mkdir] Created dir: C:\Forge\codes\xsoap\java\PullParser\build\samples
[javac] Compiling 8 source files to C:\Forge\codes\xsoap\java\PullParser\bui
ld\samples
compile:
all:
prepare:
intf:
check_junit:
tests:
impl_tag:
impl_pp:
impl_node:
impl_format:
api_sax2:
driver_sax2:
api_jaxp11:
driver_jaxp11:
[copy] Copying 1 file to C:\Forge\codes\xsoap\java\PullParser\build\drivers
\jaxp11\META-INF\services
drivers:
impl:
[copy] Copying 1 file to C:\Forge\codes\xsoap\java\PullParser\build\impl\fa
ctory\META-INF\services
[jar] Building jar: C:\Forge\codes\xsoap\java\PullParser\build\lib\PullPar
ser-standard-2.1.10_b4.jar
[jar] Building jar: C:\Forge\codes\xsoap\java\PullParser\build\lib\PullPar
ser-2.1.10_b4.jar
junit:
[java] running test for default factory
[java] found class org.gjt.xpp.impl.PullParserFactoryFullImpl
[java] ..............
[java] Time: 0.801
[java]
[java] OK (14 tests)
[java]
[java] running test for factory: org.gjt.xpp.impl.PullParserFactoryFullImpl
[java] found class org.gjt.xpp.impl.PullParserFactoryFullImpl
[java] ..............
[java] Time: 0.321
[java]
[java] OK (14 tests)
[java]
[java] running test for factory: org.gjt.xpp.x2impl.X2PullParserFactoryImpl
[java] found class org.gjt.xpp.x2impl.X2PullParserFactoryImpl
[java] ..............
[java] Time: 0.841
[java]
[java] OK (14 tests)
[java]
BUILD SUCCESSFUL
Total time: 29 seconds
let me know if you still have problems with it.
thanks,
alek
--
If everything seems under control, you're just not going fast enough. —Mario Andretti