tag:blogger.com,1999:blog-1306958590608174053.post1817980545599452435..comments2024-03-21T08:28:12.966+01:00Comments on Musings of a Programming Addict: Writing and testing JAX-WS clients using the Spring frameworkAnonymoushttp://www.blogger.com/profile/16910067065508493885noreply@blogger.comBlogger39125tag:blogger.com,1999:blog-1306958590608174053.post-7756754666420582192020-06-21T12:00:52.422+02:002020-06-21T12:00:52.422+02:00Thanks for the article. Useful one will share it w...Thanks for the article. Useful one will share it with others.Tutlanehttps://www.tutlane.com/noreply@blogger.comtag:blogger.com,1999:blog-1306958590608174053.post-38581290726234053192016-06-27T12:28:15.733+02:002016-06-27T12:28:15.733+02:00Good Work man.... Thank you for helping me mock th...Good Work man.... Thank you for helping me mock this stuff..B-L-O-Ghttps://www.blogger.com/profile/10204392869233361502noreply@blogger.comtag:blogger.com,1999:blog-1306958590608174053.post-37838522628908433162015-06-02T23:53:45.677+02:002015-06-02T23:53:45.677+02:00hey guy, i have a trouble. in my wsdl i have two o...hey guy, i have a trouble. in my wsdl i have two operation but the plugin just take the first operation to the interfaz and the second operation not. do you know why?? <br />tanksAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-1306958590608174053.post-58434056401271501962014-07-20T18:39:00.379+02:002014-07-20T18:39:00.379+02:00very nice. for more java examples, visit http://ja...very nice. for more java examples, visit http://java2novice.com sitejava2novicehttp://java2novice.comnoreply@blogger.comtag:blogger.com,1999:blog-1306958590608174053.post-6596469291352870952013-12-19T17:25:27.764+01:002013-12-19T17:25:27.764+01:00Very detailed explanation.
Thanks a bunch from all...Very detailed explanation.<br />Thanks a bunch from all the newbies like me!Anonymoushttps://www.blogger.com/profile/11143613092525588319noreply@blogger.comtag:blogger.com,1999:blog-1306958590608174053.post-87926040326975829582013-06-19T17:38:54.902+02:002013-06-19T17:38:54.902+02:00If you are using JAXB then the JAXBContext object ...If you are using JAXB then the JAXBContext object must be single instance. The Service Object generated by wsimport must also be a single instance.<br /><br />Failure to do so can be a major memory leak. I've tested on Tomcat and iPlanet web server with Spring 3.1 and 3.2 and this is always the case.<br /><br />I am using JAXBContext and my specific Service object directly, not wrapping in spring. So if you code inline there is a major issue, upwards of 1 million classes after about 3000 service calls cannot be recycled. <br /><br />This is a known issue. Put these two objects as statics and no issues.<br /><br />Food for thought.Mike Howellnoreply@blogger.comtag:blogger.com,1999:blog-1306958590608174053.post-2921451771477058952012-08-07T11:45:50.540+02:002012-08-07T11:45:50.540+02:00Thanks a lots for this time saving article. Very u...Thanks a lots for this time saving article. Very useful.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-1306958590608174053.post-22740944980009600112012-04-26T15:16:01.876+02:002012-04-26T15:16:01.876+02:00Very useful thanksVery useful thanksAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-1306958590608174053.post-25275649136116244092011-04-05T08:16:17.328+02:002011-04-05T08:16:17.328+02:00Nice article, thanks for sharing.Nice article, thanks for sharing.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-1306958590608174053.post-18158756594592755022011-01-28T18:39:26.593+01:002011-01-28T18:39:26.593+01:00Hi Gunnar Morling,
Thanks for sharing your knowle...Hi Gunnar Morling,<br /> Thanks for sharing your knowledge.I have question,Is this will support (jax-ws.xml)single endpoint interface will serve multiple webservice calls?. for example in your article you implemented one req and response in xsd. is this will work for multiple request and responses with single xsd?Jagadeesh Naiduhttps://www.blogger.com/profile/17440526146551796247noreply@blogger.comtag:blogger.com,1999:blog-1306958590608174053.post-78449547324683283502011-01-11T21:22:03.928+01:002011-01-11T21:22:03.928+01:00Mounisha: as I wrote before, please refer to the r...Mounisha: as I wrote before, please refer to the reference guides for JAX-WS RI and it's Maven plugin, all your questions are answered there. <br /><br />Also please understand that I'm maintaining this blog in my spare time and while I really like to help in understanding the contents presented here, I don't have the time to provide assistance on the general usage of the technologies or frameworks discussed. You should find plenty of help in reference guides, forums, mailing lists etc.Anonymoushttps://www.blogger.com/profile/16910067065508493885noreply@blogger.comtag:blogger.com,1999:blog-1306958590608174053.post-80834274254709300982011-01-11T19:27:00.915+01:002011-01-11T19:27:00.915+01:00This comment has been removed by the author.Mounishahttps://www.blogger.com/profile/06262338182567688678noreply@blogger.comtag:blogger.com,1999:blog-1306958590608174053.post-77680792544326879112011-01-11T19:16:22.002+01:002011-01-11T19:16:22.002+01:00This comment has been removed by the author.Mounishahttps://www.blogger.com/profile/06262338182567688678noreply@blogger.comtag:blogger.com,1999:blog-1306958590608174053.post-13366955023716707402011-01-09T22:42:50.313+01:002011-01-09T22:42:50.313+01:00Mounisha, just do as written in the stack trace yo...Mounisha, just do as written in the stack trace you posted: Add the current JAXB JARs to you JVM's endorsed dir. I really recommend to have a look at JAX WS RI's reference documentation, this and similar questions should all be answered there.Anonymoushttps://www.blogger.com/profile/16910067065508493885noreply@blogger.comtag:blogger.com,1999:blog-1306958590608174053.post-1662159662431141762011-01-09T10:45:43.204+01:002011-01-09T10:45:43.204+01:00Hi Gunnar how to solve below issue?
SEVERE: WSSER...Hi Gunnar how to solve below issue?<br />SEVERE: WSSERVLET11: failed to parse runtime descriptor: java.lang.LinkageError:<br /> JAXB 2.0 API is being loaded from the bootstrap classloader, but this RI (from<br />jar:file:/C:/Documents%20and%20Settings/hari.HARI-19A1A35ECE/.m2/repository/com/<br />sun/xml/bind/jaxb-impl/2.1.9/jaxb-impl-2.1.9.jar!/com/sun/xml/bind/v2/model/impl<br />/ModelBuilder.class) needs 2.1 API. Use the endorsed directory mechanism to plac<br />e jaxb-api.jar in the bootstrap classloader. (See http://java.sun.com/j2se/1.5.0<br />/docs/guide/standards/)<br />java.lang.LinkageError: JAXB 2.0 API is being loaded from the bootstrap classloa<br />der, but this RI (from jar:file:/C:/Documents%20and%20Settings/hari.HARI-19A1A35<br />ECE/.m2/repository/com/sun/xml/bind/jaxb-impl/2.1.9/jaxb-impl-2.1.9.jar!/com/sun<br />/xml/bind/v2/model/impl/ModelBuilder.class) needs 2.1 API. Use the endorsed dire<br />ctory mechanism to place jaxb-api.jar in the bootstrap classloader. (See http://<br />java.sun.com/j2se/1.5.0/docs/guide/standards/)<br /> at com.sun.xml.bind.v2.model.impl.ModelBuilder.(ModelBuilder.jav<br />a:173)<br /> at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContex<br />tImpl.java:432)Mounishahttps://www.blogger.com/profile/06262338182567688678noreply@blogger.comtag:blogger.com,1999:blog-1306958590608174053.post-30460413278725685272011-01-01T15:24:48.872+01:002011-01-01T15:24:48.872+01:00@Mounisha: Just open the project in the IDE of you...@Mounisha: Just open the project in the IDE of your choice and run the tests I mentioned. As I wrote the integration test itself publishes an endpoint for the service and runs the client against it, so there is no need to manually start Jetty or any other web container.<br /><br />@Naidu: Seems like you are missing JAX-WS. Either run the project on Java 6 (which comprises JAX-WS) or add the dependency to your setup.Anonymoushttps://www.blogger.com/profile/16910067065508493885noreply@blogger.comtag:blogger.com,1999:blog-1306958590608174053.post-51182568547905539952010-12-31T23:35:37.401+01:002010-12-31T23:35:37.401+01:00java.lang.NoClassDefFoundError: com/sun/tools/ws/I...java.lang.NoClassDefFoundError: com/sun/tools/ws/Invoker<br /> at org.codehaus.mojo.jaxws.WsImportMojo.wsImport(WsImportMojo.java:273)<br /> at org.codehaus.mojo.jaxws.WsImportMojo.processLocalWsdlFiles(WsImportMo<br />jo.java:235)<br /> at org.codehaus.mojo.jaxws.WsImportMojo.execute(WsImportMojo.java:191)<br /> at org.codehaus.mojo.jaxws.MainWsImportMojo.execute(MainWsImportMojo.jav<br />a:15)<br /> at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi<br />nManager.java:490)<br /> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa<br />ultLifecycleExecutor.java:694)<br /> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi<br />fecycle(DefaultLifecycleExecutor.java:556)<br /> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau<br />ltLifecycleExecutor.java:535)<br /> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan<br />dleFailures(DefaultLifecycleExecutor.java:387)<br /> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen<br />ts(DefaultLifecycleExecutor.java:348)<br /> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi<br />fecycleExecutor.java:180)<br /> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)<br /> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)<br /> at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)<br /> at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:6<br />0)<br /> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br /> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.<br />java:39)<br /> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces<br />sorImpl.java:25)<br /> at java.lang.reflect.Method.invoke(Method.java:585)<br /> at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)<br /> at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)<br /> at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)<br /><br /> at org.codehaus.classworlds.Launcher.main(Launcher.java:375)<br />[INFO] ------------------------------------------------------------------------<br />[INFO] Total time: 2 seconds<br />[INFO] Finished at: Sat Jan 01 04:00:06 IST 2011<br />[INFO] Final Memory: 6M/11M<br />[INFO] ------------------------------------------------------------------------how to solve the above issue plz explain.Naiduhttps://www.blogger.com/profile/13906609306784057615noreply@blogger.comtag:blogger.com,1999:blog-1306958590608174053.post-56537759175532735542010-12-30T19:13:54.524+01:002010-12-30T19:13:54.524+01:00Hi Gunnar,
After a long search i got this cake.
...Hi Gunnar,<br /><br />After a long search i got this cake.<br /> please explain mvn commands to run this application.i am new to maven.i have one more doubt.. before you running unit tests r u starting jetty server and after completion of running unit tests you are stoping?<br /><br />txdMounishahttps://www.blogger.com/profile/06262338182567688678noreply@blogger.comtag:blogger.com,1999:blog-1306958590608174053.post-72749973300021081132010-12-30T18:16:14.560+01:002010-12-30T18:16:14.560+01:00Anonymous: the project at GitHub is pretty much th...Anonymous: the project at GitHub is pretty much the same as the code listings in this post. <br /><br />It contains two tests:<br /><br />* <a href="https://github.com/gunnarmorling/musings-of-a-programming-addict/blob/master/jaxws-on-spring/src/test/java/de/gmorling/moapa/jaxwsonspring/ShopClientMockTest.java" rel="nofollow">ShopClientMockTest</a> sets up a mock for the client's port using Mockito and tests the client against this mock<br />* <a href="https://github.com/gunnarmorling/musings-of-a-programming-addict/blob/master/jaxws-on-spring/src/test/java/de/gmorling/moapa/jaxwsonspring/ShopClientIntegrationTest.java" rel="nofollow">ShopClientIntegrationTest</a> launches a <a href="https://github.com/gunnarmorling/musings-of-a-programming-addict/blob/master/jaxws-on-spring/src/test/java/de/gmorling/moapa/jaxwsonspring/server/ShopServer.java" rel="nofollow">mock server</a> on localhost for the client's WSDL using the <a href="http://musingsofaprogrammingaddict.blogspot.com/2009/04/using-jax-ws-endpoint-api.html" rel="nofollow">JAX-WS endpoint API</a> and tests two clients (one using plain JAX-WS, one using Spring's JAX-WS client integration) against this mock server<br /><br />Both tests are set up using Spring, so you should have a look at the application contexts used to get an understanding of the wiring.Anonymoushttps://www.blogger.com/profile/16910067065508493885noreply@blogger.comtag:blogger.com,1999:blog-1306958590608174053.post-51968906934887592752010-12-30T04:43:14.970+01:002010-12-30T04:43:14.970+01:00Hi Gunnar,
very very Thanks for helping hands. i...Hi Gunnar,<br /> very very Thanks for helping hands. i guess in the updated sample(prev attachment --jagadeesh) project have lot of changes so can u please explain me how run and flow of the program please.<br /><br />Thanks <br />siriAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-1306958590608174053.post-85975859401227796632010-12-27T15:13:01.679+01:002010-12-27T15:13:01.679+01:00This comment has been removed by the author.Mounishahttps://www.blogger.com/profile/06262338182567688678noreply@blogger.comtag:blogger.com,1999:blog-1306958590608174053.post-25635828371136467622010-12-26T23:42:56.809+01:002010-12-26T23:42:56.809+01:00Guthikonda: I updated the sample project (current ...Guthikonda: I updated the sample project (current Maven dependencies etc.) and put it to GitHub. You can find it <a href="https://github.com/gunnarmorling/musings-of-a-programming-addict/tree/master/jaxws-on-spring" rel="nofollow">here</a>. Just don't forget the JBoss and java.net Maven repositories to your settings.xml.Anonymoushttps://www.blogger.com/profile/16910067065508493885noreply@blogger.comtag:blogger.com,1999:blog-1306958590608174053.post-31529061915235892412010-12-25T15:00:00.052+01:002010-12-25T15:00:00.052+01:00Mounisha, seems like your are missing JAX-WS on yo...Mounisha, seems like your are missing JAX-WS on your classpath. Either run on Java 6 or add an implementation such as CXF, Axis or Metro to you project.Anonymoushttps://www.blogger.com/profile/16910067065508493885noreply@blogger.comtag:blogger.com,1999:blog-1306958590608174053.post-87724751378152151542010-12-20T17:17:29.131+01:002010-12-20T17:17:29.131+01:00This comment has been removed by the author.Mounishahttps://www.blogger.com/profile/06262338182567688678noreply@blogger.comtag:blogger.com,1999:blog-1306958590608174053.post-55584638861209608432010-12-15T07:23:58.343+01:002010-12-15T07:23:58.343+01:00This comment has been removed by the author.Jagadeesh Naiduhttps://www.blogger.com/profile/17440526146551796247noreply@blogger.com