Error while running a Servlet program in Eclipse IDE

Hi,
I have tried running the following program in the Eclipse Editor. It doesnt compile. I have installed the Tomcat plugin too.
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;
public class HTTPGetServlet extends HttpServlet {
     public void doGet(HttpServletRequest request,
               HttpServletResponse response)
     throws ServletException, IOException
          PrintWriter output;
          response.setContentTe("text/html");
          output=response.getWriter();
          StringBufer buf=new StringBuffer();
          buf.append("<HTML><HEAD><TITLE>\n");
          buf.append("A simple servlet example\n");
          buf.append("</TITLE></HEAD><BODY>");
          buf.append("<H1>Welcome to the world</H1>\n");
          buf.append("</BODY></HTML>");
          out.println(buf.toString());
          output.close();
On a closer look i realized that the IDE is showing as error any import statements i type in. Can anyone help me get over this problem? Thanks a lot in advance.
bye
V

You need to add the JAR containing the servlet API in the external JARs for the project.
Regards,
Carol.

Similar Messages

  • 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.

  • Error while running a Java Program

    Can anyone help me,
    I am getting the following error while running a Java program, Below is the exception thrown, please help.
    java.nio.BufferOverflowException
    at java.nio.Buffer.nextPutIndex(Buffer.java:425)
    at java.nio.DirectByteBuffer.putChar(DirectByteBuffer.java:463)
    at org.jetel.data.StringDataField.serialize(StringDataField.java:295)
    at org.jetel.data.DataRecord.serialize(DataRecord.java:283)
    at org.jetel.graph.DirectEdge.writeRecord(DirectEdge.java:216)
    at org.jetel.graph.Edge.writeRecord(Edge.java:288)
    at com.tcs.re.component.RESummer1.run(RESummer1.java:505)
    java.nio.BufferOverflowException
    at java.nio.Buffer.nextPutIndex(Buffer.java:425)
    at java.nio.DirectByteBuffer.putChar(DirectByteBuffer.java:463)
    at org.jetel.data.StringDataField.serialize(StringDataField.java:295)
    at org.jetel.data.DataRecord.serialize(DataRecord.java:283)
    at org.jetel.graph.DirectEdge.writeRecord(DirectEdge.java:216)
    at org.jetel.graph.Edge.writeRecord(Edge.java:288)
    at com.tcs.re.component.RECollectCont.run(RECollectCont.java:304)

    Ok, let's see. Write the following class:
    public class Grunt {
      public static void main(String[] args) {
        System.out.println("Hello Mars");
    }Save it as "C:\Grunt.java", compile by typing:
    javac c:\Grunt.javaRun by typing:
    java -classpath "C:\" GruntDoes it say "Hello Mars"? If yes, go back to your program and compare for differences (maybe you used the "package" statement?).
    Regards

