Steve Cohen [http://community.jboss.org/people/stevecoh4] created the discussion

"EJB-Web Service built with wsconsume will not deploy on JBoss"

To view the discussion, visit: http://community.jboss.org/message/631387#631387

--------------------------------------------------------------
I am unable to deploy an EJB Web Service built with wsconsume on JBoss 5.1.

I first created a simple hello-worldish POJO Web Service in top-down style from 
a hand-coded WSDL and Schema that I processed with 
wsconsume.

This deploys and works just fine.

I then copied my wsdl and schema to a new EJB project and modified all 
instances of the name in the WSDL to be something different i.e. 
Sample-->EJBSample.  Otherwise the structure of the WSDL and schema was 
identical.

In this project I also ran wsconsume to build the server code.  This succeeded 
and the project built.

I then also copied my hand coded service implementation to the new project and 
modified it as indicated in the Manning book "JBoss in Action", 
 http://www.manning.com/jamae/chapter_9.pdf 
http://www.manning.com/jamae/chapter_9.pdf, section 9.3.1.

The ejb will not deploy.  The error message is not very informative:
09:57:51,225 WARNING [config] Unable to process deployment descriptor for 
context '/jbsv-ejb'
I can't figure out what I've done wrong.
I tried boosting up the logging levels on the relevant loggers and this also 
provided no clue as to what might be missing.

Here are my implementations of the POJO and EJB services.  

package org.javactivity.jbsv.demo;
import javax.jws.WebService;
import org.jboss.ws.annotation.SchemaValidation;
  
@WebService(targetNamespace = "http://org.javactivity/SampleService";, 
portName="SampleServiceSOAP",
serviceName="SampleService", 
endpointInterface="org.javactivity.jbsv.demo.SampleServicePort")
public class SampleServicePortImpl implements SampleServicePort {
    private static int nextSession = 0;
     @Override
    public int foo(UserTypeType usertype, String username, String key) {
        return ++nextSession;
    }
 }


package org.javactivity.jbsv.ejb;
import javax.ejb.Stateless;
import javax.jws.WebService;
import javax.jws.soap.SOAPBinding;
 import org.jboss.wsf.spi.annotation.WebContext;
@Stateless
@WebContext(contextRoot="jbsv-ejb", urlPattern="/ejb")
@WebService(targetNamespace = "http://org.javactivity/EJBSampleService";, 
portName="EJBSampleServiceSOAP",
serviceName="EJBSampleService", 
endpointInterface="org.javactivity.jbsv.ejb.EJBSampleServicePort")
public class EJBSampleServicePortImpl implements EJBSampleServicePort {
    private static int nextSession = 0;
     @Override
    public int foo(UserTypeType usertype, String username, String key) {
        // TODO Auto-generated method stub
        return ++nextSession;
    }
}


What am I missing?
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/631387#631387]

Start a new discussion in JBoss Web Services at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2044]

_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to