You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by Eric Dofonsou <ew...@yahoo.com> on 2006/03/21 15:55:45 UTC

Using the service-http component as a service assemblie in JBoss

Has anybody deployed servicemix 3.0 in JBoss and tried
to deployed the servicemix-http service assemblie
inside that servicemix  ?
Right now I'am having some problems with the
librairies, the servicemix-http requires the
common-httpclient librairie version 3.0  However JBoss
by default uses the version 2.0 of that librairies. 
So I get the following error when trying to deploy the
service-http assembly :

---------
Caused by: java.lang.NoSuchFieldError:
ANY_HOST_CONFIGURATION
        at
org.apache.commons.httpclient.params.HttpConnectionManagerParams.setDefaultMaxConnectionsPerHost(HttpConnectionManagerParams.java:85)
        at
org.apache.servicemix.http.HttpLifeCycle.doInit(HttpLifeCycle.java:78)
        at
org.apache.servicemix.common.BaseLifeCycle.init(BaseLifeCycle.java:101)
        at
org.servicemix.jbi.container.JBIContainer.activateComponent(JBIContainer.java:887)
        at
org.servicemix.jbi.container.JBIContainer.activateComponent(JBIContainer.java:838)
        at
org.servicemix.jbi.framework.InstallerMBeanImpl.install(InstallerMBeanImpl.java:131)
        at
org.servicemix.jbi.framework.InstallationService.install(InstallationService.java:263)
--------

So My question really is, is there a way to force
either JBoss or servicemix to use the
common-httpclient librairie version 3 to load the
servicemix-http assembly ?

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Re: Using the service-http component as a service assemblie in JBoss

Posted by Eric Dofonsou <ew...@yahoo.com>.
Many thanks Guillame, this indeed worked,
However I'am still stuck here and waondering if you
can help me.

The new problem I have now is that my service
assemblies does not seemed to be recongnized inside
JBoss.  I can see a component pathinside the
servicemix deploy folder.  But I see no
service-assemblies folder.  I'am guessing that my
service assemblies is not properly recongnised, here
is the content of my xbean.xml file (for my service
unit)
----------
<beans
xmlns:sm="http://servicemix.apache.org/config/1.0"
  xmlns:http="http://servicemix.apache.org/http/1.0">
  <classpath>
    <location>.</location>
  </classpath>

	<bean id="propertyConfigurer"
class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
      <property name="location"
value="classpath:connection.properties"/>
  </bean>

	<http:endpoint service="simple-service"
		endpoint="simple-service"
		role="provider"
		locationURI="${http.provider.uri}"
		defaultMep="http://www.w3.org/2004/08/wsdl/in-out"
		soapVersion="1.1"
		soap="true" />
	<http:endpoint service="simple-service"
		endpoint="simple-service1"
		role="consumer"
		locationURI="${http.consumer.uri}"
		wsdlResource="${http.provider.uri.wsdl}"
		defaultMep="http://www.w3.org/2004/08/wsdl/in-out"
		soapVersion="1.1"
		soap="true" />
</beans>
-----------
And here is a copie of my jbi.xml for my service
assemblie :
<jbi xmlns="http://java.sun.com/xml/ns/jbi" 
    
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
    
xsi:schemaLocation="http://java.sun.com/xml/ns/jbi" 
     version="1.0">
     
   <service-assembly>
     <identification>
       <name>AU1</name>
       <description>Sample AU</description>
     </identification>
     <service-unit>
       <identification>
         <name>SU1</name>
         <description>Sample</description>
       </identification>
       <target>
        
<artifacts-zip>cardinal-su.zip</artifacts-zip>
        
<component-name>cardinal-http</component-name>
       </target>
     </service-unit>
    </service-assembly>
    
</jbi>
-----------

Any hint anyone ?


--- Guillaume Nodet <gn...@gmail.com> wrote:

