<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Exception when starting java_first_jaxws example in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Exception-when-starting-java-first-jaxws-example/m-p/2376751#M146263</link>
    <description>Martin, 
&lt;BR /&gt;a possible workaround is to use JAX-WS as frontend in the Activator class instead of the Simple frontent as documented in the guide. The activator class would then look like this: 
&lt;BR /&gt; 
&lt;PRE&gt;package demo.hw.server;&lt;BR /&gt;import javax.xml.ws.Endpoint;&lt;BR /&gt;import org.osgi.framework.BundleActivator;&lt;BR /&gt;import org.osgi.framework.BundleContext;&lt;BR /&gt;public class Activator implements BundleActivator {&lt;BR /&gt;	private Server server;&lt;BR /&gt;	public void start(BundleContext arg0) throws Exception {&lt;BR /&gt;		try {&lt;BR /&gt;			HelloWorldImpl implementor = new HelloWorldImpl();&lt;BR /&gt;	        String address = "http://localhost:9000/helloWorld";&lt;BR /&gt;	        Endpoint.publish(address, implementor);&lt;BR /&gt;			System.out.println("Server is started...");&lt;BR /&gt;		} catch (Exception e) {&lt;BR /&gt;			e.printStackTrace();&lt;BR /&gt;			throw e;&lt;BR /&gt;		}&lt;BR /&gt;	}&lt;BR /&gt;	public void stop(BundleContext arg0) throws Exception {&lt;BR /&gt;		try {&lt;BR /&gt;			server.stop();&lt;BR /&gt;		} catch (Exception e) {&lt;BR /&gt;			e.printStackTrace();&lt;BR /&gt;			throw e;&lt;BR /&gt;		}&lt;BR /&gt;	}&lt;BR /&gt;}&lt;/PRE&gt; 
&lt;BR /&gt;We should change the example to use JAX-WS ayway. 
&lt;BR /&gt;BTW, I logged your issue in 
&lt;A href="http://jira.talendforge.org/browse/TESB-5986" target="_blank" rel="nofollow noopener noreferrer"&gt;TESB&lt;/A&gt; and in 
&lt;A href="https://issues.apache.org/jira/browse/CXF-4329" target="_blank" rel="nofollow noopener noreferrer"&gt;CXF&lt;/A&gt;</description>
    <pubDate>Mon, 21 May 2012 16:19:04 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2012-05-21T16:19:04Z</dc:date>
    <item>
      <title>Exception when starting java_first_jaxws example</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Exception-when-starting-java-first-jaxws-example/m-p/2376747#M146259</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;I'm trying to deploy and test the "Code first development" example as described in the Development Guide 5.0_b (chapter 3. Web Services). I've successfully installed the bundle but when I try to start it, I'm getting the following error:&lt;BR /&gt;org.apache.cxf.service.factory.ServiceConstructionException&lt;BR /&gt; at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.createDefaultDataBinding(ReflectionServiceFactory&lt;BR /&gt;Bean.java:232)&lt;BR /&gt; at org.apache.cxf.service.factory.AbstractServiceFactoryBean.getDataBinding(AbstractServiceFactoryBean.java:109)&lt;BR /&gt; at org.apache.cxf.service.factory.AbstractServiceFactoryBean.getDataBinding(AbstractServiceFactoryBean.java:105)&lt;BR /&gt; at org.apache.cxf.service.factory.AbstractServiceFactoryBean.initializeDataBindings(AbstractServiceFactoryBean.j&lt;BR /&gt;ava:83)&lt;BR /&gt; at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildServiceFromClass(ReflectionServiceFactoryBea&lt;BR /&gt;n.java:474)&lt;BR /&gt; at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(ReflectionServiceFactoryBe&lt;BR /&gt;an.java:536)&lt;BR /&gt; at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(ReflectionServiceFactoryBean.java:248)&lt;BR /&gt; at org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(AbstractWSDLBasedEndpointFactory.java&lt;BR /&gt;:101)&lt;BR /&gt; at org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:159)&lt;BR /&gt; at demo.hw.server.Activator.start(Activator.java:18)&lt;BR /&gt; at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:783)&lt;BR /&gt; at java.security.AccessController.doPrivileged(Native Method)&lt;BR /&gt; at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:774)&lt;BR /&gt; at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:755)&lt;BR /&gt; at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:370)&lt;BR /&gt; at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:284)&lt;BR /&gt; at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:276)&lt;BR /&gt; at org.apache.karaf.shell.osgi.StartBundle.doExecute(StartBundle.java:30)&lt;BR /&gt; at org.apache.karaf.shell.osgi.BundlesCommand.doExecute(BundlesCommand.java:37)&lt;BR /&gt; at org.apache.karaf.shell.console.OsgiCommandSupport.execute(OsgiCommandSupport.java:38)&lt;BR /&gt; at org.apache.felix.gogo.commands.basic.AbstractCommand.execute(AbstractCommand.java:35)&lt;BR /&gt; at org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:78)&lt;BR /&gt; at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:474)&lt;BR /&gt; at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:400)&lt;BR /&gt; at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)&lt;BR /&gt; at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)&lt;BR /&gt; at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)&lt;BR /&gt; at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:89)&lt;BR /&gt; at org.apache.karaf.shell.console.jline.Console.run(Console.java:166)&lt;BR /&gt; at java.lang.Thread.run(Thread.java:662)&lt;BR /&gt;Caused by: java.lang.ClassNotFoundException: org.apache.cxf.jaxb.JAXBDataBinding&lt;BR /&gt; at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:506)&lt;BR /&gt; at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:422)&lt;BR /&gt; at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:410)&lt;BR /&gt; at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)&lt;BR /&gt; at java.lang.ClassLoader.loadClass(ClassLoader.java:248)&lt;BR /&gt; at org.apache.cxf.common.classloader.ClassLoaderUtils.loadClass2(ClassLoaderUtils.java:271)&lt;BR /&gt; at org.apache.cxf.common.classloader.ClassLoaderUtils.loadClass(ClassLoaderUtils.java:258)&lt;BR /&gt; at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.createDefaultDataBinding(ReflectionServiceFactory&lt;BR /&gt;Bean.java:220)&lt;BR /&gt; ... 29 more&lt;BR /&gt;org.osgi.framework.BundleException: Exception in demo.hw.server.Activator.start() of bundle com.talend.cxf.samples.java_&lt;BR /&gt;first_jaxws.&lt;BR /&gt;Do you have an idea how to fix this?&lt;BR /&gt;Kind regards&lt;BR /&gt;Martin Swientek&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 12:17:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Exception-when-starting-java-first-jaxws-example/m-p/2376747#M146259</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T12:17:27Z</dc:date>
    </item>
    <item>
      <title>Re: Exception when starting java_first_jaxws example</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Exception-when-starting-java-first-jaxws-example/m-p/2376748#M146260</link>
      <description>Martin, 
