Page 1 of 1

MAC OSX does not start.

PostPosted: Fri Feb 06, 2009 3:34 am
by kubbe
Hi,

As can be seen below on macosx wandora hangs 'halfway'.
running in parallels desktop on xp is not a problem, although a bit slow...
hope that this can be resolved,

regards,

O

B-K-2:bin kubbe$ ./SetClasspath.
-bash: ./SetClasspath.: No such file or directory
B-K-2:bin kubbe$ ./SetClasspath.sh
B-K-2:bin kubbe$ ./Wandora.sh
*****************************************************
*** WANDORA - KNOWLEDGE MANAGEMENT ENVIRONMENT ***
*** Copyright (C) 2009 Grip Studios Interactive ***
*** http://www.wandora.org/ ***
*****************************************************
Xms512m Xmx750m
Reading options from resource 'conf/options.xml'.
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/xerces/parsers/DOMParser
at org.wandora.utils.XMLbox.getDocument(XMLbox.java:51)
at org.wandora.utils.XMLbox.getAsHashMapTree(XMLbox.java:296)
at org.wandora.utils.Options.parseOptions(Options.java:217)
at org.wandora.utils.Options.parseOptions(Options.java:213)
at org.wandora.utils.Options.<init>(Options.java:76)
at org.wandora.application.Wandora.<init>(Wandora.java:152)
at org.wandora.application.Wandora.main(Wandora.java:2255)

PostPosted: Fri Feb 06, 2009 12:33 pm
by akivela
Hello

It looks like the SetClasspath.sh script has failed to add xerces.jar to the Java classpath. SetClasspath.sh script was changed in Wandora release 09-02-02 (build date 2009-01-30) as described in

http://www.wandora.net/wandora/forum/viewtopic.php?t=17

New SetClasspath.sh script was tested on Windows and Linux but unfortunately not in Mac OS. I suppose Mac OS X's Java doesn't support asterisk (*) in classpath options. If this is the case, you need to replace current SetClasspath.sh script with next code fragment:

