|
Barry, I tried that and now get the following: Error: 500 Location: /PVSW/servlet/hello Internal Servlet Error: java.lang.NullPointerException java/lang/ClassLoader.resolveClass(Ljava/lang/Class;)V+4 (ClassLoader.java:577) org/apache/tomcat/loader/AdaptiveClassLoader.loadClass(Ljava/lang/String;Z)L java/lang/Class;+108 (AdaptiveClassLoader.java:461) org/apache/tomcat/loader/AdaptiveServletLoader.loadClass(Ljava/lang/String;) Ljava/lang/Class;+16 (AdaptiveServletLoader.java:178) org/apache/tomcat/core/ServletWrapper.loadServlet()V+38 (ServletWrapper.java:265) org/apache/tomcat/core/ServletWrapper.init()V+32 (ServletWrapper.java:289) org/apache/tomcat/core/Handler.service(Lorg/apache/tomcat/core/Request;Lorg/ apache/tomcat/core/Response;)V+18 (Handler.java:254) org/apache/tomcat/core/ServletWrapper.service(Lorg/apache/tomcat/core/Reques t;Lorg/apache/tomcat/core/Response;)V+139 (ServletWrapper.java:372) org/apache/tomcat/core/ContextManager.internalService(Lorg/apache/tomcat/cor e/Request;Lorg/apache/tomcat/core/Response;)V+248 (ContextManager.java:806) org/apache/tomcat/core/ContextManager.service(Lorg/apache/tomcat/core/Reques t;Lorg/apache/tomcat/core/Response;)V+15 (ContextManager.java:752) org/apache/tomcat/service/connector/JNIConnectionHandler.processConnection(J J)V+249 (JNIConnectionHandler.java:186) org/apache/tomcat/service/JNIEndpoint.service(JJ)I+13 (JNIEndpoint.java:176) I'm not sure what to do now. I'll be looking up the NullPointerException. Thanks, Eric -----Original Message----- From: BMIROW@aol.com [mailto:BMIROW@aol.com] Sent: Thursday, November 14, 2002 4:05 PM To: java400-l@midrange.com Subject: RE: ClassCastException Error in a Java Servlet Put the html form in your webapps/PVSW folder. Lets assume you call it hello.html. If your program is called Hello.class, then the action statement in the form tag of hello.html should be action="servlet/Hello". The Hello.class should be in the webapps/PVSW/WEB-INF/classes folder. Then try executing the http://myas400.com:8000/test/hello.html. Barry _______________________________________________ This is the Java Programming on and around the iSeries / AS400 (JAVA400-L) mailing list To post a message email: JAVA400-L@midrange.com To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/cgi-bin/listinfo/java400-l or email: JAVA400-L-request@midrange.com Before posting, please take a moment to review the archives at http://archive.midrange.com/java400-l.
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.