Thanks for the input Chris, I’ve responded inline...

On 11/01/2018 15:48, "Christopher Schultz" <ch...@christopherschultz.net>
wrote:


>-----BEGIN PGP SIGNED MESSAGE-----
>Hash: SHA256
>
>Sean,
>
>(Thanks for moving to the mailing list; it's a much better forum for
>getting into a protracted discussion. See below for more, inline.)
>
>On 1/10/18 9:08 AM, Sean Brett wrote:
>> I've been tasked with migrating a site from one institution to
>> another. As part of the process we are attempting to update the
>> versions the site uses.
>> 
>> Initially I was asked to use Java 8 with Tomcat 5.5 (on Linux),
>> which led to issues - not to mention Tomcat 5 being 'out of
>> support¹.  I have since tried to deploy the webapps to Tomcat 9
>> with Java 8. Some of the webapps appear to run fine (and resolve
>> the issues I was having with Tomcat5). However, the main app (and 2
>> similar/smaller web apps) throws a JasperException when I go to the
>> index.jsp - the same web apps deployed to Tomcat 5.5 load without
>> issue.
>
>Moving to a later Tomcat version is best. We'll help you figure out
>these issues so you can use a current version and be better-equipped
>to stay current into the future.
>
>> Most of the similar issues I have found have suggested this would
>> be related to the jar files and possibly some sort of conflict.
>> However, the lib structure for tomcat 9 is different to tomcat5 and
>> I'm not sure which jars could be causing this. e.g.
>> https://stackoverflow.com/questions/22552244/tomcat-7-fails-to-compile
>- -jsp-
>>
>> 
>pages
>
>JAR files might conflict, but that depends upon what you have done so
>far. Easy questions:
>
>1. Have you added anything to Tomcat's lib/ directory (that would be
>CATALINA_HOME/lib or CATALINA_BASE/lib -- or both) after installing
>Tomcat 8/9?

Yes, I’ve added some jars.  Some I can’t remember why I’ve added them but
doubt they’d be connected to the problem.  Here’s a list of the
CATALINA_HOME/lib directory:
(the last 4 being the ones that have been added)

-rw-r-----. 1 tomcat tomcat   36940 Sep 27 18:32 websocket-api.jar
-rw-r-----. 1 tomcat tomcat  216799 Sep 27 18:32 tomcat-websocket.jar
-rw-r-----. 1 tomcat tomcat  203098 Sep 27 18:32 tomcat-util-scan.jar
-rw-r-----. 1 tomcat tomcat  132773 Sep 27 18:32 tomcat-util.jar
-rw-r-----. 1 tomcat tomcat   34540 Sep 27 18:32 tomcat-jni.jar
-rw-r-----. 1 tomcat tomcat  144927 Sep 27 18:32 tomcat-jdbc.jar
-rw-r-----. 1 tomcat tomcat   42274 Sep 27 18:32 tomcat-i18n-ja.jar
-rw-r-----. 1 tomcat tomcat   39391 Sep 27 18:32 tomcat-i18n-fr.jar
-rw-r-----. 1 tomcat tomcat   65452 Sep 27 18:32 tomcat-i18n-es.jar
-rw-r-----. 1 tomcat tomcat  251863 Sep 27 18:32 tomcat-dbcp.jar
-rw-r-----. 1 tomcat tomcat  792447 Sep 27 18:32 tomcat-coyote.jar
-rw-r-----. 1 tomcat tomcat   10643 Sep 27 18:32 tomcat-api.jar
-rw-r-----. 1 tomcat tomcat  277812 Sep 27 18:32 servlet-api.jar
-rw-r-----. 1 tomcat tomcat   61763 Sep 27 18:32 jsp-api.jar
-rw-r-----. 1 tomcat tomcat   26859 Sep 27 18:32 jaspic-api.jar
-rw-r-----. 1 tomcat tomcat  547928 Sep 27 18:32 jasper.jar
-rw-r-----. 1 tomcat tomcat  163671 Sep 27 18:32 jasper-el.jar
-rw-r-----. 1 tomcat tomcat   81575 Sep 27 18:32 el-api.jar
-rw-r-----. 1 tomcat tomcat 2450404 Sep 27 18:32 ecj-4.6.3.jar
-rw-r-----. 1 tomcat tomcat  285214 Sep 27 18:32 catalina-tribes.jar
-rw-r-----. 1 tomcat tomcat   75123 Sep 27 18:32 catalina-storeconfig.jar
-rw-r-----. 1 tomcat tomcat 1607874 Sep 27 18:32 catalina.jar
-rw-r-----. 1 tomcat tomcat  119105 Sep 27 18:32 catalina-ha.jar
-rw-r-----. 1 tomcat tomcat   54233 Sep 27 18:32 catalina-ant.jar
-rw-r-----. 1 tomcat tomcat   18253 Sep 27 18:32 annotations-api.jar
-rw-r--r--. 1 tomcat tomcat  313898 Dec 20 13:57 dom4j-1.6.1.jar
-rw-r--r--. 1 tomcat tomcat  802494 Dec 20 13:57 freemarker-2.3.8.jar
-rw-r--r--. 1 tomcat tomcat  355030 Dec 20 13:57 mail.jar
-rw-r--r--. 1 tomcat tomcat  713037 Dec 20 14:15 postgresql-42.1.4.jar



