× 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.



This is in our file:

java.home=/QIBM/ProdData/Java400/jdk14/
java.version=1.4                      
os400.awt.native=true                 
java.awt.headless=true                
------------------------------------

I'm running 5.2


If I use those settings, tomcat doesn't want to work...

I removed them, and placed them in the catalina.sh, and I got the same
error...

   "$_RUNJAVA" $JAVA_OPTS $CATALINA_OPTS \
      -Djava.endorsed.dirs="$JAVA_ENDORSED_DIRS" -classpath "$CLASSPATH" \
      -Dcatalina.base="$CATALINA_BASE" \
      -Dcatalina.home="$CATALINA_HOME" \
--->  -Djava.awt.headless=true \
      -Djava.io.tmpdir="$CATALINA_TMPDIR" \
      org.apache.catalina.startup.Bootstrap "$@" start \
      >> "$CATALINA_BASE"/logs/catalina.out 2>&1 &

      if [ ! -z "$CATALINA_PID" ]; then
        echo $! > $CATALINA_PID
      fi      


  40   02/03/06  15:34:59.128760  realcftrap2              0018F8   QJVAJNI
QSYS        *STMT
    To module . . . . . . . . . :   QJVAJNI

    To procedure  . . . . . . . :   JNI_CreateJavaVM

    Statement . . . . . . . . . :   5529

    Message . . . . :   The Java Virtual Machine has ended.

    Cause . . . . . :   Java Virtual Machine 1 has ended because of reason
4.  The               
      reason codes are defined as follows: 01- A Java program called the

      java.lang.System.exit method with a zero status code. 02- A Java
program                   
      called the java.lang.System.exit method with a non zero status code of
0.                  
      03- An unexpected system error was detected. 04- A critical Java
Virtual                   
      Machine thread has ended and processing cannot continue. Recovery  . .
. :                 
      If the Java Virtual Machine ended because of reason code 03, an
internal                   
      error has occurred.  Contact you service representative.  Information
about                
      the error was saved in the Licensed Internal Code log.

  40   02/03/06  15:34:59.254304  QJVAUTLJVM   QSYS        *STMT    QJVAJVM
QSYS        *STMT
    From module . . . . . . . . :   QJVAUTLJVM

    From procedure  . . . . . . :   JvaSendMsg


Do I need to launch tomcat through the pase enviornment?  Or just the
standard strqsh?

I'm struggling here...

Thanks, Tim 

-----Original Message-----
From: web400-bounces@xxxxxxxxxxxx [mailto:web400-bounces@xxxxxxxxxxxx] On
Behalf Of Pete Helgren
Sent: Friday, February 03, 2006 1:41 PM
To: Web Enabling the AS400 / iSeries
Subject: Re: [WEB400] Tomcat java properties question

You don't set it for an app, you just set the general property in the
/QIBM/UserData/Java400/SystemDefault.properties file

This is in our file:

java.home=/QIBM/ProdData/Java400/jdk14/
java.version=1.4                      
os400.awt.native=true                 
java.awt.headless=true                

HTH

Pete Helgren


Hatzenbeler, Tim wrote:

>I have a webapp, that is giving me this error message...
>
>AWT class or API used without specifying property os400.awt.native=true 
>or java.awt.headless=true
>
>How would I set the headless = true, for an app in tomcat? 
>
>Thanks, Tim
>  
>
--
This is the Web Enabling the AS400 / iSeries (WEB400) mailing list To post a
message email: WEB400@xxxxxxxxxxxx To subscribe, unsubscribe, or change list
options,
visit: http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at
http://archive.midrange.com/web400.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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.