You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@felix.apache.org by Dhiego Abrantes de Oliveira Martins <dh...@gmail.com> on 2013/01/08 00:50:10 UTC

Error when start felix/ipojo dosgi

Hi all,

Im starting with iPOJO DOSGi (Apache CXF) and when I'm start the
felix/ipojo (java -jar bin/felix.jar server), I get this error:


The system is configured to use HttpService port 8080. However this port is
already in use.
felix.fileinstall.poll  (ms)   2000
felix.fileinstall.dir            /Applications/Development/felix/./load
felix.fileinstall.debug          -1
felix.fileinstall.bundles.new.start          true
Jan 07, 2013 8:45:18 PM org.apache.cxf.dosgi.discovery.local.Activator start
INFO: Registering LocalDiscoveryService service object
Jan 07, 2013 8:45:18 PM org.apache.cxf.dosgi.dsw.OsgiUtils readIntentMap
WARNING: Intent map load failed:
java.lang.NoClassDefFoundError: org/xml/sax/EntityResolver
at org.apache.cxf.dosgi.dsw.OsgiUtils.readIntentMap(OsgiUtils.java:418)
 at org.apache.cxf.dosgi.dsw.OsgiUtils.getIntentMap(OsgiUtils.java:397)
at org.apache.cxf.dosgi.dsw.Activator.getIntentMap(Activator.java:109)
 at
org.apache.cxf.dosgi.dsw.Activator.registerDistributionProviderService(Activator.java:92)
at org.apache.cxf.dosgi.dsw.Activator.start(Activator.java:74)
 at
org.apache.cxf.dosgi.singlebundle.AggregatedActivator.startEmbeddedActivators(AggregatedActivator.java:115)
at
org.apache.cxf.dosgi.singlebundle.AggregatedActivator.start(AggregatedActivator.java:46)
 at
org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:661)
at org.apache.felix.framework.Felix.activateBundle(Felix.java:1760)
 at org.apache.felix.framework.Felix.startBundle(Felix.java:1682)
at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1128)
 at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:264)
at java.lang.Thread.run(Thread.java:722)
Caused by: java.lang.ClassNotFoundException: org.xml.sax.EntityResolver
at
org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:814)
 at org.apache.felix.framework.ModuleImpl.access$100(ModuleImpl.java:61)
at
org.apache.felix.framework.ModuleImpl$ModuleClassLoader.loadClass(ModuleImpl.java:1733)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
... 13 more

How can I fix it?

Thanks!

Dhiego

Re: Error when start felix/ipojo dosgi

Posted by Dhiego Abrantes de Oliveira Martins <dh...@dhiegoabrantes.com>.
Hi,

It works! I just updated felix version from 2.x to 4.x.
Look like the felix version was the problem... Now, I'll check if iPOJO is
running normally


Abs,
__
*Dhiego** **Abrantes** de Oliveira Martins*
*Computer Science, M.Sc. Candidate at UFPE*
www.dhiegoabrantes.com
+55 83 9999.1081
***Any fool can write code that a computer can understand. Good programmers
write code that humans can understand*. (Martin Fowler)


2013/1/8 Dhiego Abrantes de Oliveira Martins <dh...@dhiegoabrantes.com>