&lt;BR /&gt;your issue seems to be pretty similar to 
&lt;A href="https://community.qlik.com/s/feed/0D53p00007vCrd5CAC" target="_blank" rel="nofollow noopener noreferrer"&gt;https://community.talend.com/t5/Archive/resolved-Export-demo-to-deploy-folder-of-container-karaf/td-p/182587&lt;/A&gt;. Which jave jre/jdk are you exactly using? 
&lt;BR /&gt;Regards, 
&lt;BR /&gt;Zsolt</description>
      <pubDate>Mon, 21 May 2012 07:35:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Exception-when-starting-java-first-jaxws-example/m-p/2376748#M146260</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-05-21T07:35:30Z</dc:date>
    </item>
    <item>
      <title>Re: Exception when starting java_first_jaxws example</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Exception-when-starting-java-first-jaxws-example/m-p/2376749#M146261</link>
      <description>Hi Martin, 
&lt;BR /&gt;I had a second look on your issue. Just forget my first posting, it is not related to the JRE / JDK version you used. I could reproduce the problem when using TESB 5.1.0 (With 5.0.2 it works fine). With CXF-2.6.0, the version we integrate with 5.1.0, the one big bundle used before was split into several smaller bundles. This seems to cause problems in our sample. Unfortunately I don't have a solution or workaround yet, but I will keep you updated. 
&lt;BR /&gt;Regards, 
&lt;BR /&gt;Zsolt</description>
      <pubDate>Mon, 21 May 2012 11:49:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Exception-when-starting-java-first-jaxws-example/m-p/2376749#M146261</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-05-21T11:49:45Z</dc:date>
    </item>
    <item>
      <title>Re: Exception when starting java_first_jaxws example</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Exception-when-starting-java-first-jaxws-example/m-p/2376750#M146262</link>
      <description>The java_first_jaxws archetype wasn't updated for CXF 2.6.0 (oversight on our part) -- it was updated last week and should be fine for the upcoming CXF 2.6.1 (not yet released though 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MPcz.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/157233iD1A564EF62DE3BC2/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MPcz.png" alt="0683p000009MPcz.png" /&gt;&lt;/span&gt; ) This guide will also probably need updates (I'm checking it now.) 
