Regarding this documentation part :

*                I also tried to modify WsrfTestClient in order to access 
a
different URL because the documentation
(http://ws.apache.org/muse/docs/2.2.0/tutorial/08-test-client.html) says
that for OSGi applications the URL format is different but the result is
still the same

In performing the J2ME MUSE port I did not have to change URI formats 
within the WsrfTestClient (or the wsn-consumer/producer clients).  This 
may be a documentation remnant. from 2.1.0 ?

Try using the default format  (i.e. 
"http://localhost:8080/wsrf/services/ServiceGroup";) and see if you receive 
the same " Network is unreachable" fault.

You can ignore bundle 16 (muse.osgi.soa.axis2) and any errors generated by 
it, it is not required for OSGi on J2ME.

regards,
Barry







"Scandelli Francesco" <[EMAIL PROTECTED]> 
03/08/2007 12:09 PM
Please respond to
[email protected]


To
<[email protected]>
cc

Subject
problem with Muse2.2.0RC wsrf sample deployed over OSGi/J2ME






Hi

 

Yesterday I downloaded Muse2.2.0 under the section 'latest build'.

My goal is trying out the sample wsrf in a OSGi over J2ME configuration
on a linux x86 operating system. I've followed the steps illustrated in
the online documentation of Muse 2.2.0 but when I start the OSGi
framework not all the bundles result to be active.  Here is the output
of ss command:

 

Framework is launched.

 

id      State       Bundle

0       ACTIVE      system.bundle_3.2.0.v20060601

1       ACTIVE      javax.activation.api_1.1.0

2       ACTIVE      javax.mail.api_1.4.0

3       ACTIVE      javax.saaj.api_1.3.0

4       ACTIVE      javax.stax.api_1.0.1

5       ACTIVE      org.apache.commons.httpclient_3.0.1

6       ACTIVE      org.apache.commons.logging_1.1.0_1.1.0

7       ACTIVE      org.apache.jakarta_log4j_1.2.8.v200606131651

8       ACTIVE      org.apache.ws.commons.schema_1.2.0

9       ACTIVE      wsdl4j_1.6.1

10      ACTIVE      org.apache.xalan_2.7.0

11      ACTIVE      org.apache.xerces_2.8.0.v200606131651

12      RESOLVED    [EMAIL PROTECTED]:file:wsrf/ [12]

13      ACTIVE      wstx_asl_3.0.1

14      ACTIVE      muse.core_2.2.0

15      ACTIVE      muse.osgi.core_2.2.0

16      INSTALLED   muse.osgi.soa.axis2_2.2.0

17      ACTIVE      muse.osgi.soa.core_2.2.0

18      ACTIVE      muse.osgi.soa.mini_2.2.0 

19      ACTIVE      muse.util.all_2.2.0

20      ACTIVE      muse.wsa.soap_2.2.0

21      ACTIVE      muse.wsdm.muws.adv.api_2.2.0

22      ACTIVE      muse.wsdm.muws.adv.impl_2.2.0

23      ACTIVE      muse.wsdm.muws.api_2.2.0

24      ACTIVE      muse.wsdm.muws.impl_2.2.0

25      ACTIVE      muse.wsdm.wef.api_2.2.0

26      ACTIVE      muse.wsdm.wef.impl_2.2.0

27      ACTIVE      muse.wsn.api_2.2.0

28      ACTIVE      muse.wsn.impl_2.2.0

29      ACTIVE      muse.wsrf.api_2.2.0

30      ACTIVE      muse.wsrf.impl_2.2.0

31      ACTIVE      muse.wsrf.rmd_2.2.0

32      ACTIVE      muse.wsx.api_2.2.0

33      ACTIVE      muse.wsx.impl_2.2.0

34      RESOLVED    org.eclipse.core.contenttype_3.2.0.v20060603

35      ACTIVE      org.eclipse.core.jobs_3.2.0.v20060603

36      RESOLVED    org.eclipse.core.runtime_3.2.0.v20060603

37      ACTIVE      org.eclipse.equinox.common_3.2.0.v20060603

38      ACTIVE      org.eclipse.equinox.http_1.0.0.v20060601a

39      ACTIVE      org.eclipse.equinox.preferences_3.2.0.v20060601

40      ACTIVE      org.eclipse.equinox.registry_3.2.0.v20060601

41      ACTIVE      org.eclipse.equinox.servlet.api_1.0.0.v20060601

42      ACTIVE      org.eclipse.osgi.services_3.1.100.v20060601

43      ACTIVE      org.eclipse.osgi.util_3.1.100.v20060601

 

 

The cause (take a look in the attached log) is that:

*                wsrf.jar, which is contained in the ant generated 
plugins/
folder, has been compiled with java 1.5 which seems to be not supported
by J2ME. Here is the exception:

 

!ENTRY [EMAIL PROTECTED]:file:wsrf/ 4 0 2004-05-26 02:03:05.687
!MESSAGE FrameworkEvent.ERROR
!STACK 0
org.osgi.framework.BundleException: The activator
org.apache.muse.test.wsrf.Activator for bundle null is invalid
 at
org.eclipse.osgi.framework.internal.core.AbstractBundle.loadBundleActiva
tor(AbstractBundle.java:141)
 at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleC
ontextImpl.java:966)
 at
