Operating System - OpenVMS
1827809 Members
1997 Online
109969 Solutions
New Discussion

Re: CSWS_JAVA 2.1 and FastVM 1.4.2-2 crash

 
Peter Skoog
Occasional Contributor

CSWS_JAVA 2.1 and FastVM 1.4.2-2 crash

I have installed CSWS_JAVA 2.1 on an Alpha with OpenVMS 7.3-2 and Java 1.4.2-2. When i try to enable usage of FastVM with logical APACHE$JAKARTA_USE_FASTVM = TRUE the process exits immediately with a Java runtime error

org.apache.commons.logging.LogConfigurationException: java.lang.NullPointerException
at org.apache.commons.logging.LogFactory.newFactory(LogFactory.java:558)
....
I've attached the complete logfile.

The same thing happends if I use Java 1.4.1 or 1.3.1.

What can be the reason for this?
7 REPLIES 7
Ian Miller.
Honored Contributor

Re: CSWS_JAVA 2.1 and FastVM 1.4.2-2 crash

I would double your PGFLQUO and try again - java apps are virtually very big :-(

Check on the quotas of the process as it runs with AMDS/Availmgr or SHOW_QUOTA dcl file (avilable from http://dcl.openvms.org/stories.php?story=03/06/03/0022504
)
____________________
Purely Personal Opinion
Martin P.J. Zinser
Honored Contributor

Re: CSWS_JAVA 2.1 and FastVM 1.4.2-2 crash

Also for starters, log-in to the account you use to run Apache and execute a small Java program ("Hello World" is sufficient ;-) to make sure the setup of Java for the account is correct.

Greetings, Martin
Martin P.J. Zinser
Honored Contributor

Re: CSWS_JAVA 2.1 and FastVM 1.4.2-2 crash

P.S. Does it work with Jakata if you do not usethe FASTVM but the "classic" one?
Willem Grooters
Honored Contributor

Re: CSWS_JAVA 2.1 and FastVM 1.4.2-2 crash

First of all, I guess you got that right but it IS wirthwhile checking it: ALL files accessed by Java must be in STRAEM_LF format.

When dows the error show: starting Apache, when executing a java servlet?

FastVM uses (at least) twice as much as the classic VM - see the documentation. This may be solved by increasing pagefilequota, but it may also be needed to change the application's heap size.

Willem
Willem Grooters
OpenVMS Developer & System Manager
Ian Miller.
Honored Contributor

Re: CSWS_JAVA 2.1 and FastVM 1.4.2-2 crash

This document
http://h71000.www7.hp.com/ebusiness/optimizingsdkguide/optimizingsdkguide.html
may be helpful.
____________________
Purely Personal Opinion
Peter Skoog
Occasional Contributor

Re: CSWS_JAVA 2.1 and FastVM 1.4.2-2 crash

Thanks for your answers.
However, the solution I finally received from HP in Sweden is:

"Java's FastVM V1.4.1-2 enables support for endorsed directories.
However, APACHE$JAKARTA_CONFIG.com has the endorsed directory
incorrectly defined for this version of Tomcat. As a workaround
you can change line 172 from "/lib" to "/endorsed"
Or you can define the following logical:
$ def APACHE$JAVA_ENDORSED_DIRS -
_$ "/dkb600/apache/jakarta/tomcat/common/endorsed" ! Must be Unix format ...
Or course change the /dkb600... to match your system."

Peter
Peter Skoog
Occasional Contributor

Re: CSWS_JAVA 2.1 and FastVM 1.4.2-2 crash

Solved.