Code: Select all
#!/bin/bash
WANDORACLASSES=classes
WANDORACLASSES=$WANDORACLASSES:resources
#WANDORACLASSES=$WANDORACLASSES:lib/fmj/*
WANDORACLASSES=$WANDORACLASSES:lib/acrobat.jar
WANDORACLASSES=$WANDORACLASSES:lib/activation.jar
WANDORACLASSES=$WANDORACLASSES:lib/axis.jar
WANDORACLASSES=$WANDORACLASSES:lib/bsh-2.0b2.jar
WANDORACLASSES=$WANDORACLASSES:lib/commons-discovery-0.2.jar
WANDORACLASSES=$WANDORACLASSES:lib/commons-fileupload-1.1.jar
WANDORACLASSES=$WANDORACLASSES:lib/commons-io-1.1.jar
WANDORACLASSES=$WANDORACLASSES:lib/commons-logging-1.0.4.jar
WANDORACLASSES=$WANDORACLASSES:lib/gnu-regexp-1.1.4.jar
WANDORACLASSES=$WANDORACLASSES:lib/gstreamer-java-0.8.jar
WANDORACLASSES=$WANDORACLASSES:lib/hsqldb.jar
WANDORACLASSES=$WANDORACLASSES:lib/jaxrpc.jar
WANDORACLASSES=$WANDORACLASSES:lib/jid3lib-0.5.4.jar
WANDORACLASSES=$WANDORACLASSES:lib/jigsaw.jar
WANDORACLASSES=$WANDORACLASSES:lib/jna-3.0.4.jar
WANDORACLASSES=$WANDORACLASSES:lib/jpegrdf.jar
WANDORACLASSES=$WANDORACLASSES:lib/jtds-1.2.jar
WANDORACLASSES=$WANDORACLASSES:lib/lucene-1.3-final.jar
WANDORACLASSES=$WANDORACLASSES:lib/mail.jar
WANDORACLASSES=$WANDORACLASSES:lib/MRJToolkitStubs.zip
WANDORACLASSES=$WANDORACLASSES:lib/msbase.jar
WANDORACLASSES=$WANDORACLASSES:lib/mssqlserver.jar
WANDORACLASSES=$WANDORACLASSES:lib/msutil.jar
WANDORACLASSES=$WANDORACLASSES:lib/mysql-connector-java-3.1.13-bin.jar
WANDORACLASSES=$WANDORACLASSES:lib/opencalais.zip
WANDORACLASSES=$WANDORACLASSES:lib/PDFRenderer.jar
WANDORACLASSES=$WANDORACLASSES:lib/poi-3.0-alpha1-20050704.jar
WANDORACLASSES=$WANDORACLASSES:lib/poi-contrib-3.0-alpha1-20050704.jar
WANDORACLASSES=$WANDORACLASSES:lib/poi-scratchpad-3.0-alpha1-20050704.jar
WANDORACLASSES=$WANDORACLASSES:lib/saaj.jar
WANDORACLASSES=$WANDORACLASSES:lib/simmetrics_jar_v1_6_2_d07_02_07.jar
WANDORACLASSES=$WANDORACLASSES:lib/velocity-dep-1.4.jar
WANDORACLASSES=$WANDORACLASSES:lib/wsdl4j-1.5.1.jar
WANDORACLASSES=$WANDORACLASSES:lib/xerces.jar
# ***** JMBOX *****
WANDORACLASSES=$WANDORACLASSES:lib/jmbox/activation.jar
WANDORACLASSES=$WANDORACLASSES:lib/jmbox/commons-collections-3.1.jar
WANDORACLASSES=$WANDORACLASSES:lib/jmbox/commons-logging.jar
WANDORACLASSES=$WANDORACLASSES:lib/jmbox/ehcache-1.1.jar
WANDORACLASSES=$WANDORACLASSES:lib/jmbox/jmbox.jar
WANDORACLASSES=$WANDORACLASSES:lib/jmbox/log4j.jar
WANDORACLASSES=$WANDORACLASSES:lib/jmbox/mail.jar
# ***** JENA *****
WANDORACLASSES=$WANDORACLASSES:lib/jena/antlr-2.7.5.jar
WANDORACLASSES=$WANDORACLASSES:lib/jena/arq.jar
WANDORACLASSES=$WANDORACLASSES:lib/jena/commons-logging.jar
WANDORACLASSES=$WANDORACLASSES:lib/jena/concurrent.jar
WANDORACLASSES=$WANDORACLASSES:lib/jena/icu4j_3_4.jar
WANDORACLASSES=$WANDORACLASSES:lib/jena/iri.jar
WANDORACLASSES=$WANDORACLASSES:lib/jena/jena.jar
WANDORACLASSES=$WANDORACLASSES:lib/jena/jenatest.jar
WANDORACLASSES=$WANDORACLASSES:lib/jena/json.jar
WANDORACLASSES=$WANDORACLASSES:lib/jena/junit.jar
WANDORACLASSES=$WANDORACLASSES:lib/jena/log4j-1.2.12.jar
WANDORACLASSES=$WANDORACLASSES:lib/jena/stax-api-1.0.jar
WANDORACLASSES=$WANDORACLASSES:lib/jena/wstx-asl-2.8.jar
WANDORACLASSES=$WANDORACLASSES:lib/jena/xercesImpl.jar
WANDORACLASSES=$WANDORACLASSES:lib/jena/xml-apis.jar
# ***** MSTOR *****
WANDORACLASSES=$WANDORACLASSES:lib/mstor/commons-logging.jar
WANDORACLASSES=$WANDORACLASSES:lib/mstor/jdom.jar
WANDORACLASSES=$WANDORACLASSES:lib/mstor/mstor.jar
WANDORACLASSES=$WANDORACLASSES:lib/mstor/xstream.jar
# ***** JTIDY *****
WANDORACLASSES=$WANDORACLASSES:lib/jtidy/Tidy.jar
# ***** GOOGLE DATA *****
WANDORACLASSES=$WANDORACLASSES:lib/gdata/gdata-appsforyourdomain-1.0.jar
WANDORACLASSES=$WANDORACLASSES:lib/gdata/gdata-appsforyourdomain-meta-1.0.jar
WANDORACLASSES=$WANDORACLASSES:lib/gdata/gdata-base-1.0.jar
WANDORACLASSES=$WANDORACLASSES:lib/gdata/gdata-calendar-1.0.jar
WANDORACLASSES=$WANDORACLASSES:lib/gdata/gdata-calendar-meta-1.0.jar
WANDORACLASSES=$WANDORACLASSES:lib/gdata/gdata-client-1.0.jar
WANDORACLASSES=$WANDORACLASSES:lib/gdata/gdata-client-meta-1.0.jar
WANDORACLASSES=$WANDORACLASSES:lib/gdata/gdata-codesearch-1.0.jar
WANDORACLASSES=$WANDORACLASSES:lib/gdata/gdata-codesearch-meta-1.0.jar
WANDORACLASSES=$WANDORACLASSES:lib/gdata/gdata-contacts-1.0.jar
WANDORACLASSES=$WANDORACLASSES:lib/gdata/gdata-contacts-meta-1.0.jar
WANDORACLASSES=$WANDORACLASSES:lib/gdata/gdata-core-1.0.jar
WANDORACLASSES=$WANDORACLASSES:lib/gdata/gdata-docs-1.0.jar
WANDORACLASSES=$WANDORACLASSES:lib/gdata/gdata-docs-meta-1.0.jar
WANDORACLASSES=$WANDORACLASSES:lib/gdata/gdata-media-1.0.jar
WANDORACLASSES=$WANDORACLASSES:lib/gdata/gdata-photos-1.0.jar
WANDORACLASSES=$WANDORACLASSES:lib/gdata/gdata-photos-meta-1.0.jar
WANDORACLASSES=$WANDORACLASSES:lib/gdata/gdata-spreadsheet-1.0.jar
WANDORACLASSES=$WANDORACLASSES:lib/gdata/gdata-spreadsheet-meta-1.0.jar
WANDORACLASSES=$WANDORACLASSES:lib/gdata/gdata-youtube-1.0.jar
WANDORACLASSES=$WANDORACLASSES:lib/gdata/gdata-youtube-meta-1.0.jar
# ***** JETTY *****
WANDORACLASSES=$WANDORACLASSES:lib/jetty/jetty-6.1.11.jar
WANDORACLASSES=$WANDORACLASSES:lib/jetty/jetty-util-6.1.11.jar
WANDORACLASSES=$WANDORACLASSES:lib/jetty/servlet-api-2.5-6.1.11.jar
# ***** ZIPs *****
WANDORACLASSES=$WANDORACLASSES:lib/MRJToolkitStubs.zip
WANDORACLASSES=$WANDORACLASSES:lib/opencalais.zip