> I got dosgi-tutorial.zip<http://people.apache.org/~clement/ipojo/tutorials/dosgi/dosgi-tutorial.zip> and
> before any change in container I tried to start it. I dont do any change. I
> just download the zip file and try to start it as indicated "*java -jar
> bin/felix.jar server*".
>
> I got this error:
>
> MacbookPro-Dhiego-Abrantes:felix dhiego$ java -jar bin/felix.jar
>
> Welcome to Felix
> ================
> HttpService using port: 8080
> felix.fileinstall.poll  (ms)   2000
> felix.fileinstall.dir
>  /Users/dhiego/Desktop/dosgi-tutorial/felix/./load
> felix.fileinstall.debug          -1
> felix.fileinstall.bundles.new.start          true
> Jan 08, 2013 10:08:16 PM org.apache.cxf.dosgi.discovery.local.Activator
> start
> INFO: Registering LocalDiscoveryService service object
> Jan 08, 2013 10:08:16 PM org.apache.cxf.dosgi.dsw.OsgiUtils readIntentMap
> WARNING: Intent map load failed:
> java.lang.NoClassDefFoundError: org/xml/sax/EntityResolver
> at org.apache.cxf.dosgi.dsw.OsgiUtils.readIntentMap(OsgiUtils.java:418)
>  at org.apache.cxf.dosgi.dsw.OsgiUtils.getIntentMap(OsgiUtils.java:397)
> at org.apache.cxf.dosgi.dsw.Activator.getIntentMap(Activator.java:109)
>  at
> org.apache.cxf.dosgi.dsw.Activator.registerDistributionProviderService(Activator.java:92)
> at org.apache.cxf.dosgi.dsw.Activator.start(Activator.java:74)
>  at
> org.apache.cxf.dosgi.singlebundle.AggregatedActivator.startEmbeddedActivators(AggregatedActivator.java:115)
> at
> org.apache.cxf.dosgi.singlebundle.AggregatedActivator.start(AggregatedActivator.java:46)
>  at
> org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:661)
> at org.apache.felix.framework.Felix.activateBundle(Felix.java:1760)
>  at org.apache.felix.framework.Felix.startBundle(Felix.java:1682)
> at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1128)
>  at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:264)
> at java.lang.Thread.run(Thread.java:722)
> Caused by: java.lang.ClassNotFoundException: org.xml.sax.EntityResolver
> at
> org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:814)
>  at org.apache.felix.framework.ModuleImpl.access$100(ModuleImpl.java:61)
> at
> org.apache.felix.framework.ModuleImpl$ModuleClassLoader.loadClass(ModuleImpl.java:1733)
>  at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
> ... 13 more
>
> Jan 08, 2013 10:08:16 PM org.apache.cxf.dosgi.dsw.qos.IntentMap setIntents
> INFO: Injected intents: {}
> Jan 08, 2013 10:08:16 PM
> org.apache.cxf.dosgi.discovery.local.LocalDiscoveryService addTracker
> INFO: adding tracker:
> org.apache.cxf.dosgi.dsw.hooks.AbstractClientHook$DiscoveryCallback@70efdf29collection: null registered against prop:
> osgi.remote.discovery.interest.interfaces
> Jan 08, 2013 10:08:16 PM
> org.apache.cxf.dosgi.discovery.local.LocalDiscoveryService addTracker
> INFO: adding tracker:
> org.apache.cxf.dosgi.dsw.hooks.AbstractClientHook$DiscoveryCallback@70efdf29collection: null registered against prop:
> osgi.remote.discovery.interest.filters
> Jan 08, 2013 10:08:16 PM
> org.apache.cxf.dosgi.discovery.local.LocalDiscoveryService triggerCallbacks
> INFO: nothing to search for matches to trigger callbacks with delta: []
> Jan 08, 2013 10:08:16 PM
> org.apache.cxf.dosgi.discovery.local.LocalDiscoveryService triggerCallbacks
> INFO: nothing to search for matches to trigger callbacks with delta: []
> Jan 08, 2013 10:08:16 PM org.apache.cxf.dosgi.dsw.hooks.AbstractClientHook
> lookupDiscoveryService
> INFO: lookup discovery service: interface: null filter:
> (|(service.exported.interfaces=*)(osgi.remote.interfaces=*))
> Jan 08, 2013 10:08:16 PM
> org.apache.cxf.dosgi.discovery.local.LocalDiscoveryService updateTracker
> INFO: updating tracker:
> org.apache.cxf.dosgi.dsw.hooks.AbstractClientHook$DiscoveryCallback@70efdf29
> Jan 08, 2013 10:08:16 PM
> org.apache.cxf.dosgi.discovery.local.LocalDiscoveryService addTracker
> INFO: adding tracker:
> org.apache.cxf.dosgi.dsw.hooks.AbstractClientHook$DiscoveryCallback@70efdf29collection: null registered against prop:
> osgi.remote.discovery.interest.interfaces
> Jan 08, 2013 10:08:16 PM
> org.apache.cxf.dosgi.discovery.local.LocalDiscoveryService addTracker
> INFO: adding tracker:
> org.apache.cxf.dosgi.dsw.hooks.AbstractClientHook$DiscoveryCallback@70efdf29collection: [(|(service.exported.interfaces=*)(osgi.remote.interfaces=*))]
> registered against prop: osgi.remote.discovery.interest.filters
> Jan 08, 2013 10:08:16 PM
> org.apache.cxf.dosgi.discovery.local.LocalDiscoveryService triggerCallbacks
> INFO: nothing to search for matches to trigger callbacks with delta: []
> Jan 08, 2013 10:08:16 PM
> org.apache.cxf.dosgi.discovery.local.LocalDiscoveryService triggerCallbacks
> INFO: nothing to search for matches to trigger callbacks with delta:
> [(|(service.exported.interfaces=*)(osgi.remote.interfaces=*))]
> Jan 08, 2013 10:08:16 PM org.apache.cxf.dosgi.dsw.hooks.AbstractClientHook
> lookupDiscoveryService
> INFO: lookup discovery service: interface:
> org.apache.cxf.dosgi.dsw.decorator.ServiceDecorator filter: null
> Jan 08, 2013 10:08:16 PM
> org.apache.cxf.dosgi.discovery.local.LocalDiscoveryService updateTracker
> INFO: updating tracker:
> org.apache.cxf.dosgi.dsw.hooks.AbstractClientHook$DiscoveryCallback@70efdf29
> Jan 08, 2013 10:08:16 PM
> org.apache.cxf.dosgi.discovery.local.LocalDiscoveryService addTracker
> INFO: adding tracker:
> org.apache.cxf.dosgi.dsw.hooks.AbstractClientHook$DiscoveryCallback@70efdf29collection: [org.apache.cxf.dosgi.dsw.decorator.ServiceDecorator]
> registered against prop: osgi.remote.discovery.interest.interfaces
> Jan 08, 2013 10:08:16 PM
> org.apache.cxf.dosgi.discovery.local.LocalDiscoveryService addTracker
> INFO: adding tracker:
> org.apache.cxf.dosgi.dsw.hooks.AbstractClientHook$DiscoveryCallback@70efdf29collection: [(|(service.exported.interfaces=*)(osgi.remote.interfaces=*))]
> registered against prop: osgi.remote.discovery.interest.filters
> Jan 08, 2013 10:08:16 PM
> org.apache.cxf.dosgi.discovery.local.LocalDiscoveryService triggerCallbacks
> INFO: nothing to search for matches to trigger callbacks with delta:
> [org.apache.cxf.dosgi.dsw.decorator.ServiceDecorator]
> Jan 08, 2013 10:08:16 PM
> org.apache.cxf.dosgi.discovery.local.LocalDiscoveryService triggerCallbacks
> INFO: nothing to search for matches to trigger callbacks with delta: []
> java.lang.NoClassDefFoundError: org/xml/sax/EntityResolver
>  at java.lang.ClassLoader.defineClass1(Native Method)
> at java.lang.ClassLoader.defineClass(ClassLoader.java:791)
>  at
> org.apache.felix.framework.ModuleImpl$ModuleClassLoader.findClass(ModuleImpl.java:1872)
> at
> org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:758)
>  at org.apache.felix.framework.ModuleImpl.access$100(ModuleImpl.java:61)
> at
> org.apache.felix.framework.ModuleImpl$ModuleClassLoader.loadClass(ModuleImpl.java:1733)
>  at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
> at
> org.springframework.osgi.extender.internal.support.NamespaceManager.<init>(NamespaceManager.java:83)
>  at
> org.springframework.osgi.extender.internal.activator.ContextLoaderListener.start(ContextLoaderListener.java:359)
> at
> org.apache.cxf.dosgi.singlebundle.AggregatedActivator.startEmbeddedActivators(AggregatedActivator.java:115)
>  at
> org.apache.cxf.dosgi.singlebundle.AggregatedActivator.start(AggregatedActivator.java:46)
> at
> org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:661)
>  at org.apache.felix.framework.Felix.activateBundle(Felix.java:1760)
> at org.apache.felix.framework.Felix.startBundle(Felix.java:1682)
>  at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1128)
> at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:264)
>  at java.lang.Thread.run(Thread.java:722)
> Caused by: java.lang.ClassNotFoundException: org.xml.sax.EntityResolver
> at
> org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:814)
>  at org.apache.felix.framework.ModuleImpl.access$100(ModuleImpl.java:61)
> at
> org.apache.felix.framework.ModuleImpl$ModuleClassLoader.loadClass(ModuleImpl.java:1733)
>  at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
> ... 17 more
>
>
> Best regards!
>
>
> Abs,
> __
>
> *Dhiego** **Abrantes** de Oliveira Martins*
> *Computer Science, M.Sc. Candidate at UFPE*
> www.dhiegoabrantes.com
> +55 83 9999.1081
> ***Any fool can write code that a computer can understand. Good
> programmers write code that humans can understand*. (Martin Fowler)
>
>
> 2013/1/8 Dhiego Abrantes de Oliveira Martins <dh...@dhiegoabrantes.com>
>
>> Thank you, Felix !
>>
>> Clement, I'm using:
>>
>> java version "1.7.0_10-ea"
>> Java(TM) SE Runtime Environment (build 1.7.0_10-ea-b15)
>> Java HotSpot(TM) 64-Bit Server VM (build 23.6-b04, mixed mode)
>>
>>
>