> You may want to change the way JBI classloaders are
> created by setting
> the class-loader-delegation to self-first in the jbi
> descriptor of the
> component.
> I guess this should be the default...
> Could you raise a jira for that if it works for you
> ?
> 
> Cheers,
> Guillaume Nodet
> 
> On 3/21/06, Eric Dofonsou <ew...@yahoo.com>
> wrote:
> > Has anybody deployed servicemix 3.0 in JBoss and
> tried
> > to deployed the servicemix-http service assemblie
> > inside that servicemix  ?
> > Right now I'am having some problems with the
> > librairies, the servicemix-http requires the
> > common-httpclient librairie version 3.0  However
> JBoss
> > by default uses the version 2.0 of that
> librairies.
> > So I get the following error when trying to deploy
> the
> > service-http assembly :
> >
> > ---------
> > Caused by: java.lang.NoSuchFieldError:
> > ANY_HOST_CONFIGURATION
> >         at
> >
>
org.apache.commons.httpclient.params.HttpConnectionManagerParams.setDefaultMaxConnectionsPerHost(HttpConnectionManagerParams.java:85)
> >         at
> >
>
org.apache.servicemix.http.HttpLifeCycle.doInit(HttpLifeCycle.java:78)
> >         at
> >
>
org.apache.servicemix.common.BaseLifeCycle.init(BaseLifeCycle.java:101)
> >         at
> >
>
org.servicemix.jbi.container.JBIContainer.activateComponent(JBIContainer.java:887)
> >         at
> >
>
org.servicemix.jbi.container.JBIContainer.activateComponent(JBIContainer.java:838)
> >         at
> >
>
org.servicemix.jbi.framework.InstallerMBeanImpl.install(InstallerMBeanImpl.java:131)
> >         at
> >
>
org.servicemix.jbi.framework.InstallationService.install(InstallationService.java:263)
> > --------
> >
> > So My question really is, is there a way to force
> > either JBoss or servicemix to use the
> > common-httpclient librairie version 3 to load the
> > servicemix-http assembly ?
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Tired of spam?  Yahoo! Mail has the best spam
> protection around
> > http://mail.yahoo.com
> >
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Re: Using the service-http component as a service assemblie in JBoss

Posted by Guillaume Nodet <gn...@gmail.com>.
You may want to change the way JBI classloaders are created by setting
the class-loader-delegation to self-first in the jbi descriptor of the
component.
I guess this should be the default...
Could you raise a jira for that if it works for you ?

Cheers,
Guillaume Nodet

On 3/21/06, Eric Dofonsou <ew...@yahoo.com> wrote:
> Has anybody deployed servicemix 3.0 in JBoss and tried
> to deployed the servicemix-http service assemblie
> inside that servicemix  ?
> Right now I'am having some problems with the
> librairies, the servicemix-http requires the
> common-httpclient librairie version 3.0  However JBoss
> by default uses the version 2.0 of that librairies.
> So I get the following error when trying to deploy the
> service-http assembly :
>
> ---------
> Caused by: java.lang.NoSuchFieldError:
> ANY_HOST_CONFIGURATION
>         at
> org.apache.commons.httpclient.params.HttpConnectionManagerParams.setDefaultMaxConnectionsPerHost(HttpConnectionManagerParams.java:85)
>         at
> org.apache.servicemix.http.HttpLifeCycle.doInit(HttpLifeCycle.java:78)
>         at
> org.apache.servicemix.common.BaseLifeCycle.init(BaseLifeCycle.java:101)
>         at
> org.servicemix.jbi.container.JBIContainer.activateComponent(JBIContainer.java:887)
>         at
> org.servicemix.jbi.container.JBIContainer.activateComponent(JBIContainer.java:838)
>         at
> org.servicemix.jbi.framework.InstallerMBeanImpl.install(InstallerMBeanImpl.java:131)
>         at
> org.servicemix.jbi.framework.InstallationService.install(InstallationService.java:263)
> --------
>
> So My question really is, is there a way to force
> either JBoss or servicemix to use the
> common-httpclient librairie version 3 to load the
> servicemix-http assembly ?
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>

RE: Using the service-http component as a service assemblie in JBoss

Posted by Eric Dofonsou <ew...@yahoo.com>.
Yeah I thought about this, but ultimatly we would want
to put our configuratinoin productino so this is a
last ressort.

I found this from JBoss web site anybody can help here
?
http://wiki.jboss.org/wiki/Wiki.jsp?page=ClassLoadingConfiguration

Do I use a jboss-app.xml ? or jboss-web.xml ? and do I
put the file in the servicemix war fie or the service
assembli zip file ?>


