You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "Jonnalagadda, Srinivas (C)(STP)" <sr...@bsci.com> on 2008/04/21 22:31:08 UTC

Urgent help needed xalan-j 2.7.1 issue giving error message

Hi ,
I installled jdk 1.5 on linux machine. I downloaded xalan-j 2.7.0 and
copied into jdk's lib/endorsed directory and also jre's lib/endorsed
diredtory. When I use mave 1 it still complains about not findinf xalan2
or xalan1 in the class path. The following is the error I get. This work
around worked fine in windows but not in linux. Can any one help me.
Following is the message I get:

BUILD FAILED
Could not find xalan2 nor xalan1 in the classpath. Check
http://xml.apache.org/xalan-j

my environment check works fine and her is the report xalan prints.

[c047089@buildHost04-maven usr]$ java
org.apache.xalan.xslt.EnvironmentCheck
#---- BEGIN writeEnvironmentReport($Revision$): Useful stuff found: ----
version.DOM.draftlevel=2.0fd
java.class.path=.
version.JAXP=1.1 or higher
java.ext.dirs=/usr/java/jdk1.5.0_13/jre/lib/ext
#---- BEGIN Listing XML-related jars in:
foundclasses.sun.boot.class.path ----
serializer.jar-apparent.version=serializer.jar present-unknown-version
serializer.jar-path=/usr/java/jdk1.5.0_13/jre/lib/endorsed/serializer.ja
r
xalan.jar-path=/usr/java/jdk1.5.0_13/jre/lib/endorsed/xalan.jar
xercesImpl.jar-apparent.version=xercesImpl.jar from Xerces-J-bin.2.7.1
xercesImpl.jar-path=/usr/java/jdk1.5.0_13/jre/lib/endorsed/xercesImpl.ja
r
xml-apis.jar-apparent.version=xml-apis.jar from head branch of
xml-commons, tag: xml-commons-external_1_3_02
xml-apis.jar-path=/usr/java/jdk1.5.0_13/jre/lib/endorsed/xml-apis.jar
#----- END Listing XML-related jars in: foundclasses.sun.boot.class.path
-----
version.xerces2=Xerces-J 2.7.1
version.xerces1=not-present
version.xalan2_2=Xalan Java 2.7.1
version.xalan1=not-present
version.ant=not-present
java.version=1.5.0_13
version.DOM=2.0
version.crimson=not-present
sun.boot.class.path=/usr/java/jdk1.5.0_13/jre/lib/endorsed/serializer.ja
r:/usr/java/jdk1.5.0_13/jre/lib/endorsed/xalan.jar:/usr/java/jdk1.5.0_13
/jre/lib/endorsed/xercesImpl.jar:/usr/java/jdk1.5.0_13/jre/lib/endorsed/
xml-apis.jar:/usr/java/jdk1.5.0_13/jre/lib/rt.jar:/usr/java/jdk1.5.0_13/
jre/lib/i18n.jar:/usr/java/jdk1.5.0_13/jre/lib/sunrsasign.jar:/usr/java/
jdk1.5.0_13/jre/lib/jsse.jar:/usr/java/jdk1.5.0_13/jre/lib/jce.jar:/usr/
java/jdk1.5.0_13/jre/lib/charsets.jar:/usr/java/jdk1.5.0_13/jre/classes
version.SAX=2.0
version.xalan2x=Xalan Java 2.7.1
#----- END writeEnvironmentReport: Useful properties found: -----
# YAHOO! Your environment seems to be OK.

But my junit report prints the following stack

[echo] Test will be executed on buildHost04-maven as c047089
     [echo] Creating SNAPSHOT of source
      [zip] Building zip:
C:\apps\FBA\build_units\tools\maven\newPlugins\maven-testRemote-plugin\t
arget\test\junitFailsafeTest-snapshot-2008-Apr-21.02-22PM.zip
     [echo] Transferring SNAPSHOT of source to Target
     [exec] 
     [exec] junitFailsafeTest-snapsho |          4 kB |   4.0 kB/s |
ETA: 00:00:27 |   3%
     [exec] junitFailsafeTest-snapsho |        112 kB | 112.0 kB/s |
ETA: 00:00:00 | 100%
     [echo] Unpacking SNAPSHOT on Target
   [delete] Deleting:
C:\apps\FBA\build_units\tools\maven\newPlugins\maven-testRemote-plugin\t
arget\test\junitFailsafeTest-snapshot-2008-Apr-21.02-22PM.zip
     [exec]  __  __
     [exec] |  \/  |__ Jakarta _ ___
     [exec] | |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
     [exec] |_|  |_\__,_|\_/\___|_||_|  v. 1.0-beta-9.20
     [exec] 
     [exec] 
     [exec] java:prepare-filesystem:
     [exec]     [mkdir] Created dir:
/var/APPS/FBA/build_units/junitFailsafeTest/target/classes
     [exec] 
     [exec] java:compile:
     [exec]     [echo] No java source files to compile.
     [exec] 
     [exec] java:jar-resources:
     [exec] 
     [exec] test:prepare-filesystem:
     [exec]     [mkdir] Created dir:
