<?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: Spring error deploying REST services on karaf container in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Spring-error-deploying-REST-services-on-karaf-container/m-p/2289168#M146685</link>
    <description>Usually "0.0.0.0" used as service host</description>
    <pubDate>Fri, 18 Oct 2013 16:51:42 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2013-10-18T16:51:42Z</dc:date>
    <item>
      <title>Spring error deploying REST services on karaf container</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Spring-error-deploying-REST-services-on-karaf-container/m-p/2289165#M146682</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;We have some REST services generated by Talend Studio ESB. If we deploy at the same machine where we develop them, work ok. However, we're developing our services in our DEVELOPMENT environment, and uploading and deploying them at INTEGRATION/TESTING environment. When we launch Karaf (trun.bat) in this environment appears some Java errors and our services are in state FAILED. What is the problem?&lt;BR /&gt;We export our services as OSGI for Bundle (.jar), we carry the file to INTEGRATION environment (container/deploy), but Karaf can't build and start them.&lt;BR /&gt;The error is: &lt;/P&gt; 
&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;Exception in thread "SpringOsgiExtenderThread-6" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'service': Invocation of init method failed; nested&lt;BR /&gt;exception is org.apache.cxf.service.factory.ServiceConstructionException&lt;BR /&gt; at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1422)&lt;BR /&gt; at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:518)&lt;BR /&gt; at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:455)&lt;BR /&gt; at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293)&lt;BR /&gt; at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)&lt;BR /&gt; at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290)&lt;BR /&gt; at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:192)&lt;BR /&gt; at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:585)&lt;BR /&gt; at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)&lt;BR /&gt; at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$1600(AbstractDelegatedExecutionApplicationContext.java:69)&lt;BR /&gt; at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:355)&lt;BR /&gt; at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)&lt;BR /&gt; at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:320)&lt;BR /&gt; at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:132)&lt;BR /&gt; at java.lang.Thread.run(Thread.java:662)&lt;BR /&gt;Caused by: org.apache.cxf.service.factory.ServiceConstructionException&lt;BR /&gt; at org.apache.cxf.jaxrs.JAXRSServerFactoryBean.create(JAXRSServerFactoryBean.java:201)&lt;BR /&gt; at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)&lt;BR /&gt; at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)&lt;BR /&gt; at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)&lt;BR /&gt; at java.lang.reflect.Method.invoke(Method.java:597)&lt;BR /&gt; at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1546)&lt;BR /&gt; at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1487)&lt;BR /&gt; at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1419)&lt;BR /&gt; ... 14 more&lt;BR /&gt;Caused by: org.apache.cxf.interceptor.Fault: Could not start Jetty server on port 8.115: Cannot assign requested address: bind&lt;BR /&gt; at org.apache.cxf.transport.http_jetty.JettyHTTPServerEngine.addServant(JettyHTTPServerEngine.java:386)&lt;BR /&gt; at org.apache.cxf.transport.http_jetty.JettyHTTPDestination.activate(JettyHTTPDestination.java:179)&lt;BR /&gt; at org.apache.cxf.transport.AbstractObservable.setMessageObserver(AbstractObservable.java:48)&lt;BR /&gt; at org.apache.cxf.binding.AbstractBaseBindingFactory.addListener(AbstractBaseBindingFactory.java:95)&lt;BR /&gt; at org.apache.cxf.endpoint.ServerImpl.start(ServerImpl.java:131)&lt;BR /&gt; at org.apache.cxf.jaxrs.JAXRSServerFactoryBean.create(JAXRSServerFactoryBean.java:192)&lt;BR /&gt; ... 21 more&lt;BR /&gt;Caused by: java.net.BindException: Cannot assign requested address: bind&lt;BR /&gt; at sun.nio.ch.Net.bind(Native Method)&lt;BR /&gt; at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:124)&lt;BR /&gt; at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:59)&lt;BR /&gt; at org.eclipse.jetty.server.nio.SelectChannelConnector.open(SelectChannelConnector.java:187)&lt;BR /&gt; at org.eclipse.jetty.server.AbstractConnector.doStart(AbstractConnector.java:316)&lt;BR /&gt; at org.eclipse.jetty.server.nio.SelectChannelConnector.doStart(SelectChannelConnector.java:265)&lt;BR /&gt; at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)&lt;BR /&gt; at org.eclipse.jetty.server.Server.doStart(Server.java:286)&lt;BR /&gt; at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)&lt;BR /&gt; at org.apache.cxf.transport.http_jetty.JettyHTTPServerEngine.addServant(JettyHTTPServerEngine.java:375)&lt;BR /&gt; ... 26 more&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;P&gt;&lt;BR /&gt;And after execute &lt;STRONG&gt;osgi:list&lt;/STRONG&gt;:&lt;/P&gt; 
&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;karaf@trun&amp;gt; list&lt;BR /&gt;START LEVEL 100 , List Threshold: 50&lt;BR /&gt; ID State Blueprint Spring Level Name&lt;BR /&gt; Apache MINA Core (2.0.5)&lt;BR /&gt; Apache CXF Compatibility Bundle Jar (2.7.3)&lt;BR /&gt; camel-core (2.10.2)&lt;BR /&gt; camel-karaf-commands (2.10.5.SNAPSHOT)&lt;BR /&gt; camel-spring (2.10.2)&lt;BR /&gt; camel-blueprint (2.10.2)&lt;BR /&gt; camel-cxf-transport (2.10.2)&lt;BR /&gt; camel-cxf (2.10.2)&lt;BR /&gt; Commons Pool (1.6.0)&lt;BR /&gt; camel-jms (2.10.2)&lt;BR /&gt; Apache ServiceMix :: Bundles :: jdom (1.1.0.4)&lt;BR /&gt; OPS4J Pax Web - Jsp Support (1.1.4)&lt;BR /&gt; Commons JXPath (1.3)&lt;BR /&gt; Service Activity Monitoring :: Common (5.2.2)&lt;BR /&gt; Service Activity Monitoring :: Agent (5.2.2)&lt;BR /&gt; Talend :: ESB :: Job :: API (5.2.2)&lt;BR /&gt; Talend :: ESB :: LOCATOR :: AUTH (5.2.2)&lt;BR /&gt; Hosts: 186&lt;BR /&gt; ZooKeeper Bundle (3.3.6)&lt;BR /&gt; Fragments: 185&lt;BR /&gt; Service Locator Client for CXF (5.2.2)&lt;BR /&gt; Apache ServiceMix :: Bundles :: dom4j (1.6.1.5)&lt;BR /&gt; Apache ServiceMix :: Bundles :: jaxen (1.1.1.2)&lt;BR /&gt; Talend :: ESB :: Job :: Controller (5.2.2)&lt;BR /&gt; Commons Net (3.1.0)&lt;BR /&gt; Apache ServiceMix :: Bundles :: jsch (0.1.48.1)&lt;BR /&gt; camel-ftp (2.10.2)&lt;BR /&gt; Camel Talend Job Component (5.2.2)&lt;BR /&gt; Jolokia Agent (1.0.4)&lt;BR /&gt; Apache Karaf :: Shell :: Service Wrapper (2.2.9)&lt;BR /&gt;&lt;FONT color="red"&gt; WSTestHandMadeWebService (0.1) (1.4)&lt;/FONT&gt;&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;P&gt;&lt;BR /&gt;Cheers&lt;BR /&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 11:52:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Spring-error-deploying-REST-services-on-karaf-container/m-p/2289165#M146682</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T11:52:09Z</dc:date>
    </item>
    <item>
      <title>Re: Spring error deploying REST services on karaf container</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Spring-error-deploying-REST-services-on-karaf-container/m-p/2289166#M146683</link>
      <description>&lt;BLOCKQUOTE&gt;
 &lt;TABLE border="1"&gt;
  &lt;TBODY&gt;
   &lt;TR&gt;
    &lt;TD&gt;Caused by: org.apache.cxf.interceptor.Fault: Could not start Jetty server on port 8.115: Cannot assign requested address: bind&lt;/TD&gt;
   &lt;/TR&gt;
  &lt;/TBODY&gt;
 &lt;/TABLE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BR /&gt;Looks like wrong port specified: try 8115 (without dot)</description>
      <pubDate>Thu, 17 Oct 2013 08:09:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Spring-error-deploying-REST-services-on-karaf-container/m-p/2289166#M146683</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-10-17T08:09:16Z</dc:date>
    </item>
    <item>
      <title>Re: Spring error deploying REST services on karaf container</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Spring-error-deploying-REST-services-on-karaf-container/m-p/2289167#M146684</link>
      <description>Hi AleXx, 
