Omgili, forum search, forums search, search forums, discussion search,discussions search, search discussions, board search, boards search, search boards
  Advanced Search

Tomcat 7 in Java 6 on V5R4 (. . . 3 . . . 2 . . . 1 . . . crash-on-takeoff)

On Mon, 23 Jan 2012 09:45:06 -0800, James Lampert <...@touchtonecorp.com

We're now trying to bring up Tomcat 7 on a V5R4 box. They have Java 6
installed, and I'm told that they installed some PTFs over the weekend,
but it's still crashing on takeoff.

In catalina.sh, we have:

and there is definitely a "java" in the
/QOpenSys/QIBM/ProdData/JavaVM/jdk60/32bit/jre/bin directory, and so far
as I'm aware, all the JARs are present in the right subdirectories of
/wintouch/tomcat, but in catalina.out, I get:

When I delete catalina.out and try again, I get the same, only starting
from the ClassNotFoundException.

--
JHHL
--
This is the Java Programming on and around the IBM i (JAVA400-L) mailing list
To post a message email: JAVA...@midrange.com
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/java400-l
or email: JAVA...@midrange.com
Before posting, please take a moment to review the archives
at http://archive.midrange.com/java400-l.



On Wed, 25 Jan 2012 10:54:58 +0100, "Franco Lombardo" <...@hotmail.com

It seems a problem with the CATALINA_HOME environment variable.
So you can add this command to your CL

ADDENVVAR ENVVAR(CATALINA_HOME) +
VALUE('/path/to/my/tomcat')

Or you can use something like this:

http://www.francolombardo.net/tomcat-on-as400-aka-i-series-systemi-ibm-i-bla-bl a_post-97.html

Bye

Franco

--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
http://www.francolombardo.net
Scala, Java, As400.....
http://twitter.com/f_lombardo
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

--
This is the Java Programming on and around the IBM i (JAVA400-L) mailing list
To post a message email: JAVA...@midrange.com
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/java400-l
or email: JAVA...@midrange.com
Before posting, please take a moment to review the archives
at http://archive.midrange.com/java400-l.

On Wed, 25 Jan 2012 12:49:50 -0800, James Lampert <...@touchtonecorp.com

Not likely: the value is correct, and it matches the value in a working
installation.

--
JHHL
--
This is the Java Programming on and around the IBM i (JAVA400-L) mailing list
To post a message email: JAVA...@midrange.com
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/java400-l
or email: JAVA...@midrange.com
Before posting, please take a moment to review the archives
at http://archive.midrange.com/java400-l.

On Mon, 23 Jan 2012 11:11:39 -0800, James Perkins <...@gmail.com

It looks like it can't find Tomcat. Are you setting up the class-path?
--
James R. Perkins

On Mon, Jan 23, 2012 at 09:45, James Lampert <...@touchtonecorp.com
--
This is the Java Programming on and around the IBM i (JAVA400-L) mailing list
To post a message email: JAVA...@midrange.com
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/java400-l
or email: JAVA...@midrange.com
Before posting, please take a moment to review the archives
at http://archive.midrange.com/java400-l.

On Mon, 23 Jan 2012 11:23:31 -0800, James Lampert <...@touchtonecorp.com

It finds it just fine on the V6 and V7 installations.

Somebody on the Tomcat support list asked me a similar question. Is
there a way I can check the classpath on both our installation (V6;
works) and this particular customer's installation (V5R4; fails) at the
critical point?

--
JHHL
--
This is the Java Programming on and around the IBM i (JAVA400-L) mailing list
To post a message email: JAVA...@midrange.com
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/java400-l
or email: JAVA...@midrange.com
Before posting, please take a moment to review the archives
at http://archive.midrange.com/java400-l.

On Mon, 23 Jan 2012 12:11:30 -0800, James Perkins <...@gmail.com

Beings I haven't used Tomcat in years, I don't really remember any Tomcat
specific things. I would first look at your "/wintouch/tomcat" command and
see if it specifies a $CATALINA_HOME or something like that. It should be
exporting the class-path or passing it to the java command.

--
James R. Perkins

On Mon, Jan 23, 2012 at 11:23, James Lampert <...@touchtonecorp.com
--
This is the Java Programming on and around the IBM i (JAVA400-L) mailing list
To post a message email: JAVA...@midrange.com
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/java400-l
or email: JAVA...@midrange.com
Before posting, please take a moment to review the archives
at http://archive.midrange.com/java400-l.

On Mon, 23 Jan 2012 12:58:27 -0800, James Lampert <...@touchtonecorp.com

Right. But I was wondering if there's something that could be inserted
into the shell script, to tell us what the classpath actually is at the
critical moment.
--
This is the Java Programming on and around the IBM i (JAVA400-L) mailing list
To post a message email: JAVA...@midrange.com
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/java400-l
or email: JAVA...@midrange.com
Before posting, please take a moment to review the archives
at http://archive.midrange.com/java400-l.

