3

I am using Eclipse with Java 1.6 and have included following jar files in the build path xalan-2.7.1.jar, xmlsec-1.1.jar, xmlsec-2.0.jar but I still get following error message when I compile the code:

java.lang.NoClassDefFoundError: org/apache/xpath/compiler/FuncLoader

The code where its erroring out is:

static { org.apache.xml.security.Init.init(); }

3
  • 4
    You really should only include one of the xmlsec-x.x JARs in your classpath. Commented Apr 11, 2013 at 14:06
  • Is xlan jar is in your classpath ? Commented Apr 11, 2013 at 14:07
  • i suppose xlan-2.7.1.jar is xalan-2.7.1.jar, cause that class that cannot be found is from that library Commented Apr 11, 2013 at 14:11

3 Answers 3

7

According to this bug report, Xalan 2.7.x does not have the FuncLoader class included. Try downgrading to Xalan 2.6.x.

Sign up to request clarification or add additional context in comments.

Comments

1

When not sure why a NoClassDeFoundError occurs, I find it useful to consult findjar.com.

I find it interesting that, for your specific case, various versions of xalan are listed but not the one you have in your classpath. Maybe there's something there?

1 Comment

Good tip, but got the jar detected
1

Try with xmlsec-1.3.0.jar which is compatible with wss4j-1.6.16.jar

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.