You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by James Lampert <ja...@touchtonecorp.com> on 2012/07/20 00:10:06 UTC
Tomcat 7.0.25 on an AS/400, V5R4, Another try. Help?
Theoretically, I've ironed out the bugs concerning which JVMs Tomcat
will run under, but it still isn't coming up.
The STDOUT from attempting to start Tomcat is as follows:
> /wintouch/tomcat/bin/catalina.sh: 001-0019 Error found searching for command tty. No such path or directory.
> Using CATALINA_BASE: /wintouch/tomcat
> Using CATALINA_HOME: /wintouch/tomcat
> Using CATALINA_TMPDIR: /wintouch/tomcat/temp
> Using JRE_HOME: /QOpenSys/QIBM/ProdData/JavaVM/jdk60/32bit
> Using CLASSPATH: /wintouch/tomcat/bin/bootstrap.jar:/wintouch/tomcat/bin/tomcat-juli.jar
Which is to say, /QOpenSys/QIBM/ProdData/JavaVM/jdk60/32bit/jre is a JVM
that, so far as I'm aware, doesn't have any problems with Tomcat.
Everything above is exactly the same as in a successful launch on our
V6R1 box.
And Catalina.out is mercifully short this time:
> java.lang.ClassNotFoundException: org.apache.catalina.startup.Catalina
> at java.net.URLClassLoader.findClass(URLClassLoader.java:432)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:642)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:608)
> at org.apache.catalina.startup.Bootstrap.init(Bootstrap.java:236)
> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)
It's obviously trying to tell me SOMETHING, but I can't determine WHAT
it's trying to tell me.
Any ideas? I don't see the class it's complaining about in either of the
two JARs listed on the classpath dumped to STDOUT, but if that were the
problem, it wouldn't work here, either.
--
JHHL
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: [OT] Tomcat 7.0.25 on an AS/400, V5R4, Another try. Help?
Posted by James Lampert <ja...@touchtonecorp.com>.
Christopher Schultz wrote:
>> export -s JAVA_OPTS="-Dos400.awt.native=true
>> -Djava.awt.headless=true -Xms256m -Xmx512m"
>>
>> In my catalina.sh script.
>
> FYI it is recommended to customize catalina.sh by creating a setenv.sh
> script and using that. That way, you don't have to play games with
> updating catalina.sh when a new release comes out.
We're doing the equivalent with ADDENVVAR statements (and
CPYENVVAR(*YES) on the SBMJOB statement) in the CL program that launches
the script (that way, we don't even have to bother with a setenv.sh).
And I agree, Tomcat won't run at all on an AS/400 without those
environment variables being set *somewhere* for the CATALINA job.
--
JHHL
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re:[OT] Tomcat 7.0.25 on an AS/400, V5R4, Another try. Help?
Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Pete,
On 7/19/12 8:29 PM, Pete Helgren wrote:
> The error might be a red herring or a show stopper but I also
> have:
>
> export -s JAVA_OPTS="-Dos400.awt.native=true
> -Djava.awt.headless=true -Xms256m -Xmx512m"
>
> In my catalina.sh script.
FYI it is recommended to customize catalina.sh by creating a setenv.sh
script and using that. That way, you don't have to play games with
updating catalina.sh when a new release comes out.
- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAlAJjEIACgkQ9CaO5/Lv0PBkHwCffRU2hg1jNcy/zJ9sO7xopbVj
w70AniiXt0bgQjWS4WKpjR58J0Ts/nmb
=DZJb
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Tomcat 7.0.25 on an AS/400, V5R4, Another try. Help?
Posted by Pete Helgren <pe...@valadd.com>.
The error might be a red herring or a show stopper but I also have:
export -s JAVA_OPTS="-Dos400.awt.native=true -Djava.awt.headless=true
-Xms256m -Xmx512m"
In my catalina.sh script. That took care of a tty error I had (although
I don't know if that is the issue in your case).
Pete Helgren
Value Added Software, Inc
www.petesworkshop.com
GIAC Secure Software Programmer-Java
On 7/19/2012 6:25 PM, James Lampert wrote:
> Tim:
>> This is normally in <TC_HOME>/lib/catalina.jar.
>> A. Does it exist there?
>> B. Does the user the process is running as have permission to read
>> that file and directory?
>> C. If yes to A & B, is the file corrupt?
>
> /wintouch/tomcat/lib/catalina.jar exists. I had to FTP it elsewhere to
> check its validity, but it seems valid. And the authorities for it
> look exactly the same as those for /wintouch/tomcat/bin/bootstrap.jar.
>
> Rainer:
>
>> - if catalina.jar is not in /wintouch/tomcat/lib or it is not readable
>>
>> - if catalina.properties is not in /wintouch/tomcat/conf, or it is
>> not readable, or the entries for the server.loader or common.loader
>> are broken
>>
>> - the start scripts do not set -Dcatalina.base=/wintouch/tomcat/ and
>> -Dcatalina.home=/wintouch/tomcat/ when starting the JVM
>>
>> - you are changing the place of the used properties file by giving a
>> non-default value in the system property -Dcatalina.config during
>> startup.
>
> Everything looks like it's in the right place, undamaged, and without
> authority issues.
>
> --
> JHHL
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Tomcat 7.0.25 on an AS/400, V5R4, Another try. Help?
Posted by Tim Watts <ti...@cliftonfarm.org>.
On Thu, 2012-07-19 at 17:25 -0700, James Lampert wrote:
> Tim:
> > This is normally in <TC_HOME>/lib/catalina.jar.
> > A. Does it exist there?
> > B. Does the user the process is running as have permission to
> read
> > that file and directory?
> > C. If yes to A & B, is the file corrupt?
>
> /wintouch/tomcat/lib/catalina.jar exists. I had to FTP it elsewhere
> to
> check its validity, but it seems valid. And the authorities for it
> look
> exactly the same as those for /wintouch/tomcat/bin/bootstrap.jar.
>
> Rainer:
>
> > - if catalina.jar is not in /wintouch/tomcat/lib or it is not
> readable
> >
> > - if catalina.properties is not in /wintouch/tomcat/conf, or it is
> not readable, or the entries for the server.loader or common.loader
> are broken
> >
> > - the start scripts do not set -Dcatalina.base=/wintouch/tomcat/ and
> -Dcatalina.home=/wintouch/tomcat/ when starting the JVM
> >
> > - you are changing the place of the used properties file by giving a
> non-default value in the system property -Dcatalina.config during
> startup.
>
> Everything looks like it's in the right place, undamaged, and without
> authority issues.
>
Perhaps the IBM JDK6 has some bugs running on V5R4?
Some other things you might do to shed more light on this:
- Add these lines to the end of conf/logging.properties:
org.apache.catalina.startup.Bootstrap.level = ALL
org.apache.catalina.startup.ClassLoaderFactory.level = ALL
Then stop/start Tomcat. You should see a log entry like:
location X is file:/wintouch/tomcat/lib/catalina.jar
- If you do see an entry as above try compiling and running the
following from /wintouch/tomcat which tests finding a class:
>>>>>>>>>>>>>>>>>>>>>>>>>BEGIN
import java.io.File;
import java.net.URL;
import java.net.URLClassLoader;
public class FindClass {
public static void main(String[] args) {
try {
URLClassLoader loader = new URLClassLoader(
new URL[] {new File("/wintouch/tomcat/lib/catalina.jar").toURI().toURL()});
loader.loadClass(args[0]);
System.out.println("URLClassLoader found class '" +args[0] +"'");
}
catch (Exception e) {
e.printStackTrace();
}
}
}
<<<<<<<<<<<<<<<<<<<<<<<<<END
* Save this to FindClass.java in /wintouch/tomcat
* Compile it: javac FindClass.java (or compile on another machine
and copy the resulting .class file)
* Run it: java -cp . FindClass org.apache.catalina.startup.Catalina
If this fails then my guess would be that there's a JDK6 problem on V5R4
or there's a problem with your catalina.jar. If it succeeds then some
Tomcat file(s) aren't as correct and/or authorized as you think they are
-- or you're leaving out some other important factor.
> --
> JHHL
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
Re: Tomcat 7.0.25 on an AS/400, V5R4, Another try. Help?
Posted by James Lampert <ja...@touchtonecorp.com>.
Tim:
> This is normally in <TC_HOME>/lib/catalina.jar.
> A. Does it exist there?
> B. Does the user the process is running as have permission to read
> that file and directory?
> C. If yes to A & B, is the file corrupt?
/wintouch/tomcat/lib/catalina.jar exists. I had to FTP it elsewhere to
check its validity, but it seems valid. And the authorities for it look
exactly the same as those for /wintouch/tomcat/bin/bootstrap.jar.
Rainer:
> - if catalina.jar is not in /wintouch/tomcat/lib or it is not readable
>
> - if catalina.properties is not in /wintouch/tomcat/conf, or it is not readable, or the entries for the server.loader or common.loader are broken
>
> - the start scripts do not set -Dcatalina.base=/wintouch/tomcat/ and -Dcatalina.home=/wintouch/tomcat/ when starting the JVM
>
> - you are changing the place of the used properties file by giving a non-default value in the system property -Dcatalina.config during startup.
Everything looks like it's in the right place, undamaged, and without
authority issues.
--
JHHL
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Tomcat 7.0.25 on an AS/400, V5R4, Another try. Help?
Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
James,
On 7/26/12 11:57 AM, James Lampert wrote:
> Tim Watts wrote:
>
>> http://tomcat.10.n6.nabble.com/Tomcat-7-0-25-on-an-AS-400-V5R4-Another-try-Help-td4984199.html#a4984215
>>
>
>>
>>> - Add these lines to the end of conf/logging.properties:
>>>
>>> org.apache.catalina.startup.Bootstrap.level = ALL
>>> org.apache.catalina.startup.ClassLoaderFactory.level = ALL
>
> No effect whatsoever. The catalina.out log and the spool file
> produced by STDOUT are exactly the same as before.
Maybe it's time to start thinking stupidly yet practically: run a
guest virtualized OS that will be a bit more friendly to you ;)
- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAlARkhMACgkQ9CaO5/Lv0PCBZQCgwQWHY1DCMRAfOUaIqk1EH8gH
GJwAn3RveOXLk/PP9lZNfhqb6rzmXu6P
=WBXN
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Tomcat 7.0.25 on an AS/400, V5R4, Another try. Help?
Posted by Tim Watts <ti...@cliftonfarm.org>.
On Mon, 2012-07-30 at 09:26 -0700, James Lampert wrote:
> I have just wiped the Tomcat installation on the V5R4 box in question,
> and done a clean install of 7.0.25.
>
> No change in its behavior.
>
> I tried a modified version of our standard Tomcat-launch CL program,
> that adds a CATALINA_OPTS environment variable, with a value of
> "-verbose:class" (excerpt from CL program below):
>
> > ADDENVVAR ENVVAR(CATALINA_HOME) +
> > VALUE('/wintouch/tomcat') REPLACE(*YES)
> > ADDENVVAR ENVVAR(CATALINA_OPTS) +
> > VALUE('-verbose:class') REPLACE(*YES)
Did this have any effect? catalina.out should have a lot of messages
like "[Loaded <class.name> from <source>]"
> > ADDENVVAR ENVVAR(JAVA_OPTS) +
> > VALUE('-Dos400.awt.native=true +
> > -Djava.awt.headless=true +
> > -Djava.version=1.6 -Xms256m -Xmx512m') +
> > REPLACE(*YES)
> >
> > SBMJOB CMD(QSH +
> > CMD('/wintouch/tomcat/bin/startup.sh')) +
> > JOB(CATALINA) JOBD(WINTOUCH/WTSRVC) +
> > INLLIBL(QGPL QTEMP) CPYENVVAR(*YES) +
> > ALWMLTTHD(*YES)
>
> (ADDENVVAR being the CL command to set an environment variable, SBMJOB
> to submit a batch job, and QSH to launch QShell, and the CPYENVVAR
> parameter telling SBMJOB to pass the environment variables from the
> submitting job to the submitted job. Placing the environment variables
> in the CL program that launches Tomcat, rather than in catalina.sh or
> setenv.sh, allows us to avoid having to either roll our own version of
> the Tomcat ZIP file, or manually install the environment variables,
> every time we install (or update) Tomcat.)
>
Bear with me, I'm not proficient in AS/400: Is it possible to open an
interactive QShell and try to start Tomcat that way?
> The STDOUT spool file:
> > /wintouch/tomcat/bin/catalina.sh: 001-0019 Error found searching for command tty. No such path or directory.
> > Using CATALINA_BASE: /wintouch/tomcat
> > Using CATALINA_HOME: /wintouch/tomcat
> > Using CATALINA_TMPDIR: /wintouch/tomcat/temp
> > Using JRE_HOME: /QOpenSys/QIBM/ProdData/JavaVM/jdk60/32bit
> > Using CLASSPATH: /wintouch/tomcat/bin/bootstrap.jar:/wintouch/tomcat/bin/tomcat-juli.jar
> tells me that it's at least getting to the point in catalina.sh where it
> spits out selected environment variables,
There's never been any doubt about that right? You wouldn't be getting
the ClassNotFoundException otherwise.
> and that it's getting the
> environment variables we set in the CL program.
Maybe. But that's neither here nor there.
>
> --
> JHHL
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
Re: Tomcat 7.0.25 on an AS/400, V5R4, Another try. Help?
Posted by James Lampert <ja...@touchtonecorp.com>.
I have just wiped the Tomcat installation on the V5R4 box in question,
and done a clean install of 7.0.25.
No change in its behavior.
I tried a modified version of our standard Tomcat-launch CL program,
that adds a CATALINA_OPTS environment variable, with a value of
"-verbose:class" (excerpt from CL program below):
> ADDENVVAR ENVVAR(CATALINA_HOME) +
> VALUE('/wintouch/tomcat') REPLACE(*YES)
> ADDENVVAR ENVVAR(CATALINA_OPTS) +
> VALUE('-verbose:class') REPLACE(*YES)
> ADDENVVAR ENVVAR(JAVA_OPTS) +
> VALUE('-Dos400.awt.native=true +
> -Djava.awt.headless=true +
> -Djava.version=1.6 -Xms256m -Xmx512m') +
> REPLACE(*YES)
>
> SBMJOB CMD(QSH +
> CMD('/wintouch/tomcat/bin/startup.sh')) +
> JOB(CATALINA) JOBD(WINTOUCH/WTSRVC) +
> INLLIBL(QGPL QTEMP) CPYENVVAR(*YES) +
> ALWMLTTHD(*YES)
(ADDENVVAR being the CL command to set an environment variable, SBMJOB
to submit a batch job, and QSH to launch QShell, and the CPYENVVAR
parameter telling SBMJOB to pass the environment variables from the
submitting job to the submitted job. Placing the environment variables
in the CL program that launches Tomcat, rather than in catalina.sh or
setenv.sh, allows us to avoid having to either roll our own version of
the Tomcat ZIP file, or manually install the environment variables,
every time we install (or update) Tomcat.)
The STDOUT spool file:
> /wintouch/tomcat/bin/catalina.sh: 001-0019 Error found searching for command tty. No such path or directory.
> Using CATALINA_BASE: /wintouch/tomcat
> Using CATALINA_HOME: /wintouch/tomcat
> Using CATALINA_TMPDIR: /wintouch/tomcat/temp
> Using JRE_HOME: /QOpenSys/QIBM/ProdData/JavaVM/jdk60/32bit
> Using CLASSPATH: /wintouch/tomcat/bin/bootstrap.jar:/wintouch/tomcat/bin/tomcat-juli.jar
tells me that it's at least getting to the point in catalina.sh where it
spits out selected environment variables, and that it's getting the
environment variables we set in the CL program.
--
JHHL
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Tomcat 7.0.25 on an AS/400, V5R4, Another try. Help?
Posted by Tim Watts <ti...@cliftonfarm.org>.
On Thu, 2012-07-26 at 13:34 -0700, James Lampert wrote:
> Tim Watts wrote:
>
> > import java.io.File;
> > import java.net.URL;
> > import java.net.URLClassLoader;
> >
> > public class FindClass {
> > public static void main(String[] args) {
> > try {
> > URLClassLoader loader = new URLClassLoader(
> > new URL[] {new File("/wintouch/tomcat/lib/catalina.jar").toURI().toURL()});
> > loader.loadClass(args[0]);
> > System.out.println("URLClassLoader found class '" +args[0] +"'");
> > }
> > catch (Exception e) {
> > e.printStackTrace();
> > }
> > }
> > }
>
> I tried it. I'm surprised I was able to get it to compile and run on
> only the second try (the first try, I had left the stream file editor in
> the default EBCDIC codepage when I pasted in your source, which JAVAC,
> not surprisingly, didn't like at all).
>
> At any rate, I get:
>
> > java FindClass org.apache.catalina.startup.Catalina
> > URLClassLoader found class 'org.apache.catalina.startup.Catalina'
>
OK, so the JVM classloader seems to work. This is basically identical
to the one used by the bootstrapper. Which suggests that some/all of
the Tomcat config files are messed up. Again, are these in EBCDIC or
ASCII? I presume the unix environment on AS/400 wants ASCII files
generally -- or at least the java stuff does? And you're sure that's
what you're providing? You can take a hex dump of, say,
conf/catalina.properties and confirm that? This would be important to
know.
>
> And so far as I can determine without doing a clean install of Tomcat,
> nothing is customized at all, at this point, other than maybe setting
> port numbers (which it isn't even getting to, yet), and adding your
> diagnostic lines in logging.properties.
>
> Paul Holm, on the Midrange.com Java list, suggested turning on verbose
> mode on Java; I'm not entirely sure how I would even do that for Tomcat.
>
He probably means -verbose:class . You could add this to CATALINA_OPTS
or JAVA_OPTS in a bin/setenv.sh script:
export CATALINA_OPTS="-verbose:class"
It will spit out a lot of data but I don't think that will tell us
anything new at this point.
> What would be the next step?
>
Don't know how feasible Chris' suggestion would be for you but if you
can boot up a virtual OS such as Linux under AS/400 that might be the
easiest thing to get something working. Of course, it could also just
be the opening of the next can of worms...
Otherwise, I would go with a clean install. If you have to let someone
else do the install, download your own copy of the same Tomcat version
and do diffs on bin/*.sh and conf/. It's hard to offer any useful help
if we don't know what environment we're dealing with. Also, make sure
no text file conversions occur when unpacking the zip file (e.g. don't
use unzip's -a option) -- assuming my presumption about the unix env is
correct.
> --
> JHHL
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
Re: Tomcat 7.0.25 on an AS/400, V5R4, Another try. Help?
Posted by James Lampert <ja...@touchtonecorp.com>.
Tim Watts wrote:
> import java.io.File;
> import java.net.URL;
> import java.net.URLClassLoader;
>
> public class FindClass {
> public static void main(String[] args) {
> try {
> URLClassLoader loader = new URLClassLoader(
> new URL[] {new File("/wintouch/tomcat/lib/catalina.jar").toURI().toURL()});
> loader.loadClass(args[0]);
> System.out.println("URLClassLoader found class '" +args[0] +"'");
> }
> catch (Exception e) {
> e.printStackTrace();
> }
> }
> }
I tried it. I'm surprised I was able to get it to compile and run on
only the second try (the first try, I had left the stream file editor in
the default EBCDIC codepage when I pasted in your source, which JAVAC,
not surprisingly, didn't like at all).
At any rate, I get:
> java FindClass org.apache.catalina.startup.Catalina
> URLClassLoader found class 'org.apache.catalina.startup.Catalina'
And so far as I can determine without doing a clean install of Tomcat,
nothing is customized at all, at this point, other than maybe setting
port numbers (which it isn't even getting to, yet), and adding your
diagnostic lines in logging.properties.
Paul Holm, on the Midrange.com Java list, suggested turning on verbose
mode on Java; I'm not entirely sure how I would even do that for Tomcat.
What would be the next step?
--
JHHL
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Tomcat 7.0.25 on an AS/400, V5R4, Another try. Help?
Posted by Tim Watts <ti...@cliftonfarm.org>.
On Thu, 2012-07-26 at 08:57 -0700, James Lampert wrote:
> Tim Watts wrote:
>
> > http://tomcat.10.n6.nabble.com/Tomcat-7-0-25-on-an-AS-400-V5R4-Another-try-Help-td4984199.html#a4984215
>
> >> - Add these lines to the end of conf/logging.properties:
> >>
> >> org.apache.catalina.startup.Bootstrap.level = ALL
> >> org.apache.catalina.startup.ClassLoaderFactory.level = ALL
>
> No effect whatsoever. The catalina.out log and the spool file produced
> by STDOUT are exactly the same as before.
>
Well, hopefully not EXACTLY the same -- different timestamps right?
Right? :-)
Looks like it may be using a customized logging configuration. Find
that and update the above according to the config file location and/or
the logging framework in use. (Sorry, can't be more specific; you're
leaving us in the dark as to your set up.) Look in bin/setenv.sh if you
have one. Or if you've modified any of the distribution scripts (which
generally you shouldn't do) then do a diff against the distribution
versions for 7.0.25. Please post these so we're not flying so blind.
Also, could this be another ASCII/EBCDIC issue? I seem to recall that
was a possibility a long time ago but don't recall if that ever panned
out.
> --
> JHHL
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
Re: Tomcat 7.0.25 on an AS/400, V5R4, Another try. Help?
Posted by James Lampert <ja...@touchtonecorp.com>.
Tim Watts wrote:
> http://tomcat.10.n6.nabble.com/Tomcat-7-0-25-on-an-AS-400-V5R4-Another-try-Help-td4984199.html#a4984215
>> - Add these lines to the end of conf/logging.properties:
>>
>> org.apache.catalina.startup.Bootstrap.level = ALL
>> org.apache.catalina.startup.ClassLoaderFactory.level = ALL
No effect whatsoever. The catalina.out log and the spool file produced
by STDOUT are exactly the same as before.
--
JHHL
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Tomcat 7.0.25 on an AS/400, V5R4, Another try. Help?
Posted by James Lampert <ja...@touchtonecorp.com>.
Tim Watts wrote:
> I made some suggestions to this effect the other day:
>
> http://tomcat.10.n6.nabble.com/Tomcat-7-0-25-on-an-AS-400-V5R4-Another-try-Help-td4984199.html#a4984215
>
> Maybe you already tried them or didn't get the email.
Thanks for the link. I'm guessing that the email probably got lost in
the perpetual torrential flood of email, because I'm sure it must have
arrived, but I never saw it.
--
JHHL
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Tomcat 7.0.25 on an AS/400, V5R4, Another try. Help?
Posted by Tim Watts <ti...@cliftonfarm.org>.
On Tue, 2012-07-24 at 09:17 -0700, James Lampert wrote:
> To recap, I've got a situation where Tomcat is crashing on takeoff, on a
> V5R4 AS/400, with what appears to be the same setup that works fine on a
> V6 box, and showing correct environment variables in the STDOUT spool
> file, and leaving this in Catalina.out.
> >>> java.lang.ClassNotFoundException: org.apache.catalina.startup.Catalina
> >>> at java.net.URLClassLoader.findClass(URLClassLoader.java:432)
> >>> at java.lang.ClassLoader.loadClass(ClassLoader.java:642)
> >>> at java.lang.ClassLoader.loadClass(ClassLoader.java:608)
> >>> at org.apache.catalina.startup.Bootstrap.init(Bootstrap.java:236)
> >>> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)
>
>
> to which Rainer Jung replied:
> . . .
> > All this works by default in an untampered Tomcat installation. It can
> > break:
> >
> > - if catalina.jar is not in /wintouch/tomcat/lib or it is not readable
> >
> > - if catalina.properties is not in /wintouch/tomcat/conf, or it is not
> > readable, or the entries for the server.loader or common.loader are broken
> >
> > - the start scripts do not set -Dcatalina.base=/wintouch/tomcat/ and
> > -Dcatalina.home=/wintouch/tomcat/ when starting the JVM
> >
> > - you are changing the place of the used properties file by giving a
> > non-default value in the system property -Dcatalina.config during startup.
>
> I can find, so far, no evidence to indicate any of these possibilities.
> But is there some diagnostic I could enable, that would allow me to find
> out more detail about the problem? Or maybe something I could try from a
> QShell command line in a terminal session?
>
I made some suggestions to this effect the other day:
http://tomcat.10.n6.nabble.com/Tomcat-7-0-25-on-an-AS-400-V5R4-Another-try-Help-td4984199.html#a4984215
Maybe you already tried them or didn't get the email.
> --
> James H. H. Lampert
> Touchtone Corporation
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
Re: Tomcat 7.0.25 on an AS/400, V5R4, Another try. Help?
Posted by James Lampert <ja...@touchtonecorp.com>.
To recap, I've got a situation where Tomcat is crashing on takeoff, on a
V5R4 AS/400, with what appears to be the same setup that works fine on a
V6 box, and showing correct environment variables in the STDOUT spool
file, and leaving this in Catalina.out.
>>> java.lang.ClassNotFoundException: org.apache.catalina.startup.Catalina
>>> at java.net.URLClassLoader.findClass(URLClassLoader.java:432)
>>> at java.lang.ClassLoader.loadClass(ClassLoader.java:642)
>>> at java.lang.ClassLoader.loadClass(ClassLoader.java:608)
>>> at org.apache.catalina.startup.Bootstrap.init(Bootstrap.java:236)
>>> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)
to which Rainer Jung replied:
. . .
> All this works by default in an untampered Tomcat installation. It can
> break:
>
> - if catalina.jar is not in /wintouch/tomcat/lib or it is not readable
>
> - if catalina.properties is not in /wintouch/tomcat/conf, or it is not
> readable, or the entries for the server.loader or common.loader are broken
>
> - the start scripts do not set -Dcatalina.base=/wintouch/tomcat/ and
> -Dcatalina.home=/wintouch/tomcat/ when starting the JVM
>
> - you are changing the place of the used properties file by giving a
> non-default value in the system property -Dcatalina.config during startup.
I can find, so far, no evidence to indicate any of these possibilities.
But is there some diagnostic I could enable, that would allow me to find
out more detail about the problem? Or maybe something I could try from a
QShell command line in a terminal session?
--
James H. H. Lampert
Touchtone Corporation
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Tomcat 7.0.25 on an AS/400, V5R4, Another try. Help?
Posted by Rainer Jung <ra...@kippdata.de>.
On 20.07.2012 00:10, James Lampert wrote:
> Theoretically, I've ironed out the bugs concerning which JVMs Tomcat
> will run under, but it still isn't coming up.
>
> The STDOUT from attempting to start Tomcat is as follows:
>
>> /wintouch/tomcat/bin/catalina.sh: 001-0019 Error found searching for
>> command tty. No such path or directory.
>> Using CATALINA_BASE: /wintouch/tomcat Using CATALINA_HOME:
>> /wintouch/tomcat Using CATALINA_TMPDIR: /wintouch/tomcat/temp Using
>> JRE_HOME: /QOpenSys/QIBM/ProdData/JavaVM/jdk60/32bit Using
>> CLASSPATH:
>> /wintouch/tomcat/bin/bootstrap.jar:/wintouch/tomcat/bin/tomcat-juli.jar
>
>
> Which is to say, /QOpenSys/QIBM/ProdData/JavaVM/jdk60/32bit/jre is a JVM
> that, so far as I'm aware, doesn't have any problems with Tomcat.
> Everything above is exactly the same as in a successful launch on our
> V6R1 box.
>
> And Catalina.out is mercifully short this time:
>
>> java.lang.ClassNotFoundException: org.apache.catalina.startup.Catalina
>> at java.net.URLClassLoader.findClass(URLClassLoader.java:432) at
>> java.lang.ClassLoader.loadClass(ClassLoader.java:642) at
>> java.lang.ClassLoader.loadClass(ClassLoader.java:608) at
>> org.apache.catalina.startup.Bootstrap.init(Bootstrap.java:236) at
>> org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)
>
>
> It's obviously trying to tell me SOMETHING, but I can't determine WHAT
> it's trying to tell me.
>
> Any ideas? I don't see the class it's complaining about in either of the
> two JARs listed on the classpath dumped to STDOUT, but if that were the
> problem, it wouldn't work here, either.
The Catalina class is loaded in Bootstrap using the server classloader:
Class<?> startupClass =
catalinaLoader.loadClass
("org.apache.catalina.startup.Catalina");
This Tomcat class loaders use a configuration file, which by default is
(using your path) /wintouch/tomcat/conf/catalina.properties.
By Default the search oath for the server loader is empty (entry
server.loader in the file). But the server loader delegates to the
so-called common loader. That one looks for the entry common.loader in
catalina.properties which by default is
${catalina.base}/lib,${catalina.base}/lib/*.jar,${catalina.home}/lib,${catalina.home}/lib/*.jar
Here catalina.base and catalina.out are set by the startup script as
system properties on the commandloine and in your case should both point
to /wintouch/tomcat/. The common loader will then find the class
Catalina in /wintouch/tomcat/lib/catalina.jar.
All this works by default in an untampered Tomcat installation. It can
break:
- if catalina.jar is not in /wintouch/tomcat/lib or it is not readable
- if catalina.properties is not in /wintouch/tomcat/conf, or it is not
readable, or the entries for the server.loader or common.loader are broken
- the start scripts do not set -Dcatalina.base=/wintouch/tomcat/ and
-Dcatalina.home=/wintouch/tomcat/ when starting the JVM
- you are changing the place of the used properties file by giving a
non-default value in the system property -Dcatalina.config during startup.
Regards,
Rainer
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Tomcat 7.0.25 on an AS/400, V5R4, Another try. Help?
Posted by Tim Watts <ti...@cliftonfarm.org>.
On Thu, 2012-07-19 at 15:10 -0700, James Lampert wrote:
> Theoretically, I've ironed out the bugs concerning which JVMs Tomcat
> will run under, but it still isn't coming up.
>
> The STDOUT from attempting to start Tomcat is as follows:
>
> > /wintouch/tomcat/bin/catalina.sh: 001-0019 Error found searching for command tty. No such path or directory.
> > Using CATALINA_BASE: /wintouch/tomcat
> > Using CATALINA_HOME: /wintouch/tomcat
> > Using CATALINA_TMPDIR: /wintouch/tomcat/temp
> > Using JRE_HOME: /QOpenSys/QIBM/ProdData/JavaVM/jdk60/32bit
> > Using CLASSPATH: /wintouch/tomcat/bin/bootstrap.jar:/wintouch/tomcat/bin/tomcat-juli.jar
>
>
> Which is to say, /QOpenSys/QIBM/ProdData/JavaVM/jdk60/32bit/jre is a JVM
> that, so far as I'm aware, doesn't have any problems with Tomcat.
> Everything above is exactly the same as in a successful launch on our
> V6R1 box.
>
> And Catalina.out is mercifully short this time:
>
> > java.lang.ClassNotFoundException: org.apache.catalina.startup.Catalina
> > at java.net.URLClassLoader.findClass(URLClassLoader.java:432)
> > at java.lang.ClassLoader.loadClass(ClassLoader.java:642)
> > at java.lang.ClassLoader.loadClass(ClassLoader.java:608)
> > at org.apache.catalina.startup.Bootstrap.init(Bootstrap.java:236)
> > at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)
>
>
> It's obviously trying to tell me SOMETHING, but I can't determine WHAT
> it's trying to tell me.
>
It's trying to tell you it can't find the class o.a.c.startup.Catalina.
This is normally in <TC_HOME>/lib/catalina.jar.
A. Does it exist there?
B. Does the user the process is running as have permission to read
that file and directory?
C. If yes to A & B, is the file corrupt?
> Any ideas? I don't see the class it's complaining about in either of the
> two JARs listed on the classpath dumped to STDOUT, but if that were the
> problem, it wouldn't work here, either.
>
> --
> JHHL
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>