This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
While deploying my application I got the following runtime error: SEVERE: WSSERVLET11: failed to parse runtime descriptor: The serviceName cannot be retrieved from an interface. class com.bluecubs.xinco.server.service.Xinco com.sun.xml.ws.model.RuntimeModelerException: The serviceName cannot be retrieved from an interface. class com.bluecubs.xinco.server.service.Xinco at com.sun.xml.ws.model.RuntimeModeler.getServiceName(RuntimeModeler.java:1403) at com.sun.xml.ws.server.EndpointFactory.getDefaultServiceName(EndpointFactory.java:372) at com.sun.xml.ws.transport.http.DeploymentDescriptorParser.parseAdapters(DeploymentDescriptorParser.java:230) at com.sun.xml.ws.transport.http.DeploymentDescriptorParser.parse(DeploymentDescriptorParser.java:147) at com.sun.xml.ws.transport.http.servlet.WSServletContextListener.contextInitialized(WSServletContextListener.java:124) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4135) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4630) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:546) at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:637) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:521) at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1359) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:297) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836) at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761) at org.apache.catalina.manager.ManagerServlet.check(ManagerServlet.java:1500) at org.apache.catalina.manager.ManagerServlet.deploy(ManagerServlet.java:849) at org.apache.catalina.manager.ManagerServlet.doGet(ManagerServlet.java:351) at javax.servlet.http.HttpServlet.service(HttpServlet.java:617) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:563) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) at java.lang.Thread.run(Thread.java:619) See attachment for Service class.
Created attachment 101753 [details] Generated class
I'm not sure I understand. You've attached a SEI (service endpoint interface) class with the following annotation @WebService(name="Xinco", ...) Note that this SEI class requires either implementation class, annotated with : @WebService(serviceName="XincoService", endpointInterface="com.bluecubs.xinco.server.service.Xinco") public class XincoService implements Xinco or, the client stub , like @WebServiceClient(name="XincoService", ...) public class XincoService implements javax.xml.ws.Service I am missing the second part od the SEI class. Note that the rules for the Java To Wsdl are the folowing : @WebService:serviceName attribute is transformed to wsdl:service->name attribute @WebService:name to wsdl:portType->name attribute If the @WebService annotation attributes are missing, the wsdl attributes are generated from the class name, e.g. for Hello class, they are : <wsdl:portType="Hello"> <wsdl:service name = "HelloService">
I'm aware of the missing second part but I was unable to locate it in the disk for attaching it. Where should it be located (the actual service code)?
You attached some interface class that isn't enough for j2ee server to create a web service. I asked you to attach also the implementation class. Or, please, can you explain how did you get that interface? I guess you used wsimport utility. In that case there must be other classes somewhere that were generated, e.g. GetXincoCoreDataTypeResponse etc. Or what Netbeans wizard did you use to generate this interface ?
This is the service class code: package com.bluecubs.xinco.core.server.service; import com.bluecubs.xinco.core.server.XincoCoreUserServer; import com.bluecubs.xinco.core.server.XincoException; import com.bluecubs.xinco.core.server.XincoSettingServer; import com.bluecubs.xinco.server.service.XincoCoreUser; import com.bluecubs.xinco.server.service.XincoVersion; import javax.jws.WebService; /** * * @author Javier A. Ortiz Bultron <javier.ortiz.78@gmail.com> */ @WebService(serviceName = "Xinco", portName = "XincoPort", endpointInterface = "com.bluecubs.xinco.server.service.Xinco", targetNamespace = "http://service.server.xinco.bluecubs.com/", wsdlLocation = "WEB-INF/wsdl/Xinco/Xinco.wsdl") public class Xinco { public com.bluecubs.xinco.server.service.XincoCoreDataType getXincoCoreDataType(com.bluecubs.xinco.server.service.XincoCoreDataType in0, com.bluecubs.xinco.server.service.XincoCoreUser in1) { //TODO implement this method throw new UnsupportedOperationException("Not implemented yet."); } public java.util.List<com.bluecubs.xinco.server.service.XincoAddAttribute> getXincoAddAttributes(com.bluecubs.xinco.server.service.XincoCoreData in0, com.bluecubs.xinco.server.service.XincoCoreUser in1) { //TODO implement this method throw new UnsupportedOperationException("Not implemented yet."); } public java.util.List<com.bluecubs.xinco.server.service.XincoCoreNode> getXincoCoreNodes(com.bluecubs.xinco.server.service.XincoCoreNode in0, com.bluecubs.xinco.server.service.XincoCoreUser in1) { //TODO implement this method throw new UnsupportedOperationException("Not implemented yet."); } public com.bluecubs.xinco.server.service.XincoCoreData getXincoCoreData(com.bluecubs.xinco.server.service.XincoCoreData in0, com.bluecubs.xinco.server.service.XincoCoreUser in1) { //TODO implement this method throw new UnsupportedOperationException("Not implemented yet."); } public com.bluecubs.xinco.server.service.XincoVersion getXincoServerVersion() throws XincoException { //return current version of server XincoVersion version = new XincoVersion(); version.setVersionHigh(XincoSettingServer.getSetting("version.high").getIntValue()); version.setVersionMid(XincoSettingServer.getSetting("version.mid").getIntValue()); version.setVersionLow(XincoSettingServer.getSetting("version.low").getIntValue()); version.setVersionPostfix(XincoSettingServer.getSetting("version.postfix").getStringValue()); return version; } public com.bluecubs.xinco.server.service.XincoCoreUser getCurrentXincoCoreUser(java.lang.String in0, java.lang.String in1) { //login try { XincoCoreUserServer user = new XincoCoreUserServer(in0, in1); return (XincoCoreUser) user; } catch (Exception e) { e.printStackTrace(); return null; } } public java.util.List<com.bluecubs.xinco.server.service.XincoCoreGroup> getAllXincoCoreGroups(com.bluecubs.xinco.server.service.XincoCoreUser in0) { //TODO implement this method throw new UnsupportedOperationException("Not implemented yet."); } public java.util.List<com.bluecubs.xinco.server.service.XincoCoreLanguage> getAllXincoCoreLanguages(com.bluecubs.xinco.server.service.XincoCoreUser in0) { //TODO implement this method throw new UnsupportedOperationException("Not implemented yet."); } public java.util.List<com.bluecubs.xinco.server.service.XincoCoreDataType> getAllXincoCoreDataTypes(com.bluecubs.xinco.server.service.XincoCoreUser in0) { //TODO implement this method throw new UnsupportedOperationException("Not implemented yet."); } public com.bluecubs.xinco.server.service.XincoCoreNode getXincoCoreNode(com.bluecubs.xinco.server.service.XincoCoreNode in0, com.bluecubs.xinco.server.service.XincoCoreUser in1) { //TODO implement this method throw new UnsupportedOperationException("Not implemented yet."); } public com.bluecubs.xinco.server.service.XincoCoreData doXincoCoreDataCheckout(com.bluecubs.xinco.server.service.XincoCoreData in0, com.bluecubs.xinco.server.service.XincoCoreUser in1) { //TODO implement this method throw new UnsupportedOperationException("Not implemented yet."); } public com.bluecubs.xinco.server.service.XincoCoreData doXincoCoreDataCheckin(com.bluecubs.xinco.server.service.XincoCoreData in0, com.bluecubs.xinco.server.service.XincoCoreUser in1) { //TODO implement this method throw new UnsupportedOperationException("Not implemented yet."); } public com.bluecubs.xinco.server.service.XincoCoreData undoXincoCoreDataCheckout(com.bluecubs.xinco.server.service.XincoCoreData in0, com.bluecubs.xinco.server.service.XincoCoreUser in1) { //TODO implement this method throw new UnsupportedOperationException("Not implemented yet."); } public byte[] downloadXincoCoreData(com.bluecubs.xinco.server.service.XincoCoreData in0, com.bluecubs.xinco.server.service.XincoCoreUser in1) { //TODO implement this method throw new UnsupportedOperationException("Not implemented yet."); } public int uploadXincoCoreData(com.bluecubs.xinco.server.service.XincoCoreData in0, byte[] in1, com.bluecubs.xinco.server.service.XincoCoreUser in2) { //TODO implement this method throw new UnsupportedOperationException("Not implemented yet."); } public java.util.List<java.lang.Object> findXincoCoreData(java.lang.String in0, com.bluecubs.xinco.server.service.XincoCoreLanguage in1, com.bluecubs.xinco.server.service.XincoCoreUser in2) { //TODO implement this method throw new UnsupportedOperationException("Not implemented yet."); } public com.bluecubs.xinco.server.service.XincoCoreNode setXincoCoreNode(com.bluecubs.xinco.server.service.XincoCoreNode in0, com.bluecubs.xinco.server.service.XincoCoreUser in1) { //TODO implement this method throw new UnsupportedOperationException("Not implemented yet."); } public com.bluecubs.xinco.server.service.XincoCoreData setXincoCoreData(com.bluecubs.xinco.server.service.XincoCoreData in0, com.bluecubs.xinco.server.service.XincoCoreUser in1) { //TODO implement this method throw new UnsupportedOperationException("Not implemented yet."); } public com.bluecubs.xinco.server.service.XincoCoreACE setXincoCoreACE(com.bluecubs.xinco.server.service.XincoCoreACE in0, com.bluecubs.xinco.server.service.XincoCoreUser in1) { //TODO implement this method throw new UnsupportedOperationException("Not implemented yet."); } public boolean removeXincoCoreACE(com.bluecubs.xinco.server.service.XincoCoreACE in0, com.bluecubs.xinco.server.service.XincoCoreUser in1) { //TODO implement this method throw new UnsupportedOperationException("Not implemented yet."); } public com.bluecubs.xinco.server.service.XincoCoreLog setXincoCoreLog(com.bluecubs.xinco.server.service.XincoCoreLog in0, com.bluecubs.xinco.server.service.XincoCoreUser in1) { //TODO implement this method throw new UnsupportedOperationException("Not implemented yet."); } public com.bluecubs.xinco.server.service.XincoCoreUser setXincoCoreUser(com.bluecubs.xinco.server.service.XincoCoreUser in0, com.bluecubs.xinco.server.service.XincoCoreUser in1) { //TODO implement this method throw new UnsupportedOperationException("Not implemented yet."); } public com.bluecubs.xinco.server.service.XincoCoreGroup setXincoCoreGroup(com.bluecubs.xinco.server.service.XincoCoreGroup in0, com.bluecubs.xinco.server.service.XincoCoreUser in1) { //TODO implement this method throw new UnsupportedOperationException("Not implemented yet."); } public com.bluecubs.xinco.server.service.XincoCoreLanguage setXincoCoreLanguage(com.bluecubs.xinco.server.service.XincoCoreLanguage in0, com.bluecubs.xinco.server.service.XincoCoreUser in1) { //TODO implement this method throw new UnsupportedOperationException("Not implemented yet."); } public boolean checkXincoCoreUserNewPassword(java.lang.String in0, com.bluecubs.xinco.server.service.XincoCoreUser in1, com.bluecubs.xinco.server.service.XincoCoreUser in2) { //TODO implement this method throw new UnsupportedOperationException("Not implemented yet."); } public com.bluecubs.xinco.server.service.XincoSetting getXincoSetting(java.lang.String in0, com.bluecubs.xinco.server.service.XincoCoreUser in1) { //TODO implement this method throw new UnsupportedOperationException("Not implemented yet."); } public java.util.List<com.bluecubs.xinco.server.service.XincoCoreDataTypeAttribute> getXincoCoreDataTypeAttribute(com.bluecubs.xinco.server.service.XincoCoreDataType in0, com.bluecubs.xinco.server.service.XincoCoreUser in1) { //TODO implement this method throw new UnsupportedOperationException("Not implemented yet."); } } As an alternate solution I loadedthe project as an attachment to issue #189955
Loading still in progress
> Loading still in progress Loading completed
Provided requested info, still no review.
The bug is about deployment issue. It means that this is runtime issue. But you've filed the issue against IDE. I cannot realize how IDE relates to the issue from the description. So how NB is involved in the issue except deployment error which is runtime issue ? Please provide exact steps to reproduce : - How project has been created ? - What JEE profile is used for the project ? - What is the target JEE server ? - How have you created the web service ? It seems that most important part of the issue is a deployment descriptor which probably has an invalid entry for WS implementation class.
- How project has been created ? IDE Wizard - What JEE profile is used for the project ? Not clear on what you mean. - What is the target JEE server ? Tomcat 7.0 - How have you created the web service ? IDE wizard For better or worst the project is now a Maven Project but all the code was transplanted from the code referenced in this issue. What you meant by the deployment descriptor? web.xml?
(In reply to comment #10) > - How project has been created ? > IDE Wizard Of course it's IDE wizard. What is the wizard path ? ( New Project->.... ? ) All I need is a project type actually : Ant/Maven; Web/..... > - What JEE profile is used for the project ? > Not clear on what you mean. Each JEE project has Java EE profile ( "Java EE Version" option in wizard ). What is yours ? > - What is the target JEE server ? > Tomcat 7.0 > - How have you created the web service ? > IDE wizard Again: please be more informative. What is the wizard path ? There are a number of various wizards in the IDE. What exactly ? Please provide all UI steps : what options have you used, what URL, paths have you entered ? > > For better or worst the project is now a Maven Project but all the code was > transplanted from the code referenced in this issue. > > What you meant by the deployment descriptor? web.xml? Yes, web.xml and sun-jaxws.xml.
Created attachment 125167 [details] web.xml file It was a Web(In reply to comment #11) > (In reply to comment #10) > > - How project has been created ? > > IDE Wizard > Of course it's IDE wizard. > What is the wizard path ? ( New Project->.... ? ) > All I need is a project type actually : Ant/Maven; Web/..... Java Web/Web Application > > - What JEE profile is used for the project ? > > Not clear on what you mean. > Each JEE project has Java EE profile ( "Java EE Version" option in wizard ). > What is yours ? Unable to check since project is Mavenized now > > - What is the target JEE server ? > > Tomcat 7.0 > > - How have you created the web service ? > > IDE wizard > Again: please be more informative. What is the wizard path ? > There are a number of various wizards in the IDE. > What exactly ? Please provide all UI steps : what options have you used, > what URL, paths have you entered ? Web Services/Web Service from WSDL. I selected a local wsdl file. > > > > For better or worst the project is now a Maven Project but all the code was > > transplanted from the code referenced in this issue. > > > > What you meant by the deployment descriptor? web.xml? > Yes, web.xml and sun-jaxws.xml. See attachments
Created attachment 125168 [details] sun-jaxws.xml
Related code can be found here: https://xinco.svn.sourceforge.net/svnroot/xinco Use revision 1199, the last one previous to the Mavenization of the project. If this is not enough information (the source code) feel free to close as works for me.
I'm not able to reproduce the issue with steps provided and wsdl file mentioned at the location ( https://xinco.svn.sourceforge.net/svnroot/xinco/trunk/Xinco/src/main/webapp/WEB-INF/wsdl/XincoWebService/Xinco.wsdl ).