Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Gemini » Start Gemini-web-test failed,can't find rt.jar
Start Gemini-web-test failed,can't find rt.jar [message #1061977] Wed, 05 June 2013 08:36 Go to next message
Roy Song is currently offline Roy SongFriend
Messages: 2
Registered: June 2013
Junior Member
Hello,guys!

I followed Gemini-web's userguide step by step,when I step on:
java -jar org.eclipse.osgi_3.8.2.v20130124-134944.jar -console
I got following exceptions:
Failed to trigger creation of the GC Daemon thread during Tomcat start to
prevent possible memory leaks. This is expected on non-Sun JVMs.
java.lang.ClassNotFoundException: sun.misc.GC
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(Bundl
eLoader.java:501)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.
java:421)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.
java:412)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(De
faultClassLoader.java:107)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:171)
at org.apache.catalina.core.JreMemoryLeakPreventionListener.lifecycleEve
nt(JreMemoryLeakPreventionListener.java:295)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
eSupport.java:119)
at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBa
se.java:90)
at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase
.java:402)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:99)
at org.eclipse.gemini.web.tomcat.internal.OsgiAwareEmbeddedTomcat.init(O
sgiAwareEmbeddedTomcat.java:197)
at org.eclipse.gemini.web.tomcat.internal.TomcatServletContainer.<init>(
TomcatServletContainer.java:62)
at org.eclipse.gemini.web.tomcat.internal.TomcatServletContainerFactory.
createContainer(TomcatServletContainerFactory.java:29)
at org.eclipse.gemini.web.tomcat.internal.Activator.createContainer(Acti
vator.java:107)
at org.eclipse.gemini.web.tomcat.internal.Activator.start(Activator.java
:58)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(Bund
leContextImpl.java:711)
at java.security.AccessController.doPrivileged(Native Method)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActiv
ator(BundleContextImpl.java:702)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(Bund
leContextImpl.java:683)
at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(Bundl
eHost.java:381)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(Abstra
ctBundle.java:390)
at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Frame
work.java:1176)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBund
les(StartLevelManager.java:559)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBund
les(StartLevelManager.java:544)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(St
artLevelManager.java:457)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStart
Level(StartLevelManager.java:243)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEv
ent(StartLevelManager.java:438)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEv
ent(StartLevelManager.java:1)
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventM
anager.java:230)
at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(Even
tManager.java:340)
2013-6-5 15:53:36 org.apache.catalina.core.JreMemoryLeakPreventionListener lifec
ycleEvent
Failed to trigger creation of the com.sun.jndi.ldap.LdapPoolManager class
during Tomcat start to prevent possible memory leaks. This is expected on non-Su
n JVMs.
java.lang.ClassNotFoundException: com.sun.jndi.ldap.LdapPoolManager
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(Bundl
eLoader.java:501)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.
java:421)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.
java:412)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(De
faultClassLoader.java:107)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:171)
at org.apache.catalina.core.JreMemoryLeakPreventionListener.lifecycleEve
nt(JreMemoryLeakPreventionListener.java:432)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
eSupport.java:119)
at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBa
se.java:90)
at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase
.java:402)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:99)
at org.eclipse.gemini.web.tomcat.internal.OsgiAwareEmbeddedTomcat.init(O
sgiAwareEmbeddedTomcat.java:197)
at org.eclipse.gemini.web.tomcat.internal.TomcatServletContainer.<init>(
TomcatServletContainer.java:62)
at org.eclipse.gemini.web.tomcat.internal.TomcatServletContainerFactory.
createContainer(TomcatServletContainerFactory.java:29)
at org.eclipse.gemini.web.tomcat.internal.Activator.createContainer(Acti
vator.java:107)
at org.eclipse.gemini.web.tomcat.internal.Activator.start(Activator.java
:58)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(Bund
leContextImpl.java:711)
at java.security.AccessController.doPrivileged(Native Method)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActiv
ator(BundleContextImpl.java:702)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(Bund
leContextImpl.java:683)
at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(Bundl
eHost.java:381)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(Abstra
ctBundle.java:390)
at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Frame
work.java:1176)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBund
les(StartLevelManager.java:559)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBund
les(StartLevelManager.java:544)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(St
artLevelManager.java:457)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStart
Level(StartLevelManager.java:243)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEv
ent(StartLevelManager.java:438)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEv
ent(StartLevelManager.java:1)
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventM
anager.java:230)
at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(Even
tManager.java:340)

