From do-not-reply at jboss.com Tue Apr 1 01:14:54 2008 From: do-not-reply at jboss.com (zach.mabe@cox.com) Date: Tue, 1 Apr 2008 01:14:54 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Overriding InvocationHandlerFactory Message-ID: <26609387.1207026895042.JavaMail.jboss@colo-br-02.atl.jboss.com> Hoping I can entice some feedback with some more information. I have created my handlers/factory and have successfully deployed them by placing them in a jar along with the meta-inf/services file in the server's lib directory (server/default/lib). As long as my jar is alphabetically less than the jbossws-jboss42.jar, it works. However, that strikes me as an odd requirement (the naming issue) Placing it in jboss_home lib or lib.endorsed results a lot of NoClassDefFound Exceptions. So the server/default/lib seems to be the only the way to force the override. What I am trying to accomplish with this new handler/factory is the ability to (optionally) use spring managed beans for service impls. Everything is working fine, better than fine because Spring lets my JSE endpoints use resource and persistencecontext annotations without my own interceptors. I'm just having a hard time selling concept of putting a jar named 1_myhandlers.jar (or something like that) in the server lib dir. Is there a better way? Thanks Zach View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4140324#4140324 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4140324 From do-not-reply at jboss.com Tue Apr 1 03:45:59 2008 From: do-not-reply at jboss.com (r12345_2003) Date: Tue, 1 Apr 2008 03:45:59 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Error in generating WSDL Message-ID: <14556640.1207035959245.JavaMail.jboss@colo-br-02.atl.jboss.com> Thanks for the reply. The following is the code for the POJO: | | package test.services; | | import javax.jws.WebMethod; | import javax.jws.WebParam; | import javax.jws.WebService; | import javax.jws.soap.SOAPBinding; | | @WebService | public class HelloService | { | @WebMethod | public String sayHello() { | | return "Hello"; | } | } | The following is the web.xml change: | | | | | HelloService | test.services.HelloService | | | | HelloService | /* | | | When i deployed the war file, i noticed the following exception thrown at the Jboss server console: | java.lang.IllegalStateException: Cannot find endpoint meta data for: HelloService | Any idea what could be the issue? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4140345#4140345 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4140345 From do-not-reply at jboss.com Tue Apr 1 04:39:09 2008 From: do-not-reply at jboss.com (bensonfungjava) Date: Tue, 1 Apr 2008 04:39:09 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Steps for implementing WS-Security in JBoss using Userna Message-ID: <20245712.1207039149792.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, I tried it before, but it doesn't work. 1. jboss-wsse-client.xml and jboss-wsse-server.xml must not be an empty files. 2. The client works fine, i.e. UserNameToken can be created in SOAP header successfully. However, server side cannot capture the UserNameToken from the soap header and do authentication against 'JBOSSWS' JAAS profile in login-config.xml. All jboss expert, please help Benson View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4140360#4140360 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4140360 From do-not-reply at jboss.com Tue Apr 1 08:38:31 2008 From: do-not-reply at jboss.com (richard.opalka@jboss.com) Date: Tue, 1 Apr 2008 08:38:31 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - JBossWS 3.0.1 Released Message-ID: <8736559.1207053511692.JavaMail.jboss@colo-br-02.atl.jboss.com> I'm happy to announce the release of JBossWS 3.0.1 GA that includes Native 2.0.4 (fully certified JAX-WS web services implementation), Metro 1.0.1 and CXF 1.0.1 Native runs on jboss-5.0.0.Beta4, jboss-4.2.2 and jboss-4.2.1 Both Metro and CXF run on jboss-5.0.0.Beta4 and jboss-4.2.2 JAXWS brings to web services what EJB3 brings to EJB. With its greatly simplified programming model and functional enhancements it is designed to take the place of previous JAX-RPC web service implementations. The binaries, including the samples can be obtained here: http://labs.jboss.com/jbossws/downloads/ Installation instructions can be found here: http://jbws.dyndns.org/mediawiki/index.php/Main_Page To get started please have a look at the Quick Start and User Guide: http://jbws.dyndns.org/mediawiki/index.php/Quick_Start http://jbws.dyndns.org/mediawiki/index.php/JAX-WS_User_Guide If you don't know it already, you'll be surprised how easy it is to do Web Services. I'd like to thank the team and many contributors for all the hard work to make this release possible. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4140452#4140452 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4140452 From do-not-reply at jboss.com Tue Apr 1 08:39:40 2008 From: do-not-reply at jboss.com (richard.opalka@jboss.com) Date: Tue, 1 Apr 2008 08:39:40 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: JBossWS 3.0.1 Released Message-ID: <26109551.1207053580874.JavaMail.jboss@colo-br-02.atl.jboss.com> What's new in jbossws-3.0.1-native-2.0.4.GA ---------------------------------- Feature Request * [JBWS-925] - Provide initial support for FastInfoset * [JBWS-1124] - Scoped class loading domains for WS endpoints * [JBWS-1165] - Provide initial support JSON data binding * [JBWS-1172] - Support schema validation for incoming/outgoing messages * [JBWS-1211] - Add support for @WebFault * [JBWS-1296] - Add support for digest + nonces * [JBWS-1814] - Dynamic Encryption based on clients input * [JBWS-1820] - Using JRE from vendors other than Sun the Remoting key store and trust store algorithms are not propagated * [JBWS-1844] - Implement Provider.createW3CEndpointReference() * [JBWS-1850] - Documentation support for Java->WSDL * [JBWS-1861] - Improve exception message on invalid @WebService usage on SEI * [JBWS-1865] - Unify SOAP message trace * [JBWS-1886] - Provide basic configuration for WS-enabled user projects * [JBWS-1890] - Provide basic project configuration for JBossWS tests * [JBWS-1893] - Provide meaningful advanced samples * [JBWS-1968] - Documentation support for WSDL->Java * [JBWS-1988] - Complete Username Token Profile 1.0 * [JBWS-1990] - Support for SOAP 1.2 in wsconsume * [JBWS-2022] - Provide interface for WSSecurityDispatcher Bug * [JBWS-1217] - WSDLtoJava Namespace to package mapping does not support multiple namespaces * [JBWS-1763] - Incorrect handling of charsets when the default charset is not UTF-8 * [JBWS-1857] - JAXBContext created for every wrapper type * [JBWS-1878] - ConcurrentModificationException in initHandlerChain() * [JBWS-1905] - jaxws-samples-logicalhandler-jaxb.war produces: java.lang.ClassCastException: org.jboss.ws.core.soap.TextImpl * [JBWS-1909] - RequestHandler.handlerWSDLResquest has dependency on Servlet API * [JBWS-1912] - DispatcherDelegate - Bypass RMIAdaptor when used locally * [JBWS-1938] - Assign message name instead of IN and OUT for Inbound/Outbound Addressing Property * [JBWS-1941] - Fault handler chain is not called when user application exceptions are thrown * [JBWS-1948] - Optional SOAP Header element is required by WSSecurityHandlerServer handler * [JBWS-1957] - WS-Eventing extension sends incorrect HTTP content-type * [JBWS-1964] - showSubscriptionTable MBean Method - NullPointerException * [JBWS-1965] - subscribe method on subscription manager - NullPointerException * [JBWS-1966] - No Handler execution for inbound response when using Dispatch * [JBWS-1969] - Cannot publish wsdl with imported schema files, using bottom up approach * [JBWS-1970] - wsrunclient doesn't work with args * [JBWS-1971] - Missing clone on MemoryBufferRecorder * [JBWS-1973] - MTOM/XOP attachments not inlined when using JAX-WS handlers * [JBWS-1974] - Using signature as security in a webservice throws an error when loglevel not Debug * [JBWS-1979] - Endpoint address prop doesn't work with Dispatch * [JBWS-1985] - EntityResolver not used when reading web.xml during web serivce deployment * [JBWS-2000] - MTOM: Chunked encoding transfer problem * [JBWS-2009] - WSDLFilePublisher throws FileNotFoundException when schema files are not in wsdl directory * [JBWS-2011] - Signature is invalid error when the message contains \r * [JBWS-2018] - JavatoWSDL Package to Namespace mapping does not support multiple packages * [JBWS-2019] - WSDL To Java - Case of service-interface and service-endpoint-interface in JAX-RPC mapping does not match generated interface when WSDL type begins with lower case * [JBWS-2058] - 'wsa:From' header field is assigned to variable 'replyTo' instead of 'from' Task * [JBWS-515] - Provide an initial implementation for WS-ReliableMessaging * [JBWS-1724] - wsconsume cannot use part names that are friendly to .NET * [JBWS-1776] - Verify isolated classloading with WSProvide * [JBWS-1978] - Evaluate (and remove) JBPM dependency from component info * [JBWS-1982] - Simplify deploy/undeploy cycles for different stacks Enjoy, The JBossWS Team View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4140455#4140455 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4140455 From do-not-reply at jboss.com Tue Apr 1 08:56:49 2008 From: do-not-reply at jboss.com (sajhak) Date: Tue, 1 Apr 2008 08:56:49 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: javaEE5 JAX-WS web services - JBOSS 4.2.2 Message-ID: <26325755.1207054609420.JavaMail.jboss@colo-br-02.atl.jboss.com> yes , im using JDK 6 . does JBOSS not support that ? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4140473#4140473 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4140473 From do-not-reply at jboss.com Tue Apr 1 09:44:32 2008 From: do-not-reply at jboss.com (cavani) Date: Tue, 1 Apr 2008 09:44:32 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: JBossWS 3.0.1 Released Message-ID: <15722956.1207057472361.JavaMail.jboss@colo-br-02.atl.jboss.com> Good work JBossWS Team! Thanks, View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4140509#4140509 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4140509 From do-not-reply at jboss.com Tue Apr 1 11:11:33 2008 From: do-not-reply at jboss.com (cavani) Date: Tue, 1 Apr 2008 11:11:33 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Charset encoding problem from Linux to Windows with Dispatch Message-ID: <10151647.1207062693853.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, I am using JBossWS Native for client code implementation in a set of Eclipse plugins. At first, I used WSDL2Java approach to generate client code - this works fine with WS-Security and all. But now, I need take advantage of BIRT's WS/XML ODA driver (that uses something like XPath to map XML as tables). So, I converted all generated code to Dispatch approach with StreamSource. My first problem was with WS-Security with Dispatch not decrypting response. This was fixed with 2.0.4, and works perfectly when server and client are on Linux machines. But when I ran the client on a Windows XP, no accent character is read, but the message are decrypted. The server is an unmodified AS 4.2.2 (running on linux). Java 5 (13 for linux, 15 for windows bundled together). I start digging into JBossWS code but could not find an fix yet. My code (it work fine on linux-linux): | QName serviceName = new QName("http://tlon.com.br", local); | QName portName = new QName("http://tlon.com.br", local + "Port"); | | Service service = Service.create(wsdlLocation, serviceName); | | Dispatch dispatch = service.createDispatch(portName, StreamSource.class, Mode.MESSAGE); | | Map reqContext = dispatch.getRequestContext(); | reqContext.put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, endpointAddress); | reqContext.put(BindingProvider.USERNAME_PROPERTY, username); | reqContext.put(BindingProvider.PASSWORD_PROPERTY, ""); | | ConfigProvider config = (ConfigProvider) dispatch; | config.setSecurityConfig(DispatchFactory.class.getClassLoader().getResource("META-INF/jboss-wsse-client.xml").toExternalForm()); | config.setConfigName("Standard WSSecurity Client"); | | Reader requestReader = new StringReader(requestMessage); | StreamSource request = new StreamSource(requestReader); | StreamSource response = dispatch.invoke(request); | requestReader.close(); | Reader responseReader = response.getReader(); | StringWriter responseWriter = new StringWriter(); | char[] buffer = new char[1024]; | int read = -1; | while ((read = responseReader.read(buffer)) != -1) | responseWriter.write(buffer, 0, read); | responseReader.close(); | return responseWriter.toString(); | If someone has a good clue, please let me know... if I find a fix I will report here. Thanks, View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4140575#4140575 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4140575 From do-not-reply at jboss.com Tue Apr 1 11:11:58 2008 From: do-not-reply at jboss.com (PeterJ) Date: Tue, 1 Apr 2008 11:11:58 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: WS-Security Usernametoken in a war file. Message-ID: <24799444.1207062718279.JavaMail.jboss@colo-br-02.atl.jboss.com> They should be the same, with the slight difference that in a web app the configuration files and keystores should appear in WEB-INF rather than in META-INF. Please post the locations of the relevant files inside both the EJB package and the web app package. Also post the contents of the relevant configuration files for the web app. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4140576#4140576 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4140576 From do-not-reply at jboss.com Tue Apr 1 11:26:02 2008 From: do-not-reply at jboss.com (PeterJ) Date: Tue, 1 Apr 2008 11:26:02 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Error in generating WSDL Message-ID: <18648756.1207063562897.JavaMail.jboss@colo-br-02.atl.jboss.com> Try changing the url-pattern in to web.xml file: /hello View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4140580#4140580 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4140580 From do-not-reply at jboss.com Tue Apr 1 12:00:05 2008 From: do-not-reply at jboss.com (PeterJ) Date: Tue, 1 Apr 2008 12:00:05 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: javaEE5 JAX-WS web services - JBOSS 4.2.2 Message-ID: <28181883.1207065605135.JavaMail.jboss@colo-br-02.atl.jboss.com> JBossAS 4.2.x is qualified only with JDK 5. See my responses at http://www.jboss.com/index.html?module=bb&op=viewtopic&t=102355&postdays=0&postorder=asc&start=10 JBossAS 5.0 will support JDK 6 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4140608#4140608 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4140608 From do-not-reply at jboss.com Tue Apr 1 12:03:11 2008 From: do-not-reply at jboss.com (PeterJ) Date: Tue, 1 Apr 2008 12:03:11 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: JBossWS 3.0.1 Released Message-ID: <111607.1207065791472.JavaMail.jboss@colo-br-02.atl.jboss.com> Will JBossAS 5.0.0.GA use JBossWS 3.0.x or will it continue using 2.0.x? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4140610#4140610 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4140610 From do-not-reply at jboss.com Tue Apr 1 12:21:41 2008 From: do-not-reply at jboss.com (r12345_2003) Date: Tue, 1 Apr 2008 12:21:41 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Error in generating WSDL Message-ID: <10077496.1207066901273.JavaMail.jboss@colo-br-02.atl.jboss.com> Thanks for the response again. Well I had tried that.. in fact had tried several combinations of the URL Pattern but its all the same ! I wouldnt have thought that creating a simple web serivce would be so frustrating :-( Personally, I dont think there is anything wrong with the code, the code i have written is very basic and as shown on the JBoss site. I am just wondering if its anything to do with the JBoss server configuration itself. Do any JBoss specific files need to be modified? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4140618#4140618 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4140618 From do-not-reply at jboss.com Tue Apr 1 12:27:51 2008 From: do-not-reply at jboss.com (alessio.soldano@jboss.com) Date: Tue, 1 Apr 2008 12:27:51 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: WS-Security Usernametoken in a war file. Message-ID: <3480598.1207067271481.JavaMail.jboss@colo-br-02.atl.jboss.com> Please consider this: http://jira.jboss.org/jira/browse/JBWS-1999 In few words, the jaas authentication is supposed to work with EJB3 endpoints only until that issue is fixed (and it's scheduled for the next release, 2.0.5 native). View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4140621#4140621 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4140621 From do-not-reply at jboss.com Tue Apr 1 12:30:29 2008 From: do-not-reply at jboss.com (PeterJ) Date: Tue, 1 Apr 2008 12:30:29 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Error in generating WSDL Message-ID: <14349849.1207067429495.JavaMail.jboss@colo-br-02.atl.jboss.com> As far as I can tell, your code looks just like mine, and it works for me. What JDK are you using? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4140623#4140623 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4140623 From do-not-reply at jboss.com Tue Apr 1 12:33:06 2008 From: do-not-reply at jboss.com (PeterJ) Date: Tue, 1 Apr 2008 12:33:06 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: WS-Security Usernametoken in a war file. Message-ID: <7993878.1207067586954.JavaMail.jboss@colo-br-02.atl.jboss.com> Oops. my goof. I saw WS-Security authentication and automatically thought message signing, which I have done with both EJBs and POJOs. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4140626#4140626 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4140626 From do-not-reply at jboss.com Tue Apr 1 12:39:05 2008 From: do-not-reply at jboss.com (pramod_bs) Date: Tue, 1 Apr 2008 12:39:05 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Steps for implementing WS-Security in JBoss using Userna Message-ID: <26990739.1207067945875.JavaMail.jboss@colo-br-02.atl.jboss.com> This will be fixed in 2.0.5 http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4140626#4140626 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4140628#4140628 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4140628 From do-not-reply at jboss.com Tue Apr 1 13:51:22 2008 From: do-not-reply at jboss.com (wiggy) Date: Tue, 1 Apr 2008 13:51:22 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - update: works in glassfish ! Re: help help! - cant get basic Message-ID: <7833085.1207072282525.JavaMail.jboss@colo-br-02.atl.jboss.com> 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 From do-not-reply at jboss.com Tue Apr 1 14:54:25 2008 From: do-not-reply at jboss.com (sajhak) Date: Tue, 1 Apr 2008 14:54:25 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: javaEE5 JAX-WS web services - JBOSS 4.2.2 Message-ID: <3313201.1207076065138.JavaMail.jboss@colo-br-02.atl.jboss.com> ok . thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4140685#4140685 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4140685 From do-not-reply at jboss.com Tue Apr 1 16:05:24 2008 From: do-not-reply at jboss.com (gessedafe) Date: Tue, 1 Apr 2008 16:05:24 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: JBossWS 3.0.1 Released Message-ID: <27340795.1207080324593.JavaMail.jboss@colo-br-02.atl.jboss.com> 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: --------------------------------------------------------------------------- --------------------------------------------------------------------------- My build.xml snippet: --------------------------------------------------------------------------- < path id="build.classpath"> < fileset dir="C:/Desenvolvimento/Java/Servers/jboss-4.2.2.GA/client/" includes="*.jar" /> < taskdef name="wsconsume" classname="org.jboss.wsf.spi.tools.ant.WSConsumeTask"> < classpath refid="build.classpath" /> < wsconsume fork="true" verbose="true" keep="true" destdir="classes/" sourcedestdir="gen/" wsdllocation="/META-INF/TestCase.wsdl" wsdl="/META-INF/TestCase.wsdl"> ---- 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 From do-not-reply at jboss.com Tue Apr 1 17:09:40 2008 From: do-not-reply at jboss.com (rcarmichael) Date: Tue, 1 Apr 2008 17:09:40 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Cyclic web services Message-ID: <13979355.1207084180802.JavaMail.jboss@colo-br-02.atl.jboss.com> Let's say I have a web service called getVehicle(int vehicleId) and I'm expecting it to return me a Vehicle object. If Vehicle has a java.util.Set of Wheel objects, and the Wheel object has a reference to its owner (Vehicle), then obviously there is an issue here when trying to persist to XML because of this bidirectional relationship. My goal is to have JBoss host this web service, and then use wsimport to create the stub files for the client to use. This part works fine, except the server throws an error when it goes to marshal the object: Caused by: com.sun.istack.SAXException2: A cycle is detected in the object graph. This will cause infinitely deep XML: org.test.Vehicle at 13c6308 -> org.test.Wheel at 15880be -> org.test.Vehicle at 13c6308 I have read (and hopefully understand) https://jaxb.dev.java.net/guide/Mapping_cyclic_references_to_XML.html but I don't think it applies in this case because wsimport will be creating the stubs for me. Is there any way to get this going? I'm guessing I will have to fall back to my last resort, which is making Wheel only have a reference to the Vehicle's ID instead of the Vehicle object. Thanks, Ryan View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4140721#4140721 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4140721 From do-not-reply at jboss.com Tue Apr 1 17:29:49 2008 From: do-not-reply at jboss.com (esacchi) Date: Tue, 1 Apr 2008 17:29:49 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - WS-Security and Dispatch Message-ID: <29478770.1207085389171.JavaMail.jboss@colo-br-02.atl.jboss.com> Dear Sirs: We was working with JAXWS "Dispatch" to dynamically invoke a WS endpoint with WS-Security, and we had some problems that we couldn't solve yet. We will appreciate your help. When the program invokes the endpoint using the static class build with wsconsume it work properly including the security stuff but when we use (in the same installation and with the same ws) through Dispatch dynamically the signature is not validated. The current JBOSS config is Jboss 4.2.2. with jbossws-native-2.0.3.GA Bellow you can see the WS and client source code and the trace errors for the server and client. Thanks in advance and best regards The Web Service Code | package pkg; | | import java.security.Principal; | | import javax.annotation.Resource; | import javax.jws.HandlerChain; | import javax.jws.WebMethod; | import javax.jws.WebService; | import javax.jws.soap.SOAPBinding; | import javax.jws.soap.SOAPBinding.Style; | import javax.xml.ws.WebServiceContext; | import javax.xml.ws.handler.MessageContext; | | import org.jboss.ws.annotation.EndpointConfig; | | @WebService(name = "TestEndpoint", serviceName = "TestEndpointService", | targetNamespace = "http://org.jboss.ws/jaxws/context") | @SOAPBinding(style = Style.DOCUMENT) | @EndpointConfig(configName = "Standard WSSecurity Endpoint") | public class EndpointJSE { | | @Resource | WebServiceContext wsCtx; | | @WebMethod | public String hello(Person p) { | return "Hello " + p.getFirstName() + " " + p.getLastName(); | } | } | | public class Person implements Serializable { | | private String firstName; | private String lastName; | | public String getFirstName() { | return firstName; | } | | public void setFirstName(String firstName) { | this.firstName = firstName; | } | | public String getLastName() { | return lastName; | } | | public void setLastName(String lastName) { | this.lastName = lastName; | } | } | The Client Code | public class Test { | | public static void testWSWeb() { | setSystemProperties(); | try { | pruebaInicial(); | } catch (Exception ex) { | ex.printStackTrace(); | } | try { | llamadoDinamico(); | } catch (Exception ex) { | ex.printStackTrace(); | } | } | | private static void pruebaInicial() { | TestEndpointService service = new TestEndpointService(); | TestEndpoint port = service.getTestEndpointPort(); | BindingProvider provider = (BindingProvider) port; | | provider.getRequestContext() | .put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, | "http://127.0.0.1:8888/M3_Ejemplo03_WSWeb"); | | /* | * Agrego handler standard para WS-Security en JBoss Alternativa | * que le camina por arriba a los otros handlers | */ | ((StubExt) port).setConfigName("Standard WSSecurity Client"); | | Person p = new Person(); | p.setFirstName("Emiliano"); | p.setLastName("Sacchi"); | System.out.println(port.hello(p)); | } | | | private static void llamadoDinamico() throws IOException, | DatatypeConfigurationException { | URL url = new URL("http://127.0.0.1:8888/M3_Ejemplo03_WSWeb?wsdl"); | URL securityURL = new File( | | "/home/esacchi/desarrollo/workspace/M3_Ejemplo03_WSWebClient/src/META-INF/jboss-wsse-client.xml") | .toURL(); | | QName serviceName = new QName("http://org.jboss.ws/jaxws/context", | "TestEndpointService"); | Service service = Service.create(url, serviceName); | Iterator i = service.getPorts(); | | QName name = null; | while (i.hasNext()) { | name = (QName) i.next(); | System.out.println(name); | } | | // service.getPort(); | | Dispatch sourceDispatch = null; | sourceDispatch = service.createDispatch(name, Source.class, | Service.Mode.PAYLOAD); | | | ((ConfigProvider) sourceDispatch).setSecurityConfig(securityURL | .toExternalForm()); | ((ConfigProvider) sourceDispatch) | .setConfigName("Standard WSSecurity Client"); | | String request = "EmilianoSacchi"; | System.out.println("\nInvoking xml request: " + request); | Source result = sourceDispatch.invoke(new StreamSource( | new StringReader(request))); | | System.out.println("Received xml response: " + result); | | Element docElement = DOMUtils.sourceToElement(result); | Element retElement = DOMUtils.getFirstChildElement(docElement); | String retPayload = DOMWriter.printNode(retElement, false); | System.out.println("Received response: " + retPayload); | } | } | Client Output pruebaInicial() | 01-abr-2008 16:47:43 org.apache.xml.security.signature.Reference verify | INFO: Verification successful for URI "#element-1-1207079263166-18667724" | 01-abr-2008 16:47:43 org.apache.xml.security.signature.Reference verify | INFO: Verification successful for URI "#timestamp" | Hello Emiliano Sacchi | llamadoDinamico() {http://org.jboss.ws/jaxws/context}TestEndpointPort | | Invoking xml request: EmilianoSacchi | javax.xml.ws.soap.SOAPFaultException: | org.jboss.ws.core.CommonSOAPFaultException: Signature is invalid. | at | org.jboss.ws.core.jaxws.client.DispatchSOAPBinding.getReturnObject(DispatchSOAPBinding.java:165) | at | org.jboss.ws.core.jaxws.client.DispatchImpl.getReturnObject(DispatchImpl.java:447) | at | org.jboss.ws.core.jaxws.client.DispatchImpl.invokeInternalSOAP(DispatchImpl.java:249) | at | org.jboss.ws.core.jaxws.client.DispatchImpl.invokeInternal(DispatchImpl.java:168) | at | org.jboss.ws.core.jaxws.client.DispatchImpl.invoke(DispatchImpl.java:132) | at test.Test.llamadoDinamico(Test.java:135) | at test.Test.testWSWeb(Test.java:55) | at test.Test.main(Test.java:39) Server Output pruebaInicial() 16:47:42,826 INFO [Reference] Verification successful for URI | "#element-1-1207079261680-33340097" | 16:47:42,827 INFO [Reference] Verification successful for URI "#timestamp" llamadoDinamico() 16:47:47,267 WARN [Reference] Verification failed for URI | "#element-4-1207079267194-23838383" | 16:47:47,268 INFO [Reference] Verification successful for URI "#timestamp" | 16:47:47,269 ERROR [WSSecurityDispatcher] Internal error occured | handling inbound message: | org.jboss.ws.extensions.security.exception.FailedCheckException: | Signature is invalid. | at | org.jboss.ws.extensions.security.SignatureVerificationOperation.process(SignatureVerificationOperation.java:61) | at | org.jboss.ws.extensions.security.SecurityDecoder.decode(SecurityDecoder.java:124) | at | org.jboss.ws.extensions.security.SecurityDecoder.decode(SecurityDecoder.java:186) | at | org.jboss.ws.extensions.security.WSSecurityDispatcher.handleInbound(WSSecurityDispatcher.java:149) | at | org.jboss.ws.extensions.security.jaxws.WSSecurityHandler.handleInboundSecurity(WSSecurityHandler.java:78) | at | org.jboss.ws.extensions.security.jaxws.WSSecurityHandlerServer.handleInbound(WSSecurityHandlerServer.java:41) | at | org.jboss.ws.core.jaxws.handler.GenericHandler.handleMessage(GenericHandler.java:55) | at | org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.handleMessage(HandlerChainExecutor.java:295) | at | org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.handleMessage(HandlerChainExecutor.java:140) | at | org.jboss.ws.core.jaxws.handler.HandlerDelegateJAXWS.callRequestHandlerChain(HandlerDelegateJAXWS.java:87) | at | org.jboss.ws.core.server.ServiceEndpointInvoker.callRequestHandlerChain(ServiceEndpointInvoker.java:128) | at | org.jboss.ws.core.server.ServiceEndpointInvoker.invoke(ServiceEndpointInvoker.java:172) | at | org.jboss.wsf.stack.jbws.RequestHandlerImpl.processRequest(RequestHandlerImpl.java:418) | at | org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleRequest(RequestHandlerImpl.java:274) | at | org.jboss.wsf.stack.jbws.RequestHandlerImpl.doPost(RequestHandlerImpl.java:191) | at | org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:124) | at | org.jboss.wsf.stack.jbws.EndpointServlet.service(EndpointServlet.java:84) | at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) | at | org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) | at | org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) | at | org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) | at | org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) | at | org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) | at | org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230) | at | org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) | at | org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179) | at | org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84) | at | org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) | at | org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) | at | org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157) | at | org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) | at | org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262) | at | org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) | at | org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) | at | org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446) | at java.lang.Thread.run(Thread.java:595) | 16:47:47,270 ERROR [HandlerChainExecutor] Exception during handler | processing | org.jboss.ws.core.CommonSOAPFaultException: Signature is invalid. | at | org.jboss.ws.extensions.security.WSSecurityDispatcher.convertToFault(WSSecurityDispatcher.java:107) | at | org.jboss.ws.extensions.security.WSSecurityDispatcher.handleInbound(WSSecurityDispatcher.java:179) | at | org.jboss.ws.extensions.security.jaxws.WSSecurityHandler.handleInboundSecurity(WSSecurityHandler.java:78) | at | org.jboss.ws.extensions.security.jaxws.WSSecurityHandlerServer.handleInbound(WSSecurityHandlerServer.java:41) | at | org.jboss.ws.core.jaxws.handler.GenericHandler.handleMessage(GenericHandler.java:55) | at | org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.handleMessage(HandlerChainExecutor.java:295) | at | org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.handleMessage(HandlerChainExecutor.java:140) | at | org.jboss.ws.core.jaxws.handler.HandlerDelegateJAXWS.callRequestHandlerChain(HandlerDelegateJAXWS.java:87) | at | org.jboss.ws.core.server.ServiceEndpointInvoker.callRequestHandlerChain(ServiceEndpointInvoker.java:128) | at | org.jboss.ws.core.server.ServiceEndpointInvoker.invoke(ServiceEndpointInvoker.java:172) | at | org.jboss.wsf.stack.jbws.RequestHandlerImpl.processRequest(RequestHandlerImpl.java:418) | at | org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleRequest(RequestHandlerImpl.java:274) | at | org.jboss.wsf.stack.jbws.RequestHandlerImpl.doPost(RequestHandlerImpl.java:191) | at | org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:124) | at | org.jboss.wsf.stack.jbws.EndpointServlet.service(EndpointServlet.java:84) | at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) | at | org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) | at | org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) | at | org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) | at | org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) | at | org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) | at | org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230) | at | org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) | at | org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179) | at | org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84) | at | org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) | at | org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) | at | org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157) | at | org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) | at | org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262) | at | org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) | at | org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) | at | org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446) | at java.lang.Thread.run(Thread.java:595) | 16:47:47,446 ERROR [SOAPFaultHelperJAXWS] SOAP request exception | javax.xml.ws.WebServiceException: | org.jboss.ws.core.CommonSOAPFaultException: Signature is invalid. | at | org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.processHandlerFailure(HandlerChainExecutor.java:276) | at | org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.handleMessage(HandlerChainExecutor.java:155) | at | org.jboss.ws.core.jaxws.handler.HandlerDelegateJAXWS.callRequestHandlerChain(HandlerDelegateJAXWS.java:87) | at | org.jboss.ws.core.server.ServiceEndpointInvoker.callRequestHandlerChain(ServiceEndpointInvoker.java:128) | at | org.jboss.ws.core.server.ServiceEndpointInvoker.invoke(ServiceEndpointInvoker.java:172) | at | org.jboss.wsf.stack.jbws.RequestHandlerImpl.processRequest(RequestHandlerImpl.java:418) | at | org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleRequest(RequestHandlerImpl.java:274) | at | org.jboss.wsf.stack.jbws.RequestHandlerImpl.doPost(RequestHandlerImpl.java:191) | at | org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:124) | at | org.jboss.wsf.stack.jbws.EndpointServlet.service(EndpointServlet.java:84) | at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) | at | org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) | at | org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) | at | org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) | at | org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) | at | org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) | at | org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230) | at | org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) | at | org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179) | at | org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84) | at | org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) | at | org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) | at | org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157) | at | org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) | at | org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262) | at | org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) | at | org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) | at | org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446) | at java.lang.Thread.run(Thread.java:595) | Caused by: org.jboss.ws.core.CommonSOAPFaultException: Signature is invalid. | at | org.jboss.ws.extensions.security.WSSecurityDispatcher.convertToFault(WSSecurityDispatcher.java:107) | at | org.jboss.ws.extensions.security.WSSecurityDispatcher.handleInbound(WSSecurityDispatcher.java:179) | at | org.jboss.ws.extensions.security.jaxws.WSSecurityHandler.handleInboundSecurity(WSSecurityHandler.java:78) | at | org.jboss.ws.extensions.security.jaxws.WSSecurityHandlerServer.handleInbound(WSSecurityHandlerServer.java:41) | at | org.jboss.ws.core.jaxws.handler.GenericHandler.handleMessage(GenericHandler.java:55) | at | org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.handleMessage(HandlerChainExecutor.java:295) | at | org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.handleMessage(HandlerChainExecutor.java:140) | ... 27 more | 16:47:47,588 ERROR [SOAPFaultHelperJAXWS] SOAP request exception | javax.xml.ws.WebServiceException: | org.jboss.ws.core.CommonSOAPFaultException: Signature is invalid. | at | org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.processHandlerFailure(HandlerChainExecutor.java:276) | at | org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.handleMessage(HandlerChainExecutor.java:155) | at | org.jboss.ws.core.jaxws.handler.HandlerDelegateJAXWS.callRequestHandlerChain(HandlerDelegateJAXWS.java:87) | at | org.jboss.ws.core.server.ServiceEndpointInvoker.callRequestHandlerChain(ServiceEndpointInvoker.java:128) | at | org.jboss.ws.core.server.ServiceEndpointInvoker.invoke(ServiceEndpointInvoker.java:172) | at | org.jboss.wsf.stack.jbws.RequestHandlerImpl.processRequest(RequestHandlerImpl.java:418) | at | org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleRequest(RequestHandlerImpl.java:274) | at | org.jboss.wsf.stack.jbws.RequestHandlerImpl.doPost(RequestHandlerImpl.java:191) | at | org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:124) | at | org.jboss.wsf.stack.jbws.EndpointServlet.service(EndpointServlet.java:84) | at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) | at | org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) | at | org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) | at | org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) | at | org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) | at | org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) | at | org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230) | at | org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) | at | org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179) | at | org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84) | at | org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) | at | org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) | at | org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157) | at | org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) | at | org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262) | at | org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) | at | org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) | at | org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446) | at java.lang.Thread.run(Thread.java:595) | Caused by: org.jboss.ws.core.CommonSOAPFaultException: Signature is invalid. | at | org.jboss.ws.extensions.security.WSSecurityDispatcher.convertToFault(WSSecurityDispatcher.java:107) | at | org.jboss.ws.extensions.security.WSSecurityDispatcher.handleInbound(WSSecurityDispatcher.java:179) | at | org.jboss.ws.extensions.security.jaxws.WSSecurityHandler.handleInboundSecurity(WSSecurityHandler.java:78) | at | org.jboss.ws.extensions.security.jaxws.WSSecurityHandlerServer.handleInbound(WSSecurityHandlerServer.java:41) | at | org.jboss.ws.core.jaxws.handler.GenericHandler.handleMessage(GenericHandler.java:55) | at | org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.handleMessage(HandlerChainExecutor.java:295) | at | org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.handleMessage(HandlerChainExecutor.java:140) | ... 27 more View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4140728#4140728 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4140728 From do-not-reply at jboss.com Tue Apr 1 17:56:47 2008 From: do-not-reply at jboss.com (cavani) Date: Tue, 1 Apr 2008 17:56:47 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: WS-Security and Dispatch Message-ID: <10420113.1207087007280.JavaMail.jboss@colo-br-02.atl.jboss.com> There is a bug in 2.0.2 and 2.0.3 that result in not decryptation of response message. 2.0.4 fix this. http://jira.jboss.org/jira/browse/JBWS-1966 http://www.jboss.com/index.html?module=bb&op=viewtopic&t=128353 Thanks, View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4140734#4140734 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4140734 From do-not-reply at jboss.com Tue Apr 1 18:03:53 2008 From: do-not-reply at jboss.com (cavani) Date: Tue, 1 Apr 2008 18:03:53 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Charset encoding problem from Linux to Windows with Disp Message-ID: <20347506.1207087433836.JavaMail.jboss@colo-br-02.atl.jboss.com> It was just my stupidity that prevent me to success on this... sorry! I updated xmlsec to last version 1.4.1 (from 1.3.0 that is distributed with JBossWS), but this didn't help. After some reading about charset and encoding, The code that really works is this: | Reader requestReader = new StringReader(requestMessage); | StreamSource request = new StreamSource(requestReader); | StreamSource response = dispatch.invoke(request); | requestReader.close(); | TransformerFactory factory = TransformerFactory.newInstance(); | Transformer transformer = factory.newTransformer(); | BufferedStreamResult result = new BufferedStreamResult(); | transformer.transform(response, result); | String responseMessage = result.toString(); | byte[] raw = responseMessage.getBytes("UTF-8"); | return new String(raw); | Thanks, View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4140737#4140737 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4140737 From do-not-reply at jboss.com Tue Apr 1 19:36:24 2008 From: do-not-reply at jboss.com (jmoring) Date: Tue, 1 Apr 2008 19:36:24 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Basic Authentication Message-ID: <13113195.1207092985013.JavaMail.jboss@colo-br-02.atl.jboss.com> I have a custom login module that works just fine on non-web service applications. However on web service (EJB endpoint) it is called just fine but the callback handler for the user name always returns null. I have tried annotations (@SecurityDomain, @WebContext) and I have tried using a jboss.xml but nothing seems to work. I have verified that the .NET 2.0 and/or .NET 3.5 client is sending the Authorization http header. What is the secret here!!!! package com.xxxxxxxx.ws.autopilot; import javax.annotation.security.*; import javax.ejb.*; import javax.jws.*; import javax.jws.soap.*; import org.jboss.annotation.security.*; import org.jboss.ws.annotation.*; @Stateless @SecurityDomain(value="MyLoginModule") @WebService ( name="Autopilot", targetNamespace = "http://opas.xxxxxxxxx.net/Xxxxxxxxxxxx", serviceName = "AutopilotService" ) @RolesAllowed("Everyone") @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE) @WebContext(contextRoot="/Autopilot", urlPattern="/*", authMethod="BASIC", transportGuarantee="NONE", secureWSDLAccess=false) public class Autopilot { @WebMethod @PermitAll public String ping( String Value ) { return Value.toUpperCase(); } } View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4140751#4140751 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4140751 From do-not-reply at jboss.com Tue Apr 1 21:35:09 2008 From: do-not-reply at jboss.com (wiggy) Date: Tue, 1 Apr 2008 21:35:09 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - please help - web services still dont work for me - jboss as Message-ID: <28960547.1207100109857.JavaMail.jboss@colo-br-02.atl.jboss.com> thought i'd have one last go downloaded jboss As5b4. configured eclipse 3.3 with default 5.0 server (basic one) deployed ejb3 webservice as ejb file to server and checked wsdl generated. used wsconsume to gen client artifacts and imported into standalone application client project. All compiles. client looks like this - cant get much easier | | package test; | | import java.util.Hashtable; | | import javax.naming.InitialContext; | | import org.wstest.webservices.*; | | public class Test { | | /** | * @param args | */ | public static void main(String[] args) throws Exception | { | | InitialContext ctx; | // TODO Auto-generated method stub | | | HelloService s = new HelloService(); | HelloServiceWS ws = s.getHelloServiceWSPort(); | | | | String res = ws.sayHello(); | System.out.println ("test: returned " + res + " \n"); | | } | generated wsdl at server looks like | | - | - | - | | | - | | | - | - | | | | | | - | | | - | | | - | - | | | | | - | | - | | - | | | - | | | | | - | - | | | | | run the test and get | Exception in thread "main" javax.xml.ws.WebServiceException: Unable to load Provider: Failed to load javax.xml.ws.spi.Provider: com.sun.xml.ws.spi.ProviderImpl | at javax.xml.ws.spi.Provider.provider(Provider.java:90) | at javax.xml.ws.Service.(Service.java:82) | at org.wstest.webservices.HelloService.(HelloService.java:40) | at test.Test.main(Test.java:21) | Caused by: java.lang.IllegalStateException: Failed to load javax.xml.ws.spi.Provider: com.sun.xml.ws.spi.ProviderImpl | at javax.xml.ws.spi.ProviderLoader.loadProvider(ProviderLoader.java:96) | at javax.xml.ws.spi.Provider.provider(Provider.java:82) | ... 3 more | Caused by: java.lang.ExceptionInInitializerError | at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) | at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) | at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) | at java.lang.reflect.Constructor.newInstance(Constructor.java:494) | at java.lang.Class.newInstance0(Class.java:350) | at java.lang.Class.newInstance(Class.java:303) | at javax.xml.ws.spi.ProviderLoader.loadProvider(ProviderLoader.java:91) | ... 4 more | Caused by: javax.xml.ws.WebServiceException: Error creating JAXBContext for W3CEndpointReference. | at com.sun.xml.ws.spi.ProviderImpl.getEPRJaxbContext(ProviderImpl.java:188) | at com.sun.xml.ws.spi.ProviderImpl.(ProviderImpl.java:65) | ... 11 more | Caused by: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 2 counts of IllegalAnnotationExceptions | Two classes have the same XML type name "address". Use @XmlType.name and @XmlType.namespace to assign different names to them. | this problem is related to the following location: | at com.sun.xml.ws.developer.MemberSubmissionEndpointReference$Address | at public com.sun.xml.ws.developer.MemberSubmissionEndpointReference$Address com.sun.xml.ws.developer.MemberSubmissionEndpointReference.addr | at com.sun.xml.ws.developer.MemberSubmissionEndpointReference | this problem is related to the following location: | at javax.xml.ws.wsaddressing.W3CEndpointReference$Address | at private javax.xml.ws.wsaddressing.W3CEndpointReference$Address javax.xml.ws.wsaddressing.W3CEndpointReference.address | at javax.xml.ws.wsaddressing.W3CEndpointReference | Two classes have the same XML type name "elements". Use @XmlType.name and @XmlType.namespace to assign different names to them. | this problem is related to the following location: | at com.sun.xml.ws.developer.MemberSubmissionEndpointReference$Elements | at public com.sun.xml.ws.developer.MemberSubmissionEndpointReference$Elements com.sun.xml.ws.developer.MemberSubmissionEndpointReference.referenceProperties | at com.sun.xml.ws.developer.MemberSubmissionEndpointReference | this problem is related to the following location: | at javax.xml.ws.wsaddressing.W3CEndpointReference$Elements | at private javax.xml.ws.wsaddressing.W3CEndpointReference$Elements javax.xml.ws.wsaddressing.W3CEndpointReference.referenceParameters | at javax.xml.ws.wsaddressing.W3CEndpointReference | | at com.sun.xml.bind.v2.runtime.IllegalAnnotationsException$Builder.check(IllegalAnnotationsException.java:102) | at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:438) | at com.sun.xml.bind.v2.runtime.JAXBContextImpl.(JAXBContextImpl.java:286) | at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:139) | at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:117) | 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 javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:211) | at javax.xml.bind.ContextFinder.find(ContextFinder.java:372) | at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:574) | at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:522) | at com.sun.xml.ws.spi.ProviderImpl.getEPRJaxbContext(ProviderImpl.java:186) | ... 12 more | please help i really want this to work so i can get back to my business problem - and not spend time trashing in frameworks. doesnt work on 4.2.2 either View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4140760#4140760 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4140760 From do-not-reply at jboss.com Tue Apr 1 22:07:53 2008 From: do-not-reply at jboss.com (esacchi) Date: Tue, 1 Apr 2008 22:07:53 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: WS-Security and Dispatch Message-ID: <5184294.1207102073157.JavaMail.jboss@colo-br-02.atl.jboss.com> thanks obrigado gracias View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4140762#4140762 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4140762 From do-not-reply at jboss.com Wed Apr 2 03:05:52 2008 From: do-not-reply at jboss.com (yhrn) Date: Wed, 2 Apr 2008 03:05:52 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: JBossWS 3.0.1 Released Message-ID: <27034620.1207119952973.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, It seems to me that jbossws-context.war in in the jbossws service archive has gone missing in JBossWS 3.0.1-Metro 1.0.1. Or has it been removed on purpose (hope not, because I like it)? Also, JBWS-1714 Verify correct behaviour of @WebService.wsdlLocation does not seem to be fixed as claimed by the release notes. When using @WebService.wsdlLocation on a EJB3 endpoint implementation class to point to a local WSDL file with schema imports with relative schemaLocation paths, the schemaLocation paths are still not replaced by the absolute path. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4140786#4140786 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4140786 From do-not-reply at jboss.com Wed Apr 2 03:17:16 2008 From: do-not-reply at jboss.com (richard.opalka@jboss.com) Date: Wed, 2 Apr 2008 03:17:16 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: JBossWS 3.0.1 Released Message-ID: <5752448.1207120636440.JavaMail.jboss@colo-br-02.atl.jboss.com> "PeterJ" wrote : Will JBossAS 5.0.0.GA use JBossWS 3.0.x or will it continue using 2.0.x? http://jira.jboss.org/jira/browse/JBAS-5293 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4140793#4140793 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4140793 From do-not-reply at jboss.com Wed Apr 2 03:20:16 2008 From: do-not-reply at jboss.com (richard.opalka@jboss.com) Date: Wed, 2 Apr 2008 03:20:16 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: JBossWS 3.0.1 Released Message-ID: <27309001.1207120816061.JavaMail.jboss@colo-br-02.atl.jboss.com> "gessedafe" wrote : | --------------------------------------------------------------------------- | 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) | | According to above error I see you're mixing two different JBossWS releases in your eclipse environment. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4140795#4140795 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4140795 From do-not-reply at jboss.com Wed Apr 2 03:26:01 2008 From: do-not-reply at jboss.com (richard.opalka@jboss.com) Date: Wed, 2 Apr 2008 03:26:01 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: JBossWS 3.0.1 Released Message-ID: <5288520.1207121161396.JavaMail.jboss@colo-br-02.atl.jboss.com> "yhrn" wrote : Hi, | It seems to me that jbossws-context.war in in the jbossws service archive has gone missing in JBossWS 3.0.1-Metro 1.0.1. Or has it been removed on purpose (hope not, because I like it)? It's going be fixed in next release, see http://jira.jboss.org/jira/browse/JBWS-2091 "yhrn" wrote : Also, JBWS-1714 Verify correct behaviour of @WebService.wsdlLocation does not seem to be fixed as claimed by the release notes. When using @WebService.wsdlLocation on a EJB3 endpoint implementation class to point to a local WSDL file with schema imports with relative schemaLocation paths, the schemaLocation paths are still not replaced by the absolute path. In that case reopen the issue and attach your test case to reproduce your problem easily. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4140797#4140797 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4140797 From do-not-reply at jboss.com Wed Apr 2 04:07:32 2008 From: do-not-reply at jboss.com (boniek) Date: Wed, 2 Apr 2008 04:07:32 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Limiting number of connections per WebService Message-ID: <3694035.1207123652753.JavaMail.jboss@colo-br-02.atl.jboss.com> Is limiting number of connections per WebService possible to do with jbossws-3.0.1 and jboss 4.2? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4140816#4140816 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4140816 From do-not-reply at jboss.com Wed Apr 2 04:12:23 2008 From: do-not-reply at jboss.com (richard.opalka@jboss.com) Date: Wed, 2 Apr 2008 04:12:23 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Limiting number of connections per WebService Message-ID: <767960.1207123943385.JavaMail.jboss@colo-br-02.atl.jboss.com> In which layer? Transport, handlers, invocation? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4140818#4140818 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4140818 From do-not-reply at jboss.com Wed Apr 2 06:00:23 2008 From: do-not-reply at jboss.com (adinn) Date: Wed, 2 Apr 2008 06:00:23 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: JBossWS 3.0.1 Released Message-ID: <365685.1207130423858.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi Richard, I just tried installing jbossws-3.0.1-metro-1.0.1.GA into JBossAS 5.0.0.Beta4 following instructions in docs/Install.txt. I came across the following errors First: 4.) Execute the samples to verify your installation 'ant tests' The compile failed to find junit.jar. It appears that the path in build.xml (line 151) specified as should actually be With this patch it compiles ok. Second: After the jbossws.sar is deployed you should be able to access JBossWS underhttp://localhost:8080/jbossws When I insert this URL in my browser I get a 404. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4140872#4140872 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4140872 From do-not-reply at jboss.com Wed Apr 2 06:05:52 2008 From: do-not-reply at jboss.com (heiko.braun@jboss.com) Date: Wed, 2 Apr 2008 06:05:52 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: JBossWS 3.0.1 Released Message-ID: <19023818.1207130752231.JavaMail.jboss@colo-br-02.atl.jboss.com> Try 'build.sh tests'. It uses a preconfigured ant distribution that ships with the download View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4140877#4140877 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4140877 From do-not-reply at jboss.com Wed Apr 2 07:45:42 2008 From: do-not-reply at jboss.com (boopet) Date: Wed, 2 Apr 2008 07:45:42 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Problems with multipart/related responses Message-ID: <31953448.1207136743347.JavaMail.jboss@colo-br-02.atl.jboss.com> hi marc, thanks for answering. yes that was indeed the problem. the axis2 1.3 client needed a patch to handle this correctly (http://svn.apache.org/viewvc?view=rev&revision=555276) regards, norbert View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4140909#4140909 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4140909 From do-not-reply at jboss.com Wed Apr 2 07:53:00 2008 From: do-not-reply at jboss.com (thomas.diesler@jboss.com) Date: Wed, 2 Apr 2008 07:53:00 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: JBossWS 3.0.1 Released Message-ID: <8394714.1207137180049.JavaMail.jboss@colo-br-02.atl.jboss.com> Folks, this post is an announcement. If you have specific issues, please create individual threads. Issues that apply to the release in general may be posted here View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4140912#4140912 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4140912 From do-not-reply at jboss.com Wed Apr 2 07:55:57 2008 From: do-not-reply at jboss.com (thomas.diesler@jboss.com) Date: Wed, 2 Apr 2008 07:55:57 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: JBossWS 3.0.1 Released Message-ID: <14618591.1207137357044.JavaMail.jboss@colo-br-02.atl.jboss.com> anonymous wrote : | Will JBossAS 5.0.0.GA use JBossWS 3.0.x or will it continue using 2.0.x? | We installed jbossws-3.0.1-native-2.0.4 already in AS trunk View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4140915#4140915 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4140915 From do-not-reply at jboss.com Wed Apr 2 08:56:13 2008 From: do-not-reply at jboss.com (gessedafe) Date: Wed, 2 Apr 2008 08:56:13 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Problems with WSConsume tool after upgrading to JBossWS 3.0. Message-ID: <12660389.1207140973749.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi everyone, 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... It happens when I try to run the wsconsume tool using ANT Build (WSConsumeTask). I think this problem was not present in previous release, because just using the previous jar files in my ant classpath makes my application work again. Here is 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: --------------------------------------------------------------------------- --------------------------------------------------------------------------- My build.xml snippet: --------------------------------------------------------------------------- < path id="build.classpath"> < fileset dir="C:/Desenvolvimento/Java/Servers/jboss-4.2.2.GA/client/" includes="*.jar" /> < taskdef name="wsconsume" classname="org.jboss.wsf.spi.tools.ant.WSConsumeTask"> < classpath refid="build.classpath" /> < wsconsume fork="true" verbose="true" keep="true" destdir="classes/" sourcedestdir="gen/" wsdllocation="/META-INF/TestCase.wsdl" wsdl="/META-INF/TestCase.wsdl"> ---- Thanks for your attention! Hugs... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4140948#4140948 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4140948 From do-not-reply at jboss.com Wed Apr 2 09:17:41 2008 From: do-not-reply at jboss.com (richard.opalka@jboss.com) Date: Wed, 2 Apr 2008 09:17:41 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: JBossWS 3.0.1 Released Message-ID: <7925493.1207142261398.JavaMail.jboss@colo-br-02.atl.jboss.com> "adinn" wrote : When I insert this URL in my browser I get a 404. What about Metro or CXF there's no JBossWS console at the moment, see http://jira.jboss.org/jira/browse/JBWS-2091 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4140960#4140960 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4140960 From do-not-reply at jboss.com Wed Apr 2 10:28:12 2008 From: do-not-reply at jboss.com (r12345_2003) Date: Wed, 2 Apr 2008 10:28:12 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Error in generating WSDL Message-ID: <16445221.1207146492942.JavaMail.jboss@colo-br-02.atl.jboss.com> I'm using JDK 1.5.0_05 Do you mind posting your code so that i can compare it with mine and try to see if im doing something wrong? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4140989#4140989 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4140989 From do-not-reply at jboss.com Wed Apr 2 10:59:12 2008 From: do-not-reply at jboss.com (Christy) Date: Wed, 2 Apr 2008 10:59:12 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - java.lang.TypeNotPresentException: Type javax.xml.bind.annot Message-ID: <4994538.1207148352902.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi! I'm using JWSDP2.0 and JBoss4.2.2.GA. I created a simple web-service: @WebService @SOAPBinding(style = SOAPBinding.Style.DOCUMENT) public class TestDiffFormats { @WebMethod public void getList(@WebParam(name="result", mode=WebParam.Mode.INOUT)Holder result){ result.value.add("SS"); } } I generated client stubs using JAXWS2.0. Here is my client code: public String getRes() { String res = ""; TestDiffFormatsService testDiffFormatsService = new TestDiffFormatsService(); TestDiffFormats port = testDiffFormatsService.getTestDiffFormatsPort(); javax.xml.ws.Holder h = new javax.xml.ws.Holder(new ArrayList()); port.getList(h); System.out.println(" = " + h.value.size()); return res; } When I tried to invoke web-service I had the error: java.lang.TypeNotPresentException: Type javax.xml.bind.annotation.AccessType not present What is wrong? Thank you! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4141005#4141005 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4141005 From do-not-reply at jboss.com Wed Apr 2 12:06:40 2008 From: do-not-reply at jboss.com (PeterJ) Date: Wed, 2 Apr 2008 12:06:40 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Error in generating WSDL Message-ID: <14681531.1207152400699.JavaMail.jboss@colo-br-02.atl.jboss.com> I created a new project using the exact code you posted, compiled the web service, packaged it in a war file, deployed it, and it works for me. I am using: 09:53:37,163 INFO [ServerInfo] Java version: 1.5.0_14,Sun Microsystems Inc. 09:53:37,163 INFO [ServerInfo] Java VM: Java HotSpot(TM) Server VM 1.5.0_14-b03,Sun Microsystems Inc. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4141046#4141046 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4141046 From do-not-reply at jboss.com Wed Apr 2 13:03:02 2008 From: do-not-reply at jboss.com (PeterJ) Date: Wed, 2 Apr 2008 13:03:02 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: please help - web services still dont work for me - jbos Message-ID: <14677056.1207155782694.JavaMail.jboss@colo-br-02.atl.jboss.com> Based on the client code you posted, I assume that your web service looks very similar to that given at http://www.jboss.com/index.html?module=bb&op=viewtopic&t=132729, except yours is an EJB. I compiled your client, and ran it: >F:\opt\jboss-5.0.0.Beta4\bin\wsrunclient -classpath "F:\opt\ws2\target\dist\client.jar;F:\opt\jboss-5.0.0.Beta4\client\jbossall-client.jar" test.Test log4j:WARN No appenders could be found for logger (org.jboss.ws.metadata.builder .jaxws.JAXWSWebServiceMetaDataBuilder). log4j:WARN Please initialize the log4j system properly. test: returned Hello Works for me. JBossAS 5.0.0.Beta4 (which contains JBossWS 2.0.3.GA), JDK 1.5.0_14. It also works in JBossAS 4.2.2. So now the question is, how is your setup different from mine? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4141058#4141058 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4141058 From do-not-reply at jboss.com Wed Apr 2 13:35:21 2008 From: do-not-reply at jboss.com (gaurishjboss) Date: Wed, 2 Apr 2008 13:35:21 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - JBoss web service client Message-ID: <15934115.1207157721983.JavaMail.jboss@colo-br-02.atl.jboss.com> I m a hardcore amateur to JBoss Appn server and Jboss Web services......can neone pls throw light on how to devolop a client for a JBoss web service in Java in Eclipse.....plz provide a detailed step-wise procedure or redirect me to some page that could help me out.....plz its urgent.....would b highly obliged.....thnk u. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4141067#4141067 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4141067 From do-not-reply at jboss.com Wed Apr 2 14:21:32 2008 From: do-not-reply at jboss.com (PeterJ) Date: Wed, 2 Apr 2008 14:21:32 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: JBoss web service client Message-ID: <20936104.1207160492761.JavaMail.jboss@colo-br-02.atl.jboss.com> Are you more interested in "how to create a web service and client" or "how to use Eclipse"? (I was going to write more but decided to wait for your reply.) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4141076#4141076 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4141076 From do-not-reply at jboss.com Wed Apr 2 16:07:23 2008 From: do-not-reply at jboss.com (pramod_bs) Date: Wed, 2 Apr 2008 16:07:23 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - javax.xml.ws.soap.SOAPFaultException: Invalid program name Message-ID: <9922696.1207166843082.JavaMail.jboss@colo-br-02.atl.jboss.com> | | I am getting this exception when I try to access a web service which is running in a non JBoss server ( actually the service is running in unisys mainframe) | stack trace | javax.xml.ws.soap.SOAPFaultException: Invalid program name | at org.jboss.ws.core.jaxws.SOAPFaultHelperJAXWS.getSOAPFaultException(SOAPFaultHelperJAXWS.java:69) | at org.jboss.ws.core.jaxws.binding.SOAP11BindingJAXWS.throwFaultException(SOAP11BindingJAXWS.java:109) | at org.jboss.ws.core.CommonSOAPBinding.unbindResponseMessage(CommonSOAPBinding.java:553) | at org.jboss.ws.core.CommonClient.invoke(CommonClient.java:371) | at org.jboss.ws.core.jaxws.client.ClientImpl.invoke(ClientImpl.java:243) | at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:164) | at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:150) | at $Proxy17.newProp(Unknown Source) | at gov.gsa.fss.gsab0.program.propertyload.TestSwa.doTest(TestSwa.java:58) | at gov.gsa.fss.gsab0.program.propertyload.TestSwa.main(TestSwa.java:26) | | | | here is the wsdl | | " | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Access Program PROPERTYLOAD via MGSWeb | | | | | | " View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4141086#4141086 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4141086 From do-not-reply at jboss.com Wed Apr 2 16:12:19 2008 From: do-not-reply at jboss.com (pramod_bs) Date: Wed, 2 Apr 2008 16:12:19 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: please help - web services still dont work for me - jbos Message-ID: <2132184.1207167139245.JavaMail.jboss@colo-br-02.atl.jboss.com> Try to remove following jar files from your clients class path - jaxws-rt.jar jaxws-tools.jar. This happended to me. Please try this. It might work. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4141088#4141088 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4141088 From do-not-reply at jboss.com Wed Apr 2 16:22:22 2008 From: do-not-reply at jboss.com (heiko.braun@jboss.com) Date: Wed, 2 Apr 2008 16:22:22 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: please help - web services still dont work for me - jbos Message-ID: <30420983.1207167742764.JavaMail.jboss@colo-br-02.atl.jboss.com> Yes, it's a classpath problem. The JAX-WS provider is accessed by a Jar service loader. Depending on which jar is in the classpath it either loads the Jbossws one or the Sun RI one: com.sun.xml.ws.spi.ProviderImpl. It's the two jars pramod_bs described. They only needed for the wsconsume and wsprovide tools, but shouldn't be on the client classpath. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4141094#4141094 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4141094 From do-not-reply at jboss.com Wed Apr 2 16:23:26 2008 From: do-not-reply at jboss.com (heiko.braun@jboss.com) Date: Wed, 2 Apr 2008 16:23:26 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: please help - web services still dont work for me - jbos Message-ID: <673772.1207167807014.JavaMail.jboss@colo-br-02.atl.jboss.com> Maybe someone can put some docs into the Wiki how to setup eclipse? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4141095#4141095 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4141095 From do-not-reply at jboss.com Wed Apr 2 17:10:54 2008 From: do-not-reply at jboss.com (shruthi) Date: Wed, 2 Apr 2008 17:10:54 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Deployment of web service Message-ID: <32923166.1207170654728.JavaMail.jboss@colo-br-02.atl.jboss.com> Hey even i got the same problem, i got to see this message is posted long back, so if u find a solution, let me know. Thanks in advance Shruthi View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4141107#4141107 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4141107 From do-not-reply at jboss.com Wed Apr 2 19:43:21 2008 From: do-not-reply at jboss.com (vdanda) Date: Wed, 2 Apr 2008 19:43:21 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: EndPoint ... does not contain operation meta data for .. Message-ID: <17699385.1207179801680.JavaMail.jboss@colo-br-02.atl.jboss.com> I am having the same issue. I hope you might have figured it now and please share solution. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4141137#4141137 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4141137 From do-not-reply at jboss.com Thu Apr 3 01:20:45 2008 From: do-not-reply at jboss.com (Christy) Date: Thu, 3 Apr 2008 01:20:45 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: java.lang.TypeNotPresentException: Type javax.xml.bind.a Message-ID: <19536478.1207200045380.JavaMail.jboss@colo-br-02.atl.jboss.com> Hello, I solved this problem. It was libraries cinflict. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4141154#4141154 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4141154 From do-not-reply at jboss.com Thu Apr 3 02:44:59 2008 From: do-not-reply at jboss.com (wiggy) Date: Thu, 3 Apr 2008 02:44:59 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - will give it a go - however these two jars are put in by the Message-ID: <17850507.1207205099185.JavaMail.jboss@colo-br-02.atl.jboss.com> I am using jboss tools in eclipse. I create an application project and the builder adds a library to the build path `JBOSS 4.2 runttime` in my case. it has these two jars in it. However if i go into eclipse and edit this pre defined library i'tll will impact all projects that use the eclipse defn so my question is that if these two libraries are the cause of my angst, then I think someone should look at the server build config for eclipse deployments (is this JBOSS tools project ?) as I've wasted a lot of time with no success. cant believe i'm the only one with the problem View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4141163#4141163 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4141163 From do-not-reply at jboss.com Thu Apr 3 02:55:29 2008 From: do-not-reply at jboss.com (wiggy) Date: Thu, 3 Apr 2008 02:55:29 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: will give it a go - however these two jars are put in by Message-ID: <27520966.1207205729587.JavaMail.jboss@colo-br-02.atl.jboss.com> in fact eclipse wont let me edit this library (its not a user library) where is the library defn maintained - is it in eclipse somewhere? is it JBOSS tools ? in order to test without this library - what jboss libraries do i need (i'll have to create a user librrary and put my own libs in) and take out the server runtime library altogether. is all i need client.jar, and client-all.jar? whos bug is this ? is it JBOSS tools project? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4141164#4141164 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4141164 From do-not-reply at jboss.com Thu Apr 3 03:43:53 2008 From: do-not-reply at jboss.com (heiko.braun@jboss.com) Date: Thu, 3 Apr 2008 03:43:53 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: will give it a go - however these two jars are put in by Message-ID: <29988147.1207208633175.JavaMail.jboss@colo-br-02.atl.jboss.com> Yes, from what you described it's a jboss tools problem. However I've created an issue so we can investigate. In the meantime you could look at the sample build.xml that ships with the distribution. It contains the complete client classpath reference. http://jira.jboss.org/jira/browse/JBWS-2103 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4141175#4141175 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4141175 From do-not-reply at jboss.com Thu Apr 3 07:06:03 2008 From: do-not-reply at jboss.com (boniek) Date: Thu, 3 Apr 2008 07:06:03 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Limiting number of connections per WebService Message-ID: <20389664.1207220763748.JavaMail.jboss@colo-br-02.atl.jboss.com> As soon as possible to avoid unnecessary traffic/requests. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4141279#4141279 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4141279 From do-not-reply at jboss.com Thu Apr 3 08:12:34 2008 From: do-not-reply at jboss.com (jej2003) Date: Thu, 3 Apr 2008 08:12:34 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Migrating from JBoss 4.0.3SP1 to 4.0.4GA Message-ID: <4173516.1207224754903.JavaMail.jboss@colo-br-02.atl.jboss.com> I work for a company that has several applications built on JBoss 4.0.3SP1 which include web services that they would like to migrate to JBoss 4.0.4 or >. I was wondering if there is any documentation detailing the process of moving from 4.0.3 (Axis Stack) to 4.0.4 (JBossWS Stack)? Also is there anything else that has changed between these two versions that I should be aware of before attempting this? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4141295#4141295 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4141295 From do-not-reply at jboss.com Thu Apr 3 08:13:47 2008 From: do-not-reply at jboss.com (r12345_2003) Date: Thu, 3 Apr 2008 08:13:47 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Error in generating WSDL Message-ID: <29460164.1207224827212.JavaMail.jboss@colo-br-02.atl.jboss.com> I tried deploying the web service as an EJB and that has worked! So i am going to give up deploying as a servlet for now. Will have another go when i find some time. Thanks for all your help anyways! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4141296#4141296 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4141296 From do-not-reply at jboss.com Thu Apr 3 09:01:53 2008 From: do-not-reply at jboss.com (smathankumar) Date: Thu, 3 Apr 2008 09:01:53 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Get the WSDL_SERVICE property value from MessageContext Message-ID: <4102133.1207227713679.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, I am trying to get the WSDL_SERVICE name from the MessageContext in handlers. But i got the Null pointer exception. My Code : QName gotService = (QName)ctxt.get(MessageContext.WSDL_SERVICE); System.out.println("WSDL_SERVICE Got="+gotService); Regards, Mathan Kumar S View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4141316#4141316 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4141316 From do-not-reply at jboss.com Thu Apr 3 10:05:27 2008 From: do-not-reply at jboss.com (bortx) Date: Thu, 3 Apr 2008 10:05:27 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Get java names from WSDL Message-ID: <803125.1207231527691.JavaMail.jboss@colo-br-02.atl.jboss.com> Hello, I'm developing an application which automatically build ws client stubs from a wsdl and generates classes that, among other things, use those stubs. So I need a way of obtaining wsdl metainformation about its java operations and types. In older jbossws tools version I used WSDLModelInfo class to obtain this information, but now I use WSDLDefinitions instead, and I cannot access this information. Is there a way of obtaining this information? Thanks a lot View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4141358#4141358 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4141358 From do-not-reply at jboss.com Thu Apr 3 10:08:58 2008 From: do-not-reply at jboss.com (pramod_bs) Date: Thu, 3 Apr 2008 10:08:58 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: javax.xml.ws.soap.SOAPFaultException: Invalid program na Message-ID: <1064946.1207231738428.JavaMail.jboss@colo-br-02.atl.jboss.com> Help please... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4141359#4141359 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4141359 From do-not-reply at jboss.com Thu Apr 3 10:09:40 2008 From: do-not-reply at jboss.com (pramod_bs) Date: Thu, 3 Apr 2008 10:09:40 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: javax.xml.ws.soap.SOAPFaultException: Invalid program na Message-ID: <11796791.1207231780163.JavaMail.jboss@colo-br-02.atl.jboss.com> I am able to access the same service using a Axis2 client. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4141360#4141360 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4141360 From do-not-reply at jboss.com Thu Apr 3 13:28:17 2008 From: do-not-reply at jboss.com (javierco) Date: Thu, 3 Apr 2008 13:28:17 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: wsprovide : NoClassDefFoundError: com/sun/codemodel/JExp Message-ID: <5113076.1207243697234.JavaMail.jboss@colo-br-02.atl.jboss.com> I came across this same problem and what I did was to copy the classpath setup from wsconsume to wsprovide batch files, and it worked! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4141453#4141453 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4141453 From do-not-reply at jboss.com Thu Apr 3 14:23:17 2008 From: do-not-reply at jboss.com (gaurishjboss) Date: Thu, 3 Apr 2008 14:23:17 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: JBoss web service client Message-ID: <25598339.1207246997756.JavaMail.jboss@colo-br-02.atl.jboss.com> thnnx for reciprocating.....i want to devolop a web service from an existing EJB and its corresponding client using eclipse and jboss web services(obviously).....Plz help Peter....its a lil urgent......awaiting a reply at the earliest. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4141465#4141465 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4141465 From do-not-reply at jboss.com Thu Apr 3 14:48:18 2008 From: do-not-reply at jboss.com (PeterJ) Date: Thu, 3 Apr 2008 14:48:18 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: JBoss web service client Message-ID: <30647567.1207248498596.JavaMail.jboss@colo-br-02.atl.jboss.com> Let me rephrase the question. If I told you how to turn the EJB into a web service, but I did not mention Eclipse, would that work for you? Oh, and are you using EJB3? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4141473#4141473 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4141473 From do-not-reply at jboss.com Thu Apr 3 15:49:09 2008 From: do-not-reply at jboss.com (wiggy) Date: Thu, 3 Apr 2008 15:49:09 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - update Re: please help - web services still dont work for me Message-ID: <23592482.1207252149187.JavaMail.jboss@colo-br-02.atl.jboss.com> Yes thank you the two libraries if removed from the build work. spent a day on the train and created a user library (rather than the jboss4.2.2 runtime library). I dont know whos problem this is - is it JBOSS tools problem? This has cost me alot of pain/time to resolve and I think it should go into jira somewhere and change in the library builds to remove this problem. Where should this go? anyhow i fiddled around with the standalone client and managed to get down the following minimal set or jars (for this example) //from /client jbossws-spi.jar jaxb-api.jar jboss-jaxws.jar jbossws-client.jar jbossclient-all.jar also from the /lib/endorsed directory you need xercesImpl.jar when i now run the client i get the result with no errors - for any one esle with this problem you have to used wsconsume (and parse the wsdl on the server) in the /bin directory to generate the client stubs that you include in your client build I had problems with eclipse web services explorer - in the end i'm not sure what fixed this it was either a) i created my workspace with no spaces in the path and or b) i updated the jboss ws libaries from the jbossWS downloads (i installed the jbossws-3.0.1-native-2.0.4.GA.zip) and my explorer now seems to work is there any where where you can post a this is how you set up a project ? | package test; | | import java.util.Hashtable; | | import javax.naming.InitialContext; | | import org.wstest.webservices.*; | | public class Test { | | /** | * @param args | */ | public static void main(String[] args) throws Exception | { | | InitialContext ctx; | // TODO Auto-generated method stub | | | HelloService s = new HelloService(); | HelloServiceWS ws = s.getHelloServiceWSPort(); | | | | String res = ws.sayHello(); | System.out.println ("test: returned " + res + " \n"); | | } | Thanks for the help - eventually i can get back to my project! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4141489#4141489 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4141489 From do-not-reply at jboss.com Thu Apr 3 15:58:45 2008 From: do-not-reply at jboss.com (Lauri) Date: Thu, 3 Apr 2008 15:58:45 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: How to change http to https in wsdlsoap:address on WSDL Message-ID: <5805767.1207252725064.JavaMail.jboss@colo-br-02.atl.jboss.com> Same is here. My task is to deploy POJO webservice bihind https transport and i'm stuck. I have tried older annotation tag @PortComponent but still unhelpful. Updating jbossws to jbossws-3.0.1-native-2.0.4.GA didn't help much, except PortComponent annotaion had gone from libraries. My configuration: Jboss 4.2.2 GA + jbossws-3.0.1-native-2.0.4.GA Known related links: http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3971939#3971939 I tried to change | 80 | to some nonsense value. It does reflect in generated WSDL file. So trouble is to "tell" jboss that web service needs https. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4141492#4141492 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4141492 From do-not-reply at jboss.com Thu Apr 3 22:35:09 2008 From: do-not-reply at jboss.com (anacarda) Date: Thu, 3 Apr 2008 22:35:09 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: How to Define WebService URL? Message-ID: <31548869.1207276510001.JavaMail.jboss@colo-br-02.atl.jboss.com> I found that you can use something like the following: @WebContext(contextRoot = "/myContextRoot", urlPattern = "/myUrlPattern") which will give the url something like http://localhost:8080/myContextRoot/myUrlPattern This is what I was looking for... maybe what you were also? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4141548#4141548 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4141548 From do-not-reply at jboss.com Thu Apr 3 22:37:03 2008 From: do-not-reply at jboss.com (anacarda) Date: Thu, 3 Apr 2008 22:37:03 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: How to Define WebService URL? Message-ID: <26752986.1207276623672.JavaMail.jboss@colo-br-02.atl.jboss.com> also, you need the following import: import org.jboss.wsf.spi.annotation.WebContext; (the @WebContext is defined above the class btw, just below WebService I put it) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4141549#4141549 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4141549 From do-not-reply at jboss.com Thu Apr 3 23:44:46 2008 From: do-not-reply at jboss.com (muralidhar_ch) Date: Thu, 3 Apr 2008 23:44:46 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Failed to create a new SAX parser Message-ID: <73806.1207280686571.JavaMail.jboss@colo-br-02.atl.jboss.com> Even, I am facing the same. Did anyone solve this? Please let me know. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4141552#4141552 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4141552 From do-not-reply at jboss.com Fri Apr 4 05:50:34 2008 From: do-not-reply at jboss.com (gquintana) Date: Fri, 4 Apr 2008 05:50:34 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Date, Time and DateTime Message-ID: <29729403.1207302634793.JavaMail.jboss@colo-br-02.atl.jboss.com> Hello, I applied the wsconsume tool from JBoss 4.2.2 successfully on a WSDL. But when I deploy my WS implementation in JBoss, I get the following errors: anonymous wrote : 2008-04-04 11:35:02,490 ERROR [org.jboss.ws.metadata.wsdl.xmlschema.JBossXSErrorHandler] JBossWS_datex2.eu_schema_1_0_1_048914.xsd[domain:http://www.w3.org/TR/xml-schema-1]::[key=cos-st-restricts.1.1]::Message=cos-st-restricts.1.1: The type 'DateTime' is atomic, so its {base type definition}, 'xs:anySimpleType', must be an atomic simple type definition or a built-in primitive datatype. | 2008-04-04 11:35:02,493 ERROR [org.jboss.ws.metadata.wsdl.xmlschema.JBossXSErrorHandler] JBossWS_datex2.eu_schema_1_0_1_048914.xsd[domain:http://www.w3.org/TR/xml-schema-1]::[key=cos-st-restricts.1.1]::Message=cos-st-restricts.1.1: The type 'Time' is atomic, so its {base type definition}, 'xs:anySimpleType', must be an atomic simple type definition or a built-in primitive datatype. | 2008-04-04 11:35:02,497 ERROR [org.jboss.ws.metadata.wsdl.xmlschema.JBossXSErrorHandler] JBossWS_datex2.eu_schema_1_0_1_048914.xsd[domain:http://www.w3.org/TR/xml-schema-1]::[key=cos-st-restricts.1.1]::Message=cos-st-restricts.1.1: The type 'Date' is atomic, so its {base type definition}, 'xs:anySimpleType', must be an atomic simple type definition or a built-in primitive datatype. | I don't understand what this error message says, but when I call the WS, I get the following error : anonymous wrote : 2008-04-04 11:44:52,143 ERROR [org.jboss.wsf.stack.jbws.RequestHandlerImpl] Cannot close output stream | The Date/Time/DateTime type are defined like this: | | | | | | | | | | | | | | | In the WS impl, to instanciate the DateTime, I wrote: DatatypeFactory.newInstance().newXMLGregorianCalendar(gregorianCalendar)); Could someone tell me where I am wrong? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4141597#4141597 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4141597 From do-not-reply at jboss.com Fri Apr 4 06:20:57 2008 From: do-not-reply at jboss.com (gaurishjboss) Date: Fri, 4 Apr 2008 06:20:57 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: JBoss web service client Message-ID: <1179326.1207304457304.JavaMail.jboss@colo-br-02.atl.jboss.com> I m using EJB3.....i m using Eclipse Europa......so ejb3 and eclipse would be a necessity....i have a ejb .....n i need to implement it as a web service......so that part n devoloping a client that could use the web service ....again in eclipse.....so to summarise.....i need to devolop a web service from an existing ejb(ejb3) and a web service client that could use the web service n both these things have to b done using eclipse.....plz help....thnx. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4141606#4141606 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4141606 From do-not-reply at jboss.com Fri Apr 4 06:47:11 2008 From: do-not-reply at jboss.com (boopet) Date: Fri, 4 Apr 2008 06:47:11 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - NullPointerException when processing response Message-ID: <3684088.1207306031259.JavaMail.jboss@colo-br-02.atl.jboss.com> JBoss AS version: 4.0.5GA Hi everyone, we have created a JBossWS Client with version 2.0.1 consuming a Axis2 webservice, that is sending its responses in multipart/related format. The client uses the UserNameToken authentification. when the client is processing the ws answer, i get a NullPointer Exception because of some security issue: javax.xml.ws.WebServiceException: java.lang.NullPointerException | at org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.processHandlerFailure(HandlerChainExecutor.java:276) | at org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.handleMessage(HandlerChainExecutor.java:155) | at org.jboss.ws.core.jaxws.client.ClientImpl.callResponseHandlerChain(ClientImpl.java:168) | at org.jboss.ws.core.CommonClient.invoke(CommonClient.java:363) | at org.jboss.ws.core.jaxws.client.ClientImpl.invoke(ClientImpl.java:243) | at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:164) | at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:150) | at $Proxy24.loadEloFileUrl(Unknown Source) | at com.giag.fo.elo.giagws.service.EloWsClientTest.testGetFileUrl(EloWsClientTest.java:110) | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) | at java.lang.reflect.Method.invoke(Unknown Source) | at org.testng.internal.MethodHelper.invokeMethod(MethodHelper.java:580) | at org.testng.internal.Invoker.invokeMethod(Invoker.java:478) | at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:607) | at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:874) | at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:125) | at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:109) | at org.testng.TestRunner.runWorkers(TestRunner.java:689) | at org.testng.TestRunner.privateRun(TestRunner.java:566) | at org.testng.TestRunner.run(TestRunner.java:466) | at org.testng.SuiteRunner.runTest(SuiteRunner.java:301) | at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:296) | at org.testng.SuiteRunner.privateRun(SuiteRunner.java:276) | at org.testng.SuiteRunner.run(SuiteRunner.java:191) | at org.testng.TestNG.createAndRunSuiteRunners(TestNG.java:808) | at org.testng.TestNG.runSuitesLocally(TestNG.java:776) | at org.testng.TestNG.run(TestNG.java:701) | at org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:73) | at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:124) | Caused by: java.lang.NullPointerException | at org.jboss.ws.extensions.security.Util.matchNode(Util.java:188) | at org.jboss.ws.extensions.security.Util.matchNode(Util.java:183) | at org.jboss.ws.extensions.security.Util.findElement(Util.java:89) | at org.jboss.ws.extensions.security.WSSecurityDispatcher.handleInbound(WSSecurityDispatcher.java:115) | at org.jboss.ws.extensions.security.jaxws.WSSecurityHandler.handleInboundSecurity(WSSecurityHandler.java:78) | at org.jboss.ws.extensions.security.jaxws.WSSecurityHandlerClient.handleInbound(WSSecurityHandlerClient.java:40) | at org.jboss.ws.core.jaxws.handler.GenericHandler.handleMessage(GenericHandler.java:55) | at org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.handleMessage(HandlerChainExecutor.java:295) | at org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.handleMessage(HandlerChainExecutor.java:140) | | can sbd give an advice? thanks in advance! norbert View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4141608#4141608 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4141608 From do-not-reply at jboss.com Fri Apr 4 08:41:06 2008 From: do-not-reply at jboss.com (cavani) Date: Fri, 4 Apr 2008 08:41:06 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Charset encoding problem from Linux to Windows with Disp Message-ID: <5472777.1207312866787.JavaMail.jboss@colo-br-02.atl.jboss.com> There is something that I am not figuring out. Some characters just are misinterpreted... anyway... I change to SOAPMessage and set the default encoding to UTF-8 (from windows-1252 on Windows)... now it really works! for JVM:-Dfile.encoding=UTF-8 | private Dispatch dispatch; | | private MessageFactory messageFactory; | | /* package */ DispatchHandler(Dispatch dispatch) throws Exception | { | this.dispatch = dispatch; | | messageFactory = MessageFactory.newInstance(); | } | | public SOAPMessage createRequest(String request) throws Exception | { | ByteArrayInputStream stream = new ByteArrayInputStream(request.getBytes()); | SOAPMessage message = messageFactory.createMessage(null, stream); | stream.close(); | return message; | } | | public String createResponse(SOAPMessage message) throws Exception | { | ByteArrayOutputStream stream = new ByteArrayOutputStream(1024); | message.writeTo(stream); | String response = stream.toString(); | stream.close(); | return response; | } | | public String invoke(String request) throws Exception | { | try | { | SOAPMessage requestMessage = createRequest(request); | | SOAPMessage responseMessage = dispatch.invoke(requestMessage); | | return createResponse(responseMessage); | } | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4141630#4141630 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4141630 From do-not-reply at jboss.com Fri Apr 4 09:04:25 2008 From: do-not-reply at jboss.com (gquintana) Date: Fri, 4 Apr 2008 09:04:25 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Date, Time and DateTime Message-ID: <21112426.1207314265622.JavaMail.jboss@colo-br-02.atl.jboss.com> JBoss WS has a problem the XMLGregorianCalendar, when it generates back the WSDL from Java objects, I get xsd:anySimpleType instead of xsd:dateTime. I found a workaround (maybe not the best solution), I customized the JAXB binding to avoid the XMLGregorianCalendar: | | | | | | | | With this, I get Calendar instead of an XMLGregorianCalendar. However I still have the "Cannot close output stream" error from the RequestHandlerImpl. This is not related to the date/time problem. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4141640#4141640 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4141640 From do-not-reply at jboss.com Fri Apr 4 09:08:06 2008 From: do-not-reply at jboss.com (gquintana) Date: Fri, 4 Apr 2008 09:08:06 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: XML Binding - XMLGregorianDate to xs:dateTime rather tha Message-ID: <19116318.1207314486765.JavaMail.jboss@colo-br-02.atl.jboss.com> Look here, it seems related: http://www.jboss.com/index.html?module=bb&op=viewtopic&t=133073 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4141643#4141643 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4141643 From do-not-reply at jboss.com Fri Apr 4 11:16:59 2008 From: do-not-reply at jboss.com (PeterJ) Date: Fri, 4 Apr 2008 11:16:59 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: JBoss web service client Message-ID: <5291275.1207322220353.JavaMail.jboss@colo-br-02.atl.jboss.com> Based on your answer, it would not help you if I told you how to turn your EJB3 session bean into a web service if I did not tell you the steps to take in Eclipse. I am not familiar with what tools Eclipse, or any of its addons, provide for creating web services, so I will let someone who has created web services in Eclipse answer you. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4141687#4141687 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4141687 From do-not-reply at jboss.com Sat Apr 5 06:30:06 2008 From: do-not-reply at jboss.com (CarstenRudat) Date: Sat, 5 Apr 2008 06:30:06 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - How to authenticate and authorize with X509 Certificate? Message-ID: <17069828.1207391406903.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi all, now I have a Webservice running on JBoss 4.2.2.GA (all) with "X509 Certificate Token"-Security. The serice endpoint is implemented by an ejb3 sessionbean. This works fine and a request/response is now signed and encrypted. Now, I would like to add authentication, so that a special user (and role) will be associated to the call. I know the CertificatePrincipal-Wiki-entry, but I don't know, how I should adopt this for a ejb-endpoint. Could you give me a hint, how I can authenticate and authorize with a security domain from a given x509 certificate? Thank you, Carsten View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4141824#4141824 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4141824 From do-not-reply at jboss.com Sun Apr 6 08:20:13 2008 From: do-not-reply at jboss.com (nikhilkshirsagar) Date: Sun, 6 Apr 2008 08:20:13 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Web services client Message-ID: <3664743.1207484413621.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi I am new to web services.Recently I deployed a 'Say Hello' web service on jboss .The IDE I used was eclipse. I also suceeded in developing the client by using stubs generated by jbossws.How ever when the client tries to call the web service I get an error.The stack trace is as follows javax.xml.ws.WebServiceException: java.lang.UnsupportedOperationException: setProperty must be overridden by all subclasses of SOAPMessage org.jboss.ws.core.jaxws.client.ClientImpl.handleRemoteException(ClientImpl.java:304) org.jboss.ws.core.jaxws.client.ClientImpl.invoke(ClientImpl.java:242) org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:164) org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:150) $Proxy144.sayHello(Unknown Source) src.Callws.Call(Callws.java:17) src.Client.doGet(Client.java:32) javax.servlet.http.HttpServlet.service(HttpServlet.java:690) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) Can someone please tell me how to handle this error. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4141889#4141889 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4141889 From do-not-reply at jboss.com Sun Apr 6 17:09:22 2008 From: do-not-reply at jboss.com (anacarda) Date: Sun, 6 Apr 2008 17:09:22 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Loading a file into an InputStream within webservice cod Message-ID: <13623957.1207516162918.JavaMail.jboss@colo-br-02.atl.jboss.com> I can load the file using the following code: FileInputStream loInputXSLT = new FileInputStream("/var/opt/transformation.xslt"); However... I would really like this xslt file to be located in some sort of resource directory within the jar file... eg: META-INF or something... is this possible? I tried using getResourceAsStream() as above, however, this does not work... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4141920#4141920 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4141920 From do-not-reply at jboss.com Sun Apr 6 20:22:46 2008 From: do-not-reply at jboss.com (muralidhar_ch) Date: Sun, 6 Apr 2008 20:22:46 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Failed to create a new SAX parser Message-ID: <31003409.1207527766392.JavaMail.jboss@colo-br-02.atl.jboss.com> I got the root cause of this exception. Thanks to Dan for giving me the clue for the same. This issue was also posted by me on seamframework.org and it is updated with the resolution for the same. http://www.seamframework.org/Community/UnableToDeploySeamOnJBoss422GA ~ Murali View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4141929#4141929 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4141929 From do-not-reply at jboss.com Sun Apr 6 22:36:07 2008 From: do-not-reply at jboss.com (pramod_bs) Date: Sun, 6 Apr 2008 22:36:07 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: JBoss web service client Message-ID: <25974589.1207535767086.JavaMail.jboss@colo-br-02.atl.jboss.com> You can use wsconsume utility from JBoss (JBOSS_HOME/bin) to create all the artifacts needed for creating a client. wsconsume -k -o View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4141931#4141931 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4141931 From do-not-reply at jboss.com Mon Apr 7 02:27:32 2008 From: do-not-reply at jboss.com (nheminge) Date: Mon, 7 Apr 2008 02:27:32 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - JBossWS POJO register as JMS listener Message-ID: <29595723.1207549652609.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, I am having problems implementing a web service POJO that also registers as a JMS listener. I need a web service to recieve updates from a JMS topic and maintain a stateful list of data that is then returned from the webservice when it is called. I tried creating a topic connection and registering the web service POJO in the constructor (by doing recv.setMessageListener(this);). However, it does not seem to ever get invoked/registered correctly since it does not recieve messages from my test JMS publisher. I have been reading and it seems that also I will have a problem because the POJO implementation means it might create a new instance on every invocation (thus clearing out my stateful java.util.list that I want maintained). A better description of what I want to do: I need to have java commandline application send JMS messages to the web service that include the IP/port of the server the commandline program is running on. The web service then needs to update a list of IP/ports internally (there will be many commandline programs sending out updates). Then, the web service needs to return a comma-delimited string of the IPs/ports when a method is invoked. However, I need this to run in a clustered/distributed fashion, so I need to have the web services listen on a topic for the IP/port updates, so that I make sure they are all synced up. Thanks! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4141951#4141951 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4141951 From do-not-reply at jboss.com Mon Apr 7 03:30:29 2008 From: do-not-reply at jboss.com (gaurishjboss) Date: Mon, 7 Apr 2008 03:30:29 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: JBoss web service client Message-ID: <16547001.1207553429174.JavaMail.jboss@colo-br-02.atl.jboss.com> Thanx Pramod for replying.....already done with the wsconsume part......tell me something about the client.....got some kind of error related to SOAP messages. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4141964#4141964 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4141964 From do-not-reply at jboss.com Mon Apr 7 03:37:38 2008 From: do-not-reply at jboss.com (nikhilkshirsagar) Date: Mon, 7 Apr 2008 03:37:38 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - javax.xml.ws.WebServiceException: java.lang.UnsupportedOpera Message-ID: <15725391.1207553858155.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi I am new to web services.Recently I deployed a 'Say Hello' web service on jboss .The IDE I used was eclipse. I also suceeded in developing the client by using stubs generated by jbossws.How ever when the client tries to call the web service I get an error.The stack trace is as follows javax.xml.ws.WebServiceException: java.lang.UnsupportedOperationException: setProperty must be overridden by all subclasses of SOAPMessage org.jboss.ws.core.jaxws.client.ClientImpl.handleRemoteException(ClientImpl.java:304) org.jboss.ws.core.jaxws.client.ClientImpl.invoke(ClientImpl.java:242) org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:164) org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:150) $Proxy144.sayHello(Unknown Source) src.Callws.Call(Callws.java:17) src.Client.doGet(Client.java:32) javax.servlet.http.HttpServlet.service(HttpServlet.java:690) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) Can someone please tell me how to handle this error. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4141966#4141966 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4141966 From do-not-reply at jboss.com Mon Apr 7 09:21:56 2008 From: do-not-reply at jboss.com (pramod_bs) Date: Mon, 7 Apr 2008 09:21:56 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: JBoss web service client Message-ID: <16047119.1207574516346.JavaMail.jboss@colo-br-02.atl.jboss.com> Can you please post your code. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4142070#4142070 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4142070 From do-not-reply at jboss.com Mon Apr 7 09:59:37 2008 From: do-not-reply at jboss.com (bortx) Date: Mon, 7 Apr 2008 09:59:37 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Specifying a null wsdlLocation on Service constructor Message-ID: <30656401.1207576777648.JavaMail.jboss@colo-br-02.atl.jboss.com> Hello, I have an application written in jbossws 1.2.1 wich uses this code to invoke a web service | QName qname = new QName("http://myapp.com/webservices/impl", "TestService"); | TestService_Service service = new TestService_Service(null, qname); | TestService stub = (TestService) service.getTestServicePort(); | | configureStub(ctx, (javax.xml.ws.BindingProvider)stub); | | return stub.hello("hello world"); | I try to migrate it to jbossws 2.0.3 and get a NullPointerException, because I've specified a null wsdlLocation on TestService_Service constructor. Is there a way of making it work without specifying an wsdlLocation at this point? Thanks a lot. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4142086#4142086 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4142086 From do-not-reply at jboss.com Mon Apr 7 10:54:25 2008 From: do-not-reply at jboss.com (Ratoo) Date: Mon, 7 Apr 2008 10:54:25 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - [METRO] com.sun.xml.ws.api.pipe.TubelineAssemblerFactory Message-ID: <28548128.1207580065980.JavaMail.jboss@colo-br-02.atl.jboss.com> Hello! I'd like to know if JBoss team planning to support METRO SPIs like TubelineAssemblerFactory, com.sun.xml.ws.api.BindingIDFactory and so on... Now I have warnings: WARN [RuntimeModelDeploymentAspect] Unable to resolve SPI for type : class com.sun.xml.ws.api.pipe.TubelineAssemblerFactory Thank you. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4142097#4142097 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4142097 From do-not-reply at jboss.com Mon Apr 7 11:00:57 2008 From: do-not-reply at jboss.com (jmoring) Date: Mon, 7 Apr 2008 11:00:57 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Basic Authentication Message-ID: <31082422.1207580457790.JavaMail.jboss@colo-br-02.atl.jboss.com> OK no replies. That either means that I posed a very stupid question or that no one know the answer. After poking around a little it appears that the web.xml that is generated in the background has no security constraint section. I don't know if that is pertinent or not. This should not be this difficult View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4142098#4142098 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4142098 From do-not-reply at jboss.com Mon Apr 7 12:09:05 2008 From: do-not-reply at jboss.com (PeterJ) Date: Mon, 7 Apr 2008 12:09:05 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Web services client Message-ID: <2717899.1207584545422.JavaMail.jboss@colo-br-02.atl.jboss.com> Did you do a search in the forums on the error message? (Searching on "setProperty must be overridden" is sufficient.) This issues has come up quite often. Also, what version of JBossWS are you using? And what version of the JDK? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4142129#4142129 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4142129 From do-not-reply at jboss.com Mon Apr 7 12:16:45 2008 From: do-not-reply at jboss.com (PeterJ) Date: Mon, 7 Apr 2008 12:16:45 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Loading a file into an InputStream within webservice cod Message-ID: <19859601.1207585005706.JavaMail.jboss@colo-br-02.atl.jboss.com> Try: URL f = Thread.currentThread().getContextClassLoader().findResource("transformation.xslt"); | FileInputStream xxx = new FileInputStream(f); and place transformation.xslt in the base directory of the JAR file. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4142132#4142132 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4142132 From do-not-reply at jboss.com Mon Apr 7 13:14:03 2008 From: do-not-reply at jboss.com (mjremijan) Date: Mon, 7 Apr 2008 13:14:03 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Changing Message-ID: <27668653.1207588443543.JavaMail.jboss@colo-br-02.atl.jboss.com> Is there an Annotation which I can put in my Java source file to change the alue of The 127.0.0.1 IP shouldn't be there. I want to use the name of my virtual domain instead. | - | - | | | | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4142147#4142147 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4142147 From do-not-reply at jboss.com Mon Apr 7 13:42:33 2008 From: do-not-reply at jboss.com (PeterJ) Date: Mon, 7 Apr 2008 13:42:33 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Changing Did you try starting the app server with the -b option? Using -b 0.0.0.0 will set the soap address location to the host name. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4142150#4142150 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4142150 From do-not-reply at jboss.com Mon Apr 7 16:01:02 2008 From: do-not-reply at jboss.com (pramod_bs) Date: Mon, 7 Apr 2008 16:01:02 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - SAML support for jbossws-native Message-ID: <5325680.1207598462101.JavaMail.jboss@colo-br-02.atl.jboss.com> Is there a roadmap for SAML support from native stack. I saw an issue being closed. http://jira.jboss.org/jira/browse/JBWS-1544 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4142178#4142178 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4142178 From do-not-reply at jboss.com Mon Apr 7 16:13:48 2008 From: do-not-reply at jboss.com (regget) Date: Mon, 7 Apr 2008 16:13:48 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Request Message not mapping to Request Object Properly Message-ID: <4941024.1207599228452.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, I have generated my wsdl beans with my wsdl file and deployed the jbossws web service onto my application server. When I try to call my web service with my soap message, the request message doesn't translate to the request object correctly. For instance, say the request message is accountInfo, and my request object is accountinfo. The accountinfo pojo is created but its variables are all null. This shouldn't be the case as my request message has all the required values filled in. Playing around, I got it to populate the pojo properly but the solution is not acceptable. This is what i'm expecting: Henry however, the above won't populate the pojo properly, but the following will: Henry I realized that 'name' is the variable name of in AccountInfo, and as long as I use the variable names, it will populate the pojo properly. But the webservice client will be generating their request message based on the wsdl and xsd files because that's what they are expecting to work. Is this expected behaviour of jbossws or have I strayed away? Or perhaps there is some flag I have to turn on? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4142181#4142181 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4142181 From do-not-reply at jboss.com Mon Apr 7 16:14:46 2008 From: do-not-reply at jboss.com (pramod_bs) Date: Mon, 7 Apr 2008 16:14:46 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: NullPointerException when processing response Message-ID: <17864499.1207599286066.JavaMail.jboss@colo-br-02.atl.jboss.com> It seems like the client is not sending the header. I think you can use some tool like tcpmon (https://tcpmon.dev.java.net/) to see what is going out of your port. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4142182#4142182 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4142182 From do-not-reply at jboss.com Mon Apr 7 17:00:02 2008 From: do-not-reply at jboss.com (regget) Date: Mon, 7 Apr 2008 17:00:02 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Request Message not mapping to Request Object Properly Message-ID: <24934117.1207602002999.JavaMail.jboss@colo-br-02.atl.jboss.com> I realize annotations are missing from the wsdl beans. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4142191#4142191 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4142191 From do-not-reply at jboss.com Mon Apr 7 17:21:43 2008 From: do-not-reply at jboss.com (raags) Date: Mon, 7 Apr 2008 17:21:43 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Use Map as return type/parameter in a web method.. Message-ID: <5253823.1207603303569.JavaMail.jboss@colo-br-02.atl.jboss.com> I tried to use Map as a return type in one of my web service methods but I got a JAXB error stating that it does not support Map because it's an interface. So I added an adapter for the Map but it gets ignored. Is it because JBossWS 1.2.1 GA does not support JAXB annotations on its classes? Do you know? | @Stateless | @WebService() | @Local(IHelloWorldService.class) | @Remote(IHelloWorldService.class) | @SOAPBinding(style = SOAPBinding.Style.DOCUMENT, use = SOAPBinding.Use.LITERAL, parameterStyle = SOAPBinding.ParameterStyle.WRAPPED) | @XmlRootElement(name="HelloWorldBean") | public class HelloWorldBean | { | | @XmlJavaTypeAdapter(MapAdapter.class) | @XmlJavaTypeAdapter(CourseListAdapter.class) | public void getMap(Map map) | { | | | } | } | class CourseListAdapter extends XmlAdapter> { | public Map unmarshal( Course[] value ) { | Map r = new HashMap(); | for( Course c : value ) | r.put(c.id,c); | return r; | } | | public Course[] marshal( Map value ) { | return value.values().toArray(new Course[value.size()]); | } | | } | | Am I doing something wrong here? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4142196#4142196 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4142196 From do-not-reply at jboss.com Mon Apr 7 17:43:55 2008 From: do-not-reply at jboss.com (anacarda) Date: Mon, 7 Apr 2008 17:43:55 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Loading a file into an InputStream within webservice cod Message-ID: <26194268.1207604635437.JavaMail.jboss@colo-br-02.atl.jboss.com> Thanks for that, thats what I was looking for :) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4142199#4142199 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4142199 From do-not-reply at jboss.com Mon Apr 7 19:04:07 2008 From: do-not-reply at jboss.com (eric@attask.com) Date: Mon, 7 Apr 2008 19:04:07 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - How do I override the ServiceEndpointAddress? Message-ID: <7108070.1207609447582.JavaMail.jboss@colo-br-02.atl.jboss.com> Trying to upgrade from JBoss 4.0.5 to JBoss 4.2.2 All of the EJB's and WebServices are created using xdoclet. I'm not using EJB3 or even annotations to create the EJBs or web services. I copied over jbossws-1.2.0.SP1 and removed the new jbossws folder to ensure everything will work fine. All testcase pass; however, in jboss 4.2.2 the web service API has changed. Inside the jboss.xml I can define the port-component-uri but it doesn't seem to honor it in jboss 4.2.2 it seems to pull it from the ear/jar context path. Any Ideas? | | API | API | local/API | | false | | soapAPI | /attaskWS/API | | | | | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4142213#4142213 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4142213 From do-not-reply at jboss.com Mon Apr 7 19:19:22 2008 From: do-not-reply at jboss.com (eric@attask.com) Date: Mon, 7 Apr 2008 19:19:22 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: How do I override the ServiceEndpointAddress? Message-ID: <16597165.1207610362407.JavaMail.jboss@colo-br-02.atl.jboss.com> Let me further explain my findings, the seems to append to the context. I need to set it. For example | API | API | local/API | | false | | soapAPI | http://quadlinux:8080/attaskWS/API | | | | | will yeild: http://quadlinux:8080/redrock-redrock-ejb/http://quadlinux:8080/attaskWS/API What I'm trying to get is: http://quadlinux:8080/attaskWS/API How do I do this? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4142216#4142216 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4142216 From do-not-reply at jboss.com Tue Apr 8 02:26:42 2008 From: do-not-reply at jboss.com (nikhilkshirsagar) Date: Tue, 8 Apr 2008 02:26:42 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Web services client Message-ID: <20563472.1207636002858.JavaMail.jboss@colo-br-02.atl.jboss.com> Thanx peter for replying.I m using jbossws 1.2.1 which comes with jboss 4.2.1 GA.The jdk i used was 1.6 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4142250#4142250 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4142250 From do-not-reply at jboss.com Tue Apr 8 03:35:26 2008 From: do-not-reply at jboss.com (boopet) Date: Tue, 8 Apr 2008 03:35:26 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: NullPointerException when processing response Message-ID: <5923326.1207640126740.JavaMail.jboss@colo-br-02.atl.jboss.com> hm our client is sending the wsse headers and authentification by UserNameToken is ok. The result returned by the server does not include any wsse information, which should also be OK. but the stacktrace leads to the assumption, that the jboss WS client tries to find some wsse information in the answer anyway. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4142262#4142262 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4142262 From do-not-reply at jboss.com Tue Apr 8 03:38:24 2008 From: do-not-reply at jboss.com (maffeis) Date: Tue, 8 Apr 2008 03:38:24 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - org.jboss.ws.WSException: arg0 is not a valid property on cl Message-ID: <27307307.1207640304062.JavaMail.jboss@colo-br-02.atl.jboss.com> I'm getting the following error in deploying a simple document/literal web service with jbossws-3.0.1-native-2.0.4.GA on jboss 4.2.2.GA. org.jboss.ws.WSException: arg0 is not a valid property on class ... Full stack trace: | 09:22:41,781 ERROR [MainDeployer] Could not start deployment: file:/C:/dev/tools/j2ee/jboss-4.2.2.GA/server/viperats/deploy/mobank-server-core.war | org.jboss.ws.WSException: arg0 is not a valid property on class com.vipera.ts.server.ws.jaxws.NewOperation | at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getElementPropertyAccessor(JAXBContextImpl.java:926) | at org.jboss.ws.metadata.accessor.JAXBAccessorFactory.create(JAXBAccessorFactory.java:51) | at org.jboss.ws.metadata.umdm.EndpointMetaData.createAccessor(EndpointMetaData.java:713) | at org.jboss.ws.metadata.umdm.EndpointMetaData.eagerInitializeAccessors(EndpointMetaData.java:694) | at org.jboss.ws.metadata.umdm.EndpointMetaData.initializeInternal(EndpointMetaData.java:567) | at org.jboss.ws.metadata.umdm.EndpointMetaData.eagerInitialize(EndpointMetaData.java:553) | at org.jboss.ws.metadata.umdm.ServiceMetaData.eagerInitialize(ServiceMetaData.java:435) | at org.jboss.ws.metadata.umdm.UnifiedMetaData.eagerInitialize(UnifiedMetaData.java:196) | at org.jboss.wsf.stack.jbws.EagerInitializeDeploymentAspect.create(EagerInitializeDeploymentAspect.java:50) | This happens when the WAR holding the web service is deployed. The WSDL (that's what you get when you create a document/literal WSDL using the Eclipse wizard): | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The WebService implementation: | @WebService(name = "MyTest", targetNamespace = "http://www.example.org/MyTest/") | public class MyTestWebService implements MyTest { | public String newOperation(String in) { | return null; | } | } | web.xml configuration: | | MyTest | com.vipera.ts.server.ws.MyTestWebService | | | | MyTest | /mt | | Workaround: In the WSDL, rename "in" to "arg0" and "out" to "return", but I'd rather like to avoid that. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4142264#4142264 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4142264 From do-not-reply at jboss.com Tue Apr 8 07:42:54 2008 From: do-not-reply at jboss.com (ljgp) Date: Tue, 8 Apr 2008 07:42:54 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - No tests for @SchemaValidation annotation in 3.0.1 ? Message-ID: <17021112.1207654974260.JavaMail.jboss@colo-br-02.atl.jboss.com> In the distribution of 3.0.1 I cannot find any test for the @SchemaValidation annotation on a webservice, is this already supported ? Cheers, Luc. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4142326#4142326 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4142326 From do-not-reply at jboss.com Tue Apr 8 07:45:29 2008 From: do-not-reply at jboss.com (ljgp) Date: Tue, 8 Apr 2008 07:45:29 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - @SchemaValidation annotation does not seem to work Message-ID: <11065052.1207655129539.JavaMail.jboss@colo-br-02.atl.jboss.com> Also, when I add this to my webservice: @SchemaValidation( enabled=true, errorHandler=nl.kb.hrd.dd.karakterisering.impls.ValidationErrorHandler.class, schemaLocation="ergens") and send an invalid request, nothing happens (or seems to happen). The request just gets passed, the handler is not called, and I see no errormessage about the invalid schemaLocation. A related question: in the JAX-WS RI, it does not seem to be necessary to specify the schema location. Why is it needed here ? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4142327#4142327 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4142327 From do-not-reply at jboss.com Tue Apr 8 08:21:37 2008 From: do-not-reply at jboss.com (yasir.arsalan) Date: Tue, 8 Apr 2008 08:21:37 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - terminating zero in SOAP request Message-ID: <3553817.1207657297857.JavaMail.jboss@colo-br-02.atl.jboss.com> I am having a problem in makin a call using Axis client. I have generated the client in java using wsdl file. When I make the call using generated client it generates a SOAP request message, that I have pasted below, which contains a terminating zero in it [ 0 ]. This terminating zero is creating problem for the web service server to recognize the recieving request message as a valid xml format for SOAP. Does any body have idea why this terminating zero is for? how can I remove this terminating zero from the SOAP request. SOAP request message is as follows: POST http://webserviceserver:1080/eproxy/service/security HTTP/1.1 Content-Type: text/xml; charset=utf-8 SOAPAction: "http://ABC.com/Security/LoginExtended" User-Agent: Axis/1.4 Host: vs-devbwb:1080 Proxy-Connection: Keep-Alive Transfer-Encoding: chunked 135 0 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4142335#4142335 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4142335 From do-not-reply at jboss.com Tue Apr 8 09:05:43 2008 From: do-not-reply at jboss.com (Karnan) Date: Tue, 8 Apr 2008 09:05:43 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Web Service Response problem Message-ID: <28482204.1207659943355.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, Im using JBossws203GA with jboss405GA. I generated interfaces and service classes with wsconsume from wsdl file And i also wrote my client which will consume the service. BUt i have a prob with the response of the server. Details: here is my web method: | | @WebMethod(operationName = "OpenSession", action = "http://WebServicesToolkit.net/SV/SessionContext/v1.0/OpenSession") | @RequestWrapper(localName = "OpenSession", targetNamespace = "http://WebServicesToolkit.net/SV/SessionContext/v1.0/", className = "net.webservicestoolkit.sv.sessioncontext.v1.OpenSession") | @ResponseWrapper(localName = "OpenSessionResponse", targetNamespace = "http://WebServicesToolkit.net/SV/SessionContext/v1.0/", className = "net.webservicestoolkit.sv.sessioncontext.v1.OpenSessionResponse") | public void openSession( | @WebParam(name = "UserName", targetNamespace = "http://WebServicesToolkit.net/SV/SessionContext/v1.0/") | String userName, | @WebParam(name = "Password", targetNamespace = "http://WebServicesToolkit.net/SV/SessionContext/v1.0/") | String password, | @WebParam(name = "projectLanguage", targetNamespace = "http://WebServicesToolkit.net/SV/SessionContext/v1.0/") | SVLanguage projectLanguage, | @WebParam(name = "OpenSessionResult", targetNamespace = "http://WebServicesToolkit.net/SV/SessionContext/v1.0/", mode = WebParam.Mode.OUT) | Holder openSessionResult, | @WebParam(name = "SessionId", targetNamespace = "http://WebServicesToolkit.net/SV/SessionContext/v1.0/", mode = WebParam.Mode.OUT) | Holder sessionId){ | | Holder tmp = new Holder("12345"); | sessionId = tmp; | openSessionResult = new Holder(); | System.out.println("openSession"); | } | here is the client: When i call the this remote method from the client, i always get the value 0. I checked the type of the response (0) with getClass().getName(), and i got String. Where is the prob, can someone help me thx a lot | serviceName = new QName("http://WebServicesToolkit.net/SV/SessionContext/v1.0/", "SessionContext"); | SessionContext service = new SessionContext(wsdlLocation, serviceName); | SessionContextSoap scs = service.getSessionContextSoap(); | | Holder openSessionResult = new Holder(); | Holder sessionId = new Holder(); | System.out.println("sessionId avant appel: " + sessionId.value); | scs.openSession("Karnan","azerty",SVLanguage.CONTEXT_DEFAULT,openSessionResult,sessionId); | System.out.println("Karnan sessionId: " + sessionId); | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4142350#4142350 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4142350 From do-not-reply at jboss.com Tue Apr 8 09:14:22 2008 From: do-not-reply at jboss.com (Karnan) Date: Tue, 8 Apr 2008 09:14:22 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Web Service Response problem Message-ID: <8849691.1207660462784.JavaMail.jboss@colo-br-02.atl.jboss.com> and i am also using that with java 1.5 because jbossws 405GA can only work with java 1.5 Can JaxWs2 work with jbossws203ga and jboss405ga ??? ithink yes but not sure thx again, i really need help View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4142353#4142353 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4142353 From do-not-reply at jboss.com Tue Apr 8 09:41:46 2008 From: do-not-reply at jboss.com (pramod_bs) Date: Tue, 8 Apr 2008 09:41:46 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: NullPointerException when processing response Message-ID: <12820209.1207662106029.JavaMail.jboss@colo-br-02.atl.jboss.com> Here are some code snippets from JBoss code. I am not sure if you already loked at this. If not you can use eclipse debugger to see what is coming in the parameters. I am assuming the header is null. I might be wrong. Try it out. WSSecurityDispatcher.java | | public static void handleInbound(CommonMessageContext ctx) throws SOAPException, SOAPFaultException | { | WSSecurityConfiguration config = getSecurityConfig(ctx); | SOAPMessageImpl soapMessage = (SOAPMessageImpl)ctx.getSOAPMessage(); | | SOAPHeader soapHeader = soapMessage.getSOAPHeader(); QName secQName = new QName(Constants.WSSE_NS, "Security"); | Element secHeaderElement = Util.findElement(soapHeader, secQName); | | | | | Util.java | | public static Element findElement(Element root, QName name) | { | // Here lies your standard recusive DFS..... | if (matchNode(root, name)) | return root; | | | | public static boolean matchNode(Node node, QName name, boolean local) | { | return equalStrings(node.getLocalName(), name.getLocalPart()) | && (local || equalStrings(node.getNamespaceURI(), name.getNamespaceURI())); | } | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4142363#4142363 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4142363 From do-not-reply at jboss.com Tue Apr 8 09:53:20 2008 From: do-not-reply at jboss.com (boopet) Date: Tue, 8 Apr 2008 09:53:20 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: NullPointerException when processing response Message-ID: <1109517.1207662800223.JavaMail.jboss@colo-br-02.atl.jboss.com> yes i could check this with debugger. the strange thing is: why is the WSSecurityDispatcher invoked at all, when there is no security information inside the response ? Or does JBossWS just simply require a wsse tag inside the response, when the request had those? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4142367#4142367 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4142367 From do-not-reply at jboss.com Tue Apr 8 10:26:34 2008 From: do-not-reply at jboss.com (pramod_bs) Date: Tue, 8 Apr 2008 10:26:34 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: NullPointerException when processing response Message-ID: <18405237.1207664794884.JavaMail.jboss@colo-br-02.atl.jboss.com> R u sure you handleInbound is invoked with the response. I think this is invoked while you send the message from the client. Check it out. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4142386#4142386 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4142386 From do-not-reply at jboss.com Tue Apr 8 10:37:06 2008 From: do-not-reply at jboss.com (boopet) Date: Tue, 8 Apr 2008 10:37:06 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: NullPointerException when processing response Message-ID: <30267165.1207665426719.JavaMail.jboss@colo-br-02.atl.jboss.com> well i am not sure, but my tcpmon shows the request and also the response , so i think the request has been processed properly. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4142391#4142391 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4142391 From do-not-reply at jboss.com Tue Apr 8 10:44:04 2008 From: do-not-reply at jboss.com (Karnan) Date: Tue, 8 Apr 2008 10:44:04 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Web Service Response problem Message-ID: <10974076.1207665844825.JavaMail.jboss@colo-br-02.atl.jboss.com> this is what i get when i listen the http port during the remote call of the method | | KarnanazertyContextDefault | thx what is the real prob ? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4142394#4142394 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4142394 From do-not-reply at jboss.com Tue Apr 8 11:18:22 2008 From: do-not-reply at jboss.com (PeterJ) Date: Tue, 8 Apr 2008 11:18:22 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Web services client Message-ID: <12571097.1207667902387.JavaMail.jboss@colo-br-02.atl.jboss.com> JBossAS 4.2.1 is not qualified with JDK 6. You need to use JDK 5. For more discussion as to why, see my post at http://www.jboss.com/index.html?module=bb&op=viewtopic&t=102355&postdays=0&postorder=asc&start=10 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4142404#4142404 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4142404 From do-not-reply at jboss.com Tue Apr 8 12:04:55 2008 From: do-not-reply at jboss.com (thomas.diesler@jboss.com) Date: Tue, 8 Apr 2008 12:04:55 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: How do I override the ServiceEndpointAddress? Message-ID: <10782698.1207670695072.JavaMail.jboss@colo-br-02.atl.jboss.com> http://jbws.dyndns.org/mediawiki/index.php?title=FAQ#How_do_I_know_what_endpoint_address_is_being_used.3F View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4142426#4142426 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4142426 From do-not-reply at jboss.com Tue Apr 8 12:11:06 2008 From: do-not-reply at jboss.com (thomas.diesler@jboss.com) Date: Tue, 8 Apr 2008 12:11:06 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: org.jboss.ws.WSException: arg0 is not a valid property o Message-ID: <32515679.1207671066961.JavaMail.jboss@colo-br-02.atl.jboss.com> The wsdl should be generated by jbossws tools. You can also get it from the deployed endpoint. Note, that | @WebService(name = "MyTest", targetNamespace = "http://www.example.org/MyTest/") | public class MyTestWebService implements MyTest { | public String newOperation(String in) { | return null; | } | } | Is a doc/lit/wrapped service that leaves the wrapper beans undefined. You could also supply wrapper types with proper jaxb annotations. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4142429#4142429 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4142429 From do-not-reply at jboss.com Tue Apr 8 12:16:10 2008 From: do-not-reply at jboss.com (thomas.diesler@jboss.com) Date: Tue, 8 Apr 2008 12:16:10 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: No tests for @SchemaValidation annotation in 3.0.1 ? Message-ID: <1529434.1207671370580.JavaMail.jboss@colo-br-02.atl.jboss.com> We do not distribute our entire testsuite. You can run the test from the src. http://jira.jboss.org/jira/browse/JBWS-1172 http://jbws.dyndns.org/mediawiki/index.php?title=Building_From_Source#Checkout_and_build_JBossWS-Native View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4142433#4142433 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4142433 From do-not-reply at jboss.com Tue Apr 8 12:19:37 2008 From: do-not-reply at jboss.com (thomas.diesler@jboss.com) Date: Tue, 8 Apr 2008 12:19:37 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: terminating zero in SOAP request Message-ID: <14509954.1207671577685.JavaMail.jboss@colo-br-02.atl.jboss.com> Not sure if the terminating 0 is valid, but it definitely has to do with chunking. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4142434#4142434 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4142434 From do-not-reply at jboss.com Tue Apr 8 12:25:00 2008 From: do-not-reply at jboss.com (thomas.diesler@jboss.com) Date: Tue, 8 Apr 2008 12:25:00 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Web Service Response problem Message-ID: <11473368.1207671900335.JavaMail.jboss@colo-br-02.atl.jboss.com> Have a look at the jaxws/holder test | ant -Dtest=jaxws/holder test | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4142435#4142435 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4142435 From do-not-reply at jboss.com Tue Apr 8 12:26:23 2008 From: do-not-reply at jboss.com (thomas.diesler@jboss.com) Date: Tue, 8 Apr 2008 12:26:23 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Use Map as return type/parameter in a web method.. Message-ID: <10819819.1207671983759.JavaMail.jboss@colo-br-02.atl.jboss.com> Yes, you use a Map ;-) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4142436#4142436 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4142436 From do-not-reply at jboss.com Tue Apr 8 12:30:34 2008 From: do-not-reply at jboss.com (thomas.diesler@jboss.com) Date: Tue, 8 Apr 2008 12:30:34 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: NullPointerException when processing response Message-ID: <22853076.1207672234717.JavaMail.jboss@colo-br-02.atl.jboss.com> Please show us the client security config and the incomming response message View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4142437#4142437 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4142437 From do-not-reply at jboss.com Tue Apr 8 12:34:22 2008 From: do-not-reply at jboss.com (thomas.diesler@jboss.com) Date: Tue, 8 Apr 2008 12:34:22 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: SAML support for jbossws-native Message-ID: <32644246.1207672462376.JavaMail.jboss@colo-br-02.atl.jboss.com> You can vote for http://jira.jboss.org/jira/browse/JBWS-491 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4142438#4142438 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4142438 From do-not-reply at jboss.com Tue Apr 8 12:36:55 2008 From: do-not-reply at jboss.com (thomas.diesler@jboss.com) Date: Tue, 8 Apr 2008 12:36:55 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Changing This is an FAQ http://jbws.dyndns.org/mediawiki/index.php?title=FAQ#How_does_rewriting_of_the_soap_address_in_WSDL_work.3F View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4142441#4142441 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4142441 From do-not-reply at jboss.com Tue Apr 8 12:59:13 2008 From: do-not-reply at jboss.com (maffeis) Date: Tue, 8 Apr 2008 12:59:13 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: org.jboss.ws.WSException: arg0 is not a valid property o Message-ID: <5699002.1207673953370.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi Thomas I'm following the topdown model and so I've created the WSDL first ... I tried adding @WebMethod and @WebParam annotations, but that did not solve my problem. Or can you give me an example of the jaxb annotations you are suggesting? Regards, Silvano View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4142448#4142448 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4142448 From do-not-reply at jboss.com Tue Apr 8 13:19:19 2008 From: do-not-reply at jboss.com (Karnan) Date: Tue, 8 Apr 2008 13:19:19 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Web Service Response problem Message-ID: <14293823.1207675159363.JavaMail.jboss@colo-br-02.atl.jboss.com> Im new on web services so i dont know what you mean exactly. should i test this command on the client side or something else? thx View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4142458#4142458 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4142458 From do-not-reply at jboss.com Tue Apr 8 14:51:13 2008 From: do-not-reply at jboss.com (raags) Date: Tue, 8 Apr 2008 14:51:13 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Use Map as return type/parameter in a web method.. Message-ID: <23142230.1207680673707.JavaMail.jboss@colo-br-02.atl.jboss.com> But when I use Map, JAXB does throws an error stating that it does not support interfaces. Should I upgrade to JBossWS 2.0? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4142491#4142491 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4142491 From do-not-reply at jboss.com Tue Apr 8 18:02:36 2008 From: do-not-reply at jboss.com (thoste) Date: Tue, 8 Apr 2008 18:02:36 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Where do I have to *.jws web service files in JBoss ? Message-ID: <10797904.1207692156479.JavaMail.jboss@colo-br-02.atl.jboss.com> Sorry for this newbie question: >From TomCat I know an easy way to deploy simple web services in *.jws files like: public class MyWebServiceClass { public double myWebServiceMethd( String job, double x ) { if( "quare".equalsIgnoreCase( job ) ) return x * x; if( "root".equalsIgnoreCase( job ) ) return Math.sqrt( x ); return 0.; } } I can put them into: \webapps\axis and they are available. Into which directory can I put such *.jws files in JBoss? Thomas View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4142522#4142522 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4142522 From do-not-reply at jboss.com Tue Apr 8 18:05:11 2008 From: do-not-reply at jboss.com (thoste) Date: Tue, 8 Apr 2008 18:05:11 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - What is the difference between JAX-WS and JBossWS ? Message-ID: <11651059.1207692311387.JavaMail.jboss@colo-br-02.atl.jboss.com> >From some articles I know that JBossWs is an implementation of the original JAX-WS for JBoss AS? That seems from my point of view that there are some slight modification/differences. Is that correct? What are the differences in detail ? Thomas View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4142524#4142524 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4142524 From do-not-reply at jboss.com Tue Apr 8 22:10:14 2008 From: do-not-reply at jboss.com (pramod_bs) Date: Tue, 8 Apr 2008 22:10:14 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Where do I have to *.jws web service files in JBoss ? Message-ID: <28838454.1207707014064.JavaMail.jboss@colo-br-02.atl.jboss.com> If you are planning to use Jax-WS @WebService( name=" ", targetNamespace = " ", serviceName = ) @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE, style = SOAPBinding.Style.DOCUMENT) public class MyWebServiceClass { @WebMethod ( ) public double myWebServiceMethd( String job, double x ) { if( "quare".equalsIgnoreCase( job ) ) return x * x; if( "root".equalsIgnoreCase( job ) ) return Math.sqrt( x ); return 0.; } } In the web.xml have a serlvet entry. OR You can use the session bean. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4142544#4142544 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4142544 From do-not-reply at jboss.com Wed Apr 9 00:22:21 2008 From: do-not-reply at jboss.com (thomas.diesler@jboss.com) Date: Wed, 9 Apr 2008 00:22:21 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Web Service Response problem Message-ID: <24777827.1207714941369.JavaMail.jboss@colo-br-02.atl.jboss.com> You could study an already working test and go from there. http://jbws.dyndns.org/mediawiki/index.php?title=Building_From_Source View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4142554#4142554 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4142554 From do-not-reply at jboss.com Wed Apr 9 00:25:14 2008 From: do-not-reply at jboss.com (thomas.diesler@jboss.com) Date: Wed, 9 Apr 2008 00:25:14 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: org.jboss.ws.WSException: arg0 is not a valid property o Message-ID: <16280465.1207715115118.JavaMail.jboss@colo-br-02.atl.jboss.com> Then you should use wsconsume to generate the SEI from the wsdl. If it does not produce java artifacts that are in line with your wsdl, it's a bug that would need to filed in jira View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4142555#4142555 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4142555 From do-not-reply at jboss.com Wed Apr 9 00:36:21 2008 From: do-not-reply at jboss.com (thomas.diesler@jboss.com) Date: Wed, 9 Apr 2008 00:36:21 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Where do I have to *.jws web service files in JBoss ? Message-ID: <7252296.1207715781743.JavaMail.jboss@colo-br-02.atl.jboss.com> http://jbws.dyndns.org/mediawiki/index.php?title=Quick_Start View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4142557#4142557 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4142557 From do-not-reply at jboss.com Wed Apr 9 00:38:37 2008 From: do-not-reply at jboss.com (thomas.diesler@jboss.com) Date: Wed, 9 Apr 2008 00:38:37 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: What is the difference between JAX-WS and JBossWS ? Message-ID: <31891378.1207715917325.JavaMail.jboss@colo-br-02.atl.jboss.com> jax-ws is the spec. http://jcp.org/en/jsr/detail?id=224 jbossws is its implementation. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4142558#4142558 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4142558 From do-not-reply at jboss.com Wed Apr 9 00:47:50 2008 From: do-not-reply at jboss.com (thomas.diesler@jboss.com) Date: Wed, 9 Apr 2008 00:47:50 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Specifying a null wsdlLocation on Service constructor Message-ID: <25686920.1207716470551.JavaMail.jboss@colo-br-02.atl.jboss.com> This is a bug. Please file a jira that shows the stack trace View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4142560#4142560 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4142560 From do-not-reply at jboss.com Wed Apr 9 00:54:21 2008 From: do-not-reply at jboss.com (thomas.diesler@jboss.com) Date: Wed, 9 Apr 2008 00:54:21 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Basic Authentication Message-ID: <21859130.1207716861600.JavaMail.jboss@colo-br-02.atl.jboss.com> The generated web.xml should have a security constraint section. In our testssuite, we have | //We're declaring the domain in the jboss.xml since we have different annotation packages for AS5 and AS42 | //@SecurityDomain("JBossWS") | @RolesAllowed({"friend"}) | http://jira.jboss.org/jira/browse/JBWS-2107 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4142562#4142562 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4142562 From do-not-reply at jboss.com Wed Apr 9 01:07:37 2008 From: do-not-reply at jboss.com (thomas.diesler@jboss.com) Date: Wed, 9 Apr 2008 01:07:37 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: javax.xml.ws.WebServiceException: java.lang.UnsupportedO Message-ID: <2145498.1207717657800.JavaMail.jboss@colo-br-02.atl.jboss.com> search the forum, this has popped up many times View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4142564#4142564 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4142564 From do-not-reply at jboss.com Wed Apr 9 01:17:10 2008 From: do-not-reply at jboss.com (thomas.diesler@jboss.com) Date: Wed, 9 Apr 2008 01:17:10 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: JBossWS POJO register as JMS listener Message-ID: <26299584.1207718230045.JavaMail.jboss@colo-br-02.atl.jboss.com> have look at our jms endpoint test View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4142566#4142566 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4142566 From do-not-reply at jboss.com Wed Apr 9 01:24:48 2008 From: do-not-reply at jboss.com (thomas.diesler@jboss.com) Date: Wed, 9 Apr 2008 01:24:48 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: How to authenticate and authorize with X509 Certificate? Message-ID: <12478911.1207718688788.JavaMail.jboss@colo-br-02.atl.jboss.com> We follow up with this http://jira.jboss.org/jira/browse/JBWS-2116 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4142567#4142567 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4142567 From do-not-reply at jboss.com Wed Apr 9 01:29:11 2008 From: do-not-reply at jboss.com (thomas.diesler@jboss.com) Date: Wed, 9 Apr 2008 01:29:11 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Limiting number of connections per WebService Message-ID: <2498242.1207718951405.JavaMail.jboss@colo-br-02.atl.jboss.com> yes, its a tomcat connector config option View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4142568#4142568 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4142568 From do-not-reply at jboss.com Wed Apr 9 01:39:24 2008 From: do-not-reply at jboss.com (thomas.diesler@jboss.com) Date: Wed, 9 Apr 2008 01:39:24 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: How to change http to https in wsdlsoap:address on WSDL Message-ID: <21838991.1207719564915.JavaMail.jboss@colo-br-02.atl.jboss.com> protocol (i.e. https://) is used when you specify a transport-guaranty in web.xml Also, please read http://jbws.dyndns.org/mediawiki/index.php?title=FAQ#How_does_rewriting_of_the_soap_address_in_WSDL_work.3F View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4142570#4142570 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4142570 From do-not-reply at jboss.com Wed Apr 9 02:47:42 2008 From: do-not-reply at jboss.com (thoste) Date: Wed, 9 Apr 2008 02:47:42 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - How do I install Axis on JBoss 4.x ? Message-ID: <28923276.1207723662091.JavaMail.jboss@colo-br-02.atl.jboss.com> As I unterstand Axis(2) is by default not included in JBoss (only JAX-WS). But Axis seems to be installable anyway. I googled a while for finding instructions on how to install Axis on JBoss 4.x AppServer. But I found only instructions for Jboss v3. Can someone point me to a step-by-step guide for v4? It seems to me that I have (after installation of Axis package) to disable/remove some special *.jar files from JBoss installation. Is that true? Thomas View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4142585#4142585 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4142585 From do-not-reply at jboss.com Wed Apr 9 03:35:12 2008 From: do-not-reply at jboss.com (boopet) Date: Wed, 9 Apr 2008 03:35:12 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: NullPointerException when processing response Message-ID: <18177605.1207726512646.JavaMail.jboss@colo-br-02.atl.jboss.com> this is the jboss-wsse-client.xml used: | | | | | | The Response received from the server is: HTTP/1.1 200 OK | Date: Wed, 02 Apr 2008 09:38:28 GMT | Transfer-Encoding: chunked | Content-Type: multipart/related; boundary=MIMEBoundaryurn_uuid_3A2968402D531FD9601207129108996; type="application/xop+xml"; start="<0.urn:uuid:3A2968402D531FD9601207129108997 at apache.org>"; start-info="text/xml" | Server: Apache-Coyote/1.1 | | --MIMEBoundaryurn_uuid_3A2968402D531FD9601207129108996 | Content-Type: application/xop+xml; charset=UTF-8; type="text/xml" | Content-Transfer-Encoding: binary | Content-ID: <0.urn:uuid:3A2968402D531FD9601207129108997 at apache.org> | | http://myurl.com | --MIMEBoundaryurn_uuid_3A2968402D531FD9601207129108996-- View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4142593#4142593 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4142593 From do-not-reply at jboss.com Wed Apr 9 03:52:18 2008 From: do-not-reply at jboss.com (Karnan) Date: Wed, 9 Apr 2008 03:52:18 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Web Service Response problem Message-ID: <26369226.1207727538932.JavaMail.jboss@colo-br-02.atl.jboss.com> thx for ur answers but sincerly im little lost... i already installed the jbossws-native203GA on my machine and the jboss405GA is also installed but on a remote machine. And i also tested HelloWorld example and it worked. So i dont know what is the real prob of my implementation or the config prob. I dont have any *.xml files, is it normal? When i consult forum, everybody speak abt xml files of their web services but i dont xml files. it will be greate if somebody can clear my mind on these several problems... thx in advance guys View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4142601#4142601 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4142601 From do-not-reply at jboss.com Wed Apr 9 03:55:06 2008 From: do-not-reply at jboss.com (Karnan) Date: Wed, 9 Apr 2008 03:55:06 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Web Service Response problem Message-ID: <33210629.1207727706759.JavaMail.jboss@colo-br-02.atl.jboss.com> i think the prob come with the fact that my openSession method use a parameters which are "tagged" WebParam.Mode.OUT; And i dont know if this kind of usage is accepted with java 1.5. I think the prob come from this : WebParam.Mode.OUT. And i dont know how to handle it. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4142602#4142602 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4142602 From do-not-reply at jboss.com Wed Apr 9 09:08:16 2008 From: do-not-reply at jboss.com (jp_kr) Date: Wed, 9 Apr 2008 09:08:16 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: HELP with error Message-ID: <23773084.1207746496185.JavaMail.jboss@colo-br-02.atl.jboss.com> Ajay, I am facing the same problem. My endpoint is correct. Have any other chance to get this same error? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4142710#4142710 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4142710 From do-not-reply at jboss.com Wed Apr 9 09:36:31 2008 From: do-not-reply at jboss.com (elgabo) Date: Wed, 9 Apr 2008 09:36:31 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: setting context root for EJB based web services Message-ID: <691638.1207748191708.JavaMail.jboss@colo-br-02.atl.jboss.com> Yes I'm using JBoss 4.2.2, it seems that there is a bug on this version ... it will be fixed on 4.2.3 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4142728#4142728 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4142728 From do-not-reply at jboss.com Wed Apr 9 11:14:13 2008 From: do-not-reply at jboss.com (Karnan) Date: Wed, 9 Apr 2008 11:14:13 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Web Service Response problem Message-ID: <20467934.1207754053548.JavaMail.jboss@colo-br-02.atl.jboss.com> ok it works now.... thanks everybody Causes: 1) The wsdlLocation of my wsdl file was incorrect (wrong machine IP). I redefined it properly 2) Variable Holder sessionId (defined as WebParam.Mode.OUT) should not be allocated in both sides (Server&Client) but only in the client side. And on the server side, just use sessionId.value= "something you want" bye View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4142799#4142799 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4142799 From do-not-reply at jboss.com Wed Apr 9 15:49:32 2008 From: do-not-reply at jboss.com (thoste) Date: Wed, 9 Apr 2008 15:49:32 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Do I have to install JBossWS additional to JBossAS 4.2.2 or Message-ID: <6749087.1207770572324.JavaMail.jboss@colo-br-02.atl.jboss.com> Do I have to install JBossWS additional to JBossAS 4.2.2 or is it built-in? On JBoss download page I found some downloads labelled e.g. jbossws-3.0.1-native-2.0.4.GA When I have already installed JBoss AppServer v4.2.2 is this JBossWS included or do I always have to install JBossWS in addition to the "core" JBOss AppServer? Thomas View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4142960#4142960 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4142960 From do-not-reply at jboss.com Wed Apr 9 15:53:01 2008 From: do-not-reply at jboss.com (pramod_bs) Date: Wed, 9 Apr 2008 15:53:01 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Do I have to install JBossWS additional to JBossAS 4.2.2 Message-ID: <29255612.1207770781447.JavaMail.jboss@colo-br-02.atl.jboss.com> I think you can look in this file to see which version you have. You can upgrade to the higher version if you want. {JBOSS_HOME}\server\default\deploy\jbossws.sar\META-INF\MANIFEST.MF View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4142961#4142961 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4142961 From do-not-reply at jboss.com Wed Apr 9 16:19:46 2008 From: do-not-reply at jboss.com (thoste) Date: Wed, 9 Apr 2008 16:19:46 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - What are diffs between JBossWS native, metro, cxf variants Message-ID: <5846281.1207772386051.JavaMail.jboss@colo-br-02.atl.jboss.com> What are the diffs between the three JBoss web service extensions - native - metro - cxf Are these replacements or additions or super-sets of each other? What are the (dis-)advantages? Is there a brief overview somewhere on a web page? Thomas View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4142976#4142976 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4142976 From do-not-reply at jboss.com Wed Apr 9 16:35:15 2008 From: do-not-reply at jboss.com (thomas.diesler@jboss.com) Date: Wed, 9 Apr 2008 16:35:15 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: javax.xml.ws.soap.SOAPFaultException: Invalid program na Message-ID: <5279104.1207773315659.JavaMail.jboss@colo-br-02.atl.jboss.com> You would want to look at the request/response message and verify whether they correspond to the abstract contract defined in the wsdl View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4142977#4142977 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4142977 From do-not-reply at jboss.com Wed Apr 9 16:37:45 2008 From: do-not-reply at jboss.com (thomas.diesler@jboss.com) Date: Wed, 9 Apr 2008 16:37:45 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Get the WSDL_SERVICE property value from MessageContext Message-ID: <25681465.1207773465363.JavaMail.jboss@colo-br-02.atl.jboss.com> Its on the roadmap http://jira.jboss.org/jira/browse/JBWS-2013 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4142978#4142978 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4142978 From do-not-reply at jboss.com Wed Apr 9 16:42:59 2008 From: do-not-reply at jboss.com (thomas.diesler@jboss.com) Date: Wed, 9 Apr 2008 16:42:59 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Migrating from JBoss 4.0.3SP1 to 4.0.4GA Message-ID: <30223677.1207773779351.JavaMail.jboss@colo-br-02.atl.jboss.com> JAX-RPC is a deprecated technology that is not developed further. You probably want to migrate your endpoints to jax-ws http://jbws.dyndns.org/mediawiki/index.php?title=FAQ#Which_version_of_App_Server_is_JBossWS_supported_for.3F View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4142979#4142979 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4142979 From do-not-reply at jboss.com Wed Apr 9 16:55:31 2008 From: do-not-reply at jboss.com (thomas.diesler@jboss.com) Date: Wed, 9 Apr 2008 16:55:31 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Problems with WSConsume tool after upgrading to JBossWS Message-ID: <30338755.1207774531874.JavaMail.jboss@colo-br-02.atl.jboss.com> This is a classpath issue. Did you try | C:/Desenvolvimento/Java/Servers/jboss-4.2.2.GA/bin/wsconsume.sh | This is what we test. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4142981#4142981 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4142981 From do-not-reply at jboss.com Wed Apr 9 16:56:23 2008 From: do-not-reply at jboss.com (thomas.diesler@jboss.com) Date: Wed, 9 Apr 2008 16:56:23 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Problems with WSConsume tool after upgrading to JBossWS Message-ID: <10023341.1207774583969.JavaMail.jboss@colo-br-02.atl.jboss.com> Also have a look at our test build script, that also uses wsconsume View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4142982#4142982 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4142982 From do-not-reply at jboss.com Wed Apr 9 16:57:18 2008 From: do-not-reply at jboss.com (thomas.diesler@jboss.com) Date: Wed, 9 Apr 2008 16:57:18 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: How do I install Axis on JBoss 4.x ? Message-ID: <5155168.1207774638785.JavaMail.jboss@colo-br-02.atl.jboss.com> anonymous wrote : | How do I install Axis on JBoss 4.x ? | You don't ;-) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4142983#4142983 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4142983 From do-not-reply at jboss.com Wed Apr 9 17:08:47 2008 From: do-not-reply at jboss.com (thomas.diesler@jboss.com) Date: Wed, 9 Apr 2008 17:08:47 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Cyclic web services Message-ID: <27191693.1207775327662.JavaMail.jboss@colo-br-02.atl.jboss.com> Yes, this article does apply to you. You need to annotate the JAXB classes you intend to be the payload. You can then use wsprovide to provide the abstract contract (i.e. wsdl+schema) On the client side you can reuse the JAXB classes. You can use wsconsume to generate the SEI from the wsdl. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4142984#4142984 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4142984 From do-not-reply at jboss.com Wed Apr 9 17:09:57 2008 From: do-not-reply at jboss.com (thomas.diesler@jboss.com) Date: Wed, 9 Apr 2008 17:09:57 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: What are diffs between JBossWS native, metro, cxf varian Message-ID: <24178861.1207775397900.JavaMail.jboss@colo-br-02.atl.jboss.com> http://jbws.dyndns.org/mediawiki/index.php?title=FAQ#How_do_the_supported_web_service_stacks_compare.3F View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4142985#4142985 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4142985 From do-not-reply at jboss.com Wed Apr 9 17:19:06 2008 From: do-not-reply at jboss.com (thomas.diesler@jboss.com) Date: Wed, 9 Apr 2008 17:19:06 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: NullPointerException when processing response Message-ID: <461161.1207775946640.JavaMail.jboss@colo-br-02.atl.jboss.com> If this still occurs with the latest, could you please create a jira issue that allows us to reproduce what you are seeing View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4142987#4142987 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4142987 From do-not-reply at jboss.com Wed Apr 9 17:29:33 2008 From: do-not-reply at jboss.com (thomas.diesler@jboss.com) Date: Wed, 9 Apr 2008 17:29:33 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Do I have to install JBossWS additional to JBossAS 4.2.2 Message-ID: <23726493.1207776573595.JavaMail.jboss@colo-br-02.atl.jboss.com> JBossAS already comes with JBossWS, but not necessarily the latest. JBossWS roughly has a release cycle of 8 weeks. http://jbws.dyndns.org/mediawiki/index.php?title=Supported_Target_Containers View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4142989#4142989 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4142989 From do-not-reply at jboss.com Wed Apr 9 19:26:36 2008 From: do-not-reply at jboss.com (talekar) Date: Wed, 9 Apr 2008 19:26:36 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: http://org.jboss.ws/http#chunksize Message-ID: <24293051.1207783596420.JavaMail.jboss@colo-br-02.atl.jboss.com> Make sure you have META-INF/standard-jaxws-client-config.xml in the class path: | | | | | | | | Standard Client | http://org.jboss.ws/dispatch/validate | | http://org.jboss.ws/http#chunksize | 0 | | | | | HTTP 1.0 Client | http://org.jboss.ws/dispatch/validate | | | | Standard WSAddressing Client | | | ##SOAP11_HTTP | | WSAddressing Handler | org.jboss.ws.extensions.addressing.jaxws.WSAddressingClientHandler | | | | | | | Standard SOAP 1.2 WSAddressing Client | | | ##SOAP12_HTTP | | WSAddressing Handler | org.jboss.ws.extensions.addressing.jaxws.WSAddressingClientHandler | | | | | | | Standard WSSecurity Client | | | ##SOAP11_HTTP | | WSSecurityHandlerOutbound | org.jboss.ws.extensions.security.jaxws.WSSecurityHandlerClient | | | | | | | | private static void moo() throws Exception { | MessageFactory factory = MessageFactory.newInstance(); | SOAPMessage request = factory.createMessage(); | MimeHeaders mimeHeaders = request.getMimeHeaders(); | mimeHeaders.addHeader("SOAPAction", "YOU SOAP ACTION"); | | String text = "YOUR PAYLOAD"; | | DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance(); | dbf.setNamespaceAware(true); | DocumentBuilder db = dbf.newDocumentBuilder(); | Document doc = db.parse(new ByteArrayInputStream(text.getBytes())); | request.getSOAPBody().addDocument(doc); | | SOAPConnectionFactory scf = SOAPConnectionFactory.newInstance(); | SOAPConnection sc = scf.createConnection(); | | JAXWSClientMetaDataBuilder mdb = new JAXWSClientMetaDataBuilder(); | ServiceMetaData smd = mdb.buildMetaData(new QName("YOU SERVICE NS", | "YOUR SERVICE"), new URL("YOUR WSDL URL")); | EndpointMetaData emd = smd.getEndpoint(new QName("YOUR SERVICE NS", | "YOU PORT NAME")); | | SOAPMessageContextJAXWS mc = new SOAPMessageContextJAXWS(); | mc.setEndpointMetaData(emd); | MessageContextAssociation.pushMessageContext(mc); | SOAPMessage response = sc.call(request, new URL("YOUR ENDPOINT URL")); | MessageContextAssociation.popMessageContext(); | | SOAPBody sb = response.getSOAPBody(); | NodeList list = sb.getChildNodes(); | for (int i = 0; i < list.getLength(); i++) { | System.out.println(list.item(i)); | } | } | This works for me with jbossws-3.0.1-native-2.0.4.GA and JDK 5, but it is an ugly hack. I think I will try the RI and see if that works better. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4143013#4143013 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4143013 From do-not-reply at jboss.com Thu Apr 10 06:10:48 2008 From: do-not-reply at jboss.com (gekis) Date: Thu, 10 Apr 2008 06:10:48 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - WebService client problem (JBoss 4.0.5 + jbossws-2.0.3): JBo Message-ID: <25564439.1207822248502.JavaMail.jboss@colo-br-02.atl.jboss.com> Hello. I've next AS configuration: JBoss 4.0.5.GA + jbossws-native-2.0.3.GA (deploy-jboss405-no-ejb3) During startup JBoss loads war and in my code there is a web service call (by JAX-WS): Service.create(new URL(wsdlLocation), new QName(namespaceURI, serviceName)); In 90% of cases I have next exception: {org.jboss.ws.metadata.wsdl.WSDLException at 10676}Method threw 'org.jboss.ws.metadata.wsdl.WSDLException' exception. "javax.wsdl.WSDLException: WSDLException: faultCode=CONFIGURATION_ERROR: Problem instantiating factory implementation.: java.lang.ClassNotFoundException: org.jboss.ws.tools.wsdl.JBossWSDLFactoryImpl" detailMessage = {java.lang.String at 10170}"Problem instantiating factory implementation." cause = {java.lang.ClassNotFoundException at 11066}"java.lang.ClassNotFoundException: org.jboss.ws.tools.wsdl.JBossWSDLFactoryImpl" JBossWSDLFactoryImpl located at \deploy\jbossws.sar\jbossws-core.jar, in the same place as WSDLDefinitionsFactory, where from the exception was thrown: stackTrace = {java.lang.StackTraceElement[191]@10678} [0] = {java.lang.StackTraceElement at 10680}"org.jboss.ws.tools.wsdl.WSDLDefinitionsFactory.parse(WSDLDefinitionsFactory.java:154)" [1] = {java.lang.StackTraceElement at 10681}"org.jboss.ws.metadata.umdm.ServiceMetaData.getWsdlDefinitions(ServiceMetaData.java:321)" [2] = {java.lang.StackTraceElement at 10682}"org.jboss.ws.metadata.builder.jaxws.JAXWSClientMetaDataBuilder.buildMetaData(JAXWSClientMetaDataBuilder.java:86)" [3] = {java.lang.StackTraceElement at 10683}"org.jboss.ws.core.jaxws.spi.ServiceDelegateImpl.(ServiceDelegateImpl.java:133)" [4] = {java.lang.StackTraceElement at 10684}"org.jboss.ws.core.jaxws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:63)" [5] = {java.lang.StackTraceElement at 10685}"javax.xml.ws.Service.(Service.java:82)" [6] = {java.lang.StackTraceElement at 10686}"com.enkata.lombardibridge.LoginRegistrationBrigde$LoginRegistrationWSClient.(LoginRegistrationBrigde.java:124)" [7] = {java.lang.StackTraceElement at 10687}"com.enkata.lombardibridge.LoginRegistrationBrigde.initialize(LoginRegistrationBrigde.java:56)" [8] = {java.lang.StackTraceElement at 10688}"com.enkata.lombardibridge.EnkataLoginModule.initialize(EnkataLoginModule.java:44)" [9] = {java.lang.StackTraceElement at 10689}"sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)" [10] = {java.lang.StackTraceElement at 10690}"sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)" [11] = {java.lang.StackTraceElement at 10691}"sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)" [12] = {java.lang.StackTraceElement at 10692}"java.lang.reflect.Method.invoke(Method.java:585)" [13] = {java.lang.StackTraceElement at 10693}"javax.security.auth.login.LoginContext.invoke(LoginContext.java:756)" [14] = {java.lang.StackTraceElement at 10694}"javax.security.auth.login.LoginContext.access$000(LoginContext.java:186)" [15] = {java.lang.StackTraceElement at 10695}"javax.security.auth.login.LoginContext$4.run(LoginContext.java:683)" [16] = {java.lang.StackTraceElement at 10696}"java.security.AccessController.doPrivileged(Native Method)" [17] = {java.lang.StackTraceElement at 10697}"javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680)" [18] = {java.lang.StackTraceElement at 10698}"javax.security.auth.login.LoginContext.login(LoginContext.java:579)" [19] = {java.lang.StackTraceElement at 10699}"org.jboss.security.plugins.JaasSecurityManager.defaultLogin(JaasSecurityManager.java:601)" [20] = {java.lang.StackTraceElement at 10700}"org.jboss.security.plugins.JaasSecurityManager.authenticate(JaasSecurityManager.java:535)" [21] = {java.lang.StackTraceElement at 10701}"org.jboss.security.plugins.JaasSecurityManager.isValid(JaasSecurityManager.java:344)" [22] = {java.lang.StackTraceElement at 10702}"org.jboss.ejb.plugins.SecurityInterceptor.checkSecurityAssociation(SecurityInterceptor.java:211)" [23] = {java.lang.StackTraceElement at 10703}"org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:135)" [24] = {java.lang.StackTraceElement at 10704}"org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:132)" [25] = {java.lang.StackTraceElement at 10705}"org.jboss.ejb.plugins.CleanShutdownInterceptor.invokeHome(CleanShutdownInterceptor.java:212)" [26] = {java.lang.StackTraceElement at 10706}"org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invokeHome(ProxyFactoryFinderInterceptor.java:107)" [27] = {java.lang.StackTraceElement at 10707}"org.jboss.ejb.SessionContainer.internalInvokeHome(SessionContainer.java:637)" [28] = {java.lang.StackTraceElement at 10708}"org.jboss.ejb.Container.invoke(Container.java:975)" [29] = {java.lang.StackTraceElement at 10709}"sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)" [30] = {java.lang.StackTraceElement at 10710}"sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)" [31] = {java.lang.StackTraceElement at 10711}"sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)" [32] = {java.lang.StackTraceElement at 10712}"java.lang.reflect.Method.invoke(Method.java:585)" [33] = {java.lang.StackTraceElement at 10713}"org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)" [34] = {java.lang.StackTraceElement at 10714}"org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)" [35] = {java.lang.StackTraceElement at 10715}"org.jboss.mx.server.Invocation.invoke(Invocation.java:86)" [36] = {java.lang.StackTraceElement at 10716}"org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)" [37] = {java.lang.StackTraceElement at 10717}"org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)" [38] = {java.lang.StackTraceElement at 10718}"org.jboss.invocation.local.LocalInvoker$MBeanServerAction.invoke(LocalInvoker.java:169)" [39] = {java.lang.StackTraceElement at 10719}"org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:118)" [40] = {java.lang.StackTraceElement at 10720}"org.jboss.invocation.InvokerInterceptor.invokeLocal(InvokerInterceptor.java:209)" [41] = {java.lang.StackTraceElement at 10721}"org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:195)" [42] = {java.lang.StackTraceElement at 10722}"org.jboss.proxy.ejb.RetryInterceptor.invoke(RetryInterceptor.java:176)" [43] = {java.lang.StackTraceElement at 10723}"org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:61)" [44] = {java.lang.StackTraceElement at 10724}"org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:70)" [45] = {java.lang.StackTraceElement at 10725}"org.jboss.proxy.ejb.HomeInterceptor.invoke(HomeInterceptor.java:184)" [46] = {java.lang.StackTraceElement at 10726}"org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:100)" [47] = {java.lang.StackTraceElement at 10727}"$Proxy158.create(Unknown Source)" [48] = {java.lang.StackTraceElement at 10728}"com.lombardisoftware.client.delegate.SecurityDelegateDefault.listAllGroups(SecurityDelegateDefault.java:387)" [49] = {java.lang.StackTraceElement at 10729}"com.lombardisoftware.servlet.util.GroupCache.initAll(GroupCache.java:110)" [50] = {java.lang.StackTraceElement at 10730}"com.lombardisoftware.servlet.util.GroupCache.getAllGroups(GroupCache.java:84)" [51] = {java.lang.StackTraceElement at 10731}"com.lombardisoftware.servlet.util.GroupCache.getGroups(GroupCache.java:58)" [52] = {java.lang.StackTraceElement at 10732}"com.lombardisoftware.servlet.util.CacheManager.init(CacheManager.java:96)" [53] = {java.lang.StackTraceElement at 10733}"org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1105)" [54] = {java.lang.StackTraceElement at 10734}"org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:932)" [55] = {java.lang.StackTraceElement at 10735}"org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3951)" [56] = {java.lang.StackTraceElement at 10736}"org.apache.catalina.core.StandardContext.start(StandardContext.java:4225)" [57] = {java.lang.StackTraceElement at 10737}"org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)" [58] = {java.lang.StackTraceElement at 10738}"org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)" [59] = {java.lang.StackTraceElement at 10739}"org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)" [60] = {java.lang.StackTraceElement at 10740}"sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)" [61] = {java.lang.StackTraceElement at 10741}"sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)" [62] = {java.lang.StackTraceElement at 10742}"sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)" [63] = {java.lang.StackTraceElement at 10743}"java.lang.reflect.Method.invoke(Method.java:585)" [64] = {java.lang.StackTraceElement at 10744}"org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)" [65] = {java.lang.StackTraceElement at 10745}"org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)" [66] = {java.lang.StackTraceElement at 10746}"org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)" [67] = {java.lang.StackTraceElement at 10747}"org.apache.catalina.core.StandardContext.init(StandardContext.java:5052)" [68] = {java.lang.StackTraceElement at 10748}"sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)" [69] = {java.lang.StackTraceElement at 10749}"sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)" [70] = {java.lang.StackTraceElement at 10750}"sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)" [71] = {java.lang.StackTraceElement at 10751}"java.lang.reflect.Method.invoke(Method.java:585)" [72] = {java.lang.StackTraceElement at 10752}"org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)" [73] = {java.lang.StackTraceElement at 10753}"org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)" [74] = {java.lang.StackTraceElement at 10754}"org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)" [75] = {java.lang.StackTraceElement at 10755}"org.jboss.web.tomcat.tc5.TomcatDeployer.performDeployInternal(TomcatDeployer.java:297)" [76] = {java.lang.StackTraceElement at 10756}"org.jboss.web.tomcat.tc5.TomcatDeployer.performDeploy(TomcatDeployer.java:103)" [77] = {java.lang.StackTraceElement at 10757}"org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:371)" [78] = {java.lang.StackTraceElement at 10758}"org.jboss.web.WebModule.startModule(WebModule.java:83)" [79] = {java.lang.StackTraceElement at 10759}"org.jboss.web.WebModule.startService(WebModule.java:61)" [80] = {java.lang.StackTraceElement at 10760}"org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)" [81] = {java.lang.StackTraceElement at 10761}"org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)" [82] = {java.lang.StackTraceElement at 10762}"sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source)" [83] = {java.lang.StackTraceElement at 10763}"sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)" [84] = {java.lang.StackTraceElement at 10764}"java.lang.reflect.Method.invoke(Method.java:585)" [85] = {java.lang.StackTraceElement at 10765}"org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)" [86] = {java.lang.StackTraceElement at 10766}"org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)" [87] = {java.lang.StackTraceElement at 10767}"org.jboss.mx.server.Invocation.invoke(Invocation.java:86)" [88] = {java.lang.StackTraceElement at 10768}"org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)" [89] = {java.lang.StackTraceElement at 10769}"org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)" [90] = {java.lang.StackTraceElement at 10770}"org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)" [91] = {java.lang.StackTraceElement at 10771}"$Proxy0.start(Unknown Source)" [92] = {java.lang.StackTraceElement at 10772}"org.jboss.system.ServiceController.start(ServiceController.java:417)" [93] = {java.lang.StackTraceElement at 10773}"sun.reflect.GeneratedMethodAccessor14.invoke(Unknown Source)" [94] = {java.lang.StackTraceElement at 10774}"sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)" [95] = {java.lang.StackTraceElement at 10775}"java.lang.reflect.Method.invoke(Method.java:585)" [96] = {java.lang.StackTraceElement at 10776}"org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)" [97] = {java.lang.StackTraceElement at 10777}"org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)" [98] = {java.lang.StackTraceElement at 10778}"org.jboss.mx.server.Invocation.invoke(Invocation.java:86)" [99] = {java.lang.StackTraceElement at 10779}"org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)" [100] = {java.lang.StackTraceElement at 10780}"org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)" WSDLDefinitionsFactory code look like this: public WSDLDefinitions parse(URL wsdlLocation) throws WSDLException { ... WSDLFactory wsdlFactory = WSDLFactory.newInstance(JBossWSDLFactoryImpl.class.getName()); In dubug Expression Evaluation (IDEA): org.jboss.ws.tools.wsdl.JBossWSDLFactoryImpl.class work, but JBossWSDLFactoryImpl is red and does not detected by Ctrl+Space. Call is happend from static method, but form EnkataLoginModule (upper in stack) this.getClass().getClassLoader().loadClass("org.jboss.ws.tools.wsdl.JBossWSDLFactoryImpl") work OK. I set this load in code before LoginRegistrationBrigde is called, but it doesn't help. this.getClass().getClassLoader() looks like: this.getClass().getClassLoader() = {org.jboss.mx.loading.UnifiedClassLoader3 at 5873}"org.jboss.mx.loading.UnifiedClassLoader3 at 1bdb58{ url=null ,addedOrder=2}" url = null origURL = {java.net.URL at 9155}"file:C:/TeamWorks/process-server/conf/jboss-service.xml" repository = {org.jboss.mx.loading.UnifiedLoaderRepository3 at 9156} unregisterTrace = null addedOrder = 2 parent = {org.jboss.system.server.NoAnnotationURLClassLoader at 8202} classBlackList = {java.util.Collections$SynchronizedSet at 9157} size = 15 resourceBlackList = {java.util.Collections$SynchronizedSet at 9158} size = 82 resourceCache = {EDU.oswego.cs.dl.util.concurrent.ConcurrentReaderHashMap at 9159} size = 2396 loadLock = {EDU.oswego.cs.dl.util.concurrent.ReentrantLock at 9160} loadClassDepth = 0 ucp = {sun.misc.URLClassPath at 9161} acc = {java.security.AccessControlContext at 9162} initialized = true pdcache = {java.util.HashMap at 9163} size = 42 initialized = true parent = {org.jboss.system.server.NoAnnotationURLClassLoader at 8202} package2certs = {java.util.Hashtable at 9164} size = 227 nocerts = {java.security.cert.Certificate[0]@9165} classes = {java.util.Vector at 9166} size = 2019 domains = {java.util.HashSet at 9167} size = 42 packages = {java.util.HashMap at 9168} size = 228 defaultDomain = null nativeLibraries = {java.util.Vector at 9169} size = 0 defaultAssertionStatus = false packageAssertionStatus = null classAssertionStatus = null In 10% of cases I've error: no connection with web service what is OK as web service is not running. Please help by any ideas, guesses or workaround. Thanks in advance, Grigory. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4143110#4143110 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4143110 From do-not-reply at jboss.com Thu Apr 10 15:04:54 2008 From: do-not-reply at jboss.com (thoste) Date: Thu, 10 Apr 2008 15:04:54 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - How to detect the current JBossWS version in JBoss AS ? Message-ID: <28691932.1207854294689.JavaMail.jboss@colo-br-02.atl.jboss.com> Assume I started already JBoss AppServer. How can I find out now which version of JBossWS is currently running in JBossAS ? When I call e.g. http://localhost:8080/jbossws I did not found the version number listed there Thomas View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4143290#4143290 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4143290 From do-not-reply at jboss.com Thu Apr 10 16:33:56 2008 From: do-not-reply at jboss.com (rcarmichael) Date: Thu, 10 Apr 2008 16:33:56 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Web services using common complex types Message-ID: <7457294.1207859636502.JavaMail.jboss@colo-br-02.atl.jboss.com> Although I am an experienced programmer, I have to admit I am relatively new to Web Services and XML in general, so please bear with me... Let's say I have two web services, WS_A and WS_B. They both reference POJO_C (let's say both WS_A and WS_B have a function called getC that returns POJO_C). I annotate WS_A and WS_B with @WebService and deploy them and JBoss provides the web services as intended. However, when I generate client stubs (using wsimport), I put WS_A and WS_B in different packages. Both of those client packages end up having an object 'C' with different package names, so that WS_A.C != WS_B.C, even though I might want to use them interchangeably. Is the solution to this problem providing custom bindings to wsimport that moves 'C' into the same package when I run wsimport on both web services? I would think that maybe there is some way to tell JBoss that C is a shared object and put it into a XSD or something that both web services could share. I know this is a simple thing, thanks for the help. - Ryan View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4143302#4143302 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4143302 From do-not-reply at jboss.com Thu Apr 10 17:42:16 2008 From: do-not-reply at jboss.com (PeterJ) Date: Thu, 10 Apr 2008 17:42:16 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: How to detect the current JBossWS version in JBoss AS ? Message-ID: <14916158.1207863737006.JavaMail.jboss@colo-br-02.atl.jboss.com> You could look at the META-INF/manifest.mf file in the client/jbossws-client..jar file. It identifies the jbossws version. Or you can use the JMX Console (http://localhost:8080/jmx-console) to view the jboss.ws:service=ServerConfig MBean, the ImplementationVersion attribute. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4143318#4143318 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4143318 From do-not-reply at jboss.com Fri Apr 11 00:06:59 2008 From: do-not-reply at jboss.com (anacarda) Date: Fri, 11 Apr 2008 00:06:59 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Obtain SOAP attachment from PostMethod Message-ID: <31133716.1207886819419.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, I have written a client bean that calls a SOAP method, that returns back an attachment. I can sucessfully call and return back the raw message, however, I want to obtain just the attachment (and maybe save it to file or something). I can get the raw message, by just calling getResponseBodyAsStream. I am wondering, is there a nice InputStream to SOAPMessageAttachment type of function avaliable? Or how is the best way to do this? As a side note, the "raw" inputstream returns back something like the following: ------=_Part_35_28169467.1207870927386 Content-Type: text/xml; charset=UTF-8 Content-Transfer-Encoding: 8bit Content-ID: Please create a test case that allows us to reproduce this View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4143359#4143359 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4143359 From do-not-reply at jboss.com Fri Apr 11 03:13:52 2008 From: do-not-reply at jboss.com (thomas.diesler@jboss.com) Date: Fri, 11 Apr 2008 03:13:52 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Obtain SOAP attachment from PostMethod Message-ID: <4713096.1207898032453.JavaMail.jboss@colo-br-02.atl.jboss.com> | /** | * The interface MessageContext abstracts the message | * context that is processed by a handler in the handle | * method. | * | *

The MessageContext interface provides methods to | * manage a property set. MessageContext properties | * enable handlers in a handler chain to share processing related | * state. | * | * @since JAX-WS 2.0 | */ | public interface MessageContext extends Map | { | | /** | * Standard property: message direction, true for | * outbound messages, false for inbound. | *

Type: boolean | */ | public static final String MESSAGE_OUTBOUND_PROPERTY = "javax.xml.ws.handler.message.outbound"; | | /** | * Standard property: Map of attachments to a message for the inbound | * message, key is the MIME Content-ID, value is a DataHandler. | *

Type: java.util.Map | */ | public static final String INBOUND_MESSAGE_ATTACHMENTS = "javax.xml.ws.binding.attachments.inbound"; | | /** | * Standard property: Map of attachments to a message for the outbound | * message, key is the MIME Content-ID, value is a DataHandler. | *

Type: java.util.Map | */ | public static final String OUTBOUND_MESSAGE_ATTACHMENTS = "javax.xml.ws.binding.attachments.outbound"; | | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4143363#4143363 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4143363 From do-not-reply at jboss.com Fri Apr 11 04:24:25 2008 From: do-not-reply at jboss.com (rouvas) Date: Fri, 11 Apr 2008 04:24:25 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Web services using common complex types Message-ID: <1959002.1207902265515.JavaMail.jboss@colo-br-02.atl.jboss.com> I am having the same problem here and have resorted to convert the complex object (POJO_C in your example) into a byte[] which, of course, discards all information about it actually being a POJO_C type of object. IMHO, this is a big downside, but I have been unable to find a better solution. -Stathis View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4143388#4143388 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4143388 From do-not-reply at jboss.com Fri Apr 11 05:29:41 2008 From: do-not-reply at jboss.com (thomas.diesler@jboss.com) Date: Fri, 11 Apr 2008 05:29:41 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Web services using common complex types Message-ID: <22696967.1207906181048.JavaMail.jboss@colo-br-02.atl.jboss.com> You can use JAXB binding customizations to map package names to namespaces View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4143403#4143403 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4143403 From do-not-reply at jboss.com Fri Apr 11 05:39:42 2008 From: do-not-reply at jboss.com (thomas.diesler@jboss.com) Date: Fri, 11 Apr 2008 05:39:42 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Get involved with community contributions Message-ID: <9811376.1207906782312.JavaMail.jboss@colo-br-02.atl.jboss.com> Folks, if you want to get involved have a look at these issues http://jira.jboss.org/jira/secure/IssueNavigator.jspa?reset=true&mode=hide&sorter/order=DESC&sorter/field=priority&resolution=-1&pid=12310050&fixfor=12311430 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4143405#4143405 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4143405 From do-not-reply at jboss.com Fri Apr 11 08:27:23 2008 From: do-not-reply at jboss.com (rcarmichael) Date: Fri, 11 Apr 2008 08:27:23 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Web services using common complex types Message-ID: <8293869.1207916843632.JavaMail.jboss@colo-br-02.atl.jboss.com> Thanks for confirming the fact that customizations is the way to go Thomas, I just wanted to see if there was an easier way. It would seem like I should be able to provide a namespace for POJO_C so that this could be done automatically, but I can handle the manual way. Thanks again! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4143430#4143430 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4143430 From do-not-reply at jboss.com Fri Apr 11 10:19:36 2008 From: do-not-reply at jboss.com (boniek) Date: Fri, 11 Apr 2008 10:19:36 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Limiting number of connections per WebService Message-ID: <19765781.1207923576218.JavaMail.jboss@colo-br-02.atl.jboss.com> Yes I know about this, but this will not limit connections per WebService endpoint, but for all WebServices deployed on this particular instance of Tomcat. Let's say I have 2 WebService endpoints and I want max of 10 simultaneous connections to one of them and max of 100 to the other one. Is it possible to do? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4143452#4143452 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4143452 From do-not-reply at jboss.com Fri Apr 11 11:09:23 2008 From: do-not-reply at jboss.com (rcarmichael) Date: Fri, 11 Apr 2008 11:09:23 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Web services using common complex types Message-ID: <21467111.1207926563889.JavaMail.jboss@colo-br-02.atl.jboss.com> Just to update, I figured out that if I specify @XmlType(namespace="...") on my @Entitys that the web services are using, wsimport (if you don't use the -p option) would do what I want for me without having to specify JAXB customization files. I still think that it would be neat if I could somehow annotate that I want specific classes to be packaged into an XSD and then referenced from the WSDL. Then multiple WSDLs share a common XSD. I'm sure this is possible if you're starting from WSDLs and generating java classes, but in my case I'm starting with POJO @Entities and @Webservices, JBoss is generating the WSDL, then I'm using wsimport to generate client stubs. Anyway, what I mentioned is probably not a JBoss feature request, more of a JAXWS request. Thanks again for the replies. If anyone knows how to do this "common XSD" thing from simple annotations already, I'd love to know. -Ryan View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4143463#4143463 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4143463 From do-not-reply at jboss.com Fri Apr 11 12:12:25 2008 From: do-not-reply at jboss.com (thomas.diesler@jboss.com) Date: Fri, 11 Apr 2008 12:12:25 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Limiting number of connections per WebService Message-ID: <27842567.1207930345952.JavaMail.jboss@colo-br-02.atl.jboss.com> This is not yet supported. You could create a jira feature request for it and reference it from here. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4143480#4143480 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4143480 From do-not-reply at jboss.com Fri Apr 11 12:24:50 2008 From: do-not-reply at jboss.com (pramod_bs) Date: Fri, 11 Apr 2008 12:24:50 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - WS-Security question Message-ID: <23498640.1207931090835.JavaMail.jboss@colo-br-02.atl.jboss.com> I implemented WS-Security for Usernametoken authentication for an EJB3 bean. Everything is working fine. But I noticed that when I send the SOAP envelope with just a wsse:security header (without any child elements) , the system allowed to invoke the service (No authentication happened). Is there a bug in there? Code is same as the post here: http://www.jboss.com/index.html?module=bb&op=viewtopic&t=131719 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4143483#4143483 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4143483 From do-not-reply at jboss.com Fri Apr 11 18:50:43 2008 From: do-not-reply at jboss.com (raags) Date: Fri, 11 Apr 2008 18:50:43 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - @WebContext Message-ID: <25575301.1207954243519.JavaMail.jboss@colo-br-02.atl.jboss.com> I'm migrating from JBoss4.2 to JBoss 5.0 and I noticed the @WebContext annotation is no longer in jbossws-core.jar. Where can I find it in JBoss 5.0? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4143578#4143578 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4143578 From do-not-reply at jboss.com Fri Apr 11 20:03:17 2008 From: do-not-reply at jboss.com (raags) Date: Fri, 11 Apr 2008 20:03:17 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Wierd error "Adding text to an XML document must not null" Message-ID: <13066791.1207958597621.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, I'm trying out JBoss 5.0 for the first time and my simple helloworld webservice when deployed gives this error: 16:55:24,425 INFO [TomcatDeployment] deploy, ctxPath=/, vfsUrl=ROOT.war 16:55:24,940 ERROR [ProfileServiceBootstrap] Failed to load profile: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS): *** CONTEXTS IN ERROR: Name -> Error vfsfile:/C:/systestjboss/jboss-5.0.0.Beta3/server/default/deploy/helloworld5.jar -> java.lang.IllegalArgumentException: Adding text to an XML document must not be null vfsfile:/C:/systestjboss/jboss-5.0.0.Beta3/server/default/deploy/hellowebservice .jar -> java.lang.IllegalArgumentException: Adding text to an XML document must not be null 16:55:25,003 INFO [Http11Protocol] Starting Coyote HTTP/1.1 on http-127.0.0.1-8 080 16:55:25,081 INFO [AjpProtocol] Starting Coyote AJP/1.3 on ajp-127.0.0.1-8009 16:55:25,081 INFO [ServerImpl] JBoss (Microcontainer) [5.0.0.Beta3 (build: SVNT ag=JBoss_5_0_0_Beta3 date=200712210026)] Started in 1m:10s:296ms How can I solve this? Thanks! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4143590#4143590 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4143590 From do-not-reply at jboss.com Fri Apr 11 20:21:28 2008 From: do-not-reply at jboss.com (raags) Date: Fri, 11 Apr 2008 20:21:28 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: @WebContext Message-ID: <21544874.1207959688411.JavaMail.jboss@colo-br-02.atl.jboss.com> Ok found it.. jbossws-spi.jar View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4143594#4143594 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4143594 From do-not-reply at jboss.com Sat Apr 12 02:42:36 2008 From: do-not-reply at jboss.com (ericmacau) Date: Sat, 12 Apr 2008 02:42:36 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Native or Metro ? Message-ID: <12944712.1207982557111.JavaMail.jboss@colo-br-02.atl.jboss.com> Hello, What's the different between Native and Metro? Best regards, Eric View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4143618#4143618 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4143618 From do-not-reply at jboss.com Sun Apr 13 09:12:51 2008 From: do-not-reply at jboss.com (thoste) Date: Sun, 13 Apr 2008 09:12:51 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Error: "package javax.jws does not exist" ? Missing jar? Message-ID: <1953010.1208092372693.JavaMail.jboss@colo-br-02.atl.jboss.com> When I try to compile a web service with java 1.5 by javac ProfileMgmtBean.java I am getting the following error: import javax.jws.WebService; ^ ProfileMgmtBean.java:6: package javax.jws does not exist Do I have to add (Which?) jar files to the CLASSPATH ? Thomas View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4143705#4143705 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4143705 From do-not-reply at jboss.com Sun Apr 13 09:25:59 2008 From: do-not-reply at jboss.com (thoste) Date: Sun, 13 Apr 2008 09:25:59 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - How to package a web app into a .war file? Message-ID: <25432570.1208093159263.JavaMail.jboss@colo-br-02.atl.jboss.com> The JBoss user guide shows in the section http://jbws.dyndns.org/mediawiki/index.php?title=User_Guide#Plain_old_Java_Object_.28POJO.29 a POJO endpoint implementation. After the web.xml source it is said: "A JSR-181 java service endpoint (JSE) is packaged as a web application in a *.war file." How is this done practically? Do I have to add the compiled web service java class and web.xml into a jar archive ? How does this look like in detail ? Thomas View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4143706#4143706 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4143706 From do-not-reply at jboss.com Sun Apr 13 09:48:35 2008 From: do-not-reply at jboss.com (thoste) Date: Sun, 13 Apr 2008 09:48:35 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Where do I have to *.jws web service files in JBoss ? Message-ID: <15692459.1208094515104.JavaMail.jboss@colo-br-02.atl.jboss.com> anonymous wrote : | In the web.xml have a serlvet entry. | You can use the session bean. Which web.xml do you mean? server\default\deploy\jboss-web.deployer\conf\web.xml or server\default\deploy\jbossws.sar\jbossws-context.war\WEB-INF\web.xml or another? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4143710#4143710 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4143710 From do-not-reply at jboss.com Sun Apr 13 13:20:24 2008 From: do-not-reply at jboss.com (gaurishjboss) Date: Sun, 13 Apr 2008 13:20:24 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - problem with wsconsume Message-ID: <26763837.1208107224214.JavaMail.jboss@colo-br-02.atl.jboss.com> i m new to jboss web services and currently using the jboss3.0.1 -native 2.0.4GA version of jbossws.....i succesfully deployed my web service n the jboss application server 4.2.1GA....but when i try to generate the client stubs using wsconsume.bat it gives me an error as follows : C:\Documents and Settings\A\Desktop\jbossws-3.0.1-native-2.0.4.GA\jbossws-native -dist\deploy\bin>wsconsume.bat -k -o C:\Documents and Settings\A\Desktop\jbosswe bservice http://127.0.0.1:8080/NewHAws/Ws?wsdl JBossWS-Metro stack deployed Exception in thread "main" java.lang.NoClassDefFoundError: org/jboss/wsf/spi/too ls/cmd/WSConsume do i need to include any jar files anywhere.....???? if so then how do i do it..???? and my implementation version shows Native but it shows JbossWS-Metro deployed.... please help me out....its really very urgent..... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4143725#4143725 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4143725 From do-not-reply at jboss.com Sun Apr 13 19:10:33 2008 From: do-not-reply at jboss.com (anacarda) Date: Sun, 13 Apr 2008 19:10:33 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Obtain SOAP attachment from PostMethod Message-ID: <32667827.1208128233915.JavaMail.jboss@colo-br-02.atl.jboss.com> How can I get the MessageContext from an InputStream though? The InputStream I am talking about is the one from the call from loPostMethod.getResponseBodyAsStream()... This is because I am using a PostMethod to call / obtain the raw message back. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4143745#4143745 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4143745 From do-not-reply at jboss.com Mon Apr 14 02:55:26 2008 From: do-not-reply at jboss.com (ljgp) Date: Mon, 14 Apr 2008 02:55:26 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: No tests for @SchemaValidation annotation in 3.0.1 ? Message-ID: <24153609.1208156126075.JavaMail.jboss@colo-br-02.atl.jboss.com> Thanks ! Luc. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4143766#4143766 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4143766 From do-not-reply at jboss.com Mon Apr 14 02:59:45 2008 From: do-not-reply at jboss.com (gaurishjboss) Date: Mon, 14 Apr 2008 02:59:45 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - problem with wsconsume Message-ID: <24069712.1208156385361.JavaMail.jboss@colo-br-02.atl.jboss.com> C:\Documents and Settings\A\Desktop\java project\jboss-4.2.1.GA\bin>wsconsume - k -o C:\clistubs http://127.0.0.1:8080/NewHAws/Ws?wsdl JBossWS-Metro stack deployed Exception in thread "main" java.lang.IllegalStateException: Failed to load: org. jboss.ws.tools.jaxws.impl.SunRIConsumerFactoryImpl at org.jboss.wsf.spi.util.ServiceLoader.loadDefault(ServiceLoader.java:2 05) at org.jboss.wsf.spi.util.ServiceLoader.loadFromSystemProperty(ServiceLo ader.java:138) at org.jboss.wsf.spi.util.ServiceLoader.loadService(ServiceLoader.java:6 8) at org.jboss.wsf.spi.tools.WSContractConsumer.newInstance(WSContractCons umer.java:72) at org.jboss.wsf.spi.tools.WSContractConsumer.newInstance(WSContractCons umer.java:56) at org.jboss.wsf.spi.tools.cmd.WSConsume.importServices(WSConsume.java:1 95) at org.jboss.wsf.spi.tools.cmd.WSConsume.main(WSConsume.java:81) Caused by: java.lang.ClassNotFoundException: org.jboss.ws.tools.jaxws.impl.SunRI ConsumerFactoryImpl at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at org.jboss.wsf.spi.util.ServiceLoader.loadDefault(ServiceLoader.java:2 00) ... 6 more C:\Documents and Settings\A\Desktop\java project\jboss-4.2.1.GA\bin> i am workign with jboss4.2.1GA and jbossws-3.0.1-native-2.0.4.GA... but i m getting this problem while running wsconsume......can anyone please help me out..???? its really very urgent.....would appreciate ur help. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4143767#4143767 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4143767 From do-not-reply at jboss.com Mon Apr 14 03:16:19 2008 From: do-not-reply at jboss.com (ljgp) Date: Mon, 14 Apr 2008 03:16:19 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: No tests for @SchemaValidation annotation in 3.0.1 ? Message-ID: <10377619.1208157379938.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi Thomas, I am probably overlooking something, because I cannot find a proper test for the @SchemaValidation annotation. There are two endpoint classes, org.jboss.test.ws.jaxws.jbws1172.ValidatingEndpoint.java and NonValidatingEndpoint.java The annotation processor processes the @SchemaValidation annotation by adding the relevant feature to the endpoint. However, in JBWS1172TestCase.java, the testcases ignore the defined endpoints, and instead add the validating feature to endpoints defined in the testcode. So, to me it seems the handling of the @SchemaValidation annotation is not tested here. Is there another test for this maybe ? Cheers, Luc. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4143773#4143773 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4143773 From do-not-reply at jboss.com Mon Apr 14 03:53:55 2008 From: do-not-reply at jboss.com (richard.opalka@jboss.com) Date: Mon, 14 Apr 2008 03:53:55 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Wierd error Message-ID: <27044843.1208159635064.JavaMail.jboss@colo-br-02.atl.jboss.com> Download JBoss AS 5 Beta 4. We tested our web services stack on it. AS 5 Beta 3 is unsupported View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4143787#4143787 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4143787 From do-not-reply at jboss.com Mon Apr 14 03:58:19 2008 From: do-not-reply at jboss.com (richard.opalka@jboss.com) Date: Mon, 14 Apr 2008 03:58:19 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Native or Metro ? Message-ID: <16713676.1208159899358.JavaMail.jboss@colo-br-02.atl.jboss.com> See http://jbws.dyndns.org/mediawiki/index.php?title=WSF There's a picture and the following are synonymous: Metro = Glassfish Metro = sunri = Sun JAX-WS View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4143788#4143788 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4143788 From do-not-reply at jboss.com Mon Apr 14 04:00:15 2008 From: do-not-reply at jboss.com (richard.opalka@jboss.com) Date: Mon, 14 Apr 2008 04:00:15 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Error: Message-ID: <7446809.1208160015715.JavaMail.jboss@colo-br-02.atl.jboss.com> jsr181-api.jar View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4143791#4143791 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4143791 From do-not-reply at jboss.com Mon Apr 14 04:01:14 2008 From: do-not-reply at jboss.com (richard.opalka@jboss.com) Date: Mon, 14 Apr 2008 04:01:14 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: How to package a web app into a .war file? Message-ID: <28356679.1208160074339.JavaMail.jboss@colo-br-02.atl.jboss.com> Download our source distribution and take a look to samples ;) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4143792#4143792 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4143792 From do-not-reply at jboss.com Mon Apr 14 04:03:58 2008 From: do-not-reply at jboss.com (richard.opalka@jboss.com) Date: Mon, 14 Apr 2008 04:03:58 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Where do I have to *.jws web service files in JBoss ? Message-ID: <4261063.1208160238409.JavaMail.jboss@colo-br-02.atl.jboss.com> Please, read our documentation first. If still confused download source distribution and try to find the example that fits your needs. If still confused post to user forum ;) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4143793#4143793 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4143793 From do-not-reply at jboss.com Mon Apr 14 04:06:13 2008 From: do-not-reply at jboss.com (richard.opalka@jboss.com) Date: Mon, 14 Apr 2008 04:06:13 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: problem with wsconsume Message-ID: <5171463.1208160373665.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, your problem will be that you have installed jboss into directory which contains spaces in its name. It usually causes a lot of problems. Please install jboss into directory that has no spaces in its name. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4143794#4143794 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4143794 From do-not-reply at jboss.com Mon Apr 14 04:08:01 2008 From: do-not-reply at jboss.com (richard.opalka@jboss.com) Date: Mon, 14 Apr 2008 04:08:01 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: problem with wsconsume Message-ID: <6424764.1208160481946.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, your problem will be that you have installed jboss into directory which contains spaces in its name. It usually causes a lot of problems. Please install jboss into directory that has no spaces in its name. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4143795#4143795 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4143795 From do-not-reply at jboss.com Mon Apr 14 04:08:58 2008 From: do-not-reply at jboss.com (ljgp) Date: Mon, 14 Apr 2008 04:08:58 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: No tests for @SchemaValidation annotation in 3.0.1 ? Message-ID: <31122822.1208160538520.JavaMail.jboss@colo-br-02.atl.jboss.com> Another sign that I am probably missing something: In the jaxws source I cannot find any reference to the class SchemaValidationFeature of which an instance is added to the endpoint (except in the processor doing this). So looking at the source I have here (which must be incomplete) it seems it is added to the endpoint but never used. Cheers, Luc. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4143796#4143796 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4143796 From do-not-reply at jboss.com Mon Apr 14 04:12:31 2008 From: do-not-reply at jboss.com (ljgp) Date: Mon, 14 Apr 2008 04:12:31 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: No tests for @SchemaValidation annotation in 3.0.1 ? Message-ID: <4739158.1208160751053.JavaMail.jboss@colo-br-02.atl.jboss.com> ...never mind, found it. My bad. The question about where the annotation is tested remains. Cheers, Luc. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4143799#4143799 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4143799 From do-not-reply at jboss.com Mon Apr 14 09:38:43 2008 From: do-not-reply at jboss.com (GTWebDev) Date: Mon, 14 Apr 2008 09:38:43 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Upgrading to 4.2.2 changed published WSDL Message-ID: <12262779.1208180323170.JavaMail.jboss@colo-br-02.atl.jboss.com> We are using the default jbossws version that comes with AS 4.2.2. The exceptions differ depending on the client consuming the services and the method being called. Most of the exceptions are related to NullPointerExceptions due to the differences in the published WSDLs. Some Web methods may not produce errors, but don't produce results due to the schema changes as well. Most of the WSDL changes have to do with differences in Namespaces produced by JBOSS. I've tried included package-info that explicitly defines the XmlSchema to closely match the published WSDL, but so far it seems that the only thing I can do for the client apps that consume the services is to re-create the proxies so they have the new definitions. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4143902#4143902 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4143902 From do-not-reply at jboss.com Mon Apr 14 11:40:56 2008 From: do-not-reply at jboss.com (PeterJ) Date: Mon, 14 Apr 2008 11:40:56 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Wierd error Message-ID: <3415400.1208187656071.JavaMail.jboss@colo-br-02.atl.jboss.com> Also notice this part of the output you posted: anonymous wrote : (SEE PREVIOUS ERRORS FOR DETAILS): What you posted is a summary of things that did not deploy. Earlier in the console output there should be an exception stack trace that provides details about what went wrong. You will need to post that (if you run into the problem using beta4). View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4143971#4143971 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4143971 From do-not-reply at jboss.com Mon Apr 14 17:49:45 2008 From: do-not-reply at jboss.com (niwa_java) Date: Mon, 14 Apr 2008 17:49:45 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - running jax-ws web service on jboss 4.0.1 Message-ID: <19910485.1208209785105.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, We have a J2EE application deployed on JBoss4.0.1. I need to call a 'document' style web service from this application. I have the client classes but I cannot access the web service. Do I need to install any jboss ws patch? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144076#4144076 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144076 From do-not-reply at jboss.com Tue Apr 15 01:56:33 2008 From: do-not-reply at jboss.com (enjuto) Date: Tue, 15 Apr 2008 01:56:33 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Launch web services when starting JBOSS Message-ID: <30190395.1208238993080.JavaMail.jboss@colo-br-02.atl.jboss.com> Hello, I have a timer created into a web service class constructor, and I'd like this constructor was called at the start of the JBOSS execution. Is there any way to make this ? Thanks in advance View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144116#4144116 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144116 From do-not-reply at jboss.com Tue Apr 15 02:14:00 2008 From: do-not-reply at jboss.com (oskar.carlstedt) Date: Tue, 15 Apr 2008 02:14:00 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Upgrading to 4.2.2 changed published WSDL Message-ID: <8565720.1208240040623.JavaMail.jboss@colo-br-02.atl.jboss.com> Hello! Sorry to say, but this may be a hard working lesson to never go for the "code first" approach when creating web services which contracts shall be persistent over time and over different application servers. So a tip for future development, write your wsdl and included schemas by hand and then generate code from that (that's what we call "contract first"). Ok, now the good thing. You can always save your old published wsdl file and generate code from that. It will work for you. Kind regards /Oskar View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144123#4144123 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144123 From do-not-reply at jboss.com Tue Apr 15 04:40:22 2008 From: do-not-reply at jboss.com (hekeji) Date: Tue, 15 Apr 2008 04:40:22 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Generate WSDL (From JBoss Eclipse IDE or Command line) Message-ID: <9945384.1208248822290.JavaMail.jboss@colo-br-02.atl.jboss.com> I am search the way how to slove it.. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144155#4144155 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144155 From do-not-reply at jboss.com Tue Apr 15 06:30:25 2008 From: do-not-reply at jboss.com (aneesh62003) Date: Tue, 15 Apr 2008 06:30:25 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Post subject: ConfigurationException:axis.deployment.wsdd.WS Message-ID: <25709109.1208255425822.JavaMail.jboss@colo-br-02.atl.jboss.com> WE are having a webservice client in our application. During the deplyment time we are facing an issue. Our jboss version is. Jboss 4.02 Rc1 Axis version. Implementation-Version: 1.2RC3 2236 February 28 2005 we have put the jboss-net-client.jar in the lib path from the docs Now we are getting a Classcastexception while trying to create a call to the webservice. ExceptionStrackTrace is as shown below. org.apache.axis.deployment.wsdd.WSDDException: java.lang.ClassCastException java.lang.ClassCastException at org.apache.axis.encoding.ser.BaseSerializerFactory.createFactory(BaseSerializerFactory.java:261) at org.apache.axis.deployment.wsdd.WSDDDeployment.deployMapping(WSDDDeployment.java:341) at org.apache.axis.deployment.wsdd.WSDDDeployment.getTypeMappingRegistry(WSDDDeployment.java:520) at org.apache.axis.configuration.FileProvider.getTypeMappingRegistry(FileProvider.java:292) at org.apache.axis.AxisEngine.getTypeMappingRegistry(AxisEngine.java:359) at org.apache.axis.MessageContext.getTypeMappingRegistry(MessageContext.java:452) at org.apache.axis.client.Call.getTypeMapping(Call.java:2156) at org.apache.axis.client.Call.registerTypeMapping(Call.java:2191) at org.apache.axis.client.Call.registerTypeMapping(Call.java:2234) at com.eppsClient.ShowPPCWSBindingStub.createCall(Unknown Source) at com.eppsClient.ShowPPCWSBindingStub.showPPC(Unknown Source) at com.eppsClient.ShowPPCWSClient.getBalance(Unknown Source) at com.epps.FrontController.service(Unknown Source) at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39) at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:147) at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:53) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:825) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:743) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112) at java.lang.Thread.run(Thread.java:534) at org.apache.axis.deployment.wsdd.WSDDDeployment.deployMapping(WSDDDeployment.java:360) at org.apache.axis.deployment.wsdd.WSDDDeployment.getTypeMappingRegistry(WSDDDeployment.java:520) at org.apache.axis.configuration.FileProvider.getTypeMappingRegistry(FileProvider.java:292) at org.apache.axis.AxisEngine.getTypeMappingRegistry(AxisEngine.java:359) at org.apache.axis.MessageContext.getTypeMappingRegistry(MessageContext.java:452) at org.apache.axis.client.Call.getTypeMapping(Call.java:2156) at org.apache.axis.client.Call.registerTypeMapping(Call.java:2191) at org.apache.axis.client.Call.registerTypeMapping(Call.java:2234) at com.eppsClient.ShowPPCWSBindingStub.createCall(Unknown Source) at com.eppsClient.ShowPPCWSBindingStub.showPPC(Unknown Source) at com.eppsClient.ShowPPCWSClient.getBalance(Unknown Source) at com.epps.FrontController.service(Unknown Source) at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39) at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:147) at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:53) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:825) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:743) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112) at java.lang.Thread.run(Thread.java:534) at org.apache.axis.deployment.wsdd.WSDDDeployment.deployMapping(WSDDDeployment.java:360) at org.apache.axis.deployment.wsdd.WSDDDeployment.getTypeMappingRegistry(WSDDDeployment.java:520) at org.apache.axis.configuration.FileProvider.getTypeMappingRegistry(FileProvider.java:292) at org.apache.axis.AxisEngine.getTypeMappingRegistry(AxisEngine.java:359) at org.apache.axis.MessageContext.getTypeMappingRegistry(MessageContext.java:452) at org.apache.axis.client.Call.getTypeMapping(Call.java:2156) at org.apache.axis.client.Call.registerTypeMapping(Call.java:2191) at org.apache.axis.client.Call.registerTypeMapping(Call.java:2234) at com.eppsClient.ShowPPCWSBindingStub.createCall(Unknown Source) at com.eppsClient.ShowPPCWSBindingStub.showPPC(Unknown Source) at com.eppsClient.ShowPPCWSClient.getBalance(Unknown Source) at com.epps.FrontController.service(Unknown Source) at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39) at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:147) at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:53) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:825) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:743) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112) at java.lang.Thread.run(Thread.java:534) 2008-04-15 14:00:14,321 ERROR [com.epps.FrontController] PPC Inquiry Unknown Exception AxisFault faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.generalException faultSubcode: faultString: Failure trying to get the Call object; nested exception is: java.lang.NullPointerException faultActor: faultNode: faultDetail: Failure trying to get the Call object; nested exception is: java.lang.NullPointerException at com.eppsClient.ShowPPCWSBindingStub.createCall(Unknown Source) at com.eppsClient.ShowPPCWSBindingStub.showPPC(Unknown Source) at com.eppsClient.ShowPPCWSClient.getBalance(Unknown Source) Expecting ur help.. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144182#4144182 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144182 From do-not-reply at jboss.com Tue Apr 15 07:20:57 2008 From: do-not-reply at jboss.com (darran.lofthouse@jboss.com) Date: Tue, 15 Apr 2008 07:20:57 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: WS-Security - Invalid timestamp, message claimed to be c Message-ID: <19381490.1208258457447.JavaMail.jboss@colo-br-02.atl.jboss.com> This is now committed and ready to be included in JBossWS 3.0.2. The configuration options are described here: - http://jbws.dyndns.org/mediawiki/index.php?title=WS-Security_options#Advanced_tuning:_timestamp_verification View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144197#4144197 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144197 From do-not-reply at jboss.com Tue Apr 15 10:15:17 2008 From: do-not-reply at jboss.com (regget) Date: Tue, 15 Apr 2008 10:15:17 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Wsconsume and inner classes Message-ID: <31378055.1208268917688.JavaMail.jboss@colo-br-02.atl.jboss.com> Is there a way to have wsconsume tool not generate inner classes? I have been playing around with jax-b bindings but have not gotten it to work. An example of my problem: xsd: ... ... wsconsume generates an A class with a B inner class in A. I need B.class and A.class. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144230#4144230 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144230 From do-not-reply at jboss.com Tue Apr 15 10:32:48 2008 From: do-not-reply at jboss.com (smartz) Date: Tue, 15 Apr 2008 10:32:48 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: NullPointerException from JBossXSEntityResolver Message-ID: <33503120.1208269968571.JavaMail.jboss@colo-br-02.atl.jboss.com> Using JBossWS out-of-box from 4.2.1-GA or 4.2.2-GA - same problem Is any workaround available? Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144245#4144245 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144245 From do-not-reply at jboss.com Tue Apr 15 21:42:28 2008 From: do-not-reply at jboss.com (gothmog) Date: Tue, 15 Apr 2008 21:42:28 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Can not find truststore url Message-ID: <16236474.1208310148858.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, Just got first web service working but I get the following error: 13:35:04,155 ERROR [HTTPClientInvoker] Error creating SSL Socket Factory for client invoker. java.io.IOException: Error initializing socket factory SSL context: Can not find truststore url. The service call still happens, but I guess this has something to do with SSL configuration on the server? given my url is: https://www.paymentexpress.com/WS/PXWS.asmx?WSDL Jboss: 4.2.2.GA JbossWS: 3.0.1-native-2.0.4.GA Any help appreciated Thanks Troy View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144363#4144363 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144363 From do-not-reply at jboss.com Tue Apr 15 19:49:51 2008 From: do-not-reply at jboss.com (jttjunk) Date: Tue, 15 Apr 2008 19:49:51 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Using (Hash)Map in wrapper class Message-ID: <15594739.1208303391798.JavaMail.jboss@colo-br-02.atl.jboss.com> Currently I'm not using Java let alone JBoss. I'm afraid I can't help you. Good luck! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144355#4144355 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144355 From do-not-reply at jboss.com Tue Apr 15 19:22:09 2008 From: do-not-reply at jboss.com (asouza_2000) Date: Tue, 15 Apr 2008 19:22:09 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Using (Hash)Map in wrapper class Message-ID: <16553577.1208301729679.JavaMail.jboss@colo-br-02.atl.jboss.com> It still doesn't work for me... even using a wrapper class. Any other idea ? I'm using JAX-WS 2.0.1 Tks. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144353#4144353 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144353 From do-not-reply at jboss.com Tue Apr 15 19:16:30 2008 From: do-not-reply at jboss.com (asouza_2000) Date: Tue, 15 Apr 2008 19:16:30 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Can't use Map or HashMap in JAX-WS Message-ID: <19478975.1208301390333.JavaMail.jboss@colo-br-02.atl.jboss.com> I can't use Map or HashMap as a return parameter in my Web Service even if I wrap it in another class. It keeps raising: javax.xml.bind.JAXBException: class java.util.HashMap nor any of its super class is known to this context Isn't Map supposed to be supported by default ? Can anyone provide me a working example to use Map and HashMap in Web Services (JAX-WS). Thanks in advance. Antonio Souza. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144352#4144352 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144352 From do-not-reply at jboss.com Wed Apr 16 01:09:44 2008 From: do-not-reply at jboss.com (bsheward) Date: Wed, 16 Apr 2008 01:09:44 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Cannot extract schema definition? Message-ID: <17760881.1208322584567.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, I developed a very simple web service, using wsconsume against a URL for WSDL to create a set of objects, and then the following code: | public void runQuery( String username, String password, String query) { | RemoteService service = new RemoteService (); | RemotePortType rem= service.getRemotePort(); | System.out.println("Server said: " + rem.getRemoteResult( query, username, password)); | } | I get an Exception when instantiating the RemoteService: | Caused by: org.jboss.ws.metadata.wsdl.WSDLException: javax.wsdl.WSDLException: WSDLException: faultCode=OTHER_ERROR: Cannot extract schema definition: java.io.IOException: The file | name, directory name, or volume label syntax is incorrect | at org.jboss.ws.tools.wsdl.WSDLDefinitionsFactory.parse(WSDLDefinitionsFactory.java:154) | at org.jboss.ws.metadata.umdm.ServiceMetaData.getWsdlDefinitions(ServiceMetaData.java:321) | at org.jboss.ws.metadata.builder.jaxws.JAXWSClientMetaDataBuilder.buildMetaData(JAXWSClientMetaDataBuilder.java:85) | at org.jboss.ws.core.jaxws.spi.ServiceDelegateImpl.(ServiceDelegateImpl.java:131) | at org.jboss.ws.core.jaxws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:61) | at javax.xml.ws.Service.(Service.java:83) | at com.mycom.platforms.bf.webclient.RemoteService.(RelevanceService.java:40) | at com.mycom.platforms.bf.BFRemoteServiceClient.runQuery(BigFixRelevanceServiceClient.java:27) | 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:597) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:112) | at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:166) | at org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3InterceptorsInterceptor.java:63) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:54) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47) | at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) | at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79) | ... 39 more | Caused by: javax.wsdl.WSDLException: WSDLException: faultCode=OTHER_ERROR: Cannot extract schema definition: java.io.IOException: The filename, directory name, or volume label synt | ax is incorrect | at org.jboss.ws.tools.wsdl.WSDL11Reader.processTypes(WSDL11Reader.java:384) | at org.jboss.ws.tools.wsdl.WSDL11Reader.processDefinition(WSDL11Reader.java:172) | at org.jboss.ws.tools.wsdl.WSDLDefinitionsFactory.parse(WSDLDefinitionsFactory.java:128) | ... 59 more | Caused by: java.io.IOException: The filename, directory name, or volume label syntax is incorrect | at java.io.WinNTFileSystem.createFileExclusively(Native Method) | at java.io.File.checkAndCreate(File.java:1704) | at java.io.File.createTempFile(File.java:1793) | at org.jboss.ws.metadata.wsdl.xsd.SchemaUtils.getSchemaTempFile(SchemaUtils.java:535) | at org.jboss.ws.tools.wsdl.WSDL11Reader.processSchemaInclude(WSDL11Reader.java:529) | at org.jboss.ws.tools.wsdl.WSDL11Reader.processTypes(WSDL11Reader.java:375) | ... 61 more | One potential issue I can think of is that I am calling this web service while in a Session Bean exposed as a web service. Could anyone give me any other pointers? Thanks, Barry View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144373#4144373 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144373 From do-not-reply at jboss.com Wed Apr 16 05:17:03 2008 From: do-not-reply at jboss.com (rapowder) Date: Wed, 16 Apr 2008 05:17:03 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: problem with calling ssl web service Message-ID: <23821645.1208337424012.JavaMail.jboss@colo-br-02.atl.jboss.com> Thank you for your quick answer! However I am not sure to understand what to put in the url-pattern parameter. All my interfaces are accessible through: https://myserver.com:8443/interfaces/InterfaceBean I tried just to test with /interfaces/* and also specifically with /interfaces/InterfaceBean1 leaving the jboss-beans.xml file as I posted before, but with no success.. what is it that I have to put in the url-pattern? Thank you View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144419#4144419 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144419 From do-not-reply at jboss.com Wed Apr 16 04:34:18 2008 From: do-not-reply at jboss.com (rouvas) Date: Wed, 16 Apr 2008 04:34:18 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: problem with calling ssl web service Message-ID: <14472031.1208334858768.JavaMail.jboss@colo-br-02.atl.jboss.com> Place a transport-guarantee element in your web.xml, thus: | | | All resources | /YOUR_PATH | | | CONFIDENTIAL | | | in the above replace YOUR_PATH with the appropriate value for your case. -Stathis View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144405#4144405 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144405 From do-not-reply at jboss.com Wed Apr 16 04:13:34 2008 From: do-not-reply at jboss.com (rapowder) Date: Wed, 16 Apr 2008 04:13:34 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: problem with calling ssl web service Message-ID: <11452492.1208333614894.JavaMail.jboss@colo-br-02.atl.jboss.com> hugo_th02 how did you manage to configure an ssl webservice? I tried to edit the jboss-beans.xml file at the following lines ${jboss.bind.address} | true | 8443 | 8080 in any way, but my WSDL file always generates a sop:adress in http | | | | I'd actually like to have | I can hardcode www.myserver.com in the webServiceHost parameter, but no way to set https as protocol and port 8443 Any ideas? Please help, it's urgent! Cheers, Andrea View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144401#4144401 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144401 From do-not-reply at jboss.com Wed Apr 16 06:51:39 2008 From: do-not-reply at jboss.com (rouvas) Date: Wed, 16 Apr 2008 06:51:39 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: problem with calling ssl web service Message-ID: <7934078.1208343099410.JavaMail.jboss@colo-br-02.atl.jboss.com> You posted that your interfaces are accessible through | https://myserver.com:8443/interfaces/InterfaceBean | but in the url-pattern you stated | /interfaces/InterfaceBean1 | see the "1" at the end? I've managed to get it working using the following settings: file ${JBOSS_HOME}/server/default/deploy/jboss-web.deployer/server.xml | | and in my web.xml | | | | | adder | gr.rouvas.adder | | | adder | /adder | | | | | All resources | /adder | | | CONFIDENTIAL | | | | | in my case, it is a POJO web service. -Stathis View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144437#4144437 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144437 From do-not-reply at jboss.com Wed Apr 16 09:13:35 2008 From: do-not-reply at jboss.com (claudio_br) Date: Wed, 16 Apr 2008 09:13:35 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Problem consuming .net webservice with jbossws-3.0.1-native- Message-ID: <5579298.1208351615331.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, I created the stubs classes of .net webservice using ant task: org.jboss.wsf.spi.tools.ant.WSConsumeTask But when I invoke the .net webservice I got: javax.xml.ws.WebServiceException: java.io.IOException: Could not transmit message | Exception in thread "main" javax.xml.ws.WebServiceException: java.io.IOException: Could not transmit message | at org.jboss.ws.core.jaxws.client.ClientImpl.handleRemoteException(ClientImpl.java:404) | at org.jboss.ws.core.jaxws.client.ClientImpl.invoke(ClientImpl.java:314) | at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:172) | at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:152) | at $Proxy15.getToken(Unknown Source) | at teste.Teste.getXY(Teste.java:26) | at teste.Teste.main(Teste.java:73) | Caused by: java.io.IOException: Could not transmit message | at org.jboss.ws.core.client.HTTPRemotingConnection.invoke(HTTPRemotingConnection.java:255) | at org.jboss.ws.core.client.SOAPProtocolConnectionHTTP.invoke(SOAPProtocolConnectionHTTP.java:73) | at org.jboss.ws.core.CommonClient.invoke(CommonClient.java:339) | at org.jboss.ws.core.jaxws.client.ClientImpl.invoke(ClientImpl.java:302) | ... 5 more | Caused by: org.jboss.remoting.CannotConnectException: Can not connect http client invoker. | at org.jboss.remoting.transport.http.HTTPClientInvoker.useHttpURLConnection(HTTPClientInvoker.java:333) | at org.jboss.remoting.transport.http.HTTPClientInvoker.transport(HTTPClientInvoker.java:135) | at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:122) | at org.jboss.remoting.Client.invoke(Client.java:1634) | at org.jboss.remoting.Client.invoke(Client.java:548) | at org.jboss.ws.core.client.HTTPRemotingConnection.invoke(HTTPRemotingConnection.java:233) | ... 8 more | Caused by: org.jboss.ws.WSException: Invalid HTTP server response [501] - Not Implemented | at org.jboss.ws.core.soap.SOAPMessageUnMarshallerHTTP.read(SOAPMessageUnMarshallerHTTP.java:77) | at org.jboss.remoting.transport.http.HTTPClientInvoker.readResponse(HTTPClientInvoker.java:473) | at org.jboss.remoting.transport.http.HTTPClientInvoker.useHttpURLConnection(HTTPClientInvoker.java:305) | ... 13 more With the release jbossws 2.0.0.GA the calls are made successfully. Please, help me. Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144471#4144471 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144471 From do-not-reply at jboss.com Wed Apr 16 10:08:42 2008 From: do-not-reply at jboss.com (richard.opalka@jboss.com) Date: Wed, 16 Apr 2008 10:08:42 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Problem consuming .net webservice with jbossws-3.0.1-nat Message-ID: <16324034.1208354922039.JavaMail.jboss@colo-br-02.atl.jboss.com> Could you post exchanged messages? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144501#4144501 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144501 From do-not-reply at jboss.com Wed Apr 16 10:50:54 2008 From: do-not-reply at jboss.com (claudio_br) Date: Wed, 16 Apr 2008 10:50:54 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Problem consuming .net webservice with jbossws-3.0.1-nat Message-ID: <19642354.1208357454965.JavaMail.jboss@colo-br-02.atl.jboss.com> How can I do this? Please, show me a sample code. Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144518#4144518 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144518 From do-not-reply at jboss.com Wed Apr 16 11:17:25 2008 From: do-not-reply at jboss.com (richard.opalka@jboss.com) Date: Wed, 16 Apr 2008 11:17:25 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Problem consuming .net webservice with jbossws-3.0.1-nat Message-ID: <11314321.1208359045940.JavaMail.jboss@colo-br-02.atl.jboss.com> Use wireshark http://www.wireshark.org/ View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144534#4144534 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144534 From do-not-reply at jboss.com Wed Apr 16 12:28:08 2008 From: do-not-reply at jboss.com (claudio_br) Date: Wed, 16 Apr 2008 12:28:08 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Problem consuming .net webservice with jbossws-3.0.1-nat Message-ID: <5828242.1208363288272.JavaMail.jboss@colo-br-02.atl.jboss.com> I added the log4j with DEBUG level: 16/04/2008 13:21:03 org.jboss.ws.metadata.builder.jaxws.JAXWSWebServiceMetaDataBuilder - START buildMetaData: [service={http://webservices.maplink2.com.br}Authentication] | 16/04/2008 13:21:03 org.jboss.ws.tools.wsdl.WSDLDefinitionsFactory - parse: http://webservices.maplink2.com.br/webservices/v3/Authentication/Authentication.asmx?WSDL | 16/04/2008 13:21:04 org.jboss.wsf.framework.DefaultSPIProvider - provide SPI 'class org.jboss.wsf.spi.management.ServerConfigFactory' | 16/04/2008 13:21:04 org.jboss.wsf.framework.DefaultSPIProvider - class org.jboss.wsf.spi.management.ServerConfigFactory Implementation: org.jboss.wsf.framework.management.ServerConfigFactoryImpl at 1a06e38 | 16/04/2008 13:21:04 org.jboss.ws.tools.JavaToXSD - Load schema: http://webservices.maplink2.com.br=file:/C:/DOCUME~1/claudior/CONFIG~1/Temp/JBossWS_webservices.maplink2.com.br52730.xsd | 16/04/2008 13:21:04 org.jboss.ws.core.utils.JBossWSEntityResolver - resolveEntity: [pub=null,sysid=file:/C:/DOCUME~1/claudior/CONFIG~1/Temp/JBossWS_webservices.maplink2.com.br52730.xsd] | 16/04/2008 13:21:04 org.jboss.ws.core.utils.JBossWSEntityResolver - resolveEntity: [pub=http://schemas.xmlsoap.org/soap/encoding/,sysid=null] | 16/04/2008 13:21:05 org.jboss.ws.metadata.wsdl.WSDLDefinitions - Multiple WSDL bindings referrence the same interface: {http://webservices.maplink2.com.br}AuthenticationSoap | 16/04/2008 13:21:05 org.jboss.ws.metadata.wsdl.WSDLDefinitions - Multiple WSDL bindings referrence the same interface: {http://webservices.maplink2.com.br}AuthenticationSoap | 16/04/2008 13:21:05 org.jboss.ws.metadata.wsdl.WSDLDefinitions - Multiple WSDL bindings referrence the same interface: {http://webservices.maplink2.com.br}AuthenticationSoap | 16/04/2008 13:21:05 org.jboss.ws.metadata.wsdl.WSDLDefinitions - Multiple WSDL bindings referrence the same interface: {http://webservices.maplink2.com.br}AuthenticationSoap | 16/04/2008 13:21:05 org.jboss.ws.metadata.wsdl.WSDLDefinitions - Multiple WSDL bindings referrence the same interface: {http://webservices.maplink2.com.br}AuthenticationSoap | 16/04/2008 13:21:05 org.jboss.ws.metadata.wsdl.WSDLDefinitions - Multiple WSDL bindings referrence the same interface: {http://webservices.maplink2.com.br}AuthenticationSoap | 16/04/2008 13:21:05 org.jboss.ws.metadata.umdm.EndpointMetaData - Using default parameter style: WRAPPED | 16/04/2008 13:21:05 org.jboss.ws.metadata.umdm.EndpointMetaData - Using default parameter style: WRAPPED | 16/04/2008 13:21:05 org.jboss.ws.metadata.builder.jaxws.JAXWSWebServiceMetaDataBuilder - END buildMetaData: | UnifiedMetaData: | implementation: jbossws-3.0.1-native-2.0.4.GA (build=200803312044) | deploymentName: null | securityDomain: null | | ServiceMetaData: | qname={http://webservices.maplink2.com.br}Authentication | refName=null | wsdName=null | wsdlFile=null | wsdlLocation=http://webservices.maplink2.com.br/webservices/v3/Authentication/Authentication.asmx?WSDL | jaxrpcMapping=null | publishLocation=null | securityConfig=null | properties=null | | TypesMetaData: | | | | | | | | | | | | | | | | | | | | ClientEndpointMetaData: | type=JAXWS | qname={http://webservices.maplink2.com.br}AuthenticationSoap | address=http://webservices.maplink2.com.br/webservices/v3/Authentication/Authentication.asmx | binding=http://www.w3.org/2003/05/soap/bindings/HTTP/ | seiName=null | configFile=META-INF/standard-jaxws-client-config.xml | configName=Standard Client | authMethod=null | properties={} | | OperationMetaData: | qname={http://webservices.maplink2.com.br}getToken | javaName={http://webservices.maplink2.com.br}getToken | style=document/literal/WRAPPED | oneWay=false | soapAction=http://webservices.maplink2.com.br/getToken | ClientEndpointMetaData: | type=JAXWS | qname={http://webservices.maplink2.com.br}AuthenticationSoap12 | address=http://webservices.maplink2.com.br/webservices/v3/Authentication/Authentication.asmx | binding=http://www.w3.org/2003/05/soap/bindings/HTTP/ | seiName=null | configFile=META-INF/standard-jaxws-client-config.xml | configName=Standard Client | authMethod=null | properties={} | | OperationMetaData: | qname={http://webservices.maplink2.com.br}getToken | javaName={http://webservices.maplink2.com.br}getToken | style=document/literal/WRAPPED | oneWay=false | soapAction=http://webservices.maplink2.com.br/getToken | 16/04/2008 13:21:05 org.jboss.ws.metadata.builder.jaxws.JAXWSWebServiceMetaDataBuilder - START: rebuildMetaData | 16/04/2008 13:21:05 org.jboss.ws.metadata.umdm.EndpointMetaData - setParameterStyle: null | 16/04/2008 13:21:05 org.jboss.ws.metadata.umdm.EndpointMetaData - Create new config [name=Standard Client,file=META-INF/standard-jaxws-client-config.xml] | 16/04/2008 13:21:05 org.jboss.ws.metadata.config.JBossWSConfigFactory - getConfig: [name=Standard Client,url=META-INF/standard-jaxws-client-config.xml] | 16/04/2008 13:21:05 org.jboss.ws.metadata.config.JBossWSConfigFactory - parse: jar:file:/C:/eclipse/workspace/GeradorWsClient204/lib/jbossws-client.jar!/META-INF/standard-jaxws-client-config.xml | 16/04/2008 13:21:05 org.jboss.ws.metadata.umdm.EndpointMetaData - Configure EndpointMetaData | 16/04/2008 13:21:05 org.jboss.ws.metadata.umdm.EndpointMetaData - Added 0 PRE handlers | 16/04/2008 13:21:05 org.jboss.ws.metadata.umdm.EndpointMetaData - Added 0 ENDPOINT handlers | 16/04/2008 13:21:05 org.jboss.ws.metadata.umdm.EndpointMetaData - Added 0 POST handlers | 16/04/2008 13:21:05 org.jboss.ws.metadata.umdm.EndpointMetaData - setParameterStyle: WRAPPED | 16/04/2008 13:21:05 org.jboss.ws.metadata.builder.jaxws.JAXWSWebServiceMetaDataBuilder - JAXBContext [types=[class ws.maplink.authentication.GetToken, class ws.maplink.authentication.GetTokenResponse],tns=http://webservices.maplink2.com.br] | 16/04/2008 13:21:06 org.jboss.ws.metadata.umdm.OperationMetaData - Found best matching java method: public abstract java.lang.String ws.maplink.authentication.AuthenticationSoap.getToken(java.lang.String,java.lang.String) | 16/04/2008 13:21:06 org.jboss.ws.metadata.builder.jaxws.JAXWSWebServiceMetaDataBuilder - END: rebuildMetaData | | ServiceMetaData: | qname={http://webservices.maplink2.com.br}Authentication | refName=null | wsdName=null | wsdlFile=null | wsdlLocation=http://webservices.maplink2.com.br/webservices/v3/Authentication/Authentication.asmx?WSDL | jaxrpcMapping=null | publishLocation=null | securityConfig=null | properties=null | | TypesMetaData: | [complexType={http://webservices.maplink2.com.br}getToken,javaType=ws.maplink.authentication.GetToken] | [complexType={http://webservices.maplink2.com.br}getTokenResponse,javaType=ws.maplink.authentication.GetTokenResponse] | | | | | | | | | | | | | | | | | | | | ClientEndpointMetaData: | type=JAXWS | qname={http://webservices.maplink2.com.br}AuthenticationSoap | address=http://webservices.maplink2.com.br/webservices/v3/Authentication/Authentication.asmx | binding=http://www.w3.org/2003/05/soap/bindings/HTTP/ | seiName=ws.maplink.authentication.AuthenticationSoap | configFile=META-INF/standard-jaxws-client-config.xml | configName=Standard Client | authMethod=null | properties={} | | OperationMetaData: | qname={http://webservices.maplink2.com.br}getToken | javaName=getToken | style=document/literal/WRAPPED | oneWay=false | soapAction=http://webservices.maplink2.com.br/getToken | ParameterMetaData: | xmlName={http://webservices.maplink2.com.br}getToken | partName=getToken | xmlType={http://webservices.maplink2.com.br}getToken | javaType=ws.maplink.authentication.GetToken | mode=IN | inHeader=false | index=0 | wrappedParameters=[[name = {http://webservices.maplink2.com.br}user, type = java.lang.String, typeArgs = null, variable = user, index = 0], [name = {http://webservices.maplink2.com.br}pwd, type = java.lang.String, typeArgs = null, variable = pwd, index = 1]] | ReturnMetaData: | xmlName={http://webservices.maplink2.com.br}getTokenResponse | partName=getTokenResponse | xmlType={http://webservices.maplink2.com.br}getTokenResponse | javaType=ws.maplink.authentication.GetTokenResponse | mode=OUT | inHeader=false | index=-1 | wrappedParameters=[[name = {http://webservices.maplink2.com.br}getTokenResult, type = java.lang.String, typeArgs = null, variable = getTokenResult, index = -1]] | ClientEndpointMetaData: | type=JAXWS | qname={http://webservices.maplink2.com.br}AuthenticationSoap12 | address=http://webservices.maplink2.com.br/webservices/v3/Authentication/Authentication.asmx | binding=http://www.w3.org/2003/05/soap/bindings/HTTP/ | seiName=null | configFile=META-INF/standard-jaxws-client-config.xml | configName=Standard Client | authMethod=null | properties={} | | OperationMetaData: | qname={http://webservices.maplink2.com.br}getToken | javaName={http://webservices.maplink2.com.br}getToken | style=document/literal/WRAPPED | oneWay=false | soapAction=http://webservices.maplink2.com.br/getToken | 16/04/2008 13:21:06 org.jboss.ws.metadata.umdm.EndpointMetaData - Configure SOAPBinding | 16/04/2008 13:21:06 org.jboss.ws.core.jaxws.handler.HandlerResolverImpl - initHandlerChain: PRE | 16/04/2008 13:21:06 org.jboss.ws.core.jaxws.handler.HandlerResolverImpl - initHandlerChain: ENDPOINT | 16/04/2008 13:21:06 org.jboss.ws.core.jaxws.handler.HandlerResolverImpl - initHandlerChain: POST | 16/04/2008 13:21:06 org.jboss.ws.core.jaxws.handler.HandlerResolverImpl - getHandlerChain: [type=PRE,info=[service={http://webservices.maplink2.com.br}Authentication,port={http://webservices.maplink2.com.br}AuthenticationSoap,binding=http://www.w3.org/2003/05/soap/bindings/HTTP/]] | 16/04/2008 13:21:06 org.jboss.ws.core.jaxws.handler.HandlerResolverImpl - getHandlerChain: [type=POST,info=[service={http://webservices.maplink2.com.br}Authentication,port={http://webservices.maplink2.com.br}AuthenticationSoap,binding=http://www.w3.org/2003/05/soap/bindings/HTTP/]] | 16/04/2008 13:21:06 org.jboss.ws.core.jaxws.handler.HandlerResolverImpl - getHandlerChain: [type=ENDPOINT,info=[service={http://webservices.maplink2.com.br}Authentication,port={http://webservices.maplink2.com.br}AuthenticationSoap,binding=http://www.w3.org/2003/05/soap/bindings/HTTP/]] | 16/04/2008 13:21:06 org.jboss.ws.core.jaxws.binding.BindingImpl - setHandlerChain: [] | 16/04/2008 13:21:06 org.jboss.ws.core.jaxws.spi.ServiceDelegateImpl - No port configuration for: {http://webservices.maplink2.com.br}AuthenticationSoap | 16/04/2008 13:21:06 org.jboss.ws.core.soap.MessageContextAssociation - pushMessageContext: org.jboss.ws.core.jaxws.handler.SOAPMessageContextJAXWS at bc5596 (Thread main) | 16/04/2008 13:21:06 org.jboss.ws.core.jaxrpc.ParameterWrapping - wrapRequestParameters: ws.maplink.authentication.GetToken | 16/04/2008 13:21:06 org.jboss.ws.core.EndpointInvocation - setRequestParamValue: [name={http://webservices.maplink2.com.br}getToken,value=ws.maplink.authentication.GetToken] | 16/04/2008 13:21:06 org.jboss.ws.core.jaxws.binding.SOAP12BindingJAXWS - bindRequestMessage: {http://webservices.maplink2.com.br}getToken | 16/04/2008 13:21:06 org.jboss.ws.core.EndpointInvocation - getRequestParamValue: {http://webservices.maplink2.com.br}getToken | 16/04/2008 13:21:06 org.jboss.ws.core.EndpointInvocation - transformPayloadValue: ws.maplink.authentication.GetToken -> ws.maplink.authentication.GetToken | 16/04/2008 13:21:06 org.jboss.ws.core.jaxws.handler.HandlerChainExecutor - Create a handler executor: [] | 16/04/2008 13:21:06 org.jboss.ws.core.jaxws.handler.HandlerChainExecutor - Create a handler executor: [] | 16/04/2008 13:21:06 org.jboss.ws.core.jaxws.handler.HandlerChainExecutor - Create a handler executor: [] | 16/04/2008 13:21:06 org.jboss.ws.core.client.HTTPRemotingConnection - Get locator for: [addr=http://webservices.maplink2.com.br/webservices/v3/Authentication/Authentication.asmx,props={javax.xml.ws.service.endpoint.address=http://webservices.maplink2.com.br/webservices/v3/Authentication/Authentication.asmx}] | 16/04/2008 13:21:06 org.jboss.remoting.MicroRemoteClientInvoker - org.jboss.remoting.transport.http.HTTPClientInvoker at 6833f2 connecting | 16/04/2008 13:21:06 org.jboss.remoting.MicroRemoteClientInvoker - org.jboss.remoting.transport.http.HTTPClientInvoker at 6833f2 connected | 16/04/2008 13:21:06 org.jboss.ws.core.client.HTTPRemotingConnection - Remoting metadata: {HEADER={SOAPAction="http://webservices.maplink2.com.br/getToken", Content-Type=application/soap+xml; charset=UTF-8}, NoThrowOnError=true} | 16/04/2008 13:21:06 org.jboss.remoting.transport.http.HTTPClientInvoker - Setting request header with SOAPAction : "http://webservices.maplink2.com.br/getToken" | 16/04/2008 13:21:06 org.jboss.remoting.transport.http.HTTPClientInvoker - Setting request header with Content-Type : application/soap+xml; charset=UTF-8 | 16/04/2008 13:21:06 org.jboss.ws.core.soap.SOAPContentElement - ----------------------------------- | 16/04/2008 13:21:06 org.jboss.ws.core.soap.SOAPContentElement - Transitioning from OBJECT_VALID to XML_VALID | 16/04/2008 13:21:06 org.jboss.ws.core.soap.ObjectContent - getXMLFragment from Object [xmlType={http://webservices.maplink2.com.br}getToken,javaType=class ws.maplink.authentication.GetToken] | 16/04/2008 13:21:06 org.jboss.ws.core.jaxws.JAXBSerializer - serialize: [xmlName={http://webservices.maplink2.com.br}getToken,xmlType={http://webservices.maplink2.com.br}getToken] | 16/04/2008 13:21:08 org.jboss.ws.core.jaxws.JAXBSerializer - serialized: userpassword | 16/04/2008 13:21:08 org.jboss.ws.core.soap.ObjectContent - xmlFragment: [source=userpassword] | 16/04/2008 13:21:08 org.jboss.ws.core.soap.SOAPContentElement - ----------------------------------- | 16/04/2008 13:21:08 org.jboss.remoting.transport.http.HTTPClientInvoker - Error invoking http client invoker. | org.jboss.ws.WSException: Invalid HTTP server response [501] - Not Implemented | at org.jboss.ws.core.soap.SOAPMessageUnMarshallerHTTP.read(SOAPMessageUnMarshallerHTTP.java:77) | at org.jboss.remoting.transport.http.HTTPClientInvoker.readResponse(HTTPClientInvoker.java:473) | at org.jboss.remoting.transport.http.HTTPClientInvoker.useHttpURLConnection(HTTPClientInvoker.java:305) | at org.jboss.remoting.transport.http.HTTPClientInvoker.transport(HTTPClientInvoker.java:135) | at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:122) | at org.jboss.remoting.Client.invoke(Client.java:1634) | at org.jboss.remoting.Client.invoke(Client.java:548) | at org.jboss.ws.core.client.HTTPRemotingConnection.invoke(HTTPRemotingConnection.java:233) | at org.jboss.ws.core.client.SOAPProtocolConnectionHTTP.invoke(SOAPProtocolConnectionHTTP.java:73) | at org.jboss.ws.core.CommonClient.invoke(CommonClient.java:339) | at org.jboss.ws.core.jaxws.client.ClientImpl.invoke(ClientImpl.java:302) | at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:172) | at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:152) | at $Proxy15.getToken(Unknown Source) | at teste.Teste.getXY(Teste.java:26) | at teste.Teste.main(Teste.java:73) | 16/04/2008 13:21:08 org.jboss.ws.core.jaxws.handler.MessageContextJAXWS - Begin response processing | 16/04/2008 13:21:08 org.jboss.ws.core.soap.MessageContextAssociation - popMessageContext: org.jboss.ws.core.jaxws.handler.SOAPMessageContextJAXWS at bc5596 (Thread main) | 16/04/2008 13:21:08 org.jboss.ws.core.soap.MessageContextAssociation - pushMessageContext: org.jboss.ws.core.jaxws.handler.SOAPMessageContextJAXWS at 8f2ca6 (Thread main) | 16/04/2008 13:21:08 org.jboss.ws.core.jaxws.handler.HandlerChainExecutor - close | 16/04/2008 13:21:08 org.jboss.ws.core.jaxws.handler.HandlerChainExecutor - close | 16/04/2008 13:21:08 org.jboss.ws.core.jaxws.handler.HandlerChainExecutor - close | 16/04/2008 13:21:08 org.jboss.ws.core.soap.MessageContextAssociation - popMessageContext: org.jboss.ws.core.jaxws.handler.SOAPMessageContextJAXWS at 8f2ca6 (Thread main) Can you see the problem? Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144561#4144561 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144561 From do-not-reply at jboss.com Wed Apr 16 12:53:06 2008 From: do-not-reply at jboss.com (richard.opalka@jboss.com) Date: Wed, 16 Apr 2008 12:53:06 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Problem consuming .net webservice with jbossws-3.0.1-nat Message-ID: <3542745.1208364786912.JavaMail.jboss@colo-br-02.atl.jboss.com> This is our code: public class SOAPMessageUnMarshallerHTTP implements UnMarshaller | { | private static List validResponseCodes = new ArrayList(); | static | { | validResponseCodes.add(HttpServletResponse.SC_OK); // 200 | validResponseCodes.add(HttpServletResponse.SC_ACCEPTED); | validResponseCodes.add(HttpServletResponse.SC_NO_CONTENT); | validResponseCodes.add(HttpServletResponse.SC_INTERNAL_SERVER_ERROR); | } | | public Object read(InputStream inputStream, Map metadata) | throws IOException, ClassNotFoundException | { | ... | if (validResponseCodes.contains(resCode) == false) | throw new WSException("Invalid HTTP server response [" + resCode + "] - " + resMessage); | ... | } That means we are able to process correctly the following HTTP codes: 200, 202, 204 and 500 Your response contains 501 HTTP code thus you are receiving the above exception :( Anyway could you post me the response message body? I mean the one that contains 501 HTTP code. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144570#4144570 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144570 From do-not-reply at jboss.com Wed Apr 16 12:58:10 2008 From: do-not-reply at jboss.com (richard.opalka@jboss.com) Date: Wed, 16 Apr 2008 12:58:10 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Problem consuming .net webservice with jbossws-3.0.1-nat Message-ID: <27904064.1208365090309.JavaMail.jboss@colo-br-02.atl.jboss.com> "richard.opalka at jboss.com" wrote : | Anyway could you post me the response message body? I mean the one that contains 501 HTTP code. I'd like to see if it's correct SOAP fault message or not. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144572#4144572 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144572 From do-not-reply at jboss.com Wed Apr 16 13:21:19 2008 From: do-not-reply at jboss.com (claudio_br) Date: Wed, 16 Apr 2008 13:21:19 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Problem consuming .net webservice with jbossws-3.0.1-nat Message-ID: <16096902.1208366479708.JavaMail.jboss@colo-br-02.atl.jboss.com> With wireshark I got: GET /webservices/v3/Authentication/Authentication.asmx?WSDL HTTP/1.1 | | User-Agent: Java/1.5.0_06 | | Host: webservices.maplink2.com.br | | Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2 | | Connection: keep-alive | | Content-type: application/x-www-form-urlencoded | | | | HTTP/1.0 200 OK | | Date: Wed, 16 Apr 2008 17:08:56 GMT | | Server: Microsoft-IIS/6.0 | | X-Powered-By: ASP.NET | | X-AspNet-Version: 2.0.50727 | | Cache-Control: private, max-age=0 | | Content-Type: text/xml; charset=utf-8 | | Content-Length: 3399 | | X-Cache: MISS from fw0-sp.buscape-local.com.br | | Via: 1.0 fw0-sp.buscape-local.com.br:3128 (squid/2.6.STABLE16) | | Connection: keep-alive | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Cria token para autentica....o do usu..rio | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | GET /webservices/v3/Authentication/Authentication.asmx?WSDL HTTP/1.1 | | User-Agent: Java/1.5.0_06 | | Host: webservices.maplink2.com.br | | Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2 | | Connection: keep-alive | | Content-type: application/x-www-form-urlencoded | | | | HTTP/1.0 200 OK | | Date: Wed, 16 Apr 2008 17:08:56 GMT | | Server: Microsoft-IIS/6.0 | | X-Powered-By: ASP.NET | | X-AspNet-Version: 2.0.50727 | | Cache-Control: private, max-age=0 | | Content-Type: text/xml; charset=utf-8 | | Content-Length: 3399 | | X-Cache: MISS from fw0-sp.buscape-local.com.br | | Via: 1.0 fw0-sp.buscape-local.com.br:3128 (squid/2.6.STABLE16) | | Connection: keep-alive | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Cria token para autentica....o do usu..rio | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | POST /webservices/v3/Authentication/Authentication.asmx HTTP/1.1 | | SOAPAction: "http://webservices.maplink2.com.br/getToken" | | Content-Type: application/soap+xml; charset=UTF-8 | | JBoss-Remoting-Version: 22 | | User-Agent: JBossRemoting - 2.2.2.SP1 (Bluto) | | Host: webservices.maplink2.com.br | | Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2 | | Connection: keep-alive | | Transfer-Encoding: chunked | | | | HTTP/1.0 501 Not Implemented | | Server: squid/2.6.STABLE16 | | Date: Thu, 17 Apr 2008 17:02:56 GMT | | Content-Type: text/html | | Content-Length: 1185 | | Expires: Thu, 17 Apr 2008 17:02:56 GMT | | X-Squid-Error: ERR_UNSUP_REQ 0 | | X-Cache: MISS from fw0-sp.buscape-local.com.br | | Via: 1.0 fw0-sp.buscape-local.com.br:3128 (squid/2.6.STABLE16) | | Connection: close | | | | | | ERROR: The requested URL could not be retrieved | | |

ERROR

|

The requested URL could not be retrieved

|
|

| While trying to retrieve the URL: | http://webservices.maplink2.com.br/webservices/v3/Authentication/Authentication.asmx |

| The following error was encountered: |

    |
  • | | Unsupported Request Method and Protocol | |
| |

| Squid does not support all request methods for all access protocols. | For example, you can not POST a Gopher request. |

Your cache administrator is webmaster. | |
|


|
| Generated Thu, 17 Apr 2008 17:02:56 GMT by fw0-sp.buscape-local.com.br (squid/2.6.STABLE16) |
| | e3 | | userpassword | | 0 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144584#4144584 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144584 From do-not-reply at jboss.com Wed Apr 16 14:08:59 2008 From: do-not-reply at jboss.com (shruthi) Date: Wed, 16 Apr 2008 14:08:59 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Reg Installation Message-ID: <11444762.1208369339522.JavaMail.jboss@colo-br-02.atl.jboss.com> Hiiii I am a newbie to jboss web services. I have downloaded jbossws 1.2.1 GA and as per the instructions, i tried to install it. But the problem is i am unable to find ant.properties file where i can copy ant.properties.example. Could u plzzz let me know where this file resides. I searched in the folder where i installed ant, but of no use. Any help is appreciated Thanks in advance Shruthi View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144605#4144605 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144605 From do-not-reply at jboss.com Wed Apr 16 15:02:49 2008 From: do-not-reply at jboss.com (claudio_br) Date: Wed, 16 Apr 2008 15:02:49 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Problem consuming .net webservice with jbossws-3.0.1-nat Message-ID: <32699504.1208372569977.JavaMail.jboss@colo-br-02.atl.jboss.com> I executed my code with jbossws-2.0.0.GA and Jbossws-3.0.1-native-2.0.4.GA. The POST with jbossws-2.0.0.GA (successful) | POST /webservices/v3/Authentication/Authentication.asmx?datatype=JBossWSMessage HTTP/1.1 | | SOAPAction: "http://webservices.maplink2.com.br/getToken" | | Content-Type: text/xml; charset=UTF-8 | | JBoss-Remoting-Version: 22 | | User-Agent: JBossRemoting - 2.2.2.SP4 (Bluto) | | Host: webservices.maplink2.com.br | | Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2 | | Connection: keep-alive | | Content-Length: 230 | | | | userpassword The POST with Jbossws-3.0.1-native-2.0.4.GA (with problem) POST /webservices/v3/Authentication/Authentication.asmx HTTP/1.1 | | SOAPAction: "http://webservices.maplink2.com.br/getToken" | | Content-Type: application/soap+xml; charset=UTF-8 | | JBoss-Remoting-Version: 22 | | User-Agent: JBossRemoting - 2.2.2.SP4 (Bluto) | | Host: webservices.maplink2.com.br | | Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2 | | Connection: keep-alive | | Transfer-Encoding: chunked | | | | e6 | | userpassword | | 0 Please, read my last post too. Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144616#4144616 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144616 From do-not-reply at jboss.com Wed Apr 16 15:10:50 2008 From: do-not-reply at jboss.com (PeterJ) Date: Wed, 16 Apr 2008 15:10:50 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Reg Installation Message-ID: <28528341.1208373051014.JavaMail.jboss@colo-br-02.atl.jboss.com> Copy ant.properties.example as ant.properties. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144619#4144619 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144619 From do-not-reply at jboss.com Wed Apr 16 15:12:03 2008 From: do-not-reply at jboss.com (shruthi) Date: Wed, 16 Apr 2008 15:12:03 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Reg Installation Message-ID: <3455650.1208373123823.JavaMail.jboss@colo-br-02.atl.jboss.com> please ignore my post. I have found out what to do. Sorry abt that View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144620#4144620 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144620 From do-not-reply at jboss.com Wed Apr 16 15:12:27 2008 From: do-not-reply at jboss.com (PeterJ) Date: Wed, 16 Apr 2008 15:12:27 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Reg Installation Message-ID: <5873162.1208373148064.JavaMail.jboss@colo-br-02.atl.jboss.com> The ant.properties.example file is in the base directory of the jbossws download. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144621#4144621 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144621 From do-not-reply at jboss.com Wed Apr 16 15:12:56 2008 From: do-not-reply at jboss.com (shruthi) Date: Wed, 16 Apr 2008 15:12:56 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Reg Installation Message-ID: <5912636.1208373176867.JavaMail.jboss@colo-br-02.atl.jboss.com> Thanks peter for the reply View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144622#4144622 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144622 From do-not-reply at jboss.com Wed Apr 16 15:16:25 2008 From: do-not-reply at jboss.com (bsheward) Date: Wed, 16 Apr 2008 15:16:25 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Cannot extract schema definition? [FIXED] Message-ID: <18528728.1208373385691.JavaMail.jboss@colo-br-02.atl.jboss.com> OK, I figured out the problem, it was because there was a "?" in the URL, which wasn't translated into something that the Windows Filesystem could cope with. I fixed the problem by making the highlighted changes to getSchemaTempFile() in org.jboss.ws.metadata.wsdl.xsd.SchemaUtils: | /** Get the temp file for a given namespace | */ | public static File getSchemaTempFile(String targetNS) throws IOException | { | if (targetNS.length() == 0) | throw new IllegalArgumentException("Invalid null target namespace"); | | String fname = targetNS; | if (fname.indexOf("://") > 0) | fname = fname.substring(fname.indexOf("://") + 3); | | File tmpdir = null; | try | { | SPIProvider spiProvider = SPIProviderResolver.getInstance().getProvider(); | ServerConfig serverConfig = spiProvider.getSPI(ServerConfigFactory.class).getServerConfig();File tmpDir = serverConfig.getServerTempDir(); | tmpdir = serverConfig.getServerTempDir(); | tmpdir = new File(tmpdir.getCanonicalPath() + "/jbossws"); | tmpdir.mkdirs(); | } | catch (Throwable th) | { | // ignore if the server config cannot be found | // this would be the case if we are on the client side | } | | fname = fname.replace('/', '_'); | fname = fname.replace(':', '_'); | fname = fname.replace('?', '_'); | | File file = null; | try { | file = File.createTempFile("JBossWS_" + fname, ".xsd", tmpdir); | } catch (IOException x) { | System.out.println("FILE: JBossWS_" + fname); | System.out.println("TMPDIR: " + tmpdir.getCanonicalFile()); | throw x; | } | return file; | } | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144624#4144624 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144624 From do-not-reply at jboss.com Wed Apr 16 18:39:02 2008 From: do-not-reply at jboss.com (jyrinx) Date: Wed, 16 Apr 2008 18:39:02 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Customizing XJC invocation? Message-ID: <18929891.1208385542305.JavaMail.jboss@colo-br-02.atl.jboss.com> We have an XJC plugin we very much need to use, but I don't see any way of changing the XJC command line used by wsconsume. Is it possible to use XJC plugins with JBoss WS? (I saw a post from a year ago asking this question, but evidently the answer has changed, as wsconsume no longer appears to be a thin wrapper around wsimport.) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144662#4144662 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144662 From do-not-reply at jboss.com Wed Apr 16 20:51:21 2008 From: do-not-reply at jboss.com (nlaney) Date: Wed, 16 Apr 2008 20:51:21 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Request Message not mapping to Request Object Properly Message-ID: <21749466.1208393481974.JavaMail.jboss@colo-br-02.atl.jboss.com> Having similar issues; the response message looks, but the values aren't assigned to the objects. Any success? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144684#4144684 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144684 From do-not-reply at jboss.com Thu Apr 17 03:51:07 2008 From: do-not-reply at jboss.com (richard.opalka@jboss.com) Date: Thu, 17 Apr 2008 03:51:07 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Cannot extract schema definition? Message-ID: <13506606.1208418668012.JavaMail.jboss@colo-br-02.atl.jboss.com> It will be fixed in next release, see: http://jira.jboss.org/jira/browse/JBWS-2153 Thanks for your investigation ;) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144747#4144747 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144747 From do-not-reply at jboss.com Thu Apr 17 04:34:53 2008 From: do-not-reply at jboss.com (richard.opalka@jboss.com) Date: Thu, 17 Apr 2008 04:34:53 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Problem consuming .net webservice with jbossws-3.0.1-nat Message-ID: <22995182.1208421293049.JavaMail.jboss@colo-br-02.atl.jboss.com> I'm not able to reproduce your problem. I generated JAX-WS artifacts from WSDL using the following command: | cd $JBOSS_HOME/bin | | ./wsconsume.sh --keep --extension --source=src http://webservices.maplink2.com.br/webservices/v3/Authentication/Authentication.asmx?WSDL | and I created the following test: | package br.com.maplink2.webservices; | | import org.jboss.wsf.test.JBossWSTest; | | public final class AuthenticationTestCase extends JBossWSTest | { | public void testSOAP11() | { | Authentication auth = new Authentication(); | AuthenticationSoap as11 = auth.getAuthenticationSoap(); | System.out.println(as11.getToken("user", "password")); | } | | public void testSOAP12() | { | Authentication auth = new Authentication(); | AuthenticationSoap as12 = auth.getAuthenticationSoap12(); | System.out.println(as12.getToken("user", "password")); | } | } | However I'm always getting HTTP 500 error message. I'm not able to reproduce your HTTP 501 error issue :( View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144756#4144756 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144756 From do-not-reply at jboss.com Thu Apr 17 04:36:45 2008 From: do-not-reply at jboss.com (richard.opalka@jboss.com) Date: Thu, 17 Apr 2008 04:36:45 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Problem consuming .net webservice with jbossws-3.0.1-nat Message-ID: <15294203.1208421405384.JavaMail.jboss@colo-br-02.atl.jboss.com> I tried also low level approach based on sockets: | package org.jboss.test.ws.remoting_issue; | | import java.io.InputStream; | import java.io.OutputStream; | import java.net.Socket; | | public final class Test { | | private static final String CRNL = "\r\n"; | private static final String envelope = "userpassword"; | private static final String msg = | "POST /webservices/v3/Authentication/Authentication.asmx HTTP/1.1" + CRNL + | "SOAPAction: \"http://webservices.maplink2.com.br/getToken\"" + CRNL + | "Content-Type: application/soap+xml; charset=UTF-8" + CRNL + | "JBoss-Remoting-Version: 22" + CRNL + | "User-Agent: JBossRemoting - 2.2.2.SP4 (Bluto)" + CRNL + | "Host: webservices.maplink2.com.br" + CRNL + | "Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2" + CRNL + | "Connection: keep-alive" + CRNL + | "Transfer-Encoding: chunked" + CRNL + | "" + CRNL + | Integer.toHexString(envelope.length()) + CRNL + | envelope + CRNL + "0" + CRNL; | | public static void main(String[] args) throws Exception | { | System.out.println("Sending message" + CRNL + CRNL + msg + CRNL); | System.out.println("Receiving message" + CRNL); | Socket socket = new Socket("webservices.maplink2.com.br", 80); | OutputStream os = socket.getOutputStream(); | os.write(msg.getBytes()); | os.flush(); | InputStream is = socket.getInputStream(); | copy(is, System.out); | } | | private static void copy(InputStream is, OutputStream os) throws Exception | { | byte[] buffer = new byte[128]; | int count = -1; | while ((count = is.read(buffer)) != -1) | { | os.write(buffer, 0, count); | } | os.flush(); | } | | } | but still the same result. I'm always getting HTTP 500 error code, not 501 :( View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144758#4144758 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144758 From do-not-reply at jboss.com Thu Apr 17 04:43:14 2008 From: do-not-reply at jboss.com (richard.opalka@jboss.com) Date: Thu, 17 Apr 2008 04:43:14 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Customizing XJC invocation? Message-ID: <3718996.1208421794820.JavaMail.jboss@colo-br-02.atl.jboss.com> "jyrinx" wrote : Is it possible to use XJC plugins with JBoss WS? No :( View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144759#4144759 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144759 From do-not-reply at jboss.com Thu Apr 17 04:45:59 2008 From: do-not-reply at jboss.com (richard.opalka@jboss.com) Date: Thu, 17 Apr 2008 04:45:59 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Reg Installation Message-ID: <24325440.1208421959414.JavaMail.jboss@colo-br-02.atl.jboss.com> "shruthi" wrote : I have downloaded jbossws 1.2.1 GA Why didn't you download JBossWS 3.0.1 release but really old one? New one fixes a lot of issues, comes with a lot of new features. I highly suggest to use the latest JBossWS version - always ;) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144762#4144762 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144762 From do-not-reply at jboss.com Thu Apr 17 05:30:10 2008 From: do-not-reply at jboss.com (rapowder) Date: Thu, 17 Apr 2008 05:30:10 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: problem with calling ssl web service Message-ID: <33464544.1208424610332.JavaMail.jboss@colo-br-02.atl.jboss.com> The '1' is not a mistake, it was just an example to tell you that I have different webservices under different paths with the same root: /interfaces/InterfaceBean1 | /interfaces/InterfaceBean2 | etc. I am not sure whether this was clear, but that those are webservices listening to SOAP calls and the problem is that the associated wsdl files are not correctly generated by JBoss. I also have the same configuration in server.xml, and I also have a redirection from http://...:8080 to https://...:8443, which works correctly for my web client. I was actually wondering if the configuration is possible through jws annotations... Let me post you some more code, maybe this will help... Here one of the interface beans: | import javax.ejb.Stateless; | import javax.jws.WebMethod; | import javax.jws.WebParam; | import javax.jws.WebService; | import javax.jws.soap.SOAPBinding; | | @Stateless | @WebService | @SOAPBinding(style = SOAPBinding.Style.RPC) | public class GenericInterfaceAgentBean implements GenericInterfaceAgent { | | @WebMethod | public String sessionLogin( | @WebParam(name = "pUsername")String user, | @WebParam(name = "pPassword")String pass | ) { ... } | | .... | | } | When I restart JBoss, a wsdl file is generated under the path: jboss\server\myconf\data\wsdl\myapp.ear\myapp.jar\GenericInterfaceAgentBeanServiceXXX.wsdl and the wsdl file contains (useful pieces of code) (srv11 is the hostname of my server) | | | | ... | | | | | | | | but what I would like is | | ... | | | | | | | | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144778#4144778 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144778 From do-not-reply at jboss.com Thu Apr 17 06:41:57 2008 From: do-not-reply at jboss.com (maffeis) Date: Thu, 17 Apr 2008 06:41:57 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: org.jboss.ws.WSException Message-ID: <32016180.1208428917307.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi. I was able to work around this issue by naming all my WSDL request parameters as "arg0", "arg1" etc (instead of "id", "name" in your example), and by naming by response parameter as "result". Probably there is a cleaner solution using JAXB annotation, which allows you to name parameters the way you like. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144797#4144797 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144797 From do-not-reply at jboss.com Thu Apr 17 06:51:24 2008 From: do-not-reply at jboss.com (yogeshkb) Date: Thu, 17 Apr 2008 06:51:24 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - java-->wsdl/xsd query - minOccurs value of args for wsdl ope Message-ID: <17614751.1208429485127.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi Team, I have a wsdl/xsd snippet generated for an SEI below. The arguments for the operation are all mandatory and they cannot be null. Pls help me on how to configure the wsprovide scripts to generate the wsdl/xsd with the minOccurs=1 for all the arguments of my operation. Regards, Yogesh View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144799#4144799 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144799 From do-not-reply at jboss.com Thu Apr 17 07:05:49 2008 From: do-not-reply at jboss.com (yogeshkb) Date: Thu, 17 Apr 2008 07:05:49 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - @WebFault and @XmlType issues for Exception classes Message-ID: <19926986.1208430349464.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi Team, I have many webservices with operations throwing a common exception (eg., SomeException) across all the services I tried to annotate the SomeException class using various approaches but failed to generate the client stubs with a common target namespace different from the targetnamespace of the webservice itself. Approach 1: Used @XmlType(namespace="common.targetnamespace") in the SomeException class Approach 2: Used @WebFault(targetNamespace="common.targetnamespace") In both the above approaches, the wsconsume generated a separate stub for SomeException class for each webservice in the same targetnamespace of the webservice and not on the specified common.targetnamespace. My requirement is to generate a single SomeException client stub in the common.targetnamespace. Pls let me know whether this is a bug or suggest some workarounds. Regards, Yogesh View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144802#4144802 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144802 From do-not-reply at jboss.com Thu Apr 17 09:02:13 2008 From: do-not-reply at jboss.com (shruthi) Date: Thu, 17 Apr 2008 09:02:13 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Reg Installation Message-ID: <4005540.1208437333153.JavaMail.jboss@colo-br-02.atl.jboss.com> Hey Richard I have to continue with that version as its recommended. ok leave it, I want to place an issue which i am facing. When i am running the samples, i am getting following exception java.lang.IllegalStateException: Could not load provider:org.jboss.ws.tools.jaxw s.impl.WSContractConsumerFactoryImpl Could u plzz let me know, where am i going wrong. I checked thirdparty folder, there is nothing in it. Thanks in advance Shruthi View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144836#4144836 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144836 From do-not-reply at jboss.com Thu Apr 17 09:20:06 2008 From: do-not-reply at jboss.com (pisce) Date: Thu, 17 Apr 2008 09:20:06 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: WebServiceContext is an interface and JaxB can't handle Message-ID: <5524503.1208438406439.JavaMail.jboss@colo-br-02.atl.jboss.com> I guess you found your answer one year ago, but posting it as it appears as one of the first results when you google "JAXB can't handle interfaces". It can occur when you try to marshall/unmarshall with Java classes containing members that are not declared static, and which (or one of their own members) don't have a non-arg constructor. For example a logger, or a JAXB Marshaller object that has a ValidationEventHandler with no non-arg constructor. Then JAXB tries to marshall/unmarshall them and fails with the above error message. Just set them as 'static' and the problem should go. If it doesn't resolve your problem, it can be more tricky with concerns about your web service document style. Take a look here: http://forums.java.net/jive/message.jspa?messageID=215688 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144846#4144846 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144846 From do-not-reply at jboss.com Thu Apr 17 09:32:50 2008 From: do-not-reply at jboss.com (claudio_br) Date: Thu, 17 Apr 2008 09:32:50 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Problem consuming .net webservice with jbossws-3.0.1-nat Message-ID: <10284069.1208439170606.JavaMail.jboss@colo-br-02.atl.jboss.com> Very stranger Richard, I got here error 501. But, try generate the stub client using jbossws-2.0.0.GA, should work. Try send the POST with the version of jbossws-2.0.0.GA. Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144850#4144850 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144850 From do-not-reply at jboss.com Thu Apr 17 09:42:44 2008 From: do-not-reply at jboss.com (claudio_br) Date: Thu, 17 Apr 2008 09:42:44 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Problem consuming .net webservice with jbossws-3.0.1-nat Message-ID: <29027121.1208439764976.JavaMail.jboss@colo-br-02.atl.jboss.com> Completing the my last post, I am using a Windows machine and you a Unix machine. The default file-encoding are different. Because of this you can got error 500. Please read my last post too. Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144854#4144854 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144854 From do-not-reply at jboss.com Thu Apr 17 10:31:06 2008 From: do-not-reply at jboss.com (richard.opalka@jboss.com) Date: Thu, 17 Apr 2008 10:31:06 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Reg Installation Message-ID: <26623114.1208442666589.JavaMail.jboss@colo-br-02.atl.jboss.com> "shruthi" wrote : Could u plzz let me know, where am i going wrong. I checked thirdparty folder, there is nothing in it. Did you follow the installation instructions? If yes please describe the exact steps you did. Which JBoss AS and which JBossWS version are you using at the moment? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144878#4144878 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144878 From do-not-reply at jboss.com Thu Apr 17 10:38:09 2008 From: do-not-reply at jboss.com (richard.opalka@jboss.com) Date: Thu, 17 Apr 2008 10:38:09 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Problem consuming .net webservice with jbossws-3.0.1-nat Message-ID: <411683.1208443089118.JavaMail.jboss@colo-br-02.atl.jboss.com> "claudio_br" wrote : Completing the my last post, I am using a Windows machine and you a Unix machine. The default file-encoding are different. Because of this you can got error 500. | Please read my last post too. | Thanks I don't think the problem is related to unix vs. windows. Maybe it's related to the machine default encoding. Please, try to specify -Dfile.encoding=utf-8 on client side when executing the client via java command View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144883#4144883 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144883 From do-not-reply at jboss.com Thu Apr 17 10:59:47 2008 From: do-not-reply at jboss.com (shruthi) Date: Thu, 17 Apr 2008 10:59:47 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Reg Installation Message-ID: <22030184.1208444387973.JavaMail.jboss@colo-br-02.atl.jboss.com> Yeah i am following this website and trying to do http://jbws.dyndns.org/mediawiki/index.php?title=JBossWS I am using jboss app server of 4.2.2GA version, jbossws-1.2.1GA version and jdk 1.5, ant 1.7.0. I have downloaded the jbossws-1.2.1GA stack and unzipped it and by pointing to the build file in the samples folder, i typed the command "ant tests" and my build failed with the mentioned exception. java.lang.IllegalStateException: Could not load provider:org.jboss.ws.tools.jaxw s.impl.WSContractConsumerFactoryImpl View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144902#4144902 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144902 From do-not-reply at jboss.com Thu Apr 17 12:26:18 2008 From: do-not-reply at jboss.com (claudio_br) Date: Thu, 17 Apr 2008 12:26:18 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Problem consuming .net webservice with jbossws-3.0.1-nat Message-ID: <11169743.1208449578983.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi Richard, I am ready using -Dfile.encoding=utf-8. In your test code you must to use: os.write(msg.getBytes("UTF-8")) | You are using: os.write(msg.getBytes()) Please, try using jbossws 2.0.0.GA to same wsdl, should work. Try use POST of jbossws 2.0.0.GA in your test code. Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144947#4144947 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144947 From do-not-reply at jboss.com Thu Apr 17 13:56:19 2008 From: do-not-reply at jboss.com (bsheward) Date: Thu, 17 Apr 2008 13:56:19 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - How to log entire incoming and outgoing message? Message-ID: <32554663.1208454979766.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, Is there a simple mechanism (System property, log file configuration, etc) to allow me to log the actual XML message being sent and received? I see bits and pieces of the XML dealing with the actual request, but nothing related to the SOAPEnvelope etc. I'm actually having a problem where if my SOAP request fails if it isn't prefixed by . So the following works: | | | | | | ? | ? | ? | | | | Do I need to resort to a packet sniffer or proxy to check whether the " Uncomment this entry in the jboss-log4j.xml file: | The SOAP messages will then show up in server.log. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144971#4144971 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144971 From do-not-reply at jboss.com Thu Apr 17 14:56:48 2008 From: do-not-reply at jboss.com (bsheward) Date: Thu, 17 Apr 2008 14:56:48 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: How to log entire incoming and outgoing message? Message-ID: <23888840.1208458609877.JavaMail.jboss@colo-br-02.atl.jboss.com> Thanks! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144980#4144980 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144980 From do-not-reply at jboss.com Thu Apr 17 14:57:55 2008 From: do-not-reply at jboss.com (bsheward) Date: Thu, 17 Apr 2008 14:57:55 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Cannot extract schema definition? Message-ID: <22729692.1208458676064.JavaMail.jboss@colo-br-02.atl.jboss.com> You're welcome! Thanks for JBossWS ! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144981#4144981 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144981 From do-not-reply at jboss.com Thu Apr 17 15:14:03 2008 From: do-not-reply at jboss.com (bsheward) Date: Thu, 17 Apr 2008 15:14:03 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - How to prefix a SOAP Message with a Processing Instruction? Message-ID: <9578545.1208459644082.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, I have a very simple piece of code to invoke a web service: | ReService service = new ReService(); | RePortType re = service.getRePort(); | results = re.getReResult( query, username, password); | It results in the following SOAP message being posted: | | | | | select * from tbl | user | xxxxxxxx | | | | The problem is that this request is rejected by the server. However, when I prefix the SOAP message with a processing instruction, the server responds correctly: | | | | | | select * from tbl | user | xxxxxxxx | | | | (I tested this theory using SOAP UI (http://www.soapui.org/)) My question is, what is the best way, to prefix the processing instruction to the SOAP message? Are HandlerChains the right way to go? Are there any examples of this type of message manipulation? Thanks and Regards, Barry View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144983#4144983 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144983 From do-not-reply at jboss.com Thu Apr 17 15:21:16 2008 From: do-not-reply at jboss.com (jyrinx) Date: Thu, 17 Apr 2008 15:21:16 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Customizing XJC invocation? Message-ID: <16368818.1208460076676.JavaMail.jboss@colo-br-02.atl.jboss.com> "richard.opalka at jboss.com" wrote : "jyrinx" wrote : Is it possible to use XJC plugins with JBoss WS? No :( Hrm ... that's saddening. Can anyone think of a good hack here? Well, let me explain the problem: We have a Web service that returns objects of an abstract class. So long as we put @XmlSeeAlso on the superclass, the WSDL comes out fine, and the XML elements have xsi:type attributes, and all is well on the server side. (We're using JBoss WS on both the client and server.) But then we try out our test client, and we keep getting InstantiationExceptions when JAXB fails to resolve the entities to their concrete subclass and tries to instantiate the abstract superclass. We realized that if we modified the generated code to include @XmlSeeAlso annotations mirroring those on the server side, everything worked. So the question is one of getting those annotations into the client code. (We could put dummy methods with the concrete subclasses as argument types into the Web service just to force all the subclasses into the JAXBContext, but we'd rather not ...) So this is all quite solvable with an XJC plugin: It has all the information it needs to write the annotations, and the ideal interface to add them to the generated classes. (The plugin class is about 30 LOC.) If there's some way to get that to work, that would be best. Otherwise, we're going to have to resort to much cruder means of post-processing (or the aforementioned dummy methods). (There's also this thing, but honestly I'm not sure how we'd make use of it: it has to go in the generated schema somehow?) And besides, there are other very useful XJC plugins - the one that adds toString() methods, for instance, would be very convenient. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144985#4144985 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144985 From do-not-reply at jboss.com Thu Apr 17 17:27:19 2008 From: do-not-reply at jboss.com (ashishtiwari) Date: Thu, 17 Apr 2008 17:27:19 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Error during deployment with EJB3 exposed as WebService Message-ID: <30121467.1208467639139.JavaMail.jboss@colo-br-02.atl.jboss.com> I am using JBoss AS 5.0.0 Beta 4. I am trying to expose simple EJB3 as Jax-WS based webservice by using annotation, but the ear file is failing to deploy. Following is the error stack that I am seeing: anonymous wrote : 16:56:18,691 INFO [ServerImpl] JBoss (Microcontainer) [5.0.0.Beta4 (build: SVNTag=JBoss_5_0_0_Beta4 date=200802091115)] Started in 35s:752ms | 16:59:11,203 INFO [MCKernelAbstraction] installing bean: jboss.j2ee:ear=JBossWSTest.ear,jar=JBossEJB3.jar,name=JBossEJB3HelloWorld,service=EJB3 with dependencies: | 16:59:11,203 INFO [MCKernelAbstraction] and demands: | 16:59:11,203 INFO [MCKernelAbstraction] jboss.ejb:service=EJBTimerService | 16:59:11,203 INFO [MCKernelAbstraction] and supplies: | 16:59:11,203 INFO [MCKernelAbstraction] Class:sample.ejb.JBossEJB3HelloWorldRemoteInterface | 16:59:11,874 INFO [EJBContainer] STARTED EJB: sample.ejb.JBossEJB3HelloWorld ejbName: JBossEJB3HelloWorld | 16:59:12,015 INFO [DefaultEndpointRegistry] register: jboss.ws:context=JBossEJB3HelloWorld,endpoint=JBossEJB3HelloWorld | 16:59:14,031 INFO [WSDLFilePublisher] WSDL published to: file:/C:/jboss-5.0.0.Beta4/server/default/data/wsdl/JBossWSTest.ear/JBossEJB3.jar/JBossEJB3HelloWorldService45127.wsdl | 16:59:35,063 INFO [MCKernelAbstraction] uninstalling bean: jboss.j2ee:ear=JBossWSTest.ear,jar=JBossEJB3.jar,name=JBossEJB3HelloWorld,service=EJB3 | 16:59:35,079 INFO [EJBContainer] STOPPED EJB: sample.ejb.JBossEJB3HelloWorld ejbName: JBossEJB3HelloWorld | 16:59:35,095 ERROR [AbstractKernelController] Error installing to Real: name=vfsfile:/C:/jboss-5.0.0.Beta4/server/default/deploy/JBossWSTest.ear state=PostClassLoader mode=Manual requiredState=Real | org.jboss.deployers.spi.DeploymentException: Error during deploy: vfsfile:/C:/jboss-5.0.0.Beta4/server/default/deploy/JBossWSTest.ear/JBossEJB3.jar | at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49) | at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:175) | at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:853) | at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:906) | at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:794) | at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:327) | at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1309) | at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:734) | at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:862) | at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:784) | at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:622) | at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:411) | at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:498) | at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:506) | at org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:290) | at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:221) | at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) | at java.util.concurrent.FutureTask$Sync.innerRunAndReset(Unknown Source) | at java.util.concurrent.FutureTask.runAndReset(Unknown Source) | at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(Unknown Source) | at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(Unknown Source) | at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source) | at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) | at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) | at java.lang.Thread.run(Unknown Source) | Caused by: org.jboss.wsf.spi.deployment.WSFDeploymentException: javax.xml.ws.WebServiceException: org.dom4j.DocumentException: Connection timed out: connect Nested exception: Connection timed out: connect | at org.jboss.wsf.spi.deployment.WSFDeploymentException.rethrow(WSFDeploymentException.java:54) | at org.jboss.wsf.container.jboss50.WebAppDeploymentAspect.create(WebAppDeploymentAspect.java:87) | at org.jboss.wsf.framework.deployment.DeploymentAspectManagerImpl.deploy(DeploymentAspectManagerImpl.java:118) | at org.jboss.wsf.container.jboss50.ArchiveDeployerHook.deploy(ArchiveDeployerHook.java:95) | at org.jboss.wsf.container.jboss50.AbstractWebServiceDeployer.internalDeploy(AbstractWebServiceDeployer.java:63) | at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50) | at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:169) | ... 23 more | Caused by: javax.xml.ws.WebServiceException: org.dom4j.DocumentException: Connection timed out: connect Nested exception: Connection timed out: connect | at org.jboss.wsf.container.jboss50.WebXMLRewriterImpl.rewriteWebXml(WebXMLRewriterImpl.java:92) | at org.jboss.wsf.container.jboss50.WebAppDeploymentAspect.create(WebAppDeploymentAspect.java:74) | ... 28 more | Caused by: org.dom4j.DocumentException: Connection timed out: connect Nested exception: Connection timed out: connect | at org.dom4j.io.SAXReader.read(SAXReader.java:484) | at org.dom4j.io.SAXReader.read(SAXReader.java:343) | at org.jboss.wsf.container.jboss50.WebXMLRewriterImpl.rewriteWebXml(WebXMLRewriterImpl.java:111) | at org.jboss.wsf.container.jboss50.WebXMLRewriterImpl.rewriteWebXml(WebXMLRewriterImpl.java:84) | ... 29 more | 16:59:35,110 WARN [HDScanner] Failed to process changes | org.jboss.deployers.client.spi.IncompleteDeploymentException: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS): | | *** CONTEXTS IN ERROR: Name -> Error | | vfsfile:/C:/jboss-5.0.0.Beta4/server/default/deploy/JBossWSTest.ear -> org.dom4j.DocumentException: Connection timed out: connect Nested exception: Connection timed out: connect | | | at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:576) | at org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainDeployerImpl.java:559) | at org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:291) | at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:221) | at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) | at java.util.concurrent.FutureTask$Sync.innerRunAndReset(Unknown Source) | at java.util.concurrent.FutureTask.runAndReset(Unknown Source) | at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(Unknown Source) | at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(Unknown Source) | at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source) | at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) | at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) | at java.lang.Thread.run(Unknown Source) Here are all other details: Code for Sample EJB3 class - JBossEJB3HelloWorld.java: package sample.ejb; | | import javax.ejb.Stateless; | import javax.jws.WebMethod; | import javax.jws.WebService; | import javax.jws.soap.SOAPBinding; | | import org.jboss.wsf.spi.annotation.WebContext; | | @Stateless | @WebService | @WebContext(contextRoot="/JBossEJB3HelloWorld", urlPattern="/JBossEJB3HelloWorld") | @SOAPBinding(style = SOAPBinding.Style.DOCUMENT) | public class JBossEJB3HelloWorld implements JBossEJB3HelloWorldRemoteInterface | { | @WebMethod | public String sayHello(String input) | { | return "Hello " + input; | } | } ------- Code for Sample EJB3 remote interface - JBossEJB3HelloWorldRemoteInterface.java: package sample.ejb; | | import javax.ejb.Remote; | | @Remote | public interface JBossEJB3HelloWorldRemoteInterface | { | String sayHello(String input); | } ---- Packaged as JBossWSTest.ear file with following application.xml | | | JBossEJB3.jar | | I appreciate any help or pointers for resolving this issue. -Ashish View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144999#4144999 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144999 From do-not-reply at jboss.com Thu Apr 17 18:12:27 2008 From: do-not-reply at jboss.com (thoste) Date: Thu, 17 Apr 2008 18:12:27 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: How to package a web app into a .war file? Message-ID: <17149299.1208470347866.JavaMail.jboss@colo-br-02.atl.jboss.com> "richard.opalka at jboss.com" wrote : Download our source distribution and take a look to samples ;) These samples are rather complex. The samples contain a lot of nested ANT build.xml files. It would be rather complicated to track down manually this call hierarchy and assignment dependencies. Is there really no simple "Hello world" WebService sample with just a few environment assignments, a compilation and a deployment statement? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4145005#4145005 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4145005 From do-not-reply at jboss.com Thu Apr 17 19:25:31 2008 From: do-not-reply at jboss.com (PeterJ) Date: Thu, 17 Apr 2008 19:25:31 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: How to package a web app into a .war file? Message-ID: <14352484.1208474731225.JavaMail.jboss@colo-br-02.atl.jboss.com> A simple web service is at http://www.jboss.com/index.html?module=bb&op=viewtopic&t=121494&postdays=0&postorder=asc&start=20 The war contents are not very clear, though. There are only two files in the war for that example: WEB-INF/web.xml WEB-INF/classes/sum.Sum.class That is all there is to it. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4145013#4145013 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4145013 From do-not-reply at jboss.com Fri Apr 18 03:05:09 2008 From: do-not-reply at jboss.com (rashmi_yes) Date: Fri, 18 Apr 2008 03:05:09 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Problem in passing/returning objects over dynamic web servic Message-ID: <10706060.1208502310020.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi Friends, I am beginner in java web service. Here is the problem I am facing when I pass/return user defined objects to remote web service method using dynamic we service call. The client can call the remote web service method in 2 ways. 1. By generating client stubs using WSDL file - In this case, I am able to pass/return the user defined objects to remote method without any issue only when the server side web services are deployed in any server(jboss) - But in java 1.6 & above, the web services can be deployed without server using endpoint. In this case, I am not able to pass/return objects over web service calls. 2. Without generating client stubs (dynamic web service call) - This will establish a connection at run time using the given WSDL file (I have attached the document). I have to form an XML(This will contain API name, arguments) string as input at run time - In this case, it allows only string as argument while passing & returning. Please let me know if you can help me on this. Regards, pani View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4145054#4145054 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4145054 From do-not-reply at jboss.com Fri Apr 18 04:25:39 2008 From: do-not-reply at jboss.com (richard.opalka@jboss.com) Date: Fri, 18 Apr 2008 04:25:39 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: How to prefix a SOAP Message with a Processing Instructi Message-ID: <4875710.1208507139217.JavaMail.jboss@colo-br-02.atl.jboss.com> This will be possible with next release ;) See http://jira.jboss.org/jira/browse/JBWS-2156 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4145074#4145074 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4145074 From do-not-reply at jboss.com Fri Apr 18 04:44:24 2008 From: do-not-reply at jboss.com (richard.opalka@jboss.com) Date: Fri, 18 Apr 2008 04:44:24 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Customizing XJC invocation? Message-ID: <1919042.1208508264233.JavaMail.jboss@colo-br-02.atl.jboss.com> Please read the following doc: http://wiki.jboss.org/wiki/JAXBIntroductions It allows you to do some JAXB customizations and it's config driven. Maybe you will be able to solve your usecase. JBossWS support jaxbintros feature. There are also some tests available in JBossWS source distribution so you can take a look there. If you will be able to find the solution that solves your usecase we would be very pleased if you would document it in our Wiki ;) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4145080#4145080 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4145080 From do-not-reply at jboss.com Fri Apr 18 04:48:21 2008 From: do-not-reply at jboss.com (heiko.braun@jboss.com) Date: Fri, 18 Apr 2008 04:48:21 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Customizing XJC invocation? Message-ID: <8151979.1208508501919.JavaMail.jboss@colo-br-02.atl.jboss.com> No, JAXBIntrods is something different. I guess what you are asking for is http://weblogs.java.net/blog/kohsuke/archive/2005/06/writing_a_plugi.html, right? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4145082#4145082 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4145082 From do-not-reply at jboss.com Fri Apr 18 04:49:08 2008 From: do-not-reply at jboss.com (richard.opalka@jboss.com) Date: Fri, 18 Apr 2008 04:49:08 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Reg Installation Message-ID: <24144058.1208508548816.JavaMail.jboss@colo-br-02.atl.jboss.com> When you unzip your distribution, you have to copy ant.properties.example to ant.properties, modify this file accordingly and run ant tests from the root directory of your unzipped JBossWS 1.2.1 GA distribution View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4145084#4145084 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4145084 From do-not-reply at jboss.com Fri Apr 18 09:17:51 2008 From: do-not-reply at jboss.com (claudio_br) Date: Fri, 18 Apr 2008 09:17:51 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Problem consuming .net webservice with jbossws-3.0.1-nat Message-ID: <13261319.1208524671859.JavaMail.jboss@colo-br-02.atl.jboss.com> Could you do the test? This problem with the release jbossws-3.0.1-native-2.0.4 doesn??t allow I update from release jboss-2.0.0.GA. Thanks. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4145146#4145146 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4145146 From do-not-reply at jboss.com Fri Apr 18 09:22:45 2008 From: do-not-reply at jboss.com (pramod_bs) Date: Fri, 18 Apr 2008 09:22:45 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: WS-Security question Message-ID: <4739202.1208524965163.JavaMail.jboss@colo-br-02.atl.jboss.com> Please look into this. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4145149#4145149 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4145149 From do-not-reply at jboss.com Fri Apr 18 09:26:27 2008 From: do-not-reply at jboss.com (richard.opalka@jboss.com) Date: Fri, 18 Apr 2008 09:26:27 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Problem consuming .net webservice with jbossws-3.0.1-nat Message-ID: <7499434.1208525187529.JavaMail.jboss@colo-br-02.atl.jboss.com> "claudio_br" wrote : | You are using: | os.write(msg.getBytes()) | Yes, because my default platform encoding is utf-8 (it applies to the call) "claudio_br" wrote : | Please, try using jbossws 2.0.0.GA to same wsdl, should work. | Try use POST of jbossws 2.0.0.GA in your test code. | I don't know that you mean :( I was no able to reproduce your 501 problem with JBossWS 3.0.1 why I should try to reproduce it with JBossWS 2.0.0 GA when you say it works? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4145150#4145150 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4145150 From do-not-reply at jboss.com Fri Apr 18 10:02:14 2008 From: do-not-reply at jboss.com (claudio_br) Date: Fri, 18 Apr 2008 10:02:14 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Problem consuming .net webservice with jbossws-3.0.1-nat Message-ID: <25225304.1208527334091.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi Richard, I asked you to try with the release jbossws-2.0.0.GA to prove that .net webservice is functioning normally and that the problem is in release jbossws-3.0.1-native-2.0.4, because the release jbossws-2.0.0.GA works. The .net webservice return always http code 200 to correct request. You got error 500 with release jbossws-3.0.1-native-2.0.4 is a problem too. Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4145164#4145164 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4145164 From do-not-reply at jboss.com Fri Apr 18 10:11:30 2008 From: do-not-reply at jboss.com (reluser99) Date: Fri, 18 Apr 2008 10:11:30 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Asynchronous WebService Using JBOSS4.2.2 & Seam Message-ID: <30221132.1208527890781.JavaMail.jboss@colo-br-02.atl.jboss.com> I want to invoke webservice method calls asynchronously through my client (so as not to wait for the response for long time). I am using the following bindings file and wsimport ant task to accomplish using an example from online source I tried bindings for that particular node (only one web service WSDL or globally for all WSDL's). Below is with globally with all WSDL's. Either way I am out of luck as asynchronous call is not working. Online sources specify using this on Bindings file. enableAsyncMapping=true Please provide any suggestion if you used it with JBOSS4.2.2 with Seam. custom.xml after xml version name (global bindings used here) true wsimprot ant task below. binding dir="" includes="custom.xml" (Above file) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4145165#4145165 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4145165 From do-not-reply at jboss.com Fri Apr 18 12:38:38 2008 From: do-not-reply at jboss.com (hbpost) Date: Fri, 18 Apr 2008 12:38:38 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - TestSuite in Eclipse problem Message-ID: <10140643.1208536718756.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi. I'm having difficulty getting the JBossWS TestSuite to run in Eclipse. I'm using jbossws-3.01-native under 4.2.2GA and was able to build and install jbossws successfully, and run the test from the ant script. I've followed the instructions under 'Setup you IDE' and everything builds fine, but when I try to run any of the tests in Eclipse 3.3.1 I get: "Could not find the main class. Program will exit." The .launch files have been processed correctly from what I can tell, I just can't see what's missing. Thanks, Herman Post View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4145194#4145194 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4145194 From do-not-reply at jboss.com Fri Apr 18 13:54:34 2008 From: do-not-reply at jboss.com (richard.opalka@jboss.com) Date: Fri, 18 Apr 2008 13:54:34 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Problem consuming .net webservice with jbossws-3.0.1-nat Message-ID: <24081392.1208541274169.JavaMail.jboss@colo-br-02.atl.jboss.com> Sorry, but I'm getting the same result with JBossWS 2.0.0 :( | POST /webservices/v3/Authentication/Authentication.asmx?datatype=JBossWSMessage HTTP/1.1 | SOAPAction: "http://webservices.maplink2.com.br/getToken" | Content-Type: text/xml; charset=UTF-8 | JBoss-Remoting-Version: 22 | User-Agent: JBossRemoting - 2.2.2.SP1 (Bluto) | Host: webservices.maplink2.com.br | Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2 | Connection: keep-alive | Content-Length: 227 | | userpassword | | HTTP/1.1 500 Internal Server Error | Date: Fri, 18 Apr 2008 17:52:03 GMT | Server: Microsoft-IIS/6.0 | X-Powered-By: ASP.NET | X-AspNet-Version: 2.0.50727 | Cache-Control: private | Content-Type: application/soap+xml; charset=utf-8 | Content-Length: 743 | | soap:SenderAutentica....o n..o autorizada, por favor, entre em contato com a MapLink.http://webservices.maplink2.com.br/webservices/v3/Authentication/Authentication.asmx?datatype=JBossWSMessage View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4145216#4145216 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4145216 From do-not-reply at jboss.com Fri Apr 18 14:21:46 2008 From: do-not-reply at jboss.com (jyrinx) Date: Fri, 18 Apr 2008 14:21:46 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Customizing XJC invocation? Message-ID: <8245394.1208542906740.JavaMail.jboss@colo-br-02.atl.jboss.com> "richard.opalka at jboss.com" wrote : Please read the following doc: | | http://wiki.jboss.org/wiki/JAXBIntroductions | | It allows you to do some JAXB customizations and it's config driven. Maybe you will be able to solve your usecase. JBossWS support jaxbintros feature. There are also some tests available in JBossWS source distribution so you can take a look there. | Hrm ... if one could sneak an element into the schema that way, that'd be great. I'm guessing from the wiki, though, that Introductions only hooks into schemagen as an alternate annotation reader; can it then do anything an annotation can't? (Otherwise, I don't think Introductions applies here (slick tool nonetheless), since we control all the relevant classes on the server side and can annotate them the old-fashioned way.) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4145227#4145227 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4145227 From do-not-reply at jboss.com Fri Apr 18 14:29:21 2008 From: do-not-reply at jboss.com (jyrinx) Date: Fri, 18 Apr 2008 14:29:21 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Customizing XJC invocation? Message-ID: <13775052.1208543361055.JavaMail.jboss@colo-br-02.atl.jboss.com> "heiko.braun at jboss.com" wrote : No, JAXBIntrods is something different. I guess what you are asking for is | http://weblogs.java.net/blog/kohsuke/archive/2005/06/writing_a_plugi.html, right? Yes yes, that. The problem is I can't add the option ("-Xinject-code" in his example) to the XJC command line, thereby activating the plugin. (Come to think of it, XJC should just let plugins be activated by a registered customization element ... this is Java, land of XML everything :-) ) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4145229#4145229 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4145229 From do-not-reply at jboss.com Fri Apr 18 15:23:44 2008 From: do-not-reply at jboss.com (claudio_br) Date: Fri, 18 Apr 2008 15:23:44 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Problem consuming .net webservice with jbossws-3.0.1-nat Message-ID: <10098829.1208546624775.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi Richard Your last response is correct! You got error 500 because user and password are fake. I can not send my user and password of the system. The original message is: Autentica....o n..o autorizada, por favor, entre em contato com a MapLink. The message translated is: Authentication unauthorized, please contact the MapLink The framework jbossws transform error 500 in my client to: javax.xml.ws.soap.SOAPFaultException: Autentica????????o n????o autorizada, por favor, entre em contato com a MapLink. The response obtained with the version jbossws-3.0.1-native-2.0.4 is the same as obtained with the release jbossws-2.0.0.GA? Why I got error 501? Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4145248#4145248 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4145248 From jbossws-users at lists.jboss.org Sat Apr 19 05:39:48 2008 From: jbossws-users at lists.jboss.org (jbossws-users at lists.jboss.org) Date: Sat, 19 Apr 2008 05:39:48 -0400 Subject: [jbossws-users] Dear jbossws-users@lists.jboss.org April 80% 0FF Message-ID: <20080419123949.5803.qmail@xxx-2c79e1db5d6> Canadian Doctor Eldon Best Price On Net http://www.google.com/pagead/iclk?sa=l&ai=nhysi&num=3222&adurl=http://lkuh.himlook.com?anlv From do-not-reply at jboss.com Mon Apr 21 04:25:05 2008 From: do-not-reply at jboss.com (richard.opalka@jboss.com) Date: Mon, 21 Apr 2008 04:25:05 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Problem consuming .net webservice with jbossws-3.0.1-nat Message-ID: <3638383.1208766305754.JavaMail.jboss@colo-br-02.atl.jboss.com> "claudio_br" wrote : | The response obtained with the version jbossws-3.0.1-native-2.0.4 is the same as obtained with the release jbossws-2.0.0.GA? | Yes "claudio_br" wrote : | Why I got error 501? | Thanks | I wonder too why you're getting 501. I'm not able to tell you :( I verified all the following scenarios but without success to reproduce your 501 issue: message with Content-Length | chunked message | message without query parameter | | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4145395#4145395 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4145395 From do-not-reply at jboss.com Mon Apr 21 08:47:23 2008 From: do-not-reply at jboss.com (extasy) Date: Mon, 21 Apr 2008 08:47:23 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Class loading error Message-ID: <27210844.1208782043628.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, This eror occured while trying to load axis based service in jboss 4.2.2 GA Why this class loading error occurs, Could anybody help. ************************ 10:46:14,945 INFO [TomcatDeployer] deploy, ctxPath=/axis, warUrl=.../tmp/deploy /tmp19794axis-exp.war/ 10:50:47,866 ERROR [[AxisServlet]] Servlet.service() for servlet AxisServlet thr ew exception java.lang.NoClassDefFoundError: Could not initialize class com.nortelnetworks.im s.app.prov.impl.EAPrefixImpl at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:247) at org.apache.axis.utils.ClassUtils$2.run(ClassUtils.java:177) at java.security.AccessController.doPrivileged(Native Method) at org.apache.axis.utils.ClassUtils.loadClass(ClassUtils.java:160) at org.apache.axis.utils.ClassUtils.forName(ClassUtils.java:142) at org.apache.axis.utils.cache.ClassCache.lookup(ClassCache.java:85) at org.apache.axis.providers.java.JavaProvider.getServiceClass(JavaProvi der.java:428) at org.apache.axis.providers.java.JavaProvider.initServiceDesc(JavaProvi der.java:461) at org.apache.axis.handlers.soap.SOAPService.getInitializedServiceDesc(S OAPService.java:286) at org.apache.axis.deployment.wsdd.WSDDService.makeNewInstance(WSDDServi ce.java:500) at org.apache.axis.deployment.wsdd.WSDDDeployment.getDeployedServices(WS DDDeployment.java:503) at org.apache.axis.configuration.FileProvider.getDeployedServices(FilePr ovider.java:296) at org.apache.axis.transport.http.AxisServlet.reportAvailableServices(Ax isServlet.java:482) at org.apache.axis.transport.http.AxisServlet.doGet(AxisServlet.java:260 ) at javax.servlet.http.HttpServlet.service(HttpServlet.java:690) at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBas e.java:327) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl icationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF ilterChain.java:206) at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFi lter.java:96) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl icationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF ilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV alve.java:230) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV alve.java:175) at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(Securit yAssociationValve.java:179) at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValv e.java:84) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j ava:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j ava:102) at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedC onnectionValve.java:157) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal ve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav a:262) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java :844) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce ss(Http11Protocol.java:583) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:44 6) at java.lang.Thread.run(Thread.java:619) *************************** View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4145483#4145483 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4145483 From do-not-reply at jboss.com Mon Apr 21 16:51:11 2008 From: do-not-reply at jboss.com (frst) Date: Mon, 21 Apr 2008 16:51:11 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Complex type names in wsdl starts with lowercase? Message-ID: <18435875.1208811071423.JavaMail.jboss@colo-br-02.atl.jboss.com> I'm trying to set up web services in jboss 4.2.2 using jax-ws, but the complex type name in the generated wsdl always starts with lowercase even if the class name starts with uppercase. Example class: | public class Price { | private double amount; | private String currency; | ... | } | Generated wsdl: | ... | | | | | | | ... | Is it possible to get the complex type name equal the class name (i.e. starting with uppercase)? Thanks in advance Fredrik View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4145632#4145632 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4145632 From do-not-reply at jboss.com Tue Apr 22 03:19:40 2008 From: do-not-reply at jboss.com (richard.opalka@jboss.com) Date: Tue, 22 Apr 2008 03:19:40 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Complex type names in wsdl starts with lowercase? Message-ID: <23890043.1208848780376.JavaMail.jboss@colo-br-02.atl.jboss.com> "frst" wrote : | Is it possible to get the complex type name equal the class name (i.e. starting with uppercase)? | http://jbws.dyndns.org/mediawiki/index.php?title=FAQ#Customizing_WSDL_Schema_Generation View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4145700#4145700 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4145700 From do-not-reply at jboss.com Tue Apr 22 10:05:14 2008 From: do-not-reply at jboss.com (yogeshkb) Date: Tue, 22 Apr 2008 10:05:14 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - How to get password from Handlers? Message-ID: <6150857.1208873115055.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi , Iam using BASIC AUTH. I have a requirement to use the given username and password and use them to do my own auth validations. I can see some options to get the username. Pls let me know how to get the password from the MessageContext object. Regards, Yogesh View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4145848#4145848 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4145848 From do-not-reply at jboss.com Tue Apr 22 10:57:00 2008 From: do-not-reply at jboss.com (joshua.dev) Date: Tue, 22 Apr 2008 10:57:00 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - JbossWS 2.0.3GA installation fails on JBoss AS 4.2.1.GA Message-ID: <12875148.1208876220655.JavaMail.jboss@colo-br-02.atl.jboss.com> I'm trying to install the JBossWS-native 2.0.3.GA on a "fresh" JBoss AS 4.2.1.GA using the "ant deploy-jboss421" command and keep failing with lots of java.lang.ClassNotFoundException and java.lang.NoClassDefFoundError. According to http://jira.jboss.org/jira/browse/JBWS-1924 this issue has already been resolved so what is wrong? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4145886#4145886 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4145886 From do-not-reply at jboss.com Tue Apr 22 11:02:02 2008 From: do-not-reply at jboss.com (claudio_br) Date: Tue, 22 Apr 2008 11:02:02 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Problem consuming .net webservice with jbossws-3.0.1-nat Message-ID: <14348381.1208876522998.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi Richard, The problem with 501 persist. I created a test client to simulate my problem and sended to your email. Please, can you run my test client? Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4145889#4145889 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4145889 From do-not-reply at jboss.com Tue Apr 22 11:05:04 2008 From: do-not-reply at jboss.com (richard.opalka@jboss.com) Date: Tue, 22 Apr 2008 11:05:04 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: JbossWS 2.0.3GA installation fails on JBoss AS 4.2.1.GA Message-ID: <8346446.1208876704048.JavaMail.jboss@colo-br-02.atl.jboss.com> Download latest native release from here: http://www.jboss.org/jbossws/ It's called jbossws-3.0.1-native-2.0.4.GA.zip. It should be fixed there. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4145892#4145892 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4145892 From do-not-reply at jboss.com Tue Apr 22 11:21:28 2008 From: do-not-reply at jboss.com (moksha2007) Date: Tue, 22 Apr 2008 11:21:28 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Problem accessing generated WSDL Message-ID: <9954547.1208877689011.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, I am using Jboss 4.2.2.GA in the following situation; multiple jboss instances and virtual hosts on a single machine. I am also using apache with ajp/proxy to forward requests to the appropriate virtual hosts. For the webservices, I have stateless EJB with annotations, and I can see Jboss generates the wdsl file, but binds it where it becomes difficult to reach it. Something like 127.0.0.105:8080 (virtual ip). To solve that, I am using jboss' WebContext annotation (jbossws-spi). In addition, I am overriding the property 'webServiceHost' in the jboss-beans.xml (from the jbossws.sar/jbossws.beans/META-INF). As result I seeing a 'correct' address in the server.log/ServerEndPointMetaData. However when using the URL it is being picked up by the regular web site that is accompied with the ear-file. I am doing something wrong here? Or do I need to add a mapping/reference in the web.xml to forward web-service requests to the appropriate servlet? Any suggestions? Thanks in advance, Mike Ahlers View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4145904#4145904 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4145904 From do-not-reply at jboss.com Tue Apr 22 15:00:42 2008 From: do-not-reply at jboss.com (claudio_br) Date: Tue, 22 Apr 2008 15:00:42 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Problem consuming .net webservice with jbossws-3.0.1-nat Message-ID: <31223133.1208890842349.JavaMail.jboss@colo-br-02.atl.jboss.com> Sorry, sorry, sorry ... I found the problem. I looked the request and response (previous post) again and I saw: Generated Thu, 17 Apr 2008 17:02:56 GMT by fw0-sp.buscape-local.com.br (squid/2.6.STABLE16) The Squid in my local network blocked the access. I tested in another machine out of my local network and worked. Richard thank you for your help and patience. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4145973#4145973 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4145973 From do-not-reply at jboss.com Tue Apr 22 15:31:33 2008 From: do-not-reply at jboss.com (Lauri) Date: Tue, 22 Apr 2008 15:31:33 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: How to log entire incoming and outgoing message? Message-ID: <22711457.1208892693083.JavaMail.jboss@colo-br-02.atl.jboss.com> "PeterJ" wrote : Uncomment this entry in the jboss-log4j.xml file: | | | | | The SOAP messages will then show up in server.log. Same action can be done without using /jmx-console/ Find service=Logging,type=Log4jService And set log level of org.jboss.ws.core.MessageTrace (or even org.jboss.ws.core) to TRACE View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4145977#4145977 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4145977 From do-not-reply at jboss.com Tue Apr 22 15:32:15 2008 From: do-not-reply at jboss.com (Lauri) Date: Tue, 22 Apr 2008 15:32:15 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: How to log entire incoming and outgoing message? Message-ID: <4288336.1208892735807.JavaMail.jboss@colo-br-02.atl.jboss.com> *without = with View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4145978#4145978 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4145978 From do-not-reply at jboss.com Tue Apr 22 15:52:56 2008 From: do-not-reply at jboss.com (Lauri) Date: Tue, 22 Apr 2008 15:52:56 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - ERROR [org.jboss.wsf.stack.jbws.RequestHandlerImpl] Cannot c Message-ID: <30618813.1208893976622.JavaMail.jboss@colo-br-02.atl.jboss.com> Hello. Do you probably know if such (see subject) error message mean serious trouble? Jboss 4.2.2 + jbossws 3.0.1 are installed. Quite often, may be on every WS call a error message is posted to the log 18:40:52,551 ERROR [org.jboss.wsf.stack.jbws.RequestHandlerImpl] Cannot close output stream | 18:40:56,699 ERROR [org.jboss.wsf.stack.jbws.RequestHandlerImpl] Cannot close output stream | 18:41:21,552 ERROR [org.jboss.wsf.stack.jbws.RequestHandlerImpl] Cannot close output stream source of org.jboss.wsf.stack.jbws.RequestHandlerImpl http://viewvc.jboss.org/cgi-bin/viewvc.cgi/jbossws/branches/jbossws-2.0/integration/native/src/main/java/org/jboss/wsf/stack/jbws/RequestHandlerImpl.java?view=markup&pathrev=3507 gives no explanation | ...... | try | { | ServletRequestContext reqContext = new ServletRequestContext(context, req, res); | handleWSDLRequest(endpoint, out, reqContext); | } | catch (Exception ex) | { | handleException(ex); | } | finally | { | try | { | out.close(); | } | catch (IOException ioex) | { | log.error("Cannot close output stream"); | } | } | .... | Questions 1) Do you probably know if such (see subject) error message mean serious trouble? 2) What can be reason of the error message? 3) Can it be that WS code has inappropriate code which somehow closes that stream? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4145980#4145980 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4145980 From do-not-reply at jboss.com Tue Apr 22 17:09:24 2008 From: do-not-reply at jboss.com (moksha2007) Date: Tue, 22 Apr 2008 17:09:24 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Problem accessing generated WSDL Message-ID: <4137283.1208898564799.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, Did a little more investigation, and it seems the problem is somewhere in the server.xml (jboss-web.deployer), at least that is what I think. In there I have a Host configuration that matches with the virtual host. Meaning all request go through that specific web application, including the web-service requests. | | x.xxx.com | ... | and apache proxy config: | | ServerName x.xxx.com | ServerSignature Off | ProxyPass / ajp://127.0.0.105:8009/ | ProxyPassReverse / ajp://127.0.0.105:8009/ | | Using that, I cannot reach the 'standard' services (sars) like jmx-console and such, but my application just fine. When I add another virtual host config in apache, like: | | ServerName y.xxx.com | ServerSignature Off | ProxyPass / ajp://127.0.0.105:8009/ | ProxyPassReverse / ajp://127.0.0.105:8009/ | | Then, I can see the wsdl, but it is located under http://y.xxx.com/...?wsdl How to configure the server.xml correctly? I am using a default server.xml with one addition, namely the host config as mentioned above. Any help on this? Mike View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4145989#4145989 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4145989 From do-not-reply at jboss.com Wed Apr 23 03:19:53 2008 From: do-not-reply at jboss.com (richard.opalka@jboss.com) Date: Wed, 23 Apr 2008 03:19:53 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: How to log entire incoming and outgoing message? Message-ID: <12542680.1208935193641.JavaMail.jboss@colo-br-02.atl.jboss.com> Try also this: http://jbws.dyndns.org/mediawiki/index.php?title=Records_management View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4146055#4146055 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4146055 From do-not-reply at jboss.com Wed Apr 23 03:31:16 2008 From: do-not-reply at jboss.com (getshantanu) Date: Wed, 23 Apr 2008 03:31:16 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Steps for implementing WS-Security in JBoss using Userna Message-ID: <2019157.1208935876956.JavaMail.jboss@colo-br-02.atl.jboss.com> I am facing the exact problem as mentioned by - bensonfungjava. When is the 2.0.5 version going to be released. This issue is very critical for my next release! Also if anyone has found a workaround/fix pls post it here! -Shantanu View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4146058#4146058 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4146058 From do-not-reply at jboss.com Wed Apr 23 03:49:02 2008 From: do-not-reply at jboss.com (joshua.dev) Date: Wed, 23 Apr 2008 03:49:02 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: JbossWS 2.0.3GA installation fails on JBoss AS 4.2.1.GA Message-ID: <33416913.1208936942739.JavaMail.jboss@colo-br-02.atl.jboss.com> Installation failed again with the same result. I re-downloaded JBoss AS 4.2.1.GA to make sure it's the right one, downloaded http://www.jboss.org/downloading/?projectId=jbossws&url=/jbossws/downloads/jbossws-3.0.1-native-2.0.4.GA.zip , modified ant.properties, run "ant deploy-jboss421" and got errors as before. It starts with: 2008-04-23 09:40:44,725 DEBUG [org.jboss.kernel.KernelFactory] Completed JBoss Kernel construction. Duration: 14 milliseconds | 2008-04-23 09:40:44,741 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] Error installing to Described: name=WSServerConfig state=Not Installed mode=Manual requiredState=Create | java.lang.NoClassDefFoundError: org/jboss/wsf/common/management/AbstractServerConfigMBean and ends with: | 09:41:00,497 ERROR [MainDeployer] Could not create deployment: file:/home/joshua/java/jboss-4.2.1.GA/server/default/deploy/jbossws.sar/ | org.jboss.deployment.DeploymentException: No ClassLoaders found for: org.jboss.wsf.container.jboss42.DeployerInterceptorJSE; - nested throwable: (java.lang.ClassNotFoundException: No ClassLoaders found for: org.jboss.wsf.container.jboss42.DeployerInterceptorJSE) I'm using Ubuntu 7.10 (x86, 32 bit) with Java 1.5.0_15 from Sun. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4146065#4146065 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4146065 From do-not-reply at jboss.com Wed Apr 23 06:35:27 2008 From: do-not-reply at jboss.com (pramod_bs) Date: Wed, 23 Apr 2008 06:35:27 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Steps for implementing WS-Security in JBoss using Userna Message-ID: <30074798.1208946927896.JavaMail.jboss@colo-br-02.atl.jboss.com> I am not sure if there is a work around. If u can afford to change ur web service class to @Stateless this will work. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4146105#4146105 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4146105 From do-not-reply at jboss.com Wed Apr 23 06:57:15 2008 From: do-not-reply at jboss.com (itsjewel) Date: Wed, 23 Apr 2008 06:57:15 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: @WebService method argument names Message-ID: <10024440.1208948235236.JavaMail.jboss@colo-br-02.atl.jboss.com> Isn't this a bug? Why should I annotate every parameters just to get a readable name? Is there any better workaround for this, so that Java parameters name directly got reflected to the generated wsdl without using @WebParam ? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4146114#4146114 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4146114 From do-not-reply at jboss.com Wed Apr 23 07:26:54 2008 From: do-not-reply at jboss.com (joshua.dev) Date: Wed, 23 Apr 2008 07:26:54 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: @WebService method argument names Message-ID: <28041598.1208950014461.JavaMail.jboss@colo-br-02.atl.jboss.com> Sun's reference implementation for JAX-WS behaves identically so it's not a bug of JBossWS. It's inconvenient however and against the principle of sensible defaults, like for example @WebService taking the annotated interface (or class) name as the service name. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4146126#4146126 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4146126 From do-not-reply at jboss.com Wed Apr 23 07:57:28 2008 From: do-not-reply at jboss.com (ljgp) Date: Wed, 23 Apr 2008 07:57:28 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: No tests for @SchemaValidation annotation in 3.0.1 ? Message-ID: <30345126.1208951848521.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, > The question about where the annotation is tested remains. And still remains...maybe I should repeat what the question was, so people do'nt have to search for it by looking through all previous posts. The question was: I am probably overlooking something, because I cannot find a proper test for the @SchemaValidation annotation. There are two endpoint classes, org.jboss.test.ws.jaxws.jbws1172.ValidatingEndpoint.java and NonValidatingEndpoint.java The annotation processor processes the @SchemaValidation annotation by adding the relevant feature to the endpoint. However, in JBWS1172TestCase.java, the testcases ignore the defined endpoints, and instead add the validating feature to endpoints defined in the testcode. So, to me it seems the handling of the @SchemaValidation annotation is not tested here. Is there another test for this maybe ? If I cannot get this to work, I am considering switching to the metro implementation, which should have support for this (added november last year I think). Cheers, Luc. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4146132#4146132 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4146132 From do-not-reply at jboss.com Wed Apr 23 08:35:59 2008 From: do-not-reply at jboss.com (darran.lofthouse@jboss.com) Date: Wed, 23 Apr 2008 08:35:59 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: @WebService method argument names Message-ID: <2514174.1208954159532.JavaMail.jboss@colo-br-02.atl.jboss.com> "itsjewel" wrote : Isn't this a bug? This was a problem with Java 5 and before, the names assigned to parameters were not retained in the resulting .class files when you compile the class - this means at deployment time it is not possible to obtain the parameter name using reflection. The @WebParam annotation is a workaround to get this information into the compiled .class file. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4146148#4146148 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4146148 From do-not-reply at jboss.com Wed Apr 23 09:47:24 2008 From: do-not-reply at jboss.com (schmil) Date: Wed, 23 Apr 2008 09:47:24 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Cannot obtain wsdl service Message-ID: <16288251.1208958444843.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi all, since i upgraded my JBoss from 4.0.5 GA to 4.2.2 GA i have the following issue within my webservice. | 2008-04-23 13:59:43,171 ERROR [OrderServiceClient] Exception during Webservice call: | java.lang.IllegalArgumentException: Cannot obtain wsdl service: {http://localhost:8080/ina}DitaServiceHandlerService | at org.jboss.ws.metadata.builder.jaxrpc.JAXRPCClientMetaDataBuilder.buildMetaDataInternal(JAXRPCClientMetaDataBuilder.java:172) | at org.jboss.ws.metadata.builder.jaxrpc.JAXRPCClientMetaDataBuilder.buildMetaData(JAXRPCClientMetaDataBuilder.java:134) | at org.jboss.ws.metadata.builder.jaxrpc.JAXRPCClientMetaDataBuilder.buildMetaData(JAXRPCClientMetaDataBuilder.java:86) | at org.jboss.ws.core.jaxrpc.client.ServiceImpl.(ServiceImpl.java:111) | at org.jboss.ws.core.jaxrpc.client.ServiceFactoryImpl.createService(ServiceFactoryImpl.java:157) | at org.jboss.ws.core.jaxrpc.client.ServiceFactoryImpl.createService(ServiceFactoryImpl.java:142) | at OrderServiceClient.sendOrders(OrderServiceClient.java:160) | Are there any changes i forgot ? Here is my code: OrderServiceClient.java | import javax.xml.namespace.QName; | import javax.xml.rpc.Service; | import org.jboss.ws.jaxrpc.ServiceFactoryImpl; | ... | ServiceFactoryImpl factory = new ServiceFactoryImpl(); | URL wsdlURL = Thread.currentThread().getContextClassLoader().getResource("META-INF/service/DitaServiceHandler.xml"); | URL mappingURL = Thread.currentThread().getContextClassLoader().getResource("META-INF/service/jaxrpc-mapping.xml"); | QName qname = new QName("http://localhost:8080/ina", "DitaServiceHandlerService"); | Service service = factory.createService(wsdlURL, qname, mappingURL); | DitaServiceHandler.xml | | ... | jaxrpc-mapping.xml | | ws.client | urn:ina:ws:dita:de | | ... | Thanks in advance. Lars View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4146188#4146188 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4146188 From do-not-reply at jboss.com Wed Apr 23 10:55:07 2008 From: do-not-reply at jboss.com (rruppel) Date: Wed, 23 Apr 2008 10:55:07 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: How to Define WebService URL? Message-ID: <17191977.1208962507287.JavaMail.jboss@colo-br-02.atl.jboss.com> wow thanks very much I will try it now View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4146216#4146216 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4146216 From do-not-reply at jboss.com Wed Apr 23 11:47:51 2008 From: do-not-reply at jboss.com (thoste) Date: Wed, 23 Apr 2008 11:47:51 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Can I install jboss 3.0.1 over jbossAS 4.2.2 + jbossws-v201 Message-ID: <12854918.1208965671221.JavaMail.jboss@colo-br-02.atl.jboss.com> I installed JBossAS v4.2.2 with native WS version 2.0.1 SP2 (according to jmx-console). Can I now just download: jbossws-3.0.1-native-2.0.4GA an install it on my existing JBoss ? Are they compatible? How do I upgrade in detail? Why are there two version numbers ("3.0.1" and "2.0.4" embedded in the download archive name (see above) ) ? What is the real version of WS component? Thomas View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4146242#4146242 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4146242 From do-not-reply at jboss.com Wed Apr 23 12:54:15 2008 From: do-not-reply at jboss.com (richard.opalka@jboss.com) Date: Wed, 23 Apr 2008 12:54:15 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Can I install jboss 3.0.1 over jbossAS 4.2.2 + jbossws-v Message-ID: <11483562.1208969655741.JavaMail.jboss@colo-br-02.atl.jboss.com> "thoste" wrote : I installed JBossAS v4.2.2 with native WS version 2.0.1 SP2 (according to jmx-console). | | Can I now just download: | | jbossws-3.0.1-native-2.0.4GA | | an install it on my existing JBoss ? Are they compatible? | Yes "thoste" wrote : | How do I upgrade in detail? | See install instructions that are included in the distribution "thoste" wrote : | Why are there two version numbers ("3.0.1" and "2.0.4" embedded in the | download archive name (see above) ) ? | What is the real version of WS component? | Don't be confused. We will change the naming scheme with next release. Let's say it's 3.0.1 ;) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4146268#4146268 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4146268 From do-not-reply at jboss.com Wed Apr 23 13:47:09 2008 From: do-not-reply at jboss.com (thoste) Date: Wed, 23 Apr 2008 13:47:09 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - What is the difference between using javaee.jar and jsr181-a Message-ID: <23376677.1208972829250.JavaMail.jboss@colo-br-02.atl.jboss.com> As far as I understood both jar archives contain required javax.jws.* classes for the compilation of JAX-WS web services. So when do I use which jar file in detail? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4146280#4146280 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4146280 From do-not-reply at jboss.com Wed Apr 23 19:45:54 2008 From: do-not-reply at jboss.com (hbpost) Date: Wed, 23 Apr 2008 19:45:54 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Session Bean vs. POJO Message-ID: <8179845.1208994355008.JavaMail.jboss@colo-br-02.atl.jboss.com> Please forgive the newbile nature of this question, but is there any advantage to implementing a web service as an EJB over a POJO. If one were starting fresh and had no requirement to access the service as a remote bean, would any functionality be lost, or behavior be different, between a POJO and EJB? Thanks, Herman Post View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4146372#4146372 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4146372 From do-not-reply at jboss.com Thu Apr 24 04:17:51 2008 From: do-not-reply at jboss.com (wangfei90) Date: Thu, 24 Apr 2008 04:17:51 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: ERROR [org.jboss.wsf.stack.jbws.RequestHandlerImpl] Cann Message-ID: <1400451.1209025071158.JavaMail.jboss@colo-br-02.atl.jboss.com> I got the same error log message. Could anyone help me? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4146428#4146428 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4146428 From do-not-reply at jboss.com Thu Apr 24 06:40:38 2008 From: do-not-reply at jboss.com (rhcp_1415) Date: Thu, 24 Apr 2008 06:40:38 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Binding custom Exception field fails Message-ID: <9810430.1209033638626.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi there, I'm trying to make a simple hallo World with a parameter and a custom exception that has its own field. Without the extra field in the exception it works fine. Server start up fine but when I call my webservice with the field "naam" filled in with "kaboom" (with this value the exception is thrown) this is what I get: | 08:48:41,921 ERROR [RequestHandlerImpl] Error processing web service request | | org.jboss.ws.WSException: org.jboss.xb.binding.JBossXBRuntimeException: Failed to find read method or field for property 'typeFout' in class nl.havermans.rhcp.boodschappen.webservice.EWebserviceException | | at org.jboss.ws.WSException.rethrow(WSException.java:68) | | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleRequest(RequestHandlerImpl.java:310) | | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.doPost(RequestHandlerImpl.java:189) | | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:122) | | at org.jboss.wsf.stack.jbws.EndpointServlet.service(EndpointServlet.java:84) | | at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) | | The problem is that the property really is in the class nl.havermans.rhcp.boodschappen.webservice.EWebserviceException, I even tried to make the field itself public but it does not help. Does anyone know why this is happening? Can anyone have a look at this? | /** | * | */ | package nl.havermans.rhcp.boodschappen.webservice; | | import java.rmi.RemoteException; | | /** | * @author RHCP | * | */ | public interface IHalloWereldService extends java.rmi.Remote { | public String zegMijHallo(String naam) throws EWebserviceException, RemoteException; | } | | /** | * | */ | package nl.havermans.rhcp.boodschappen.webservice; | | import java.rmi.RemoteException; | | import org.apache.log4j.Logger; | | /** | * @author RHCP | * | */ | public class HalloWereldService implements IHalloWereldService { | Logger _log = Logger.getLogger(HalloWereldService.class); | | /** | * @throws EWebserviceException | * @see nl.havermans.rhcp.boodschappen.webservice.IHalloWereldService#zegMijHallo(java.lang.String) | */ | public String zegMijHallo(String naam) throws RemoteException, EWebserviceException { | _log.info("Start zegMijHallo: " + naam); | String antwoord = "Welkom bij mijn webservice"; | if (naam != null) { | if (naam.equals("kaboom")) { | throw new EWebserviceException("Exceptie test", "functioneel"); | } | antwoord = antwoord + ": " + naam; | } | | _log.info("Einde zegMijHallo"); | return antwoord; | } | } | | /** | * | */ | package nl.havermans.rhcp.boodschappen.webservice; | | /** | * @author RHCP | * | */ | public class EWebserviceException extends Exception { | /** | * | */ | private static final long serialVersionUID = -4539401858795964596L; | public String typeFout = "onbekend"; | | /** | * | */ | public EWebserviceException() { | super(); | } | | /** | * @param p_message | * @param p_cause | */ | public EWebserviceException(String p_message, Throwable p_cause) { | super(p_message, p_cause); | } | | /** | * @param p_message | */ | public EWebserviceException(String p_message) { | super(p_message); | } | | /** | * @param p_message boodschap | * @param p_typeFout type fout | */ | public EWebserviceException(String message, String typeFout) { | super(message); | this.typeFout = typeFout; | } | | | /** | * @param p_cause | */ | public EWebserviceException(Throwable p_cause) { | super(p_cause); | } | | /** | * @return the typeFout | */ | public String getTypeFout() { | return typeFout; | } | | /** | * @param p_typeFout the typeFout to set | */ | public void setTypeFout(String typeFout) { | this.typeFout = typeFout; | } | | } | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | nl.havermans.rhcp.boodschappen.webservice | http://webservice.boodschappen.rhcp.havermans.nl/HalloWereldService | | | nl.havermans.rhcp.boodschappen.webservice.EWebserviceException | hllwrld:EWebserviceException | complexType | | | nl.havermans.rhcp.boodschappen.webservice.EWebserviceException | hllwrld:EWebserviceException | | | nl.havermans.rhcp.boodschappen.webservice.HalloWereldService | hllwrld:HalloWereldService | | hllwrld:HalloWereld_Port | hllwrld:HalloWereld_Port | | | | nl.havermans.rhcp.boodschappen.webservice.IHalloWereldService | hllwrld:HalloWereld | hllwrld:HalloWereld_binding | | zegMijHallo | zegMijHallo | | 0 | java.lang.String | | hllwrld:GetHalloWereldRequest | naam | IN | | | | java.lang.String | hllwrld:GetHalloWereldResponse | antwoord | | | | | | | | | HalloWereld | WEB-INF/wsdl/HalloWereld.wsdl | WEB-INF/HalloWereld-rpc-mapping.xml | | HalloWereldJSE | hllwrld:HalloWereld_Port | nl.havermans.rhcp.boodschappen.webservice.IHalloWereldService | | HalloWereldJSE | | | | | | | | BoodschappenServiceWeb | | Apache-Axis Servlet | AxisServlet | | org.apache.axis.transport.http.AxisServlet | | | | Axis Admin Servlet | AdminServlet | | org.apache.axis.transport.http.AdminServlet | | 100 | | | Hallo Wereld webservice oefening | HalloWereldJSE | nl.havermans.rhcp.boodschappen.webservice.HalloWereldService | 101 | | | AxisServlet | /servlet/AxisServlet | | | AxisServlet | *.jws | | | AxisServlet | /services/* | | | AdminServlet | /servlet/AdminServlet | | | HalloWereldJSE | /myJSE/HalloWereld | | | index.html | index.htm | index.jsp | default.html | default.htm | default.jsp | | | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4146457#4146457 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4146457 From do-not-reply at jboss.com Thu Apr 24 07:04:38 2008 From: do-not-reply at jboss.com (Sancheski) Date: Thu, 24 Apr 2008 07:04:38 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - WS client returns null, why? Message-ID: <8643077.1209035078383.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi all, I am facing a problem when getting the response from a ws invocation. As far as I see through org.jboss.ws.core.MessageTrace logger, the ws server returns a valid response. I don't know why, this response turns to a null one in my client. Here are the log traces: | 2008-04-24 12:33:18,838 TRACE [org.jboss.ws.core.MessageTrace] Incoming Request Message | | | | | | |
tel:34609214237
| 2000 | 4000 | | Hour | 1 | | | Minute | 1 | | DelayTolerant |
|
|
| 2008-04-24 12:33:18,947 WARN [org.jboss.ws.core.jaxws.spi.ServiceDelegateImpl] Cannot get port meta | data for: {http://www.csapi.org/wsdl/parlayx/terminal_location/v2_2/service}TerminalLocation | 2008-04-24 12:33:19,229 TRACE [org.jboss.ws.core.MessageTrace] Outgoing Request Message | | | | | 609214237 | 2000 | 4000 | | Hour | 1 | | | Minute | 1 | | DelayTolerant | | | | 2008-04-24 12:33:19,229 TRACE [org.jboss.ws.core.MessageTrace] Incoming Response Message | | | | | | 0.1 | 0.1 | 3 | | | | | 2008-04-24 12:33:19,275 TRACE [org.jboss.ws.core.MessageTrace] Outgoing Response Message | | | | | | | My ws client implementation is: | protected Object callWebService(ExecutionContext ctx) throws Exception { | QName qname = new QName( | "http://www.csapi.org/wsdl/parlayx/terminal_location/v2_2/service", | "TerminalLocationService"); | TerminalLocationService service = new TerminalLocationService(null, qname); | TerminalLocation stub = (TerminalLocation) service.getTerminalLocation(); | configureStub(ctx, (javax.xml.ws.BindingProvider) stub); | return stub.getLocation((java.lang.String) getAddress(ctx), | (int) getRequestedAccuracy(ctx), (int) getAcceptableAccuracy(ctx), | (TimeMetric) getMaximumAge(ctx), (TimeMetric) getResponseTime(ctx), | (DelayTolerance) getTolerance(ctx)); | } | Does anyone know what is going on behind the scenes? What am I doing wrong? Thanks a lot! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4146467#4146467 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4146467 From do-not-reply at jboss.com Thu Apr 24 09:39:34 2008 From: do-not-reply at jboss.com (pramod_bs) Date: Thu, 24 Apr 2008 09:39:34 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Cannot obtain wsdl service Message-ID: <24647207.1209044374134.JavaMail.jboss@colo-br-02.atl.jboss.com> I think you are using JAX-RPC client. Try using JAX-WS client. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4146514#4146514 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4146514 From do-not-reply at jboss.com Thu Apr 24 10:51:11 2008 From: do-not-reply at jboss.com (AceFrehley) Date: Thu, 24 Apr 2008 10:51:11 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: JBossWS Plugin for JBossIDE / Eclipse Message-ID: <3525687.1209048671220.JavaMail.jboss@colo-br-02.atl.jboss.com> Thanks for posting this. In my case, I was using RHDS w/ JBoss 4.2.2. In my case, I created a Dynamic Web Project type. I had to go into the Eclipse Preferences and change my Project facet to use Java 5.0. The default was Java 6, so I was getting the bad class version error until I changed it and redeployed. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4146542#4146542 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4146542 From do-not-reply at jboss.com Thu Apr 24 11:26:33 2008 From: do-not-reply at jboss.com (PeterJ) Date: Thu, 24 Apr 2008 11:26:33 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Session Bean vs. POJO Message-ID: <229668.1209050793044.JavaMail.jboss@colo-br-02.atl.jboss.com> There is only one difference that I can think of. The app server maintains a pool of EJBs. The EJBs are reused for every web service request. Thus is your web service has to do some initialization, it will do it only once and can then service multiple requests. Of course, if the EJBs are not used they can time out and be removed from the pool. For POJO web services, a new instance is created for each call. Thus if you need to do initialization, it happens for every request. See http://www.jboss.com/index.html?module=bb&op=viewtopic&t=105344 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4146549#4146549 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4146549 From do-not-reply at jboss.com Thu Apr 24 12:52:10 2008 From: do-not-reply at jboss.com (hbpost) Date: Thu, 24 Apr 2008 12:52:10 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Session Bean vs. POJO Message-ID: <18008166.1209055930207.JavaMail.jboss@colo-br-02.atl.jboss.com> thanks much View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4146574#4146574 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4146574 From do-not-reply at jboss.com Thu Apr 24 16:29:57 2008 From: do-not-reply at jboss.com (thoste) Date: Thu, 24 Apr 2008 16:29:57 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Is wsdl2java Axis specific or can I use it for JBossWS as we Message-ID: <8554614.1209068997508.JavaMail.jboss@colo-br-02.atl.jboss.com> Ok, normally the user should use wsconsume to create artefacts from WSDL. But can I use the well known wsdl2java tools as well? Or is this tools absolute Axis specific and should not be used for JAX-WS? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4146635#4146635 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4146635 From do-not-reply at jboss.com Thu Apr 24 19:23:35 2008 From: do-not-reply at jboss.com (tejasjani) Date: Thu, 24 Apr 2008 19:23:35 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: WebService response problem Message-ID: <5286850.1209079415825.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi ... I am running into the same exception as the original poster, it is : anonymous wrote : | Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/xerces/xs/XSModel | at org.jboss.ws.deployment.JSR109ClientMetaDataBuilder.buildMetaData(JSR109ClientMetaDataBuilder.java:109) | at org.jboss.ws.deployment.JSR109ClientMetaDataBuilder.buildMetaData(JSR109ClientMetaDataBuilder.java:85) | at org.jboss.ws.jaxrpc.ServiceImpl.(ServiceImpl.java:96) | at org.jboss.ws.jaxrpc.ServiceFactoryImpl.createService(ServiceFactoryImpl.java:158) | at org.jboss.ws.jaxrpc.ServiceFactoryImpl.createService(ServiceFactoryImpl.java:129) | at com.demandtec.webservices.impl.clients.DTTPWSClient.updatePromoStatus(DTTPWSClient.java:40) | at com.demandtec.webservices.impl.clients.DTTPWSClient.main(DTTPWSClient.java:69) | I have tried the following options without success: (1) add -Djava.endorsed.dirs to point to the jboss/lib/endorsed (2) copy the xercesImpl.jar shipped with jboss to jre/lib/endorsed (3) add the xercesImpl.jar shipped with jboss to the classpath I am trying to write a very simple webservice client which can run from the command-line. I am on java 5, jboss 4.0.5 and JBossWS 1.0.4 I would really appreciate if someone could point me in the right direction here. thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4146673#4146673 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4146673 From eriqueliu at gmail.com Fri Apr 25 01:23:00 2008 From: eriqueliu at gmail.com (Erique) Date: Fri, 25 Apr 2008 13:23:00 +0800 Subject: [jbossws-users] [jbossws] re: namespace problem: requested element {http://gaws.mec.com/rta/ws/types}businessdate is not allowed in this position in the sequence. Message-ID: Hello, I'm facing the same problem. I modified the Nusoap and it's possible to create soap messages desired by JBoss for some of the functions, but when I'm using the same way to call other functions, the error as Douglas reported returned. >From the debug info, i can see the error string is: org.jboss.ws.binding.BindingException: org.jboss.ws.jbossxb.UnmarshalException: Failed to parse source: Requested element {http://messages..../ws}ChargedUserRequest_1 is not allowed in this position in the sequence. The next element should be ChargedUserRequest_1 I think this error is also caused by the problem of namespace. So I tried to add / removed all namespaces of each operation and parameter, but it doesn't work too. I don't know what should be the xml like. The way works fine on another function, the difference between those 2 function is, another function doesn't set its own parameter, but only extends the Request. So I don't have any ideas about whether there is any relations. The issue soap message as below. 5 456 true WEBSERVICE GW2K4PYMUkFmrjtKWisLZqFYx 123456 0372001208429988 and the related WSDL as the following: Someone can help me on this problem? Thanks, Erique -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/jbossws-users/attachments/20080425/85877902/attachment.html From do-not-reply at jboss.com Fri Apr 25 04:48:09 2008 From: do-not-reply at jboss.com (schmil) Date: Fri, 25 Apr 2008 04:48:09 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Cannot obtain wsdl service Message-ID: <11547470.1209113289632.JavaMail.jboss@colo-br-02.atl.jboss.com> On changing to JAX-WS i got the following Error message: 2008-04-23 17:39:08,214 ERROR [OrderServiceClient] Exception during Webservice call: | java.lang.IllegalArgumentException: Cannot obtain wsdl service: {http://localhost:8080/ina}DitaServiceHandlerService we have [{urn:ina:ws:dita:de}DitaServiceHandlerService] | at org.jboss.ws.metadata.builder.jaxws.JAXWSClientMetaDataBuilder.buildMetaDataInternal(JAXWSClientMetaDataBuilder.java:145) | at org.jboss.ws.metadata.builder.jaxws.JAXWSClientMetaDataBuilder.buildMetaData(JAXWSClientMetaDataBuilder.java:87) | at org.jboss.ws.core.jaxws.spi.ServiceDelegateImpl.(ServiceDelegateImpl.java:131) | at org.jboss.ws.core.jaxws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:61) | at javax.xml.ws.Service.(Service.java:56) | at javax.xml.ws.Service.create(Service.java:680) | at OrderServiceClient.sendOrders(OrderServiceClient.java:155) | and after replacing QName qname = new QName("http://localhost:8080/ina", "DitaServiceHandlerService"); with QName qname = new QName("urn:ina:ws:dita:de", "DitaServiceHandlerService"); and copying - jaxb-api.jar - jboss-jaxws.jar - jboss-saaj.jar from client\ to lib\endorsed\ it works fine. Thanks Lars View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4146738#4146738 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4146738 From do-not-reply at jboss.com Fri Apr 25 05:03:26 2008 From: do-not-reply at jboss.com (sebastiendeg) Date: Fri, 25 Apr 2008 05:03:26 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Steps for implementing WS-Security in JBoss using Userna Message-ID: <6963469.1209114206912.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi Guys, For me, it seems it works until I remove the following line from the login-config.xml which is located in JBOSS_HOME/server/default/conf anonymous In that case, I have an Authentication failure, it seems it does not receive the parameter. I'm on JBossWS -3.0.1 Native. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4146741#4146741 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4146741 From do-not-reply at jboss.com Fri Apr 25 09:59:26 2008 From: do-not-reply at jboss.com (gekis) Date: Fri, 25 Apr 2008 09:59:26 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: WebService client problem (JBoss 4.0.5 + jbossws-2.0.3): Message-ID: <7414878.1209131966078.JavaMail.jboss@colo-br-02.atl.jboss.com> Hello. Sorry for delay. I've found the reason: problem with classloader was in javax.wsdl.factory.WSDLFactory. WSDLFactory located in wsdl4j.jar, but this jar located not only in deploy\jbossws.sar but in some other places and WSDLFactory classloader was not the same as for WSDLDefinitionsFactory. Problem solved by removing duplicated wsdl4j.jar. Tahnks for attention, Grigory. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4146822#4146822 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4146822 From do-not-reply at jboss.com Fri Apr 25 11:14:06 2008 From: do-not-reply at jboss.com (ziphyre) Date: Fri, 25 Apr 2008 11:14:06 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - jbossws first steps Message-ID: <5458842.1209136446321.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, Being a newbie to both web services and jbossws, I'm trying to understand what should I install? jbossAS-4.2.2.GA comes with jbossws.sar folder, and with just unzipping and starting the server, I can point to http://localhost:8080/jbossws. Does it mean that I have jbossws enabled, and don't have to do anything more to work with web services? Or should I install one of the metro, native or apache web service stacks? Thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4146842#4146842 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4146842 From do-not-reply at jboss.com Fri Apr 25 11:30:10 2008 From: do-not-reply at jboss.com (richard.opalka@jboss.com) Date: Fri, 25 Apr 2008 11:30:10 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: jbossws first steps Message-ID: <29171615.1209137411020.JavaMail.jboss@colo-br-02.atl.jboss.com> You are ready to go. JBossWS stack is part of AS you have downloaded already. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4146850#4146850 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4146850 From do-not-reply at jboss.com Fri Apr 25 13:31:17 2008 From: do-not-reply at jboss.com (QPool.Char) Date: Fri, 25 Apr 2008 13:31:17 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Nullpointer at JBossXSEntityResolver.getXMLInputSource Message-ID: <23205735.1209144677186.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, there already is a similar thread here: http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4124794#4124794 , but i think my situation is slightly different. Using JBoss 4.2.2 with integrated jbossws, i have a locally published WSDL file that i cannot manipulate. I have generated my client artifacts using Metro (wsimport tool), because i had to do some external binding customizations, which i dont know how to do with jbossws. I try to set up the service like this: RepositoryService repositoryService = | new RepositoryService(new URL("http://localhost:8080/alfresco/wsdl/repository-service.wsdl"), | new QName("repositoryService")); but i get this error: | 19:03:51,328 WARN [JBossWSEntityResolver] Trying to resolve id as a non-file URL: http://www.alfresco.org/ws/model/content/1.0 | 19:03:52,703 ERROR [STDERR] java.lang.NullPointerException | 19:03:52,703 ERROR [STDERR] at org.jboss.ws.metadata.wsdl.xmlschema.JBossXSEntityResolver.getXMLInputSource(JBossXSEntityResolver.java:167) | 19:03:52,703 ERROR [STDERR] at org.jboss.ws.metadata.wsdl.xmlschema.JBossXSEntityResolver.resolveEntity(JBossXSEntityResolver.java:135) | 19:03:52,703 ERROR [STDERR] at org.apache.xerces.impl.XMLEntityManager.resolveEntity(Unknown Source) | 19:03:52,703 ERROR [STDERR] at org.apache.xerces.impl.xs.XMLSchemaLoader.resolveDocument(Unknown Source) | 19:03:52,703 ERROR [STDERR] at org.apache.xerces.impl.xs.traversers.XSDHandler.resolveSchema(Unknown Source) | 19:03:52,703 ERROR [STDERR] at org.apache.xerces.impl.xs.traversers.XSDHandler.constructTrees(Unknown Source) | 19:03:52,703 ERROR [STDERR] at org.apache.xerces.impl.xs.traversers.XSDHandler.constructTrees(Unknown Source) | 19:03:52,703 ERROR [STDERR] at org.apache.xerces.impl.xs.traversers.XSDHandler.parseSchema(Unknown Source) | 19:03:52,703 ERROR [STDERR] at org.apache.xerces.impl.xs.XMLSchemaLoader.loadSchema(Unknown Source) | 19:03:52,703 ERROR [STDERR] at org.apache.xerces.impl.xs.XMLSchemaLoader.loadGrammar(Unknown Source) | 19:03:52,703 ERROR [STDERR] at org.jboss.ws.tools.JavaToXSD.parseSchema(JavaToXSD.java:182) | my wsd (excerptsl: | | | | | ???? | | ???????????? | | | | ???????????? | | ???????????? | | ???????????? | | | | | | | ???????????? | | ???????????? | | ???????????? | | | | | | ???????????? | | ???????????? | | | | | ???????????? | | ???????????? | | ???????????? | | | | | | ???????????? | | ???????????? | | ???????????? | | | | | | | | ????????????.................... | | | ???????????? | | Defines the SOAP headers used by this service. | | | ???????????? | | | | ???????????? | | | | ???????????? | ............???????????? | | ???????????? | | Provides read and write operations against a repository. | | ???????????? | | | | | | Injection also doesnt work, as expected. And using an empty constructor also doesnt work. Any hints on this? Do i have to upgrade jbossws? Or any workaround to show the method where to search for my xsd? thx in advance View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4146891#4146891 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4146891 From do-not-reply at jboss.com Fri Apr 25 16:09:40 2008 From: do-not-reply at jboss.com (QPool.Char) Date: Fri, 25 Apr 2008 16:09:40 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Nullpointer at JBossXSEntityResolver.getXMLInputSource Message-ID: <25481512.1209154180503.JavaMail.jboss@colo-br-02.atl.jboss.com> Maybe this piece of information helps: I tried wsconsume and wsimport to generate the client artifacts, and both console outputs say: | [wsimport] [WARNING] src-resolve.4.2: Error resolving component 'cms:Store'. It was detected that 'cms:Store' is in namespace 'http://www.alfresco.org/ws/model/content/1.0', but components from this namespace are not referenceable from schema document 'http://localhost:8080/alfresco/wsdl/repository-service.wsdl#types?schema1'. If this is the incorrect namespace, perhaps the prefix of 'cms:Store' needs to be changed. If this is the correct namespace, then an appropriate 'import' tag should be added to 'http://localhost:8080/alfresco/wsdl/repository-service.wsdl#types?schema1'. | [wsimport] line 35 of http://localhost:8080/alfresco/wsdl/repository-service.wsdl#types?schema1 | I cannot modify the schema, cause its not mine. So i hope that its an incorrect namespace, which means that i would have to change the prefix of "cms:Store". Is "cms" the prefix? And how can i change it without changing the schema? Again external binding customization? Would be nice if anyone can confirm that i m on the right way.... thx in advance View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4146929#4146929 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4146929 From do-not-reply at jboss.com Fri Apr 25 16:21:43 2008 From: do-not-reply at jboss.com (QPool.Char) Date: Fri, 25 Apr 2008 16:21:43 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Nullpointer at JBossXSEntityResolver.getXMLInputSource Message-ID: <11911969.1209154903904.JavaMail.jboss@colo-br-02.atl.jboss.com> Ok, think i can tell what the problem is now. In the wsdl, the schema is importet. | | ??? | | | | ??? | .... | Remember, the elements of namespace cms are missing. But inside one importet schema, there is another import: | | ??? | | ??? | | | Alfresco Web Services for Content Management. CML - Content Manipulation Language - Draft. | | | | | The last schema contains the cms:Store element, which cannot be resolved by wsimport/wsconsume. So is it right that you cannot refer to a schema embedded into another schema? What can i do here, preferable without changing the schema? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4146934#4146934 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4146934 From do-not-reply at jboss.com Sat Apr 26 11:20:51 2008 From: do-not-reply at jboss.com (thoste) Date: Sat, 26 Apr 2008 11:20:51 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - How to write a Client for this simple wsconsume output? Message-ID: <2567090.1209223251087.JavaMail.jboss@colo-br-02.atl.jboss.com> I have difficulties to write simple Client which access an existing Web Service. The output of wsconsume on the WSDL can be seen below. How would such a client.java look like? Particularly I am interested in the necessary import statements. Which classes and *.jars do I have to include in the CLASSPATH minimally ? package ttest.ws.sumtest; import java.net.MalformedURLException; import java.net.URL; import javax.xml.namespace.QName; import javax.xml.ws.Service; import javax.xml.ws.WebEndpoint; import javax.xml.ws.WebServiceClient; /** * This class was generated by the JAX-WS RI. * JAX-WS RI 2.1.1-b03- * Generated source version: 2.0 * */ @WebServiceClient(name = "SumService", targetNamespace = "http://sumtest.ws.ttest/", wsdlLocation = "http://127.0.0.1:8777/SumDemo?wsdl") public class SumService extends Service { private final static URL SUMSERVICE_WSDL_LOCATION; static { URL url = null; try { url = new URL("http://127.0.0.1:8777/SumDemo?wsdl"); } catch (MalformedURLException e) { e.printStackTrace(); } SUMSERVICE_WSDL_LOCATION = url; } public SumService(URL wsdlLocation, QName serviceName) { super(wsdlLocation, serviceName); } public SumService() { super(SUMSERVICE_WSDL_LOCATION, new QName("http://sumtest.ws.ttest/", "SumService")); } /** * * @return * returns Sum */ @WebEndpoint(name = "SumPort") public Sum getSumPort() { return (Sum)super.getPort(new QName("http://sumtest.ws.ttest/", "SumPort"), Sum.class); } } View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4147010#4147010 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4147010 From do-not-reply at jboss.com Sat Apr 26 14:51:36 2008 From: do-not-reply at jboss.com (peiguo) Date: Sat, 26 Apr 2008 14:51:36 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Cannot expose EJB 3 as WS Message-ID: <8658496.1209235896802.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi, I developed a very simple EJB 3 bean, I can deploy it with no error, but the web service is not exposed. This is what I did: 1) Wrote the code as shown below; 2) compile and jar into hello.jar; 3) copy the jar to server/default/deploy; Please help, what did I miss? I am using 4.2.2.GA Hello.java: | package org.jboss.ws.hello; | | | import java.rmi.Remote; | | import javax.jws.WebMethod; | import javax.jws.WebService; | import javax.jws.soap.SOAPBinding; | import javax.jws.soap.SOAPBinding.Style; | | @WebService | public interface Hello extends Remote { | @WebMethod | String echo(String e); | } | HelloBean.java: | package org.jboss.ws.hello; | | | import javax.ejb.Remote; | import javax.ejb.Stateless; | import javax.jws.*; | import javax.jws.soap.*; | | @Stateless | @WebService(endpointInterface = "org.jboss.ws.hello.Hello") | @Remote(Hello.class) | public class HelloBean { | public String echo(String e) { | return "Web Service Echo + " + e; | } | } | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4147022#4147022 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4147022 From do-not-reply at jboss.com Sat Apr 26 17:48:10 2008 From: do-not-reply at jboss.com (peiguo) Date: Sat, 26 Apr 2008 17:48:10 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Cannot expose EJB 3 as WS Message-ID: <16255619.1209246491029.JavaMail.jboss@colo-br-02.atl.jboss.com> I can resolve by specify wsdlLocation in a config.xml file. Wondering why... tried to specify this wsdlLocation using @WebService and didn't work. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4147027#4147027 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4147027 From do-not-reply at jboss.com Sat Apr 26 17:52:05 2008 From: do-not-reply at jboss.com (peiguo) Date: Sat, 26 Apr 2008 17:52:05 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Cannot expose EJB 3 as WS Message-ID: <31324171.1209246725846.JavaMail.jboss@colo-br-02.atl.jboss.com> Checked out the specification for @WebService, it says that wsdlLocation points to a predefined wsdl, obviously does not work for my purpose here. I still wonder whether I can avoid the config.xml file. Is it not true that EJB 3 suppose to remove the need of those xml files. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4147028#4147028 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4147028 From do-not-reply at jboss.com Sat Apr 26 22:26:22 2008 From: do-not-reply at jboss.com (jj_andrade) Date: Sat, 26 Apr 2008 22:26:22 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: JBossWS Plugin for JBossIDE / Eclipse Message-ID: <8861143.1209263182296.JavaMail.jboss@colo-br-02.atl.jboss.com> Anyone knows why JBossWS was discontinued?? That is a great and fantastic plug-in under eclipse. I can not believe it !! And now, where i can found out a similar plug-in with its facilities and simply!!! Regards, Jose View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4147039#4147039 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4147039 From do-not-reply at jboss.com Sun Apr 27 05:28:23 2008 From: do-not-reply at jboss.com (thoste) Date: Sun, 27 Apr 2008 05:28:23 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Why is wsconsume stopping whole batch script ? Message-ID: <21184572.1209288503251.JavaMail.jboss@colo-br-02.atl.jboss.com> >From a batch script under WinXP I called "wsconsume.bat". Much to my surprise wsconsume terminates (after successful execution also th calling bacth script. Why? The calling batch script looks (simplified) like: ------------- ... Echo Before call D:\java\JBoss\wsconsume.bar -k htp://127.0.0.1:8080/MyService?WSDL Echo This text should be written. But is NOT because wsconsume terminates ... ------------ Can I somehow tell wsconsume NOT to terminate its wrapping batch script? Thomas View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4147050#4147050 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4147050 From do-not-reply at jboss.com Mon Apr 28 02:29:02 2008 From: do-not-reply at jboss.com (richard.opalka@jboss.com) Date: Mon, 28 Apr 2008 02:29:02 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Cannot expose EJB 3 as WS Message-ID: <2938244.1209364142095.JavaMail.jboss@colo-br-02.atl.jboss.com> Strange, it works for me. Here's my EJB3 archive content: | jar -tvf jaxws.jar | 0 Mon Apr 28 08:17:42 CEST 2008 META-INF/ | 106 Mon Apr 28 08:17:40 CEST 2008 META-INF/MANIFEST.MF | 0 Mon Apr 28 08:20:04 CEST 2008 org/ | 0 Mon Apr 28 08:20:04 CEST 2008 org/jboss/ | 0 Mon Apr 28 08:20:04 CEST 2008 org/jboss/ws/ | 0 Mon Apr 28 08:20:04 CEST 2008 org/jboss/ws/hello/ | 290 Mon Apr 28 08:20:04 CEST 2008 org/jboss/ws/hello/Hello.class | 834 Mon Apr 28 08:20:04 CEST 2008 org/jboss/ws/hello/HelloBean.class Here's my server console output: | 08:22:02,562 INFO [JmxKernelAbstraction] creating wrapper delegate for: org.jboss.ejb3.stateless.StatelessContainer | 08:22:02,577 INFO [JmxKernelAbstraction] installing MBean: jboss.j2ee:jar=jaxws.jar,name=HelloBean,service=EJB3 with dependencies: | 08:22:02,854 INFO [EJBContainer] STARTED EJB: org.jboss.ws.hello.HelloBean ejbName: HelloBean | 08:22:02,982 INFO [EJB3Deployer] Deployed: file:/opt/svn/jbossas/tags/JBoss_4_2_2_GA/build/output/jboss-4.2.2.GA/server/default/deploy/jaxws.jar | 08:22:03,161 INFO [DefaultEndpointRegistry] register: jboss.ws:context=jaxws,endpoint=HelloBean | 08:22:06,156 INFO [WSDLFilePublisher] WSDL published to: file:/opt/svn/jbossas/tags/JBoss_4_2_2_GA/build/output/jboss-4.2.2.GA/server/default/data/wsdl/jaxws.jar/HelloBeanService9073.wsdl | 08:22:06,504 INFO [TomcatDeployer] deploy, ctxPath=/jaxws, warUrl=.../tmp/deploy/jaxws.jar9072.war/ and I'm able to access WSDL here: http://127.0.0.1:8080/jaxws/HelloBean?wsdl View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4147110#4147110 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4147110 From balanscott at gmail.com Mon Apr 28 02:47:33 2008 From: balanscott at gmail.com (Alan Scott) Date: Mon, 28 Apr 2008 02:47:33 -0400 Subject: [jbossws-users] Testting a WebService From jbossws web page? Message-ID: I cannot figure out how to pass the params from a web page so I can test the web service. I was hoping to get some insight from the web services explorer. However, it just showed me that the web service works. How can I determine how to pass paramaters to the service. What would the url be to pass arg0? http://127.0.0.1:8080/MsgEchoerService/MsgEchoer?wsdl Here is the wsdl it generates: *-* *-* *-* * * * * *-* < xs:complexType name="*MsgResponder*"> *-* * * * * * *
*-* < xs:complexType name="*MsgResponderResponse*"> *-* * * * * * * * * * * *-* * * * * *-* * * * * *-* *-* * * * * * * * * *-* * * *-* * * *-* * * * * *-* * * * * * * * * *-* *-* * * * * * * * *
-------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/jbossws-users/attachments/20080428/2a052398/attachment.html From do-not-reply at jboss.com Mon Apr 28 09:41:40 2008 From: do-not-reply at jboss.com (safetytrick) Date: Mon, 28 Apr 2008 09:41:40 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - POP Attachment Message-ID: <3318290.1209390100684.JavaMail.jboss@colo-br-02.atl.jboss.com> I'm supporting a JBoss application that implements mail-ra.rar to pull down pop emails, this works great except in one case, I have a client that is sending emails to his pop account using c#. for (i = 0; i < list.Items.Count; i++) | | { | | cst = list.Items.ToString(); | | Attachment att = new Attachment(cst); | | MailMsg.Attachments.Add(att); | | } When he checks this email with any old pop client, say, Outlook the attachment is there however JBoss doesn't seem to see this attachment. I've suggested that C# is probably not attaching necessary headers but I don't know if that is correct? What would you do next to troubleshoot this? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4147229#4147229 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4147229 From do-not-reply at jboss.com Mon Apr 28 10:23:19 2008 From: do-not-reply at jboss.com (AceFrehley) Date: Mon, 28 Apr 2008 10:23:19 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Writing a WS cliente Message-ID: <21755319.1209392599217.JavaMail.jboss@colo-br-02.atl.jboss.com> This is a classpath issue. I had this problem too trying to run a WS client from Eclipse. It took me a while, but in Eclipse, I did the following: - Add * ONLY * the xercesImpl.jar from the server lib/endorsed directory to your build path (DO NOT ADD resolver.jar or any of the other jars from here) - Add all jars in the server/client directory to your classpath - Add the stax-api.jar from the server/default/deploy/jboss.sar directory This solved the problem for me. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4147247#4147247 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4147247 From do-not-reply at jboss.com Mon Apr 28 14:28:09 2008 From: do-not-reply at jboss.com (PeterJ) Date: Mon, 28 Apr 2008 14:28:09 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Why is wsconsume stopping whole batch script ? Message-ID: <26255294.1209407289746.JavaMail.jboss@colo-br-02.atl.jboss.com> In Windows, when one batch file calls another in the way you have done so, once that second batch file completes, that is it. There is no return to the original batch file. If you want the processing to return to the original batch file, use the "call" command: Echo Before call call D:\java\JBoss\wsconsume.bar -k htp://127.0.0.1:8080/MyService?WSDL Echo This text WILL be written!!! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4147320#4147320 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4147320 From do-not-reply at jboss.com Mon Apr 28 16:05:44 2008 From: do-not-reply at jboss.com (thoste) Date: Mon, 28 Apr 2008 16:05:44 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Where do I have to *.jws web service files in JBoss ? Message-ID: <31318485.1209413144796.JavaMail.jboss@colo-br-02.atl.jboss.com> "richard.opalka at jboss.com" wrote : Please, read our documentation first. | If still confused download source distribution and try to find the example that fits your needs. | If still confused post to user forum ;) Yes, I read the documentation and I thought this is the user forum. Ok, lets explain the problem in more detail: I tried out the deployment as you suggested. When I put the *.jws and web.xml (see both below) into the deployment directory I got the error shown at the bottom. So what wrong? MyWebServiceClass.jws: @WebService( name="Sum", targetNamespace = "http://sumtest.ws.ptest/", serviceName = "aaa" ) @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE, style = SOAPBinding.Style.DOCUMENT) public class MyWebServiceClass { @WebMethod public double myWebServiceMethod( String job, double x ) { if ("square".equalsIgnoreCase(job) ) return x * x; if ("root".equalsIgnoreCase(job) ) return Math.sqrt( x ); return 0.; } } web.xml: MyWebServiceClass MyWebServiceClass MyWebServiceClass /* Result in JBoss: 14:34:25,640 ERROR [URLDeploymentScanner] Incomplete Deployment listing: --- Packages waiting for a deployer --- org.jboss.deployment.DeploymentInfo at e95e7022 { url=file:/D:/java/JBoss/v4.2.2/server/default/deploy/MyWebServiceClass.jws } deployer: null status: null state: INIT_WAITING_DEPLOYER watch: file:/D:/java/JBoss/v4.2.2/server/default/deploy/MyWebServiceClass.jws altDD: null lastDeployed: 1209385176890 lastModified: 1209385176890 mbeans: org.jboss.deployment.DeploymentInfo at dc36ff7c { url=file:/D:/java/JBoss/v4.2.2/server/default/deploy/web.xml } deployer: null status: null state: INIT_WAITING_DEPLOYER watch: file:/D:/java/JBoss/v4.2.2/server/default/deploy/web.xml altDD: null lastDeployed: 1209385865421 lastModified: 1209385865421 mbeans: --- Incompletely deployed packages --- org.jboss.deployment.DeploymentInfo at e95e7022 { url=file:/D:/java/JBoss/v4.2.2/server/default/deploy/MyWebServiceClass.jws } deployer: null status: null state: INIT_WAITING_DEPLOYER watch: file:/D:/java/JBoss/v4.2.2/server/default/deploy/MyWebServiceClass.jws altDD: null lastDeployed: 1209385176890 lastModified: 1209385176890 mbeans: org.jboss.deployment.DeploymentInfo at dc36ff7c { url=file:/D:/java/JBoss/v4.2.2/server/default/deploy/web.xml } deployer: null status: null state: INIT_WAITING_DEPLOYER watch: file:/D:/java/JBoss/v4.2.2/server/default/deploy/web.xml altDD: null lastDeployed: 1209385865421 lastModified: 1209385865421 mbeans: View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4147350#4147350 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4147350 From do-not-reply at jboss.com Mon Apr 28 16:46:52 2008 From: do-not-reply at jboss.com (PeterJ) Date: Mon, 28 Apr 2008 16:46:52 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Where do I have to *.jws web service files in JBoss ? Message-ID: <17132433.1209415612699.JavaMail.jboss@colo-br-02.atl.jboss.com> thoste, I think that Ricard encouraged you to read the documentation because if you did you would find that the extension .jws is not a valid extension. That extension is specific to Axis. This explains the error message: url=file:/D:/java/JBoss/v4.2.2/server/default/deploy/MyWebServiceClass.jws state: INIT_WAITING_DEPLOYER If your web service is an EJB, package it in *.ear. If it is a POJO, package it in *.war or *.wsr. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4147359#4147359 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4147359 From do-not-reply at jboss.com Mon Apr 28 18:15:50 2008 From: do-not-reply at jboss.com (peiguo) Date: Mon, 28 Apr 2008 18:15:50 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Cannot expose EJB 3 as WS Message-ID: <29605528.1209420950643.JavaMail.jboss@colo-br-02.atl.jboss.com> Hm... After I read your reply, I tried two things but both failed, not sure what we did differently (I am using 4.2.2.GA). 1) I removed the config.xml file, when I deploy I got this: | 15:07:45,192 ERROR [URLDeploymentScanner] Incomplete Deployment listing: | | --- Packages waiting for a deployer --- | org.jboss.deployment.DeploymentInfo at 9f91cc6f { url=file:/C:/jboss-4.2.2.GA/serve | r/default/deploy/endpoint/Hello.class } | deployer: null | status: null | state: INIT_WAITING_DEPLOYER | watch: file:/C:/jboss-4.2.2.GA/server/default/deploy/endpoint/Hello.class | altDD: null | lastDeployed: 1209420465192 | lastModified: 1209420465192 | mbeans: | | --- Incompletely deployed packages --- | org.jboss.deployment.DeploymentInfo at 9f91cc6f { url=file:/C:/jboss-4.2.2.GA/serve | r/default/deploy/endpoint/Hello.class } | deployer: null | status: null | state: INIT_WAITING_DEPLOYER | watch: file:/C:/jboss-4.2.2.GA/server/default/deploy/endpoint/Hello.class | altDD: null | lastDeployed: 1209420465192 | lastModified: 1209420465192 | mbeans: | 2) the config.xml is still removed like option, but I added wsdlLocation in my code like this: | @Stateless | @WebService(endpointInterface="org.jboss.tutorial.webservice.bean.Calculator", wsdlLocation="http://localhost:8080/tutorial/CalculatorBean?wsdl") | And I got this: | 15:10:27,020 ERROR [MainDeployer] Could not start deployment: file:/C:/jboss-4.2 | .2.GA/server/default/deploy/tutorial.jar | org.jboss.ws.metadata.wsdl.WSDLException: Cannot parse wsdlLocation: http://loca | lhost:8080/tutorial/CalculatorBean?wsdl | at org.jboss.ws.tools.wsdl.WSDLDefinitionsFactory.getDocument(WSDLDefini | tionsFactory.java:183) | at org.jboss.ws.tools.wsdl.WSDLDefinitionsFactory.parse(WSDLDefinitionsF | actory.java:108) | at org.jboss.ws.metadata.builder.jaxws.JAXWSWebServiceMetaDataBuilder.pr | ocessOrGenerateWSDL(JAXWSWebServiceMetaDataBuilder.java:373) | at org.jboss.ws.metadata.builder.jaxws.JAXWSWebServiceMetaDataBuilder.bu | ildWebServiceMetaData(JAXWSWebServiceMetaDataBuilder.java:158) | at org.jboss.ws.metadata.builder.jaxws.JAXWSServerMetaDataBuilder.setupP | roviderOrWebService(JAXWSServerMetaDataBuilder.java:50) | at org.jboss.ws.metadata.builder.jaxws.JAXWSMetaDataBuilderEJB3.buildMet | aData(JAXWSMetaDataBuilderEJB3.java:78) | at org.jboss.wsf.stack.jbws.UnifiedMetaDataDeploymentAspect.create(Unifi | edMetaDataDeploymentAspect.java:71) | at org.jboss.wsf.framework.deployment.DeploymentAspectManagerImpl.deploy | (DeploymentAspectManagerImpl.java:115) | at org.jboss.wsf.container.jboss42.ArchiveDeployerHook.deploy(ArchiveDep | loyerHook.java:97) | at org.jboss.wsf.container.jboss42.DeployerInterceptor.start(DeployerInt | erceptor.java:90) | at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor. | start(SubDeployerInterceptorSupport.java:188) | at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterce | ptor.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 $Proxy34.start(Unknown Source) | 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 sun.reflect.GeneratedMethodAccessor20.invoke(Unknown Source) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces | sorImpl.java:25) | at java.lang.reflect.Method.invoke(Method.java:585) | at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch | er.java:155) | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94) | at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractIntercept | or.java:133) | at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) | at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelM | BeanOperationInterceptor.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(URLDeploymen | tScanner.java:421) | at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentS | canner.java:610) | at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread. | doScan(AbstractDeploymentScanner.java:263) | at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread. | loop(AbstractDeploymentScanner.java:274) | at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread. | run(AbstractDeploymentScanner.java:225) | Caused by: java.io.FileNotFoundException: http://localhost:8080/tutorial/Calcula | torBean?wsdl | at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLCon | nection.java:1151) | at java.net.URL.openStream(URL.java:1007) | at org.jboss.ws.core.utils.ResourceURL.openStream(ResourceURL.java:57) | at org.jboss.ws.tools.wsdl.WSDLDefinitionsFactory.getDocument(WSDLDefini | tionsFactory.java:166) | ... 37 more | | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4147380#4147380 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4147380 From do-not-reply at jboss.com Mon Apr 28 18:55:53 2008 From: do-not-reply at jboss.com (soch) Date: Mon, 28 Apr 2008 18:55:53 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Newbee Q: Returning hashmaps Message-ID: <30504655.1209423353408.JavaMail.jboss@colo-br-02.atl.jboss.com> I am trying to take the simple echo example (http://jbws.dyndns.org/mediawiki/index.php?title=JBossWS_JAX-WS_Tools) to the next level and running into problem. I want to return a hashmap instead of the string. Instead of the client printing the hasmap contents it prints the address of the the hashmap. I am using the new tools: wsconsume, wsprovide & wsrunclient. Here's the code: GetPM.java: ========= package getpm; | | import java.util.HashMap; | | @javax.jws.WebService | public class GetPM | { | | HashMap map = new HashMap(); | | public HashMap getPM() | { | map.put("key1", "value1"); | map.put("key2", "value2"); | map.put("key3", "value3"); | System.out.println("From Server:" + map.toString()); | return map; | } | } I am using the same web.xml as in the echo example -- is this were I am going wrong? web.xml ======= | | | GetPM | getpm.GetPM | | | | GetPM | /GetPM | | I created the getpm.war file & deployed it on the jboss AS. Using wsconsume created the client files using the online version of service wsdl file: wsconsume -k http://localhost:8080/getpm/GetPM?wsdl The client then calls the service using the following GetPMclient.java: ============= import getpm.*; | | public class GetPMclient | { | public static void main(String args[]) | { | GetPMService service = new GetPMService(); | GetPM pm = service.getGetPMPort(); | System.out.println("Server said: " + pm.getPM()); | | //HashMap hm = (HashMap) pm.getPM(); | //System.out.println(hm.toString()); | } | } On the server stdout I get the hashmap printed correctly, but on the client side instead of the hashmap I get the reference of the hashmap as below: getpm.HashMap at 1a0b53e instead of {key1=value1, key2=value2, key3=value3} C:\....\webservices\getpm\client\output>wsrunclient GetPMclient log4j:WARN No appenders could be found for logger (org.jboss.ws.metadata.builder.jaxws.JAXWSWebServiceMetaDataBuilder). log4j:WARN Please initialize the log4j system properly. Server said: getpm.HashMap at 1a0b53e View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4147385#4147385 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4147385 From do-not-reply at jboss.com Mon Apr 28 21:28:13 2008 From: do-not-reply at jboss.com (PeterJ) Date: Mon, 28 Apr 2008 21:28:13 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Cannot expose EJB 3 as WS Message-ID: <27655622.1209432493895.JavaMail.jboss@colo-br-02.atl.jboss.com> Try renaming the directory server/default/deploy/endpoint to server/default/deploy/endpoint.jar. You need the .jar suffix to let the deployer know what type of application to deploy. Remove the wsdlLocation attribute. When you use it, it should reference a file in the archive, like this: wsdlLocation="wsdl/CalculatorBeanService.wsdl" And the file must exist in the archive. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4147397#4147397 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4147397 From do-not-reply at jboss.com Tue Apr 29 02:15:46 2008 From: do-not-reply at jboss.com (thoste) Date: Tue, 29 Apr 2008 02:15:46 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Where do I have to *.jws web service files in JBoss ? Message-ID: <31915212.1209449746911.JavaMail.jboss@colo-br-02.atl.jboss.com> "PeterJ" wrote : thoste, I think that Ricard encouraged you to read the documentation because if you did you would find that the extension .jws is not a valid extension. That extension is specific to Axis. This explains the error message: | | url=file:/D:/java/JBoss/v4.2.2/server/default/deploy/MyWebServiceClass.jws | state: INIT_WAITING_DEPLOYER | | If your web service is an EJB, package it in *.ear. If it is a POJO, package it in *.war or *.wsr. Ok, this is an answer. Thank you. "pramod_bs" answer (=second posting) indicated that there is a way of doing this. BTW: The doc explains how to do it and NOT how to do it NOT. So the docs does not say: *.jws is NOT possible. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4147421#4147421 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4147421 From do-not-reply at jboss.com Tue Apr 29 02:52:51 2008 From: do-not-reply at jboss.com (richard.opalka@jboss.com) Date: Tue, 29 Apr 2008 02:52:51 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Where do I have to *.jws web service files in JBoss ? Message-ID: <31818481.1209451971791.JavaMail.jboss@colo-br-02.atl.jboss.com> "PeterJ" wrote : thoste, I think that Ricard encouraged you to read the documentation because if you did you would find that the extension .jws is not a valid extension. Exactly "" wrote : The doc explains how to do it and NOT how to do it NOT. So the docs does not say: *.jws is NOT possible. You're right. But remember this user forum thread will help other users in the future ;) This is the purpose of the user forum. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4147427#4147427 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4147427 From do-not-reply at jboss.com Tue Apr 29 05:55:13 2008 From: do-not-reply at jboss.com (mikkus) Date: Tue, 29 Apr 2008 05:55:13 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Newbee Q: Returning hashmaps Message-ID: <2528217.1209462913280.JavaMail.jboss@colo-br-02.atl.jboss.com> toString() outputs the contents of the HashMap only if the class generated is actually a HashMap, otherwise it outputs the java class instance name. Most probably, wsconsume generated a class named HashMap, instead of using java.util.HashMap. This class is not actually a hashmap but a representation of the web service return data. Most probably, you'll need to convert that data to an actual hashmap. I notice you commented out the cast to java.util.HashMap, probably you got a ClassCastException here? Seeing the class generated by wsconsume and related wsdl would help. Your web.xml file should not be the problem. It just exposes the webservice, and since you're able to invoke it, it is doing its job. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4147462#4147462 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4147462 From do-not-reply at jboss.com Tue Apr 29 06:38:20 2008 From: do-not-reply at jboss.com (fredatwork) Date: Tue, 29 Apr 2008 06:38:20 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Install failure Message-ID: <3179163.1209465500421.JavaMail.jboss@colo-br-02.atl.jboss.com> Hello, I trying to install JBoss WS 3.0.1 on top of my JBoss AS 4.2.1 application server. I'm following the instructions given here : http://jbws.dyndns.org/mediawiki/index.php?title=Install_JBossWS I reveive this as I try to install JBoss WS: | C:\Programs\jbossws-native-dist>ant deploy-jboss421 | [loadfile] c:\programs\jboss\server\default\deploy\jbossws.sar\jbossws-deploy.conf doesn't exist | | BUILD FAILED | C:\Programs\jbossws-native-dist\build\build-deploy.xml:63: The following error occurred while executing this line: | C:\Programs\jbossws-native-dist\build\jbossws-deploy-macros.xml:283: Unable to delete file c:\programs\jboss\server\default\lib\jboss-jaxrpc.jar | | Total time: 0 seconds | C:\Programs\jbossws-native-dist> | I cannot see what's wrong with the ant files. Any idea regarding this installation failure ? Fred View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4147473#4147473 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4147473 From do-not-reply at jboss.com Tue Apr 29 08:06:27 2008 From: do-not-reply at jboss.com (richard.opalka@jboss.com) Date: Tue, 29 Apr 2008 08:06:27 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Install failure Message-ID: <11891548.1209470787155.JavaMail.jboss@colo-br-02.atl.jboss.com> It seems that other Windows process locked this file. Isn't your JBoss AS running? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4147482#4147482 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4147482 From do-not-reply at jboss.com Tue Apr 29 09:15:45 2008 From: do-not-reply at jboss.com (mxs) Date: Tue, 29 Apr 2008 09:15:45 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: NullPointerException from JBossXSEntityResolver Message-ID: <28763950.1209474945140.JavaMail.jboss@colo-br-02.atl.jboss.com> There is an ant/eclipse project to reproduce the problem right here: http://page.mi.fu-berlin.de/schmidtm/jbossws-jaxb/TestJBossWS.zip The download is quite big as it contains all those library dependencies. Run ant to get a WAR that can be used for deployment on JBoss 4.2.2GA. Also tried with the current jbossws-3.0.1-native-2.0.4.GA, but seems to be not fixed yet. The included WSDL was generated using wsprovide, now doing wsconsume to generate the service interface which is then implemented by one simple class. I might also upload the original sources used to generate the WSDL if necessary. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4147501#4147501 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4147501 From do-not-reply at jboss.com Tue Apr 29 10:10:43 2008 From: do-not-reply at jboss.com (felle82) Date: Tue, 29 Apr 2008 10:10:43 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Error deploying EJB 3 Webservice on Jboss 5.0.0 Beta 4 Message-ID: <372746.1209478243267.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi all, When I deploy my ear containig a Webservice implementation I have a Nested Exeption: 15:52:40,102 ERROR [AbstractKernelController] Error installing to Real: name=vfsfile:/D:/DEV/jboss-5.0.0.Beta4/server/default/deploy/SII_PublishSubscribeEAR.ear state=PostClassLoader mo | de=Manual requiredState=Real | org.jboss.deployers.spi.DeploymentException: Error during deploy: vfsfile:/D:/DEV/jboss-5.0.0.Beta4/server/default/deploy/SII_PublishSubscribeEAR.ear/SII_PublishSubscribe.jar | at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49) | at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:175) | at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:853) | at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:906) | at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:794) | at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:327) | at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1309) | at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:734) | at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:862) | at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:784) | at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:622) | at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:411) | at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:498) | at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:506) | at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:246) | at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:131) | at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:408) | at org.jboss.Main.boot(Main.java:208) | at org.jboss.Main$1.run(Main.java:534) | at java.lang.Thread.run(Thread.java:595) | Caused by: org.jboss.wsf.spi.deployment.WSFDeploymentException: javax.xml.ws.WebServiceException: org.dom4j.DocumentException: java.sun.com Nested exception: java.sun.com | at org.jboss.wsf.spi.deployment.WSFDeploymentException.rethrow(WSFDeploymentException.java:54) | at org.jboss.wsf.container.jboss50.WebAppDeploymentAspect.create(WebAppDeploymentAspect.java:87) | at org.jboss.wsf.framework.deployment.DeploymentAspectManagerImpl.deploy(DeploymentAspectManagerImpl.java:115) | at org.jboss.wsf.container.jboss50.ArchiveDeployerHook.deploy(ArchiveDeployerHook.java:95) | at org.jboss.wsf.container.jboss50.AbstractWebServiceDeployer.internalDeploy(AbstractWebServiceDeployer.java:63) | at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50) | at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:169) | ... 18 more | Caused by: javax.xml.ws.WebServiceException: org.dom4j.DocumentException: java.sun.com Nested exception: java.sun.com | at org.jboss.wsf.container.jboss50.WebXMLRewriterImpl.rewriteWebXml(WebXMLRewriterImpl.java:92) | at org.jboss.wsf.container.jboss50.WebAppDeploymentAspect.create(WebAppDeploymentAspect.java:74) | ... 23 more | Caused by: org.dom4j.DocumentException: java.sun.com Nested exception: java.sun.com | at org.dom4j.io.SAXReader.read(SAXReader.java:484) | at org.dom4j.io.SAXReader.read(SAXReader.java:343) | at org.jboss.wsf.container.jboss50.WebXMLRewriterImpl.rewriteWebXml(WebXMLRewriterImpl.java:111) | at org.jboss.wsf.container.jboss50.WebXMLRewriterImpl.rewriteWebXml(WebXMLRewriterImpl.java:84) | ... 24 more | 15:52:40,350 ERROR [ProfileServiceBootstrap] Failed to load profile: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS): | | *** CONTEXTS IN ERROR: Name -> Error | | vfsfile:/D:/DEV/jboss-5.0.0.Beta4/server/default/deploy/SII_PublishSubscribeEAR.ear -> org.dom4j.DocumentException: java.sun.com Nested exception: java.sun.com My java Class and Interface look as follows:/** | * | */ | package com.test.sii.pubsub; | | import java.util.ArrayList; | import java.util.Date; | | import javax.ejb.EJB; | import javax.ejb.Stateless; | import javax.jws.WebService; | | import com.test.sii.pubsub.entity.Subscriber; | | /** | * | | * @author I052946 | * | */ | @WebService(serviceName="PublishSubscribeService", endpointInterface="com.test.sii.pubsub.PublishSubscribeRemote", portName="PublishSubscribeBeanPort", targetNamespace="http://test.com/sii/pubsub/") | @Stateless | public class PublishSubscribeBean implements PublishSubscribeRemote{ | | @EJB | private SubscriptionManagerLocal subscriptionManagerLocal; | | public String notify(String topic,String Message) { | ArrayList subscribers = subscriptionManagerLocal.getSubscriberForTopics(topic); | for (Subscriber subscriber : subscribers) { | notifySubscriber(subscriber); | } | return "Notified"; | } | | public String subscribe(String topic, String endpoint, Date duration) { | Subscriber subscriper = new Subscriber(); | subscriper.setEndpoint(endpoint); | int id = subscriptionManagerLocal.registerSubscription(topic, subscriper, duration); | return "Subscription with id "+ id+" was registered at "+duration; | } | | | private void notifySubscriber(Subscriber subscriber){ | | } | } | /** | * | */ | package com.test.sii.pubsub; | | import java.util.Date; | | import javax.ejb.Remote; | import javax.jws.WebMethod; | import javax.jws.WebService; | import javax.jws.WebParam; | | /** | * @author I052946 | * | */ | @WebService(name="PublishSubscribeRemote", targetNamespace="http://test.com/sii/pubsub/") | @Remote | public interface PublishSubscribeRemote { | | | @WebMethod(operationName="notify") | public String notify(@WebParam(name="topic") | String topic, at WebParam(name="message") | String message); | | @WebMethod(operationName="subscribe") | public String subscribe(@WebParam(name="topic") | String topic, at WebParam(name="endpoint") | String endpoint, @WebParam(name="duration") | Date duration); | | } | Any hints? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4147517#4147517 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4147517 From do-not-reply at jboss.com Tue Apr 29 10:28:30 2008 From: do-not-reply at jboss.com (soch) Date: Tue, 29 Apr 2008 10:28:30 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Newbee Q: Returning hashmaps Message-ID: <23850261.1209479310258.JavaMail.jboss@colo-br-02.atl.jboss.com> "mikkus" wrote : toString() outputs the contents of the HashMap only if the class generated is actually a HashMap, otherwise it outputs the java class instance name. | | Most probably, wsconsume generated a class named HashMap, instead of using java.util.HashMap. This class is not actually a hashmap but a representation of the web service return data. Most probably, you'll need to convert that data to an actual hashmap. | | I notice you commented out the cast to java.util.HashMap, probably you got a ClassCastException here? Seeing the class generated by wsconsume and related wsdl would help. | | Your web.xml file should not be the problem. It just exposes the webservice, and since you're able to invoke it, it is doing its job. Thanks mikkus. Yes, wsconsume creates it's own HashMap which inherits from it's own AbstractMap. How do I convert the wsconsume generated HashMap to java.util.HashMap? I believe this needs to be done at the client side. Data below: C:\..\test\webservices> wsconsume -k http://localhost:8080/getpm/GetPM?wsdl JBossWS-Native stack deployed parsing WSDL... generating code... getpm\AbstractMap.java getpm\GetPM.java getpm\GetPMResponse.java getpm\GetPMService.java getpm\GetPM_Type.java getpm\HashMap.java getpm\ObjectFactory.java getpm\package-info.java HashMap.java: | package getpm; | | import javax.xml.bind.annotation.XmlAccessType; | import javax.xml.bind.annotation.XmlAccessorType; | import javax.xml.bind.annotation.XmlType; | | | /** | *

Java class for hashMap complex type. | * | *

The following schema fragment specifies the expected content contained within this class. | * | *

  |  * 
  |  *   
  |  *     
  |  *       
  |  *       
  |  *     
  |  *   
  |  * 
  |  * 
| * | * | */ | @XmlAccessorType(XmlAccessType.FIELD) | @XmlType(name = "hashMap") | public class HashMap | extends AbstractMap | { | | | } AbstractMap.java: package getpm; | | import javax.xml.bind.annotation.XmlAccessType; | import javax.xml.bind.annotation.XmlAccessorType; | import javax.xml.bind.annotation.XmlType; | | | /** | *

Java class for abstractMap complex type. | * | *

The following schema fragment specifies the expected content contained within this class. | * | *

  |  * 
  |  *   
  |  *     
  |  *       
  |  *       
  |  *     
  |  *   
  |  * 
  |  * 
| * | * | */ | @XmlAccessorType(XmlAccessType.FIELD) | @XmlType(name = "abstractMap") | public abstract class AbstractMap { | | | } The generated service WSDL under C:\jboss-4.2.2.GA\server\default\data\wsdl\getpm.war GetPMService31986.wsdl: | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I tried the convertion but got errors: C:\Documents and Settings\jaina\My Documents\Work\CODE\test\webservices\getpm\output>wsrunclient GetPMclient log4j:WARN No appenders could be found for logger (org.jboss.ws.metadata.builder.jaxws.JAXWSWebServiceMetaDataBuilder). log4j:WARN Please initialize the log4j system properly. getpm.HashMap at 1a0b53e C:\Documents and Settings\jaina\My Documents\Work\CODE\test\webservices\getpm\output>javac GetPMclient.java GetPMclient.java:13: inconvertible types found : getpm.HashMap required: java.util.HashMap java.util.HashMap hm = (java.util.HashMap) pm.getPM(); ^ 1 error import getpm.*; | | import java.util.HashMap; | | public class GetPMclient | { | public static void main(String args[]) | { | | GetPMService service = new GetPMService(); | GetPM pm = service.getGetPMPort(); | //System.out.println("Server said: " + pm.getPM()); | java.util.HashMap hm = (java.util.HashMap) pm.getPM(); | System.out.println(hm.toString()); | | | | } | } View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4147520#4147520 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4147520 From do-not-reply at jboss.com Tue Apr 29 12:07:42 2008 From: do-not-reply at jboss.com (mikkus) Date: Tue, 29 Apr 2008 12:07:42 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Newbee Q: Returning hashmaps Message-ID: <10614864.1209485262626.JavaMail.jboss@colo-br-02.atl.jboss.com> It seems the wsdl file has an empty type for HashMap, see this: | | | The abstractMap type contains nothing (an empty sequence). So there seems to be a problem with mapping the original type on the server side. What version on JBossWS are you using? The one that comes bundled on JBoss AS 4.2.x? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4147569#4147569 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4147569 From do-not-reply at jboss.com Tue Apr 29 12:38:33 2008 From: do-not-reply at jboss.com (felle82) Date: Tue, 29 Apr 2008 12:38:33 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Error deploying EJB 3 Webservice on Jboss 5.0.0 Beta 4 Message-ID: <28267778.1209487113855.JavaMail.jboss@colo-br-02.atl.jboss.com> I found the problem http://jira.jboss.org/jira/browse/JBWS-1985 Insert: reader.setEntityResolver(new JBossEntityResolver()); between: SAXReader reader = new SAXReader(); | Document document = reader.read(source); in th sourcefile org.jboss.wsf.container.jboss42.WebXMLRewriterImpl and rebuild the server. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4147583#4147583 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4147583 From do-not-reply at jboss.com Tue Apr 29 14:20:57 2008 From: do-not-reply at jboss.com (marcel_stanley) Date: Tue, 29 Apr 2008 14:20:57 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Can not find truststore url Message-ID: <26260135.1209493257576.JavaMail.jboss@colo-br-02.atl.jboss.com> I got the same error at the same platform an I still have no idea why its happening... I'm working on that right now. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4147608#4147608 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4147608 From do-not-reply at jboss.com Tue Apr 29 15:17:45 2008 From: do-not-reply at jboss.com (alessio.soldano@jboss.com) Date: Tue, 29 Apr 2008 15:17:45 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Can not find truststore url Message-ID: <30759796.1209496666103.JavaMail.jboss@colo-br-02.atl.jboss.com> This is ot a ws issue, did you both properly configured the ssl/https connector in the jboss-web server.xml providing the trustore location? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4147628#4147628 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4147628 From do-not-reply at jboss.com Tue Apr 29 15:39:13 2008 From: do-not-reply at jboss.com (AceFrehley) Date: Tue, 29 Apr 2008 15:39:13 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Java to XML for web services Message-ID: <1487749.1209497953272.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi. I have a java pojo that I am converting to an XML string and then returning from a web service (JAXB). I have to make sure that the data is returned in a CDATA block, so I used XMLSerializer from this example as a guide: | | https://jaxb.dev.java.net/faq/JaxbCDATASample.java | | Everything works fine, but I have read that in Xerces 2.9.0, the XMLSerializer and OutputFormat classes are deprecated. What is the equivalent (non-deprecated) code for transforming a Java pojo to XML? I cannot find any examples online that do the equivalent type of this transformation using STAX or DOM.If anybody could share an example or their approach to doing this, that would be great. Also, I am using the Marshaller from JAXB, but just to reiterate, I also need the XMLSerializer functionality which prevents <> characters from being returned as HTML < and > tags to the client. Also, how can I find out what version of Xerces is used for a particular version of JBoss AS? I would like to know the Xerces version for JBoss AS 4.2.2 and 5.0. I checked inside the xercesimpl.jar in the lib/endorsed directory, but the manifest file said Xerces version 1.2? Am I reading that correctly? Thanks. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4147635#4147635 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4147635 From do-not-reply at jboss.com Tue Apr 29 17:27:35 2008 From: do-not-reply at jboss.com (soch) Date: Tue, 29 Apr 2008 17:27:35 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Newbee Q: Returning hashmaps Message-ID: <13460766.1209504455315.JavaMail.jboss@colo-br-02.atl.jboss.com> Following are installed: C:\jboss-4.2.2.GA. C:\jbossws-3.0.1-native-2.0.4.GA --> followed the installation steps mention at http://www.jboss.org/file-access/default/members/jbossws/downloads/Install-3.0.1-native-2.0.4.GA.txt View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4147653#4147653 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4147653 From do-not-reply at jboss.com Tue Apr 29 19:05:49 2008 From: do-not-reply at jboss.com (amit.sfbay) Date: Tue, 29 Apr 2008 19:05:49 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Exception making a Webservice call Message-ID: <5216744.1209510349601.JavaMail.jboss@colo-br-02.atl.jboss.com> I am calling a Webservice from the JBoss web container and I am getting the exception given below. The Webservice is deployed in a Websphere server on another box, but this looks like a client side exception to me. What I did was - I used wsconsume to generate the client side stubs from the WSDL and put the jar in web-inf/lib and used it from a servlet. Any help will be appreciated. Caused by: javax.xml.ws.soap.SOAPFaultException: Transport level information does not match with SOAP Message namespace URI at org.jboss.ws.core.jaxws.SOAPFaultHelperJAXWS.getSOAPFaultException(SOAPFaultHelperJAXWS.java:69) at org.jboss.ws.core.jaxws.binding.SOAP12BindingJAXWS.throwFaultException(SOAP12BindingJAXWS.java:117) at org.jboss.ws.core.CommonSOAPBinding.unbindResponseMessage(CommonSOAPBinding.java:553) at org.jboss.ws.core.CommonClient.invoke(CommonClient.java:371) at org.jboss.ws.core.jaxws.client.ClientImpl.invoke(ClientImpl.java:243) at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:164) at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:150) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4147670#4147670 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4147670 From do-not-reply at jboss.com Tue Apr 29 19:28:19 2008 From: do-not-reply at jboss.com (soch) Date: Tue, 29 Apr 2008 19:28:19 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - ant tests errors: SOAP request exception Message-ID: <9921549.1209511699687.JavaMail.jboss@colo-br-02.atl.jboss.com> Ran the ant tests on the native jaxws installation. Saw following errors on the JBOSS AS. Is this normal. C:\jbossws-3.0.1-native-2.0.4.GA\jbossws-native-dist>ant tests ... 15:03:10,254 INFO [WSDLFilePublisher] WSDL published to: file:/C:/jboss-4.2.2.GA/server/default/data/wsdl/jaxws-samples-exception.w ar/ExceptionEndpointImplService41482.wsdl 15:03:11,364 ERROR [SOAPFaultHelperJAXWS] SOAP request exception java.lang.RuntimeException: oh no, a runtime exception occured. at org.jboss.test.ws.jaxws.samples.exception.server.ExceptionEndpointImpl.throwRuntimeException(ExceptionEndpointImpl.java:3 9) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) ... 15:03:11,770 ERROR [SOAPFaultHelperJAXWS] SOAP request exception javax.xml.ws.soap.SOAPFaultException: this is a fault string! at org.jboss.test.ws.jaxws.samples.exception.server.ExceptionEndpointImpl.throwSoapFaultException(ExceptionEndpointImpl.java :51) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) ... & some more simillar SOAP exceptions. On the client side the ant tests threw following failures: [junit] Corrupt JPEG data: 1 extraneous bytes before marker 0xc4 [junit] Test org.jboss.test.ws.jaxws.samples.xop.doclit.XOPBareTestCase FAILED [junit] Running org.jboss.test.ws.jaxws.samples.xop.doclit.XOPHandlerTestCase [junit] Tests run: 7, Failures: 1, Errors: 0, Time elapsed: 4.313 sec 15:05:00,791 INFO [TestEndpointImpl] echo: Hello 15:05:00,838 INFO [TestEndpointImpl] echo: Hello 15:05:00,854 ERROR [SOAPFaultHelperJAXWS] SOAP request exception org.jboss.ws.core.CommonSOAPFaultException: Endpoint {http://webmethod.samples.jaxws.ws.test.jboss.org/}TestEndpointPort does not co ntain operation meta data for: {http://webmethod.samples.jaxws.ws.test.jboss.org/}noWebMethod at org.jboss.ws.core.server.ServiceEndpointInvoker.getDispatchDestination(ServiceEndpointInvoker.java:468) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4147674#4147674 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4147674 From do-not-reply at jboss.com Tue Apr 29 21:14:33 2008 From: do-not-reply at jboss.com (soch) Date: Tue, 29 Apr 2008 21:14:33 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Newbee Q: Returning hashmaps Message-ID: <23106839.1209518073491.JavaMail.jboss@colo-br-02.atl.jboss.com> Am I supposed to use the @WebMethod annotation when returning complex datatypes? The retailer e.g. at http://jbws.dyndns.org/mediawiki/index.php/Quick_Start has a method returning an object: public class ProfileMgmtBean { | | @WebMethod | public DiscountResponse getCustomerDiscount(DiscountRequest request) { | return new DiscountResponse(request.getCustomer(), 10.00); | } | } View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4147681#4147681 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4147681 From do-not-reply at jboss.com Tue Apr 29 21:31:03 2008 From: do-not-reply at jboss.com (peiguo) Date: Tue, 29 Apr 2008 21:31:03 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Cannot expose EJB 3 as WS Message-ID: <20736716.1209519063438.JavaMail.jboss@colo-br-02.atl.jboss.com> Thanks and you are right! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4147682#4147682 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4147682 From do-not-reply at jboss.com Tue Apr 29 21:43:33 2008 From: do-not-reply at jboss.com (peiguo) Date: Tue, 29 Apr 2008 21:43:33 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - how to modify a client so that it works with rpc instead of Message-ID: <27833169.1209519814069.JavaMail.jboss@colo-br-02.atl.jboss.com> On server side, I changed the style annotation of my service: from RPC to DOCUMENT. The client side stopped working. When I first started writing this post, I found teh client side imports javax.xml.rpc.*. i searched through J2EE API and there is no javax.xml.document. How should I modify my client code? Why is the API's not consistent for those two styles? | package org.jboss.tutorial.webservice.client; | | import org.jboss.tutorial.webservice.bean.Calculator; | | import javax.xml.namespace.QName; | import javax.xml.rpc.Service; | import javax.xml.rpc.ServiceFactory; | import java.net.URL; | import java.io.File; | | public class Client | { | public static void main(String[] args) throws Exception | { | URL url = new URL("http://localhost:8080/tutorial/CalculatorBean?wsdl"); | | ServiceFactory factory = ServiceFactory.newInstance(); | Service service = factory.createService(url, null); | | Calculator calculator = (Calculator) service.getPort(Calculator.class); | | System.out.println("" + calculator.add(Integer.parseInt(args[0]), Integer.parseInt(args[1]), args[2])); | System.out.println("" + calculator.subtract(Integer.parseInt(args[0]), Integer.parseInt(args[1]))); | } | } | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4147684#4147684 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4147684 From do-not-reply at jboss.com Wed Apr 30 02:42:33 2008 From: do-not-reply at jboss.com (pingus) Date: Wed, 30 Apr 2008 02:42:33 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Performance issue with WSProvide Ant Task (Windows only) Message-ID: <28361051.1209537754027.JavaMail.jboss@colo-br-02.atl.jboss.com> I'm using WSProvide and WSConsume to create a Web Service client library. Using it on a Linux machine performs well. Switching to Windows it's ~ 20 times slower. After several attempts to solve this, e.g. adjusting the memory parameters, I checked the network traffic having in mind it could by some kind of "timeout" problem while accessing resources. Using Wireshark I've seen several NetBIOS Name queries like this: NBNS Name query NB JBOSS-4.2.2.GA<00> NBNS Name query NB LOG4J.JAR;C<00> NBNS Name query NB MAIL.JAR;C<00> All of them get the Answer NBNS Name query response, Requested name does not exist As a first-try workaround I've deactivated NetBIOS over TCP/IP in the Network settings and it's fast as expected. But, what is the reason for this? Why NBNS queries for JBOSS-4.2.2.GA? Is there any better way to solve this, e.g. a Java option to deactivate NetBIOS requests? Thanks in advance Pingus View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4147710#4147710 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4147710 From do-not-reply at jboss.com Wed Apr 30 05:13:58 2008 From: do-not-reply at jboss.com (xinhua) Date: Wed, 30 Apr 2008 05:13:58 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Need help : JBossWS Security! Message-ID: <25563712.1209546838320.JavaMail.jboss@colo-br-02.atl.jboss.com> Hi all, i want to use ssl and signature to protect my WS on Jboss4.2.2GA , ssl works perfectly but when i use client to send a request with signature, i always got an error. My codes, configurations and evn listed as followed: JBoss4.2.2GA jdk1.5 SSL keyStore&trustStore file: ksbws.keystore Signature keyStore&trustStore file: ksbws_security.keystore Server Side: | @Stateless | @SecurityDomain("JBossWS") | @RolesAllowed("friend") | @WebService(endpointInterface="de.xxx.xxx.KSBService") | @WebContext(contextRoot="/KSBService", | urlPattern="/*", | authMethod="BASIC", | transportGuarantee="CONFIDENTIAL", | secureWSDLAccess=false) | @EndpointConfig(configName = "Standard WSSecurity Endpoint") | public class KSBServiceBean implements KSBService,KSBServiceRemote,KSBServiceLocal{ | | private static final Logger log = Logger.getLogger(KSBServiceBean.class); | | @EJB | KSBManagerLocal ksb; | | public sting validateLogin(Long userNo, String password) { | // doSomething | } | | } in META-INF/ i putted ksbws_security.keystore and jboss-wsse-server.xml here is my jboss-wsse-server.xml: | | META-INF/ksbws_security.keystore | test | META-INF/ksbws_security.keystore | test | | | | | | | | Server side jar deployed without exception Client: codes | public static void main(String[] args) { | KSBService ksb = null; | try { | //SSL keystore | System.setProperty("javax.net.ssl.keyStore", "c:\\ksbws.keystore"); | System.setProperty("javax.net.ssl.trustStore", "c:\\ksbws.keystore"); | System.setProperty("javax.net.ssl.keyStorePassword", "test"); | System.setProperty("javax.net.ssl.trustStorePassword", "test"); | System.setProperty("javax.net.ssl.keyStoreType", "jks"); | System.setProperty("javax.net.ssl.trustStoreType", "jks"); | System.setProperty("org.jboss.security.ignoreHttpsHost","true"); | | //Signature keystore | System.setProperty("org.jboss.ws.wsse.keyStore","c:\\ksbws_security.keystore"); | System.setProperty("org.jboss.ws.wsse.trustStore","c:\\ksbws_security.keystore"); | System.setProperty("org.jboss.ws.wsse.keyStorePassword", "test"); | System.setProperty("org.jboss.ws.wsse.trustStorePassword", "test"); | System.setProperty("org.jboss.ws.wsse.keyStoreType", "jks"); | System.setProperty("org.jboss.ws.wsse.trustStoreType", "jks"); | | Service service = Service.create(new URL("http://localhost:8180/KSBService/KSBServiceBean?wsdl"), | new QName("http://xxx.xxx.de/","KSBServiceBeanService") ); | | | | | ksb= service.getPort(KSBService.class); | | ((StubExt) ksb).setConfigName("Standard WSSecurity Client"); | | BindingProvider bp = (BindingProvider)ksb; | bp.getRequestContext().put(BindingProvider.USERNAME_PROPERTY, "kermit"); | bp.getRequestContext().put(BindingProvider.PASSWORD_PROPERTY, "thefrog"); | | | } catch (Exception e) { | .... | ... | | | also, i putted jboss-wsse-client.xml in META-INF/ | | | | | | | | | But when i run client , an Exception like this: | java.lang.ClassCastException: $Proxy23 cannot be cast to org.jboss.ws.core.StubExt | at dexxxxx.xxxx.xxxx.MultiThreadsTest.main(MultiThreadsTest.java:43) | Exception in thread "Thread-1" com.sun.xml.ws.client.ClientTransportException: request requires HTTP authentication: Unauthorized | at com.sun.xml.ws.transport.http.client.HttpClientTransport.checkResponseCode(HttpClientTransport.java:197) | at com.sun.xml.ws.transport.http.client.HttpTransportPipe.process(HttpTransportPipe.java:137) | at com.sun.xml.ws.transport.http.client.HttpTransportPipe.processRequest(HttpTransportPipe.java:74) | at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:559) | at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:518) | at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:503) | at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:400) | at com.sun.xml.ws.client.Stub.process(Stub.java:235) | at com.sun.xml.ws.client.sei.SEIStub.doProcess(SEIStub.java:120) | at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:230) | at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:210) | at com.sun.xml.ws.client.sei.SEIStub.invoke(SEIStub.java:103) | at $Proxy23.validateLogin(Unknown Source) | It seems that jboss-wsse-client.xml was not readed by client. If i remove codes and configs for signature, SSL works fine. can anyone help me??? thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4147754#4147754 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4147754 From do-not-reply at jboss.com Wed Apr 30 05:35:40 2008 From: do-not-reply at jboss.com (xinhua) Date: Wed, 30 Apr 2008 05:35:40 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Need help : JBossWS Security! Message-ID: <14322002.1209548140848.JavaMail.jboss@colo-br-02.atl.jboss.com> ok, i think ((StubExt) ksb).setConfigName("Standard WSSecurity Client"); is in a wrong place, now i put it under http auth block | ..... | BindingProvider bp = (BindingProvider)ksb; | bp.getRequestContext().put(BindingProvider.USERNAME_PROPERTY, "kermit"); | bp.getRequestContext().put(BindingProvider.PASSWORD_PROPERTY, "thefrog"); | | ((StubExt) ksb).setConfigName("Standard WSSecurity Client"); | ..... | HTTP authentication: Unauthorized exception by client is gone , but server side runs into trouble: | $ 11:30:01,343 ERROR [HandlerChainExecutor] Exception during handler processing | java.lang.NullPointerException | at org.jboss.ws.extensions.security.Util.matchNode(Util.java:188) | at org.jboss.ws.extensions.security.Util.matchNode(Util.java:183) | at org.jboss.ws.extensions.security.Util.findElement(Util.java:89) | at org.jboss.ws.extensions.security.WSSecurityDispatcher.handleInbound(WSSecurityDispatcher.java:115) | at org.jboss.ws.extensions.security.jaxws.WSSecurityHandler.handleInboundSecurity(WSSecurityHandler.java:78) | at org.jboss.ws.extensions.security.jaxws.WSSecurityHandlerServer.handleInbound(WSSecurityHandlerServer.java:41) | at org.jboss.ws.core.jaxws.handler.GenericHandler.handleMessage(GenericHandler.java:55) | at org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.handleMessage(HandlerChainExecutor.java:295) | at org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.handleMessage(HandlerChainExecutor.java:140) | at org.jboss.ws.core.jaxws.handler.HandlerDelegateJAXWS.callRequestHandlerChain(HandlerDelegateJAXWS.java:87) | at org.jboss.ws.core.server.ServiceEndpointInvoker.callRequestHandlerChain(ServiceEndpointInvoker.java:126) | at org.jboss.ws.core.server.ServiceEndpointInvoker.invoke(ServiceEndpointInvoker.java:170) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.processRequest(RequestHandlerImpl.java:408) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleRequest(RequestHandlerImpl.java:272) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.doPost(RequestHandlerImpl.java:189) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:122) | at org.jboss.wsf.stack.jbws.EndpointServlet.service(EndpointServlet.java:84) | at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) | at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) | at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230) | at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) | at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179) | at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524) | at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84) | at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) | at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) | at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157) | at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) | at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262) | at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) | at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) | at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446) | at java.lang.Thread.run(Thread.java:595) | 11:30:01,343 ERROR [SOAPFaultHelperJAXWS] SOAP request exception | javax.xml.ws.WebServiceException: java.lang.NullPointerException | at org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.processHandlerFailure(HandlerChainExecutor.java:276) | at org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.handleMessage(HandlerChainExecutor.java:155) | at org.jboss.ws.core.jaxws.handler.HandlerDelegateJAXWS.callRequestHandlerChain(HandlerDelegateJAXWS.java:87) | at org.jboss.ws.core.server.ServiceEndpointInvoker.callRequestHandlerChain(ServiceEndpointInvoker.java:126) | at org.jboss.ws.core.server.ServiceEndpointInvoker.invoke(ServiceEndpointInvoker.java:170) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.processRequest(RequestHandlerImpl.java:408) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleRequest(RequestHandlerImpl.java:272) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.doPost(RequestHandlerImpl.java:189) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:122) | at org.jboss.wsf.stack.jbws.EndpointServlet.service(EndpointServlet.java:84) | at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) | at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) | at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230) | at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) | at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179) | at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524) | at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84) | at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) | at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) | at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157) | at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) | at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262) | at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) | at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) | at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446) | at java.lang.Thread.run(Thread.java:595) | Caused by: java.lang.NullPointerException | at org.jboss.ws.extensions.security.Util.matchNode(Util.java:188) | at org.jboss.ws.extensions.security.Util.matchNode(Util.java:183) | at org.jboss.ws.extensions.security.Util.findElement(Util.java:89) | at org.jboss.ws.extensions.security.WSSecurityDispatcher.handleInbound(WSSecurityDispatcher.java:115) | at org.jboss.ws.extensions.security.jaxws.WSSecurityHandler.handleInboundSecurity(WSSecurityHandler.java:78) | at org.jboss.ws.extensions.security.jaxws.WSSecurityHandlerServer.handleInbound(WSSecurityHandlerServer.java:41) | at org.jboss.ws.core.jaxws.handler.GenericHandler.handleMessage(GenericHandler.java:55) | at org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.handleMessage(HandlerChainExecutor.java:295) | at org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.handleMessage(HandlerChainExecutor.java:140) | ... 28 more | 11:30:01,343 ERROR [SOAPFaultHelperJAXWS] SOAP request exception | javax.xml.ws.WebServiceException: java.lang.NullPointerException | at org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.processHandlerFailure(HandlerChainExecutor.java:276) | at org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.handleMessage(HandlerChainExecutor.java:155) | at org.jboss.ws.core.jaxws.handler.HandlerDelegateJAXWS.callRequestHandlerChain(HandlerDelegateJAXWS.java:87) | at org.jboss.ws.core.server.ServiceEndpointInvoker.callRequestHandlerChain(ServiceEndpointInvoker.java:126) | at org.jboss.ws.core.server.ServiceEndpointInvoker.invoke(ServiceEndpointInvoker.java:170) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.processRequest(RequestHandlerImpl.java:408) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleRequest(RequestHandlerImpl.java:272) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.doPost(RequestHandlerImpl.java:189) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:122) | at org.jboss.wsf.stack.jbws.EndpointServlet.service(EndpointServlet.java:84) | at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) | at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) | at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230) | at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) | at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179) | at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524) | at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84) | at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) | at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) | at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157) | at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) | at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262) | at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) | at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) | at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446) | at java.lang.Thread.run(Thread.java:595) | Caused by: java.lang.NullPointerException | at org.jboss.ws.extensions.security.Util.matchNode(Util.java:188) | at org.jboss.ws.extensions.security.Util.matchNode(Util.java:183) | at org.jboss.ws.extensions.security.Util.findElement(Util.java:89) | at org.jboss.ws.extensions.security.WSSecurityDispatcher.handleInbound(WSSecurityDispatcher.java:115) | at org.jboss.ws.extensions.security.jaxws.WSSecurityHandler.handleInboundSecurity(WSSecurityHandler.java:78) | at org.jboss.ws.extensions.security.jaxws.WSSecurityHandlerServer.handleInbound(WSSecurityHandlerServer.java:41) | at org.jboss.ws.core.jaxws.handler.GenericHandler.handleMessage(GenericHandler.java:55) | at org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.handleMessage(HandlerChainExecutor.java:295) | at org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.handleMessage(HandlerChainExecutor.java:140) | ... 28 more | | can anyone help? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4147767#4147767 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4147767 From do-not-reply at jboss.com Wed Apr 30 06:54:21 2008 From: do-not-reply at jboss.com (xinhua) Date: Wed, 30 Apr 2008 06:54:21 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Need help : JBossWS Security! Message-ID: <31947322.1209552861333.JavaMail.jboss@colo-br-02.atl.jboss.com> i updated the jbossWS-native in jboss4.2.2GA to jbossws-3.0.1-native-2.0.4.GA the severside exception is also changed:( | 12:45:06,234 ERROR [HandlerChainExecutor] Exception during handler processing | org.jboss.ws.core.CommonSOAPFaultException: This service requires , which is missing. | at org.jboss.ws.extensions.security.WSSecurityDispatcher.convertToFault(WSSecurityDispatcher.java:100) | at org.jboss.ws.extensions.security.WSSecurityDispatcher.decodeMessage(WSSecurityDispatcher.java:207) | at org.jboss.ws.extensions.security.jaxws.WSSecurityHandler.handleInboundSecurity(WSSecurityHandler.java:83) | at org.jboss.ws.extensions.security.jaxws.WSSecurityHandlerServer.handleInbound(WSSecurityHandlerServer.java:41) | at org.jboss.ws.core.jaxws.handler.GenericHandler.handleMessage(GenericHandler.java:55) | at org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.handleMessage(HandlerChainExecutor.java:295) | at org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.handleMessage(HandlerChainExecutor.java:140) | at org.jboss.ws.core.jaxws.handler.HandlerDelegateJAXWS.callRequestHandlerChain(HandlerDelegateJAXWS.java:97) | at org.jboss.ws.core.server.ServiceEndpointInvoker.callRequestHandlerChain(ServiceEndpointInvoker.java:127) | at org.jboss.ws.core.server.ServiceEndpointInvoker.invoke(ServiceEndpointInvoker.java:171) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.processRequest(RequestHandlerImpl.java:466) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleRequest(RequestHandlerImpl.java:284) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.doPost(RequestHandlerImpl.java:201) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:134) | at org.jboss.wsf.stack.jbws.EndpointServlet.service(EndpointServlet.java:84) | at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) | at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) | at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230) | at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) | at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179) | at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524) | at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84) | at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) | at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) | at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157) | at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) | at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262) | at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) | at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) | at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446) | at java.lang.Thread.run(Thread.java:595) | 12:45:06,234 ERROR [SOAPFaultHelperJAXWS] SOAP request exception | javax.xml.ws.WebServiceException: org.jboss.ws.core.CommonSOAPFaultException: This service requires , which is missing. | at org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.processHandlerFailure(HandlerChainExecutor.java:276) | at org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.handleMessage(HandlerChainExecutor.java:155) | at org.jboss.ws.core.jaxws.handler.HandlerDelegateJAXWS.callRequestHandlerChain(HandlerDelegateJAXWS.java:97) | at org.jboss.ws.core.server.ServiceEndpointInvoker.callRequestHandlerChain(ServiceEndpointInvoker.java:127) | at org.jboss.ws.core.server.ServiceEndpointInvoker.invoke(ServiceEndpointInvoker.java:171) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.processRequest(RequestHandlerImpl.java:466) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleRequest(RequestHandlerImpl.java:284) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.doPost(RequestHandlerImpl.java:201) | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:134) | at org.jboss.wsf.stack.jbws.EndpointServlet.service(EndpointServlet.java:84) | at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) | at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) | at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230) | at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) | at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179) | at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524) | at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84) | at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) | at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) | at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157) | at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) | at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262) | at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) | at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) | at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446) | at java.lang.Thread.run(Thread.java:595) | Caused by: org.jboss.ws.core.CommonSOAPFaultException: This service requires , which is missing. | ..... | | | it seems that request from client is not right. :( need help.... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4147785#4147785 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4147785 From do-not-reply at jboss.com Wed Apr 30 07:23:13 2008 From: do-not-reply at jboss.com (getshantanu) Date: Wed, 30 Apr 2008 07:23:13 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: Steps for implementing WS-Security in JBoss using Userna Message-ID: <24575457.1209554593626.JavaMail.jboss@colo-br-02.atl.jboss.com> i was missing the jboss-wsse-server.xml file on the server. Once i put it in META-INF, the server is able to get the username and password from the soap request. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4147792#4147792 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4147792 From do-not-reply at jboss.com Wed Apr 30 10:16:48 2008 From: do-not-reply at jboss.com (JulienL) Date: Wed, 30 Apr 2008 10:16:48 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: JBossWS JAX-WS question using stateful Message-ID: <5617982.1209565008250.JavaMail.jboss@colo-br-02.atl.jboss.com> Hello JBossWS team, Even if it is a 1 year old post, I was wondering if something similar has been done for Stateful WS ? Would be very usefull added to an EJB3 Stateful component ... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4147862#4147862 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4147862 From do-not-reply at jboss.com Wed Apr 30 10:57:34 2008 From: do-not-reply at jboss.com (richard.opalka@jboss.com) Date: Wed, 30 Apr 2008 10:57:34 -0400 (EDT) Subject: [jbossws-users] [JBossWS] - Re: JBossWS JAX-WS question using stateful Message-ID: <26323082.1209567454400.JavaMail.jboss@colo-br-02.atl.jboss.com> We support @Stateless and @Webservice annotations only. There's neither @Stateful nor @Addressing annotation support in our stack. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4147883#4147883 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4147883