>
>2. What JAR files are bundled with your application in WEB-INF/lib ?

-rw-r-----. 1 root root   97703 Jan 11 15:05 servlet-api.jar
-rw-r-----. 1 root root 8356134 Jan 11 15:05 rt.jar
-rw-r-----. 1 root root  474746 Jan 11 15:05 postgresql-8.3-603.jdbc4.jar
-rw-r-----. 1 root root  355030 Jan 11 15:05 mail.jar
-rw-r-----. 1 root root  352668 Jan 11 15:05 log4j-1.2.8.jar
-rw-r-----. 1 root root   55008 Jan 11 15:05 local-ldap-0.0.1.jar
-rw-r-----. 1 root root   38114 Jan 11 15:05 ldap-src-0.0.1.jar
-rw-r-----. 1 root root   38668 Jan 11 15:05 ldap.jar
-rw-r-----. 1 root root   55827 Jan 11 15:05 ldap-0.0.1.jar
-rw-r-----. 1 root root  146718 Jan 11 15:05 jdom.jar
-rw-r-----. 1 root root  173211 Jan 11 15:05 IonoMap.jar
-rw-r-----. 1 root root  457002 Jan 11 15:05 ibmjndi.jar
-rw-r-----. 1 root root   38015 Jan 11 15:05 commons-logging-1.0.4.jar
-rw-r-----. 1 root root   87776 Jan 11 15:05 commons-io-1.3.2.jar
-rw-r-----. 1 root root   22379 Jan 11 15:05 commons-fileupload.jar
-rw-r-----. 1 root root   57779 Jan 11 15:05 commons-fileupload-1.2.1.jar
-rw-r-----. 1 root root  559366 Jan 11 15:05 commons-collections-3.1.jar
-rw-r-----. 1 root root   58735 Jan 11 15:05 common-piims-src.jar
-rw-r-----. 1 root root  175113 Jan 11 15:05 common-piims.jar
-rw-r-----. 1 root root   55147 Jan 11 15:05 activation.jar



>
>> I've also tried changing the index.jsp into a simpler (HelloWorld)
>> form - removing any code. And tried deleting the 'work' directory
>> before restarting Tomcat
>> (http://grokbase.com/t/tomcat/users/072v2kf60h/java-permission-denied-
>error
>>
>> 
>- -in-tomcat).  In both cases the exception is still thrown.
>
>Can you post the full text of HelloWorld.jsp?
>
>I'm wondering if you have some odd syntax or are expecting to use a
>"custom base JSP servlet class" or something like that which is no
>longer compatible with Tomcat's current JSP servlet. If so, we'll try
>to figure out why the custom code was necessary and make arrangements
>to replace it.
>
>- -chris

I also wondered if it could be some incompatible code so stripped it down
to the bare minimum as follows:

<html>
<head>
<title>Ionomics Hub (iHUB) - Home</title>
</head>
<body class="tundra">
    <p>iHub index page</p>
</body>
</html>


Another suggestion 
(https://coderanch.com/t/689419/Jasper-Exception-Tomcat-works-Tomcat) was
it may be something to do with precompiled jsps.  Excuse my ignorance but
the file highlighted in the JasperException is only created when the war
file is deployed by tomcat.  So I’m not sure what I can do to influence
this file.  Pretty convinced this is a config issue.

Regards,
Sean





This message and any attachment are intended solely for the addressee
and may contain confidential information. If you have received this
message in error, please send it back to me, and immediately delete it. 

Please do not use, copy or disclose the information contained in this
message or in any attachment.  Any views or opinions expressed by the
author of this email do not necessarily reflect the views of the
University of Nottingham.

This message has been checked for viruses but the contents of an
attachment may still contain software viruses which could damage your
computer system, you are advised to perform your own checks. Email
communications with the University of Nottingham may be monitored as
permitted by UK legislation.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to