Re: Error when start felix/ipojo dosgi

Posted by Dhiego Abrantes de Oliveira Martins <dh...@dhiegoabrantes.com>.
I got dosgi-tutorial.zip<http://people.apache.org/~clement/ipojo/tutorials/dosgi/dosgi-tutorial.zip>
and
before any change in container I tried to start it. I dont do any change. I
just download the zip file and try to start it as indicated "*java -jar
bin/felix.jar server*".

I got this error:

MacbookPro-Dhiego-Abrantes:felix dhiego$ java -jar bin/felix.jar

Welcome to Felix
================
HttpService using port: 8080
felix.fileinstall.poll  (ms)   2000
felix.fileinstall.dir
 /Users/dhiego/Desktop/dosgi-tutorial/felix/./load
felix.fileinstall.debug          -1
felix.fileinstall.bundles.new.start          true
Jan 08, 2013 10:08:16 PM org.apache.cxf.dosgi.discovery.local.Activator
start
INFO: Registering LocalDiscoveryService service object
Jan 08, 2013 10:08:16 PM org.apache.cxf.dosgi.dsw.OsgiUtils readIntentMap
WARNING: Intent map load failed:
java.lang.NoClassDefFoundError: org/xml/sax/EntityResolver
at org.apache.cxf.dosgi.dsw.OsgiUtils.readIntentMap(OsgiUtils.java:418)
 at org.apache.cxf.dosgi.dsw.OsgiUtils.getIntentMap(OsgiUtils.java:397)
