Prerequisites to run a servlet

HI,
I am running on apache + jdk1.5 + ubuntu..
I want to run a sample servlet..What are the prerquisites..
when I compile i get a message...
javax.servlet package does not exists..
javax,hhtp package does not exists...
what do i do..
i am running short of time..can some one help pleasee.....

Hi,
first of all you need to have the correct libraries for the servlet to run. these can be found @ you catalina_home of if not present there you should download them from the apache site.... probably you are missing the commons.httpclient jar. the servlet-api.jar is present at the catalina folder, and you may also need catalina.jar
for a servlet you have to have a specific set of directories. So in the servlet folder you should create manually the following folders:
/web
/web/WEB-INF (you will have to create a web.xml file under this directory. Extra help and sample files can be found at the apache /tomcat web page)
/docs
/dist
you have to create also a build.xml (sample can be found at the tomcat web page) and a build.properties that defines the app path, the url tomcat installation directory and management account.
I think these are the ones needed I am also new to the servlet thing
hope it helps
ps: you can of course put your application under the webapps folder which makes it easier but is generally better an cleaner to have your applications run in a separate folder as I told you above
Edited by: Enialis on Apr 30, 2008 4:11 AM

Similar Messages

  • How to run a servlet in tomcat 5.0.

    Hi all,
    how to run a servlet in tomcat 5.0
    please tell me the entire procedure....(directory structure)
    step by step....

    hi :-)
    http://java.sun.com/j2ee/tutorial/1_3-fcs/doc/Servlets.html
    or
    http://www.google.com.ph/search?hl=en&q=java+servlet+tutorial&btnG=Google+Search&meta=
    regards,

  • How can I run a servlet with Sun Java System Application Server PE 8?

    I've created a package with a TestServlet.class inside, used the deploytool to create a WAR and deployed this using the autodeploy folder.
    The filestructure has been generated and I find the TestServlet.class in
    [installdir]\domains\domain1\applications\j2ee-modules\testProject\WEB-INF\classes\[packagefolderstructure]\TestServlet.class.
    The context root is working fine, but I have no clue how I can run the servlet directly via the URL.
    I've tried many things like
    http://localhost:8080/testProject/TestServlet
    http://localhost:8080/testProject/servlet/TestServlet
    http://localhost:8080/testProject/servlet/[packagenamewithpoints]TestServlet
    http://localhost:8080/testProject/servlet/[packagenamewithslashes]TestServlet
    etc etc
    Can somebody tell me please how to write URLs to deployed servlets? Or send me an example url and xml descriptor files?
    Thanks a lot in advance!

    in web.xml use servlet mapping
    <servlet-mapping>
        <servlet-name>TestServlet</servlet-name>
        <url-pattern>/doit</url-pattern>
    </servlet-mapping>then use http://localhost:8080/testProject/doit

  • Error While trying to run a servlet

    I am getting the below error while trying to run a servlet using tomcat.In this admin is a directory where I have a html file called admin.html which calls the servlet AdminServlet & replaces the url by /servlet/AdminServlet.
    HTTP Status 404 - /SPOT/admin/servlet/AdminServlet
    type Status report
    message /SPOT/admin/servlet/AdminServlet
    description The requested resource (/SPOT/admin/servlet/AdminServlet) is not available.
    For more details I am also copying the code from the admin.html file below.
    <script language=JavaScript>
    document.location.replace('../servlet/AdminServlet');
    </script>

    JavaScript != javareplace or redirect ??

  • 404 Error Message while running a servlet

    Unable to run Snoop Servlet in JRUN 2.3.3 running on IIS4.0. I give the url
    as http://websitename/servlet/SnoopServlet . But I get HTTP error 404 error.
    I am trying to run the snoop servlet in the jrun/jsm-default/servlet directory. But, I am not able to run the servlets that are in the Servlet directory. It says '404 - Page Not Found Error'. Can anyone help me out what should I change to run the servlet when I type http//websitename/servlet/snoopservlet. Where 'snoopservlet' is the servlet in the servlets directory.

    I have been using JRun 3.1 and the default servlets directory is:
    servers\default\default-app\web-inf\classes
    Try to put your servlets in this folder.

  • How do we run a servlet program in eclipse

    how do we run a servlet program in eclipse.

    Not at all, because servlets require a servlet container. Some Eclipse plugins (Lomboz etc.) do provide integration with those.

  • Am getting the following error while running the servlet example

    Hi,
    am getting the following error while running the servlet example
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    java.lang.NullPointerException
         edu.dao.StudentDao.insertStudent(StudentDao.java:18)
         edu.servlet.StudentServlet.doGet(StudentServlet.java:25)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    note The full stack trace of the root cause is available in the Apache Tomcat/5.5.20 logs.
    Thanks
    //sreekanth

    Hi,
    the following code i have written in StudentDao
    package edu.dao;
    import java.sql.Connection;
    import java.sql.PreparedStatement;
    import java.sql.SQLException;
    import org.apache.commons.dbutils.DbUtils;
    import edu.model.Student;
    import edu.util.DBUtil;
    public class StudentDao {
         public void insertStudent(Student student) {
              String stuQuery = "INSERT INTO STUDENT VALUES(?,?)";
              Connection connection = DBUtil.getConnection();
              PreparedStatement preparedStatement = null;
              try {
                   preparedStatement = connection.prepareStatement(stuQuery);
                   preparedStatement.setString(1,student.getStudentNo());
                   preparedStatement.setString(2, student.getStudentName());
                   preparedStatement.executeUpdate();
              } catch(SQLException e){
                   System.out.println("..Sql exception......");
              }finally {
                   DbUtils.closeQuietly(connection,preparedStatement,null);
    }

  • Getting an error while running the servlet

    getting an error while running the servlet
    Sep 3, 2008 2:09:48 AM org.apache.catalina.core.AprLifecycleListener init
    INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Apache Software Foundation\Tomcat 6.0\bin;.;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;D:\app\UK-Dasari\product\11.1.0\db_1\bin;D:\oracle\product\10.2.0\client_1\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Program Files\Common Files\Roxio Shared\DLLShared\;C:\Program Files\QuickTime\QTSystem\;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\PrivateAssemblies\;C:\Program Files\Java\jdk1.6.0_05\bin
    Sep 3, 2008 2:09:48 AM org.apache.coyote.http11.Http11Protocol init
    SEVERE: Error initializing endpoint
    java.net.BindException: Address already in use: JVM_Bind:80
         at org.apache.tomcat.util.net.JIoEndpoint.init(JIoEndpoint.java:499)
         at org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:175)
         at org.apache.catalina.connector.Connector.initialize(Connector.java:1059)
         at org.apache.catalina.core.StandardService.initialize(StandardService.java:578)
         at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:792)
         at org.apache.catalina.startup.Catalina.load(Catalina.java:504)
         at org.apache.catalina.startup.Catalina.load(Catalina.java:524)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:260)
         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:412)
    Sep 3, 2008 2:09:48 AM org.apache.catalina.startup.Catalina load
    SEVERE: Catalina.start
    LifecycleException: Protocol handler initialization failed: java.net.BindException: Address already in use: JVM_Bind:80
         at org.apache.catalina.connector.Connector.initialize(Connector.java:1061)
         at org.apache.catalina.core.StandardService.initialize(StandardService.java:578)
         at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:792)
         at org.apache.catalina.startup.Catalina.load(Catalina.java:504)
         at org.apache.catalina.startup.Catalina.load(Catalina.java:524)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:260)
         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:412)
    Sep 3, 2008 2:09:48 AM org.apache.catalina.startup.Catalina load
    INFO: Initialization processed in 399 ms
    Sep 3, 2008 2:09:48 AM org.apache.catalina.core.StandardService start
    INFO: Starting service Catalina
    Sep 3, 2008 2:09:48 AM org.apache.catalina.core.StandardEngine start
    INFO: Starting Servlet Engine: Apache Tomcat/6.0.10
    Sep 3, 2008 2:09:49 AM org.apache.coyote.http11.Http11Protocol start
    SEVERE: Error starting endpoint
    java.net.BindException: Address already in use: JVM_Bind:80
         at org.apache.tomcat.util.net.JIoEndpoint.init(JIoEndpoint.java:499)
         at org.apache.tomcat.util.net.JIoEndpoint.start(JIoEndpoint.java:513)
         at org.apache.coyote.http11.Http11Protocol.start(Http11Protocol.java:202)
         at org.apache.catalina.connector.Connector.start(Connector.java:1132)
         at org.apache.catalina.core.StandardService.start(StandardService.java:457)
         at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
         at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
    Sep 3, 2008 2:09:49 AM org.apache.catalina.startup.Catalina start
    SEVERE: Catalina.start:
    LifecycleException: service.getName(): "Catalina"; Protocol handler start failed: java.net.BindException: Address already in use: JVM_Bind:80
         at org.apache.catalina.connector.Connector.start(Connector.java:1139)
         at org.apache.catalina.core.StandardService.start(StandardService.java:457)
         at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
         at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
    Sep 3, 2008 2:09:49 AM org.apache.catalina.startup.Catalina start
    INFO: Server startup in 515 ms
    Sep 3, 2008 3:06:31 AM org.apache.coyote.http11.Http11Protocol pause
    INFO: Pausing Coyote HTTP/1.1 on http-80
    Sep 3, 2008 3:06:31 AM org.apache.catalina.connector.Connector pause
    SEVERE: Protocol handler pause failed
    java.lang.NullPointerException
         at org.apache.jk.server.JkMain.pause(JkMain.java:679)
         at org.apache.jk.server.JkCoyoteHandler.pause(JkCoyoteHandler.java:153)
         at org.apache.catalina.connector.Connector.pause(Connector.java:1074)
         at org.apache.catalina.core.StandardService.stop(StandardService.java:489)
         at org.apache.catalina.core.StandardServer.stop(StandardServer.java:744)
         at org.apache.catalina.startup.Catalina.stop(Catalina.java:602)
         at org.apache.catalina.startup.Catalina.start(Catalina.java:577)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
    Sep 3, 2008 3:06:32 AM org.apache.catalina.core.StandardService stop
    INFO: Stopping service Catalina
    Sep 3, 2008 3:06:33 AM org.apache.catalina.connector.MapperListener destroy
    WARNING: Error unregistering MBeanServerDelegate
    java.lang.NullPointerException
         at org.apache.catalina.connector.MapperListener.destroy(MapperListener.java:162)
         at org.apache.catalina.connector.Connector.stop(Connector.java:1180)
         at org.apache.catalina.core.StandardService.stop(StandardService.java:519)
         at org.apache.catalina.core.StandardServer.stop(StandardServer.java:744)
         at org.apache.catalina.startup.Catalina.stop(Catalina.java:602)
         at org.apache.catalina.startup.Catalina.start(Catalina.java:577)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
    Sep 3, 2008 3:06:33 AM org.apache.coyote.http11.Http11Protocol destroy
    INFO: Stopping Coyote HTTP/1.1 on http-80
    Sep 3, 2008 3:06:33 AM org.apache.catalina.connector.Connector stop
    SEVERE: Coyote connector has not been started
    Sep 3, 2008 3:06:54 AM org.apache.catalina.core.AprLifecycleListener init
    INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Apache Software Foundation\Tomcat 6.0\bin;.;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;D:\app\UK-Dasari\product\11.1.0\db_1\bin;D:\oracle\product\10.2.0\client_1\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Program Files\Common Files\Roxio Shared\DLLShared\;C:\Program Files\QuickTime\QTSystem\;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\PrivateAssemblies\
    Sep 3, 2008 3:06:54 AM org.apache.coyote.http11.Http11Protocol init
    SEVERE: Error initializing endpoint
    java.net.BindException: Address already in use: JVM_Bind:80
         at org.apache.tomcat.util.net.JIoEndpoint.init(JIoEndpoint.java:499)
         at org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:175)
         at org.apache.catalina.connector.Connector.initialize(Connector.java:1059)
         at org.apache.catalina.core.StandardService.initialize(StandardService.java:578)
         at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:792)
         at org.apache.catalina.startup.Catalina.load(Catalina.java:504)
         at org.apache.catalina.startup.Catalina.load(Catalina.java:524)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:260)
         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:412)
    Sep 3, 2008 3:06:54 AM org.apache.catalina.startup.Catalina load
    SEVERE: Catalina.start
    LifecycleException: Protocol handler initialization failed: java.net.BindException: Address already in use: JVM_Bind:80
         at org.apache.catalina.connector.Connector.initialize(Connector.java:1061)
         at org.apache.catalina.core.StandardService.initialize(StandardService.java:578)
         at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:792)
         at org.apache.catalina.startup.Catalina.load(Catalina.java:504)
         at org.apache.catalina.startup.Catalina.load(Catalina.java:524)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:260)
         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:412)
    Sep 3, 2008 3:06:54 AM org.apache.catalina.startup.Catalina load
    INFO: Initialization processed in 369 ms
    Sep 3, 2008 3:06:54 AM org.apache.catalina.core.StandardService start
    INFO: Starting service Catalina
    Sep 3, 2008 3:06:54 AM org.apache.catalina.core.StandardEngine start
    INFO: Starting Servlet Engine: Apache Tomcat/6.0.10
    Sep 3, 2008 3:06:54 AM org.apache.coyote.http11.Http11Protocol start
    SEVERE: Error starting endpoint
    java.net.BindException: Address already in use: JVM_Bind:80
         at org.apache.tomcat.util.net.JIoEndpoint.init(JIoEndpoint.java:499)
         at org.apache.tomcat.util.net.JIoEndpoint.start(JIoEndpoint.java:513)
         at org.apache.coyote.http11.Http11Protocol.start(Http11Protocol.java:202)
         at org.apache.catalina.connector.Connector.start(Connector.java:1132)
         at org.apache.catalina.core.StandardService.start(StandardService.java:457)
         at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
         at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
    Sep 3, 2008 3:06:54 AM org.apache.catalina.startup.Catalina start
    SEVERE: Catalina.start:
    LifecycleException: service.getName(): "Catalina"; Protocol handler start failed: java.net.BindException: Address already in use: JVM_Bind:80
         at org.apache.catalina.connector.Connector.start(Connector.java:1139)
         at org.apache.catalina.core.StandardService.start(StandardService.java:457)
         at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
         at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
    Sep 3, 2008 3:06:54 AM org.apache.catalina.startup.Catalina start
    INFO: Server startup in 526 ms
    Sep 3, 2008 3:07:05 AM org.apache.catalina.core.AprLifecycleListener init
    INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Apache Software Foundation\Tomcat 6.0\bin;.;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;D:\app\UK-Dasari\product\11.1.0\db_1\bin;D:\oracle\product\10.2.0\client_1\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Program Files\Common Files\Roxio Shared\DLLShared\;C:\Program Files\QuickTime\QTSystem\;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\PrivateAssemblies\;C:\Program Files\Java\jdk1.6.0_05\bin
    Sep 3, 2008 3:07:05 AM org.apache.coyote.http11.Http11Protocol init
    SEVERE: Error initializing endpoint
    java.net.BindException: Address already in use: JVM_Bind:80
         at org.apache.tomcat.util.net.JIoEndpoint.init(JIoEndpoint.java:499)
         at org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:175)
         at org.apache.catalina.connector.Connector.initialize(Connector.java:1059)
         at org.apache.catalina.core.StandardService.initialize(StandardService.java:578)
         at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:792)
         at org.apache.catalina.startup.Catalina.load(Catalina.java:504)
         at org.apache.catalina.startup.Catalina.load(Catalina.java:524)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:260)
         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:412)
    Sep 3, 2008 3:07:05 AM org.apache.catalina.startup.Catalina load
    SEVERE: Catalina.start
    LifecycleException: Protocol handler initialization failed: java.net.BindException: Address already in use: JVM_Bind:80
         at org.apache.catalina.connector.Connector.initialize(Connector.java:1061)
         at org.apache.catalina.core.StandardService.initialize(StandardService.java:578)
         at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:792)
         at org.apache.catalina.startup.Catalina.load(Catalina.java:504)
         at org.apache.catalina.startup.Catalina.load(Catalina.java:524)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:260)
         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:412)
    Sep 3, 2008 3:07:05 AM org.apache.catalina.startup.Catalina load
    INFO: Initialization processed in 391 ms
    Sep 3, 2008 3:07:05 AM org.apache.catalina.core.StandardService start
    INFO: Starting service Catalina
    Sep 3, 2008 3:07:05 AM org.apache.catalina.core.StandardEngine start
    INFO: Starting Servlet Engine: Apache Tomcat/6.0.10
    Sep 3, 2008 3:07:05 AM org.apache.coyote.http11.Http11Protocol start
    SEVERE: Error starting endpoint
    java.net.BindException: Address already in use: JVM_Bind:80
         at org.apache.tomcat.util.net.JIoEndpoint.init(JIoEndpoint.java:499)
         at org.apache.tomcat.util.net.JIoEndpoint.start(JIoEndpoint.java:513)
         at org.apache.coyote.http11.Http11Protocol.start(Http11Protocol.java:202)
         at org.apache.catalina.connector.Connector.start(Connector.java:1132)
         at org.apache.catalina.core.StandardService.start(StandardService.java:457)
         at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
         at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
    Sep 3, 2008 3:07:05 AM org.apache.catalina.startup.Catalina start
    SEVERE: Catalina.start:
    LifecycleException: service.getName(): "Catalina"; Protocol handler start failed: java.net.BindException: Address already in use: JVM_Bind:80
         at org.apache.catalina.connector.Connector.start(Connector.java:1139)
         at org.apache.catalina.core.StandardService.start(StandardService.java:457)
         at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
         at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
    Sep 3, 2008 3:07:05 AM org.apache.catalina.startup.Catalina start
    INFO: Server startup in 462 ms
    Sep 3, 2008 3:07:05 AM org.apache.catalina.core.StandardServer await
    SEVERE: StandardServer.await: create[8005]:
    java.net.BindException: Address already in use: JVM_Bind
         at java.net.PlainSocketImpl.socketBind(Native Method)
         at java.net.PlainSocketImpl.bind(Unknown Source)
         at java.net.ServerSocket.bind(Unknown Source)
         at java.net.ServerSocket.<init>(Unknown Source)
         at org.apache.catalina.core.StandardServer.await(StandardServer.java:373)
         at org.apache.catalina.startup.Catalina.await(Catalina.java:616)
         at org.apache.catalina.startup.Catalina.start(Catalina.java:576)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
    Sep 3, 2008 3:07:05 AM org.apache.coyote.http11.Http11Protocol pause
    INFO: Pausing Coyote HTTP/1.1 on http-80
    Sep 3, 2008 3:07:05 AM org.apache.catalina.connector.Connector pause
    SEVERE: Protocol handler pause failed
    java.lang.NullPointerException
         at org.apache.jk.server.JkMain.pause(JkMain.java:679)
         at org.apache.jk.server.JkCoyoteHandler.pause(JkCoyoteHandler.java:153)
         at org.apache.catalina.connector.Connector.pause(Connector.java:1074)
         at org.apache.catalina.core.StandardService.stop(StandardService.java:489)
         at org.apache.catalina.core.StandardServer.stop(StandardServer.java:744)
         at org.apache.catalina.startup.Catalina.stop(Catalina.java:602)
         at org.apache.catalina.startup.Catalina$CatalinaShutdownHook.run(Catalina.java:645)
    Sep 3, 2008 3:07:06 AM org.apache.catalina.core.StandardService stop
    INFO: Stopping service Catalina
    Sep 3, 2008 3:07:06 AM org.apache.catalina.connector.MapperListener destroy
    WARNING: Error unregistering MBeanServerDelegate
    java.lang.NullPointerException
         at org.apache.catalina.connector.MapperListener.destroy(MapperListener.java:162)
         at org.apache.catalina.connector.Connector.stop(Connector.java:1180)
         at org.apache.catalina.core.StandardService.stop(StandardService.java:519)
         at org.apache.catalina.core.StandardServer.stop(StandardServer.java:744)
         at org.apache.catalina.startup.Catalina.stop(Catalina.java:602)
         at org.apache.catalina.startup.Catalina$CatalinaShutdownHook.run(Catalina.java:645)
    Sep 3, 2008 3:07:06 AM org.apache.coyote.http11.Http11Protocol destroy
    INFO: Stopping Coyote HTTP/1.1 on http-80
    Sep 3, 2008 3:07:06 AM org.apache.catalina.connector.Connector stop
    SEVERE: Coyote connector has not been started
    Sep 3, 2008 3:07:14 AM org.apache.coyote.http11.Http11Protocol pause
    INFO: Pausing Coyote HTTP/1.1 on http-80
    Sep 3, 2008 3:07:14 AM org.apache.catalina.connector.Connector pause
    SEVERE: Protocol handler pause failed
    java.lang.NullPointerException
         at org.apache.jk.server.JkMain.pause(JkMain.java:679)
         at org.apache.jk.server.JkCoyoteHandler.pause(JkCoyoteHandler.java:153)
         at org.apache.catalina.connector.Connector.pause(Connector.java:1074)
         at org.apache.catalina.core.StandardService.stop(StandardService.java:489)
         at org.apache.catalina.core.StandardServer.stop(StandardServer.java:744)
         at org.apache.catalina.startup.Catalina.stop(Catalina.java:602)
         at org.apache.catalina.startup.Catalina.start(Catalina.java:577)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
    Sep 3, 2008 3:07:15 AM org.apache.catalina.core.StandardService stop
    INFO: Stopping service Catalina
    Sep 3, 2008 3:07:15 AM org.apache.catalina.connector.MapperListener destroy
    WARNING: Error unregistering MBeanServerDelegate
    java.lang.NullPointerException
         at org.apache.catalina.connector.MapperListener.destroy(MapperListener.java:162)
         at org.apache.catalina.connector.Connector.stop(Connector.java:1180)
         at org.apache.catalina.core.StandardService.stop(StandardService.java:519)
         at org.apache.catalina.core.StandardServer.stop(StandardServer.java:744)
         at org.apache.catalina.startup.Catalina.stop(Catalina.java:602)
         at org.apache.catalina.startup.Catalina.start(Catalina.java:577)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
    Sep 3, 2008 3:07:15 AM org.apache.coyote.http11.Http11Protocol destroy
    INFO: Stopping Coyote HTTP/1.1 on http-80
    Sep 3, 2008 3:07:15 AM org.apache.catalina.connector.Connector stop
    SEVERE: Coyote connector has not been started
    Sep 3, 2008 3:07:20 AM org.apache.catalina.core.AprLifecycleListener init
    INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Apache Software Foundation\Tomcat 6.0\bin;.;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;D:\app\UK-Dasari\product\11.1.0\db_1\bin;D:\oracle\product\10.2.0\client_1\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Program Files\Common Files\Roxio Shared\DLLShared\;C:\Program Files\QuickTime\QTSystem\;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\PrivateAssemblies\;C:\Program Files\Java\jdk1.6.0_05\bin
    Sep 3, 2008 3:07:20 AM org.apache.coyote.http11.Http11Protocol init
    SEVERE: Error initializing endpoint
    java.net.BindException: Address already in use: JVM_Bind:80
         at org.apache.tomcat.util.net.JIoEndpoint.init(JIoEndpoint.java:499)
         at org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:175)
         at org.apache.catalina.connector.Connector.initialize(Connector.java:1059)
         at org.apache.catalina.core.StandardService.initialize(StandardService.java:578)
         at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:792)
         at org.apache.catalina.startup.Catalina.load(Catalina.java:504)
         at org.apache.catalina.startup.Catalina.load(Catalina.java:524)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:260)
         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:412)
    Sep 3, 2008 3:07:20 AM org.apache.catalina.startup.Catalina load
    SEVERE: Catalina.start
    LifecycleException: Protocol handler initialization failed: java.net.BindException: Address already in use: JVM_Bind:80
         at org.apache.catalina.connector.Connector.initialize(Connector.java:1061)
         at org.apache.catalina.core.StandardService.initialize(StandardService.java:578)
         at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:792)
         at org.apache.catalina.startup.Catalina.load(Catalina.java:504)
         at org.apache.catalina.startup.Catalina.load(Catalina.java:524)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:260)
         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:412)
    Sep 3, 2008 3:07:20 AM org.apache.catalina.startup.Catalina load
    INFO: Initialization processed in 381 ms
    Sep 3, 2008 3:07:20 AM org.apache.catalina.core.StandardService start
    INFO: Starting service Catalina
    Sep 3, 2008 3:07:20 AM org.apache.catalina.core.StandardEngine start
    INFO: Starting Servlet Engine: Apache Tomcat/6.0.10
    Sep 3, 2008 3:07:21 AM org.apache.coyote.http11.Http11Protocol start
    SEVERE: Error starting endpoint
    java.net.BindException: Address already in use: JVM_Bind:80
         at org.apache.tomcat.util.net.JIoEndpoint.init(JIoEndpoint.java:499)
         at org.apache.tomcat.util.net.JIoEndpoint.start(JIoEndpoint.java:513)
         at org.apache.coyote.http11.Http11Protocol.start(Http11Protocol.java:202)
         at org.apache.catalina.connector.Connector.start(Connector.java:1132)
         at org.apache.catalina.core.StandardService.start(StandardService.java:457)
         at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
         at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
    Sep 3, 2008 3:07:21 AM org.apache.catalina.startup.Catalina start
    SEVERE: Catalina.start:
    LifecycleException: service.getName(): "Catalina"; Protocol handler start failed: java.net.BindException: Address already in use: JVM_Bind:80
         at org.apache.catalina.connector.Connector.start(Connector.java:1139)
         at org.apache.catalina.core.StandardService.start(StandardService.java:457)
         at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
         at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
    Sep 3, 2008 3:07:21 AM org.apache.catalina.startup.Catalina start
    INFO: Server startup in 485 ms
    Sep 3, 2008 3:34:44 AM org.apache.coyote.http11.Http11Protocol pause
    INFO: Pausing Coyote HTTP/1.1 on http-80
    Sep 3, 2008 3:34:44 AM org.apache.catalina.connector.Connector pause
    SEVERE: Protocol handler pause failed
    java.lang.NullPointerException
         at org.apache.jk.server.JkMain.pause(JkMain.java:679)
         at org.apache.jk.server.JkCoyoteHandler.pause(JkCoyoteHandler.java:153)
         at org.apache.catalina.connector.Connector.pause(Connector.java:1074)
         at org.apache.catalina.core.StandardService.stop(StandardService.java:489)
         at org.apache.catalina.core.StandardServer.stop(StandardServer.java:744)
         at org.apache.catalina.startup.Catalina.stop(Catalina.java:602)
         at org.apache.catalina.startup.Catalina.start(Catalina.java:577)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
    Sep 3, 2008 3:34:45 AM org.apache.catalina.core.StandardService stop
    INFO: Stopping service Catalina
    Sep 3, 2008 3:34:45 AM org.apache.catalina.connector.MapperListener destroy
    WARNING: Error unregistering MBeanServerDelegate
    java.lang.NullPointerE

    uk-dasari wrote:
    java.net.BindException: Address already in use: JVM_Bind:80You've another service (a HTTP server?) running on port 80.
    Either shut it down or assign the current server another port.

  • Problem Running my servlet

    Hi,
    I use Tomcat 5.5.17 to run servlets. I can run the example servlets that come with Tomcat successfully. I have configured the java_home and class path variables. When I create a new servlet in the webapps/servlets-examples folder, I can run it.
    However, when I try creating a new folder under webapps (named trial) and when I try to run my servlet from there I get the 404 Servlet not found error.
    The steps I followed are:
    1.Created a new folder trial under C:\apache-tomcat 5.5.17\webapps
    2.Created the WEB_INF folder under trial and then the classes folder under it.
    3. Put my servlet HelloServlet.class under the classes folder.
    4.Put WEB.XML under the C:\apache-tomcat 5.5.17\webapps\trial\WEB_INF folder and made the following entry
    <servlet>
    <servlet-name>HelloServlet</servlet-name>
    <servlet-class>HelloServlet</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>HelloServlet</servlet-name>
    <url-pattern>/HelloServlet</url-pattern>
    </servlet-mapping>
    5. I tried to access my servlet using the following URL:
    http://localhost:8080/trial/HelloServlet
    and that gives the 404 error.
    Are there any additional steps when we are running a servlet a folder we create?
    I searched the internet and found something about setting the context path but I could not understand how to do it for Tomcat 5.5.17 as the documents I found on the net were for older versions.
    I would be grateful if someone could help me out. Thanks in advance!
    Aniticipating your help!
    Thanks and Regards,
    Asana

    Hi.. You can check your application context path through Tomcat Manager application.
    URL is :
    http://localhost:8080/manager/list
    or
    http://localhost:8080/manager/html/list

  • Any Prerequisites to run panels in CS4?

    I have developed a set of actions and then used the Configurator to develop two panels that front-end the actions.  The panels simply call the actions and nothing more.
    I have begun distributing these in a set that is installed with two install routines (One for mac, one for windows).  In most cases everything works great but I have a persistent problem with some folks not able to load the panels. 
    After installing they get the message "Please close all panels or restart Photoshop..."  They do this and yet the panels still don't show up, just this message. 
    I originally thought that maybe AIR may be required to run the panels but in an earlier post Jeffrey Tranberry stated that AIR is not required to run them.
    I have not been able to determine any common issue among those that can't open the panels. 
    Does anyone know if there are any prerequisites to running panels in Photoshop CS4?  No problem developing the panels but running them seems to be a problem on some machines.
    Any help is appreciated....
    Thanks
    Rob

    hello anil sir,
    long back i asked about plugin downloading.
    now i downloaded "plugin-1_1_3_005-win.exe" and put it in my tomcat directory.and i also have a .cab file called jinstall-113-win32.cab.
    in the embed tag what html file name i should give and what path? there exactly
    "http://java.sun.com/products/plugin/1.1.3/plugin-install.html\"
    path is there. what should i give there in my case?
    again i am asking you, please dont hesitate to answer.
    my entire plugin ie .exe file in
    http://www.handpaintedgreetings.com/hpg directory.
    and the jinstall-113-win32.cab is also in the same directory.
    is the following is correct:
    please do the modification if it is wrong.
    <OBJECT classid=\"clsid:8AD9C840-044E-11D1-B3E9-00805F499D93\" width=\"405\"
    codebase="http://www.handpaintedgreetings.com/hpg/jinstall-113-win32.cab#Versin=1,1,3,0">
    <PARAM name=\"java_code\" value=\"caforclient\">
    <PARAM name=\"java_codebase\" value=\"http://www.handpaintedgreetings.com\">"
    <PARAM name=\"type\" value=\"application/x-java-applet;version=1.1.3\">
    <PARAM NAME=\"username\" VALUE="+id+">
    <PARAM NAME=\"myoption\" VALUE="+op+">
    <COMMENT>
    <EMBED type=\"application/x-java-applet;version=1.1.3\" width=\"405\" height=\"315\" align=\"top\" pluginspage=\"http://www.handpaintedgreetings.com/hpg/plugin-install.html\" java_code=\"caforclient\" java_codebase=\"http://www.handpaintedgreetings.com\" >
    <NOEMBED> //here lies my problem (from where this "plugin-install.html" file i need to pick it up and put it in tomcat)
    </COMMENT>
    Plugin tag OBJECT or EMBED not supported by browser.
    </NOEMBED></EMBED>
    </OBJECT>
    thanks and regards
    by
    sambareddy.

  • Problem in running the servlet

    I have compiled the servlet and put the class file HelloWorld.class inside
    $CATALINA_HOME$/webapps/ROOT/WEB-INF/classes/
    directory, under tomcat6.0.18
    and also mapped servlet in
    $CATALINA_HOME$/webapps/ROOT/WEB-INF/web.xml, as below
    web.xml:
        <?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/javaee"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
       version="2.5">
      <display-name>Welcome to Tomcat</display-name>
      <description>
         Welcome to Tomcat
      </description>
      <servlet>
        <servlet-name>HelloWorld</servlet-name>
        <servlet-class>HelloWorld</servlet-class>
      </servlet>
      <servlet-mapping>
        <servlet-name>HelloWorld</servlet-name>
        <url-pattern>/HelloWorld</url-pattern>
      </servlet-mapping>
    </web-app>and run the servlet using this url......*.http://localhost/HelloWorld*
    but I got following error code under tomcat 6.0.18
      type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    javax.servlet.ServletException: Error allocating a servlet instance
         org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
         org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
         org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
         org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
         org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
         java.lang.Thread.run(Thread.java:619)
    root cause
    java.lang.NoClassDefFoundError: HelloWorld (wrong name: hall/HelloWorld)
         java.lang.ClassLoader.defineClass1(Native Method)
         java.lang.ClassLoader.defineClass(ClassLoader.java:620)
         java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
         org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1847)
         org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:890)
         org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1354)
         org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)
         org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
         org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
         org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
         org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
         org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
         java.lang.Thread.run(Thread.java:619)
    note The full stack trace of the root cause is available in the Apache Tomcat/6.0.18 logs.is there something I did wrong?
    Edited by: san_4u on Mar 16, 2009 1:20 AM

    root cause
    java.lang.NoClassDefFoundError: HelloWorld (wrong name: hall/HelloWorld)Is your servlet contains first line as package hall;If it is there,remove it from the servlet code. And run your program.
    If you want to keep it, then make a folder named hall in classes folder and put your HelloWorld.class there. Also change <servlet-class> as
    <servlet>
        <servlet-name>HelloWorld</servlet-name>
        <servlet-class>hall.HelloWorld</servlet-class>
      </servlet>

  • Cannot run a servlet using Tomcat. Urgent

    I have a webapplication which uses some jsp's and servlets. The jsp pages work fine when I use
    http://hostname:8080/MyWebapp/Filename.jsp
    However, when I developed a java servlet and put the class file in WEB-INF/classes directory of my web application and tried to access it.
    I got a resource not found error.
    The strange thing is that when I put the file in the web-inf/classes folder of examples webapplication (which comes with Tomcat) I am able to run the servlet using
    http://hostname:8080/examples/servlet/Class file
    I am not sure what is wrong.
    Can someone help me.
    Thanks in advance
    Vamsi.

    It's predictable. The Servlet and JSP specifications mandate that you cannot directly access resources under WEB-INF directory. You have to set up servlet mapping configuration in your web.xml to specify how to access the resources, both Servlet and JSP, there.
    When you copied your files in a demo webapp of Tomcat, the web.xml of the demo app already set up the mapping like following for you. So you could use http://hostname:8080/examples/servlet/Class to visit the servlet.
    <servlet-mapping>
    <servlet-name>invoker</servlet-name>
    <url-pattern>/servlet/*</url-pattern>
    </servlet-mapping>
    The default setting since Tomcat 4.1 turned off servlet invoker in web.xml under conf directory. You can uncomment the above lines in this file to turn it on. Then you are able to visit your servlet without <servlet-mapping> configured using the following syntax,
    http://hostname:8080/<your_app_name>/servlet/<your_servlet_name>

  • How to run a servlet in tomcat

    how i can run a servlet in tomcat?

    how i can run a servlet in tomcat?Don't try to do that yet; in your other thread you have shown that your are
    not capable yet of setting up a proper development environment.
    Take my advice, you can't walk or run yet so start with the basics.
    kind regards,
    Jos

  • How to run a servlet in vqserver????

    any one know how to run a servlet using vqserver..pleazzzzzzzzzz..

    Why not read the doc at vqserver.com??
    But its' really simple:
    copy classes into vq/servlet directory
    open http://localhost:9090
    create an alias to your servlet
    and test

  • How to run a servlet in tomcat 5.5

    Hi,iam new to servlets,please help me regarding running a servlet in tomcat 5.5,
    I just want an example servlet to run first,
    the below is the code for the same :-
    //ExampleServlet.java
    package sig;
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class ExampleServlet extends HttpServlet {
         public void init(ServletConfig config) throws ServletException{
              super.init(config);
         public void service(HttpServletRequest req,HttpServletResponse res)throws ServletException,IOException{
              PrintWriter out = res.getWriter();
              out.println("<HTML>");
              out.println("<BODY>");
              out.println("<p>Hello World</p>");
              out.println("</BODY>");
              out.println("</HTML>");
    I have created a new folder named "SignatureServlet" under the "webapps" folder of tomcat and have created a "WEB-1NF" folder under it,
    again i have kept my "ExampleServlet.class" inside the "WEB-1NF->classes" folder and the entries for my servlet in the "web.xml" file are:-
    <servlet>
    <servlet-name>ExampleServlet</servlet-name>
    <servlet-class>ExampleServlet</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>ExampleServlet</servlet-name>
    <url-pattern>/ExampleServlet</url-pattern>
    </servlet-mapping>
    still when iam trying to access the servlet using "http://localhost:8080/ExampleServlet/"
    iam getting a HTTP:404 error
    The requested resource () is not available.,
    please help

    You better ask this on a Tomcat forum...
    Timo

Maybe you are looking for

  • The burning never ends

    Perhaps someone else is having this problems. I'm using iDVD 6.01. When I use one of the new templates, particularly White Reflections, the burning process gets about half way done and then idles forever until I have to force quit. The DVD plays in D

  • Elements 9 organizer, folder location view & copying images

    I am using photoshop elements 9.0.3 under windows 7. In the "folder location" view, when I click on a folder I see pictures that belong to a completely different folder. How can I solve this problem? Also, is it possible to copy an image from one fol

  • Nokia 5800 locked after software update

    Hey I was hoping someone would be able to help me. I've got a nokia 5800 express music phone. I updated it but then the phone got locked. It keeps saying code error and the green+red+camera thing isn't working as well... I got the phone from England

  • How to modify the query to get max id record

    Hi All, How to modify below query to get proper result.The query is returning some records are duplicated.I need only one record to display from duplicate based on max assetid. Here is my query: SELECT * FROM ( SELECT a.uppertitle, a.composer, a.eson

  • Orion shows 3750 port speed changes - is it normal?

    Hi all,   We use Orion for monitoring.  We recently started monitoring a workstation switch and find many occurances of port speed changes indicated.  Our workstation ports are configured with auto speed and duplex.  Is it normal that we are detectin