My system is win7(64),and my JAVA_HOME is C:\Program Files\Java\jdk1.6.0_45.I found these not found classes in JRE\lib\rt.jar;but I don't understand why they can't be loaded.
I used google and stackoverflow to find answer ,but nothing found.So,I got here and hoped some help.
Maybe I used wrong version of osgi jar?I can't confirm it.
Thanks for helping and apologize for my poor English.
Re: Start Gemini-web-test failed,can't find rt.jar [message #1062076 is a reply to message #1061977] Wed, 05 June 2013 18:19 Go to previous messageGo to next message
Violeta Georgieva is currently offline Violeta GeorgievaFriend
Messages: 244
Registered: October 2010
Senior Member
Hi,

Do you have running console after this exception?
If yes please execute command "getprop" and post the result here.

Regards
Violeta
Re: Start Gemini-web-test failed,can't find rt.jar [message #1062116 is a reply to message #1062076] Thu, 06 June 2013 06:01 Go to previous messageGo to next message
Roy Song is currently offline Roy SongFriend
Messages: 2
Registered: June 2013
Junior Member
Thanks for reply,Violeta.

After exception,I always close it and rerun,and got the same exception.

I put "getprop" infos in attachment "getprop.txt".I really don't know how to fix it.

Thanks for help again.
  • Attachment: getprop.txt
    (Size: 12.09KB, Downloaded 176 times)
Re: Start Gemini-web-test failed,can't find rt.jar [message #1077914 is a reply to message #1062116] Fri, 02 August 2013 09:58 Go to previous messageGo to next message
sun wang is currently offline sun wangFriend
Messages: 1
Registered: August 2013
Junior Member
me too,the same as roy song.
my english is very poor.
thank you Smile
Re: Start Gemini-web-test failed,can't find rt.jar [message #1392782 is a reply to message #1077914] Wed, 02 July 2014 21:14 Go to previous messageGo to next message
Julio Rey is currently offline Julio ReyFriend
Messages: 4
Registered: December 2013
Junior Member
Hi everyone, i have the same problem

Roy do you can solve this issue?

Is necessary someone JAR to get the classes

com.sun.jndi.ldap .LdapPoolManager
sun.misc .GC

i do all steps of

/gemini/web/documentation/gemini-web-documentation-2.2.3.RELEASE/gemini-web-user-guide/html/ch02s02.html

Thanks a lot,

this is my exception

Advertencia: Couldn't initialize Jasper
java.lang.ClassNotFoundException: org .apache. jasper.compiler. JspRuntimeContext cannot be found by java.lang.ClassNotFoundException: sun.misc.GC cannot be found by java.lang.ClassNotFoundException: com.sun.jndi.ldap. LdapPoolManager cannot be found by org.apache.catalina_7.0.53.v201406061610




Re: Start Gemini-web-test failed,can't find rt.jar [message #1394340 is a reply to message #1392782] Sat, 05 July 2014 05:40 Go to previous message
Violeta Georgieva is currently offline Violeta GeorgievaFriend
Messages: 244
Registered: October 2010
Senior Member
Hi,

Use the following to start GW

java -Dosgi.compatibility.bootdelegation=true -jar org.eclipse.osgi.jar -console


osgi.compatibility.bootdelegation
if set to "true" then the parent (boot by default) classloader is delegated to as a last resort if a class or resource cannot be found.

Regards,
Violeta
Previous Topic:[Blueprint] Snapshots are now in eclipse maven repo
Next Topic:Gemini Web 2.2.3 RELEASE is now available
Goto Forum:
  


Current Time: Wed Nov 26 00:51:23 GMT 2014

Powered by FUDForum. Page generated in 0.01875 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software