[JBossWS] - Re: JBossWS 3.0.1 Released
by gessedafe
Hello, JBossWS Team guys...
I downloaded the JBossWS 3.0.1 Native 2.0.4 GA this morning. I was using the previous release and facing some problems with the issue JBWS-1763 (problems with charset encoding).
This new version solved my problem, as announced... But, it also gave me a new problem... This new problem has nothing to do with JBWS-1763 issue. It blows up when I try to run the wsconsume tool via ant build (WSConsumeTask).
I'm sure about this problem was not present in previous release. Just using the previous jar files in my ant classpath makes my application work again.
Below goes a simple evidence:
---------------------------------------------------------------------------
Error shown in Eclipse console:
---------------------------------------------------------------------------
[wsconsume] Consuming wsdl: ../src/META-INF//TestCase.wsdl
[wsconsume] Command invoked: org.jboss.wsf.spi.tools.cmd.WSConsume -k -w src/META-INF//TestCase.wsdl -o C:\Desenvolvimento\Java\Workspaces\Europa\TestCase\classes -s C:\Desenvolvimento\Java\Workspaces\Europa\TestCase\gen -v ../src/META-INF//TestCase.wsdl
[wsconsume] Exception in thread "main" java.lang.AbstractMethodError: org.jboss.wsf.spi.tools.WSContractConsumer.setExtension(Z)V
[wsconsume] at org.jboss.wsf.spi.tools.cmd.WSConsume.importServices(WSConsume.java:199)
[wsconsume] at org.jboss.wsf.spi.tools.cmd.WSConsume.main(WSConsume.java:81)
---------------------------------------------------------------------------
My WSDL sample file:
---------------------------------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:schema="http://www.sysmap.com.br/schemas/testcase"
xmlns:tns="http://www.sysmap.com.br/webservices/testcase"
targetNamespace="http://www.sysmap.com.br/webservices/testcase"
name="TestCaseServiceDefinition">
<wsdl:types>
<xs:schema
xmlns:xs="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://www.sysmap.com.br/schemas/testcase"
xmlns:tns="http://www.sysmap.com.br/schemas/testcase"
elementFormDefault="qualified">
<xs:element name="myOperationRequest" type="tns:MyOperationRequest" />
<xs:element name="myOperationResponse" type="tns:MyOperationResponse" />
<xs:complexType name="MyOperationRequest">
<xs:attribute name="param" type="xs:string" />
</xs:complexType>
<xs:complexType name="MyOperationResponse">
<xs:attribute name="result" type="xs:string" />
</xs:complexType>
</xs:schema>
</wsdl:types>
<wsdl:message name="myOperationRequestMessage">
<wsdl:part name="body" element="schema:myOperationRequest" />
</wsdl:message>
<wsdl:message name="myOperationResponseMessage">
<wsdl:part name="body" element="schema:myOperationResponse" />
</wsdl:message>
<wsdl:portType name="TestCasePortType">
<wsdl:operation name="myOperation">
<wsdl:input name="myOperationInput" message="tns:myOperationRequestMessage" />
<wsdl:output name="myOperationOutput" message="tns:myOperationResponseMessage" />
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="TestCaseBinding" type="tns:TestCasePortType">
<wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" />
<wsdl:operation name="myOperation">
<wsdlsoap:operation soapAction="http://www.sysmap.com.br/webservices/testcase/TestCaseService/myOperation" />
<wsdl:input name="myOperationInput">
<wsdlsoap:body use="literal" />
</wsdl:input>
<wsdl:output name="myOperationOutput">
<wsdlsoap:body use="literal" />
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="TestCaseService">
<wsdl:port name="TestCasePort" binding="tns:TestCaseBinding">
<wsdlsoap:address location="http://www.sysmap.com.br/webservices/testcase/TestCaseService" />
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
---------------------------------------------------------------------------
My build.xml snippet:
---------------------------------------------------------------------------
< path id="build.classpath">
< fileset dir="C:/Desenvolvimento/Java/Servers/jboss-4.2.2.GA/client/" includes="*.jar" />
</ path>
< taskdef name="wsconsume" classname="org.jboss.wsf.spi.tools.ant.WSConsumeTask">
< classpath refid="build.classpath" />
</ taskdef>
< wsconsume fork="true" verbose="true" keep="true"
destdir="classes/"
sourcedestdir="gen/"
wsdllocation="/META-INF/TestCase.wsdl"
wsdl="/META-INF/TestCase.wsdl">
</ wsconsume>
----
Thanks for your attention!
Hugs...
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4140712#4140712
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4140712
18 years
[Installation, Configuration & DEPLOYMENT] - Re: can't start server of Jboss 5.0.0 Beta2
by vigneshmpn
Hi
I am also facing the same problem. I am using eclipse wtp 3.3.2 and jdk 6u5.
I even tried changing the server name to "default", but it does not work.
Following is the message I am getting:
| run.bat: unused non-option argument: -
| run.bat: unused non-option argument: type
| run.bat: unused non-option argument: your
| run.bat: unused non-option argument: own
| run.bat: unused non-option argument: here
| 13:52:27,212 INFO [ServerImpl] Starting JBoss (Microcontainer)...
| 13:52:27,214 INFO [ServerImpl] Release ID: JBoss [Morpheus] 5.0.0.Beta4 (build: SVNTag=JBoss_5_0_0_Beta4 date=200802091115)
| 13:52:27,219 INFO [ServerImpl] Home Dir: C:\Program Files\jboss-5.0.0.Beta4
| 13:52:27,219 INFO [ServerImpl] Home URL: file:/C:/Program Files/jboss-5.0.0.Beta4/
| 13:52:27,219 INFO [ServerImpl] Library URL: file:/C:/Program Files/jboss-5.0.0.Beta4/lib/
| 13:52:27,220 INFO [ServerImpl] Patch URL: null
| 13:52:27,220 INFO [ServerImpl] Server Name: default,all,minimal,other
| 13:52:27,220 INFO [ServerImpl] Server Home Dir: C:\Program Files\jboss-5.0.0.Beta4\server\default,all,minimal,other
| 13:52:27,221 INFO [ServerImpl] Server Home URL: file:/C:/Program Files/jboss-5.0.0.Beta4/server/default,all,minimal,other/
| 13:52:27,221 INFO [ServerImpl] Server Data Dir: C:\Program Files\jboss-5.0.0.Beta4\server\default,all,minimal,other\data
| 13:52:27,221 INFO [ServerImpl] Server Temp Dir: C:\Program Files\jboss-5.0.0.Beta4\server\default,all,minimal,other\tmp
| 13:52:27,222 INFO [ServerImpl] Server Config URL: file:/C:/Program Files/jboss-5.0.0.Beta4/server/default,all,minimal,other/conf/
| 13:52:27,222 INFO [ServerImpl] Server Library URL: file:/C:/Program Files/jboss-5.0.0.Beta4/server/default,all,minimal,other/lib/
| 13:52:27,222 INFO [ServerImpl] Root Deployment Filename: jboss-service.xml
| 13:52:27,442 INFO [ServerImpl] Starting Microcontainer, bootstrapURL=file:/C:/Program Files/jboss-5.0.0.Beta4/server/default,all,minimal,other/conf/bootstrap-beans.xml
| Failed to boot JBoss:
| org.jboss.xb.binding.JBossXBException: Failed to parse source: file:/C:/Program Files/jboss-5.0.0.Beta4/server/default,all,minimal,other/conf/bootstrap-beans.xml
| at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:177)
| at org.jboss.xb.binding.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:139)
| at org.jboss.kernel.plugins.deployment.xml.BasicXMLDeployer.deploy(BasicXMLDeployer.java:147)
| at org.jboss.bootstrap.microcontainer.ServerImpl.doStart(ServerImpl.java:101)
| at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:398)
| at org.jboss.Main.boot(Main.java:208)
| at org.jboss.Main$1.run(Main.java:534)
| at java.lang.Thread.run(Unknown Source)
| Caused by: java.io.FileNotFoundException: C:\Program Files\jboss-5.0.0.Beta4\server\default,all,minimal,other\conf\bootstrap-beans.xml
| at org.jboss.net.protocol.file.FileURLConnection.connect(FileURLConnection.java:94)
| at org.jboss.net.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:103)
| at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
| at org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(Unknown Source)
| at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
| at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
| at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
| at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
| at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
| at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:173)
| ... 7 more
| 13:52:27,601 INFO [ServerImpl] Runtime shutdown hook called, forceHalt: true
| 13:52:27,605 INFO [ServerImpl] Shutdown complete
| Shutdown complete
| Halting VM
|
Please help.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4140710#4140710
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4140710
18 years
[JBossWS] - update: works in glassfish ! Re: help help! - cant get basic
by wiggy
guys, seen no answer to this or any other of the threads.
so I had a go downloading glassfish - had to fiddle with a couple of the support libraries, imported the same code into a new workspace (glassfish cant handle a workspace path with any spaces in the fully qualified path if any one else wants to try this)
import the same code - and publish to glassfish.
first off the eclipse ws explorer correctly locates and drives the publsihed wsdl (more than i got from the jbossws) and then i generated the client artifacts (use wsimport in the bin directory) and imported into a test client and invoked the webservice.
That worked also.
I have an error in the glassfish log which i dont understand and will post back to glassfish forums - but its about webstart which i dont use.
Clearly something screwy here with jboss AS - has anyone got any ideas why i get these errors -
I'd prefer to stay with jboss as i want to use SEAM and its default deploy is jboss (having other problems getting seam to work in glassfish) but the lack of sensible answer to the WS issues raised in these links makes that untenable at present.
Also the glassfish is configured to work with java1.6 - cant see any roadmap when this would complete for jbossAS. Is there story for that ?
Kind regards in advance for any help anyone can offer.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4140660#4140660
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4140660
18 years