Tomcat error 405 status error

I use tomcat 4.1
I call simple servlet "hello.java"
which print hello on tomcat screen
but when I put url on browser "http://localhost:8080/demo/servlet/hello"
I got error 405 status error message:- not support get request
servlet code
import java.io.*;
import java.util.*;
import javax.servlet.*;
import javax.servlet.http.*;
public class hello extends HttpServlet {
public void doPost(HttpServletRequest request,
HttpServletResponse response)
throws IOException, ServletException
{    System.out.println("hello");
response.setContentType("text/html");
PrintWriter out = response.getWriter();
out.println("<html>");
out.println("<head>rakesh");
out.println("</head>");
out.println("<body bgcolor=\"white\">");
out.println("</body>");
out.println("</html>");
please help me

just use
public void doPost(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException
       processRequest(request,response);
public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException
       processRequest(request,response);
public void processRequest(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException
         response.setContentType("text/html");
         PrintWriter out = response.getWriter();
          System.out.println("hello");
         out.println("<html>");
         out.println("<head>rakesh");
           out.println("</head>");
           out.println("<body bgcolor=\"white\">");
          out.println("</body>");
          out.println("</html>");
}

Similar Messages

  • Tomcat error in DFM 3.0.5

    Hi,
    On a LMS 3.0.1, DFM 3.0.5, I've got a Tomcat error, when I want to see the "Alerts and Activity" (see attachement)
    Trying to solve the problem, i've made several try:
    1. I purged the dfm database (CSCOpx/bin/dbRestoreOrig.pl dsn=dfmInv dmprefix=INV, CSCOpx/bin/dbRestoreOrig.pl dsn=dfmFh dmprefix=FH,
    CSCOpx/bin/dbRestoreOrig.pl dsn=dfmEpm dmprefix=EPM)
    2. Import devices from DCR (almost 400 devices). I can see all the devices in "Device Management/Device summary"
    3. re-install DFM 3.0.5
    and this doesn't solve the problem
    I attach the "pdshow", if it can help.
    Which log file can help you ?
    thanks

    I add:
    As the post (https://supportforums.cisco.com/message/1328737#1328737), I do this:
    "NMSROOT/objects/db/win32/dbsrv9 -f NMSROOT/databases/dfmEpm/dfmEpm.db"
    and restore the database by
    "NMSROOT/bin/perl NMSROOT/bin/dbRestoreOrig.pl dsn=epm dmprefix=EPM"
    in attachement, the new pdshow (the EPMDbEngine is started, but the EPMServer is down)
    And still "tomcat error"...
    If you have an idea...

  • Tomcat error:" It is not available the ServletAction"  and jars not found

    Hi,
    I am deploying an application using Ant from MyEclipse IDE.
    When I deploy the application with the Ant, it says to me that the application has successfully deployed. I go to webaapps directory and I can see into that it how the application has been deployed with its WAR.
    But when I try to excute the application, Tomcat gives me the following error:
    Message: It is not available the Servlet Action
    Description: The request resource (It doesn`t available the ServletAction) is not available.
    If I go to Apache Tomcat`s stdout log I can see two warnings:
    WARN: No appends could be found for logger (org.apache.commons.beanutils.Convertutils)
    WARN: Please initialize the log4j system properly
    But, If I go to the Java Build path of the application I can verify how I have added the commons.beanutils.jar and log4j.jar .
    I don`t know why it doesn´t run and I am stuck.
    I would be very grateful somebody could help me to solve this problem.
    Regards

    The logging doesn't need to be set up properly for the web app to function, usually. The more critical point is the error message from Tomcat about the Servlet Action. Is that the exact error message? I'm just asking because I've never seen a Tomcat error written like that. Could you post the exact message.. Are you using Struts? And where are you seeing the Tomcat error message? Is it appearing in the console or in one of the logs or in the browser?
    My guess is you have a jar missing from your classpath but I can't tell from what you've posted.

  • Tomcat error when posting on netpro

    Is there a way to make that tomcat error go away?
    (when I post I get an error, then I have to go back to the post and edit it to put in the actual text of the post and it sticks.)
    Just like I had to do on this one.

    I've seen this happening since years.
    Since it never happened to me, I've always thought it is actually related to the client or network connection
    Altough, I must agree that nothing in theory should cause a post to appear without an author. Unfortunately it seem the forum software here isn't what you call top notch.

  • BC4J / Tomcat error is back!?!?

    Hi all,
    Once I encountered the following problem with BC4J using Tomcat:
    Error Message: Only one of the two parameters target or targetParam should be defined.
    The solution was changing the enablePooling property to false (in the web.xml). Now, I upgraded Tomcat to 4.1.27 and now the problem is back. Changing the property again does not make any difference. Does anyone know (another) solution for this?
    Thanks...Hans

    Part of my web.xml which I changed:
    <!-- The JSP page compiler and execution servlet, which is the mechanism -->
    <!-- used by Tomcat to support JSP pages. Traditionally, this servlet -->
    <!-- is mapped to URL patterh "*.jsp". This servlet supports the -->
    <!-- following initialization parameters (default values are in square -->
    <!-- brackets): -->
    <!-- -->
    <!-- checkInterval If development is false and reloading is true, -->
    <!-- background compiles are enabled. checkInterval -->
    <!-- is the time in seconds between checks to see -->
    <!-- if a JSP page needs to be recompiled. [300] -->
    <!-- -->
    <!-- compiler Which compiler Ant should use to compile JSP -->
    <!-- pages. See the Ant documenation for more -->
    <!-- information. [javac] -->
    <!-- -->
    <!-- classdebuginfo Should the class file be compiled with -->
    <!-- debugging information? [true] -->
    <!-- -->
    <!-- classpath What class path should I use while compiling -->
    <!-- generated servlets? [Created dynamically      -->
      <!--                       based on the current web application] -->
    <!-- -->
    <!-- development Is Jasper used in development mode (will check -->
    <!-- for JSP modification on every access)? [true] -->
    <!-- -->
    <!-- enablePooling Determines whether tag handler pooling is -->
    <!-- enabled [true] -->
    <!-- -->
    <!-- ieClassId The class-id value to be sent to Internet -->
    <!-- Explorer when using <jsp:plugin> tags. -->
    <!-- [clsid:8AD9C840-044E-11D1-B3E9-00805F499D93] -->
    <!-- -->
    <!-- fork Tell Ant to fork compiles of JSP pages so that -->
    <!-- a separate JVM is used for JSP page compiles -->
    <!-- from the one Tomcat is running in. [true] -->
    <!-- -->
    <!-- javaEncoding Java file encoding to use for generating java -->
    <!-- source files. [UTF8] -->
    <!-- -->
    <!-- keepgenerated Should we keep the generated Java source code -->
    <!-- for each page instead of deleting it? [true] -->
    <!-- -->
    <!-- largefile Should we store the static content of JSP -->
    <!-- pages in external data files, to reduce the -->
    <!-- size of the generated servlets? [false] -->
    <!-- -->
    <!-- logVerbosityLevel The level of detailed messages to be produced -->
    <!-- by this servlet. Increasing levels cause the -->
    <!-- generation of more messages. Valid values are -->
    <!-- FATAL, ERROR, WARNING, INFORMATION, and DEBUG. -->
    <!-- [WARNING] -->
    <!-- -->
    <!-- mappedfile Should we generate static content with one -->
    <!-- print statement per input line, to ease -->
    <!-- debugging? [false] -->
    <!-- -->
    <!-- reloading Should Jasper check for modified JSPs? [true] -->
    <!-- -->
    <!-- scratchdir What scratch directory should we use when -->
    <!-- compiling JSP pages? [default work directory  -->
      <!--                       for the current web application] -->
    <!-- -->
    <!-- If you wish to use Jikes to compile JSP pages: -->
    <!-- Set the init parameter "compiler" to "jikes". Define -->
    <!-- the property "-Dbuild.compiler.emacs=true" when starting Tomcat -->
    <!-- by adding the above to your CATALINA_OPTS environment variable. -->
    <!-- If you get an error reporting that jikes can't use UTF8 encoding, -->
    <!-- try setting the init parameter "javaEncoding" to "ISO-8859-1". -->
    <servlet>
    <servlet-name>jsp</servlet-name>
    <servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class>
    <init-param>
    <param-name>enablePooling</param-name>
    <param-value>false</param-value>
    </init-param>
    <init-param>
    <param-name>logVerbosityLevel</param-name>
    <param-value>WARNING</param-value>
    </init-param>
    <init-param>
    <param-name>fork</param-name>
    <param-value>false</param-value>
    </init-param>
    <load-on-startup>3</load-on-startup>
    </servlet>
    <!-- Server Side Includes processing servlet, which processes SSI -->
    <!-- directives in HTML pages consistent with similar support in web -->
    <!-- servers like Apache. Traditionally, this servlet is mapped to -->
    <!-- URL pattern "*.shtml". This servlet supports the following -->
    <!-- initialization parameters (default values are in square brackets): -->
    <!-- -->
    PS. Sorry for late response, but email notification of this forum doesn't work sometimes...

  • Tomcat error message help

    I am trying to get the sample file upload from orielly to work. I did not anything from the sample java classes (except the file location repository) and I get the following tomcat error message:
    org.apache.jasper.JasperException
         org.apache.jasper.runtime.JspRuntimeLibrary.handleSetProperty(JspRuntimeLibrary.java:711)
         org.apache.jsp.upload_005f1_jsp._jspService(upload_005f1_jsp.java:56)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:311)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:856)JSP:
    <jsp:useBean id="uploader" class="com.jspservletcookbook.UploadBean" />
    <jsp:setProperty name="uploader" property="dir"
        value="<%=application.getInitParameter(\"ROOT\")%>" />
    <jsp:setProperty name="uploader" property="req"  value="<%= request %>" />
    <html>
    <head><title>file uploads</title></head>
    <body>
    <h2>Here is information about the uploaded files</h2>
    <jsp:getProperty name="uploader" property="uploadedFiles" />
    </body>
    </html>HTML
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <html>
    <head>
         <title>Please Choose The File</title>
    </head>
    <body bgcolor="#ffffff">
    <table border="0"><tr>
    <!-- /home/servlet/com.jspservletcookbook.UploadServlet -->
    <form action="upload_1.jsp" method="post" enctype="multipart/form-data">
    <td valign="top"><strong>Please choose your document:</strong><br></td>
    <td><input type="file" name="file1"><br><br>
    </td></tr>
    <tr><td><input type="submit" value="Upload"></td></tr>
    </form>
    </table>
    </body>
    </html>

    just a guess, there is an error in the way you are setting the property (hence the handleSetProperty method that threw the error.
    as you amy be newer, a good way to debug a jsp from tomcat that is giving odd errors on the page is to view the java source code that tomcat generated from your jsp. look in the work directory, and paw around a bit, and you will find a file called upload_005f1_jsp.java. That is the java servlet tomcat made you rjsp into. look in that file, and you'll see on line 56 the exception was either caught or thrown. then look for the property that it tried to set just above it. that is the property that tomcat got mad about. (either a mispelling on your part, or their docs are wrong - altered api perhaps? ) Anyway, if you continue to get frustrated with the orielly classes, look at commons-uploader from jakarta. It is a wonderful file upload library, and I have used it a lot in several struts apps.

  • HTTP Status 500 Apache/Tomcat error

    Hi !
    I'm having trouble getting my Java Plumtree Portal (5.02) to work correctly due to Apache/Tomcat HTTP Status 500 errors that come up when I try to perform certain actions on Content Server objects (PCS v 5.0.2).
    E.g., when I try to preview the 'Main Page' content item from a Content Server Portlet based on a Communauty Directory Portlet Template in Content Server Explorer, I get the following statement :
    HTTP Status 500 -
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:254) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2416) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:601) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619) at java.lang.Thread.run(Thread.java:536)
    root cause
    javax.servlet.ServletException at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:536) at org.apache.jsp.navigate_jsp._jspService(navigate_jsp.java:226) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:210) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2416) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:601) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619) at java.lang.Thread.run(Thread.java:536)
    Apache Tomcat/4.1.27-LE-jdk14
    And when I try to "Create a folder" on the front part of a Communauty Directory Content Portlet I have added to a communauty page, I get the following :
    HTTP Status 500 -
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this
    request.
    exception
    org.apache.jasper.JasperException: Unable to compile class for JSP
    An error occurred at line: -1 in the jsp file: null
    Generated servlet error: [javac] Compiling 1 source file
    The system is out of resources.Consult the following stack trace for details.java.lang.OutOfMemoryError
    at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:130) at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:293) at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:353) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:370) at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:473) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:190) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256) at
    org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.j
    ava:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at
    org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.j
    ava:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2416) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) at
    org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.j
    ava:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171) at
    org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.j
    ava:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172) at
    org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.j
    ava:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174) at
    org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.j
    ava:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:601) at
    org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.jav
    a:392) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619) at java.lang.Thread.run(Thread.java:536)
    I understand the problem seems to come from Jasper, the jsp engine used by Tomcat and that some jsp files seem to never be found...
    I know that two jar files might be the source of this problem (not existing in a particular directory, or not being refered in a classpath) : "jasper-compiler.jar" and "jasper-runtime.jar"
    I've tried to add these to the CLASSPATH environment variable but it didn't work.
    I've tried to resolve by copying jasper-runtime.jar and jasper-compile to \jakarta-tomcat-4.1.27-LE-j2sdk1.4.1_05\j2sdk1.4.1_05\lib directory but didn't work either.
    Moreover I don't understand because some errors seem to never come up again after having uninstalled the Tomcat Service (we created a special Tomcat Service installation script to launch Tomcat with an added -Djava.endorsed.dirs option to enable the XML Source Portlet to run correctly) and reinstalled another one with the default installation script (the same script but without the -Djava.endorsed.dirs option) This might be because the process calling the jsp files and compiling them to java files, which are then compiled to class files, only happens when the portal needs to request a particular jsp. So it might be that some files would have allready been compiled with Tomcat (based on the original installation script) running and it is only when the portal tries to reach class files that would never have been compiled because never been requested that the error statement comes up...
    Thanks for those who couragesly read this entire Topic.
    I deeply thank those who would have encoutered a similar problem or would know a possible solution and could give me a clue. I'm statring to get desperate...
    Sebastien, Groupe i3m, France.

    The exception is throwing when u r trying to convert null value into integer/float or double..
    Check for this

  • Tomcat Error: Requested Resource is not Available.

    I'm working on a Struts project, which involves working w/ JSP pages, Tomcat and Java classes.
    I keep receiving the following error whenever I click on a link on my main JSP page. My Servlet's name is StrutsGame, which is defined in web.xml
    HTTP Status 404 - Servlet StrutsGame is not available
    type Status report
    message Servlet StrutsGame is not available
    description The requested resource (Servlet StrutsGame is not available) is not available.
    Apache Tomcat/5.5.20Note that I do not get this problem when I enter the main jsp, although this is under the same servlet name.
    My main jsp page is called DisplayMainMenu.jsp, which contains links to GetAddInfo.jsp, GetDeleteInfo.jsp, GetEditName.jsp and DisplayGames.jsp.
    I receive the problem discussed above when I click on GetAddInfo.jsp.
    Here's how my web.xml looks like. Please help out!
    <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
    <web-app>
      <servlet>
        <servlet-name>StrutsGame</servlet-name>
        <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
         <init-param>
          <param-name>application</param-name>
          <param-value>StrutsGame</param-value>
        </init-param>
         <init-param>
          <param-name>config</param-name>
          <param-value>/WEB-INF/struts-config.xml</param-value>
        </init-param>
        </servlet>
      <servlet-mapping>
        <servlet-name>StrutsGame</servlet-name>
        <url-pattern>/do/*</url-pattern>
      </servlet-mapping>
        <session-config id="timeout">     
         <session-timeout>600</session-timeout>
        </session-config>     
      <welcome-file-list>
        <welcome-file>jsp/DisplayMainMenu.jsp</welcome-file>
      </welcome-file-list>
      <taglib>
        <taglib-uri>struts/bean-el</taglib-uri>
        <taglib-location>/WEB-INF/struts-bean-el.tld</taglib-location>
      </taglib>
      <taglib>
        <taglib-uri>struts/html-el</taglib-uri>
        <taglib-location>/WEB-INF/struts-html-el.tld</taglib-location>
      </taglib>
      <taglib>
        <taglib-uri>struts/logic-el</taglib-uri>
        <taglib-location>/WEB-INF/struts-logic-el.tld</taglib-location>
      </taglib>
    </web-app>

    make this sample web.xml as your reference:
    <?xml version = '1.0' encoding = 'windows-1252'?>
    <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app>
      <description>Empty web.xml file for Web Application</description>
      <servlet>
        <servlet-name>SampleServlet</servlet-name>
        <servlet-class>com.sample.SampleServlet</servlet-class>
      </servlet>
      <servlet>
        <servlet-name>MyServlets</servlet-name>
        <servlet-class>myServlet.MyServlets</servlet-class>
      </servlet>
      <servlet>
        <servlet-name>myServlets</servlet-name>
        <servlet-class>com.myapp.myServlets</servlet-class>
      </servlet>
      <servlet>
        <servlet-name>MyServlet</servlet-name>
        <servlet-class>mypackage5.MyServlet</servlet-class>
      </servlet>
      <servlet>
        <servlet-name>FetchDataServlet</servlet-name>
        <servlet-class>com.myapp.FetchDataServlet</servlet-class>
      </servlet>
      <servlet>
        <servlet-name>ReportServlet</servlet-name>
        <servlet-class>com.jubabes.ReportServlet</servlet-class>
      </servlet>
      <servlet-mapping>
        <servlet-name>MyServlets</servlet-name>
        <url-pattern>/myservlets</url-pattern>
      </servlet-mapping>
      <servlet-mapping>
        <servlet-name>MyServlet</servlet-name>
        <url-pattern>/myservlet</url-pattern>
      </servlet-mapping>
      <servlet-mapping>
        <servlet-name>FetchDataServlet</servlet-name>
        <url-pattern>/fetchdataservlet</url-pattern>
      </servlet-mapping>
      <servlet-mapping>
        <servlet-name>ReportServlet</servlet-name>
        <url-pattern>/reportservlet</url-pattern>
      </servlet-mapping>
      <session-config>
        <session-timeout>35</session-timeout>
      </session-config>
      <mime-mapping>
        <extension>html</extension>
        <mime-type>text/html</mime-type>
      </mime-mapping>
      <mime-mapping>
        <extension>txt</extension>
        <mime-type>text/plain</mime-type>
      </mime-mapping>
    </web-app>

  • Tomcat error while trying to run the servlet

    I am etting the below error while trying to run a servlet from tomcat server.
    HTTP Status 404 - /servlet/DailyStatusServlet
    type Status report
    message /servlet/DailyStatusServlet
    description The requested resource (/servlet/DailyStatusServlet) is not available.
    Can anyone help me in solving this error.

    rnaaz wrote:
    Can anyone help me in solving this error.Start by making sure you've properly mapped that URL in your deployment descriptor (web.xml file).
    ~

  • Help reading tomcat error.

    I am receiving an error and could probably figure it out if I new the lines to look for to debug.
    Apache Tomcat/4.0.3 - HTTP Status 500 - Internal Server Error
    type Exception report
    message Internal Server Error
    description The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request.
    exception
    javax.servlet.ServletException: Servlet execution threw an exception
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1012)
         at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107)
         at java.lang.Thread.run(Thread.java:539)
    root cause
    java.lang.NoSuchMethodError: cart.Item.(Ljava/lang/String;Ljava/lang/String;DI)V
         at cart.AddToShoppingCartServlet.service(AddToShoppingCartServlet.java:17)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1012)
         at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107)
         at java.lang.Thread.run(Thread.java:539)

    ok. thats kind of what I assume, so I've been playing with that line and getting nowhere.
    // here is my Item object
    public Item (String aProductCode, String aDescription, double aPrice, int aQuantity, String aImage)
    productCode = aProductCode;
    description = aDescription;
    price = aPrice;
    quantity = aQuantity;
    image_sm = aImage;
    // line 17 in add..
    Item item = new Item(productCode, description, price, quantity, image_sm);
    still the same method error.

  • Apache Tomcat error report when trying to link to websites from Talk Talk webmail

    Using Talk Talk webmail, can't access web links from there, but get error report. Status 404. Apache Tomcat 5.5.27.

    Unfortunately cannot read rest of forum, due to an error on your page, but presume others have had this problem, both on IE and Mozilla. I only had a result by forwarding the offending email and its ("greyed out Apache Tomcat") attachment to my other email address (Hotmail) and was able to read it there.
    Just WHAT is going on with TalkTalk???

  • Internal Tomcat Error while running JSP

    Hi,
    I was running a jsp page on Sun One Studio and here is what I am getting, any help would really appreciate.
    C:\Sun\AppServer\jdk\jre\bin\java -classpath "C:\Sun\studio5u1_se\jwsdp\bin\bootstrap.jar";"C:\Sun\AppServer\jdk\lib\tools.jar" -Dcatalina.home="C:\Sun\studio5u1_se\jwsdp" -Dcatalina.base="C:\Documents and Settings\sjoy\studio5se_user\jwsdp_base" org.apache.catalina.startup.Bootstrap "start"
    Starting service Tomcat-Netbeans
    Java Web Services Developer Pack/1.0_01-fcs
    Thanks

    Hi,
    Maybe I am missing something but it does not appear your post below includes your error.

  • Tomcat error

    I am having problem starting tomcat. This is the error I find in the log file.
    2005-07-27 14:52:23 StandardContext[admin]: Resources start failed:
    2005-07-27 14:52:23 StandardContext[admin]: Context startup failed due to previous errors
    2005-07-27 14:52:23 StandardContext[admin]: Exception during cleanup after start failed
    LifecycleException: Container StandardContext[admin] has not been started
         at org.apache.catalina.core.StandardContext.stop(StandardContext.java:3643)
         at org.apache.catalina.core.StandardContext.start(StandardContext.java:3621)
         at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:821)
         at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
         at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579)
         at org.apache.catalina.core.StandardHostDeployer.addChild(StandardHostDeployer.java:529)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:228)
         at org.apache.commons.digester.SetNextRule.end(SetNextRule.java:260)
         at org.apache.commons.digester.Digester.endElement(Digester.java:1036)
         at org.apache.xerces.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:585)
         at org.apache.xerces.impl.XMLNamespaceBinder.endElement(XMLNamespaceBinder.java:647)
         at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:1008)
         at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1469)
         at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:329)
         at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:525)
         at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:581)
         at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
         at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1175)
         at org.apache.commons.digester.Digester.parse(Digester.java:1514)
         at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:335)
         at org.apache.catalina.core.StandardHost.install(StandardHost.java:803)
         at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:452)
         at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:409)
         at org.apache.catalina.startup.HostConfig.start(HostConfig.java:879)
         at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:368)
         at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1196)
         at org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
         at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
         at org.apache.catalina.core.StandardService.start(StandardService.java:497)
         at org.apache.catalina.core.StandardServer.start(StandardServer.java:2189)
         at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
         at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
         at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
    I am pretty new at web development, and any clue or pointer would help.

    Is that not ok? or something else is wrongYou've installed JDK 6. It doesn't follow that you
    don't have JDK 5 installed as well. Clearly you do,
    and clearly you're running Tomcat with it (even if
    you didn't mean to).I am little bit confused may be due to your strong english language.
    1) I compiled with jdk (1.6.0-b105) in OS=xp (at my labtop)
    2) I installed jdk-6u1-linux-i586-rpm.bin and jdk-6u1-linux-i586.rpm on my dedicated server
    My question is jdk that i installed on my dedicated server is ok if this is right then why its throwing the subject error?? I need solution plz.
    Please get me pardon if didn't understand your answer

  • Tomcat error: "method not found"

    I'm starting a new thread because the issue is method not found.
    So kindly bear with me.
    I'm using Tomcat 5 with Javac 1.4.2. I have created a test class
    called hellothere. The idea is to call a method from JSP.
    package helloworld;
    import java.lang.*;
    public class hellothere {
    public String sayworld()
    String st="hello from hellothere";
    return st;
    public int returnint()
    return 1;
    And the jsp looks like:
    <%@ page import="helloworld.*" %>
    <html>
    <head>
    <title> hello there </title>
    <body>
    <%
    hellothere h=new hellothere();
    String st2=h.sayworld();
    out.println(st2);
    out.println(h.returnint());
    %>
    </body>
    </html>
    The error I get is:
    method not found helloworld.hellothere.sayworld()Ljava/lang/String;
    blah blah
    When I call the returnint after commenting sayworld I get the same error, i.e. method returnint not defined.
    Does anyone know what's going on?
    Thanks

    Make sure that there is only one version of the class
    file on your system. Then check spelling and
    capitalization of the method names.
    You are not trying to run this from an IDE are you?No. I was using Tomcat 5. I don't see this problem with Tomcat 4.
    Thanks

  • Jakarta Tomcat error - 'Package MyUtils not found in import.'

    Jakarta Tomcat - 'Package MyUtils not found in import.'
    Can anyone help with this error please?
    My JSP code P6.jsp contains :-
    <%@page import="MyUtils.* ,java.util.*"%>
    But, the package MyUtils with class file NameStore.class is not found.
    The actual error at JSP translation time is:-
    org.apache.jasper.JasperException: Unable to compile class for JSPNote: sun.tools.javac.Main has been deprecated.
    C:\jdk1.4\jakarta-tomcat-4.0.1\work\Standalone\localhost\lab06\P6$jsp.java:3: Package MyUtils not found in import.
    import MyUtils.* ;
    ^
    My directory structure is listed below:-
    %CATALINA_HOME/webapps/lab06( contains P6.jsp)/web-inf/classes/MyUtils/NameStore.class
    Can anyone help please?
    Thanks,John Withington

    put your package in your WEB-INF directory!

Maybe you are looking for