org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHo
st.java:317)
 at
org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractB
undle.java:329)
 at
org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framewor
k.java:1037)
 at
org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles
(StartLevelManager.java:573)
 at
org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(Start
LevelManager.java:495)
 at
org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLev
el(StartLevelManager.java:275)
 at
org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent
(StartLevelManager.java:455)
 at
org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventMana
ger.java:189)
 at
org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventMa
nager.java:291)
Caused by: java.lang.UnsupportedClassVersionError:
(org/apache/muse/test/wsrf/Activator) bad major version at offset=6
 at java.lang.ClassLoader.defineClassImpl(Native Method)
 at java.lang.ClassLoader.defineClass(ClassLoader.java:226)
 at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.defineClass(Def
aultClassLoader.java:160)
 at
org.eclipse.osgi.baseadaptor.loader.ClasspathManager.defineClass(Classpa
thManager.java:498)
 at
org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findClassImpl(Class
pathManager.java:468)
 at
org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClassImpl(
ClasspathManager.java:427)
 at
org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(Clas
spathManager.java:410)
 at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(
DefaultClassLoader.java:188)
 at
org.eclipse.osgi.framework.internal.core.BundleLoader.findLocalClass(Bun
dleLoader.java:339)
 at
org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLo
ader.java:391)
 at
org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLo
ader.java:352)
 at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(Defau
ltClassLoader.java:83)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:563)
 at
org.eclipse.osgi.framework.internal.core.BundleLoader.loadClass(BundleLo
ader.java:276)
 at
org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost
.java:227)
 at
org.eclipse.osgi.framework.internal.core.AbstractBundle.loadBundleActiva
tor(AbstractBundle.java:134)
 ... 10 more
Root exception:
java.lang.UnsupportedClassVersionError:
(org/apache/muse/test/wsrf/Activator) bad major version at offset=6
 at java.lang.ClassLoader.defineClassImpl(Native Method)
 at java.lang.ClassLoader.defineClass(ClassLoader.java:226)
 at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.defineClass(Def
aultClassLoader.java:160)
 at
org.eclipse.osgi.baseadaptor.loader.ClasspathManager.defineClass(Classpa
thManager.java:498)
 at
org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findClassImpl(Class
pathManager.java:468)
 at
org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClassImpl(
ClasspathManager.java:427)
 at
org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(Clas
spathManager.java:410)
 at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(
DefaultClassLoader.java:188)
 at
org.eclipse.osgi.framework.internal.core.BundleLoader.findLocalClass(Bun
dleLoader.java:339)
 at
org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLo
ader.java:391)
 at
org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLo
ader.java:352)
 at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(Defau
ltClassLoader.java:83)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:563)
 at
org.eclipse.osgi.framework.internal.core.BundleLoader.loadClass(BundleLo
ader.java:276)
 at
org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost
.java:227)
 at
org.eclipse.osgi.framework.internal.core.AbstractBundle.loadBundleActiva
tor(AbstractBundle.java:134)
 at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleC
ontextImpl.java:966)
 at
org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHo
st.java:317)
 at
org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractB
undle.java:329)
 at
org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framewor
k.java:1037)
 at
org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles
(StartLevelManager.java:573)
 at
org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(Start
LevelManager.java:495)
 at
org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLev
el(StartLevelManager.java:275)
 at
org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent
(StartLevelManager.java:455)
 at
org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventMana
ger.java:189)
 at
org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventMa
nager.java:291)

 

        In fact, when I launch OSGi over JRE 1.5 the problem disappears
and boundles 12, 34, 36 become active. 

 

*                In MANIFEST.MF of boundle 16 it is missing the 
constraint:
Import-Package: org.apache.axiom.om; version="1.0.0" (as suggested by
the log). This patch makes bundle 16 active 

 

 

 

Another problem arises when I try to test the service using
WsrfTestClient. In fact in this case I get the following error:

 

WsResource

Pinging Muse to initialize the endpoint...

org.apache.muse.ws.addressing.soap.SoapFault: Network is unreachable

        at
org.apache.muse.core.AbstractResourceClient.invoke(AbstractResourceCl

ient.java:254)

        at
org.apache.muse.ws.resource.remote.WsResourceClient.getResourceProper

tyDocument(WsResourceClient.java:142)

        at WsrfTestClient.main(WsrfTestClient.java:156)

 

Note that:

*                I also tried to modify WsrfTestClient in order to access 
a
different URL because the documentation
(http://ws.apache.org/muse/docs/2.2.0/tutorial/08-test-client.html) says
that for OSGi applications the URL format is different but the result is
still the same
*                It's not a network problem because, using netstat,  I've 
seen
that actually there's a java socket listening on localhost:8080. In fact
launching a 'telnet localhost 8080' and typing random characters the
OSGi console prints an exception

 

 

Any idea about what is going wrong?

 

 

Thanks

Francesco

 

 


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. 
-----------------------------------------------------------------------------------------------------


Reply via email to