geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kevan Miller (JIRA)" <>
Subject [jira] [Created] (GERONIMO-6087) See if we can improve "Main not found" errors (and other startup issues)
Date Wed, 20 Jul 2011 00:55:57 GMT
See if we can improve "Main not found" errors (and other startup issues)

                 Key: GERONIMO-6087
             Project: Geronimo
          Issue Type: Bug
      Security Level: public (Regular issues)
            Reporter: Kevan Miller
             Fix For: 3.0

In some cases a startup error will prevent the server from starting. Yet the only message
the user sees is "Main not found" (or no message at all).

I've seen this happen when trying to profile the server using YourKit. You must add com.yourkit
to org.osgi.framework.bootdelegation in etc/ in order for the server to start.
If you don't the only error you see is "Main not found"

Someone also reported that a non-writable directory can lead to a "Main not
found" error. For me, on Mac OS, looks like my server startup spins in a hot loop:

"main" prio=5 tid=102801800 nid=0x100501000 runnable [1004ff000]
   java.lang.Thread.State: RUNNABLE
	at Method)
	at org.apache.felix.fileinstall.internal.DirectoryWatcher.prepareTempDir(
	at org.apache.felix.fileinstall.internal.DirectoryWatcher.<init>(
	at org.apache.felix.fileinstall.internal.FileInstall.updated(
	at org.apache.felix.fileinstall.internal.FileInstall.start(
	at org.eclipse.osgi.framework.internal.core.BundleContextImpl$
	at Method)
	at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(
	at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(
	at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(
	at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(
	at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(
	at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(
	at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(
	at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(
	at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(
	- locked <7ea24ea68> (a java.lang.Object)
	at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.internalStart(
	at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.start(
	at org.eclipse.osgi.launch.Equinox.start(
	at org.apache.geronimo.main.FrameworkLauncher.launch(
	at org.apache.geronimo.main.Bootstrapper.execute(
	at org.apache.geronimo.cli.AbstractCLI.executeMain(
	at org.apache.geronimo.cli.daemon.DaemonCLI.main(

This message is automatically generated by JIRA.
For more information on JIRA, see:


View raw message