--- Hossam Karim <hr...@gmail.com> wrote:

> I had similar requirements, but with JAX-WS
> libraries, so I created a new
> JBoss server configuration and overwritten the
> libraries. I am not having
> such problems, but I use this for developing and
> testing only :)  
> 
> -----Original Message-----
> From: Eric Dofonsou [mailto:ewrickspm@yahoo.com] 
> Sent: Tuesday, March 21, 2006 4:56 PM
> To: servicemix-users@geronimo.apache.org
> Subject: Using the service-http component as a
> service assemblie in JBoss 
> 
> Has anybody deployed servicemix 3.0 in JBoss and
> tried
> to deployed the servicemix-http service assemblie
> inside that servicemix  ?
> Right now I'am having some problems with the
> librairies, the servicemix-http requires the
> common-httpclient librairie version 3.0  However
> JBoss
> by default uses the version 2.0 of that librairies. 
> So I get the following error when trying to deploy
> the
> service-http assembly :
> 
> ---------
> Caused by: java.lang.NoSuchFieldError:
> ANY_HOST_CONFIGURATION
>         at
>
org.apache.commons.httpclient.params.HttpConnectionManagerParams.setDefaultM
>
axConnectionsPerHost(HttpConnectionManagerParams.java:85)
>         at
>
org.apache.servicemix.http.HttpLifeCycle.doInit(HttpLifeCycle.java:78)
>         at
>
org.apache.servicemix.common.BaseLifeCycle.init(BaseLifeCycle.java:101)
>         at
>
org.servicemix.jbi.container.JBIContainer.activateComponent(JBIContainer.jav
> a:887)
>         at
>
org.servicemix.jbi.container.JBIContainer.activateComponent(JBIContainer.jav
> a:838)
>         at
>
org.servicemix.jbi.framework.InstallerMBeanImpl.install(InstallerMBeanImpl.j
> ava:131)
>         at
>
org.servicemix.jbi.framework.InstallationService.install(InstallationService
> .java:263)
> --------
> 
> So My question really is, is there a way to force
> either JBoss or servicemix to use the
> common-httpclient librairie version 3 to load the
> servicemix-http assembly ?
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam
> protection around 
> http://mail.yahoo.com 
> 
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

RE: Using the service-http component as a service assemblie in JBoss

Posted by Hossam Karim <hr...@gmail.com>.
I had similar requirements, but with JAX-WS libraries, so I created a new
JBoss server configuration and overwritten the libraries. I am not having
such problems, but I use this for developing and testing only :)  

-----Original Message-----
From: Eric Dofonsou [mailto:ewrickspm@yahoo.com] 
Sent: Tuesday, March 21, 2006 4:56 PM
To: servicemix-users@geronimo.apache.org
Subject: Using the service-http component as a service assemblie in JBoss 

Has anybody deployed servicemix 3.0 in JBoss and tried
to deployed the servicemix-http service assemblie
inside that servicemix  ?
Right now I'am having some problems with the
librairies, the servicemix-http requires the
common-httpclient librairie version 3.0  However JBoss
by default uses the version 2.0 of that librairies. 
So I get the following error when trying to deploy the
service-http assembly :

---------
Caused by: java.lang.NoSuchFieldError:
ANY_HOST_CONFIGURATION
        at
org.apache.commons.httpclient.params.HttpConnectionManagerParams.setDefaultM
axConnectionsPerHost(HttpConnectionManagerParams.java:85)
        at
org.apache.servicemix.http.HttpLifeCycle.doInit(HttpLifeCycle.java:78)
        at
org.apache.servicemix.common.BaseLifeCycle.init(BaseLifeCycle.java:101)
        at
org.servicemix.jbi.container.JBIContainer.activateComponent(JBIContainer.jav
a:887)
        at
org.servicemix.jbi.container.JBIContainer.activateComponent(JBIContainer.jav
a:838)
        at
org.servicemix.jbi.framework.InstallerMBeanImpl.install(InstallerMBeanImpl.j
ava:131)
        at
org.servicemix.jbi.framework.InstallationService.install(InstallationService
.java:263)
--------

So My question really is, is there a way to force
either JBoss or servicemix to use the
common-httpclient librairie version 3 to load the
servicemix-http assembly ?

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com