users@glassfish.java.net

Re: trouble deploying HandlerChain

From: Art Frechette <arthur.frechette_at_sun.com>
Date: Thu, 02 Mar 2006 11:20:07 -0500

There was a bug on this.

Vijay, has this issue been resolved.

-Art

Mark Hansen wrote On 03/02/06 10:22,:
> Responding to myself here ....
>
> I think there is a bug with @HanderChain and @WebServiceProvider. After
> playing around with this some more, I can get it to work when the
> endpoint is deployed as a @WebService, but not as an @WebServiceProvider.
>
>
> mark_at_javector.com wrote:
>
>
>>Do I need a sun-web.xml to deploy a HandlerChain? I'm trying to deploy with
>>just a web.xml and its giving me (server.log):
>>
>>[#|2006-03-02T09:21:10.078-0500|SEVERE|sun-appserver-pe9.0|javax.enterprise.system.tools.deployment|_ThreadID=19;_ThreadName=Thread-30;_RequestID=c23ec6ef-007a-43f3-b081-f7a37cdfe084;|Exception
>>occured in J2EEC Phase
>>com.sun.enterprise.deployment.backend.IASDeploymentException: Error loading
>>deployment descriptors for module [endpoint-provider-handler-war] --
>> at
>>com.sun.enterprise.deployment.backend.Deployer.loadDescriptors(Deployer.java:330)
>> at
>>com.sun.enterprise.deployment.backend.ModuleDeployer.loadDescriptors(ModuleDeployer.java:394)
>> at
>>com.sun.enterprise.deployment.backend.WebModuleDeployer.deploy(WebModuleDeployer.java:155)
>> at
>>com.sun.enterprise.deployment.backend.ModuleDeployer.doRequestFinish(ModuleDeployer.java:160)
>> at
>>com.sun.enterprise.deployment.phasing.J2EECPhase.runPhase(J2EECPhase.java:169)
>> at
>>com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:95)
>> at
>>com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:848)
>> at
>>com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:260)
>> at
>>com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:716)
>> at
>>com.sun.enterprise.management.deploy.DeployThread.deploy(DeployThread.java:165)
>> at com.sun.enterprise.management.deploy.DeployThread.run(DeployThread.java:194)
>>|#]
>>
>>Here is the class defintion:
>>
>>@WebServiceProvider(serviceName = "RequestOrder",
>> portName="RequestOrderPort",
>> targetNamespace = "http://www.example.com/req",
>> wsdlLocation="WEB-INF/wsdl/RequestOrder.wsdl")
>>@ServiceMode(Service.Mode.PAYLOAD)
>>@HandlerChain(file="handlerchain.xml")
>>public class RequestOrderEndpoint implements Provider<Source> { ... }
>>
>>This same endpoint deploys fine without the @HandlerChain annotation.
>>
>>Here is the WAR structure. I'm putting the 'handlerchain.xml' in the same place
>>as its located in the svchandler-2 example.
>>
>>META-INF/
>>META-INF/MANIFEST.MF
>>WEB-INF/
>>WEB-INF/classes/
>>WEB-INF/classes/samples/
>>WEB-INF/wsdl/
>>WEB-INF/lib/
>>WEB-INF/tld/
>>WEB-INF/classes/samples/handlerchain.xml
>>WEB-INF/classes/samples/ValidationHandler.class
>>WEB-INF/classes/samples/RequestOrderEndpoint.class
>>WEB-INF/wsdl/RequestOrder.wsdl
>>WEB-INF/web.xml
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
>>For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>>
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>

-- 
Regards,
         ______
        /_____/\
       /_____\\ \
      /_____\ \\ /           Arthur D. Frechette
     /_____/ \/ / /          Sun Microsystems Computer Company
    /_____/ /   \//\         1 Network Drive
    \_____\//\   / /         Burlington, MA 01803-0902
     \_____/ / /\ /
      \_____/ \\ \           Email: arthur.frechette_at_Sun.COM
       \_____\ \\            Phone (781) 442-0466 Fax (781) 442-1610
        \_____\/             Web site...http://www.sun.com