Josi, According to the error message, for some reason the SWORD interface is unable to locate the plugin named "METS" in your dspace.cfg.
Are you sure your dspace.cfg at [dspace]/config/dspace.cfg actually has this configuration (where [dspace] is the DSpace installation directory)? plugin.named.org.dspace.content.packager.PackageIngester = \ org.dspace.content.packager.DSpaceAIPIngester = AIP, \ org.dspace.content.packager.PDFPackager = Adobe PDF, PDF, \ org.dspace.content.packager.DSpaceMETSIngester = METS, \ org.dspace.content.packager.RoleIngester = DSPACE-ROLES This is the set of configs that defines the "METS" PackageIngester plugin. Currently, your Dspace logs are claiming this configuration cannot be found: "2012-07-07 00:48:41,845 WARN org.dspace.core.PluginManager @ Cannot find named plugin for interface=org.dspace.content.packager.PackageIngester, name="METS" - Tim On 7/6/2012 11:34 PM, Josefina Perez Alvarez wrote: > <mailto:[email protected]>Hi, > > I'm doing my first tests on sword deposit and receiving error messages. > We are using DSpace 1.7.2 (sword 1.3) on Ubuntu 10.10. > > What I do until now: > *dspace.cfg changes/verifications:* > plugin.named.org.dspace.content.packager.PackageIngester = \ > org.dspace.content.packager.DSpaceAIPIngester = AIP, \ > org.dspace.content.packager.PDFPackager = Adobe PDF, PDF, \ > org.dspace.content.packager.DSpaceMETSIngester = METS, \ > org.dspace.content.packager.RoleIngester = DSPACE-ROLES > > > #--------------SWORD SPECIFIC CONFIGURATIONS--------------------# > plugin.named.org.dspace.content.packager.PackageIngester > sword.mets-ingester.package-ingester = METS > mets.default.ingest.crosswalk.EPDCX = SWORD > crosswalk.submission.SWORD.stylesheet = crosswalks/sword-swap-ingest.xsl > sword.deposit.url = http://a.b.c.d:8282/sword/deposit > sword.servicedocument.url = http://a.b.c.d:8282/sword/servicedocument > sword.media-link.url = http://a.b.c.d:8282/sword/media-link > sword.updated.field = dc.date.updated > sword.slug.field = dc.identifier.slug > sword.accept-packaging.METSDSpaceSIP.identifier = > http://purl.org/net/sword-types/METSDSpaceSIP > sword.accept-packaging.METSDSpaceSIP.q = 1.0 > sword.accepts = application/zip > sword.accept-packaging.[handle].METSDSpaceSIP.identifier = > http://purl.org/net/sword-types/METSDSpaceSIP > sword.accept-packaging.[handle].METSDSpaceSIP.q = 1.0 > sword.expose-items = false > sword.expose-communities = false > sword.max-upload-size = 0 > sword.keep-original-package = true > sword.identify-version = true > sword.on-behalf-of.enable = true > plugin.named.org.dspace.sword.SWORDIngester = \ > org.dspace.sword.SWORDMETSIngester = > http://purl.org/net/sword-types/METSDSpaceSIP, \ > org.dspace.sword.SimpleFileIngester = SimpleFileIngester > > # Configure XSLT-driven submission crosswalk for MODS > crosswalk.submission.MODS.stylesheet= crosswalks/mods-submission.xsl > # Configure XSLT-driven submission crosswalk for EPDCX. Originally > developed for use with SWORD. crosswalk.submission.EPDCX.stylesheet = > crosswalks/sword-swap-ingest.xsl > > > *Service document answer ok* (using curl, or by URL) > curl -i http://a.b.c.d:8282/sword/servicedocument --user > "myEmailAddress:myPassword" > > > *Deposit example.zip, not ok:* > curl -i --data-binary "@example.zip" -H "Content-Disposition: > filename=myDSpaceMETSItem.zip" -H "Content-Type: application/zip" -H > "X-Packaging: http://purl.org/net/sword-types/METSDSpaceSIP" -H > "X-No-Op: false" -H "X-Verbose: true" --user > "myEmailAddress:myPassword"http://a.b.c.d:8282/sword/deposit/123456789/6345 > > execution error: > =============== > HTTP/1.1 100 Continue > HTTP/1.1 500 Internal Server Error > [...] > java.lang.NullPointerException > > org.dspace.sword.SWORDMETSIngester.ingest(SWORDMETSIngester.java:71) > > org.dspace.sword.CollectionDepositor.doDeposit(CollectionDepositor.java:112) > org.dspace.sword.DepositManager.deposit(DepositManager.java:148) > > org.dspace.sword.DSpaceSWORDServer.doDeposit(DSpaceSWORDServer.java:120) > > org.purl.sword.server.DepositServlet.doPost(DepositServlet.java:299) > javax.servlet.http.HttpServlet.service(HttpServlet.java:637) > javax.servlet.http.HttpServlet.service(HttpServlet.java:717) > </pre></p><p><b>note</b> <u>The full stack trace of the root cause is > available in the Apache Tomcat/6.0.28 logs.</u></p><HR size="1" > noshade="noshade"><h3>Apache Tomcat/6.0.28</h3></body></html> > > > tomcat log: > ================= > 07/07/2012 00:14:31 org.apache.catalina.core.StandardWrapperValve invoke > GRAVE: Servlet.service() for servlet deposit threw exception > java.lang.NullPointerException > at > org.dspace.sword.SWORDMETSIngester.ingest(SWORDMETSIngester.java:71) > at > org.dspace.sword.CollectionDepositor.doDeposit(CollectionDepositor.java:112) > at org.dspace.sword.DepositManager.deposit(DepositManager.java:148) > at > org.dspace.sword.DSpaceSWORDServer.doDeposit(DSpaceSWORDServer.java:120) > at > org.purl.sword.server.DepositServlet.doPost(DepositServlet.java:299) > > > dspace.log > =============================== > 2012-07-07 00:48:41,806 INFO org.dspace.sword.SWORDService @ > [2012-07-07 00:48:41.806] Initialising verbose deposit; > 2012-07-07 00:48:41,824 INFO org.dspace.sword.SWORDService @ > [2012-07-07 00:48:41.824] Performing deposit using location: > http://a.b.c.d:8282/sword/deposit/123456789/6345; > 2012-07-07 00:48:41,824 INFO org.dspace.sword.SWORDService @ > [2012-07-07 00:48:41.824] Location resolves to collection with handle: > 123456789/6345 and name: SWORD deposit by BMC; > 2012-07-07 00:48:41,840 INFO org.dspace.sword.SWORDService @ > [2012-07-07 00:48:41.840] User is authorised to submit to collection; > 2012-07-07 00:48:41,841 INFO org.dspace.sword.SWORDService @ > [2012-07-07 00:48:41.841] Authenticated user: myEmailAddress; > 2012-07-07 00:48:41,841 INFO org.dspace.sword.SWORDService @ > [2012-07-07 00:48:41.841] Initialising depositor for an Item in a > Collection; > 2012-07-07 00:48:41,844 INFO org.dspace.sword.SWORDService @ > [2012-07-07 00:48:41.844] Loaded ingester: > org.dspace.sword.SWORDMETSIngester; > 2012-07-07 00:48:41,844 INFO org.dspace.sword.SWORDService @ > [2012-07-07 00:48:41.844] Using package manifest format: METS; > 2012-07-07 00:48:41,845 ERROR org.dspace.core.PluginManager @ No named > plugins found for interface=org.dspace.content.packager.PackageIngester > 2012-07-07 00:48:41,845 WARN org.dspace.core.PluginManager @ Cannot > find named plugin for > interface=org.dspace.content.packager.PackageIngester, name="METS" > 2012-07-07 00:48:41,846 ERROR org.dspace.sword.SWORDMETSIngester @ > caught exception: > java.lang.NullPointerException > at > org.dspace.sword.SWORDMETSIngester.ingest(SWORDMETSIngester.java:71) > > "Cannot find named plugin". > Can anyone help me to see what I'm doing wrong? > > Thank in advance, > Josi Perez > > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > > > > _______________________________________________ > DSpace-tech mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/dspace-tech > ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ DSpace-tech mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/dspace-tech