at org.apache.cxf.dosgi.dsw.Activator.getIntentMap(Activator.java:109)
 at
org.apache.cxf.dosgi.dsw.Activator.registerDistributionProviderService(Activator.java:92)
at org.apache.cxf.dosgi.dsw.Activator.start(Activator.java:74)
 at
org.apache.cxf.dosgi.singlebundle.AggregatedActivator.startEmbeddedActivators(AggregatedActivator.java:115)
at
org.apache.cxf.dosgi.singlebundle.AggregatedActivator.start(AggregatedActivator.java:46)
 at
org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:661)
at org.apache.felix.framework.Felix.activateBundle(Felix.java:1760)
 at org.apache.felix.framework.Felix.startBundle(Felix.java:1682)
at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1128)
 at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:264)
at java.lang.Thread.run(Thread.java:722)
Caused by: java.lang.ClassNotFoundException: org.xml.sax.EntityResolver
at
org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:814)
 at org.apache.felix.framework.ModuleImpl.access$100(ModuleImpl.java:61)
at
org.apache.felix.framework.ModuleImpl$ModuleClassLoader.loadClass(ModuleImpl.java:1733)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
... 13 more

Jan 08, 2013 10:08:16 PM org.apache.cxf.dosgi.dsw.qos.IntentMap setIntents
INFO: Injected intents: {}
Jan 08, 2013 10:08:16 PM
org.apache.cxf.dosgi.discovery.local.LocalDiscoveryService addTracker
INFO: adding tracker:
org.apache.cxf.dosgi.dsw.hooks.AbstractClientHook$DiscoveryCallback@70efdf29collection:
null registered against prop:
osgi.remote.discovery.interest.interfaces
Jan 08, 2013 10:08:16 PM
org.apache.cxf.dosgi.discovery.local.LocalDiscoveryService addTracker
INFO: adding tracker:
org.apache.cxf.dosgi.dsw.hooks.AbstractClientHook$DiscoveryCallback@70efdf29collection:
null registered against prop:
osgi.remote.discovery.interest.filters
Jan 08, 2013 10:08:16 PM
org.apache.cxf.dosgi.discovery.local.LocalDiscoveryService triggerCallbacks
INFO: nothing to search for matches to trigger callbacks with delta: []
Jan 08, 2013 10:08:16 PM
org.apache.cxf.dosgi.discovery.local.LocalDiscoveryService triggerCallbacks
INFO: nothing to search for matches to trigger callbacks with delta: []
Jan 08, 2013 10:08:16 PM org.apache.cxf.dosgi.dsw.hooks.AbstractClientHook
lookupDiscoveryService
INFO: lookup discovery service: interface: null filter:
(|(service.exported.interfaces=*)(osgi.remote.interfaces=*))
Jan 08, 2013 10:08:16 PM
org.apache.cxf.dosgi.discovery.local.LocalDiscoveryService updateTracker
INFO: updating tracker:
org.apache.cxf.dosgi.dsw.hooks.AbstractClientHook$DiscoveryCallback@70efdf29
Jan 08, 2013 10:08:16 PM
org.apache.cxf.dosgi.discovery.local.LocalDiscoveryService addTracker
INFO: adding tracker:
org.apache.cxf.dosgi.dsw.hooks.AbstractClientHook$DiscoveryCallback@70efdf29collection:
null registered against prop:
osgi.remote.discovery.interest.interfaces
Jan 08, 2013 10:08:16 PM
org.apache.cxf.dosgi.discovery.local.LocalDiscoveryService addTracker
INFO: adding tracker:
org.apache.cxf.dosgi.dsw.hooks.AbstractClientHook$DiscoveryCallback@70efdf29collection:
[(|(service.exported.interfaces=*)(osgi.remote.interfaces=*))]
registered against prop: osgi.remote.discovery.interest.filters
Jan 08, 2013 10:08:16 PM
org.apache.cxf.dosgi.discovery.local.LocalDiscoveryService triggerCallbacks
INFO: nothing to search for matches to trigger callbacks with delta: []
Jan 08, 2013 10:08:16 PM
org.apache.cxf.dosgi.discovery.local.LocalDiscoveryService triggerCallbacks
INFO: nothing to search for matches to trigger callbacks with delta:
[(|(service.exported.interfaces=*)(osgi.remote.interfaces=*))]
Jan 08, 2013 10:08:16 PM org.apache.cxf.dosgi.dsw.hooks.AbstractClientHook
lookupDiscoveryService
INFO: lookup discovery service: interface:
org.apache.cxf.dosgi.dsw.decorator.ServiceDecorator filter: null
Jan 08, 2013 10:08:16 PM
org.apache.cxf.dosgi.discovery.local.LocalDiscoveryService updateTracker
INFO: updating tracker:
org.apache.cxf.dosgi.dsw.hooks.AbstractClientHook$DiscoveryCallback@70efdf29
Jan 08, 2013 10:08:16 PM
org.apache.cxf.dosgi.discovery.local.LocalDiscoveryService addTracker
INFO: adding tracker:
org.apache.cxf.dosgi.dsw.hooks.AbstractClientHook$DiscoveryCallback@70efdf29collection:
[org.apache.cxf.dosgi.dsw.decorator.ServiceDecorator]
registered against prop: osgi.remote.discovery.interest.interfaces
Jan 08, 2013 10:08:16 PM
org.apache.cxf.dosgi.discovery.local.LocalDiscoveryService addTracker
INFO: adding tracker:
org.apache.cxf.dosgi.dsw.hooks.AbstractClientHook$DiscoveryCallback@70efdf29collection:
[(|(service.exported.interfaces=*)(osgi.remote.interfaces=*))]
registered against prop: osgi.remote.discovery.interest.filters
Jan 08, 2013 10:08:16 PM
org.apache.cxf.dosgi.discovery.local.LocalDiscoveryService triggerCallbacks
INFO: nothing to search for matches to trigger callbacks with delta:
[org.apache.cxf.dosgi.dsw.decorator.ServiceDecorator]
Jan 08, 2013 10:08:16 PM
org.apache.cxf.dosgi.discovery.local.LocalDiscoveryService triggerCallbacks
INFO: nothing to search for matches to trigger callbacks with delta: []
java.lang.NoClassDefFoundError: org/xml/sax/EntityResolver
 at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:791)
 at