/var/APPS/FBA/build_units/junitFailsafeTest/target/test-classes
     [exec]     [mkdir] Created dir:
/var/APPS/FBA/build_units/junitFailsafeTest/target/test-reports
     [exec] 
     [exec] test:test-resources:
     [exec]     [copy] Copying 1 file to
/var/APPS/FBA/build_units/junitFailsafeTest/target/test-classes
     [exec] 
     [exec] test:compile:
     [exec]     [javac] Compiling 5 source files to
/var/APPS/FBA/build_units/junitFailsafeTest/target/test-classes
     [exec] 
     [exec] test:test:
     [exec]     [junit] Running GoodFailErrorTest
     [exec]     [junit] Tests run: 3, Failures: 1, Errors: 1, Time
elapsed: 0.257 sec
     [exec]     [junit] [ERROR] TEST GoodFailErrorTest FAILED
     [exec]     [junit] Running PrinterTest
     [exec]     [junit] static print to System.err
     [exec]     [junit] static print to System.out
     [exec]     [junit] constructor print to System.err
     [exec]     [junit] constructor print to System.out
     [exec]     [junit] Tests run: 1, Failures: 0, Errors: 0, Time
elapsed: 0.223 sec
     [exec]     [junit] Running TimeoutFailTest
     [exec]     [junit] [ERROR] TEST TimeoutFailTest FAILED (timeout)
     [exec]     [junit] Running TimeoutPassTest
     [exec]     [junit] Tests run: 1, Failures: 0, Errors: 0, Time
elapsed: 28.226 sec
     [exec]     [junit] Running VmExitTest
     [exec] 
     [exec] 
     [exec]       
     [exec]           [junitFailsafeReport] JunitFailsafeReport v1.0
     [exec]     [junitFailsafeReport]  Parsing TestSuite file:
'TEST-GoodFailErrorTest.xml'
     [exec]     [junitFailsafeReport]   Parsing 39132 bytes took 0.131
seconds
     [exec]     [junitFailsafeReport]  Parsing TestSuite file:
'TEST-PrinterTest.xml'
     [exec]     [junitFailsafeReport]   Parsing 38195 bytes took 0.064
seconds
     [exec]     [junitFailsafeReport]  Parsing TestSuite file:
'TEST-TimeoutFailTest.xml'
     [exec]     [junitFailsafeReport] [ERROR]  No JUnit results recorded
in TEST-TimeoutFailTest.xml -- assuming test aborted
     [exec]     [junitFailsafeReport]   Scanning TimeoutFailTest for
JUnit tests.
     [exec]     [junitFailsafeReport]   ..Adding placeholders for 1
tests.
     [exec]     [junitFailsafeReport]   Parsing 0 bytes took 0.047
seconds
     [exec]     [junitFailsafeReport]  Parsing TestSuite file:
'TEST-TimeoutPassTest.xml'
     [exec]     [junitFailsafeReport]   Parsing 38177 bytes took 0.061
seconds
     [exec]     [junitFailsafeReport]  Parsing TestSuite file:
'TEST-VmExitTest.xml'
     [exec]     [junitFailsafeReport] [ERROR]  No JUnit results recorded
in TEST-VmExitTest.xml -- assuming test aborted
     [exec]     [junitFailsafeReport]   Scanning VmExitTest for JUnit
tests.
     [exec]     [junitFailsafeReport]   ..Adding placeholders for 1
tests.
     [exec]     [junitFailsafeReport]   Parsing 0 bytes took 0.005
seconds
     [exec] 
     [exec] BUILD FAILED
     [exec] Could not find xalan2 nor xalan1 in the classpath. Check
http://xml.apache.org/xalan-j
     [exec] Total time: 1 minutes 20 seconds
     [exec] 
     [echo] Archiving Target Test Results
     [echo] Transferring Target Test Results to Local machine
     [exec] 
     [exec] test-reports-buildHost04- |          4 kB |   4.0 kB/s |
ETA: 00:00:06 |  12%
     [exec] test-reports-buildHost04- |         31 kB |  31.0 kB/s |
ETA: 00:00:00 | 100%
     [echo] Unpacking Target Test Results to Local machine
    [mkdir] Created dir:
C:\apps\FBA\build_units\tools\maven\newPlugins\maven-testRemote-plugin\t
arget\test\target\test-reports-buildHost04-maven
    [unzip] Expanding:
C:\apps\FBA\build_units\tools\maven\newPlugins\maven-testRemote-plugin\t
arget\test\target\test-reports-buildHost04-maven_2008-Apr-21.02-22PM.zip
into
C:\apps\FBA\build_units\tools\maven\newPlugins\maven-testRemote-plugin\t
arget\test\target\test-reports-buildHost04-maven
   [delete] Deleting:
C:\apps\FBA\build_units\tools\maven\newPlugins\maven-testRemote-plugin\t
arget\test\target\test-reports-buildHost04-maven_2008-Apr-21.02-22PM.zip

I am not sure how to resolve this issue. Please see my previous email
below.

Thanks,
Srinivas Jonnalagadda