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