[JBossWS] - Problem to trace SOAP Message when an exception occures!
by manosurf
Hi,
In order to see the SOAP Message I developped my Handler that extends GenericHandler.
Bellow the extract code of my Handler
public boolean handleRequest(MessageContext msgContext){
try {
SOAPMessage soapMessage = ((SOAPMessageContext)msgContext).getMessage();
soapMessage.writeTo(System.out);
}
catch (Exception e){
// to do
}
return true;
}
public boolean handleResponse(MessageContext msgContext) {
try{
SOAPMessage soapMessage = ((SOAPMessageContext)msgContext).getMessage();
soapMessage.writeTo(System.out);
}
catch (Exception e) {
// to do
}
return true;
}
Globally I can see the SOAP message in the stdout console,
but when my method throws my UserException it happens two things :
- I don't the see the SOAP message in the stdout. that means that the handleResponse method has never called. why ?
- I see the following Execption in the stdout console but the client application receive well formatted SOAP Message with the Fault.
10:05:24,586 ERROR [SOAPFaultHelperJAXRPC] SOAP request exception
com.eservglobal.topupapi.ComplexUserException: user is equals to password
at com.eservglobal.topupapi.TopupServiceBean.login(TopupServiceBean.java:35)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
How can I do to :
- catch the SOAP message in my Hanlder to trace SOAP Message ?
- avoid that JBOSS traces the stack Exception in the stdout console ?
Can you help me?
Best Regards.
manosurf
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031495#4031495
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031495
19Â years
[Tomcat, HTTPD, Servlets & JSP] - Context parameters in Tomcat with JBoss ?
by vbarres
Hello, I'm trying to define context parameters in server.xml file, located in [jboss_dir]/server/[name_server]/deploy/jbossweb-tomcat50.sar. I want these values to be retrieved from a jsp, in a similar way when they are declared in the web.xml (using context tag) of the application.
I start Jboss and, when I try to retrieve parameter value from a jsp, it returns null. How can I define it ?
"aplica" is the name of my application, and my server.xml contains this:
<Context path="/aplica" docBase="E:\programas\aplica.war" debug="0" reloadable="true">
<Parameter name="param1" value="valor1" override="false"/>
</Context>
And the jsp contains this:
String param1 = application.getInitParameter("param1");
When I execute the jsp, param1 has null value.
Thanks a lot by your help
And the jsp contains this:
String param1 = application.getInitParameter("param1");
When I execute the jsp, param1 has null value.
Thanks a lot by your help
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4031482#4031482
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4031482
19Â years