Thx Lee for helpe, i found the solution, the problem was linked to the
securite on the was server, i desactivate the securite and it wok. other
solution is to create a was.policy file (see
http://xfire.codehaus.org/WebSphere+6.x )

Thanks.
Mohammed.


2007/4/3, Lee Meador <[EMAIL PROTECTED]>:

We haven't deployed any xfire on Websphere but we put all the dependent
jars in the EJB jar if they are shared between the EJBs and the web
application. The web application's classloader can get to the jars in the
EJBs classloader but not vice versa.

There is also a debugging option on the Websphere 6 admin if you have the
later version. It's there by 6.0.2.3. This option is named something like
"view classpath" and you can look at which jars and class files are in which
classloader by drilling down. Its very useful for stuff like this.

Thanks.

-- Lee

On 3/26/07, Rodrigo Rey <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I recently had some issues with xfire on websphere 6 when being called
> from an EJB.  I didn't have the same error, but the NoClassDefFoundError
> was similar.  What I learned is that unlike jboss, websphere and
> weblogic, have separate classloaders for the Web module and the EJB
> module, so in my case the web module worked correctly, but in another
> instance I was using a client on a local transport from the ejbs and it
> could not find the xfire classes.  Once I got past that, there were
> issues with a few other jars colliding and causing issues, but it simply
> a matter of shuffling the correct jars around.
>
>
> Hope that helps.
>
>
> -----Original Message-----
> From: Tomek Sztelak [mailto:[EMAIL PROTECTED]
> Sent: Monday, March 26, 2007 7:28 AM
> To: [email protected]
> Subject: Re: [xfire-user] Problem on deploying xfire on WebSphere 6
>
> ops, :)
> Some servers have classloader problems :/ Maybe try to attach
> xbean-spring source code, try to debug this class and see what exactly
> is going on there.
>
> On 3/26/07, Mohammed El ammaria <[EMAIL PROTECTED]> wrote:
> >
> >
> > Thank  you Tomek  for your  response.
> >  But I already tried with version 1.2.6  I hade the same error but
> > instead of 1.4.2 i hade 1.2.6.
> >  My application work well with Jboss and Application Server Community
> > Edition , but the problem is with Web sphere professional version.
> Mohammed.
> >
> > 2007/3/26, Tomek Sztelak <[EMAIL PROTECTED]>:
> > >
> > > I don't remember exactly, but maybe xbean-spring doesn't work with
> > > Spring 1.2.2. Try to upgrade Spring version ( i think to at least
> > > 1.2.6 ).
> > > You can also try to deploy your application on another app server,
> > > just to see if its server related issue or not.
> > >
> > >
> > > On 3/26/07, Mohammed El ammaria <[EMAIL PROTECTED]> wrote:
> > > >
> > > >
> > > > >
> > > > > Hi;
> > > > >
> > > > >
> > > > > I have a SOA project done with xfire, i m trying to deploy it on
> > websphere
> > > > 6 i'm using  the following jars  :
> > > > > xfire-spring-1.2.2.jar
> > > > > xfire-jsr181-api-1.0-M1.jar
> > > > > xfire-all-1.2.2.jar
> > > > > xbean-spring-2.5.jar
> > > > > spring-1.2.4.jar
> > > > >
> > > > > But when I start my application I have the errors :
> > > > > [3/16/07 19:03:04:117 GMT] 0000002a ServletWrappe E   Uncaught
> init()
> > > > exception thrown by servlet XFireServlet
> > > > > [3/16/07 19:03:04:127 GMT] 0000002a WebApp        E   SRVE0026E:
> > [Servlet
> > > > Error]-[XFireServlet]: java.lang.IllegalStateException : Could not
>
> > > > find valid implementation for: 1.2.4
> > > > >         at
> > > >
> > org.apache.xbean.spring.context.impl.XBeanHelper.createBeanDefinitionR
> > eader(XBeanHelper.java:24)
> > > > >         at
> > > >
> > org.codehaus.xfire.spring.XFireConfigLoader.getXFireApplicationContext
> > > > (XFireConfigLoader.java:74)
> > > > >         at
> > > >
> > org.codehaus.xfire.spring.XFireConfigLoader.loadContext(XFireConfigLoa
> > der.java:41)
> > > > >         at
> > > >
> > org.codehaus.xfire.transport.http.XFireConfigurableServlet.loadConfig
> > (XFireConfigurableServlet.java
> > > > :86)
> > > > >         at
> > > >
> > org.codehaus.xfire.transport.http.XFireConfigurableServlet.createXFire
> > (XFireConfigurableServlet.java:54)
> > > > >         at
> > > > org.codehaus.xfire.transport.http.XFireServlet.init
> > (XFireServlet.java:45)
> > > > >         at
> > > >
> > javax.servlet.GenericServlet.init(GenericServlet.java:256)
> > > > >         at
> > > >
> > com.ibm.ws.webcontainer.servlet.ServletWrapper.init(ServletWrapper.jav
> > a:310)
> > > > >         at
> > > >
> > com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest
> > > > (ServletWrapper.java:560)
> > > > >         at
> > > >
> > com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java
> > :3071)
> > > > >         at
> > > >
> > com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:23
> > 6)
> > > > >         at
> > > > com.ibm.ws.webcontainer.VirtualHost.handleRequest
> > > > ( VirtualHost.java:210)
> > > > >         at
> > > >
> > com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:1
> > 958)
> > > > >         at
> > > >
> > com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java
> > :98)
> > > > >         at
> > > >
> > com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscriminat
> > ion
> > > > (HttpInboundLink.java:472)
> > > > >         at
> > > >
> > com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformat
> > ion
> > (HttpInboundLink.java :411)
> > > > >         at
> > > >
> > com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInbound
> > Link.java
> > > > :288)
> > > > >         at
> > > >
> > com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDis
> > criminaters
> > (NewConnectionInitialReadCallback.java:207)
> > > > >         at
> > > >
> > com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete
> > > > (NewConnectionInitialReadCallback.java:109)
> > > > >         at
> > > >
> > com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueue
> > Manager.java:566)
> > > > >         at
> > > >
> > com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManage
> > r.java
> > > > :619)
> > > > >         at
> > > >
> > com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManage
> > r.java:952)
> > > > >         at
> > > >
> > com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManag
>
> > er.java:1039)
> > > > >         at com.ibm.ws.util.ThreadPool$Worker.run
> > > > (ThreadPool.java:1471)
> > > > > Caused by:
> > java.lang.reflect.InvocationTargetException
> > > > >         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
> > > > :274)
> > > > >         at
> > > >
> > org.apache.xbean.spring.context.impl.XBeanHelper.createBeanDefinitionR
> > eader
> > (XBeanHelper.java:22)
> > > > >         ... 23 more
> > > > > Caused by: java.lang.NoClassDefFoundError
> > > > >         at java.lang.Class.forName0 (Native Method)
> > > > >         at java.lang.Class.forName (Class.java:141)
> > > > >         at
> > > >
> > org.apache.xbean.spring.context.v1.XBeanXmlBeanDefinitionReader.class$
> > (XBeanXmlBeanDefinitionReader.java :58)
> > > > >         at
> > > >
> > org.apache.xbean.spring.context.v1.XBeanXmlBeanDefinitionReader
> > > > .<init>(XBeanXmlBeanDefinitionReader.java:58)
> > > > >         ... 28 more
> > > > >
> > > > > Somme one can help me please ?
> > > >
> > > > Thx.
> > > >
> > > >
> > >
> > >
> > > --
> > > -----
> > > When one of our products stops working, we'll blame another vendor
> > > within 24 hours.
> > >
> > >
> > ---------------------------------------------------------------------
> > > To unsubscribe from this list please visit:
> > >
> > >     http://xircles.codehaus.org/manage_email
> > >
> > >
> >
> >
> >
> > --
> > Mohammed El AMMARIA
>
>
> --
> -----
> When one of our products stops working, we'll blame another vendor
> within 24 hours.
>
> ---------------------------------------------------------------------
> To unsubscribe from this list please visit:
>
>     http://xircles.codehaus.org/manage_email
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list please visit:
>
>     http://xircles.codehaus.org/manage_email
>
>


--
-- Lee Meador
Sent from gmail. My real email address is lee AT leemeador.com




--
Mohammed El AMMARIA

Reply via email to