Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

iSeries Tomcat startup problem

150 views
Skip to first unread message

Mark Lawther

unread,
Oct 7, 2002, 4:28:41 PM10/7/02
to
I am receiving the message:
java.lang.ClassFormatError: org/apache/catalina/startup/Bootstrap
java/lang/Throwable.<init>(Ljava/lang/String;)V+4
(Throwable.java:81)
when running startup.sh. Startup runs but none of the jobs remain
active.

The message below would seem to point to a classpath error but I am at
a loss to find it. I followed the directions from here
(http://www.ignite400.com/html/News/pdf/news2002030304.pdf) in order
to arrive at this point.

The joblog has only one relevant message:
JVAB559 Escape 40 10/07/02 15:58:20
QJVAUTLJVM QSYS *STMT QJVAQSHCMD QJAVA *STMT
From module . . . . . . . . : QJVAUTLJVM
From procedure . . . . . . : JvaSendMsg
Statement . . . . . . . . . : 959
To module . . . . . . . . . : QJVAQSHCMD
To procedure . . . . . . . : QjvaQshCmd
Statement . . . . . . . . . : 1149
Message . . . . : Unable to complete Java program.
Cause . . . . . : Unable to complete Java program because of reason
3. The
reason codes are defined as follows: 01 - Class name is not
provided. 02 -
Unable to create a Java Virtual Machine. 03 - Unable to find valid
classes
required to run Java program. 04 - Unable to find method ID required
to run
Java program. 05 - A native method has detached from the Java
Virtual

My environment looks like this:
OS/400 V4R5, Cum Tape C01296, Java Group PTF SF99068-12 V4R5M0
09/18/02,
Tomcat 4.0.5
Tomcat reports these setting on startup:
CLASSPATH: /jakarta-tomcat-4.0.5/bin/bootstrap.jar:
/QIBM/ProdData/Java400/jdk12/lib/tools.jar
CATALINA_BASE: /jakarta-tomcat-4.0.5
CATALINA_HOME: /jakarta-tomcat-4.0.5
JAVA_HOME: /QIBM/ProdData/Java400/jdk12

Any help would be appreciated.

jack...@worldnet.att.net

unread,
Oct 7, 2002, 5:58:32 PM10/7/02
to
Do you have QSHELL library (LPP) installed.

Dan Hicks

unread,
Oct 7, 2002, 8:22:20 PM10/7/02
to
You have a class format error in
org/apache/catalina/startup/Bootstrap. This most often happens
when a file is transferred via FTP and "binary" isn't specified,
resulting in the file being converted to garbage. Anything else
that can garbage a file could do it as well.

Finally, there's a possibility that you are using a version of
the class file that's too new for the JVM you're using. Class
version numbers were incremented for 1.2 and 1.4 (IIRC) and if
you have a late-model class on an early JVM you'll get this message.

--
Dan Hicks
If a vegetarian eats vegetables, what does a barbarian eat?

Mark Lawther

unread,
Oct 8, 2002, 12:21:36 PM10/8/02
to
Thanks for the suggestions. I ftp'ed bootstrap.jar specifying binary
but that didn't help. I double checked the doc and 4.0.5 should be
compatible with JDK 1.2+. I have also applied the latest Java group
ptf dated 9/18/02. All without success.

Just for grins I downloaded an archive of 4.0.2 and tried it since
that is the version used by the doc I am following. This produces a
different error with nothing in the joblog:

Attaching Java program to /jakarta-tomcat-4.0.5/bin/bootstrap.jar.
Bootstrap: Class loader creation threw exception
java.lang.NoClassDefFoundError: java/util/ArrayList


java/lang/Throwable.<init>(Ljava/lang/String;)V+4
(Throwable.java:81)

org/apache/catalina/startup/ClassLoaderFactory.createClassLoader([Ljava/io/File;[Ljava/io/File;Ljava/lang/ClassLoader;)Ljava
org/apache/catalina/startup/Bootstrap.main([Ljava/lang/String;)V+0
(Bootstrap.java:114)

I still think I have a classpath problem. I have ordered the latest
cum tape too but that will be a few days. Any other ideas while I'm
waiting on PTFs?


Dan Hicks <danh...@ieee.org> wrote in message news:<3DA2253C...@ieee.org>...

Dan Hicks

unread,
Oct 8, 2002, 8:18:59 PM10/8/02
to
ArrayList is new in 1.2. If it's not found my guess is that you
are running the 1.1.8 JDK.

--
Dan Hicks
All are lunatics, but he who can analyze his delusion is called a
philosopher. --Ambrose Bierce

Mark Lawther

unread,
Oct 9, 2002, 9:41:11 AM10/9/02
to
Thanks, that was just the tip I needed. I had JDK 1.1.7, 1.1.8 and
1.2 installed. I deleted .7 and .8 since I don't need them for
anything (this is all new expirementation in case you haven't figured
that out) and BAM, everything is working.

Thanks again.

Dan Hicks <danh...@ieee.org> wrote in message news:<3DA375F3...@ieee.org>...

Dan Hicks

unread,
Oct 9, 2002, 8:15:18 PM10/9/02
to
FWIW, you don't need to delete the others to make 1.2 (or
whatever) the default. Create a SystemDefault.profile file in
either your home directory (for a single user) or
usrdata/Java400 (for system-wide effect). Place in there the
property (java.version=1.2, I think) for the version you want.

And of course you can always specify the version on the command
line as well.

--
Dan Hicks
We can do no great things, only small things with great love.
--Mother
Teresa

0 new messages