As a sanity check... I should be able to deploy JavaServer2.0 and have
have JavaClient2.0 talk to it, right?


p.s. These:


p.p.s. More info on what I'm trying (what is

murphy:JavaClient2.0 pdurbin$ git diff src
diff --git a/src/main/java/org/swordapp/client/
index 8358c10..be47a87 100644
--- a/src/main/java/org/swordapp/client/
+++ b/src/main/java/org/swordapp/client/
@@ -19,9 +19,9 @@ public class SwordCli
     private String exampleZip = "/Users/richard/Code/External/SSS/";
     private String image =
     private String docx = "/Users/richard/Code/Internal/DepositMO/hy.docx";
-    private String bagit = "/Users/richard/Dropbox/Documents/DUO/";
+    private String bagit = "/tmp/";
     //private String sdIRI = "http://localhost:8080/sd-uri";;
-    private String sdIRI = "http://localhost:8080/swordv2/servicedocument";;
+    private String sdIRI =
        private String user = "richard";
        private String pass = "dspace";
        private String obo = null;
murphy:JavaClient2.0 pdurbin$
murphy:JavaClient2.0 pdurbin$ java -jar target/sword2-client-0.9.2.jar
 INFO [main] ( - Requesting Service Document
from http://localhost:8080/JavaServer2.0/servicedocument with username
 WARN [main] ( - Unable to retrieve service
document from http://localhost:8080/JavaServer2.0/servicedocument;
responded with 500. Possible problem with SWORD server, or URL
Exception in thread "main" java.lang.NullPointerException
    at org.swordapp.client.SwordCli.tryFSDeposit(
    at org.swordapp.client.SwordCli.main(
murphy:JavaClient2.0 pdurbin$
murphy:JavaClient2.0 pdurbin$ curl -s
http://localhost:8080/JavaServer2.0/servicedocument | elinks -dump
                               HTTP Status 500 -


   type Exception report


   descriptionThe server encountered an internal error () that prevented it
   from fulfilling this request.


 javax.servlet.ServletException: Unable to instantiate class from

   root cause


   note The full stack traces of the exception and its root causes are
   available in the GlassFish Server Open Source Edition logs.


  GlassFish Server Open Source Edition
murphy:JavaClient2.0 pdurbin$
murphy:JavaClient2.0 pdurbin$ git log --oneline | head -1
056f545 add mets deposit tests and associated resources

p.p.p.s. Nobody is in #swordapp on freenode :( ... should we start it? :)

Philip Durbin
Software Developer for

This email is sponsored by Windows:

Build for Windows Store.
sword-app-tech mailing list

Reply via email to