DZone Forums
Go Back   DZone Forums > Community > Enterprise Development > Web Services, SOA & ESB
Reload this Page HandlerChain annotation name attribute deprecated.
Notices
Reply
 
LinkBack Thread Tools Display Modes
  (#1 (permalink)) Old
Member
 
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Join Date: Jun 2009
Default HandlerChain annotation name attribute deprecated. - 06-05-2009, 07:23 AM

Hi All,

I am using @HandlerChain(file="HandlerConfig.xml") annotation to configure a SOAPMessageHandler in my Impl file. This annotation contains a deprecated "name" attribute. When I am not specifying "name" attribute in the annotation, JWSC task is throwing "Null Pointer Exception" while creating the war of the service. This is probably because the HandlerConfig.xml contains handler-chain-name element and the annotation doesn't contain "name" attribute. When I am specifying name attribute in the annotation everything is fine. Please help me in resolving the problem without "name" attribute.

This is the code I am having:

SubmitApplicationServiceImpl.java:

package com.project.webservices.submitappservice;
import javax.jws.WebService;
import weblogic.jws.WLHttpTransport;
import javax.jws.HandlerChain;

@HandlerChain(file = “SubmitAppHandlerChain.xml”)
@WebService(serviceName = "SubmitApplicationService", targetNamespace = "http://project.com/ SubmitApplicationService", endpointInterface = "com.project.webservices.submitappservice.SubmitAp plicationServiceSoap")
@WLHttpTransport(contextPath = "SubmitApplicationService", serviceUri = "SubmitApplicationService", portName = "SubmitApplicationServiceSoapSoapPort")
public class SubmitApplicationServiceSoapImpl implements
SubmitApplicationServiceSoap {
public SubmitApplicationRes submitApplication(
SubmitApplicationReq submitApplicationRq) {
// Our business logic here.
return submitApplicationRes;
}
}



This is my handler configuration file in the same package:

SubmitAppHandlerChain.xml:

<?xml version='1.0' encoding='UTF-8'?>
<jwshc:handler-config xmlns:jwshc="http://www.bea.com/xml/ns/jws"
xmlns="http://java.sun.com/xml/ns/j2ee" >

<jwshc:handler-chain>
<jwshc:handler-chain-name>HandlerChain</jwshc:handler-chain-name>
<jwshc:handler>
<handler-name>AppServiceHandler</handler-name>
<handler-class>com.project.webservices.submitappservice.App ServiceHandler</handler-class>
</jwshc:handler>
</jwshc:handler-chain>

</jwshc:handler-config>




This is the build target that creates war of the service:

<taskdef name="jwsc"
classname="weblogic.wsee.tools.anttasks.JwscTask"
classpathref="compile.classpath" />

<target name="create-appservice-war>
<jwsc srcdir="${basedir}/project/src" destdir="${basedir}/projectEAR/build">
<jws file="com/project/webservices/submitappservice/SubmitApplicationServiceSoapImpl.java"/>
<classpath refid="jwsant.classpath" />
</jwsc>
</target>



Thanks,
Satya
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Developing a custom annotation for a marker jasFrank Eclipse 0 02-02-2009 05:18 AM


Copyright 1997-2009, DZone, Inc.
vBulletin Skin developed by: vBStyles.com