[JBossWS] - handler problem
by khaledzarig
Hi guys, I need to intercept the soap message at rhe server side,but it did not work. what i did is:
1) i have this class:
package org.jboss.ws.core.jaxws.handler;
import org.jboss.ws.core.jaxws.handler.GenericSOAPHandler;
import javax.xml.ws.handler.MessageContext;
public class HibernateWS extends GenericSOAPHandler
{
@Override
public boolean handleFault(MessageContext msgContext)
{
System.out.println("Inside GenericSOAPHandler : ");
return super.handleFault(msgContext);
}
@Override
protected boolean handleInbound(MessageContext msgContext)
{
System.out.println("Inside GenericSOAPHandler : ");
return true;
}
@Override
protected boolean handleOutbound(MessageContext msgContext)
{
System.out.println("Inside GenericSOAPHandler : ");
return true;
}
}
and i have put the compiled file(.class) in package org.jboss.ws.core.jaxws.handler, ( i use jbossws 1.2.0 ).
2) I added the following to standard-jaxws-endpoint-config.xml file which is in jboss-4.0.5.GA\server\default\deploy\jbossws.sar\META-INF;
<endpoint-config>
<config-name>Handler hibernate gnomo</config-name>
<pre-handler-chains>
<javaee:handler-chain>
<javaee:protocol-bindings>##SOAP11_HTTP</javaee:protocol-bindings>
<javaee:handler>
<javaee:handler-name>HibernateWS</javaee:handler-name>
<javaee:handler-class>org.jboss.ws.core.jaxws.handler.HibernateWS</javaee:handler-class>
</javaee:handler>
</javaee:handler-chain>
</pre-handler-chains>
</endpoint-config>
When i deployed my service it works as normal, but the handler doesn't print the messages as it is showen in the attached class (HibernateWS).
can any body tell me what was wrong in this please.
thanks in advance,
khaly
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4027649#4027649
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4027649
19Â years, 1Â month
[Clustering/JBoss] - Re: WAN Cluster setup
by jokum
Hi,
I dived into the code off the app server. This is the method from the org.jboss.ha.framework.server.HAPartitionImpl wich is crashing :
protected void verifyNodeIsUnique (Vector javaGroupIpAddresses) throws Exception
| {
| byte[] localUniqueName = this.localJGAddress.getAdditionalData();
| if (localUniqueName == null)
| log.warn("No additional information has been found in the JavaGroup address: " +
| "make sure you are running with a correct version of JGroups and that the protocol " +
| " you are using supports the 'additionalData' behaviour");
|
| for (int i = 0; i < javaGroupIpAddresses.size(); i++)
| {
| IpAddress address = (IpAddress) javaGroupIpAddresses.elementAt(i);
| if (!address.equals(this.localJGAddress))
| {
| if (localUniqueName.equals(address.getAdditionalData()))
| throw new Exception ("Local node removed from cluster (" + this.localJGAddress + "): another node (" + address + ") publicizing the same name was already there");
| }
| }
| }
The bold line is the one causing the NPE. I suppose the localUniqueName variable is null. What could be wrong in my setup?
Please help me. I have to be sure this setup is working for next friday.
Johan,
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4027648#4027648
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4027648
19Â years, 1Â month