[ome-devel] Cannot include own agent in insight

Matthias Dunda Matthias.Dunda at carus-it.com
Fri Sep 5 09:52:41 BST 2008


Hi all

we have created a new agent for the OMERO.insight. Now I want to include it in the windows standard distribution but it fails with a class not found exception.

I added the main class to the container.xml and put an appropriate bla.xml into the config folder. Of course I added the JAR to the lib folder which confirmable contains the class given in container.xml.

In our Eclipse development environment we can include the agent, so I hope I have just overseen some tiny issue...

The exception:

java.lang.Exception: Abnormal termination due to an uncaught exception.
org.openmicroscopy.shoola.env.init.StartupException: Couldn't create agent: AgentNameHere
        at org.openmicroscopy.shoola.env.init.AgentsInit.createAgent(AgentsInit.java:95)
        at org.openmicroscopy.shoola.env.init.AgentsInit.execute(AgentsInit.java:160)
        at org.openmicroscopy.shoola.env.init.Initializer.doInit(Initializer.java:262)
        at org.openmicroscopy.shoola.env.Container.runStartupProcedure(Container.java:108)
        at org.openmicroscopy.shoola.env.Container.access$000(Container.java:68)
        at org.openmicroscopy.shoola.env.Container$1.run(Container.java:150)
        at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: com.carus_it.columbus.shoola.agents.AgentClassNameHere
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClassInternal(Unknown Source)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Unknown Source)
        at org.openmicroscopy.shoola.env.init.AgentsInit.createAgent(AgentsInit.java:78)
        ... 6 more
Exception in thread "Initializer"

        at org.openmicroscopy.shoola.env.ui.UserNotifierImpl.showErrorDialog(UserNotifierImpl.java:147)
        at org.openmicroscopy.shoola.env.ui.UserNotifierImpl.notifyError(UserNotifierImpl.java:199)
        at org.openmicroscopy.shoola.env.AbnormalExitHandler.doTermination(AbnormalExitHandler.java:138)
        at org.openmicroscopy.shoola.env.AbnormalExitHandler.terminate(AbnormalExitHandler.java:83)
        at org.openmicroscopy.shoola.env.Container.runStartupProcedure(Container.java:112)
        at org.openmicroscopy.shoola.env.Container.access$000(Container.java:68)
        at org.openmicroscopy.shoola.env.Container$1.run(Container.java:150)
        at java.lang.Thread.run(Unknown Source)

Any hints?

Cheers
Matthias

--
Matthias Dunda, Dipl.-Inform.
c.a.r.u.s. IT AG
Phone: (040) 5 14 35-0, intl.: +49.40.5 14 35-0




More information about the ome-devel mailing list