404 Servlet (servletName)not Available

Hi all,
If this is the wrong place for this message, I apologise in advance. I am completely new to all this.
I have been creating a servlet to access a database and populate a bean with that data. After much trouble and many errors, I am now getting the above error message. I have been running and accessing the servlet without problems but when I made changes within the servlet, the above appeared. I have been playing with try and catch (and not having much luck with where to place them). Anyway what I have is as below:
package all;
import java.io.*;
import java.net.*;
import java.sql.*;
import javax.servlet.*;
import javax.servlet.http.*;
* @author Tina McCaffrey
* @version
public class homePageGenerator extends HttpServlet {
Connection connCms = null;
Statement stmtCms = null;
ResultSet rsHomePage = null;
public void init() throws ServletException {
ServletContext context = getServletContext();
String appDirRoot = context.getRealPath("/");
String connString = "jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)}; DBQ=" + appDirRoot + "cms.mdb";
public void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException{
HttpSession session = request.getSession(true);
response.setContentType("text/html");
PrintWriter out = response.getWriter();
ServletContext context = getServletContext();
String appDirRoot = context.getRealPath("/");
String connString = "jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)}; DBQ=" + appDirRoot + "cms.mdb";
try
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver").newInstance();
Connection connCms = DriverManager.getConnection (connString);
Statement stmtCms = connCms.createStatement();
String sqlCms = "SELECT * FROM homepage";
ResultSet rsHomePage = stmtCms.executeQuery(sqlCms);
HomePageBean homePageBean = new HomePageBean();
while (rsHomePage.next())
homePageBean.setTitle(rsHomePage.getString("title"));
homePageBean.setHeader(rsHomePage.getString("header"));
homePageBean.setBody(rsHomePage.getString("body"));
homePageBean.setFooter(rsHomePage.getString("footer"));
homePageBean.setContentHeader(rsHomePage.getString("content_header"));
homePageBean.setContentFooter(rsHomePage.getString("content_footer"));
homePageBean.setUserName(rsHomePage.getString("username"));
homePageBean.setPassword(rsHomePage.getString("password"));
homePageBean.setLoginMessage("OK");
homePageBean.setContentPageList("many");
session.setAttribute("homePageBean", homePageBean);
response.sendRedirect("homePage.jsp");
catch (SQLException e)
throw new UnavailableException("Unable to connect");
catch (Exception e)
e.printStackTrace();
finally
if (connCms !=null)
try
rsHomePage.close();
rsHomePage = null;
stmtCms.close();
stmtCms = null;
connCms.close();
catch (SQLException sqle)
sqle.printStackTrace();
connCms = null;
As I said I am very new, so please forgive my ineptness at this.
Thanks for yor help.

hi :-)
can you also post the deployment descriptor for this servlet :-)
and kindy look if their is an error, on your logs in server that
might causing 404 msg.
thank you.
regards,

Similar Messages

  • HTTP Status 404 - Servlet PapiWebServiceServlet is not available

    When I click on the http://localhost:8686/papiws/PapiWebServiceEndpoint?wsdl link in papi web service console the following error message comes:
    HTTP Status 404 - Servlet PapiWebServiceServlet is not available
    type Status report
    message Servlet PapiWebServiceServlet is not available
    description The requested resource (Servlet PapiWebServiceServlet is not available) is not available.
    Apache Tomcat/5.5.15
    I am using Standalone 10.3.2. Build #100143.
    How to resolve this issue? Should I use some other version? From where to download it?
    Thanks