org.apache.felix.framework.ModuleImpl$ModuleClassLoader.findClass(ModuleImpl.java:1872)
at
org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:758)
 at org.apache.felix.framework.ModuleImpl.access$100(ModuleImpl.java:61)
at
org.apache.felix.framework.ModuleImpl$ModuleClassLoader.loadClass(ModuleImpl.java:1733)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
at
org.springframework.osgi.extender.internal.support.NamespaceManager.<init>(NamespaceManager.java:83)
 at
org.springframework.osgi.extender.internal.activator.ContextLoaderListener.start(ContextLoaderListener.java:359)
at
org.apache.cxf.dosgi.singlebundle.AggregatedActivator.startEmbeddedActivators(AggregatedActivator.java:115)
 at
org.apache.cxf.dosgi.singlebundle.AggregatedActivator.start(AggregatedActivator.java:46)
at
org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:661)
 at org.apache.felix.framework.Felix.activateBundle(Felix.java:1760)
at org.apache.felix.framework.Felix.startBundle(Felix.java:1682)
 at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1128)
at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:264)
 at java.lang.Thread.run(Thread.java:722)
Caused by: java.lang.ClassNotFoundException: org.xml.sax.EntityResolver
at
org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:814)
 at org.apache.felix.framework.ModuleImpl.access$100(ModuleImpl.java:61)
