Hate to ask a stupid question but you didn't actually say so... You WERE running other Java and servlet stuff on the AS/400 successfully before this particular failure started, right? Just checking... 8-) Did you check any of the log files? Perhaps the classpath includes things on your PC/Tomcat installation that aren't present in the default classpath of the IBM HTTP server on the AS/400. "Do you believe that my being stronger or faster has anything to do with my muscles in this place?" ... "Free your mind." Laurence Fishburne as Morpheus in 'The Matrix'. Fred A. Kulack - AS/400e Java and Java DB2 access, Jdbc, JTA, etc... IBM in Rochester, MN (Phone: 507.253.5982 T/L 553-5982) mailto:email@example.com Personal: mailto:firstname.lastname@example.org AOL Instant Messenger: Home:FKulack Work:FKulackWrk "Richard Casey" <email@example.com>@midrange.com on 01/30/2001 11:57:27 AM Please respond to JAVA400-L@midrange.com Sent by: firstname.lastname@example.org To: "Java-400 List \(E-mail\)" <JAVA400-L@midrange.com> cc: Subject: Error 5 on API - Java Virtual Machine could not be found I've been experimenting with servlets that access AS/400 information and display it in my browser. Running the servlet under Tomcat on my PC works fine. In theory, I should be able to move the class files to the AS/400 and run them under IBM's HTTP server. However, when I submit the form to run the servlet, the browser just sits there waiting. Looking at the joblog for the HTTP server instance shows the following message. Message ID . . . . . . : CPDB520 Severity . . . . . . . : 40 Message type . . . . . : Diagnostic Message . . . . : Error 5 detected on application programming interface. Cause . . . . . : An error was found on the application programming interface (API) request. The error code is 5. The error codes are defined as follows: 03- An API parameter is not valid. 04- The current thread is attached to another Java Virtual Machine. 05- The Java Virtual Machine could not be found. It was never created or has been destroyed. 06- Insufficient application storage exists to return the requested data. 07- A Java Virtual Machine cannot be created in a job that allows only one thread to be started. 08- The classpath is not valid. Any ideas where my JVM went? Thanks in advance! +--- | This is the JAVA/400 Mailing List! | To submit a new message, send your mail to JAVA400-L@midrange.com. | To subscribe to this list send email to JAVA400-L-SUB@midrange.com. | To unsubscribe from this list send email to JAVA400-L-UNSUB@midrange.com. | Questions should be directed to the list owner: email@example.com +--- +--- | This is the JAVA/400 Mailing List! | To submit a new message, send your mail to JAVA400-L@midrange.com. | To subscribe to this list send email to JAVA400-L-SUB@midrange.com. | To unsubscribe from this list send email to JAVA400-L-UNSUB@midrange.com. | Questions should be directed to the list owner: firstname.lastname@example.org +---
As an Amazon Associate we earn from qualifying purchases.
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.