I thought there was a problem with support libraries in the plugins folder directly, but some testing just now seems to prove otherwise. (I had on my todo list to figure out how to allow support libraries to be in the plugins folder, but it may turn out to be trivial.) I'll do a few more tests on different machines, and if all looks good, change the installation instructions for Bio-Formats accordingly.
<br><br>-Curtis<br><br><div><span class="gmail_quote">On 9/12/06, <b class="gmail_sendername">Ilya Goldberg</b> <<a href="mailto:igg@nih.gov">igg@nih.gov</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Curtis<br>What happens if you delete ome-java.jar from the Extensions folder,<br>but add it to the plug-ins folder for ImageJ - does the Bio-Formats<br>plug-in still work?<br>That might be a better setup than relying on system-wide classpath
<br>rules.<br>Unless that doesn't work, of course.<br>-I<br><br><br>On Sep 12, 2006, at 1:06 PM, Curtis Rueden wrote:<br><br>> Hi Steve,<br>><br>> I managed to track down what was causing the NoClassDefFoundErrors,
<br>> at least<br>> on our machine here. It was caused by ome-java.jar being present in<br>> (/Library/Java/Extensions or /System/Library/Java/Extensions).<br>> Apparently<br>> Java on the Mac does something really stupid: it looks first for
<br>> libraries<br>> in the Extensions folder, and prefers them to the explicitly set<br>> class path;<br>> in addition, if library A has a partial dependency on library B,<br>> library B<br>> is not in the Extensions folder, and an application tries to use
<br>> the part of<br>> library A that needs library B to function, things fail, even if<br>> library B<br>> is included in the class path with the application.<br>><br>> To fix the problem, you can delete
ome-java.jar from the Extensions<br>> folder.<br>><br>> In our case, we had ome-java.jar in the Extensions folder to use<br>> with the<br>> Bio-Formats plugin for ImageJ. Do you by any chance have that set<br>
> up as<br>> well? If so, you probably don't want to delete ome-java.jar from<br>> Extensions<br>> (since Bio-Formats will stop working if you do that). Instead, you<br>> can copy<br>> xmlrpc-1.2-b1.jar,
commons-httpclient-2.0-rc2.jar and<br>> commons-logging.jarinto the Extensions folder as well, and everything<br>> (both Bio-Formats and<br>> Shoola) should then work. But beware, if a new version of Shoola is<br>
> released, and those JAR files have been updated, you'll need to<br>> recopy them<br>> into Extensions to keep everything flowing smoothly.<br>><br>> If you do not have any of the Shoola-related JAR files in your
<br>> Extensions<br>> folders, then I am once again unsure of what is causing your problem.<br>><br>> I hope that clears things up, and sorry for the confusion.<br>><br>> -Curtis<br>><br>> On 9/12/06, Curtis Rueden <
<a href="mailto:ctrueden@wisc.edu">ctrueden@wisc.edu</a>> wrote:<br>>><br>>> Hi Steve,<br>>><br>>> Ah, I should have realized you'd be using the Mac OS X version of<br>>> Shoola;<br>>> sorry for my inaccuracies.
<br>>><br>>> Anyway, I have good news, sort of. I tested Shoola on a Mac OS X<br>>> machine<br>>> in our lab and encountered the same problem. Further investigation<br>>> revealed<br>>> that it is also an issue with VisBio. The problem stems from OME's
<br>>> Java<br>>> remote framework library ( ome-java.jar) being unable to load the<br>>> XML-RPC<br>>> client class from xmlrpc-1.2-b1.jar. I tried a fresh copy of the<br>>> xmlrpc-1.2-b1 binary; I tried everything in a directory structure
<br>>> (no JAR<br>>> files); I tried downloading the source and compiling it on the Mac<br>>> myself;<br>>> nothing seems to work. And Java on the Mac can load the class fine<br>>> directly;<br>
>> it's only when the OME remote framework library tries to load it<br>>> that it<br>>> fails.<br>>><br>>> I'm currently investigating further, since this is a major issue<br>>> for OME
<br>>> client/server communication on the Mac.<br>>><br>>> Sorry for the trouble, and I'll email again when I have a solution<br>>> for<br>>> you.<br>>><br>>><br>>> -Curtis<br>
>><br>>> On 9/11/06, Stephen Ogg <<a href="mailto:stephen@cmm.a-star.edu.sg">stephen@cmm.a-star.edu.sg</a>> wrote:<br>>> ><br>>> > Curtis-<br>>> > Thanks for your comments. Here are some more details about my
<br>>> specific<br>>> > system installation. I'm using Mac OS X 10.4.7, recently<br>>> installed ome<br>>> > with the graphical installer, and here is the version of java<br>>> that I'm
<br>>> > running:<br>>> > steve$ java -version<br>>> > java version "1.5.0_06"<br>>> > Java(TM) 2 Runtime Environment, Standard Edition (build<br>>> 1.5.0_06-112)<br>>> > Java HotSpot(TM) Client VM (build
1.5.0_06-64, mixed mode, sharing)<br>>> ><br>>> > After running the graphical installer, I found a "Shoola" folder<br>>> in my<br>>> > applications folder. Within this folder there was the "
Shoola.app"<br>>> > application and a config folder.The " container.xml" file had been<br>>> > modiffied so that the OMEDS and OMEIS urls were set to my<br>>> installation<br>>> > location.
<br>>> ><br>>> > I guess that in mac, the library folder is actually within the<br>>> ".app"<br>>> > folder. In this case I found the following file hierarchy within<br>>> >
Shoola.app<br>>> > /Applications/Shoola.app steve$ ls -lsR<br>>> > total 0<br>>> > 0 drwxr-xr-x 6 steve admin 204 Sep 7 09:25 Contents<br>>> ><br>>> > ./Contents:<br>>> > total 16
<br>>> > 8 -rw-r--r-- 1 steve admin 2304 Sep 7 09:25 Info.plist<br>>> > 0 drwxr-xr-x 3 steve admin 102 Sep 7 09:25 MacOS<br>>> > 8 -rw-r--r-- 1 steve admin 9 Sep 7 09:25 PkgInfo
<br>>> > 0 drwxr-xr-x 4 steve admin 136 Sep 7 09:25 Resources<br>>> ><br>>> > ./Contents/MacOS:<br>>> > total 104<br>>> > 104 -rwxr-xr-x 1 steve admin 51856 Sep 7 09:25
<br>>> JavaApplicationStub<br>>> ><br>>> > ./Contents/Resources:<br>>> > total 96<br>>> > 0 drwxr-xr-x 10 steve admin 340 Sep 7 09:25 Java<br>>> > 96 -rw-r--r-- 1 steve admin 45646 Sep 7 09:25
shoola.icns<br>>> ><br>>> > ./Contents/Resources/Java:<br>>> > total 6616<br>>> > 432 -rw-r--r-- 1 steve admin 217713 Sep 7 09:25<br>>> > commons-httpclient-2.0-rc2.jar<br>
>> > 64 -rw-r--r-- 1 steve admin 31605 Sep 7 09:25<br>>> > commons-logging.jar<br>>> > 696 -rw-r--r-- 1 steve admin 352668 Sep 7 09:25<br>>> log4j-1.2.8.jar<br>>> > 592 -rw-r--r-- 1 steve admin 301568 Sep 7 09:25
ome-java.jar<br>>> > 160 -rw-r--r-- 1 steve admin 78077 Sep 7 09:25 piccolo.jar<br>>> > 200 -rw-r--r-- 1 steve admin 101004 Sep 7 09:25 piccolox.jar<br>>> > 4256 -rw-r--r-- 1 steve admin 2176213 Sep 7 09:25
shoola.jar<br>>> > 216 -rw-r--r-- 1 steve admin 108476 Sep 7 09:25 xmlrpc-1.2-<br>>> b1.jar<br>>> ><br>>> ><br>>> ><br>>> ><br>>> > Any comments welcome<br>
>> > Regards<br>>> > Steve<br>>> ><br>>> ><br>>> > Dr. Stephen Ogg<br>>> > 61 Biopolis Drive (Proteos)<br>>> > Singapore 138673<br>>> > +65 65869844 office
<br>>> > +65 65869841lab<br>>> > <a href="mailto:stephen@cmm.a-star.edu.sg">stephen@cmm.a-star.edu.sg</a><br>>> ><br>>> ><br>>> ><br>>> > On 12 Sep 2006, at 12:06 AM, Curtis Rueden wrote:
<br>>> ><br>>> > Hi Steve,<br>>> ><br>>> > It sounds to me like it can't find the xmlrpc-1.2-b1.jar<br>>> library. It<br>>> > should be in the "lib" subdirectory of the shoola distribution.
<br>>> What is your<br>>> > OS, and what version of Java are you running? It is possible<br>>> that it failed<br>>> > to load the library because your version of Java is older than<br>>> the one used
<br>>> > to create the JAR file. Maybe one of the Shoola developers can<br>>> comment<br>>> > further.<br>>> ><br>>> > -Curtis<br>>> ><br>>> > On 9/11/06, Stephen Ogg <
<a href="mailto:stephen@cmm.a-star.edu.sg">stephen@cmm.a-star.edu.sg</a>> wrote:<br>>> > ><br>>> > > I have been playing with ome and findspots now for a couple of<br>>> days<br>>> > > now. A great bit thanks to David Schiffmann, Paul Appleton and
<br>>> Ilya Goldberg<br>>> > > for a lucid description of how to optimize parameters for and<br>>> analyze the<br>>> > > data from findspots in their pdf file found at<br>>> > >
<a href="http://www.openmicroscopy.org/howto/FindSpots-v2.pdf">http://www.openmicroscopy.org/howto/FindSpots-v2.pdf</a>. It<br>>> answered all<br>>> > > my questions.<br>>> > > On another note, I would like to use Shoola, the java client, to
<br>>> > > connect to my ome. I get the following error when double<br>>> clicking on Shoola<br>>> > > application icon.<br>>> > > Abnormal termination due to an uncaught exception.
<br>>> > > java.lang.NoClassDefFoundError: org/apache/xmlrpc/XmlRpcClient<br>>> > > at org.openmicroscopy.ds.DataServer.getDefaultCaller<br>>> (DataServer.java<br>>> > > :90)<br>>> > > at
org.openmicroscopy.ds.DataServer.getDefaultServices<br>>> (DataServer.java<br>>> > > :113)<br>>> > > at org.openmicroscopy.shoola.env.data.OMEDSGateway.<init>(<br>>> > > OMEDSGateway.java
:182)<br>>> > > at<br>>> org.openmicroscopy.shoola.env.data.DataServicesFactory.<init>(<br>>> > > DataServicesFactory.java:103)<br>>> > > at<br>>> org.openmicroscopy.shoola.env.data.DataServicesFactory.getInstance
(<br>>> > > DataServicesFactory.java:73)<br>>> > > at org.openmicroscopy.shoola.env.init.DataServicesInit.execute(<br>>> > > DataServicesInit.java:98)<br>>> > > at org.openmicroscopy.shoola.env.init.Initializer.doInit
(<br>>> > > Initializer.java:224)<br>>> > > at org.openmicroscopy.shoola.env.Container.runStartupProcedure(<br>>> > > Container.java:110)<br>>> > > at org.openmicroscopy.shoola.env.Container.access$000
<br>>> (Container.java<br>>> > > :76)<br>>> > > at org.openmicroscopy.shoola.env.Container$1.run<br>>> (Container.java:152)<br>>> > > at java.lang.Thread.run(Thread.java:613)
<br>>> > > Exception in thread "Initializer"<br>>> > ><br>>> > > Knowing even less about java than permissions, I have no clue<br>>> what the<br>>> > > output above might be referring to.
<br>>> > > Any help would be appreciated.<br>>> > > Regards<br>>> > > Steve<br>>> > ><br>>> > ><br>>> > > Dr. Stephen Ogg<br>>> > > 61 Biopolis Drive (Proteos)
<br>>> > > Singapore 138673<br>>> > > +65 65869844 office<br>>> > > +65 65869841lab<br>>> > > <a href="mailto:stephen@cmm.a-star.edu.sg">stephen@cmm.a-star.edu.sg</a><br>>> > >
<br>>> > ><br>>> > ><br>>> > ><br>>> > > _______________________________________________<br>>> > > ome-users mailing list<br>>> > > <a href="mailto:ome-users@lists.openmicroscopy.org.uk">
ome-users@lists.openmicroscopy.org.uk</a><br>>> > > <a href="http://lists.openmicroscopy.org.uk/mailman/listinfo/ome-users">http://lists.openmicroscopy.org.uk/mailman/listinfo/ome-users</a><br>>> > >
<br>>> > ><br>>> > ><br>>> ><br>>> ><br>>><br>> _______________________________________________<br>> ome-users mailing list<br>> <a href="mailto:ome-users@lists.openmicroscopy.org.uk">
ome-users@lists.openmicroscopy.org.uk</a><br>> <a href="http://lists.openmicroscopy.org.uk/mailman/listinfo/ome-users">http://lists.openmicroscopy.org.uk/mailman/listinfo/ome-users</a><br><br></blockquote></div><br>