[JBossWS] - Deployment fails after upgrading from 4.0.3sp1 to 4.2.0.GA -
by J2EEUser
Our application was deploying and running on JBoss4.0.3.sp1 without any issues.
I upgraded JBoss from 4.0.3sp1 to 4.2.0.GA. After that I am getting the following deployment error.
Anybody had this issue? Any ideas? Thanks.
===============
Exception:
2007-06-14 16:52:42,051 ERROR [org.jboss.deployment.MainDeployer] Could not start deployment: file:/opt/nxtn/jboss-4.2.0.GA/server/default/tmp/deploy/tmp53419app.ear-contents/appweb.war
org.jboss.deployment.DeploymentException: Cannot start service endpoint; - nested throwable: (org.jboss.ws.WSException: Element credential found in jaxrpc-mapping but not in the schema: null)
at org.jboss.deployment.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:53)
at org.jboss.ws.integration.jboss42.DeployerInterceptor.start(DeployerInterceptor.java:101)
at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188)
at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy46.start(Unknown Source)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1015)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
at sun.reflect.GeneratedMethodAccessor18.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy9.deploy(Unknown Source)
at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:336)
at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
at $Proxy0.start(Unknown Source)
at org.jboss.system.ServiceController.start(ServiceController.java:417)
at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy4.start(Unknown Source)
at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
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:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy5.deploy(Unknown Source)
at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
at org.jboss.Main.boot(Main.java:200)
at org.jboss.Main$1.run(Main.java:508)
at java.lang.Thread.run(Thread.java:595)
==============
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4054785#4054785
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4054785
17 years, 6 months
[JBossWS] - Re: WebServiceRef injection does not work
by gsferra@imnet.it
anonymous wrote :
| To me it look like the wsrunclient simply provides a classpath for simple (i.e. Service.create) invocations
|
I have problems with Service.create() too using JBoss 4.0.5GA, latest EJB3 and JBossWS packages.
When I start my client I catch the following exception:
| javax.xml.ws.WebServiceException: java.lang.IllegalArgumentException: Cannot obt
| ain wsdl service: HelloService
| at javax.xml.ws.Service.create(Service.java:731)
| at com.imnet.oam.ws.HelloClient.<init>(HelloClient.java:13)
| at com.imnet.oam.ws.HelloClient.main(HelloClient.java:27)
| Caused by: java.lang.IllegalArgumentException: Cannot obtain wsdl service: Hello
| Service
| at org.jboss.ws.metadata.builder.jaxws.JAXWSClientMetaDataBuilder.buildM
| etaDataInternal(JAXWSClientMetaDataBuilder.java:131)
| at org.jboss.ws.metadata.builder.jaxws.JAXWSClientMetaDataBuilder.buildM
| etaData(JAXWSClientMetaDataBuilder.java:85)
| at org.jboss.ws.core.jaxws.spi.ServiceDelegateImpl.<init>(ServiceDelegat
| eImpl.java:140)
| at org.jboss.ws.core.jaxws.spi.ProviderImpl.createServiceDelegate(Provid
| erImpl.java:61)
| at javax.xml.ws.Service.<init>(Service.java:83)
| at org.jboss.ws.core.jaxws.client.ServiceExt.<init>(ServiceExt.java:60)
| at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
|
| at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
| orAccessorImpl.java:39)
| at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
| onstructorAccessorImpl.java:27)
| at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
| at javax.xml.ws.Service.create(Service.java:726)
| ... 2 more
|
This is the WSLD generated while deploying the EJB3 web service:
| <definitions name='HelloService' targetNamespace='http://mypc:8080' xmlns='http://schemas.xmlsoap.org/wsdl/' xmlns:soap='http://schemas.xmlsoap.org/wsdl/soap/' xmlns:tns='http://mypc:8080' xmlns:xsd='http://www.w3.org/2001/XMLSchema'>
| <types>
| <xs:schema targetNamespace='http://mypc:8080' version='1.0' xmlns:xs='http://www.w3.org/2001/XMLSchema'>
| <xs:element name='sayHello' nillable='true' type='xs:string'/>
| <xs:element name='sayHelloResponse' nillable='true' type='xs:string'/>
| </xs:schema>
| </types>
| <message name='Hello_sayHello'>
| <part element='tns:sayHello' name='sayHello'/>
| </message>
| <message name='Hello_sayHelloResponse'>
| <part element='tns:sayHelloResponse' name='sayHelloResponse'/>
| </message>
| <portType name='Hello'>
| <operation name='sayHello' parameterOrder='sayHello'>
| <input message='tns:Hello_sayHello'/>
| <output message='tns:Hello_sayHelloResponse'/>
| </operation>
| </portType>
| <binding name='HelloBinding' type='tns:Hello'>
| <soap:binding style='document' transport='http://schemas.xmlsoap.org/soap/http'/>
| <operation name='sayHello'>
| <soap:operation soapAction=''/>
| <input>
| <soap:body use='literal'/>
| </input>
| <output>
| <soap:body use='literal'/>
| </output>
| </operation>
| </binding>
| <service name='HelloService'>
| <port binding='tns:HelloBinding' name='HelloPort'>
| <soap:address location='http://mypc:8080/HelloService/Hello'/>
| </port>
| </service>
| </definitions>
|
The client code follows:
| package org.me.ws;
|
| import java.net.URL;
| import javax.xml.namespace.QName;
| import javax.xml.ws.Service;
|
| public class HelloClient {
| private static final String SERVICE_NAME = "HelloService";
| private static final String WSDL_LOCATION = "http://mypc:8080/HelloService/HelloService?wsdl";
| private Service service;
|
| public HelloClient() throws Exception {
| service = Service.create(new URL(WSDL_LOCATION), new QName(SERVICE_NAME));
| }
|
| public String getMessage() {
| Hello hello = null;
|
| hello = service.getPort(Hello.class);
| return hello.sayHello("Jim");
| }
|
| public static void main(String[] args) {
| HelloClient client = null;
|
| try {
| client = new HelloClient();
| System.out.println(client.getMessage());
| } catch (Throwable t) {
| t.printStackTrace();
| }
| }
| }
|
and finally the service implementation class code follows:
| package com.imnet.oam.ws;
|
| import javax.jws.*;
| import javax.jws.soap.SOAPBinding;
| import javax.ejb.Stateless;
|
| @Stateless
| @WebService(name="Hello", targetNamespace="http://mypc:8080", serviceName="HelloService")
| @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)
| public class Hello {
| private String message = new String("Hello, ");
|
| @WebMethod
| public String sayHello(String name) {
| return message + name + ".";
| }
| }
|
The WSDL file is easily accessible using the internet browser or throught the http://localhost:8080/jbossws/services links. I tried to call my service in many different way, changing it's name or targetName but the results are similar. Any ideas?
Thank you
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4054722#4054722
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4054722
17 years, 6 months