users@glassfish.java.net

Re: trouble deploying HandlerChain

From: Mark Hansen <mark_at_javector.com>
Date: Thu, 02 Mar 2006 14:18:09 -0500

built from CVS on March 1st (yesterday) afternoon.

Doug Kohlert wrote:

> Vijay, we fixed a bug in this area recently. Mark, what build of
> glassfish are you using?
>
> Vijay Ramachandran wrote:
>
>> I will check it out - meanwhile can you please file an issue with the
>> details of your test case - just to keep track of this issue
>>
>> Thanks
>>
>> Vijay
>>
>> On Thu, 2006-03-02 at 07:22, Mark Hansen wrote:
>>
>>
>>> 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
>>>
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
>> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>>
>>
>>
>