&lt;BR /&gt;In the meantime, this tutorial can teach you Java-first development: 
&lt;A href="http://www.jroller.com/gmazza/entry/java_first_web_service" rel="nofollow noopener noreferrer"&gt;http://www.jroller.com/gmazza/entry/java_first_web_service&lt;/A&gt; (although we'd always rather everyone start learning with WSDL-first 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Mon, 21 May 2012 13:07:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Exception-when-starting-java-first-jaxws-example/m-p/2376750#M146262</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-05-21T13:07:08Z</dc:date>
    </item>
    <item>
      <title>Re: Exception when starting java_first_jaxws example</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Exception-when-starting-java-first-jaxws-example/m-p/2376751#M146263</link>
      <description>Martin, 
&lt;BR /&gt;a possible workaround is to use JAX-WS as frontend in the Activator class instead of the Simple frontent as documented in the guide. The activator class would then look like this: 
&lt;BR /&gt; 
&lt;PRE&gt;package demo.hw.server;&lt;BR /&gt;import javax.xml.ws.Endpoint;&lt;BR /&gt;import org.osgi.framework.BundleActivator;&lt;BR /&gt;import org.osgi.framework.BundleContext;&lt;BR /&gt;public class Activator implements BundleActivator {&lt;BR /&gt;	private Server server;&lt;BR /&gt;	public void start(BundleContext arg0) throws Exception {&lt;BR /&gt;		try {&lt;BR /&gt;			HelloWorldImpl implementor = new HelloWorldImpl();&lt;BR /&gt;	        String address = "http://localhost:9000/helloWorld";&lt;BR /&gt;	        Endpoint.publish(address, implementor);&lt;BR /&gt;			System.out.println("Server is started...");&lt;BR /&gt;		} catch (Exception e) {&lt;BR /&gt;			e.printStackTrace();&lt;BR /&gt;			throw e;&lt;BR /&gt;		}&lt;BR /&gt;	}&lt;BR /&gt;	public void stop(BundleContext arg0) throws Exception {&lt;BR /&gt;		try {&lt;BR /&gt;			server.stop();&lt;BR /&gt;		} catch (Exception e) {&lt;BR /&gt;			e.printStackTrace();&lt;BR /&gt;			throw e;&lt;BR /&gt;		}&lt;BR /&gt;	}&lt;BR /&gt;}&lt;/PRE&gt; 
&lt;BR /&gt;We should change the example to use JAX-WS ayway. 
&lt;BR /&gt;BTW, I logged your issue in 
&lt;A href="http://jira.talendforge.org/browse/TESB-5986" target="_blank" rel="nofollow noopener noreferrer"&gt;TESB&lt;/A&gt; and in 
&lt;A href="https://issues.apache.org/jira/browse/CXF-4329" target="_blank" rel="nofollow noopener noreferrer"&gt;CXF&lt;/A&gt;</description>
      <pubDate>Mon, 21 May 2012 16:19:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Exception-when-starting-java-first-jaxws-example/m-p/2376751#M146263</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-05-21T16:19:04Z</dc:date>
    </item>
    <item>
      <title>Re: Exception when starting java_first_jaxws example</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Exception-when-starting-java-first-jaxws-example/m-p/2376752#M146264</link>
      <description>Hi all,
&lt;BR /&gt;thank you very much for your fast and comprehensive help! I've successfully deployed the examples from Glen's blog (java-first and wsdl-first ;-)) as well as the original example from the developer guide using the JAX-WS frontend in the Activator class as suggested by Zsolt. 
&lt;BR /&gt;Kind regards
&lt;BR /&gt;Martin</description>
      <pubDate>Mon, 21 May 2012 21:44:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Exception-when-starting-java-first-jaxws-example/m-p/2376752#M146264</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-05-21T21:44:36Z</dc:date>
    </item>
    <item>
      <title>Re: Exception when starting java_first_jaxws example</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Exception-when-starting-java-first-jaxws-example/m-p/2376753#M146265</link>
      <description>ooG5JD  &lt;A href="https://community.talend.com/" rel="nofollow noopener noreferrer"&gt;swvapxgyfwns&lt;/A&gt;, xagvkktkykti, gxppztvhqrjb,</description>
      <pubDate>Thu, 04 Sep 2014 04:51:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Exception-when-starting-java-first-jaxws-example/m-p/2376753#M146265</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2014-09-04T04:51:13Z</dc:date>
    </item>
  </channel>
</rss>