&lt;BR /&gt;Thanks by your reply. That dot must be a trace's error. If i unarchive my .jar and open the file META-INF\spring\beans.xml: 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;&amp;lt;SERVER id="service" address="&lt;A href="http://101.281.101.195:8115/" target="_blank" rel="nofollow noopener noreferrer"&gt;http://101.281.101.195:8115/&lt;/A&gt;"&amp;gt;&lt;BR /&gt; &amp;lt;SERVICEBEANS&amp;gt;&lt;BR /&gt; &amp;lt;REF bean="serviceBean"&amp;gt;&amp;lt;/REF&amp;gt;&lt;BR /&gt; &amp;lt;/SERVICEBEANS&amp;gt;&lt;BR /&gt; &amp;lt;PROVIDERS&amp;gt;&lt;BR /&gt; &amp;lt;REF bean="wrongCallHandler"&amp;gt;&amp;lt;/REF&amp;gt;&lt;BR /&gt; &amp;lt;REF bean="jsonProvider"&amp;gt;&amp;lt;/REF&amp;gt;&lt;BR /&gt; &amp;lt;REF bean="dom4jProvider"&amp;gt;&amp;lt;/REF&amp;gt;&lt;BR /&gt; &lt;BR /&gt; &amp;lt;/PROVIDERS&amp;gt;&lt;BR /&gt; &amp;lt;/SERVER&amp;gt;&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Thu, 17 Oct 2013 08:14:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Spring-error-deploying-REST-services-on-karaf-container/m-p/2289167#M146684</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-10-17T08:14:20Z</dc:date>
    </item>
    <item>
      <title>Re: Spring error deploying REST services on karaf container</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Spring-error-deploying-REST-services-on-karaf-container/m-p/2289168#M146685</link>
      <description>Usually "0.0.0.0" used as service host</description>
      <pubDate>Fri, 18 Oct 2013 16:51:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Spring-error-deploying-REST-services-on-karaf-container/m-p/2289168#M146685</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-10-18T16:51:42Z</dc:date>
    </item>
    <item>
      <title>Re: Spring error deploying REST services on karaf container</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Spring-error-deploying-REST-services-on-karaf-container/m-p/2289169#M146686</link>
      <description>What do you mean AleXx??</description>
      <pubDate>Mon, 21 Oct 2013 07:37:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Spring-error-deploying-REST-services-on-karaf-container/m-p/2289169#M146686</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-10-21T07:37:49Z</dc:date>
    </item>
    <item>
      <title>Re: Spring error deploying REST services on karaf container</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Spring-error-deploying-REST-services-on-karaf-container/m-p/2289170#M146687</link>
      <description>Try following service configuration:
