felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Richard S. Hall" <he...@ungoverned.org>
Subject Re: ClassCircularityError with j9
Date Wed, 17 Jan 2007 18:44:58 GMT
Carlos Herrando wrote:
> Hello!,
> I'm Carlos, I'm new in the list.
> I'm trying to use Felix in a Pocket PC with the j9 vm and I'm getting 
> a ClassCircularityError when I start the http bundle. I've put below 
> the error trace. The funny thing happens when I try to start again the 
> bundle, I get the same exception but with another package, and one 
> more time if you try to start the bundle it runs well. I'm getting the 
> same ClassCircularityErrors in other bundles.
>
> Could somebody help me with this problem?.

Can you reproduce this on another IBM JVM? Perhaps one that I could have 
access to? :-)

Off the top of my head, I don't have any ideas.

-> richard

>
>
> START LEVEL 1
>   ID   State         Level  Name
> [   0] [Active     ] [    0] System Bundle (0.8.0.incubator)
> [   1] [Active     ] [    1] Apache Felix Shell Service (0.8.0.incubator)
> [   2] [Active     ] [    1] Apache Felix Shell TUI (0.8.0.incubator)
> [   3] [Active     ] [    1] Apache Felix Bundle Repository 
> (0.8.0.incubator)
> ->
> ->
> -> install file:bundle/servlet.jar
> Bundle ID: 4
> -> start 4
> DEBUG: WIRE: 4.0 -> javax.servlet.http -> 4.0
> DEBUG: WIRE: 4.0 -> javax.servlet -> 4.0
> DEBUG: WIRE: 4.0 -> javax.servlet.jsp -> 4.0
> -> install file:bundle/http.jar
> Bundle ID: 5
> -> start 5
> DEBUG: WIRE: 5.0 -> javax.servlet.http -> 4.0
> DEBUG: WIRE: 5.0 -> javax.servlet -> 4.0
> DEBUG: WIRE: 5.0 -> org.osgi.service.http -> 5.0
> DEBUG: WIRE: 5.0 -> org.osgi.framework -> 0
> org.osgi.framework.BundleException: Activator start error.
>        at org.apache.felix.framework.Felix._startBundle(Felix.java:1305)
>        at org.apache.felix.framework.Felix.startBundle(Felix.java:1201)
>        at 
> org.apache.felix.framework.BundleImpl.start(BundleImpl.java:345)
>        at 
> org.apache.felix.shell.impl.StartCommandImpl.execute(StartCommandImpl.java:82) 
>
>        at 
> org.apache.felix.shell.impl.Activator$ShellServiceImpl.executeCommand(Activator.java:265)

>
>        at 
> org.apache.felix.shell.tui.Activator$ShellTuiRunnable.run(Activator.java:167) 
>
>        at java.lang.Thread.run(Thread.java:568)
> Caused by: java.lang.ClassCircularityError: org/mortbay/util/FileResource
>        at java.lang.ClassLoader.resolveClass0(Native Method)
>        at java.lang.ClassLoader.resolveClass(ClassLoader.java:963)
>        at 
> org.apache.felix.framework.searchpolicy.ContentClassLoader.loadClassFromModule(ContentClassLoader.java:58)

>
>        at 
> org.apache.felix.framework.searchpolicy.ContentLoaderImpl.getClass(ContentLoaderImpl.java:121)

>
>        at 
> org.apache.felix.framework.searchpolicy.R4SearchPolicyCore.findClassOrResource(R4SearchPolicyCore.java:358)

>
>        at 
> org.apache.felix.framework.searchpolicy.R4SearchPolicyCore.findClass(R4SearchPolicyCore.java:136)

>
>        at 
> org.apache.felix.framework.searchpolicy.R4SearchPolicy.findClass(R4SearchPolicy.java:45)

>
>        at 
> org.apache.felix.framework.searchpolicy.ContentClassLoader.loadClass(ContentClassLoader.java:70)

