users@glassfish.java.net

Re: trouble deploying HandlerChain

From: Stephen DiMilla <Stephen.Dimilla_at_Sun.COM>
Date: Thu, 02 Mar 2006 13:23:58 -0500

I believe that handler-name is required.
Your correct about the @HandlerChain.name deing deprecated.

steved

Mark Hansen wrote:

> I think <handler-name> is deprecated in this scenario. Isn't it? It
> is gone from the appserv-tests examples. And the annotation attribute
> @HandlerChain.name is deprecated in the current glassfish build.
>
>
> Stephen DiMilla wrote:
>
>> Your handler file needs to include the <handler-name> tag.
>>
>> steved
>>
>> mark_at_javector.com wrote:
>>
>>> <?xml version="1.0" encoding="UTF-8"?>
>>> <handler-chains xmlns:jws="http://java.sun.com/xml/ns/javaee">
>>> <handler-chain>
>>> <handler>
>>> <handler-class>samples.ValidationHandler</handler-class>
>>> </handler>
>>> </handler-chain>
>>> </handler-chains>
>>>
>>> Quoting Stephen DiMilla <Stephen.Dimilla_at_Sun.COM>:
>>>
>>>> What's the contents of the handlerchain.xml file look like?
>>>>
>>>> steved
>>>>
>>>> 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
>>>
>>
>> ---------------------------------------------------------------------
>> 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
>