[Axis2] Runtime error in 1.3 (version service fails) due to streaming parser conflicts

2007-11-14 Thread Pantvaidya, Vishwajit
My lib folder has wstx-asl-3.2.1.jar (Woodstox) and sjsxp.jar (Sun Java 
Streaming Parser which we need for weblogic compatibility) in addition to other 
jars including other axis2 jars. When I deploy and try the version service, it 
gives error:
org.apache.jasper.JasperException
at 
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:510)
at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393)
at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
The moment I remove the sjsxp jar - the version service works.

Is there a way I can configure axis2 to either
-  specifically use wstx even when sjsxp is in lib (by setting 
javax.xml.xtream.* properties) or
-  use sjsxp instead of wstx

Any other suggestions to get around this issue also welcome.


Thanks,

Vish.


[Axis2] Runtime error

2006-06-19 Thread Jim Bender

I made further progress by fixing my classpath.
I am running from a TestNG test class.

Now, while trying to run the Axis2 client, in the test, I am seeing
this exception thrown with an IllegalStateException:

Points Calculation, firing...
Caught Throwable exception in runPointsCalculator:
org.apache.axiom.om.OMException:
java.lang.IllegalStateExceptionorg.apache.axiom.om.OMException:
java.lang.IllegalStateException

at org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:206)
at 
org.apache.axiom.om.impl.llom.OMDocumentImpl.getOMDocumentElement(OMDocumentImpl.java:144)
at 
org.apache.axiom.om.impl.builder.StAXOMBuilder.getDocumentElement(StAXOMBuilder.java:322)
at testexamples.types.PointsCalculatorStub.toOM(PointsCalculatorStub.java:213)
at 
testexamples.types.PointsCalculatorStub.toEnvelope(PointsCalculatorStub.java:230)
at 
testexamples.types.PointsCalculatorStub.calculatePoints(PointsCalculatorStub.java:105)
at 
com.recursionsw.ve.tools.webservices.TestWebServicesEndToEndTestNG.runPointsCalculator(TestWebSe
rvicesEndToEndTestNG.java:294)

This is the code in my client:

System.out.println("Points Calculation, firing...");
PointsCalculatorStub stub = new PointsCalculatorStub(null,
"http://localhost:8090/axis2/services/PointsCalculator";);

CalculatePointsDocument calculatePointsDocument =
  CalculatePointsDocument.Factory
.newInstance();
FoodDescription foodDescription = FoodDescription.Factory.newInstance();
foodDescription.setCalories(130);
foodDescription.setFatGrams(6);
foodDescription.setFiberGrams(1);

CalculatePointsResponseDocument returnTranslationDocument =
stub.calculatePoints(calculatePointsDocument);
CalculatePointsResponse responseString =
  returnTranslationDocument.getCalculatePointsResponse();
System.out.println("Client returned");

Would someone see that I am doing something wrong or where I might
start looking?

Regards,
--
Jim

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]