&lt;BR /&gt;
&lt;SERVER id="service" address="http://0.0.0.0:8115/"&gt;&lt;/SERVER&gt;</description>
      <pubDate>Mon, 21 Oct 2013 10:23:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Spring-error-deploying-REST-services-on-karaf-container/m-p/2289170#M146687</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-10-21T10:23:21Z</dc:date>
    </item>
    <item>
      <title>Re: Spring error deploying REST services on karaf container</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Spring-error-deploying-REST-services-on-karaf-container/m-p/2289171#M146688</link>
      <description>Hi AleXx, thanks by your reply. 
&lt;BR /&gt;Your suggestion works fine on my local machine (importing from testing environment), but when we deploy them on Integration/preproduction, the issue continues 
&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; 
&lt;BR /&gt;any idea? 
&lt;BR /&gt; 
&lt;BR /&gt;Cheers</description>
      <pubDate>Mon, 21 Oct 2013 13:08:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Spring-error-deploying-REST-services-on-karaf-container/m-p/2289171#M146688</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-10-21T13:08:59Z</dc:date>
    </item>
    <item>
      <title>Re: Spring error deploying REST services on karaf container</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Spring-error-deploying-REST-services-on-karaf-container/m-p/2289172#M146689</link>
      <description>Looks like the actual port is busy</description>
      <pubDate>Wed, 20 Nov 2013 10:53:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Spring-error-deploying-REST-services-on-karaf-container/m-p/2289172#M146689</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-11-20T10:53:00Z</dc:date>
    </item>
    <item>
      <title>Re: Spring error deploying REST services on karaf container</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Spring-error-deploying-REST-services-on-karaf-container/m-p/2289173#M146690</link>
      <description>Hi mtbabel, 
&lt;BR /&gt;It sounds like your original bundles may not be removed or completely updated in those environments. If you haven't, try uninstalling all of the bundles deployed with this solution. So execute a 'list' and then run 'uninstall' against the bundle ID for each bundle belonging to your web service (one or more). 
&lt;BR /&gt;If that doesn't get you out of the weeds, can you share if you're using TOS for ESB or Enterprise ESB? Also, how are you deploying the web service - using a KAR into the deploy/ directory or using Maven, or TAC or file: URI? 
&lt;BR /&gt;Best Regards, 
&lt;BR /&gt;Ben</description>
      <pubDate>Wed, 20 Nov 2013 14:48:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Spring-error-deploying-REST-services-on-karaf-container/m-p/2289173#M146690</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-11-20T14:48:49Z</dc:date>
    </item>
    <item>
      <title>Re: Spring error deploying REST services on karaf container</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Spring-error-deploying-REST-services-on-karaf-container/m-p/2289174#M146691</link>
      <description>Hi,
&lt;BR /&gt;We've solved our issues several weeks ago reinstalling Karaf and re-configuring the REST services.
&lt;BR /&gt;Thanks,
&lt;BR /&gt;Cheers</description>
      <pubDate>Wed, 20 Nov 2013 14:50:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Spring-error-deploying-REST-services-on-karaf-container/m-p/2289174#M146691</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-11-20T14:50:40Z</dc:date>
    </item>
  </channel>
</rss>