at
org.apache.felix.framework.ModuleImpl$ModuleClassLoader.loadClass(ModuleImpl.java:1733)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
... 17 more


Best regards!


Abs,
__
*Dhiego** **Abrantes** de Oliveira Martins*
*Computer Science, M.Sc. Candidate at UFPE*
www.dhiegoabrantes.com
+55 83 9999.1081
***Any fool can write code that a computer can understand. Good programmers
write code that humans can understand*. (Martin Fowler)


2013/1/8 Dhiego Abrantes de Oliveira Martins <dh...@dhiegoabrantes.com>

> Thank you, Felix !
>
> Clement, I'm using:
>
> java version "1.7.0_10-ea"
> Java(TM) SE Runtime Environment (build 1.7.0_10-ea-b15)
> Java HotSpot(TM) 64-Bit Server VM (build 23.6-b04, mixed mode)
>
>

Re: Error when start felix/ipojo dosgi

Posted by Dhiego Abrantes de Oliveira Martins <dh...@dhiegoabrantes.com>.
Thank you, Felix !

Clement, I'm using:

java version "1.7.0_10-ea"
Java(TM) SE Runtime Environment (build 1.7.0_10-ea-b15)
Java HotSpot(TM) 64-Bit Server VM (build 23.6-b04, mixed mode)

