Girish Sherikar

Greenhorn
+ Follow
since Jan 23, 2003
Merit badge: grant badges
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Girish Sherikar

YES! That was it. My classpath was all muddled up (with environment variable settings and so on. I reset it to bare minimum required for this exercise and it WORKED!. The classpath, on client side, that worked for me (presented in the form of a batch file) was :
set CLASSPATH=.;C:\xml-axis-10\lib\axis.jar;
set CLASSPATH=%CLASSPATH%;C:\xml-axis-10\lib\jaxrpc.jar;
set CLASSPATH=%CLASSPATH%;C:\xml-axis-10\lib\saaj.jar;
set CLASSPATH=%CLASSPATH%;C:\xml-axis-10\lib\commons-logging.jar;
set CLASSPATH=%CLASSPATH%;C:\xml-axis-10\lib\commons-discovery.jar;
set CLASSPATH=%CLASSPATH%;C:\xml-axis-10\lib\wsdlj4.jar;
set CLASSPATH=%CLASSPATH%;C:\xml-axis-10\lib\axis.jar;
set CLASSPATH=%CLASSPATH%;C:\xml-axis-10\lib\log4j-1.2.4.jar
set CLASSPATH=%CLASSPATH%;C:\xml-axis-10\lib\xerces.jar
set CLASSPATH=%CLASSPATH%;C:\xml-axis-10\;
On the server side, I found that you only need to place the xerces.jar in %TOMCAT_HOME%\webapps\axis\WEB-INF\lib.
Hope this helps those who may have the same 'DUH..' feeling like me. It is one of those things where no matter how many hair you pull....just can't see the light and next day morning suddenly everything is bright!
19 years ago
Yes I had already placed xerces.jar in webapps\axis\WEB-INF\lib and also placed it in %TOMCAT_HOME%\common\lib. I also tried placing it in shared\lib. Same result.
Additional info:
1. The Calculator.jws is getting compiled alright (and getting placed in to jwsclasses) when I invoke this service from the client, so some activity does occur on the server. I can even see the wsdl for it.
2. On a positive note I was able to consume this service from another client. I tried it through webMethods B2B Integration server and it works well! The integration server has a built-in feature (web Connector) of 'preparing' all that is necessary for service to be invoked based on the WSDL of the service.
Perhaps something is not right (classpath, jars etc.) on the client side, when I invoke it from command prompt (Windows 2000).
19 years ago
Hi there,
I am new to AXIS and need some assistance. When I try to run the example2 (for Calculator.jws), I am getting error as shown below:
>java samples.userguide.example2.CalcClient -p8080 subtract 10 9
AxisFault
faultCode: {http://xml.apache.org/axis/}Server.userException
faultString: org.xml.sax.SAXNotRecognizedException: Feature: http://xml.org/sax
/properties/lexical-handler
faultActor: null
faultDetail:
stackTrace: org.xml.sax.SAXNotRecognizedException: Feature: http://xml.o
rg/sax/properties/lexical-handler
at org.apache.xerces.jaxp.SAXParserImpl.setProperty(SAXParserImpl.java:1
55)
at org.apache.axis.encoding.DeserializationContextImpl.parse(Deserializa
tionContextImpl.java:231)
at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:546)
at org.apache.axis.Message.getSOAPEnvelope(Message.java:377)
at org.apache.axis.client.Call.invokeEngine(Call.java:2132)
at org.apache.axis.client.Call.invoke(Call.java:2102)
at org.apache.axis.client.Call.invoke(Call.java:1851)
at org.apache.axis.client.Call.invoke(Call.java:1777)
at org.apache.axis.client.Call.invoke(Call.java:1315)
at samples.userguide.example2.CalcClient.main(CalcClient.java:98)

org.xml.sax.SAXNotRecognizedException: Feature: http://xml.org/sax/properties/le
xical-handler
org.xml.sax.SAXNotRecognizedException: Feature: http://xml.org/sax/properties/le
xical-handler
at org.apache.xerces.jaxp.SAXParserImpl.setProperty(SAXParserImpl.java:1
55)
at org.apache.axis.encoding.DeserializationContextImpl.parse(Deserializa
tionContextImpl.java:231)
at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:546)
at org.apache.axis.Message.getSOAPEnvelope(Message.java:377)
at org.apache.axis.client.Call.invokeEngine(Call.java:2132)
at org.apache.axis.client.Call.invoke(Call.java:2102)
at org.apache.axis.client.Call.invoke(Call.java:1851)
at org.apache.axis.client.Call.invoke(Call.java:1777)
at org.apache.axis.client.Call.invoke(Call.java:1315)
at samples.userguide.example2.CalcClient.main(CalcClient.java:98)
[INFO] enterprise - -Mapping Exception to AxisFault <org.xml.sax.SAXNotRecognize
dException: Feature: http://xml.org/sax/properties/lexical-handler>
Exception in thread "main" AxisFault
faultCode: {http://xml.apache.org/axis/}Server.userException
faultString: org.xml.sax.SAXNotRecognizedException: Feature: http://xml.org/sax
/properties/lexical-handler
faultActor: null
faultDetail:
stackTrace: org.xml.sax.SAXNotRecognizedException: Feature: http://xml.o
rg/sax/properties/lexical-handler
at org.apache.xerces.jaxp.SAXParserImpl.setProperty(SAXParserImpl.java:1
55)
at org.apache.axis.encoding.DeserializationContextImpl.parse(Deserializa
tionContextImpl.java:231)
at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:546)
at org.apache.axis.Message.getSOAPEnvelope(Message.java:377)
at org.apache.axis.client.Call.invokeEngine(Call.java:2132)
at org.apache.axis.client.Call.invoke(Call.java:2102)
at org.apache.axis.client.Call.invoke(Call.java:1851)
at org.apache.axis.client.Call.invoke(Call.java:1777)
at org.apache.axis.client.Call.invoke(Call.java:1315)
at samples.userguide.example2.CalcClient.main(CalcClient.java:98)

org.xml.sax.SAXNotRecognizedException: Feature: http://xml.org/sax/properties/le
xical-handler
org.xml.sax.SAXNotRecognizedException: Feature: http://xml.org/sax/properties/le
xical-handler
at org.apache.xerces.jaxp.SAXParserImpl.setProperty(SAXParserImpl.java:1
55)
at org.apache.axis.encoding.DeserializationContextImpl.parse(Deserializa
tionContextImpl.java:231)
at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:546)
at org.apache.axis.Message.getSOAPEnvelope(Message.java:377)
at org.apache.axis.client.Call.invokeEngine(Call.java:2132)
at org.apache.axis.client.Call.invoke(Call.java:2102)
at org.apache.axis.client.Call.invoke(Call.java:1851)
at org.apache.axis.client.Call.invoke(Call.java:1777)
at org.apache.axis.client.Call.invoke(Call.java:1315)
at samples.userguide.example2.CalcClient.main(CalcClient.java:98)
ANY IDEAS what I may be doing wrong here?
Thanks a lot
Girish
19 years ago