LeoKris
asked on
NoSuchMethodError when using security api
Hi, I am getting this error:
java.lang.NoSuchMethodErro r: org.apache.xpath.compiler. FunctionTa ble.instal lFunction( Ljava/lang /String;Lo rg/apache/ xpath/Expr e
ssion;)I
at org.apache.xml.security.In it.init(In it.java:21 5)
at org.apache.ws.security.WSS Config.<in it>(WSSCon fig.java:7 2)
at org.apache.ws.security.WSS Config.get NewInstanc e(WSSConfi g.java:95)
at org.apache.ws.security.WSS Config.<cl init>(WSSC onfig.java :47)
at org.apache.ws.security.WSS ecurityEng ine.<clini t>(WSSecur ityEngine. java:51)
at org.apache.ws.security.han dler.WSHan dler.<clin it>(WSHand ler.java:6 2)
************************** ******
I have xalan 2.6 in my classpath. Any idea how can I fix this error? I am working on Solaris.
Thanks
java.lang.NoSuchMethodErro
ssion;)I
at org.apache.xml.security.In
at org.apache.ws.security.WSS
at org.apache.ws.security.WSS
at org.apache.ws.security.WSS
at org.apache.ws.security.WSS
at org.apache.ws.security.han
**************************
I have xalan 2.6 in my classpath. Any idea how can I fix this error? I am working on Solaris.
Thanks
ASKER
Thanks mwvisa1. But Xalan-2.6.0 has over-ridden installFunction methods as :
1) installFunction(String, Expression). This one matches with the call we are making.
2) installFunction(Expression , int)
What you are talking about is in Xalan-2.7.1. I am working on 2.6.0.
1) installFunction(String, Expression). This one matches with the call we are making.
2) installFunction(Expression
What you are talking about is in Xalan-2.7.1. I am working on 2.6.0.
looks like a different version of the XPath library precedes the intended version in CLASSPATH!
how do you run the application?
how do you run the application?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
http://xml.apache.org/xalan-j/apidocs/org/apache/xpath/compiler/FunctionTable.html
It's signature is: installFunction(java.lang.
As you can see it should be a string and then a class, not org.apache.xpath.Expressio