Re: Error when start felix/ipojo dosgi

Posted by clement escoffier <cl...@gmail.com>.
Hi, just a quick question as we reported me more or less the same issue
recently, are you using openjdk ?

Regards,

Clement

2013/1/8 Felix Meschberger <fm...@adobe.com>

> Hi,
>
> Am 08.01.2013 um 00:50 schrieb Dhiego Abrantes de Oliveira Martins:
>
> > Hi all,
> >
> > Im starting with iPOJO DOSGi (Apache CXF) and when I'm start the
> > felix/ipojo (java -jar bin/felix.jar server), I get this error:
> >
> >
> > The system is configured to use HttpService port 8080. However this port
> is
> > already in use.
>
> This looks like there is already some process using port 8080. You might
> want to reconfigure this instance to use a different port.
>
> > felix.fileinstall.poll  (ms)   2000
> > felix.fileinstall.dir            /Applications/Development/felix/./load
> > felix.fileinstall.debug          -1
> > felix.fileinstall.bundles.new.start          true
> > Jan 07, 2013 8:45:18 PM org.apache.cxf.dosgi.discovery.local.Activator
> start
> > INFO: Registering LocalDiscoveryService service object
> > Jan 07, 2013 8:45:18 PM org.apache.cxf.dosgi.dsw.OsgiUtils readIntentMap
> > WARNING: Intent map load failed:
> > java.lang.NoClassDefFoundError: org/xml/sax/EntityResolver
>
> Looks like this class is not imported by the bundle (it may be optionally
> imported but not available at resolution time or dynamically imported and
> not available or not imported at all and not available through boot class
> delegation).
>
> You will have to check the configuration (Import-Package and
> DynamicImport-Package manifest headers) and status of the respective bundle
> to find out.
>
> To me this looks like a bug in the bundle manifest with a missing or
> wrongly configured  import statement for the org.xml.sax package.
>
> Regards
> Felix
>
> > at org.apache.cxf.dosgi.dsw.OsgiUtils.readIntentMap(OsgiUtils.java:418)
> > at org.apache.cxf.dosgi.dsw.OsgiUtils.getIntentMap(OsgiUtils.java:397)
> > at org.apache.cxf.dosgi.dsw.Activator.getIntentMap(Activator.java:109)
> > at
> >
> org.apache.cxf.dosgi.dsw.Activator.registerDistributionProviderService(Activator.java:92)
> > at org.apache.cxf.dosgi.dsw.Activator.start(Activator.java:74)
> > at
> >
> org.apache.cxf.dosgi.singlebundle.AggregatedActivator.startEmbeddedActivators(AggregatedActivator.java:115)
> > at
> >
> org.apache.cxf.dosgi.singlebundle.AggregatedActivator.start(AggregatedActivator.java:46)
> > at
> >
> org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:661)
> > at org.apache.felix.framework.Felix.activateBundle(Felix.java:1760)
> > at org.apache.felix.framework.Felix.startBundle(Felix.java:1682)
> > at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1128)
> > at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:264)
> > at java.lang.Thread.run(Thread.java:722)
> > Caused by: java.lang.ClassNotFoundException: org.xml.sax.EntityResolver
> > at
> >
> org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:814)
> > at org.apache.felix.framework.ModuleImpl.access$100(ModuleImpl.java:61)
> > at
> >
> org.apache.felix.framework.ModuleImpl$ModuleClassLoader.loadClass(ModuleImpl.java:1733)
> > at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
> > ... 13 more
> >
> > How can I fix it?
> >
> > Thanks!
> >
> > Dhiego
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
>
>