On Mon, 23 Jan 2012 14:25:29 -0700, Pete Helgren <...@valadd.com

Can't remember if WRKJVMJOB was PTF'd back to V5R4 but that shows the
classpath. You might be able to echo the classpath in the script as
well. Are you just running this at the shell command line or running it
with a CL command?

Pete Helgren
Value Added Software, Inc
http://www.petesworkshop.com
GIAC Secure Software Programmer-Java

--
This is the Java Programming on and around the IBM i (JAVA400-L) mailing list
To post a message email: JAVA...@midrange.com
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/java400-l
or email: JAVA...@midrange.com
Before posting, please take a moment to review the archives
at http://archive.midrange.com/java400-l.

On Mon, 23 Jan 2012 13:38:22 -0800, James Lampert <...@touchtonecorp.com

I'm launching from a CL program, as described in this blog post from
"betterThanZero":
<http://as400samplecode.blogspot.com/2011/06/install-tomcat-on-iseries-as400-tom cat.html
The CL source in actual use here (as modified from what's in the blog
post) is:

And unless WRKJVMJOB can get the classpath of a job after it ended, I
can't see how it's going to get the classpath of a job that crashed on
takeoff.

--
JHHL
--
This is the Java Programming on and around the IBM i (JAVA400-L) mailing list
To post a message email: JAVA...@midrange.com
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/java400-l
or email: JAVA...@midrange.com
Before posting, please take a moment to review the archives
at http://archive.midrange.com/java400-l.

On Tue, 24 Jan 2012 07:47:11 -0700, Pete Helgren <...@valadd.com

Right...not thinking it through.... Echoing the classpath to stdout at
the beginning of the script might work. You'd have to override the
files before the JVM starts like so:

OVRDBF FILE(STDOUT) TOFILE(QTEMP/STDOUT)
OVRDBF FILE(STDERR) TOFILE(QTEMP/STDERR)

I haven't tried it but conceptually I think it'll work....

Pete Helgren
Value Added Software, Inc
http://www.petesworkshop.com
GIAC Secure Software Programmer-Java

--
This is the Java Programming on and around the IBM i (JAVA400-L) mailing list
To post a message email: JAVA...@midrange.com
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/java400-l
or email: JAVA...@midrange.com
Before posting, please take a moment to review the archives
at http://archive.midrange.com/java400-l.

On Wed, 25 Jan 2012 16:35:43 -0600, Dan Kimmel <...@rjssoftware.com

James,

You have a version and java_home mess.

First, Java6 is supported only by PTF on V5R4. Make sure you have the PTF's installed. You should see options 10 and 11 under 5722JV1 in Install Licensed Programs. Make sure the one you're going to use is installed. PTF's are SI26746 and SI30432. There have been subsequent PTF's to fix these up. Install the latest SF99291 Java Group PTF.

Second, you have JAVA_HOME specified in both your CL program that submits QSH and in the catalina.sh script and you have different values for it in the two places. Below, in your response to Pete, you show it in /QIBM/PRODDATA/JAVA400/JDK6. Earlier, you showed a stdout from your catalina.sh with JAVA_HOME set to /QOpenSys/QIBM/ProdData/JavaVM/jdk60/32bit/jre. Certainly NOT the same place. Either one should work, if correct on your system. Default path for IBM Technology for Java 6.0 is /QOpenSys/QIBM/ProdData/JavaVM/jdk60/32bit. Path for classic is /QIBM/ProdData/Java400/jdk16/.

-----Original Message-----
From: java...@midrange.com [mai...@midrange.com] On Behalf Of James Lampert
Sent: Monday, January 23, 2012 3:38 PM
To: Java Programming on and around the IBM i
Subject: Re: Tomcat 7 in Java 6 on V5R4 (. . . 3 . . . 2 . . . 1 . . . crash-on-takeoff)

I'm launching from a CL program, as described in this blog post from
"betterThanZero":
<http://as400samplecode.blogspot.com/2011/06/install-tomcat-on-iseries-as400-tom cat.html
The CL source in actual use here (as modified from what's in the blog
post) is:

And unless WRKJVMJOB can get the classpath of a job after it ended, I can't see how it's going to get the classpath of a job that crashed on takeoff.

--
JHHL
--
This is the Java Programming on and around the IBM i (JAVA400-L) mailing list To post a message email: JAVA...@midrange.com To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/java400-l
or email: JAVA...@midrange.com Before posting, please take a moment to review the archives at http://archive.midrange.com/java400-l.

--
This is the Java Programming on and around the IBM i (JAVA400-L) mailing list
To post a message email: JAVA...@midrange.com
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/java400-l
or email: JAVA...@midrange.com
Before posting, please take a moment to review the archives
at http://archive.midrange.com/java400-l.