× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.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: java400-l-bounces@xxxxxxxxxxxx [mailto:java400-l-bounces@xxxxxxxxxxxx] 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)

Pete Helgren wrote:
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?


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-tomcat.html>

The CL source in actual use here (as modified from what's in the blog
post) is:

PGM
ADDENVVAR ENVVAR(JAVA_HOME) +
VALUE('/QIBM/PRODDATA/JAVA400/JDK6')
MONMSG MSGID(CPF0000)
SBMJOB CMD(QSH +
CMD('/WINTOUCH/TOMCAT/BIN/STARTUP.SH')) +
JOB(CATALINA) JOBD(WINTOUCH/WTSRV) +
CPYENVVAR(*YES) ALWMLTTHD(*YES)


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: JAVA400-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/java400-l
or email: JAVA400-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/java400-l.




As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.