[jboss-user] [JBossWS] - Error deploying EJB 3 Webservice on Jboss 5.0.0 Beta 4
felle82
do-not-reply at jboss.com
Tue Apr 29 10:10:24 EDT 2008
Hi all,
When I deploy my ear containig a Webservice implementation I have a Nested Exeption:
15:52:40,102 ERROR [AbstractKernelController] Error installing to Real: name=vfsfile:/D:/DEV/jboss-5.0.0.Beta4/server/default/deploy/SII_PublishSubscribeEAR.ear state=PostClassLoader mo
| de=Manual requiredState=Real
| org.jboss.deployers.spi.DeploymentException: Error during deploy: vfsfile:/D:/DEV/jboss-5.0.0.Beta4/server/default/deploy/SII_PublishSubscribeEAR.ear/SII_PublishSubscribe.jar
| at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
| at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:175)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:853)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:906)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:794)
| at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:327)
| at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1309)
| at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:734)
| at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:862)
| at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:784)
| at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:622)
| at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:411)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:498)
| at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:506)
| at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:246)
| at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:131)
| at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:408)
| at org.jboss.Main.boot(Main.java:208)
| at org.jboss.Main$1.run(Main.java:534)
| at java.lang.Thread.run(Thread.java:595)
| Caused by: org.jboss.wsf.spi.deployment.WSFDeploymentException: javax.xml.ws.WebServiceException: org.dom4j.DocumentException: java.sun.com Nested exception: java.sun.com
| at org.jboss.wsf.spi.deployment.WSFDeploymentException.rethrow(WSFDeploymentException.java:54)
| at org.jboss.wsf.container.jboss50.WebAppDeploymentAspect.create(WebAppDeploymentAspect.java:87)
| at org.jboss.wsf.framework.deployment.DeploymentAspectManagerImpl.deploy(DeploymentAspectManagerImpl.java:115)
| at org.jboss.wsf.container.jboss50.ArchiveDeployerHook.deploy(ArchiveDeployerHook.java:95)
| at org.jboss.wsf.container.jboss50.AbstractWebServiceDeployer.internalDeploy(AbstractWebServiceDeployer.java:63)
| at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
| at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:169)
| ... 18 more
| Caused by: javax.xml.ws.WebServiceException: org.dom4j.DocumentException: java.sun.com Nested exception: java.sun.com
| at org.jboss.wsf.container.jboss50.WebXMLRewriterImpl.rewriteWebXml(WebXMLRewriterImpl.java:92)
| at org.jboss.wsf.container.jboss50.WebAppDeploymentAspect.create(WebAppDeploymentAspect.java:74)
| ... 23 more
| Caused by: org.dom4j.DocumentException: java.sun.com Nested exception: java.sun.com
| at org.dom4j.io.SAXReader.read(SAXReader.java:484)
| at org.dom4j.io.SAXReader.read(SAXReader.java:343)
| at org.jboss.wsf.container.jboss50.WebXMLRewriterImpl.rewriteWebXml(WebXMLRewriterImpl.java:111)
| at org.jboss.wsf.container.jboss50.WebXMLRewriterImpl.rewriteWebXml(WebXMLRewriterImpl.java:84)
| ... 24 more
| 15:52:40,350 ERROR [ProfileServiceBootstrap] Failed to load profile: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):
|
| *** CONTEXTS IN ERROR: Name -> Error
|
| vfsfile:/D:/DEV/jboss-5.0.0.Beta4/server/default/deploy/SII_PublishSubscribeEAR.ear -> org.dom4j.DocumentException: java.sun.com Nested exception: java.sun.com
My java Class and Interface look as follows:/**
| *
| */
| package com.test.sii.pubsub;
|
| import java.util.ArrayList;
| import java.util.Date;
|
| import javax.ejb.EJB;
| import javax.ejb.Stateless;
| import javax.jws.WebService;
|
| import com.test.sii.pubsub.entity.Subscriber;
|
| /**
| *
|
| * @author I052946
| *
| */
| @WebService(serviceName="PublishSubscribeService", endpointInterface="com.test.sii.pubsub.PublishSubscribeRemote", portName="PublishSubscribeBeanPort", targetNamespace="http://test.com/sii/pubsub/")
| @Stateless
| public class PublishSubscribeBean implements PublishSubscribeRemote{
|
| @EJB
| private SubscriptionManagerLocal subscriptionManagerLocal;
|
| public String notify(String topic,String Message) {
| ArrayList<Subscriber> subscribers = subscriptionManagerLocal.getSubscriberForTopics(topic);
| for (Subscriber subscriber : subscribers) {
| notifySubscriber(subscriber);
| }
| return "Notified";
| }
|
| public String subscribe(String topic, String endpoint, Date duration) {
| Subscriber subscriper = new Subscriber();
| subscriper.setEndpoint(endpoint);
| int id = subscriptionManagerLocal.registerSubscription(topic, subscriper, duration);
| return "Subscription with id "+ id+" was registered at "+duration;
| }
|
|
| private void notifySubscriber(Subscriber subscriber){
|
| }
| }
|
/**
| *
| */
| package com.test.sii.pubsub;
|
| import java.util.Date;
|
| import javax.ejb.Remote;
| import javax.jws.WebMethod;
| import javax.jws.WebService;
| import javax.jws.WebParam;
|
| /**
| * @author I052946
| *
| */
| @WebService(name="PublishSubscribeRemote", targetNamespace="http://test.com/sii/pubsub/")
| @Remote
| public interface PublishSubscribeRemote {
|
|
| @WebMethod(operationName="notify")
| public String notify(@WebParam(name="topic")
| String topic, at WebParam(name="message")
| String message);
|
| @WebMethod(operationName="subscribe")
| public String subscribe(@WebParam(name="topic")
| String topic, at WebParam(name="endpoint")
| String endpoint, @WebParam(name="duration")
| Date duration);
|
| }
|
Any hints?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4147517#4147517
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4147517
More information about the jboss-user
mailing list