Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

...

Code Block
[ytl@net-desk1:/opt/exist/current/bin]$ ./startup.sh 
Configuring eXist from /opt/exist/eXist-20060316/conf.xml
Found 1 catalog entries.
Loading catalog: /opt/exist/eXist-20060316/webapp/WEB-INF/catalog.xml
IN CONFIGURE
cluster.journal.maxStore 65000
cluster.journal.shift 100
30 Aug 2006 10:31:36,020 [main] INFO  \
  (FileResource.java [<clinit>]:60) - Checking Resource aliases 
30 Aug 2006 10:31:36,231 [main] INFO  \
  (HttpServer.java [setStatsOn]:1068) - Statistics on = false for org.mortbay.jetty.Server@97eded 
30 Aug 2006 10:31:36,240 [main] INFO  \
  (HttpServer.java [start]:654) - Starting Jetty/5.0.0 
30 Aug 2006 10:31:36,320 [main] INFO  \
  (HttpServer.java [start]:669) - Started org.mortbay.http.NCSARequestLog@1a897a9 
30 Aug 2006 10:31:36,786 [main] INFO  \
  (HttpContext.java [start]:1604) - Started WebApplicationContext[eXist Server,eXist Server] 
Logging already initialized. Skipping...
30 Aug 2006 10:31:38,173 [main] WARN  \
  (JavaUtils.java [isAttachmentSupported]:1305) \
  - Unable to find required classes \
  (javax.activation.DataHandler and javax.mail.internet.MimeMultipart). \
  Attachment support is disabled. 
30 Aug 2006 10:31:38,686 [main] INFO  \
  (SocketListener.java [start]:204) - Started SocketListener on 0.0.0.0:8680 
30 Aug 2006 10:31:38,687 [main] INFO  \
  (HttpServer.java [start]:690) - Started org.mortbay.jetty.Server@97eded 

...

Code Block
[ytl@net-desk1:/opt/mysql/current/bin]$ sudo ./mysqld_safe --user=mysql
Starting mysqld daemon with databases from /var/lib/mysql
  • assumed the previous errors were due to permission conflicts.

Connect to MySQL DB through the new socket, as the configuration appears to point to a socket file which doesn't exist:

...

Code Block
[ytl@net-desk1:/opt/perfSONAR/current-SQL_MA/perfsonar/ant]$ \
  ant -f build-sqlma.xml xmldb-init-sqlma
Buildfile: build-sqlma.xml

xmldb-init-sqlma:

getresource-rrdma:

xmldb-exist-rrdma:

BUILD FAILED
/afs/slac.stanford.edu/g/scs/net/netmon/perfSONAR/SQLtypeMAService/java/20060828/\
  perfSONAR-SQL_MA-src-snapshot-20060828/perfsonar/ant/sqlma/sqlma-exist-xmldb-targets.xml:29:\
  The following error occurred while executing this line:
/afs/slac.stanford.edu/g/scs/net/netmon/perfSONAR/SQLtypeMAService/java/20060828/\
  perfSONAR-SQL_MA-src-snapshot-20060828/perfsonar/ant/rrdma/rrdma-exist-xmldb-targets.xml:65:\
  Class org.apache.tools.ant.taskdefs.ConditionTask doesn't support the nested "exist" element.

Total time: 1 second

Darn.

Email from Roman suggested that the ant v1.6.2+ should support exist tasks. i'm using 1.6.5 tho. Anyway, he also said that I could just initiated it all manually.

So, created the collection via the eXist GUI and changed the properties:

Image Added
Image Added

Now need to create the store: the GUI asks for the location of an XML file to use. Looking throught the ant tasks shows that i need to find service.ma.conf_file which points to /opt/perfSONAR/current-SQL_MA/perfsonar/conf/sql-database_TEST.xml.

Selected and uploaded. Changed the ownership to me.

Image Added

And the final list of eXist stuff is:

Image Added

The ant list stuff didn't work. But assuming that the above configuration is okay.

SQL-MA Compilation

Download the jars and libs by using the command:

Code Block

ant -f build-sqlma.xml libs-sqlma

This copies a load of stuff from the web into /opt/perfSONAR/current-SQL_MA/perfsonar/lib/repository. Took over 10 minutes.

Compiling the files results in an error:

Code Block

[ytl@net-desk1:/opt/perfSONAR/current-SQL_MA/perfsonar/ant]$ ant -f build-sqlma.xml build-sqlma
Buildfile: build-sqlma.xml

build-sqlma:

clean-all:
   [delete] Deleting directory /afs/slac.stanford.edu/g/scs/net/netmon/perfSONAR/\
  SQLtypeMAService/java/20060828/perfSONAR-SQL_MA-src-snapshot-20060828/perfsonar/build/org

clean-jar-generic:

compile-generic:
    [javac] Compiling 242 source files to /afs/slac.stanford.edu/g/scs/net/netmon/perfSONAR/\
  SQLtypeMAService/java/20060828/perfSONAR-SQL_MA-src-snapshot-20060828/perfsonar/build
    [javac] /afs/slac.stanford.edu/g/scs/net/netmon/perfSONAR/SQLtypeMAService/java/20060828/\
perfSONAR-SQL_MA-src-snapshot-20060828/perfsonar/src/org/perfsonar/client/testHarness/\
SOAPClient.java:129: cannot find symbol
    [javac] symbol  : method setFormat(org.jdom.output.Format)
    [javac] location: class org.jdom.output.XMLOutputter
    [javac]                 outputter.setFormat(format);
    [javac]                          ^
    [javac] /afs/slac.stanford.edu/g/scs/net/netmon/perfSONAR/SQLtypeMAService/java/20060828/\
perfSONAR-SQL_MA-src-snapshot-20060828/perfsonar/src/org/perfsonar/client/testHarness/\
SOAPClientMulti.java:192: cannot find symbol
    [javac] symbol  : method setFormat(org.jdom.output.Format)
    [javac] location: class org.jdom.output.XMLOutputter
    [javac]                 outputter.setFormat(format);
    [javac]                          ^
    [javac] Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
    [javac] 2 errors

BUILD FAILED
/afs/slac.stanford.edu/g/scs/net/netmon/perfSONAR/SQLtypeMAService/java/20060828/\
  perfSONAR-SQL_MA-src-snapshot-20060828/perfsonar/ant/sqlma/sqlma-java-compile-targets.xml:42:\
  The following error occurred while executing this line:
/afs/slac.stanford.edu/g/scs/net/netmon/perfSONAR/SQLtypeMAService/java/20060828/\
  perfSONAR-SQL_MA-src-snapshot-20060828/perfsonar/ant/java-compile-targets.xml:70:\
  Compile failed; see the compiler error output for details.

Total time: 9 seconds