I think there is a disconnect between what code we're testing, then - when
I take the 2.1 distro, expand it, run update_install, run Ant to build the
samples, deploy on Tomcat, and run the WsnTestClient, there is a
server-side error because the consumer resource is not
created/initialized. There's nothing to recieve the WSN notification.
If I update the wsn-consumer muse.xml file so that the <resource-type/>
element has the 'use-router-persistence' attribute, like so:
<resource-type use-router-persistence="true">
then it works. The resource is created/initialized and receives the
notification. I did this by modifying the deployed WAR directly, but you
could also modify the one in /config and run 'ant clean war'.
Are you adding the persistence attribute in?
Dan
"Vinh Nguyen \(vinguye2\)" <[EMAIL PROTECTED]> wrote on 01/04/2007
01:50:42 PM:
> The wsn-consumer/producer example doesn't work in 2.1.0. I ran 'ant' on
the
> sample and deployed, but the errors are the same. The publisher can't
find
> the consumer EPR, even though the log shows the Muse initialized the
consumer
> resource properly on startup.
>
>
> -----Original Message-----
> From: Daniel Jemiolo [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, January 03, 2007 6:44 AM
> To: [email protected]
> Subject: Re: R: wsn-consumer in 2.1.0
>
> I'm confused - are you just trying to build the sample or are you
building a
> new project based on the sample? If you just want to build the sample
as-is,
> just run 'ant' on the wsn-consumer build.xml file. If you're creating a
new
> project based on the original wsn-consumer artifacts, attach your WSDL
to a
> new JIRA item and I will test it with the tooling if I can't find the
problem
> by looking at it.
>
> Thanks,
> Dan
>
>
>
> "Scandelli Francesco" <[EMAIL PROTECTED]> wrote on
01/03/2007 05:36:40 AM:
>
> > Hi Dan
> >
> >
> > I added the 'use-router-persistence' attribute to my consumer but the
> result
> > is still the same:
> >
> > Server returned HTTP response code: 500 for URL: http://localhost:
> > 8080/EventBrowser/services/consumer
> >
> >
>
org.apache.muse.core.AbstractResourceClient.invoke(AbstractResourceClient.java:279)
> >
>
org.apache.muse.core.AbstractResourceClient.invoke(AbstractResourceClient.java:235)
> > org.apache.muse.ws.notification.remote.NotificationConsumerClient.
> > notify(NotificationConsumerClient.java:95)
> > org.apache.muse.ws.notification.impl.SimpleSubscriptionManager.
> > publish(SimpleSubscriptionManager.java:205)
> > org.apache.muse.ws.notification.impl.SimpleNotificationProducer.
> > publish(SimpleNotificationProducer.java:434)
> >
> >
> >
> >
> >
> > As you suggested in a previous mail I tried also to regenerate my
> projects
> > (consumer and producer) starting from the WSDLs but I got the
> > following
> error
> > from wsdl2java:
> >
> > java.lang.RuntimeException: java.lang.NullPointerException
> > at
> org.apache.muse.tools.inspector.ResourceInspector.run(ResourceInspect
> > or.java:836)
> > at
> org.apache.muse.tools.generator.analyzer.SimpleAnalyzer.inspect(Simpl
> > eAnalyzer.java:392)
> > at
> org.apache.muse.tools.generator.analyzer.SimpleAnalyzer.analyze(Simpl
> > eAnalyzer.java:338)
> > at
> org.apache.muse.tools.generator.Wsdl2Java.run(Wsdl2Java.java:143)
> > at
> org.apache.muse.tools.generator.Wsdl2Java.main(Wsdl2Java.java:260)
> > Caused by: java.lang.NullPointerException
> > at com.ibm.wsdl.xml.WSDLReaderImpl.parseImport(Unknown Source)
> > at com.ibm.wsdl.xml.WSDLReaderImpl.parseDefinitions(Unknown
> Source)
> > at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
> > at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
> > at
> org.apache.muse.tools.inspector.ResourceInspector.run(ResourceInspect
> > or.java:831)
> > ... 4 more
> >
> > SEVERE: [ID = 'CodeGenFailed'] Code generation failed, see the
> > exception
> informa
> > tion below.
> >
> > An exception was caught: java.lang.NullPointerException
> >
> > The exception generated the following stacktrace:
> >
> > java.lang.RuntimeException: java.lang.NullPointerException
> > at
> org.apache.muse.tools.inspector.ResourceInspector.run(ResourceInspect
> > or.java:836)
> > at
> org.apache.muse.tools.generator.analyzer.SimpleAnalyzer.inspect(Simpl
> > eAnalyzer.java:392)
> > at
> org.apache.muse.tools.generator.analyzer.SimpleAnalyzer.analyze(Simpl
> > eAnalyzer.java:338)
> > at
> org.apache.muse.tools.generator.Wsdl2Java.run(Wsdl2Java.java:143)
> > at
> org.apache.muse.tools.generator.Wsdl2Java.main(Wsdl2Java.java:260)
> > Caused by: java.lang.NullPointerException
> > at com.ibm.wsdl.xml.WSDLReaderImpl.parseImport(Unknown Source)
> > at com.ibm.wsdl.xml.WSDLReaderImpl.parseDefinitions(Unknown
> Source)
> > at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
> > at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
> > at
> org.apache.muse.tools.inspector.ResourceInspector.run(ResourceInspect
> > or.java:831)
> > ... 4 more
> >
> > Note that the generation of artifacts works perfectly with wsdl2java
> from Muse2.0.
> > Do you have any suggestions about this problem? Perhaps I'm missing
> > some
> steps...
> >
> >
> > Thanks
> > Francesco
> >
> >
> > -----Messaggio originale-----
> > Da: Daniel Jemiolo [mailto:[EMAIL PROTECTED]
> > Inviato: mercoledì 3 gennaio 2007 0.50
> > A: [email protected]
> > Oggetto: Re: wsn-consumer in 2.1.0
> >
> > You are correct, there is an error with the wsn-consumer sample. I
> > have not gone back to see when it snuck in yet, but the problem is
simple:
> the
> > <resource-type/> in the wsn-consumer muse.xml file does not have the
> > use-router-persistence attribute. If you add the attribute like so:
> >
> > <resource-type use-router-persistence="true">
> >
> > everything works again. Sorry for that, I will fix it in SVN.
> >
> > Dan
> >
> >
> >
> > "Lloyd Smith" <[EMAIL PROTECTED]> wrote on 12/28/2006 05:44:13 PM:
> >
> > > The wsn-producer sample in 2.1.0 is throwing the following on the
> > Notify:
> > > [ID = 'DestinationUnreachable'] There is no resource available
> > > at
> > the given EPR:
> > > http://192.168.0.3:9090/wsn-consumer/services/consumer
> > >
> > > Different symptom than the one mentioned on the thread below. Can
> > someone
> > > confirm that copying the wsn-producer and wsn-consumer war's to a
> > Tomcat, then
> > > running the WsnTestClient with no code changes is the expected
setup?
> Or
> > is
> > > there code that needs to be added to set a resource ID on the
> > subscription?
> > >
> > > Also, is anyone running muse with the standalone version of axis2?
> What
> >
> > > config changes would be required? Thanks in advance.
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> > Internet Email Confidentiality Footer
> >
>
-----------------------------------------------------------------------------------------------------
> > La presente comunicazione, con le informazioni in essa contenute e
> > ogni documento o file allegato, e' rivolta unicamente alla/e persona/e
cui e'
>
> > indirizzata ed alle altre da questa autorizzata/e a riceverla. Se non
> siete i
> > destinatari/autorizzati siete avvisati che qualsiasi azione, copia,
> > comunicazione, divulgazione o simili basate sul contenuto di tali
> informazioni
> > e' vietata e potrebbe essere contro la legge (art. 616 C.P., D.Lgs n.
> 196/2003
> > Codice in materia di protezione dei dati personali). Se avete ricevuto
> questa
> > comunicazione per errore, vi preghiamo di darne immediata notizia al
> mittente
> > e di distruggere il messaggio originale e ogni file allegato senza
> > farne
> copia
> > alcuna o riprodurne in alcun modo il contenuto.
> >
> > This e-mail and its attachments are intended for the addressee(s) only
> and are
> > confidential and/or may contain legally privileged information. If you
> have
> > received this message by mistake or are not one of the addressees
> > above,
> you
> > may take no action based on it, and you may not copy or show it to
> anyone;
> > please reply to this e-mail and point out the error which has
occurred.
> >
>
-----------------------------------------------------------------------------------------------------
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]