Re: Error when start felix/ipojo dosgi

Posted by Felix Meschberger <fm...@adobe.com>.
Hi,

Am 08.01.2013 um 00:50 schrieb Dhiego Abrantes de Oliveira Martins:

> Hi all,
> 
> Im starting with iPOJO DOSGi (Apache CXF) and when I'm start the
> felix/ipojo (java -jar bin/felix.jar server), I get this error:
> 
> 
> The system is configured to use HttpService port 8080. However this port is
> already in use.

This looks like there is already some process using port 8080. You might want to reconfigure this instance to use a different port.

> felix.fileinstall.poll  (ms)   2000
> felix.fileinstall.dir            /Applications/Development/felix/./load
> felix.fileinstall.debug          -1
> felix.fileinstall.bundles.new.start          true
> Jan 07, 2013 8:45:18 PM org.apache.cxf.dosgi.discovery.local.Activator start
> INFO: Registering LocalDiscoveryService service object
> Jan 07, 2013 8:45:18 PM org.apache.cxf.dosgi.dsw.OsgiUtils readIntentMap
> WARNING: Intent map load failed:
> java.lang.NoClassDefFoundError: org/xml/sax/EntityResolver

Looks like this class is not imported by the bundle (it may be optionally imported but not available at resolution time or dynamically imported and not available or not imported at all and not available through boot class delegation).

You will have to check the configuration (Import-Package and DynamicImport-Package manifest headers) and status of the respective bundle to find out.

To me this looks like a bug in the bundle manifest with a missing or wrongly configured  import statement for the org.xml.sax package.

Regards
Felix

> at org.apache.cxf.dosgi.dsw.OsgiUtils.readIntentMap(OsgiUtils.java:418)
> at org.apache.cxf.dosgi.dsw.OsgiUtils.getIntentMap(OsgiUtils.java:397)
> at org.apache.cxf.dosgi.dsw.Activator.getIntentMap(Activator.java:109)
> at
> org.apache.cxf.dosgi.dsw.Activator.registerDistributionProviderService(Activator.java:92)
> at org.apache.cxf.dosgi.dsw.Activator.start(Activator.java:74)
> at
> org.apache.cxf.dosgi.singlebundle.AggregatedActivator.startEmbeddedActivators(AggregatedActivator.java:115)
> at
> org.apache.cxf.dosgi.singlebundle.AggregatedActivator.start(AggregatedActivator.java:46)
> at
> org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:661)
> at org.apache.felix.framework.Felix.activateBundle(Felix.java:1760)
> at org.apache.felix.framework.Felix.startBundle(Felix.java:1682)
> at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1128)
> at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:264)
> at java.lang.Thread.run(Thread.java:722)
> Caused by: java.lang.ClassNotFoundException: org.xml.sax.EntityResolver
> at
> org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:814)
> at org.apache.felix.framework.ModuleImpl.access$100(ModuleImpl.java:61)
> at
> org.apache.felix.framework.ModuleImpl$ModuleClassLoader.loadClass(ModuleImpl.java:1733)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
> ... 13 more
> 
> How can I fix it?
> 
> Thanks!
> 
> Dhiego


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org