[JBossWS] - SOAPMessage error: setProperty must be overridden by all sub
by viniciuscarvalho
Hello there! From what I've searched so far, this error happens when I have a sun RI SAAJ in my classloader. I've searched my entire harddisk (literally) for a reference to anothar SAAJ implementation that's not jboss-saaj.jar. And could not find. I've also used some operations on the classloader mbean (output bellow) to find who was loading the other instance. And yet, nothing was found. The error happens when my WebServiceProvider using ServiceMode=Mode.MESSAGE is invoked.
Anything else should I be looking for?
Regards
| getPackage
| org.jboss.mx.loading.UnifiedClassLoader3@6f9b8e{ url=null ,addedOrder=2}, org.jboss.mx.loading.UnifiedClassLoader3@1b70f9e{ url=file:/java/servers/jboss-messaging/server/messaging/deploy/jboss-messaging.sar/ ,addedOrder=12},
| org.jboss.mx.loading.UnifiedClassLoader3@1f6d2e3{ url=file:/java/servers/jboss-messaging/server/messaging/deploy/jbossws.sar/ ,addedOrder=13}
|
|
| displayClassInfo
| javax.xml.soap.SOAPMessage Information
| Repository cache version:
| javax.xml.soap.SOAPMessage(8f6d64).ClassLoader=null
| ++++Null CodeSource
| Implemented Interfaces:
|
| ### Instance0 found in UCL: org.jboss.mx.loading.UnifiedClassLoader3@1f6d2e3{ url=file:/java/servers/jboss-messaging/server/messaging/deploy/jbossws.sar/ ,addedOrder=13}
|
|
| ### Instance1 via UCL: org.jboss.system.server.NoAnnotationURLClassLoader@13caecd
|
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4089815#4089815
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4089815
17 years, 2 months
[JBossWS] - Re: Ant doesn 't Recognize WSConsumeTask
by ebonnett
Hmm, looks like my script got stripped from the previous message. Let me try that again...
|
| <path id="jbossws.classpath">
| <fileset dir="C:/jboss-4.2.1.GA/client">
| <include name="**/*.jar"/>
| </fileset>
| <fileset dir="C:/jboss-4.2.1.GA/lib">
| <include name="**/*.jar"/>
| </fileset>
| <fileset dir="C:/jboss-4.2.1.GA/server/default/lib">
| <include name="**/*.jar"/>
| </fileset>
| <fileset dir="C:/jbossws-native-2.0.0.GA/lib">
| <include name="**/*.jar"/>
| </fileset>
| <pathelement location="C:/jbossws-native-2.0.0.GA/lib/jbossws-spi.jar"/>
| </path>
|
|
| <target name="generateClientFiles">
|
| <taskdef name="wsconsume" classname="org.jboss.wsf.spi.tools.ant.WSConsumeTask">
| <classpath>
| <path refid="jbossws.classpath" />
| </classpath>
| </taskdef>
|
| <wsconsume
| fork="true"
| verbose="true"
| destdir="output"
| sourcedestdir="gen-src"
| keep="true"
| wsdllocation="handEdited.wsdl"
| wsdl="WebServicesTestService.wsdl">
| </wsconsume>
|
| </target>
|
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4089724#4089724
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4089724
17 years, 2 months
[JBossWS] - Re: Ant doesn 't Recognize WSConsumeTask
by ebonnett
No, I hadn't included that. Thanks! That definitely got me farther along. But, now I'm seeing a NoClassDefFoundError on WSConsume. It looks like this class is also in jbossws-spi.jar. So, WTF? I tried building a classpath that includes just about everything related to JBoss and JBossWS and got the same result. Any suggestions? I sincerely apologize if this is just my ignorance of Ant.
Eric
generateClientFiles:
Consuming wsdl: WebServicesTestService.wsdl
Command invoked: org.jboss.wsf.spi.tools.cmd.WSConsume -k -w handEdited.wsdl -o C:\XCAFE\CommonModules\WebServicesTest\output -s C:\XCAFE\CommonModules\WebServicesTest\gen-src -v WebServicesTestService.wsdl
java.lang.NoClassDefFoundError: org/jboss/wsf/spi/tools/cmd/WSConsume
Exception in thread "main"
C:\XCAFE\CommonModules\WebServicesTest\build.xml:176: Could not invoke WSConsumeTask
BUILD FAILED (total time: 0 seconds)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4089723#4089723
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4089723
17 years, 2 months
[JBossWS] - Provider com.sun.xml.ws.spi.ProviderImpl not found
by Fantagir
Hi!
I have a simple client of a web service implemented in java using eclipse with a plugging for JBossWS. In this client I use the library javax.xml.ws.*
But when I run it the next problem appears:
javax.xml.ws.WebServiceException: Provider com.sun.xml.ws.spi.ProviderImpl not found
I put the libraries jaxws-api.jar and jaxb-api.jar in the build path of the project.
Can you tell me what can I do?
My client code is the next one:
import java.net.URL;
import javax.xml.namespace.QName;
/*import javax.xml.rpc.Service;
import javax.xml.rpc.ServiceFactory;*/
import javax.xml.ws.Service;
import util.DatePalabra;
import com.lasalle.util.resources.CollectionProperties;
public class MainDevPalabra {
public static void main( String[] args ) throws Exception {
if( args.length < 1 )
{
System.out.println( "Usage: Palabra name" );
System.exit( 0 );
}
String argument = args[ 0 ];
DatePalabra dp = new DatePalabra();
//CollectionProperties propietats = new CollectionProperties();
String urlstr = CollectionProperties.getPropiedad("serviceD.url");
String nameServiceStr = CollectionProperties.getPropiedad("serviceD.name");
String namespaceServiceStr = CollectionProperties.getPropiedad("serviceD.namespace");
System.out.println( "Contacting webservice at " + urlstr );
URL url = new URL(urlstr);
//se indican el namespace en el que se encuentra el servicio y su nombre
//(esto se puede ver en el WSDL)
QName qname = new QName(namespaceServiceStr,
nameServiceStr);
Service service = Service.create(url, qname);
IContar age = ( IContar) service.getPort( IContar.class );
System.out.println( "age.age(" + argument + ")" );
dp = (DatePalabra) age.darCuenta(argument);
System.out.println( "output longitud:" + dp.getLongitud() );
System.out.println( "output palabra:" + dp.getPalabra() );
}
}
Thanks.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4089696#4089696
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4089696
17 years, 2 months