Sue,

For DSpace 1.3.2, you should have a xercesImpl.jar in [dspace]/lib/

Here's a list of all the JARs that came with DSpace 1.3.2:

http://dspace.svn.sourceforge.net/viewvc/dspace/tags/dspace-1_3_2/dspace/lib/
(that's the list from the Subversion code repository)

So, you might want to do a quick check to make sure you have all the 
appropriate JARs.  Again, the ones having to do with XML (in general) 
are: xalan.jar, xercesImpl.jar and xml-apis.jar.

- Tim

Sue Walker-Thornton wrote:
> I just noticed something else.  xerces.jar is not under /dspace/lib, but 
> it is under WEB-INF/lib.   Should it be under /dspace/lib also? 
>  
> /-------Original Message-------/
>  
> /*From:*/ Graham Triggs <mailto:[EMAIL PROTECTED]>
> /*Date:*/ 2/20/2007 5:29:52 PM
> /*To:*/ Sue Walker-Thornton <mailto:[EMAIL PROTECTED]>; Tim 
> Donohue <mailto:[EMAIL PROTECTED]>
> /*Cc:*/ dspace-tech@lists.sourceforge.net 
> <mailto:dspace-tech@lists.sourceforge.net>
> /*Subject:*/ Re: [Dspace-tech] Implementing OAI-PMH as a Data Provider
>  
> <java_home> is the base directory of your JDK.
>  
> If it doesn't already exist, create an 'endorsed' directory underneath 
> 'lib', and copy the JAR file there.
>  
> That said, your application server may have it's own endorsed directory 
> (ie. Tomcat has <catalina_home>/common/endorsed), that may be providing 
> an xml-apis.jar. Or you may be able to define an endorsed directory 
> (-Djava.endorsed.dirs=)
>  
> (NB: although you are using iPlanet, the web container is Tomcat - aka 
> 'Catalina').
>  
> I don't have any specific experience of iPlanet, and unless someone else 
> has, you're going to have to do a fair bit of digging to see how all 
> this applies to your specific installation.
>  
> Maybe you could try getting a list of all the locations that contain a 
> xercesImpl.jar or xml-apis.jar?
>  
> G
> ----- Original Message -----
> *From:* Sue Walker-Thornton <mailto:[EMAIL PROTECTED]>
> *To:* Tim Donohue <mailto:[EMAIL PROTECTED]> ; Graham Triggs 
> <mailto:[EMAIL PROTECTED]>
> *Cc:* dspace-tech@lists.sourceforge.net 
> <mailto:dspace-tech@lists.sourceforge.net>
> *Sent:* Tuesday, February 20, 2007 10:11 PM
> *Subject:* Re: [Dspace-tech] Implementing OAI-PMH as a Data Provider
> 
> Graham - pls. Disregard this last email - I misunderstood what you were 
> saying.  The copy didn't work obviously - so how do I "add to 
> <Java-home>/lib/endorsed?
>  
>  
> /-------Original Message-------/
>  
> /*From:*/ Sue Walker-Thornton <mailto:[EMAIL PROTECTED]>
> /*Date:*/ 2/20/2007 5:07:35 PM
> /*To:*/ Tim Donohue <mailto:[EMAIL PROTECTED]>; Graham Triggs 
> <mailto:[EMAIL PROTECTED]>
> /*Cc:*/ dspace-tech@lists.sourceforge.net 
> <mailto:dspace-tech@lists.sourceforge.net>
> /*Subject:*/ Re: [Dspace-tech] Implementing OAI-PMH as a Data Provider
>  
> I copied xml-apis.jar from /dspace/lib to the library that's specified 
> as $JAVA_HOME in the .profile under /dspace and it made no 
> difference....same error.
>  
> The thing I was wondering about is why no one else has run into this 
> problem, since the documentation for DSpace 1.3.2 says you need  Java 
> 1.4 or later......???
>  
> I'll look at Tim's suggestions now.
>  
> Thanks Graham,
> Sue
>  
> /-------Original Message-------/
>  
> /*From:*/ Graham Triggs <mailto:[EMAIL PROTECTED]>
> /*Date:*/ 2/20/2007 4:34:03 PM
> /*To:*/ Tim Donohue <mailto:[EMAIL PROTECTED]>; Sue Walker-Thornton 
> <mailto:[EMAIL PROTECTED]>
> /*Cc:*/ dspace-tech@lists.sourceforge.net 
> <mailto:dspace-tech@lists.sourceforge.net>
> /*Subject:*/ Re: [Dspace-tech] Implementing OAI-PMH as a Data Provider
>  
> xml-apis.jar won't load correctly if it is only on the classpath. It needs
> to be in an endorsed directory:
>  
> http://java.sun.com/j2se/1.4.2/docs/guide/standards/
>  
> Adding the xml-apis.jar from the DSpace distribution to
>  
> <java-home>/lib/endorsed
>  
> could solve the problem. Otherwise you are back to Xerces versions and/or
> JDK upgrades.
>  
> G
>  
> ----- Original Message -----
> From: "Tim Donohue" <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>>
> To: "Sue Walker-Thornton" <[EMAIL PROTECTED] 
> <mailto:[EMAIL PROTECTED]>>
> Cc: "Graham Triggs" <[EMAIL PROTECTED] 
> <mailto:[EMAIL PROTECTED]>>;
> <dspace-tech@lists.sourceforge.net 
> <mailto:dspace-tech@lists.sourceforge.net>>
> Sent: Tuesday, February 20, 2007 9:23 PM
> Subject: Re: [Dspace-tech] Implementing OAI-PMH as a Data Provider
>  
>  
>  > Sue,
>  >
>  > You shouldn't have to upgrade to JDK 1.5.  DSpace 1.3.2 should work on
>  > 1.4.x or above.
>  >
>  > First, I should admit, I've never used IPlanet.  So, I cannot speak from
>  > experience regarding it (so, if there's anyone else out there who can,
>  > speak up! :)
>  >
>  > Strangely, the error message you posted looks to be referring more to
>  > IPlanet (though I could be reading it wrong, since I don't have IPlanet
>  > experience).  It almost looks like IPlanet is having trouble loading a
>  > "default configuration"
>  > (org.Apache.catalina.startup.ContextConfig.defaultConfig) from some XML
>  > config file, and cannot find the correct Xerces implementation to do so.
>  >
>  > But, then again, if this is only happening for the "dspace-oai.war" then
>  > that may not be the case.
>  >
>  > In any case, when it comes down to it, this sounds like some sort of Java
>  > classpath issue.
>  >
>  > A few things you might want to look into:
>  >
>  > 1) For your DSpace 1.3.2 installation, make sure all the various JARs 
> that
>  > come with DSpace look to be in the [dspace]/lib directory.  In 
> particular,
>  > look at the ones having to do with XML:
>  >
>  > - xalan.jar
>  > - xercesImpl.jar
>  > - xml-apis.jar (perhaps most important, since that's where the java
>  > interface "org.xml.sax.ext.Attributes2" resides).
>  >
>  > Also, double check you don't have duplicates (e.g. two starting with
>  > "xerces", etc.).  (You could also unzip the "dspace-oai.war" to make sure
>  > it also has each of those jar files in the "WEB-INF/lib" directory)
>  >
>  > 2) You might also want to look at the java classpath that IPlanet 
> uses, to
>  > see if it's somehow accessing the "wrong" xerces or JAXP jar files. I'm
>  > unfortunately not going to be any help here, since I have never used
>  > IPlanet.
>  >
>  > Hopefully that's still of a little help.  Anyone else out there more
>  > familiar with IPlanet?
>  >
>  > -Tim
>  >
>  >
>  > Sue Walker-Thornton wrote:
>  >> Hi Graham,
>  >>      Our JDK is 1.4.2.  Are you saying I need to upgrade to 1.5??  Is
>  >> this going to have any impact on the rest of DSpace?  It's 1.3.2 running
>  >> on a Sun server with IPlanet.
>  >> Thanks a bunch,
>  >> Sue
>  >>  /-------Original Message-------/
>  >>  /*From:*/ Graham Triggs <mailto:[EMAIL PROTECTED]>
>  >> /*Date:*/ 2/20/2007 3:19:40 PM
>  >> /*To:*/ Sue Walker-Thornton <mailto:[EMAIL PROTECTED]>; Tim
>  >> Donohue <mailto:[EMAIL PROTECTED]>
>  >> /*Cc:*/ dspace-tech@lists.sourceforge.net 
> <mailto:dspace-tech@lists.sourceforge.net>
>  >> <mailto:dspace-tech@lists.sourceforge.net>
>  >> /*Subject:*/ Re: [Dspace-tech] Implementing OAI-PMH as a Data Provider
>  >>  Hi Sue,
>  >>  The org.xml.sax.ext package is part of JAXP and should be provided by
>  >> the platform.
>  >>  Attributes2 appears to have been introduced in JDK 5.0:
>  >>
>  >> 
> http://java.sun.com/j2se/1.5.0/docs/api/org/xml/sax/ext/package-summary.html
>  >>  (compare to 1.4.2:
>  >> 
> http://java.sun.com/j2se/1.4.2/docs/api/org/xml/sax/ext/package-summary.html)
>  >>  So, it looks like the Xerces jar that is being loaded was built to run
>  >> on JDK 5.0 and above.
>  >>  I don't know if you can successfully use an older version of Xerces,
>  >> otherwise you may need to update the JVM that you are running on.
>  >>  G
>  >>  ----- Original Message -----
>  >> *From:* Sue Walker-Thornton <mailto:[EMAIL PROTECTED]>
>  >> *To:* Tim Donohue <mailto:[EMAIL PROTECTED]>
>  >> *Cc:* dspace-tech@lists.sourceforge.net 
> <mailto:dspace-tech@lists.sourceforge.net>
>  >> <mailto:dspace-tech@lists.sourceforge.net>
>  >> *Sent:* Tuesday, February 20, 2007 8:07 PM
>  >> *Subject:* Re: [Dspace-tech] Implementing OAI-PMH as a Data Provider
>  >>
>  >> Hi Tim,
>  >>      Thanks for clarifying that for me.  That's very helpful.  My only
>  >> problem (and perhaps the source of my problem...?) is that we don't use
>  >> Tomcat - we use IPlanet and when I tried to deploy my dspace-oai web
>  >> application, this is the error I got:  (pls. Keep in mind that when I
>  >> paste things in the email, they sometimes get capitalized - that 
> wouldn't
>  >> be the problem - I think it's the Attributes2 thing it can't find and I
>  >> have no idea what or why):
>  >>  [20/Feb/2007:11:21:05] info (18466): WEB0100: Loading web module in
>  >> virtual server [https-dspace] at [/dspace/jsp]
>  >>
>  >> [20/Feb/2007:11:21:07] info (18466): WEB0100: Loading web module in
>  >> virtual server [https-dspace] at [/dspace/dspace-oai]
>  >>
>  >> [20/Feb/2007:11:21:07] info (18466): WEB0100: Loading web module in
>  >> virtual server [https-dspace] at [/search]
>  >>
>  >> [20/Feb/2007:11:21:13] failure (18466): CORE4007: Internal error:
>  >> Unexpected Java exception thrown (Java.lang.NoClassDefFoundError:
>  >> org/xml/sax/ext/Attributes2, org/xml/sax/ext/Attributes2), stack:
>  >> Java.lang.NoClassDefFoundError: org/xml/sax/ext/Attributes2
>  >> At Java.lang.ClassLoader.defineClass0(Native Method)
>  >> At Java.lang.ClassLoader.defineClass(ClassLoader.Java:537)
>  >> At
>  >> Java.security.SecureClassLoader.defineClass(SecureClassLoader.Java:123)
>  >> At
>  >> 
> org.Apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.Java:1717)
>  >> At
>  >> 
> org.Apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.Java:983)
>  >> At
>  >> 
> org.Apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.Java:1431)
>  >> At
>  >> 
> org.Apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.Java:1301)
>  >> At Java.lang.ClassLoader.loadClassInternal(ClassLoader.Java:302)
>  >> At org.Apache.xerces.parsers.AbstractSAXParser.<init>(Unknown Source)
>  >> At org.Apache.xerces.parsers.SAXParser.<init>(Unknown Source)
>  >> At org.Apache.xerces.parsers.SAXParser.<init>(Unknown Source)
>  >> At org.Apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.<init>(Unknown
>  >> Source)
>  >> At org.Apache.xerces.jaxp.SAXParserImpl.<init>(Unknown Source)
>  >> At org.Apache.xerces.jaxp.SAXParserFactoryImpl.newSAXParser(Unknown
>  >> Source)
>  >> At org.Apache.catalina.util.xml.XmlMapper.readXml(XmlMapper.Java:274)
>  >> At
>  >> 
> org.Apache.catalina.startup.ContextConfig.defaultConfig(ContextConfig.Java:882)
>  >> At
>  >> org.Apache.catalina.startup.ContextConfig.start(ContextConfig.Java:1004)
>  >> At
>  >> 
> org.Apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.Java:257)
>  >> At
>  >> 
> org.Apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.Java:155)
>  >> At
>  >> 
> org.Apache.catalina.core.StandardContext.start(StandardContext.Java:3702)
>  >> At Com.iplanet.ias.web.WebModule.start(WebModule.Java:251)
>  >> At org.Apache.catalina.core.ContainerBase.start(ContainerBase.Java:1133)
>  >> At org.Apache.catalina.core.StandardHost.start(StandardHost.Java:652)
>  >> At org.Apache.catalina.core.ContainerBase.start(ContainerBase.Java:1133)
>  >> At 
> org.Apache.catalina.core.StandardEngine.start(StandardEngine.Java:355)
>  >> At org.Apache.catalina.startup.Embedded.start(Embedded.Java:995)
>  >> At Com.iplanet.ias.web.WebContainer.start(WebContainer.Java:431)
>  >> At Com.iplanet.ias.web.WebContainer.startInstance(WebContainer.Java:500)
>  >> At Com.iplanet.ias.server.J2EERunner.confPostInit(J2EERunner.Java:161)
>  >>
>  >>
>  >> [20/Feb/2007:11:21:13] failure (18466): CORE3186: Failed to set
>  >> configuration
>  >>
>  >>  Thanks,
>  >> Sue
>  >>  /-------Original Message-------/
>  >>  /*From:*/ Tim Donohue <mailto:[EMAIL PROTECTED]>
>  >> /*Date:*/ 2/20/2007 2:30:11 PM
>  >> /*To:*/ Sue Walker-Thornton <mailto:[EMAIL PROTECTED]>
>  >> /*Cc:*/ dspace-tech@lists.sourceforge.net 
> <mailto:dspace-tech@lists.sourceforge.net>
>  >> <mailto:dspace-tech@lists.sourceforge.net>
>  >> /*Subject:*/ Re: [Dspace-tech] Implementing OAI-PMH as a Data Provider
>  >>  Sue,
>  >>  The OAICat JAR that your noted actually comes bundled with DSpace (so
>  >> it's there when you download DSpace).
>  >>  In fact, you really don't have to do much to implement OAI-PMH.  It's
>  >> all done for you.  When you compile the DSpace software, it generates
>  >> two ".war" files:  dspace.war and dspace-oai.war  (the former is the
>  >> DSpace application, the latter being the OAI-PMH interface).
>  >>  Assuming you place the "dspace-oai.war" alongside your "dspace.war" in
>  >> Tomcat, then your OAI-PMH base URL should be something like:
>  >>  http://localhost:8080/dspace-oai/request
>  >> (you may need to replace "localhost" with your server-name)
>  >>  You can test it by passing the OAI-PMH "ListRecords" verb:
>  >>
>  >> 
> http://localhost:8080/dspace-oai/request?verb=ListRecords&metadataPrefix=oai_dc
>  >>  Let us know if any of this still doesn't make sense or isn't 
> working for
>  >> you!
>  >>  - Tim
>  >>  --
>  >>  ========================================
>  >> Tim Donohue
>  >> Research Programmer, Illinois Digital Environment for
>  >> Access to Learning and Scholarship (IDEALS)
>  >> 135 Grainger Engineering Library
>  >> University of Illinois at Urbana-Champaign
>  >>  email: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> 
> <mailto:[EMAIL PROTECTED]>
>  >> web:   http://www.ideals.uiuc.edu <http://www.ideals.uiuc.edu/> 
> <http://www.ideals.uiuc.edu/>
>  >> phone: (217) 333-4648
>  >> fax:   (217) 244-7764
>  >> ========================================
>  >>  Sue Walker-Thornton wrote:
>  >>  > Hi,
>  >>  >      Can someone give me the quick and easy version of the
>  >> documentation
>  >>  > of how to implement OAI-PMH on our DSpace website?  Do I need to
>  >>  > download and install the files from the OAICat jar distribution at
>  >>  > http://www.oclc.org/research/software/oai/cat.htm ?  If so, where 
> do I
>  >>  > put it on a Sun server?  /dspace/lib??  /WEB-INF/lib....???
>  >>  >
>  >>  >      Any help would very much be appreciated!
>  >>  > Best,
>  >>  > Sue
>  >>  >
>  >>  >
>  >>  >
>  >>  >
>  >>  >
>  >>  >
>  >>  > Sue Walker-Thornton
>  >>  > NASA Langley ConITS Contract
>  >>  > 130 Research Drive
>  >>  > Hampton, VA  23666
>  >>  > Office:  (757) 224-4074
>  >>  > Fax:     (757) 224-4001
>  >>  > Pager:  (757) 988-2547
>  >>  > [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> 
> <mailto:[EMAIL PROTECTED]>
>  >> <mailto:[EMAIL PROTECTED]>
>  >>  >
>  >>  >
>  >>  >
>  >>  > FREE Emoticons for your email – by IncrediMail! Click Here!
>  >>  > <http://www.incredimail.com/index.asp?id=99278>
>  >>  >
>  >>  >
>  >>  > 
> ------------------------------------------------------------------------
>  >>  >
>  >>  > 
> -------------------------------------------------------------------------
>  >>  > Take Surveys. Earn Cash. Influence the Future of IT
>  >>  > Join SourceForge.net's Techsay panel and you'll get the chance to
>  >> share your
>  >>  > opinions on IT & business topics through brief surveys-and earn cash
>  >>  >
>  >> 
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV 
> <http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV>
>  >> 
> <http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV 
> <http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV>>
>  >>  >
>  >>  >
>  >>  > 
> ------------------------------------------------------------------------
>  >>  >
>  >>  > _______________________________________________
>  >>  > DSpace-tech mailing list
>  >>  > DSpace-tech@lists.sourceforge.net 
> <mailto:DSpace-tech@lists.sourceforge.net>
>  >> <mailto:DSpace-tech@lists.sourceforge.net>
>  >>  > https://lists.sourceforge.net/lists/listinfo/dspace-tech
>  >>  -------------------------------------------------------------------------
>  >> Take Surveys. Earn Cash. Influence the Future of IT
>  >> Join SourceForge.net's Techsay panel and you'll get the chance to share
>  >> your
>  >> opinions on IT & business topics through brief surveys-and earn cash
>  >> 
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV 
> <http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV>
>  >> 
> <http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV 
> <http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV>>
>  >> _______________________________________________
>  >> DSpace-tech mailing list
>  >> DSpace-tech@lists.sourceforge.net 
> <mailto:DSpace-tech@lists.sourceforge.net>
>  >> <mailto:DSpace-tech@lists.sourceforge.net>
>  >> https://lists.sourceforge.net/lists/listinfo/dspace-tech
>  >> .
>  >>
>  >>
>  >> ------------------------------------------------------------------------
>  >>
>  >> 
> -------------------------------------------------------------------------
>  >> Take Surveys. Earn Cash. Influence the Future of IT
>  >> Join SourceForge.net's Techsay panel and you'll get the chance to share
>  >> your
>  >> opinions on IT & business topics through brief surveys-and earn cash
>  >> 
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV 
> <http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV>
>  >>
>  >> ------------------------------------------------------------------------
>  >>
>  >> _______________________________________________
>  >> DSpace-tech mailing list
>  >> DSpace-tech@lists.sourceforge.net 
> <mailto:DSpace-tech@lists.sourceforge.net>
>  >> https://lists.sourceforge.net/lists/listinfo/dspace-tech
>  >>  FREE Emoticons for your email – by IncrediMail! Click Here!
>  >> <http://www.incredimail.com/index.asp?id=99000>
>  >>
>  >>
>  >> ------------------------------------------------------------------------
>  >>
>  >> 
> -------------------------------------------------------------------------
>  >> Take Surveys. Earn Cash. Influence the Future of IT
>  >> Join SourceForge.net's Techsay panel and you'll get the chance to share
>  >> your
>  >> opinions on IT & business topics through brief surveys-and earn cash
>  >> 
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV 
> <http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV>
>  >>
>  >>
>  >> ------------------------------------------------------------------------
>  >>
>  >> _______________________________________________
>  >> DSpace-tech mailing list
>  >> DSpace-tech@lists.sourceforge.net 
> <mailto:DSpace-tech@lists.sourceforge.net>
>  >> https://lists.sourceforge.net/lists/listinfo/dspace-tech
>  >
>  
> This email has been scanned by Postini.
> For more information please visit http://www.postini.com 
> <http://www.postini.com/>
>  
>  
>               
> 
>  
>               
> 
> FREE Emoticons for your email – by IncrediMail! Click Here! 
> <http://www.incredimail.com/index.asp?id=99433>
> 
> 
> ------------------------------------------------------------------------
> 
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> DSpace-tech mailing list
> DSpace-tech@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/dspace-tech

-- 

========================================
Tim Donohue
Research Programmer, Illinois Digital Environment for
Access to Learning and Scholarship (IDEALS)
135 Grainger Engineering Library
University of Illinois at Urbana-Champaign

email: [EMAIL PROTECTED]
web:   http://www.ideals.uiuc.edu
phone: (217) 333-4648
fax:   (217) 244-7764
========================================

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to