You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fx-dev@ws.apache.org by Rami Jaamour <rj...@parasoft.com> on 2004/07/15 21:08:37 UTC

ant test throws an Exception when using J2sdk1.4.2_05

I execute "ant test" then I get:

unitTests:
    [junit] Running components.PackageTests
    [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.853 sec


    [junit] Running wssec.PackageTests
    [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec



BUILD FAILED
/home/fox/rjaamour/ws-fx/wss4j/build.xml:485: Test wssec.PackageTests failed

Total time: 14 seconds


Here are the error details:

  <error 
type="java.lang.reflect.InvocationTargetException">java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
Caused by: java.lang.IllegalAccessError: tried to access field 
org.apache.xpath.compiler.FunctionTable.m_functions from class 
org.apache.xml.securit
y.Init
        at org.apache.xml.security.Init.init(Unknown Source)
        at 
org.apache.ws.security.WSSecurityEngine.&lt;clinit&gt;(WSSecurityEngine.java:136)
        at wssec.TestWSSecurity.&lt;clinit&gt;(TestWSSecurity.java:54)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:141)
        at wssec.PackageTests.class$(PackageTests.java:53)
        at wssec.PackageTests.suite(PackageTests.java:53)
        ... 7 more
</error>

It works fine with j2sdk1.4.2_03.  Copying xalan.jar which comes with 
WSS4J/lib into the jre endorsed directory did not solve the problem, 
which worked for a similar problem I had in my project. I'm on Linux. 
Any ideas?

-- 
Rami Jaamour
Software Engineer
SOAPtest Development
Parasoft Corporation

"We Make Software Work"