Hi Randy,<br />
<br />
I followed the steps until I hit the deployment problem.<br />
<br />
<strike>2/27/08 15:19:31:562 PST</strike> 0000006d WASWSDLGenera E WSWS7054E: The Web Services Description Language (WSDL) file could not be generated for the itso.bank.EchoServiceBeanPortImpl Web service implementation class because of the following error: java.lang.Exception: A WSDL Definition could not be generated for the implementation class: itso.bank.EchoServiceBeanPortImpl<br />
<strike>2/27/08 15:19:31:578 PST</strike> 0000006d WSModuleDescr E WSWS7027E: JAX-WS Service Descriptions could not be correctly built because of the following error: javax.xml.ws.WebServiceException: WSWS7054E: The Web Services Description Language (WSDL) file could not be generated for the itso.bank.EchoServiceBeanPortImpl Web service implementation class because of the following error: java.lang.Exception: A WSDL Definition could not be generated for the implementation class: itso.bank.EchoServiceBeanPortImpl<br />
at com.ibm.ws.websvcs.wsdl.WASWSDLGenerator.generateWsdl(WASWSDLGenerator.java:210)<br />
at org.apache.axis2.jaxws.description.impl.EndpointDescriptionImpl.generateWSDL(EndpointDescriptionImpl.java:1754)<br />
at org.apache.axis2.jaxws.description.impl.EndpointDescriptionImpl.<init>(EndpointDescriptionImpl.java:352)<br />
at org.apache.axis2.jaxws.description.impl.ServiceDescriptionImpl.setupServiceDescriptionImpl(ServiceDescriptionImpl.java:228)<br />
at org.apache.axis2.jaxws.description.impl.ServiceDescriptionImpl.<init>(ServiceDescriptionImpl.java:186)<br />
at org.apache.axis2.jaxws.description.impl.DescriptionFactoryImpl.createServiceDescriptionFromDBCMap(DescriptionFactoryImpl.java:192)<br />
at org.apache.axis2.jaxws.description.DescriptionFactory.createServiceDescriptionFromDBCMap(DescriptionFactory.java:135)<br />
at com.ibm.ws.websvcs.desc.WSModuleDescriptorImpl.buildServices(WSModuleDescriptorImpl.java:328)<br />
at com.ibm.ws.websvcs.desc.WSModuleDescriptorImpl.getServices(WSModuleDescriptorImpl.java:268)<br />
at com.ibm.ws.webservices.admin.deploy.ServiceIndexDataBuilder.getWSData(ServiceIndexDataBuilder.java:50)<br />
at com.ibm.ws.webservices.admin.deploy.ServiceIndexServerTaskImpl.listWebServices(ServiceIndexServerTaskImpl.java:142)<br />
at com.ibm.ws.webservices.admin.deploy.ServiceIndexServerTaskImpl.listWebServices(ServiceIndexServerTaskImpl.java:107)<br />
at com.ibm.ws.webservices.admin.deploy.ServiceIndexServerTask.performTask(ServiceIndexServerTask.java:163)<br />
at com.ibm.ws.management.application.SchedulerImpl.run(SchedulerImpl.java:262)<br />
at java.lang.Thread.run(Thread.java:810)<br />
Caused by: java.lang.Exception: A WSDL Definition could not be generated for the implementation class: itso.bank.EchoServiceBeanPortImpl<br />
at com.ibm.ws.websvcs.wsdl.WASWSDLGenerator.generateWsdl(WASWSDLGenerator.java:183)<br />
... 14 more<br />
<br />
<strike>2/27/08 15:19:31:562 PST</strike> 0000006d SystemErr R Problem encountered during annotation processing; <br />
<strike>2/27/08 15:19:31:562 PST</strike> 0000006d SystemErr R see stacktrace below for more information.<br />
<strike>2/27/08 15:19:31:562 PST</strike> 0000006d SystemErr R java.lang.ClassCastException: com.sun.tools.apt.mirror.declaration.ClassDeclarationImpl incompatible with com.sun.mirror.declaration.InterfaceDeclaration<br />
<strike>2/27/08 15:19:31:562 PST</strike> 0000006d SystemErr R at com.sun.tools.ws.processor.modeler.annotation.WebServiceVisitor.getEndpointInterfaceDecl(WebServiceVisitor.java:429)<br />
<strike>2/27/08 15:19:31:562 PST</strike> 0000006d SystemErr R at com.sun.tools.ws.processor.modeler.annotation.WebServiceVisitor.isLegalImplementation(WebServiceVisitor.java:545)<br />
<strike>2/27/08 15:19:31:562 PST</strike> 0000006d SystemErr R at com.sun.tools.ws.processor.modeler.annotation.WebServiceVisitor.shouldProcessWebService(WebServiceVisitor.java:352)<br />
<strike>2/27/08 15:19:31:562 PST</strike> 0000006d SystemErr R at com.sun.tools.ws.processor.modeler.annotation.WebServiceVisitor.visitClassDeclaration(WebServiceVisitor.java:145)<br />
<strike>2/27/08 15:19:31:562 PST</strike> 0000006d SystemErr R at com.sun.tools.apt.mirror.declaration.ClassDeclarationImpl.accept(ClassDeclarationImpl.java:109)<br />
<strike>2/27/08 15:19:31:562 PST</strike> 0000006d SystemErr R at com.sun.tools.ws.processor.modeler.annotation.WebServiceAP.buildModel(WebServiceAP.java:347)<br />
<strike>2/27/08 15:19:31:562 PST</strike> 0000006d SystemErr R at com.sun.tools.ws.processor.modeler.annotation.WebServiceAP.process(WebServiceAP.java:232)<br />
<strike>2/27/08 15:19:31:562 PST</strike> 0000006d SystemErr R at com.sun.mirror.apt.AnnotationProcessors$CompositeAnnotationProcessor.process(AnnotationProcessors.java:78)<br />
<strike>2/27/08 15:19:31:562 PST</strike> 0000006d SystemErr R at com.sun.tools.apt.comp.Apt.main(Apt.java:472)<br />
<strike>2/27/08 15:19:31:562 PST</strike> 0000006d SystemErr R at com.sun.tools.apt.main.JavaCompiler.compile(JavaCompiler.java:486)<br />
<strike>2/27/08 15:19:31:562 PST</strike> 0000006d SystemErr R at com.sun.tools.apt.main.Main.compile(Main.java:1103)<br />
<strike>2/27/08 15:19:31:562 PST</strike> 0000006d SystemErr R at com.sun.tools.apt.main.Main.compile(Main.java:966)<br />
<strike>2/27/08 15:19:31:562 PST</strike> 0000006d SystemErr R at com.sun.tools.apt.Main.processing(Main.java:113)<br />
<strike>2/27/08 15:19:31:562 PST</strike> 0000006d SystemErr R at com.sun.tools.apt.Main.process(Main.java:103)<br />
<strike>2/27/08 15:19:31:562 PST</strike> 0000006d SystemErr R at com.sun.tools.apt.Main.process(Main.java:85)<br />
<strike>2/27/08 15:19:31:562 PST</strike> 0000006d SystemErr R at com.sun.tools.ws.wscompile.CompileTool.buildModel(CompileTool.java:605)<br />
<strike>2/27/08 15:19:31:562 PST</strike> 0000006d SystemErr R at com.sun.tools.ws.wscompile.CompileTool.run(CompileTool.java:538)<br />
<strike>2/27/08 15:19:31:562 PST</strike> 0000006d SystemErr R at com.sun.tools.ws.util.ToolBase.run(ToolBase.java:56)<br />
<strike>2/27/08 15:19:31:562 PST</strike> 0000006d SystemErr R at com.sun.tools.ws.util.WSToolsObjectFactoryImpl.wsgen(WSToolsObjectFactoryImpl.java:44)<br />
<strike>2/27/08 15:19:31:562 PST</strike> 0000006d SystemErr R at com.ibm.ws.websvcs.wsdl.WASWSDLGenerator.generateWsdl(WASWSDLGenerator.java:179)<br />
<strike>2/27/08 15:19:31:562 PST</strike> 0000006d SystemErr R at org.apache.axis2.jaxws.description.impl.EndpointDescriptionImpl.generateWSDL(EndpointDescriptionImpl.java:1754)<br />
<strike>2/27/08 15:19:31:562 PST</strike> 0000006d SystemErr R at org.apache.axis2.jaxws.description.impl.EndpointDescriptionImpl.<init>(EndpointDescriptionImpl.java:352)<br />
<strike>2/27/08 15:19:31:562 PST</strike> 0000006d SystemErr R at org.apache.axis2.jaxws.description.impl.ServiceDescriptionImpl.setupServiceDescriptionImpl(ServiceDescriptionImpl.java:228)<br />
<strike>2/27/08 15:19:31:562 PST</strike> 0000006d SystemErr R at org.apache.axis2.jaxws.description.impl.ServiceDescriptionImpl.<init>(ServiceDescriptionImpl.java:186)<br />
<strike>2/27/08 15:19:31:562 PST</strike> 0000006d SystemErr R at org.apache.axis2.jaxws.description.impl.DescriptionFactoryImpl.createServiceDescriptionFromDBCMap(DescriptionFactoryImpl.java:192)<br />
<strike>2/27/08 15:19:31:562 PST</strike> 0000006d SystemErr R at org.apache.axis2.jaxws.description.DescriptionFactory.createServiceDescriptionFromDBCMap(DescriptionFactory.java:135)<br />
<strike>2/27/08 15:19:31:562 PST</strike> 0000006d SystemErr R at com.ibm.ws.websvcs.desc.WSModuleDescriptorImpl.buildServices(WSModuleDescriptorImpl.java:328)<br />
<strike>2/27/08 15:19:31:562 PST</strike> 0000006d SystemErr R at com.ibm.ws.websvcs.desc.WSModuleDescriptorImpl.getServices(WSModuleDescriptorImpl.java:268)<br />
<strike>2/27/08 15:19:31:562 PST</strike> 0000006d SystemErr R at com.ibm.ws.webservices.admin.deploy.ServiceIndexDataBuilder.getWSData(ServiceIndexDataBuilder.java:50)<br />
<strike>2/27/08 15:19:31:562 PST</strike> 0000006d SystemErr R at com.ibm.ws.webservices.admin.deploy.ServiceIndexServerTaskImpl.listWebServices(ServiceIndexServerTaskImpl.java:142)<br />
<strike>2/27/08 15:19:31:562 PST</strike> 0000006d SystemErr R at com.ibm.ws.webservices.admin.deploy.ServiceIndexServerTaskImpl.listWebServices(ServiceIndexServerTaskImpl.java:107)<br />
<strike>2/27/08 15:19:31:562 PST</strike> 0000006d SystemErr R at com.ibm.ws.webservices.admin.deploy.ServiceIndexServerTask.performTask(ServiceIndexServerTask.java:163)<br />
<strike>2/27/08 15:19:31:562 PST</strike> 0000006d SystemErr R at com.ibm.ws.management.application.SchedulerImpl.run(SchedulerImpl.java:262)<br />
<strike>2/27/08 15:19:31:562 PST</strike> 0000006d SystemErr R at java.lang.Thread.run(Thread.java:810)<br />
<br />
I've created a web service client-only dynamic web project and am stuck with ejb-ref definition in web.xml file to the ejb the web service impl delegates calls to. I defined it as follows:<br />
<br />
<ejb-ref><br />
<description></description><br />
<ejb-ref-name>ejb/echo</ejb-ref-name><br />
<ejb-ref-type>Session</ejb-ref-type><br />
<home></home><br />
<remote>itso.bank.EchoService</remote><br />
</ejb-ref><br />
<br />
The EchoService is in another ear. The web (web services client) project deploys and works fine until I execute the web service which in turn calls the ejb via ejb/echo reference. I'm getting an error message saying that ejb is not part of the ear so I should not expect it working.<br />
<br />
Caused by: com.ibm.ejs.container.EJBNotFoundException: EJB with interface itso.bank.EchoService not present in application WebServiceProjectEAR<br />
at com.ibm.ejs.container.HomeOfHomes.getHomeByInterface(HomeOfHomes.java:567)<br />
at com.ibm.ws.ejbcontainer.injection.factory.EJBLinkObjectFactory.getObjectInstance(EJBLinkObjectFactory.java:252)<br />
at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:316)<br />
at com.ibm.ws.naming.util.Helpers.processSerializedObjectForLookupExt(Helpers.java:917)<br />
... 42 more<br />
<br />
So, I added the web (web service client) project as a part of the EAR with the ejb it delegates calls to. The above exception's thrown upon deployment. What am I doing wrong?<br />