|
Hi Alex; Thanks for the reply. I checked Tomcat home for 4.1 installation instruction and it says "Download a Java Development Kit (JDK) release (version 1.2 or later)". Besides we have Tomcat 4.1.12 running on two As400 boxes that are on jdk 1.2. Since this box never ran java before there may be some jdk or other related problems. Bruce ----- Original Message ----- From: "Alex Pinsky" <apinsky@aeropostale.com> To: "Java Programming on and around the iSeries / AS400" <java400-l@midrange.com> Sent: Tuesday, January 14, 2003 7:13 AM Subject: RE: "FATAL ERROR in native method: Expected a string" > Hi Bruce, > According to settings of your classpath I assume that you installing Tomcat4.1.12. This version of Tomcat requires JDK1.3 You have to upgrade to 1.3 or use other version of Tomcat (3.X.X) > Alex > > -----Original Message----- > From: Bruce Jin [mailto:JIN007M@hotmail.com] > Sent: Monday, January 13, 2003 7:01 PM > To: java400-j > Subject: "FATAL ERROR in native method: Expected a string" > > > I installed tomcat on an AS400. This box has jdk1.2. The is the first time we try run Java code on this box. I started tomcat and it I got the error "FATAL ERROR in native method: Expected a string". It appears that it failed when the system tried to attaching JVAPGM to tomcat jar files because the failing point is where I usually see "Attaching Java program to xxx.jar file" messages. > > Any ideas? Do I miss something on this as400? > > Thanks. > > Bruce. > > > > > > QSH console messages: > > > > Using Classpath: /tomcat4112/bin/bootstrap.jar:/QIBM/ProdData/Java400/jdk12/lib/tools.jar > > Using CATALINA_BASE: /tomcat4112 > > Using CATALINA_HOME: /tomcat4112 > > Using JAVA_HOME: /QIBM/ProdData/Java400/jdk12 > > [INFO] Registry - -Loading registry information > > [INFO] Registry - -Creating new Registry instance > > [INFO] Registry - -Creating MBeanServer > > [INFO] Http11Protocol - -Initializing Coyote HTTP/1.1 on port 8080 > > Starting service Tomcat-Standalone > > Apache Tomcat/4.1.12 > > FATAL ERROR in native method: Expected a string > > java/io/File.deleteOnExit()V+19 (File.java:739) > > sun/net/www/protocol/jar/JarFileFactory$1.run()Ljava/lang/Object;+20 (JarFileFactory.java:153) > > sun/net/www/protocol/jar/JarFileFactory.retrieve(Ljava/net/URL;)Ljava/util/j ar/JarFile;+30 arFileFactory.java:146) sun/net/www/protocol/jar/JarFileFactory.get(Ljava/net/URL;)Ljava/util/jar/Ja rFile;+85 (JarFileFactory.java:86) > > > sun/net/www/protocol/jar/JarURLConnection.connect()V+15(JarURLConnection.jav a:92) sun/net/www/protocol/jar/JarURLConnection.getJarFile()Ljava/util/jar/JarFile ;+1 (JarURLConnection.java:76) org/apache/catalina/startup/ContextConfig.tldScanJar(Ljava/lang/String;)V+0 (ContextConfig.java:888) > > org/apache/catalina/startup/ContextConfig.tldScan()V+0 (ContextConfig.java:861) org/apache/catalina/startup/ContextConfig.start()V+0 (ContextConfig.java:620) org/apache/catalina/startup/ContextConfig.lifecycleEvent(Lorg/apache/catalin a/LifecycleEvent;)V+0 (ContextConfig.java:230) > > org/apache/catalina/util/LifecycleSupport.fireLifecycleEvent(Ljava/lang/Stri ng;Ljava/lang/Object;)V+0 (LifecycleSupport.java:160) > > org/apache/catalina/core/StandardContext.start()V+0 (StandardContext.java:3362) org/apache/catalina/core/ContainerBase.start()V+0 (ContainerBase.java:1153) > > org/apache/catalina/core/StandardHost.start()V+0 (StandardHost.java:722) org/apache/catalina/core/ContainerBase.start()V+0 (ContainerBase.java:1153) org/apache/catalina/core/StandardEngine.start()V+0 (StandardEngine.java:344)
As an Amazon Associate we earn from qualifying purchases.
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.