>
>        at java.lang.ClassLoader.loadClass(ClassLoader.java:494)
>        at java.lang.ClassLoader.defineClass0(Native Method)
>        at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
>        at java.lang.ClassLoader.defineClass(ClassLoader.java:700)
>        at 
> org.apache.felix.framework.searchpolicy.ContentClassLoader.findClass(ContentClassLoader.java:149)

>
>        at 
> org.apache.felix.framework.searchpolicy.ContentClassLoader.loadClassFromModule(ContentClassLoader.java:51)

>
>        at 
> org.apache.felix.framework.searchpolicy.ContentLoaderImpl.getClass(ContentLoaderImpl.java:121)

>
>        at 
> org.apache.felix.framework.searchpolicy.R4SearchPolicyCore.findClassOrResource(R4SearchPolicyCore.java:358)

>
>        at 
> org.apache.felix.framework.searchpolicy.R4SearchPolicyCore.findClass(R4SearchPolicyCore.java:136)

>
>        at 
> org.apache.felix.framework.searchpolicy.R4SearchPolicy.findClass(R4SearchPolicy.java:45)

>
>        at 
> org.apache.felix.framework.searchpolicy.ContentClassLoader.loadClass(ContentClassLoader.java:70)

>
>        at java.lang.ClassLoader.loadClass(ClassLoader.java:494)
>        at java.lang.ClassLoader.resolveClass0(Native Method)
>        at java.lang.ClassLoader.resolveClass(ClassLoader.java:963)
>        at 
> org.apache.felix.framework.searchpolicy.ContentClassLoader.loadClassFromModule(ContentClassLoader.java:58)

>
>        at 
> org.apache.felix.framework.searchpolicy.ContentLoaderImpl.getClass(ContentLoaderImpl.java:121)

>
>        at 
> org.apache.felix.framework.searchpolicy.R4SearchPolicyCore.findClassOrResource(R4SearchPolicyCore.java:358)

>
>        at 
> org.apache.felix.framework.searchpolicy.R4SearchPolicyCore.findClass(R4SearchPolicyCore.java:136)

>
>        at 
> org.apache.felix.framework.searchpolicy.R4SearchPolicy.findClass(R4SearchPolicy.java:45)

>
>        at 
> org.apache.felix.framework.searchpolicy.ContentClassLoader.loadClass(ContentClassLoader.java:70)

>
>        at java.lang.ClassLoader.loadClass(ClassLoader.java:494)
>        at java.lang.ClassLoader.resolveClass0(Native Method)
>        at java.lang.ClassLoader.resolveClass(ClassLoader.java:963)
>        at 
> org.apache.felix.framework.searchpolicy.ContentClassLoader.loadClassFromModule(ContentClassLoader.java:58)

>
>        at 
> org.apache.felix.framework.searchpolicy.ContentLoaderImpl.getClass(ContentLoaderImpl.java:121)

>
>        at 
> org.apache.felix.framework.searchpolicy.R4SearchPolicyCore.findClassOrResource(R4SearchPolicyCore.java:358)

>
>        at 
> org.apache.felix.framework.searchpolicy.R4SearchPolicyCore.findClass(R4SearchPolicyCore.java:136)

>
>        at 
> org.apache.felix.framework.searchpolicy.R4SearchPolicy.findClass(R4SearchPolicy.java:45)

>
>        at 
> org.apache.felix.framework.searchpolicy.ContentClassLoader.loadClass(ContentClassLoader.java:70)

>
>        at java.lang.ClassLoader.loadClass(ClassLoader.java:494)
>        at 
> org.ungoverned.osgi.bundle.http.HttpActivatorImpl.initializeJetty(HttpActivatorImpl.java:172)

>
>        at 
> org.ungoverned.osgi.bundle.http.HttpActivatorImpl.start(HttpActivatorImpl.java:129) 
>
>        at 
> org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:509) 
>
>        at org.apache.felix.framework.Felix._startBundle(Felix.java:1260)
>        ... 6 more
> java.lang.ClassCircularityError: org/mortbay/util/FileResource
>
> > start 5
> ...same exception as above...
> java.lang.ClassCircularityError: org/mortbay/util/JarFileResource
>
> > start 5
> OK

Mime
View raw message