Tomcat7 can't load dspace-5.3 webapps

176 views
Skip to first unread message

Otuoma Sanya

unread,
Oct 14, 2015, 7:12:35 AM10/14/15
to DSpace Technical Support
I am installing dsapce-5.3 on debian 7 but tomcat seems to be unable to load dspace webapps.
It shows a blank web page and when i check the atalina.out file, i get the following errors:

------------------------------START ----- /var/log/tomcat7/catalina.out--------------------------------------------------
INFO: Starting service Catalina
Oct 14, 2015 2:04:17 PM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.28
Oct 14, 2015 2:04:17 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /var/lib/tomcat7/webapps/solr
Oct 14, 2015 2:04:19 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Error listenerStart
Oct 14, 2015 2:04:19 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Context [/solr] startup failed due to previous errors
Oct 14, 2015 2:04:19 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /var/lib/tomcat7/webapps/rest
Oct 14, 2015 2:04:20 PM org.apache.catalina.loader.WebappClassLoader validateJarFile
INFO: validateJarFile(/var/lib/tomcat7/webapps/rest/WEB-INF/lib/servlet-api-2.5-20081211.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
Oct 14, 2015 2:04:20 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Error listenerStart
Oct 14, 2015 2:04:20 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Context [/rest] startup failed due to previous errors
Oct 14, 2015 2:04:20 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /var/lib/tomcat7/webapps/oai
Oct 14, 2015 2:04:20 PM org.apache.catalina.loader.WebappClassLoader validateJarFile
INFO: validateJarFile(/var/lib/tomcat7/webapps/oai/WEB-INF/lib/servlet-api-2.5-20081211.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
Oct 14, 2015 2:04:21 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Error listenerStart
Oct 14, 2015 2:04:21 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Context [/oai] startup failed due to previous errors
Oct 14, 2015 2:04:21 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /var/lib/tomcat7/webapps/ROOT
Oct 14, 2015 2:04:21 PM org.apache.catalina.loader.WebappClassLoader validateJarFile
INFO: validateJarFile(/var/lib/tomcat7/webapps/ROOT/WEB-INF/lib/servlet-api-2.5-20081211.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
Oct 14, 2015 2:04:22 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Error listenerStart
Oct 14, 2015 2:04:22 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Context [] startup failed due to previous errors
Oct 14, 2015 2:04:22 PM org.apache.catalina.startup.HostConfig deployDirectory
-----------------------------------------------------END--------------------------------------------------------

When I check the WEB-INF/lib folders in each of the webapps, I can see the file servlet-api-2.5-20081211.jar is present.
What i don't understand is why it is not being loaded.

Mark H. Wood

unread,
Oct 14, 2015, 9:25:16 AM10/14/15
to DSpace Technical Support
That file *should not* be present. servlet-api is provided by
Tomcat. But this is not your problem; every DSpace site has those
messages.

The actual problem is probably logged in another file. Check all the
log files that Tomcat writes, and also the DSpace log files, to see if
there are clues there. The problem happens very early in the startup
of the webapp.s and the logging is probably not completely set up yet.

--
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
signature.asc

Otuoma Sanya

unread,
Oct 14, 2015, 10:14:59 AM10/14/15
to DSpace Technical Support
I have been checking and rechecking all the tomcat and dspace logs the whole day but the other files don't seem to have much more info than catalina.out.
They either show no error messages or are blank. I have also tried enabling DEBUG in log4j.properties file but no more detailed error messages are being generated.
I am considering using dspace-5.2 to see if this will resolve the issue.

Thanks again.

helix84

unread,
Oct 14, 2015, 10:23:13 AM10/14/15
to Otuoma Sanya, DSpace Technical Support
You should rebuild using "mvn clean package ...".
"clean" is the important part which makes sure that old versions of jars don't hang around and cause problems.


Regards,
~~helix84

Compulsory reading: DSpace Mailing List Etiquette
https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

Mark H. Wood

unread,
Oct 16, 2015, 1:38:12 PM10/16/15
to DSpace Technical Support
On Wed, Oct 14, 2015 at 04:22:48PM +0200, helix84 wrote:
> You should rebuild using "mvn clean package ...".
> "clean" is the important part which makes sure that old versions of jars
> don't hang around and cause problems.

That is generally good advice, but...servlet-api will still be there.
It harms nothing; it's just messy. The message is telling us that the
JAR was ignored, per the Servlet specification, because the container
provides one copy for all webapp.s.

One of our dependencies has an incorrect compile-scoped dependency on
servlet-api. (servlet-api should always be scoped 'provided').
There's a pull request (https://github.com/DSpace/DSpace/pull/953) for
a patch which corrects that.

The actual show-stopper problem is something else.
signature.asc

Enrique Martínez

unread,
Oct 19, 2015, 5:15:03 PM10/19/15
to DSpace Technical Support
I'm having the same problem with DSpace 5.3-release and 5.2-release

Specs: 

Apache Maven 3.0.4
Maven home: /usr/share/maven
Java version: 1.7.0_79, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-7-openjdk-amd64/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "3.2.0-4-amd64", arch: "amd64", family: "unix"
psql (PostgreSQL) 9.1.18

Regards,

Enrique Martínez

Otuoma Sanya

unread,
Oct 21, 2015, 4:39:20 AM10/21/15
to Enrique Martínez, DSpace Technical Support
I managed to get more logging info from tomcat.
Now, catalinalina.out says

java.lang.UnsupportedClassVersionError: org/dspace/solr/filters/ConfigureLog4jListener : Unsupported major.minor version 51.0 (unable to load class org.dspace.solr.filters.ConfigureLog4jListener)
I know this occures if running a lower java version but i have java 7 as shown below:



Apache Maven 3.0.4
Maven home: /usr/share/maven
Java version: 1.7.0_79, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-7-openjdk-amd64/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "3.2.0-4-amd64", arch: "amd64", family: "unix"
Tomcat 7
Postgres 9.1

Why would i still get this error?

--
You received this message because you are subscribed to a topic in the Google Groups "DSpace Technical Support" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/dspace-tech/JfHo3z1dgWI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to dspace-tech...@googlegroups.com.
To post to this group, send email to dspac...@googlegroups.com.
Visit this group at http://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.

Otuoma Sanya

unread,
Oct 23, 2015, 5:02:32 AM10/23/15
to DSpace Technical Support
Sorry I forget but this was solved by installing the latest java version 1.8
Reply all
Reply to author
Forward
0 new messages