Thanks Mark,

Mark H. Wood wrote:
> I think you may be seeing https://jira.duraspace.org/browse/DS-2502
> (Incorrect dependencies drag javax.servlet:servlet-api into all
> webapp.s)
> 
> There's an untested patch at https://github.com/DSpace/DSpace/pull/953

> The PR previously mentioned is meant to prevent servlet-api being pulled in.
> 
> I would be interested to learn whether this patch is helpful.

Yes, very!

I patched the 2 pom files as detailed in that patch and, after cleaning 
everything out and starting again, I was able to rebuild/redeploy DSpace v5.2 
AND successfully access the JSPUI interface :-)

I did not undo the changes I made to the pom files previously (to reference 
v3.1 of servlet-api and the new Artifact ID as discussed in 
http://sourceforge.net/p/dspace/mailman/message/33532346/) but simply added the 
changes outlined in the patch. Let me know if that was not correct!

You say above that this patch should prevent servlet-api being pulled into the 
DSpace WARs, but I note that if I look for the servlet-api, it does still turn 
up (although not as much as previously!):

# find /usr/src/dspace-5.2-src-release -name '*servlet-api*' -print
/usr/src/dspace-5.2-src-release/dspace-oai/target/dspace-oai-5.2/WEB-INF/lib/servlet-api-2.5.jar
/usr/src/dspace-5.2-src-release/dspace-xmlui/target/dspace-xmlui-5.2/WEB-INF/lib/servlet-api-2.4.jar
/usr/src/dspace-5.2-src-release/dspace/modules/swordv2/target/swordv2-5.2/WEB-INF/lib/servlet-api-2.4.jar
/usr/src/dspace-5.2-src-release/dspace/modules/oai/target/oai-5.2/WEB-INF/lib/servlet-api-2.5.jar
/usr/src/dspace-5.2-src-release/dspace/modules/xmlui/target/xmlui-5.2/WEB-INF/lib/servlet-api-2.4.jar
/usr/src/dspace-5.2-src-release/dspace/target/dspace-installer/webapps/swordv2/WEB-INF/lib/servlet-api-2.4.jar
/usr/src/dspace-5.2-src-release/dspace/target/dspace-installer/webapps/oai/WEB-INF/lib/servlet-api-2.5.jar
/usr/src/dspace-5.2-src-release/dspace/target/dspace-installer/webapps/xmlui/WEB-INF/lib/servlet-api-2.4.jar
/usr/src/dspace-5.2-src-release/dspace/target/dspace-installer/lib/javax.servlet-api-3.1.0.jar
/usr/src/dspace-5.2-src-release/dspace/target/dspace-installer/lib/servlet-api-2.5.jar
/usr/src/dspace-5.2-src-release/dspace-swordv2/target/dspace-swordv2-5.2/WEB-INF/lib/servlet-api-2.4.jar

So, it may be that this patch has only partially fixed the problem? (i.e. just 
enough for me to get into the JSPUI?) - I've not yet done anything beyond bring 
up the home page with the vanilla install, so perhaps I'm going to bump up 
against this issue again when/if I start using any of the webapps listed above 
that still seem to contain explicit references to servlet-api v2.4/2.5? If I 
should be concerned about the above, just let me know!

But for now I've cleared the hurdle that was preventing me getting the basic 
install up and running - hopefully it will be smooth sailing from here on in, 
but if not, I'll certainly shout! :-)

Thanks a million, that was very helpful indeed!

Cheers,

Mike

Michael White
eLearning Developer
Information Services

T: (01786) 466877
E: michael.wh...@stir.ac.uk
A: S8, Library, University of Stirling, Stirling, FK9 4LA 

> 
> Message: 2
> Date: Wed, 27 May 2015 15:20:46 +0100
> From: Michael White <michael.wh...@stir.ac.uk>
> Subject: [Dspace-tech] DSpace 5.2, Tomcat 8,  JSPUI and servlet-api
>       version problems?
> To: "dspace-tech@lists.sourceforge.net"
>       <dspace-tech@lists.sourceforge.net>
> Message-ID:
>       <7C43CB6F3460394F9B5236C0F68D7B6AC522E3B0BC@EXCH2007.a
> d.stir.ac.uk>
> Content-Type: text/plain; charset="us-ascii"
> 
> Hi,
> 
> I've been trying to bring up a brand new install of DSpace 5.2 on a shiny new
> box with the following:
> 
> Debian 8
> OpenJDK 7U79
> Maven 3.0.5
> Ant 1.9.4
> PostgreSQL 9.4
> Tomcat 8.0.14
> 
> I've been able to build and deploy, but when I try and access the JSPUI, I get
> an Internal Server Error (XMLUI works OK, but I want to use JSPUI):
> 
> Exception:
> org.apache.jasper.JasperException: Unable to compile class for JSP:
> 
> An error occurred at line: [60] in the generated java file:
> [/var/lib/tomcat8/work/Catalina/localhost/jspui/org/apache/jsp/index_jsp.jav
> a]
> The method getDispatcherType() is undefined for the type
> HttpServletRequest
> 
> Stacktrace:
>       at
> 

<snip>

> 
> Help! :-)
> 
> Cheers,
> 
> Mike
> 
> Michael White
> eLearning Developer
> Information Services
> 
> T: (01786) 466877
> E: michael.wh...@stir.ac.uk
> A: S8, Library, University of Stirling, Stirling, FK9 4LA
> 
> 
> --
> The University is ranked in the QS World Rankings of the top 5% of
> universities in the world (QS World University Rankings, 2014) The University
> of Stirling is a charity registered in Scotland,  number SC 011159.
> 
> 
> 
> Message: 4
> Date: Wed, 27 May 2015 13:47:13 -0400
> From: "Mark H. Wood" <mw...@iupui.edu>
> Subject: Re: [Dspace-tech] DSpace 5.2, Tomcat 8, JSPUI and servlet-api
>       version problems?
> To: dspace-tech@lists.sourceforge.net
> Message-ID: <20150527174712.ga13...@iupui.edu>
> Content-Type: text/plain; charset="us-ascii"
> 
> I think you may be seeing https://jira.duraspace.org/browse/DS-2502
> (Incorrect dependencies drag javax.servlet:servlet-api into all
> webapp.s)
> 
> There's an untested patch at https://github.com/DSpace/DSpace/pull/953
> 
> --
> Mark H. Wood
> Lead Technology Analyst
> 
> University Library
> Indiana University - Purdue University Indianapolis
> 755 W. Michigan Street
> Indianapolis, IN 46202
> 317-274-0749
> www.ulib.iupui.edu
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: not available
> Type: application/pgp-signature
> Size: 181 bytes
> Desc: Digital signature
> 
> ------------------------------
> 
> Message: 5
> Date: Wed, 27 May 2015 13:50:57 -0400
> From: "Mark H. Wood" <mw...@iupui.edu>
> Subject: Re: [Dspace-tech] DSpace 5.2, Tomcat 8, JSPUI and servlet-api
>       version problems?
> To: dspace-tech@lists.sourceforge.net
> Message-ID: <20150527175057.gb13...@iupui.edu>
> Content-Type: text/plain; charset="us-ascii"
> 
> Sorry, my previous post was a bit terse.
> 
> DSpace should not be including *any* version of servlet-api.jar in its
> webapp.s.  The Servlet spec. requires that this be provided by the container.
> The PR previously mentioned is meant to prevent servlet-api being pulled in.
> 
> I would be interested to learn whether this patch is helpful.
> 
> --
> Mark H. Wood
> Lead Technology Analyst
> 
> University Library
> Indiana University - Purdue University Indianapolis
> 755 W. Michigan Street
> Indianapolis, IN 46202
> 317-274-0749
> www.ulib.iupui.edu
> _______________________________________________
> DSpace-tech mailing list
> DSpace-tech@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/dspace-tech
> 
> 
> End of DSpace-tech Digest, Vol 109, Issue 105
> *********************************************

-- 
The University is ranked in the QS World Rankings of the top 5% of universities 
in the world (QS World University Rankings, 2014)
The University of Stirling is a charity registered in Scotland, 
 number SC 011159.


------------------------------------------------------------------------------
_______________________________________________
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

Reply via email to