[JBossWS] - Re: WS and Transactions
by jason.greene@jboss.com
"timdyck" wrote : Using Web Service and Transactions annotations at the same time in my class is causing the following problem:
|
|
| | Caused by: java.lang.LinkageError: duplicate class definition: com/discorp/licensing/server/__JBossWS_LicenseServerService_LicenseServerPort_GetClientId
| | at java.lang.ClassLoader.defineClass1(Native Method)
| | at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
| | at java.lang.ClassLoader.defineClass(ClassLoader.java:465)
| | 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 javassist.ClassPool.toClass(ClassPool.java:823)
| | ... 82 more
| |
|
| So if I remove the transaction annotations from my class, then everything works as expected. I am using JBoss AS 4.0.4GA, with AOP 1.5.1GA, WS 1.0.3GA, and JDK 1.5.0_05.
|
| Any ideas?
So this means that for whatever reason the actual parameter was generated twice in the same classloader. What classloader config are you using.
Is it possible for you to recreate the problem in a small test case? If so could you create a jira issue (jira.jboss.com) and we'll take a look at it.
Thanks!
-Jason
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3981157#3981157
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3981157
18 years, 2 months
[JBossWS] - Re: wstools error in wsdl that imports schemas
by sgtmcg
I am getting the same error trying to import a WSDL as follows
| <?xml version="1.0" encoding="UTF-8"?>
| <wsdl:definitions name="escorte4js" targetNamespace="http://www.techniques.org/escorte4js"
| xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:es4js="http://www.techniques.org/escorte4js"
| xmlns:cocd="http://ltsc.ieee.org/xsd/1484_11_3" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
| xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
| xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
| <wsdl:types>
| <xsd:schema targetNamespace="http://ltsc.ieee.org/xsd/1484_11_3" elementFormDefault="qualified">
| <xsd:include schemaLocation="./draft_ieee_1484_11_3.xsd"/>
| </xsd:schema>
| <xsd:schema targetNamespace="http://www.techniques.org/escorte4js"
| xmlns:es4js="http://www.techniques.org/escorte4js"
| xmlns:cocd="http://ltsc.ieee.org/xsd/1484_11_3" elementFormDefault="qualified">
| <xsd:import namespace="http://ltsc.ieee.org/xsd/1484_11_3"/>
| <xsd:element name="escorte4js" type="es4js:escorte4jsType"/>
| <xsd:element name="Initialize">
| <xsd:annotation>
| <xsd:documentation>Document literal wrapper for the Initialize action.</xsd:documentation>
| </xsd:annotation>
| <xsd:complexType>
| <xsd:sequence>
| <xsd:element minOccurs="0" maxOccurs="1" name="escorte4js" type="es4js:escorte4jsType"/>
| </xsd:sequence>
| </xsd:complexType>
| </xsd:element>
| <xsd:element name="Quit">
| <xsd:annotation>
| <xsd:documentation>Document literal wrapper for the Quit action.</xsd:documentation>
| </xsd:annotation>
| <xsd:complexType>
| <xsd:sequence>
| <xsd:element minOccurs="0" maxOccurs="1" name="escorte4js" type="es4js:escorte4jsType"/>
| </xsd:sequence>
| </xsd:complexType>
| </xsd:element>
| <xsd:element name="Terminate">
| <xsd:annotation>
| <xsd:documentation>Document literal wrapper for the Terminate action.</xsd:documentation>
| </xsd:annotation>
| <xsd:complexType>
| <xsd:sequence>
| <xsd:element minOccurs="1" maxOccurs="1" name="escorte4js" type="es4js:escorte4jsType"/>
| </xsd:sequence>
| </xsd:complexType>
| </xsd:element>
| <xsd:element name="Commit">
| <xsd:annotation>
| <xsd:documentation>Document literal wrapper for the Commit action.</xsd:documentation>
| </xsd:annotation>
| <xsd:complexType>
| <xsd:sequence>
| <xsd:element minOccurs="1" maxOccurs="1" name="escorte4js" type="es4js:escorte4jsType"/>
| </xsd:sequence>
| </xsd:complexType>
| </xsd:element>
| <xsd:complexType name="escorte4jsType">
| <xsd:annotation>
| <xsd:documentation>Encapsulates information needed to uniquely identify a SCO data
| instance in the server runtime environment.</xsd:documentation>
| </xsd:annotation>
| <xsd:sequence>
| <xsd:element minOccurs="0" maxOccurs="1" ref="cocd:cocd"/>
| <!-- <xsd:element minOccurs="0" maxOccurs="1" name="cocd" type="cocd:cocdType"/> -->
| </xsd:sequence>
| <xsd:attribute name="action" use="required">
| <xsd:annotation>
| <xsd:documentation>Identifies the desired action the server should perform for this
| request.</xsd:documentation>
| </xsd:annotation>
| <xsd:simpleType>
| <xsd:restriction base="xsd:token">
| <xsd:enumeration value="Initialize"/>
| <xsd:enumeration value="Terminate"/>
| <xsd:enumeration value="Commit"/>
| <xsd:enumeration value="Quit"/>
| </xsd:restriction>
| </xsd:simpleType>
| </xsd:attribute>
| <xsd:attribute name="sco" use="optional" type="xsd:string">
| <xsd:annotation>
| <xsd:documentation>Identifies the item for this SCO defined in the
| imsmanifest.xml.</xsd:documentation>
| </xsd:annotation>
| </xsd:attribute>
| <xsd:attribute name="org" use="optional" type="xsd:string">
| <xsd:annotation>
| <xsd:documentation>Identifies the appropriate CAM organization.</xsd:documentation>
| </xsd:annotation>
| </xsd:attribute>
| <xsd:attribute name="course" use="optional" type="xsd:string">
| <xsd:annotation>
| <xsd:documentation>Identifies the course, such as content package
| identifier.</xsd:documentation>
| </xsd:annotation>
| </xsd:attribute>
| <xsd:attribute name="learner" use="optional" type="xsd:string">
| <xsd:annotation>
| <xsd:documentation>Identifies the learner.</xsd:documentation>
| </xsd:annotation>
| </xsd:attribute>
| <xsd:attribute name="adlNavRequest" use="optional" type="xsd:string">
| <xsd:annotation>
| <xsd:documentation>Specifies the adl.nav.request element for this
| SCO.</xsd:documentation>
| </xsd:annotation>
| </xsd:attribute>
| </xsd:complexType>
| </xsd:schema>
| </wsdl:types>
| <wsdl:message name="InitializeRequest">
| <wsdl:part name="body" element="es4js:Initialize"/>
| </wsdl:message>
| <wsdl:message name="InitializeResponse">
| <wsdl:part name="body" element="es4js:escorte4js"/>
| </wsdl:message>
| <wsdl:message name="QuitRequest">
| <wsdl:part name="body" element="es4js:Quit"/>
| </wsdl:message>
| <wsdl:message name="TerminateRequest">
| <wsdl:part name="body" element="es4js:Terminate"/>
| </wsdl:message>
| <wsdl:message name="CommitRequest">
| <wsdl:part name="body" element="es4js:Commit"/>
| </wsdl:message>
| <!-- Errors on server sent back as SOAP faults -->
| <wsdl:message name="NoResponse"/>
| <wsdl:portType name="eSCORTE4JSPortType">
| <wsdl:operation name="Initialize">
| <wsdl:documentation>Initializes the SCO-to-LMS communication session.</wsdl:documentation>
| <wsdl:input message="es4js:InitializeRequest"/>
| <wsdl:output message="es4js:InitializeResponse"/>
| </wsdl:operation>
| <wsdl:operation name="Terminate">
| <wsdl:documentation>Terminates the SCO-to-LMS communication session.</wsdl:documentation>
| <wsdl:input message="es4js:TerminateRequest"/>
| <wsdl:output message="es4js:NoResponse"/>
| </wsdl:operation>
| <wsdl:operation name="Commit">
| <wsdl:documentation>Commits any uncommitted tracking data.</wsdl:documentation>
| <wsdl:input message="es4js:CommitRequest"/>
| <wsdl:output message="es4js:NoResponse"/>
| </wsdl:operation>
| <wsdl:operation name="Quit">
| <wsdl:documentation>Notifies the server that the learner wishes to quit the learning session.</wsdl:documentation>
| <wsdl:input message="es4js:QuitRequest"/>
| <wsdl:output message="es4js:NoResponse"/>
| </wsdl:operation>
| </wsdl:portType>
| <wsdl:binding name="eSCORTE4JSSOAPBinding" type="es4js:eSCORTE4JSPortType">
| <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
| <wsdl:operation name="Initialize">
| <soap:operation soapAction="http://www.techniques.org/escorte4js/Initialize"/>
| <wsdl:input>
| <soap:body use="literal"/>
| </wsdl:input>
| <wsdl:output>
| <soap:body use="literal"/>
| </wsdl:output>
| </wsdl:operation>
| <wsdl:operation name="Terminate">
| <soap:operation soapAction="http://www.techniques.org/escorte4js/Terminate"/>
| <wsdl:input>
| <soap:body use="literal"/>
| </wsdl:input>
| <wsdl:output>
| <soap:body use="literal"/>
| </wsdl:output>
| </wsdl:operation>
| <wsdl:operation name="Commit">
| <soap:operation soapAction="http://www.techniques.org/escorte4js/Commit"/>
| <wsdl:input>
| <soap:body use="literal"/>
| </wsdl:input>
| <wsdl:output>
| <soap:body use="literal"/>
| </wsdl:output>
| </wsdl:operation>
| <wsdl:operation name="Quit">
| <soap:operation soapAction="http://www.techniques.org/escorte4js/Quit"/>
| <wsdl:input>
| <soap:body use="literal"/>
| </wsdl:input>
| <wsdl:output>
| <soap:body use="literal"/>
| </wsdl:output>
| </wsdl:operation>
| </wsdl:binding>
| <wsdl:service name="eSCORTE4JS">
| <wsdl:documentation>Defines a service to support the eSCORTE for JavaScript API Adapter for
| SCORM 2004.</wsdl:documentation>
| <wsdl:port binding="es4js:eSCORTE4JSSOAPBinding" name="eSCORTE4JSPort">
| <soap:address location="http://localhost:8080/kworks/escorte4js_soap"/>
| </wsdl:port>
| </wsdl:service>
| </wsdl:definitions>
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3981128#3981128
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3981128
18 years, 2 months
[JBossWS] - Problems in running JBossWS 1.0.3GA samples
by rayymlai
I'm a newbie in JBossWS. Just installed JBoss 4.0.5 with JBossWS 1.0.3GA, and try to run the sample codes by "ant" but JBossWS compalins null pointer error from subproject jsr181pojo and wsaddressing due to arraycopy exception.
WSaddressing is a separate issue. It can't run JUnit test. I've added Junit jar file in the lib/endorsed but still can't get thru the tests.
Any pointer or clues how to fix the issues? I searched thru the forum and couldn't find any clues. I probably miss certain installation steps and variables. Pls help.
Thanks.
rgds, ray
SYSTEM SETUP
1. JBOSS_HOME=c:/tools/jboss (JBoss 4.0.5 GA)
2. JBossWS samples installed under C:\tools\jboss\jbossws-samples-1.0.3.GA
3. Verify latest jboss-xml-binding.jar as per JBossWS release notes/installation
4. JBossWS.sar and JBoss-client deployed as per JBossWS release notes/installation
5. ant.properties updated to reflect JBOSS_HOME location
6. PATH includes JBOSS_HOME
EXCEPTIONS
compile15:
copy-resources:
generate-sources:
[wstools] log4j:WARN No appenders could be found for logger (org.jboss.ws.too
s.WSTools).
[wstools] log4j:WARN Please initialize the log4j system properly.
[wstools] java.lang.NullPointerException
[wstools] at java.lang.System.arraycopy(Native Method)
[wstools] at org.apache.xerces.impl.xs.XSModelImpl.getAnnotations(Unknown
Source)
[wstools] at org.jboss.ws.metadata.wsdl.xmlschema.WSSchemaUtils.copyXSMod
l(WSSchemaUtils.java:737)
[wstools] at org.jboss.ws.tools.JavaToXSD.parseSchema(JavaToXSD.java:180)
[wstools] at org.jboss.ws.metadata.wsdl.WSDL11Reader.processTypes(WSDL11R
ader.java:227)
[wstools] at org.jboss.ws.metadata.wsdl.WSDL11Reader.processDefinition(WS
L11Reader.java:118)
[wstools] at org.jboss.ws.metadata.wsdl.WSDLDefinitionsFactory.parse(WSDL
efinitionsFactory.java:145)
[wstools] at org.jboss.ws.tools.WSDLToJava.convertWSDL2Java(WSDLToJava.ja
a:121)
[wstools] at org.jboss.ws.tools.helpers.ToolsHelper.handleWSDLToJavaGener
tion(ToolsHelper.java:324)
[wstools] at org.jboss.ws.tools.WSTools.process(WSTools.java:138)
[wstools] at org.jboss.ws.tools.WSTools.generate(WSTools.java:120)
[wstools] at org.jboss.ws.tools.ant.wstools.execute(wstools.java:103)
[wstools] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.j
va:275)
[wstools] at org.apache.tools.ant.Task.perform(Task.java:364)
[wstools] at org.apache.tools.ant.Target.execute(Target.java:341)
[wstools] at org.apache.tools.ant.Target.performTasks(Target.java:369)
[wstools] at org.apache.tools.ant.Project.executeSortedTargets(Project.ja
a:1216)
[wstools] at org.apache.tools.ant.helper.SingleCheckExecutor.executeTarge
s(SingleCheckExecutor.java:37)
[wstools] at org.apache.tools.ant.Project.executeTargets(Project.java:106
)
[wstools] at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:382)
[wstools] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.j
va:275)
[wstools] at org.apache.tools.ant.Task.perform(Task.java:364)
[wstools] at org.apache.tools.ant.Target.execute(Target.java:341)
[wstools] at org.apache.tools.ant.Target.performTasks(Target.java:369)
[wstools] at org.apache.tools.ant.Project.executeSortedTargets(Project.ja
a:1216)
[wstools] at org.apache.tools.ant.Project.executeTarget(Project.java:1185
[wstools] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(D
faultExecutor.java:40)
[wstools] at org.apache.tools.ant.Project.executeTargets(Project.java:106
)
[wstools] at org.apache.tools.ant.Main.runBuild(Main.java:668)
[wstools] at org.apache.tools.ant.Main.startAnt(Main.java:187)
[wstools] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
[wstools] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
BUILD FAILED
C:\tools\jboss\jbossws-samples-1.0.3.GA\build.xml:23: The following error occur
ed while executing this line:
C:\tools\jboss\jbossws-samples-1.0.3.GA\jsr181pojo\build.xml:28: Error running
bossws:
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3981109#3981109
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3981109
18 years, 2 months