• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

Error running example2 AXIS/Tomcat 4.1

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Try copying xerces.jar in ur WEB-INF\lib directory
 
Girish Sherikar
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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).
 
Girish Sherikar
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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!
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic