Willem,
The log messages from RSFB are a bit confusing. Notice that the first set
ends with a publish address and the second with a destination address.
I'll go read the code, but now that I'm awake I can't imagine how the local
transport would sneak across webapp class loader boundaries if no code is
loaded into the system class loader.
--benson
On Thu, Apr 10, 2008 at 7:34 AM, Benson Margulies <[EMAIL PROTECTED]>
wrote:
> I see your point. Maybe I made a cut-and-paste error and set up the
> service factory instead of the proxy factory.
>
>
> On Thu, Apr 10, 2008 at 4:14 AM, Willem Jiang <[EMAIL PROTECTED]>
> wrote:
>
> > Hi Benson,
> >
> > I am confused about the Webapp#2's log.
> >
> > [java] Apr 9, 2008 9:11:35 PM
> > org.apache.cxf.transport.local.LocalTransportFactory createDestination
> > [java] INFO: Creating destination for address
> > local://RosetteTextAnalyzer
> >
> > It looks you create the same local transport destination in Webapp#2.
> >
> > AFAIK , if your two application are in the same JVM , the local
> > transport should work :)
> >
> >
> > Willem
> >
> >
> >
> >
> > Benson Margulies wrote:
> >
> > > Webapp #1 sets up a service, with an endpoint on the local transport.
> > >
> > > [java] INFO: Creating Service {urn:basistech.com:
> > > rta}RosetteTextAnalyzer
> > > from class com.basistech.rta.ws.RosetteTextAnalyzer
> > > [java] Apr 9, 2008 9:10:55 PM org.apache.cxf.endpoint.ServerImpl
> > > initDestination
> > > [java] INFO: Setting the server's publish address to be
> > > local://RosetteTextAnalyzer
> > >
> > > Webapp #2 sets up a client proxy, trying to talk to the same endpoint.
> > > Unhappiness results. First, some diagnostic complaints from the RSFB
> > > while
> > > creating the proxy (this is all JAXWS+JAXB) then we get the complaint
> > > that
> > > no-one and nothing is listening. Will the local transport in fact work
> > > across webapps? For that matter, are the complaints because all I've
> > > given
> > > the proxy factory to work on is an interface, and it doesn't have
> > > param
> > > names? I've been working inside CXF for so long that I'm pretty lost
> > > when I
> > > just try to use it.
> > >
> > > [java] Apr 9, 2008 9:11:34 PM
> > > org.apache.cxf.service.factory.ReflectionServiceFactoryBean
> > > buildServiceFromClass
> > > [java] INFO: Creating Service
> > > {urn:basistech.com:rta}RosetteTextAnalyzerService
> > > from class com.basistech.rta.RosetteTextAnalyzer
> > > [java] Apr 9, 2008 9:11:35 PM
> > > org.apache.cxf.service.factory.ReflectionServiceFactoryBean
> > > buildServiceFromClass
> > > [java] INFO: {urn:basistech.com:rta:v1.0}tokenResults part type
> > > QName
> > > null.
> > > [java] {urn:basistech.com:rta:v1.0}languages part type QName null.
> > > [java] {urn:basistech.com:rta:v1.0}matches part type QName null.
> > > [java] {urn:basistech.com:rta:v1.0}glossaries part type QName
> > > null.
> > > [java]
> > > [java] Apr 9, 2008 9:11:35 PM
> > > org.apache.cxf.transport.local.LocalTransportFactory createDestination
> > > [java] INFO: Creating destination for address
> > > local://RosetteTextAnalyzer
> > > [java] Apr 9, 2008 9:11:35 PM
> > > org.apache.cxf.phase.PhaseInterceptorChain doIntercept
> > > [java] INFO: Interceptor has thrown exception, unwinding now
> > > [java] java.lang.IllegalStateException: Local destination does not
> > > have
> > > a MessageObserver on address local://RosetteTextAnalyzer
> > >
> > >
> > >
> >
> >
>