  • 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);
    }

  • Build Error while Running Ant Build File in Eclipse

    I am getting the following error while running the Ant build file in eclipse ,
    Can someone help me on this ?
    Error:
    weblogic.utils.compiler.ToolFailureException: com.bea.xml.XmlException

    You need to add the JAR containing the servlet API in the external JARs for the project.
    Regards,
    Carol.

  • Error while running background deployment, program /SAPAPO/RMSDPDEP

    Hi all,
    For the second time in 3 months, I encounter this strange error while running a daily background deployment job, using program /SAPAPO/RMSDPDEP.
    The job starts correctly and does a part of its job, but then interrupt with this message in the job log :
      -->  "no valid simulation guid"  (class SAPAPO/OM_TS, n° 101)
      -->  "Unknown error"  (class SAPAPO/OM, n° 100)
      -->  "Job cancelled  after system exception ERROR_MESSAGE"  (class 00, n° 564)
    I just can't find any clue about what causes the problem...
    Did anyone encounter that kind of difficulties before ? Any help would be usefull...
    Thanks !
    Fabrice

    Hi Siva,
    In this range of time, I effectively run 13 parallel deployment jobs, as follow :
    n° 1, 2, 3, 4 and 5 : same location (factory 1) and each treats a products selection
    n° 6, 7, 8, 9 and 10 : same location (factory 2) and each treats a products selection
    n° 11 : all products of factory 3
    n° 12 : all products of factory 4
    n° 13 : all products of factory 5
    A product can only be produced in a single location, so there might not have access concurencies during parallel jobs. Do you think it could be some kind of a technical problem (not enough process available ?). Note that the problem can't come from CPU, we use CPU auto-allocation, and it works well.
    What do you think ?
    Thanks
    Fabrice

  • Rdf Report Error while running from concurrent program

    hi,
    i have created a RDF Report with the below query created Concurrent Prog exec and Concurrent Prog with the respective parameters
    p_fromsrdate---FND_STANDARD_DATE(ValueSet)
    p_tosrdate---FND_STANDARD_DATE(ValueSet)
    for the report layout i have taken example template working fine from the report console
    SELECT
    incident.Incident_Number as ServiceRequestNumber,
    TO_CHAR (incident.incident_date,'DD-MON-YYYY') as ServiceRequestDate,
    incident.Summary as Summary,
    agenttime.agentname as AgentName,
    to_char(agenttime.agentstarttime,'DD-MM-YYYY HH24:MI') as StartTime,
    to_char(to_date('00:00:00','HH24:MI:SS') +
    (agenttime.endtime-agenttime.agentstarttime), 'HH24:MI') as TimeSpent
    FROM cs_incidents_all_b incident,cs_agenttime_agv agenttime
    WHERE agenttime.incident_id=incident.incident_id
    AND incident.incident_date between to_date(:p_fromsrdate,'DD-MON-YYYY')
    AND to_date(:p_tosrdate,'DD-MON-YYYY');
    Service: Version : 12.0.0
    Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.
    AGTIMREP module: SR Agent Time Report
    Current system time is 01-AUG-2009 04:46:13
    +-----------------------------
    | Starting concurrent program execution...
    +-----------------------------
    Arguments
    p_fromsrdate='2009/07/05 00:00:00'
    p_tosrdate='2009/07/20 00:00:00'
    APPLLCSP Environment Variable set to :
    Current NLS_LANG and NLS_NUMERIC_CHARACTERS Environment Variables are :
    American_America.UTF8
    Enter Password:
    REP-0069: Internal error
    REP-57054: In-process job terminated:Terminated with error:
    REP-300: ORACLE error occurred.
    Report Builder: Release 10.1.2.0.2 - Production on Sat Aug 1 04:46:21 2009
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Start of log messages from FND_FILE
    End of log messages from FND_FILE
    Program exited with status 1
    Concurrent Manager encountered an error while running Oracle*Report for your concurrent request 4444878.
    Review your concurrent request log and/or report output file for more detailed information.
    Executing request completion options...
    Finished executing request completion options.
    Concurrent request completed
    Current system time is 01-AUG-2009 04:46:23
    ---------------------------------------------------------------------------

    hi,
    i have enabled the trace
    Service: Version : 12.0.0
    Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.
    AGTIMREP module: SR Agent Time Report
    Current system time is 01-AUG-2009 06:25:18
    +-----------------------------
    | Starting concurrent program execution...
    +-----------------------------
    Arguments
    p_fromsrdate='2009/07/05 00:00:00'
    p_tosrdate='2009/07/07 00:00:00'
    -- Start of Reports Command --
    /home/orasfa/inst/apps/SFA_appsr12/ora/10.1.2/bin/appsrwrun.sh
    P_CONC_REQUEST_ID=4444890
    p_fromsrdate='2009/07/05 00:00:00'
    p_tosrdate='2009/07/07 00:00:00'
    report=/home/orasfa/apps/apps_st/appl/cs/12.0.0/reports/US/AGTIMREP.rdf
    batch=yes
    destype=file
    desname=/home/orasfa/inst/apps/SFA_appsr12/logs/appl/conc/out/o4444890.out
    desformat=XML
    -- End of Reports Command --
    Request language is :
    AMERICAN
    Request territory is :
    AMERICA
    APPLLCSP Environment Variable set to :
    Previous NLS_LANG Environment Variable was :
    American_America.UTF8
    Current NLS_LANG and NLS_NUMERIC_CHARACTERS Environment Variables are :
    American_America.UTF8
    Enter Password:
    REP-0069: Internal error
    REP-50002: Server is shutting down
    Report Builder: Release 10.1.2.0.2 - Production on Sat Aug 1 06:26:20 2009
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Start of log messages from FND_FILE
    End of log messages from FND_FILE
    Reset original NLS_LANG in environment as :
    American_America.UTF8
    Program exited with status 1
    Concurrent Manager encountered an error while running Oracle*Report for your concurrent request 4444890.
    Review your concurrent request log and/or report output file for more detailed information.
    Executing request completion options...
    Finished executing request completion options.
    Concurrent request completed
    Current system time is 01-AUG-2009 06:26:20
    ---------------------------------------------------------------------------

  • 404 ERROR WHILE RUNNING A SERVLET

    hi
    i have written servlet program that takes a cookie value
    from a HTML page....
    while running the HTML page i have been getting the error
    The page you are looking for might have been removed, had its name changed, or is temporarily unavailable.
    Please try the following:
    If you typed the page address in the Address bar, make sure that it is spelled correctly.
    Open the localhost:8080 home page, and then look for links to the information you want.
    Click the Back button to try another link.
    Click Search to look for information on the Internet.
    HTTP 404 - File not found
    Internet Explorer
    i have placed my servlet prog at
    c:\aruna\AddCookieServlet
    and html prog is also in there itself
    and i have complied them successfully
    i have been tried with following URLs in my html prog
    http://localhost:8080/servlet/AddCookieServlet
    http://localhost:8080/aruna/servlet/AddCookieServlet
    it would be helpful if someone will give me an immediat response
    thanks

    Hi arunapotti,
    I assume that you have downloaded Java server Web Developement Kit 1.0.1. This is a reference implementation of Servlets 2.1 and JSP1.0 specification.
    But the current version of Servlets is 2.3 and that of JSP is 1.1, and the reference implementation for the same is Tomcat4.0.1. You can download this implementation from the following URL. Like JSWDK it is also available free of cost:-
    http://java.sun.com/products/servlet/download.html
    Once you install it properly in
    C:\jakarta-tomcat-4.0.1
    You can write a servlet as :-
    I wrote a servlet named CentralServlet as :-
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class CentralServlet extends HttpServlet {
    public void doGet(HttpServletRequest req, HttpServletResponse res)
    throws ServletException , IOException {
    doPost(req, res);
    public void doPost(HttpServletRequest req, HttpServletResponse res)
    throws ServletException , IOException {
    PrintWriter out = res.getWriter();
    out.println("Yes you have done it");
    Once you compile this properly place it in directory
    C:\jakarta-tomcat-4.0.1\webapps\srvltWEB-INF\classes\CentralServlet
    where srvlt is the directory created by you, this is the context for your application.webapps will already be there when you have successfully installed Tomcat.
    Within srvlt create WEB-INF and with in WEB-INF create classes where you place your servlet.
    To make srvlt a context you will have to make an entry in server.xml file which you can find at the following location
    C:\jakarta-tomcat-4.0.1\conf\server.xml
    Add the following entry in this xml file.
    <Context path="/srvlt" docBase="srvlt" debug="0" reloadable="true" />
    Also write web.xml is as :-
    <?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>
    <servlet>
    <servlet-name>srvlt</servlet-name>
    <servlet-class>CentralServlet</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>srvlt</servlet-name>
    <url-pattern>/main</url-pattern>
    </servlet-mapping>
    </web-app>
    Put web.xml in
    C:\tomcat-4.0.1\webapps\srvlt\WEB-INF\web.xml
    Now restart the webserver and you can access the servlet by passing the following url
    http://localhost:8080/srvlt/main
    =========================================
    If still you have some reason to work with Java Server Web Developement Kit then Post a message, I may help you out in that also. But it is highly recommended that you use Tomcat_4.0.1.
    Hope this helps

  • Sourcing : Error while Running Java Concurrent Program

    Hi All,
    Navigations:
    Application: Sourcing
    Responsibility : Sourcing Buyer
    Concurrent Program : Generate and Store Sourcing response spreadsheet
    I am trying to run
    Java Concurrent Program : Generate and Store Sourcing response spreadsheet in SRS Window,
    it completed with Error status.
    Please let me know How can I run this Concurrent Program with Normal status and able to view/save the Output.
    Please provide resolution on this.

    Thanks for your reply..
    Program: Generate and Store Sourcing response spreadsheet
    ShortName: PON_EXPORT_RESPONSE
    Application: Sourcing
    Executable: ExportResponseCp
    Method: Java Concurrent Program
    Responsibility : Sourcing Buyer.
    Has this ever worked? If yes, any changes been done recently?
    => No
    Is this the seeded concurrent program or a custom one?
    => Its seeded program.
    EBS: R12.1.3
    Login as Sourcing Buyer Responsibility :
    When you create RFQ and then Close RFQ and then create Surrogate quote and after you Export the Spreadsheet in SelfService Pages it generates the output.
    But if You run the concurrent program (Generate and Store Sourcing response spreadsheet) it errors out.
    Error : Exception in thread main java .lang.stringIndexOutOfBoundException:
    Thanks..

  • Syntax error while running a driver program

    Hi experts,
                 I have developed a smartforms,in which i have declared the following,
                    ITAB TYPE TABLE OF MARA, in import tab of form interface...
    and in se38 i have declared...
    data: itab like mara occurs 0.
    bujt when i am running this program, i am getting syntax error "ITAB" is neither specified under "TABLES" nor defined as internal tabels..
    plz tell me why this probleming is occuring?and how can i solve this....
    thnks n regards,
    Ashmita.

    in form interface try to declare in tables tab
    or
    global data > types tab and declare global  table using that type.

  • Error while running a concurrent program.

    Hi All,
    I have written a plsql procedure and registered it with apps. When i run the program it is giving
    FDPSTP failed due to ORA-20100: File l0137058.tmp creation for FND_FILE failed.
    You will find more information on the cause of the error in request log.
    I am not able to find out what is the problem with this. When i remove the FND_FILE.PUT_LINE statement from my code and execute it is executing properly without errors. Please suggest me what might be the problem. Also please suggest me where i can find this .tmp file or where i can find the request log.
    Thanks and Regards,
    Mahesh

    Mahesh,
    On the instance where this concurrent program fails to run, please verify the following:
    1) Make sure that APPLPTMP is set to a valid directory as shown above (Verify from the OS by issuing "echo $APPLPTMP" as applmgr user)
    2) Make sure that both the applmgr user and the database user "oracle" have read/write permissions on $APPLPTMP
    3) Make sure that APPLPTMP is the first entry in utl_file_dir (utl_file_dir is set in the init<SID>.ora file). To verify to what "utl_file_dir" is set:
    SQL> connect / as sysdba
    SQL> show parameter UTL_FILE_DIRPlease go through the first document referenced in my first reply (Note: 261693.1), it should be helpful.
    Regards,
    Hussein

  • Error while running service tax program (New)

    Hi
    I have created S3 as interim tax code and S4 as final tax code. I assigned S4 to S3 as a target tax code. Entries are perfectly flowing.
    But when i do service tax program for, session is created properly. When i run it in SM35, for gived error
    "Tax code S4 may only contain one assignment line"
    I have given routine 166 in OBQ3 for ECess and SHEC.
    I tells me to do following procedure:
    Use a different tax code.
    For direct postings to a tax account, you might have to define a separate tax code for which only one line with a percentage rate other than zero is active in percentage rate maintenance. All other lines must be inactive.
    Please help me.
    Edited by: Deepak Agrawal on May 4, 2010 1:29 PM

    There is one interim service tax code (for normal services) - S1. Final service tax code S2 is created assigned to S1 as target tax code.
    Entry passed:
    Exp A/c.. Dr                                   500000
    Service Tax Basic (deferred)       50000
    Service Tax ECS (deferred)         1000
    Service Tax SHEC (deferred)       500
       To Vendor A/c                                        551500
    For this service tax program (new) is working fine.
    For the GTA scenario where service tax is not charged in invoice but we have to pay to government, in that case i have created one interim tax code G1 and i have assigned final tax code S2.
    Entry passed for GTA (invoice raised by transporter is Rs. 500000):
    Exp A/c.. Dr                                   515000
       To Service Tax Basic (deferred)       50000
       To Service Tax ECS (deferred)         1000
       To Service Tax SHEC (deferred)       500
       To Vendor A/c                                   500000
    But when i execute the program i can see three line items (for basic, interim and SHEC)
    But when i run the session, it gives error:
    Tax code S2 may only contain one assignment line.
    I AM UNABLE TO UNDERSTAND, WHY ITS GIVING ERROR FOR GTA SERVICE TAX TRANSFER
    Edited by: Meenu_ND on Jun 1, 2010 10:48 AM

  • Getting error while running the concurrent program

    XDO Data Engine Version No: 5.6.3
    Resp: 50554
    Org ID : 204
    Request ID: 4469953
    All Parameters: p_operating_unit=Vision Operations:p_from_date="2005/01/01 00:00:00":p_to_date="2011/09/28 00:00:00"
    Data Template Code: TRAIL
    Data Template Application Short Name: SQLAP
    Debug Flag: N
    {p_from_date=2005/01/01 00:00:00, p_to_date=2011/09/28 00:00:00, p_operating_unit=Vision Operations}
    Calling XDO Data Engine...
    [092811_033352790][][EXCEPTION] java.lang.NullPointerException
         at oracle.apps.xdo.dataengine.DataTemplateParser.GetNodeNumChildren(DataTemplateParser.java:345)
         at oracle.apps.xdo.dataengine.DataTemplateParser.templateParser(DataTemplateParser.java:277)
         at oracle.apps.xdo.dataengine.XMLPGEN.setDataTemplate(XMLPGEN.java:599)
         at oracle.apps.xdo.dataengine.DataProcessor.setDataTemplate(DataProcessor.java:193)
         at oracle.apps.xdo.oa.util.DataTemplate.<init>(DataTemplate.java:136)
         at oracle.apps.xdo.oa.cp.JCP4XDODataEngine.runProgram(JCP4XDODataEngine.java:282)
         at oracle.apps.fnd.cp.request.Run.main(Run.java:157)
    java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
         at com.sun.java.util.collections.ArrayList.RangeCheck(ArrayList.java:492)
         at com.sun.java.util.collections.ArrayList.get(ArrayList.java:306)
         at oracle.apps.xdo.dataengine.DataTemplateParser.getParentDataSource(DataTemplateParser.java:1737)
         at oracle.apps.xdo.dataengine.XMLPGEN.writeDefaultGroup(XMLPGEN.java:320)
         at oracle.apps.xdo.dataengine.XMLPGEN.writeGroupStructure(XMLPGEN.java:279)
         at oracle.apps.xdo.dataengine.XMLPGEN.processData(XMLPGEN.java:266)
         at oracle.apps.xdo.dataengine.XMLPGEN.processXML(XMLPGEN.java:205)
         at oracle.apps.xdo.dataengine.XMLPGEN.writeXML(XMLPGEN.java:237)
         at oracle.apps.xdo.dataengine.DataProcessor.processData(DataProcessor.java:364)
         at oracle.apps.xdo.oa.util.DataTemplate.processData(DataTemplate.java:236)
         at oracle.apps.xdo.oa.cp.JCP4XDODataEngine.runProgram(JCP4XDODataEngine.java:293)
         at oracle.apps.fnd.cp.request.Run.main(Run.java:157)
    Start of log messages from FND_FILE
    End of log messages from FND_FILE
    Executing request completion options...
    ------------- 1) PUBLISH -------------
    Beginning post-processing of request 4469953 on node HSCHBSCGN20076 at 28-SEP-2011 15:33:53.
    Post-processing of request 4469953 failed at 28-SEP-2011 15:33:53 with the error message:
    One or more post-processing actions failed. Consult the OPP service log for details.
    Finished executing request completion options.

    Hi,
    What is the program name? Is this a standard program? Please share the details.
    The 345th line of the oracle.apps.xdo.dataengine.DataTemplateParser file is the cause of the error. Looks like somewhere you are passing nulls. Make sure provided all the required parmeters and done all the required setups.
    HTH,
    Syed.

  • Error while running the sample program in Oracle CEP

    Hi I am New to CEP. I have installed Oracle CEP 11g. I am trying to run the example available in sample folder. I am getting the below error.
    Exception in thread "Main Thread" java.lang.reflect.InvocationTargetException
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.bea.wlevs.Server.main(Server.java:185)
    Caused by: java.lang.IllegalArgumentException: Bundle <file:/D:/bea/modules/com.bea.core.apache.commons.logging.api_1.1.0.jar> has no known start level label
         at com.bea.backplane.launcher.Launcher.getStartLevelLabelFromJarLabel(Launcher.java:1663)
         at com.bea.backplane.launcher.Launcher.updateStartLevelViaJarLabel(Launcher.java:1714)
         at com.bea.backplane.launcher.Launcher.adjustStartLevel(Launcher.java:1625)
         at com.bea.backplane.launcher.Launcher.prepareConfig(Launcher.java:1169)
         at com.bea.backplane.launcher.Launcher.run(Launcher.java:539)
         at com.bea.backplane.launcher.Launcher.main(Launcher.java:149)
         ... 5 more
    Please let me know the reason for getting the error.

    I'm gussing you installed OCEP in an existing ORACLE_HOME. You should create a new home otherwise the modules may conflict with other products.
    andy

Maybe you are looking for