    Are you getting following log snap in ur Servlet Engine log of Standalone admin center....??
    RUNTIME:PAPI Web Services Context Listener initialized.
    RUNTIME:********* PAPI Web Services (Version 10.3.1.0.0 Service Pack 1 Build #94375) is starting *********
    RUNTIME:Checking Java Runtime Enviroment ...Ok
    RUNTIME:Initializing enviroment...Ok
    RUNTIME:Initializing PAPI services ...
    RUNTIME:processDocumentationPath = \S:\OraBPMEnterpriseHomeNew\bin\..\tomcat\webapps\..\..\webapps\papiws\processDocumentation\
    RUNTIME:defaultWorkingDirPath = S:\OraBPMEnterpriseHomeNew\bin\..\tomcat\webapps\..\..\webapps\papiws\WEB-INF\
    RUNTIME:Creating ProcessService...
    RUNTIME:ProcessService created successfully.
    RUNTIME:Starting Updater with frequency = '10000'.
    RUNTIME:Updater started successfully.
    RUNTIME:Ok
    RUNTIME:********* PAPI Web Services was initialized successfully *******
    if not you may generate the war and deploy it manually...
    To generate the war go Config-->PAPI WS tab-->generate war(Bottom link)
    hope this help...
    Rgds,
    Biltu

  • "The requested resource (/hello) is not available"  Error of Servlet

    Hello all,
    I get HTTP STATUS 404 Error which states "The requested resource (/hello) is not available" even thought according to me I am doing everything perfectly.
    Here is more information. If you can find out where the proble might be please
    let me know because I am working on this for more than 9 hours.
    I AM USING-<br>
    TOMCAT 5.5.26 <br>
    JRE 6 <br>
    J2SDK 1.4.0 <br>
    </B>
    <BR><BR>
    SYSTEM VARIABLES :<br>
    <B>
    CLASSPATH
    </B>
    C:\apache-tomcat-5.5.26\common\lib\servlet-api.jar <BR>
    <B> JAVA_HOME</B> D:\j2sdk1.4.0
    <BR>
    <B>JRE_HOME</B> C:\Program Files\Java\jre6
    <BR>
    <B>TOMCAT_HOME </B>C:\apache-tomcat-5.5.26
    <BR>
    <P>
    I have placed my hello.class file inside
    <b>C:\apache-tomcat-5.5.26\webapps\ROOT\WEB-INF\classes</b>
    also, i have modified web.xml file as<br>
    <b>
    <servlet>
    <servlet-name>hello</servlet-name>
    <servlet-class>hello</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>hello</servlet-name>
    <url-pattern>hello</url-pattern>
    </servlet-mapping>
    </b><br><br>
    But still I am not able to access my servlet when i type
    http://localhost:8080/hello
    I get the error I mentioned above.

    Hi..Thanks for all those who have replied earlier. I feel I should add some more information.
    I dont know what PACKAGE NAME you are talking about
    I am pasting contents of my XML file located in :
    **apache-tomcat-5.5.26\webapps\ROOT\WEB-INF\web.xml**
    -->
    - <web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" version="2.4">
    <display-name>Welcome to Tomcat</display-name>
    <description>Welcome to Tomcat</description>
    - <!-- JSPC servlet mappings start
    -->
    - <servlet>
    <servlet-name>org.apache.jsp.index_jsp</servlet-name>
    <servlet-class>org.apache.jsp.index_jsp</servlet-class>
    </servlet>
    - <servlet-mapping>
    <servlet-name>org.apache.jsp.index_jsp</servlet-name>
    <url-pattern>/index.jsp</url-pattern>
    </servlet-mapping>
    - <!-- JSPC servlet mappings end
    -->
    </web-app>
    web.xml file located in
    apache-tomcat-5.5.26\webapps\servlets-examples\WEB-INF
    is given below:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!--
    Licensed to the Apache Software Foundation (ASF) under one or more
    contributor license agreements. See the NOTICE file distributed with
    this work for additional information regarding copyright ownership.
    The ASF licenses this file to You under the Apache License, Version
    2.0
    (the "License"); you may not use this file except in compliance with
    the License. You may obtain a copy of the License at
    http://www.apache.org/licenses/LICENSE-2.0
    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
    implied.
    See the License for the specific language governing permissions and
    limitations under the License.
    -->
    <web-app xmlns="http://java.sun.com/xml/ns/j2ee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
    http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
    version="2.4">
    <display-name>Servlet 2.4 Examples</display-name>
    <description>
    Servlet 2.4 Examples.
    </description>
    <!-- Define servlet-mapped and path-mapped example filters -->
    <filter>
    <filter-name>Servlet Mapped Filter</filter-name>
    <filter-class>filters.ExampleFilter</filter-class>
         <init-param>
         <param-name>attribute</param-name>
    <param-value>filters.ExampleFilter.SERVLET_MAPPED</param-value>
         </init-param>
    </filter>
    <filter>
    <filter-name>Path Mapped Filter</filter-name>
    <filter-class>filters.ExampleFilter</filter-class>
         <init-param>
         <param-name>attribute</param-name>
    <param-value>filters.ExampleFilter.PATH_MAPPED</param-value>
         </init-param>
    </filter>
    <filter>
    <filter-name>Request Dumper Filter</filter-name>
    <filter-class>filters.RequestDumperFilter</filter-class>
    </filter>
    <!-- Example filter to set character encoding on each request -->
    <filter>
    <filter-name>Set Character Encoding</filter-name>
    <filter-class>filters.SetCharacterEncodingFilter</filter-class>
    <init-param>
    <param-name>encoding</param-name>
    <param-value>EUC_JP</param-value>
    </init-param>
    </filter>
    <filter>
    <filter-name>Compression Filter</filter-name>
    <filter-class>compressionFilters.CompressionFilter</filter-class>
    <init-param>
    <param-name>compressionThreshold</param-name>
    <param-value>10</param-value>
    </init-param>
    <init-param>
    <param-name>debug</param-name>
    <param-value>0</param-value>
    </init-param>
    </filter>
    <!-- Define filter mappings for the defined filters -->
    <filter-mapping>
    <filter-name>Servlet Mapped Filter</filter-name>
         <servlet-name>invoker</servlet-name>
    </filter-mapping>
    <filter-mapping>
    <filter-name>Path Mapped Filter</filter-name>
         <url-pattern>/servlet/*</url-pattern>
    </filter-mapping>
    <!-- Example filter mapping to apply the "Set Character Encoding"
    filter
    to all requests processed by this web application -->
    <!--
    <filter-mapping>
    <filter-name>Set Character Encoding</filter-name>
    <url-pattern>/*</url-pattern>
    </filter-mapping>
    -->
    <!--
    <filter-mapping>
    <filter-name>Compression Filter</filter-name>
    <url-pattern>/CompressionTest</url-pattern>
    </filter-mapping>
    -->
    <!--
    <filter-mapping>
    <filter-name>Request Dumper Filter</filter-name>
    <url-pattern>/*</url-pattern>
    </filter-mapping>
    -->
    <!-- Define example application events listeners -->
    <listener>
    <listener-class>listeners.ContextListener</listener-class>
    </listener>
    <listener>
    <listener-class>listeners.SessionListener</listener-class>
    </listener>
    <!-- Define servlets that are included in the example application
    -->
    <servlet>
    <servlet-name>CompressionFilterTestServlet</servlet-name>
    <servlet-class>compressionFilters.CompressionFilterTestServlet</servlet
    -class>
    </servlet>
    <servlet>
    <servlet-name>hello</servlet-name>
    <servlet-class>hello</servlet-class>
    </servlet>
    </servlet>
    <servlet>
    <servlet-name>HelloWorldExample</servlet-name>
    <servlet-class>HelloWorldExample</servlet-class>
    </servlet>
    <servlet>
    <servlet-name>RequestInfoExample</servlet-name>
    <servlet-class>RequestInfoExample</servlet-class>
    </servlet>
    <servlet>
    <servlet-name>RequestHeaderExample</servlet-name>
    <servlet-class>RequestHeaderExample</servlet-class>
    </servlet>
    <servlet>
    <servlet-name>RequestParamExample</servlet-name>
    <servlet-class>RequestParamExample</servlet-class>
    </servlet>
    <servlet>
    <servlet-name>CookieExample</servlet-name>
    <servlet-class>CookieExample</servlet-class>
    </servlet>
    <servlet>
    <servlet-name>SessionExample</servlet-name>
    <servlet-class>SessionExample</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>CompressionFilterTestServlet</servlet-name>
    <url-pattern>/CompressionTest</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>HelloWorldExample</servlet-name>
    <url-pattern>/servlet/HelloWorldExample</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>RequestInfoExample</servlet-name>
    <url-pattern>/servlet/RequestInfoExample/*</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>RequestHeaderExample</servlet-name>
    <url-pattern>/servlet/RequestHeaderExample</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>RequestParamExample</servlet-name>
    <url-pattern>/servlet/RequestParamExample</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>CookieExample</servlet-name>
    <url-pattern>/servlet/CookieExample</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>SessionExample</servlet-name>
    <url-pattern>/servlet/SessionExample</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>hello</servlet-name>
    <url-pattern>/servlet/hello</url-pattern>
    </servlet-mapping>
    <security-constraint>
    <display-name>Example Security Constraint</display-name>
    <web-resource-collection>
    <web-resource-name>Protected Area</web-resource-name>
         <!-- Define the context-relative URL(s) to be protected -->
    <url-pattern>/jsp/security/protected/*</url-pattern>
         <!-- If you list http methods, only those methods are
    protected -->
         <http-method>DELETE</http-method>
    <http-method>GET</http-method>
    <http-method>POST</http-method>
         <http-method>PUT</http-method>
    </web-resource-collection>
    <auth-constraint>
    <!-- Anyone with one of the listed roles may access this area
    -->
    <role-name>tomcat</role-name>
         <role-name>role1</role-name>
    </auth-constraint>
    </security-constraint>
    <!-- Default login configuration uses form-based authentication -->
    <login-config>
    <auth-method>FORM</auth-method>
    <realm-name>Example Form-Based Authentication Area</realm-name>
    <form-login-config>
    <form-login-page>/jsp/security/protected/login.jsp</form-login-page>
    <form-error-page>/jsp/security/protected/error.jsp</form-error-page>
    </form-login-config>
    </login-config>
    <!-- Security roles referenced by this web application -->
    <security-role>
    <role-name>role1</role-name>
    </security-role>
    <security-role>
    <role-name>tomcat</role-name>
    </security-role>
    <!-- Environment entry examples -->
    <!--env-entry>
    <env-entry-description>
    The maximum number of tax exemptions allowed to be set.
    </env-entry-description>
    <env-entry-name>maxExemptions</env-entry-name>
    <env-entry-value>15</env-entry-value>
    <env-entry-type>java.lang.Integer</env-entry-type>
    </env-entry-->
    <env-entry>
    <env-entry-name>minExemptions</env-entry-name>
    <env-entry-type>java.lang.Integer</env-entry-type>
    <env-entry-value>1</env-entry-value>
    </env-entry>
    <env-entry>
    <env-entry-name>foo/name1</env-entry-name>
    <env-entry-type>java.lang.String</env-entry-type>
    <env-entry-value>value1</env-entry-value>
    </env-entry>
    <env-entry>
    <env-entry-name>foo/bar/name2</env-entry-name>
    <env-entry-type>java.lang.Boolean</env-entry-type>
    <env-entry-value>true</env-entry-value>
    </env-entry>
    <env-entry>
    <env-entry-name>name3</env-entry-name>
    <env-entry-type>java.lang.Integer</env-entry-type>
    <env-entry-value>1</env-entry-value>
    </env-entry>
    <env-entry>
    <env-entry-name>foo/name4</env-entry-name>
    <env-entry-type>java.lang.Integer</env-entry-type>
    <env-entry-value>10</env-entry-value>
    </env-entry>
    </web-app>
    My program hello.java is given below
    import java.io.*;
    import javax.servlet.http.*;
    import javax.servlet.*;
    public class hello extends HttpServlet {
    public void doGet (HttpServletRequest req,
    HttpServletResponse res)
    throws ServletException, IOException
    PrintWriter out = res.getWriter();
    out.println("Hello, world!");
    out.close();
    }

  • [TOMCAT] [SERVLET] : The requested resource () is not available.

    Hi!! I'm looking for an answer to my problem, and I'm going to explain what I mean.
    I've created a .jar named yuhuuTunnel.jar that has the following structure:
    yuhuuTunnel.jar:
    --> web (contains the servlets)
          --> *.class
          --> HelloWorldServlet.class
    --> META-INF
          --> MANIFEST.MF
    --> SimpleClient.classThe code of HelloWorldServlet.java is this:
        package web;
        import java.io.IOException;
        import java.io.PrintWriter;
        import javax.servlet.http.HttpServlet;
        import javax.servlet.http.HttpServletResponse;
        import javax.servlet.http.HttpServletRequest;
        import javax.servlet.ServletException;
        import javax.servlet.ServletConfig;
        public class HelloWorldServlet extends HttpServlet {
            public void init(ServletConfig config) throws ServletException {
                super.init(config);
            public void doGet( HttpServletRequest request, HttpServletResponse response )
                    throws ServletException, IOException {
                doPost(request, response);
            public void doPost( HttpServletRequest request, HttpServletResponse response)
                    throws ServletException, IOException {
                response.setContentType("text/html");
                PrintWriter out = response.getWriter();
                out.println("<html>");
                out.println("<body>");
                out.println("<body bgcolor=\"white\">");
                out.println("<h1>Yuhuu Servlet!</h1>");
                out.println("</body>");
                out.println("</html>");
        }then, using a .war file (created with ANT), I've created into /../tomcat/webapps/ a directory call yuhuuTunnel that has this structure:
        /webapps/
              --> yuhuuTunnel
                    --> WEB-INF
                            --> web.xml
                            --> lib
                                 --> yuhuuTunnel.jar
                    --> META-INF
                            --> MANIFEST.MF
                                 --> yuhuuTunnel.jar
                    --> index.htmlThe content of web.xml is the following:
        <?xml version="1.0" encoding="ISO-8859-1"?>
        <!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>
            <!-- Action Servlet Configuration -->
            <servlet>
                 <servlet-name>HelloWorld</servlet-name>
                 <servlet-class>web.HelloWorldServlet</servlet-class>
                 <load-on-startup>0</load-on-startup>
            </servlet>
            <servlet-mapping>
                 <servlet-name>HelloWorld</servlet-name>
                 <url-pattern>HelloWorld</url-pattern>
            </servlet-mapping>
        </web-app>Tomcat works correctly ( http://localhost:8080 return me the page of tomcat ) but when I try to use the HelloWoldServlet typing http://localhost:8080/yuhuuTunnel/HelloWorld into a browser, this one returns me the HTTP Status 404 - The requested resource () is not available.
    What is wrong? The address that I type into the browser or there's an error into web.xml?
    Something interesting: If I type
    http://localhost:8080/yuhuuTunnel/HelloWorld
    the message given back is: "The requested resource () is not available."
    but if I type
    http://localhost:8080/HelloWorld the message is different:
    "The requested resource (/HelloWorld) is not available."

    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!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>
    <!-- Action Servlet Configuration -->
    <servlet>
             <servlet-name>HelloWorld</servlet-name>
             <servlet-class>web.HelloWorldServlet</servlet-class>
             <load-on-startup>0</load-on-startup>
    </servlet>
    <servlet-mapping>
             <servlet-name>HelloWorld</servlet-name>
             <url-pattern>HelloWorld</url-pattern>
    </servlet-mapping>
    </web-app>Please change the servlet url pattern from
    <url-pattern>HelloWorld</url-pattern>to
    <url-pattern>/HelloWorld</url-pattern>in servlet mappings
    REGARDS,
    RaHuL

  • HTTP Status 404  error -- The requested resource  is not available.

    Hi ,
    i am trying to run a sample struts2 program using java1.5 , tomcat5.5 but getting the error ...
    * The requested resource (/Struts2Sample/) is not available.*
    i am listing my files below.. kindly help...
    web.xml -----------------
    <?xml version="1.0"?>
    <!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>
    <display-name>Struts2Sample</display-name>
    <filter>
    <filter-name>struts</filter-name>
    <filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class>
    </filter>
    <filter-mapping>
    <filter-name>struts</filter-name>
    <url-pattern>/*</url-pattern>
    </filter-mapping>
    <servlet>
         <servlet-name>home</servlet-name>
         <jsp-file>HelloWorld.jsp</jsp-file>
    </servlet>
    <servlet-mapping>
         <servlet-name>home</servlet-name>
         <url-pattern>/home</url-pattern>
    </servlet-mapping>
    </web-app>
    struts.xml ---------------
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE struts PUBLIC
    "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
    "http://struts.apache.org/dtds/struts-2.0.dtd">
    <struts>
    <package name="example" extends="struts-default" namespace="/">
    <action name="HelloWorld" class="example.HelloWorld">
    <result>/HelloWorld.jsp</result>
    </action>
    </package>
    </struts>
    HelloWorld.jsp ----------------------
    <%@ taglib prefix="s" uri="/struts-tags" %>
    <html>
    <head>
    <title>Struts 2 Hello World Application!</title>
    </head>
    <body>
    <h2><s:property value="message" /></h2>
    <p>Current date and time is: <b><s:property value="currentTime" /></b>
    </body>
    </html>
    ExampleSupport.java ---------------------------
    package example;
    import com.opensymphony.xwork2.ActionSupport;
    * Base Action class for the Tutorial package.
    public class ExampleSupport extends ActionSupport {
    HelloWorld.java --------------------
    package example;
    public class HelloWorld extends ExampleSupport {
    public String execute() throws Exception {
    setMessage(getText(MESSAGE));
    return SUCCESS;
    * Provide default valuie for Message property.
    public static final String MESSAGE = "HelloWorld.message";
    * Field for Message property.
    private String message;
    * Return Message property.
    * @return Message property
    public String getMessage() {
    return message;
    * Set Message property.
    * @param message Text to display on HelloWorld page.
    public void setMessage(String message) {
    this.message = message;
    My directory structure ....
    D:\tomcat5.5\webapps\Struts2Sample ---- this has my jsp file.
    D:\tomcat5.5\webapps\Struts2Sample\src\example ---- this has both java source files..
    D:\tomcat5.5\webapps\Struts2Sample\WEB-INF\classes\example ---- this has compiled class files
    D:\tomcat5.5\webapps\Struts2Sample\WEB-INF\classes ---- this has my struts.xml file
    D:\tomcat5.5\webapps\Struts2Sample\WEB-INF\lib ---- this has all my jars..
    D:\tomcat5.5\webapps\Struts2Sample\WEB-INF --- this has my web.xml file
    kindly let me know i am making mistakes if any...
    i am using url as : http://localhost:8080/Struts2Sample/
    Thanks,
    Nads

    Hi ,
    when iam trying to deploy struts 2 application iam getting 404 error. in tomcat 5.5.23
    if u got the solution pls help me
    regards
    srini

  • "Servlet pluto is not available" error page after deploying portlet

    I want to build a JSF portlet with JSC 2.1. I am playing with the tool a little bit and I am experiencing this error after running the project:
    HTTP Status 404 - Servlet pluto is not available
    type Status report
    message Servlet pluto is not available
    description The requested resource (Servlet pluto is not available) is not available.
    Sun-Java-System/Application-ServerIt's strange because it happened when I changed something in the code of the SessionBean1.java. Since then, I can't even run properly a blank JSF portlet project that I created afterwards.
    I created a new project, added nothing and pressed Run Project. It seems, that the deployment was OK:
    portlet-container-deploy:
    Adding portlet to portlet container...
    Deploying portlet container...
    jsCreatorDist:
    run-deploy:
    In-place deployment at D:\Work\Creator\Portlet3\build\web
    Start registering the project's server resources
    Finished registering server resources
    deployment started : 0%
    Deployment of application Portlet3 completed successfully
    Enable of Portlet3in target server completed successfully
    run-display-browser:
    Browsing: http://localhost:29080/pluto/portal/Portlet3
    run:
    BUILD SUCCESSFUL (total time: 12 seconds)"Servlet pluto is not available" page again...
    My configuration: Windows XP SP2, Sun Creator 2.1 with no updates + bundled AS

    No, I haven't figured it yet. And it seems that nobody ever had.
    JSCreator is buggy. If it weren't for free, I would have never use it. It has so many issues, you will see so many exceptions and experience so many annoyances... And of course, it is very hungry for resources. I am sure that a lot of people will disagree, but that's my opinion. I've been using Eclipse for 4 years now.
    However here are some tips (Windows only):
    Delete directory .Creator from Documents and Settings.
    Uninstall creator, install creator. Don't install it to Program Files, install it to C:\Sun or smth like that, the space character can do some mess.
    Again, put your project somewhere, so the path would not contain spaces.
    Sometimes just restarting the server helps. I've had to reinstall Creator three times yet.

  • Portal Error 404 (The requested resource is not available)

    Dear,
    I have faced the below error in our Portal (6.0), I have created a new role that its linked normally with worksets, pages and i-view, all the way to custom SAP R/3 transactions, most of the users are able to see and execute these transactions, but one of them faced the below error, please advise? What it could be the problem?
    404
    The requested resource is not available.
    stack trace
    com.sapportals.wcm.protocol.webdav.server.WDServletException
    at com.sapportals.wcm.protocol.webdav.server.WDObject.throwNotFoundIf(WDObject.java:54)
    at com.sapportals.wcm.protocol.webdav.server.WDGetHandler.handle(WDGetHandler.java:110)
    at com.sapportals.wcm.protocol.webdav.server.WDServlet.doGet(WDServlet.java:775)
    at com.sapportals.wcm.protocol.webdav.server.WDServlet.service(WDServlet.java:462)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.sapportals.wcm.portal.proxy.PCProxyServlet.service(PCProxyServlet.java:334)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.sapportals.portal.prt.core.broker.ServletComponentItem$ServletWrapperComponent.doContent(ServletComponentItem.java:110)
    at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209)
    at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114)
    at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
    at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
    at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
    at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:215)
    at com.sapportals.portal.prt.pom.PortalNode.service(PortalNode.java:646)
    at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
    at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
    at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
    at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:753)
    at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:240)
    at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:522)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:405)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.sap.engine.services.servlets_jsp.server.servlet.InvokerServlet.service(InvokerServlet.java:156)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:390)
    at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)
    at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
    at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
    at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
    at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
    at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:95)
    at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:160)

    check whether user has end user permissions or not

  • HTTP 404 THE REQUESTED RESOURCE IS NOT AVAILABLE

    HELP ME PLEASE !!!!
    I HAVE AN APPLICATION THAT USES 3 PAGES: INDEX.HTML , MOTOR.JSP AND MOTOR2.JSP.
    THE LOGIC OF APPLICATION IS:
    FIRST STEP
    THE FIRST STEP IS SHOWING PAGE INDEX.HTML
    THERE IS THE FOLLOWING CODE IN THIS PAGE:
    <FORM ACTION="DIRECT">
    SECOND STEP
    DIRECT IS A SERVLET THAT HAVE THE FOLLOWING CODE:
    RequestDispatcher rd = req.getRequestDispatcher("Motor.jsp");
    rd.forward(req,res);
    THIRD STEP
    THE PAGE MOTOR.JSP REDIRECT TO A SERVLET ENGINE,
    AND SERVLET ENGINE REDIRECT TO A JSP MOTOR2.JSP
    USING THE COMMAND:
    RequestDispatcher rd = req.getRequestDispatcher("Motor2.jsp");
    rd.forward(req,res);
    IN THIS THIRD STEP THE PAGE IS ALWAYS REFRESHING
    TO ADD INFORMATION TO THE PAGE MOTOR2.JSP.
    SOMETIMES THE APPLICATION SHOWS ALL PAGES,
    BUT, SOMETIMES THE APPLICATION HAS AN ERROR:
    HTTP 404 - THE REQUESTED RESOURCE (/MOTOR2.JSP)
    IS NOT AVAILABLE
    I�M RUNNING THE APPLICATION IN TOMCAT 4.1.27
    IS ANYTHING WRONG WITH THE COMMANDS TO
    REDIRECT THE PAGES?
    PLEASE HELP ME
    THANKS VERY MUCH
    JANE PELLIM

    Hi,
    the refresh of the page is about 2 minutes, because some info
    about the process that is running in background
    is showing in the motor2 jsp.
    the redirects is necessary because in each page
    some processing is running in the servlets.
    The following is the web.xml configuration:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!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>
    <display-name>Welcome to Tomcat</display-name>
    <description>
    Welcome to Tomcat
    </description>
    <context-param>
         <param-name>class_exec</param-name>
         <param-value>class_exec</param-value>
    </context-param>
    <context-param>
         <param-name>class_erro</param-name>
         <param-value>class_erro</param-value>
    </context-param>
    <context-param>
         <param-name>log_exec</param-name>
         <param-value>log_exec</param-value>
    </context-param>
    <context-param>
         <param-name>log_erro</param-name>
         <param-value>log_erro</param-value>
    </context-param>
    <context-param>
         <param-name>sleep_motor</param-name>
         <param-value>5</param-value>
    </context-param>
    <context-param>
         <param-name>bancos</param-name>
         <param-value>/motor.conf</param-value>
    </context-param>
    <servlet>
    <servlet-name>Engine</servlet-name>
    <servlet-class>com.motor.Engine</servlet-class>
    </servlet>
    <servlet>
    <servlet-name>Direct</servlet-name>
    <servlet-class>com.motor.Direct</servlet-class>
    </servlet>
    <servlet>
    <servlet-name>Monitor</servlet-name>
    <servlet-class>com.motor.Monitor</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>Direct</servlet-name>
    <url-pattern>/Direct</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>Engine</servlet-name>
    <url-pattern>/Engine</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>Monitor</servlet-name>
    <url-pattern>/Monitor</url-pattern>
    </servlet-mapping>
    </web-app>
    Thanks
    Jane

  • Servlet: "The requested resource is not available"

    I'm trying to get my first servlet to run.
    I've installed tomcat 4.1.18 and compiled a "HelloWorld" class into
    "tomcat_dir"\webapps\root\web-inf\classes\.
    when I start tomcat, then open my browser and key
    "http://localhost:8080/servlet/HelloWorld"
    I get a status 404
    "The requested resource (/servlet/HelloWorld) is not available.
    what am I doing wrong?
    thanks
    barry

    Register the servlet in the web.xml file.
    open ROOT/WEB-INF/web.xml and edit it like:
    <web-app>
    <servlet>
    <servlet-name>HelloWorld</servlet-name>
    <servlet-class>HelloWorld</servlet-class>
    </servlet>
    </web-app>
    Stop and start tomcat and try again.

  • Error 404: the request resource is not available

    Hello,
    I'm a newbie am using the Sun One (Forte 4.0 Community Edition) to develop a JSP/Servlet application.
    I'm using the built-in version of Tomcat, that comes with forte. Tomcat has been installed in tyhe following directory:
    C:\forte\forte4j\tomcat401
    My application has the following path:
    C:\forte\RDoku\tomcat401_base\webapps\designer
    After reading the documentation that comes with this version of Forte, it seems that Tomcat can be configured to work this
    way. Is that correct?
    Anyway, when I start tomcat(within forte), the login page, login.jsp is loaded successfully. The action of the login
    form is servlet/com.doku.login. My web.xml file looks like this:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!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>
    <!-- Define servlets that are included in the example application -->
    <servlet>
    <servlet-name>login</servlet-name>
         <servlet-class>com.doku.login</servlet-class>
    </servlet>
    </web-app>
    My problem is that when I submit the form, I get the following error:
    Error 404, /servlet/com.doku.login, the request resource (/servlet/com.doku.login) is not available.
    I would really appreciate it if anyone could help me in solving this mystery.
    Regards,
    Rudi

    Hey Rudi
    Everything seems to be in place ..except your package structure..
    your webapp has the context of designer.
    Therfore your directory structure for tomcat should look somewhat like this
    webapps
    --designer
    web-inf < web.xml(i think)
    classes  <Place your class files here(if loose)
    lib < jar files
    1.) Somehow tomcat is creating another context in servlet (unless you have created one yourself).I would urge u to check the invocation for your webapp (By saying that i am pointing at the error /servlet/com.doku.login...instead of /designer/com.doku.login).
    change the action of the form to
    /designer/...instead of /servlet/
    2.)Further..on examining your depoyment descriptor..i found missing entries for the <servlet-mapping> element.Tomcat uses your deployment descriptor to map the incoming requests to your classes.The element must be specified in order to allow a smooth mapping from the request to the corresponding servlet class.
    Let me explain by using an example
    a.)my form action="/designer/Hello" method="get"
    b.)The directory structure for my webapp(designer ) is as above
    c.)web.xml
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!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>
    <!-- Define servlets that are included in the example application -->
    <servlet>
    <servlet-name>Hello</servlet-name>
    <servlet-class>package.HelloWorld</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>Hello</servlet-name>
    <url-pattern>/Hello</url-pattern>
    </servlet-mapping>
    </web-app>
    so for all incoming requests in the form /servlet/Hello will be mapped to your class defined in the package package.HelloWorld
    Let me know if u have more questions.

  • SERVLET  NOT AVAILABLE

    Hello,
    I'am running an application builds with jsp and servlet.
    My jsp files run well but when I call a servlet I found this error:
    HTTP Status 404 - /Application/servlet/net.xnetwork.projet.controller.ControlIdentite
    type Status report
    message /Application/servlet/net.xetwork.projet.controller.ControlIdentite
    description The requested resource (/Application/servlet/net.xetwork.projet.controller.ControlIdentite) is not available.
    Apache Tomcat/4.1.12
    Thanks you for your suggestions.
    F.S.

    In servlet.xml
    I add this:
    <Context path="/Application" docBase="C:\Application" debug="0" reloadable="false" crossContext="true">
    <Logger className="org.apache.catalina.logger.FileLogger"
    prefix="localhost_Application_log." suffix=".txt"
         timestamp="true"/>
         </Context>
    In C:\Application I have this directories:
    jsp
    image
    WEB-INF
    classes
    net
    xetwork
    projet
    controller (for the servlet classes)
    bean
    user
    impl
    and the class I'am calling is in the controller directory.
    Thanks.
    F.S

  • Servlet "X" is not available

    I have a simple application. I'm trying to follow the MVC Pattern.
    I receive the following messages.
    HTTP Status 404 - Servlet Bla is not available
    type Status report
    message Servlet Bla is not available
    description The requested resource (Servlet Bla is not available) is not available.
    Apache Tomcat/6.0.20or sometimes I receive
    javax.servlet.ServletException: Wrapper cannot find servlet class pachet.DispatcherServlet or a class it depends on
    SEVERE: Allocate exception for servlet Bla
    java.lang.ClassNotFoundException: pachet.DispatcherServlet
    20.09.2009 11:56:39 org.apache.catalina.core.StandardWrapperValve invokeweb.xml
       <servlet>
            <servlet-name>Bla</servlet-name>
            <servlet-class>pachet.DispatcherServlet</servlet-class>
        </servlet>
        <servlet-mapping>
            <servlet-name>Bla</servlet-name>
            <url-pattern>/dispatcher</url-pattern>
        </servlet-mapping>I'm using an IDE and if I would change, let's say the package name from the web.xml, it would warn me that the path is wrong, but in this moment, I don't receive any warning about anything.
    Edited by: abcdriver on Sep 20, 2009 2:02 AM

    The error message seems clear enough:
    Wrapper cannot find servlet class pachet.DispatcherServlet or a class it depends onIs your class called DispatcherServlet in the package pachet? Double check the spelling - remember it is case sensitive.
    Is that class deployed in your web application? WEB-INF/classes/pachet/DispatcherServlet.class?
    What dependencies does your class have? What classes need to be present for it?
    Are all of them available in the web application classpath?

  • Resource not available error in servlet

    This is my directory structure C:\Program Files\Apache Software Foundation\Tomcat 4.1\webapps\VSG\WEB-INF and here i have in web-inf my web.xml which looks like this
    <web-app>
    <servlet servlet-name>Myservlet</servlet-name>
    <servlet-class>Myservlet<servlet-class>
    </servlet>
    <servlet-mapping >
    <servlet-name>Myservlet</servlet-name>
    <url-pattern>/myservlet</url-pattern>
    </servlet-mapping>
    </web-app>
    while my class file is at this position C:\Program Files\Apache Software Foundation\Tomcat 4.1\webapps\vsg\WEB-INF\classes
    Now i run my servlet in browser as
    http://localhost:8080/vsg/myservlet
    it gives me error that resource is not available.... any idea on this ???

    ganeshmb wrote:
    Package-less classes are no longer supported .. .. when you use Tomcat 4.1 with Java 1.4 or newer due to a security bugfix. Since Tomcat 5.0 it is been "fixed" by an internal workaround.
    Still, putting classes in a package is highly recommended. You can only access classes from another packages when you explicitly import it. As you cannot import from the default package, the classes in the default package remains unaccessible for classes in another packages (like the application server implementation classes).

  • Http Status 404, The Requested resource is not available

    Dear Friends,
    I am getting error with my tomcat that " The Requested resource is not available"
    Kindly help me , What is the wrong with my code.
    I am using Eclipse 6.0.1, Tomcat 5.5.20, jdk 1.5.0, j2sdk 1.4.0
    My application is just to print user datas and my files are
    *1. login.jsp*
    <html>
    <head>
    <title>login Page </title>
    </head>
    <body>
    <form action="login" method="post">
    <table>
         <tr>
         <td>UserName</td><td><input type="text" name="username"/></td>
         </tr><tr>
         <td>Password</td><td><input type="password" name="password"/></td>     
         </tr>
         <tr><td><input type="submit" value="login"/>
         </tr>
    </table>
    </form>
    </body>
    </html>
    *2.web.xml*
    <web-app>
    <servlet>
         <servlet-name>login</servlet-name>
         <servlet-class>login</servlet-class>
    </servlet>
    <servlet-mapping>
         <servlet-name>login</servlet-name>
         <url-pattern>/login</url-pattern>
    </servlet-mapping>
    </web-app>
    *3. login.java*
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.*;
    public class login extends HttpServlet
         public void doPost(HttpServletRequest req, HttpServletResponse res)
              try
              PrintWriter out = res.getWriter();
              String name = req.getParameter("username");
              String password = req.getParameter("password");
              out.println(name+" servlet page");
              }catch(Exception e)
              e.printStackTrace();
    File Directory:
    Myapp
    ! !-->src
    ! ! !--> login.java
    ! !-->WebRoot
    ! !--> META-INF
    ! !--> WEB-INF
    ! !--> Classes
    ! !--> login.class
    ! !--> lib
    ! !--> web.xml
    -->login.jsp
    CATALINA_HOME C:\Program Files\Apache Software Foundation\Tomcat 5.5
    CLASSPATH C:\Program Files\Apache Software Foundation\Tomcat 5.5\common\lib\servlet-api.jar;C:\Program Files\Apache Software Foundation\Tomcat 5.5\common\lib\jsp-api.jar
    path C:\Program Files\Java\jdk1.5.0_05\bin;C:\Program Files\Apache Software Foundation\Tomcat 5.5\bin;C:\j2sdk1.4.0\bin
    Please anyone give me the solution to solve my problem.
    Thank you

    Try moving your class file to a package
    <servlet-class>com.logon.login</servlet-class>
    ! !-->src
    ! ! !-->com
              ! !-->logon
                        ! !--> login.java

  • 404 'the requested resource is not available'

    Hi All,
    We created a KM iview and accessing Flash file. Some users are able to see the iview without error. Some users are getting 404 'the requested resource is not available' Error. They are not able to see the flash file in portal.
    Can anyone advise me what the problem is and resolution steps for this?
    Thanks,
    Srinivasu.Y

    Hi Srinivasu,
    Well you already have lots of valid suggestions above but this problem might be causing for various reasons. As you have already checked the permissions for the set of the users having this problem, it might be worth checking if there are many nodes of the server instance and if any of these are not working properly. It can happen that when those set of users are trying to access the resource, the request is hitting specific server nodes which is unable to find the resource for some reasons. You can try asking the users to clear their browser cache and try again so that when the users try to access the same resource again it might go to different node this time.
    But probably this is a temporary solution that might work as has worked in my case but there might be problem with some server nodes which is worth looking at.
    Hope it helps.
    Regards,
    Gourav

Maybe you are looking for

  • Re: Increasing Column Header Length While Printing in ALV Grid

    Hi For some column headers in a report, the translations in Turkey are more than 40 characters, because of which while executing the report in TR language, the column header is getting truncated. So, I would like to know if we can increase the column

  • Trying to use Airport Extree in Time Capsule nned error code help

    I am a log time apple supporter but I have been messing with this since last night trying to get the @^#&# thing to work. I got conencted erlier to the internet now when i come back from dinner i can;t connect and and i get error code 6765. Earlier i

  • SQL Server 2000 and Named Instances

    Heya, I'm having trouble creating a JDBC Connection Pool against our SQL Server box through the Admin Console. There are firewalls between the Weblogic box and the SQL Box, and they have traffic blocked on port 1434. I am specifying port 1433 in the

  • Modules not loading even though they're present in filesystem

    Last night I did a pacman -Syu on my laptop. It went well, no errors. This morning I boot up my laptop and now some modules aren't being loaded at boot, nor are they loading with modprobe (even with an argument to the full path of the module). packag

  • RAM not being recognized?

    I have a iMac G5 Built in iSight with a built in 512MB and I have just purchased a 512MB chip from the apple website, after instaling it and checking the "About this Mac" options I see the following under the Memory field. "DIMM0/BUILT-IN Size:512 MB