This new version of SetClasspath.sh sets every jar and zip package separately to the Java's classpath.

I hope this helps you to run Wandora application in Mac OS X. If you still face overwhelming difficulties running Wandora please drop a line.

Kind Regards,
Aki / Wandora Team

PostPosted: Fri Feb 06, 2009 3:56 pm
by kubbe
Hi,

Replaced the setclasspath.sh content.

Now the follwoing happens:

B-K-2:bin kubbe$ ./SetClasspath.sh
B-K-2:bin kubbe$ ./Wandora.sh
*****************************************************
*** WANDORA - KNOWLEDGE MANAGEMENT ENVIRONMENT ***
*** Copyright (C) 2009 Grip Studios Interactive ***
*** http://www.wandora.org/ ***
*****************************************************
Xms512m Xmx750m
Reading options from resource 'conf/options.xml'.
Exception in thread "main" java.lang.NoClassDefFoundError: javax/swing/GroupLayout$Group
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:164)
at org.wandora.application.tools.browserextractors.BrowserExtractorManager.getExtractorList(BrowserExtractorManager.java:120)
at org.wandora.application.tools.browserextractors.BrowserExtractorManager.getExtractorList(BrowserExtractorManager.java:81)
at org.wandora.application.tools.browserextractors.BrowserExtractorManager.<init>(BrowserExtractorManager.java:40)
at org.wandora.application.WandoraJettyServer.<init>(WandoraJettyServer.java:113)
at org.wandora.application.Wandora.getHTTPServer(Wandora.java:169)
at org.wandora.application.Wandora.initializeWandora(Wandora.java:314)
at org.wandora.application.Wandora.<init>(Wandora.java:158)
at org.wandora.application.Wandora.main(Wandora.java:2255)

By the way you can quit the application org.wandora.application.Wandora in the finder.

regards

O

PostPosted: Fri Feb 06, 2009 4:15 pm
by akivela
Hi again

I assume you got Java 1.5 installed in your Mac. Wandora requires Java 1.6. Similar exception was discussed earlier in

http://www.wandora.net/wandora/forum/viewtopic.php?t=6

I suggest you to check the Java version installed to you computer and upgrade to the latest Java version if your version is 1.5 (or 5 - Java versions seem to be numbered ambiguously) or earlier.

---edit---
It looks like Sun has changed the version number of latest Java release to 6. Saying "1.6" above I refer to Java 6.
---end---

Kind Regards,
Aki / Wandora Team

PostPosted: Fri Feb 06, 2009 4:35 pm
by kubbe
Hi I assumed 1.6 was installed.

From apple website:


Summary
Java for Mac OS X 10.5 Update 2 provides improvements to security, performance and compatibility for Java SE 6, J2SE 5.0 and J2SE 1.4.2 on Mac OS X 10.5.

Products Affected
Java
This release updates Java SE 6 to version 1.6.0_07, J2SE 5.0 to version 1.5.0_16, and J2SE 1.4.2 to 1.4.2_18.

This release is only for Mac OS X 10.5.4 and later, and should not be installed on earlier versions of Mac OS X.

This release of J2SE 5.0 and J2SE 1.4.2 supports all Intel and PowerPC-based Macs. Java SE 6 is available on 64-bit, Intel-based Macs only.

And it seems that I don't have an 64 bit processor.
Hope that java 1.6 soon will be ported to 32 bit I guess...

PostPosted: Fri Feb 06, 2009 6:04 pm
by akivela
Hello

Unfortunately I have to admit there is little to do if you can't upgrade to Java 1.6. We have no plans to downgrade Wandora to Java 1.5 although I assume it would require only moderate effort. If you feel you can't live without Wandora, you might want to try Linux virtualization in your Mac. Available virtualization options are Sun's VirtualBox and VMWare. I personally run Ubuntu Linux in Windows XP's VirtualBox to test Wandora works fine in Linux.

Kind Regards,
Aki Kivela
Wandora Team