Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java and JDK > Servlets
|
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Servlets section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 28th, 2005, 07:38 AM
Authorized User
 
Join Date: Jul 2004
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
Default Problem with Servlet from Tomcat to Apache

Hello,

I have built a Servlet under Tomcat 4.1.29 which works fine. I have been trying to install and run it under Oracle/Apache 1.3.22 and I am getting the following error:

[28/04/2005 13:22:25:506 BST] java.lang.NoSuchMethodError
        at com.educationwarwick.servlets.MayCollection.doGet( MayCollection.java:60)
        at javax.servlet.http.HttpServlet.service(HttpServlet .java:499)
        at javax.servlet.http.HttpServlet.service(HttpServlet .java:588)
        at org.apache.jserv.JServConnection.processRequest(JS ervConnection.java:456)
        at org.apache.jserv.JServConnection.run(JServConnecti on.java:294)
        at java.lang.Thread.run(Thread.java:484)
java.lang.NoSuchMethodError
        at org.apache.jserv.JServConnection.processRequest(JS ervConnection.java:462)
        at org.apache.jserv.JServConnection.run(JServConnecti on.java:294)
        at java.lang.Thread.run(Thread.java:484)


A couple of times I have seen it complain about a line of my code (the errors messages seem to change periodically - not sure why)

The line it objects to is (Line 60 of MayCollection.java):

TEMPLATE_PATH = sc.getInitParameter("TemplatePath");

where sc is a ServletContext object acquired via getServletContext().

Anybody know what it going on?

holdmykidney





Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache tomcat problem... joshi.sujit Apache Tomcat 0 April 15th, 2008 09:34 AM
Apache tomcat connection problem anu1 Apache Tomcat 0 January 26th, 2007 03:12 PM
servlet with tomcat problem... thiNkspAce Apache Tomcat 2 October 23rd, 2004 05:38 AM
Apache + Tomcat Problem rammy Apache Tomcat 1 January 2nd, 2004 12:40 PM
problem of running servlet in Tomcat 4.1.24 fxthomas JSP Basics 1 July 14th, 2003 01:37 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.