A strange problem in Tomcat Servlet

I am a starter in programming servlet.
I am running servlet under Tomcat 5.5.
I test the HelloWorld servlet. It works well and shows "Hello World".
But when I change the code to out.println("Hello World!!!"), and re-compile, the output remain the same.
Then I shut down the Tomcat and restart. The output becomes Hello World!!!.
What's the reason? The servlet engine only read the same class once?
How can I change it?
Thanks

With class files, I've noticed that sometimes changes to the code aren't displayed, you have to restart tomcat.
But if you're just displaying text, that should go in a jsp. In a jsp, changes are usually displayed when you reload the page (unless the browser caches the page). And the code is also cleaner to look at, without out.println's everywhere.
If you're using eclipse as your programming environment, then it should automatically do a "hot code replace" (which does fail in some cases, like if you add a method, so you have to be careful). If the changes are minor, you can do exactly what you're looking--modify a class, save it, and the class file gets changed without having to restart tomcat, and the recompilation is automatic which is great.

Similar Messages

  • Strange problem--tomcat not showing pages.....

    hi friends,
    Today morning-on i started encountering a strange problem of tomcat not showing the pages in the browser.
    When i startup the tomcat it starts up fine without any warnings or alert messages.
    But when i access the web pages/jsps that i want to view, it is showing a blank white page without any trail for me to findout what went wrong.
    And on analysis, i found out that catalina_log.2003-09-16.txt had the follwing error messages.
    2003-09-16 18:39:18 CoyoteAdapter An exception or error occurred in the container during the request processing
    java.lang.NoSuchMethodError: javax.servlet.http.HttpServletRequest.getUserPrincipal()Ljava/security/Principal;
         at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:455)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:594)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
         at java.lang.Thread.run(Thread.java:536)
    2003-09-16 18:43:22 CoyoteAdapter An exception or error occurred in the container during the request processing
    java.lang.NoSuchMethodError: javax.servlet.http.HttpServletRequest.getUserPrincipal()Ljava/security/Principal;
         at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:455)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:594)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
         at java.lang.Thread.run(Thread.java:536)
    Of course this is the message of a freshly installed server, as all the known tricks to show up the pages failed, i did for more than 4 times the reinstallation of tomcat.the version i am using is 4.1.24.I have already put the same server with apache on window OS in the production server.Now the testing is going on for the site.
    How can i make the tomcat work properly to show the pages smoothly.Any developer friend can please help me?
    thanks and regards
    sathiyam K G

    Hi friends!!
    I would like to know what is the problem with my tomcat server or environment,by that it is not showning the pages to me, in spite of not giving any errors at the server console.
    Pl refer to my first post for the problem.Since i narrated with the error message log, i am requesting you to refer to the same again.
    I am sorry that i do not have enough duke points to assign.Bear with me.
    sat

  • JSF: Problem during Tomcat Startup

    Hi, I am having a strange problem with a JSF-application.
    I am using jdk 1.3.1 (13), Tomcat 5.0.28 and the Sun JSF-Ref. implementation. On my dev-environment all is well. On the system-test environment of the customer, Tomcat would not initialize the FacesServlet claiming that it can not find the faces-config-file.
    I have tries all 3 ways of referencing the config-file (put it into a jar, put faces-config.xml directly into WEB-INF, add a context-param to web.xml with the URI of the file and param-name javax.faces.CONFIG_FILES). All three work fine on my dev, none of them works on sys-test.
    Funny enough, if I use the context-param in web.xml, where the web-app context is ctx, for the URI /WEB-INF/the-faces-config.xml I get an error during startup, for the URI /ctx/WEB-INF/the-faces-config.xml I don't have a problem on startup but the servlet does not actually read the config-file (you can tell from the fact that it can't resolve any of the Bean-methods).
    Any idea would be much appreciated!
    Cheers, Bastian

    Hi, thanks - unfortunately that did not help. The system (in the original configuration) does find the jars ok in WEB-INF/lib (I can tell since there is code in the jar which is executed before the problems hit me and the stack-trace when it can't resolve the bean-methods is from com.sun.faces.el.impl). It looks like the beans are not actually initialized (which is consistent, since the system can't find the config-file which wires the beans).

  • If there is a problem starting a servlet....

    I'm currently writting an exception handler for my servlet's init() method.
    My question is, if there is a problem initialising the servlet (i.e. config files won't load etc) what's the best way to put the servlet out of action?
    I'm thinking maybe call the destroy() method within the catch block of init(). Would this be right?
    If so what happens if the servlet is shutdown and then there is another request? Will the container (Tomcat) attempt to start the servlet again?
    Thanks,

    When you say "And the container will always attempt to
    start the servlet after startup." Do you mean after
    shutdown?That's a strange way to say it, but I suppose you might look at it that way. The container shuts down at some point in time. It doesn't attempt to init the servlet then, but after it starts up it does attempt to init the servlet. Either immediately or upon its first use.
    It seems a bit strange for the container to keep
    restarting a servlet that will always fail on init().How should the container know that? It cannot make any assumptions about what init() might do the next time. Perhaps it failed because the system manager put a configuration file in the wrong place; it might be there now. Basically it's the manager's problem if the servlet init() fails every time, not the container's.
    Oh and I don't suppose there is a class constuctor
    exception is there, for when a constructor fails?Constructors can throw exceptions if they are designed to do so.

  • Problem with Tomcat 6

    Hi guys,
    I am with a very strange problem with my job here.
    We had a server working with Tomcat 5 and it didn't have problem, but wanted to changed to Tomcat 6.
    So.. we changed and it ran normal and well.
    The problem is when we stress the server with one or more big queries, execptions is showed that didn't show with Tomcat 5:
    java.lang.Exception: [Microsoft][SQLServer 2000 Driver for JDBC]Object has been closed
    Using SQL Server 2000
    java.lang.Exception: The connection is closed.
    Using SQL Server 2005
    java.lang.Exception: I/O Error: socket closed.
    Using SQL Server 2005 with jTDS driver
    It happens with Oracle too.
    Can anybody help me?
    Thanks!

    hi i'm having a similar problem launching a servlet in eclipse. I did the above changes and still nothing:
    instead i keep getting :
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    javax.servlet.ServletException: Wrapper cannot find servlet class DataServlet or a class it depends on

  • Strange problem with Istant DB

    Hello,
    i have a strange problem with idb and classloader... if i try to connect to my db using a servlet, i get a ClassNotFoundException, but if i try to connect to it normally, it's all ok...
    C:\jwsdp\webapps\ROOT\prova\DB>java DataBase
    Enhydra InstantDB - Version 3.26
    The Initial Developer of the Original Code is Lutris Technologies Inc.
    Portions created by Lutris are Copyright (C) 1997-2001 Lutris Technologies, Inc.
    All Rights Reserved.
    Database movies is shutting down...
    Database movies shutdown complete.
    What's the problem??? why
    Class.forName("org.enhydra.instantdb.jdbc.idbDriver");
    in a servlet application catch a ClassNotFoundException???
    this is my classpath:
    %JAXP_HOME%\lib\jaxp-api.jar;
    %JAXB_LIBS%\jaxb-api.jar;
    %JAXB_LIBS%\jaxb-ri.jar;
    %JAXB_LIBS%\jaxb-xjc.jar;
    %JAXB_LIBS%\jaxb-libs.jar;
    %JWSDP_HOME%\common\lib\catalina-ant.jar;
    %JWSDP_HOME\common\lib\servlet.jar;
    C:\idb\Classes;
    C:\idb\Classes\idb.jar;
    C:\idb\Classes\idbexmpl.jar;
    C:\idb\Classes\jta-spec1_0_1.jar;
    C:\j2sdk\lib;
    C:\jwsdp\jaxb-1.0\lib;
    C:\jwsdp\jaxb-1.0;
    C:\jwsdp\jaxb-1.0\lib\jaxb-api.jar;
    C:\jwsdp\jaxb-1.0\lib\jaxb-libs.jar;
    C:\jwsdp\jaxb-1.0\lib\jaxb-ri.jar;
    C:\jwsdp\jaxb-1.0\lib\jaxb-xjc.jar;
    Thanks, Marco

    There should be a xml configuration file for tomcat, and it should be possible to state additional classpaths there. But I'd suggest to use the pre-configured classpaths. In which directory does your servlet class reside, or where is your document root for the web application of this servlet?
    Regards

  • Problem Stopping Tomcat 6.0.18

    I’m not sure if this is the right forum for my problem.
    I already tried the JavaRanch/Tomcat and NetBeans forums but no one responded. If you can help, I’ll be sure to let them know the answer and that the Sun forum is de man. I now know I can use CTRL-C in the command window where Tomcat is running. Here's the error from my original post:
    I get the messages below when I try to stop Tomcat with a Command window and bin/shutdown.bat. I don’t know what “SEVERE: Catalina.stop: java.net.SocketException: Permission denied: connect” means and can’t find an explanation.
    Using CATALINA_BASE:   C:\Program Files\Apache Software Foundation\Apache Tomcat
    6.0.18
    Using CATALINA_HOME:   C:\Program Files\Apache Software Foundation\Apache Tomcat
    6.0.18
    Using CATALINA_TMPDIR: C:\Program Files\Apache Software Foundation\Apache Tomcat
    6.0.18\temp
    Using JRE_HOME:        C:\Program Files\Java\jdk1.6.0_07
    Mar 19, 2010 4:12:35 PM org.apache.catalina.startup.Catalina stopServer
    SEVERE: Catalina.stop:
    java.net.SocketException: Permission denied: connect
            at java.net.PlainSocketImpl.socketConnect(Native Method)
            at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
            at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
            at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
            at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
            at java.net.Socket.connect(Socket.java:519)
            at java.net.Socket.connect(Socket.java:469)
            at java.net.Socket.<init>(Socket.java:366)
            at java.net.Socket.<init>(Socket.java:180)
            at org.apache.catalina.startup.Catalina.stopServer(Catalina.java:421)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:597)
            at org.apache.catalina.startup.Bootstrap.stopServer(Bootstrap.java:337)
            at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:415)
    C:\Program Files\Apache Software Foundation\Apache Tomcat 6.0.18>Please tell me what I have to do to stop Tomcat. Thanks for your help.

    hi i'm having a similar problem launching a servlet in eclipse. I did the above changes and still nothing:
    instead i keep getting :
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    javax.servlet.ServletException: Wrapper cannot find servlet class DataServlet or a class it depends on

  • Tomcat Servlet - TCP Port Already in Use?

    My problem is that tomcat/servlet is not releasing its TCP port after my servlet closes the port. Next time a servlet tries to use the port it gets an error "Port already in use". Using netstat I can see the port is still in use. If I stop tomcat and restart it, the port is released. I have not had this sort of problem writing C programs that use sockets.
    My setup is Fedora Core 6 with JDK1.5_14 and Tomcat 5.5.26. I know it's not the latest, but sockets and streams have been around for a long time.
    Actual implementation uses a trivial javaserver page to instantiate a class to create/accept connection from a client (JApplet). After connection, it starts a thread to receive data. I am using ServerSocket(), InputStreamReader(), and OutputStreamWriter(). On ServerSocket I set ReuseAddress to true.
    I have try/catch on all my I/O and use tomcat context log for error and OK messages. Data transfer is perfect. Detect close by client works. In the context log I see close of streams and ServerSocket occur with no exceptions. Then, I manually close the jsp window. No indication of any problems. If I use different port 2nd time (e.g. 50001) it all works perfect. If I use my default (50000) again, servlet gets an error during bind, "Port already in use".
    2.5 years with Java. 5 years with Linux and C.
    Please advise or refer

    rwengr wrote:
    My problem is that tomcat/servlet is not releasing its TCP port after my servlet closes the port. Next time a servlet tries to use the port it gets an error "Port already in use". Using netstat I can see the port is still in use. If I stop tomcat and restart it, the port is released. I have not had this sort of problem writing C programs that use sockets.Nice.... Not sure that matters though.
    >
    My setup is Fedora Core 6 with JDK1.5_14 and Tomcat 5.5.26. I know it's not the latest, but sockets and streams have been around for a long time.
    Actual implementation uses a trivial javaserver page to instantiate a class to create/accept connection from a client (JApplet). Bleah! Don't use a JSP for that. Use a servlet at worst. At best use a Servlet to start some other socket manager class which you can/have tested outside the Servlet Container environment.
    After connection, it starts a thread to receive data. I am using ServerSocket(), InputStreamReader(), and OutputStreamWriter(). On ServerSocket I set ReuseAddress to true.
    I have try/catch on all my I/O and use tomcat context log for error and OK messages. Data transfer is perfect. Detect close by client works. In the context log I see close of streams and ServerSocket occur with no exceptions. Then, I manually close the jsp window. Closing the browser window has no affect on the server.
    No indication of any problems. If I use different port 2nd time (e.g. 50001) it all works perfect. If I use my default (50000) again, servlet gets an error during bind, "Port already in use".
    2.5 years with Java. 5 years with Linux and C.
    Please advise or referShow some code. If you just want some generic advice it would be to close the port, as soon as you don't need it anymore. But you know that. Without any further code I think that is about all that can be said.
    P.S. Make the code as small as possible, compilable, but still demonstrating the problem. Also see: [this tutorial as an example...|http://www.javaworld.com/javaworld/jw-12-1996/jw-12-sockets.html?page=1]

  • Tomcat servlet/JSP container default files on 10gAS(10.1.2.0.2)

    Hi Friends,
    I am using Oracle Application Server 10g (10.1.2.0.2) on windows
    I have the Vulnerability: Apache Tomcat servlet/JSP container default files.
    and the fix is Review the files and delete those that are not needed.
    i would like to know the location of the files to review and delete.Please suggest?
    Regards,
    DB

    Apache/Tomcat is not related to OAS, where did you get this info? OAS is based in a Orion Web Server and Apache HTTP Server, not Tomcat.
    For this kind of problems there are the CPU you may want to check in Metalink for them.
    Can you clarify also what default files?
    Greetings.

  • A strang problem about Resin database connection pool

    I am a beginner&#65292;hope somebody can help me.
    my web site occured a strange problem after I used the Resin database connection pool instead of
    connecting directly
    the error message as follows:java.lang.IllegalArgumentException: Request cannot be null
    at javax.servlet.ServletRequestWrapper.<init>(ServletRequestWrapper.java:100)
    at javax.servlet.http.HttpServletRequestWrapper.<init>(HttpServletRequestWrapper.java:92)
    at com.caucho.server.connection.RequestAdapter.<init>(RequestAdapter.java:96)
    at com.caucho.server.webapp.DispatchRequest.<init>(DispatchRequest.java:97)
    at com.caucho.server.webapp.IncludeDispatchRequest.<init>(IncludeDispatchRequest.java:77)
    at com.caucho.server.webapp.IncludeDispatchRequest.createDispatch(IncludeDispatchRequest.java:87)
    at com.caucho.server.webapp.RequestDispatcherImpl.include(RequestDispatcherImpl.java:389)
    at com.caucho.server.webapp.RequestDispatcherImpl.include(RequestDispatcherImpl.java:345)
    at com.caucho.jsp.PageContextImpl.include(PageContextImpl.java:807)
    at _jsp._intro__jsp._jspService(/intro.jsp:60)
    at com.caucho.jsp.JavaPage.service(JavaPage.java:75)
    at com.caucho.jsp.Page.pageservice(Page.java:571)
    at com.caucho.server.dispatch.PageFilterChain.doFilter(PageFilterChain.java:155)
    at com.caucho.server.cache.CacheFilterChain.doFilter(CacheFilterChain.java:211)
    at com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:177)
    at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:221)
    at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:263)
    at com.caucho.server.port.TcpConnection.run(TcpConnection.java:331)
    at com.caucho.util.ThreadPool.runTasks(ThreadPool.java:464)
    at com.caucho.util.ThreadPool.run(ThreadPool.java:408)
    at java.lang.Thread.run(Thread.java:595)

    <!--
    - Resin 3.0 configuration file.
    -->
    <resin xmlns="http://caucho.com/ns/resin"
    xmlns:resin="http://caucho.com/ns/resin/core">
    <!--
    - Logging configuration for the JDK logging API.
    -->
    <log name='' level='info' path='stdout:' timestamp='[%H:%M:%S.%s] '/>
    <log name='com.caucho.java' level='config' path='stdout:'
    timestamp='[%H:%M:%S.%s] '/>
    <log name='com.caucho.loader' level='config' path='stdout:'
    timestamp='[%H:%M:%S.%s] '/>
    <!--
    - For production sites, change dependency-check-interval to something
    - like 600s, so it only checks for updates every 10 minutes.
    -->
    <dependency-check-interval>2s</dependency-check-interval>
    <!--
    - You can change the compiler to "javac" or jikes.
    - The default is "internal" only because it's the most
    - likely to be available.
    -->
    <javac compiler="internal" args=""/>
    <!-- Security providers.
    - <security-provider>
    - com.sun.net.ssl.internal.ssl.Provider
    - </security-provider>
    -->
    <!--
    - If starting bin/resin as root on Unix, specify the user name
    - and group name for the web server user.
    - <user-name>resin</user-name>
    - <group-name>resin</group-name>
    -->
    <!--
    - Configures threads shared among all HTTP and SRUN ports.
    -->
    <thread-pool>
    <!-- Maximum number of threads. -->
    <thread-max>128</thread-max>
    <!-- Minimum number of spare connection threads. -->
    <spare-thread-min>25</spare-thread-min>
    </thread-pool>
    <!--
    - Configures the minimum free memory allowed before Resin
    - will force a restart.
    -->
    <min-free-memory>1M</min-free-memory>
    <server>
    <!-- adds all .jar files under the resin/lib directory -->
    <class-loader>
    <tree-loader path="$resin-home/lib"/>
    </class-loader>
    <!-- Configures the keepalive -->
    <keepalive-max>500</keepalive-max>
    <keepalive-timeout>120s</keepalive-timeout>
    <!-- The http port -->
    <http server-id="" host="*" port="8080"/>
    <!--
    - SSL port configuration:
    - <http port="8443">
    - <openssl>
    - <certificate-file>keys/gryffindor.crt</certificate-file>
    - <certificate-key-file>keys/gryffindor.key</certificate-key-file>
    - <password>test123</password>
    - </openssl>
    - </http>
    -->
    <!--
    - The local cluster, used for load balancing and distributed
    - backup.
    -->
    <cluster>
    <srun server-id="" host="127.0.0.1" port="6802" index="1"/>
    </cluster>
    <!--
    - Enables/disables exceptions when the browser closes a connection.
    -->
    <ignore-client-disconnect>true</ignore-client-disconnect>
    <!--
    - Enables the cache
    -->
    <cache path="cache" memory-size="10M"/>
    <!--
    - Enables periodic checking of the server status.
    - With JDK 1.5, this will ask the JDK to check for deadlocks.
    - All servers can add <url>s to be checked.
    -->
    <ping>
    <!-- <url>http://localhost:8080/test-ping.jsp</url> -->
    </ping>
    <!--
    - Defaults applied to each web-app.
    -->
    <web-app-default>
    <!--
    - Sets timeout values for cacheable pages, e.g. static pages.
    -->
    <cache-mapping url-pattern="/" expires="5s"/>
    <cache-mapping url-pattern="*.gif" expires="60s"/>
    <cache-mapping url-pattern="*.jpg" expires="60s"/>
    <!--
    - Servlet to use for directory display.
    -->
    <servlet servlet-name="directory"
    servlet-class="com.caucho.servlets.DirectoryServlet"/>
    </web-app-default>
    <!--DataSource jndi configuration-->
    <database>
    <jndi-name>jdbc/artunion</jndi-name>
    <driver type="org.gjt.mm.mysql.Driver">
    <url>jdbc:mysql://localhost:3306/union</url>
    <user>as</user>
    <password>as</password>
    </driver>
    <prepared-statement-cache-size>8</prepared-statement-cache-size>
    <max-connections>20</max-connections>
    <max-idle-time>30s</max-idle-time>
    </database>
    <!--
    - Default host configuration applied to all virtual hosts.
    -->
    <host-default>
    <class-loader>
    <compiling-loader path='webapps/WEB-INF/classes'/>
    <library-loader path='webapps/WEB-INF/lib'/>
    </class-loader>
    <!--
    - With another web server, like Apache, this can be commented out
    - because the web server will log this information.
    -->
    <access-log path='logs/access.log'
    format='%h %l %u %t "%r" %s %b "%{Referer}i" "%{User-Agent}i"'
    rollover-period='1W'/>
    <!-- creates the webapps directory for .war expansion -->
    <web-app-deploy path='webapps'/>
    <!-- creates the deploy directory for .ear expansion -->
    <ear-deploy path='deploy'>
    <ear-default>
    <!-- Configure this for the ejb server
    - <ejb-server>
    - <config-directory>WEB-INF</config-directory>
    - <data-source>jdbc/test</data-source>
    - </ejb-server>
    -->
    </ear-default>
    </ear-deploy>
    <!-- creates the deploy directory for .rar expansion -->
    <resource-deploy path='deploy'/>
    <!-- creates a second deploy directory for .war expansion -->
    <web-app-deploy path='deploy'/>
    </host-default>
    <!-- includes the web-app-default for default web-app behavior -->
    <resin:import path="${resinHome}/conf/app-default.xml"/>
    <!-- configures the default host, matching any host name -->
    <host id=''>
    <document-directory>D:/artunion</document-directory>
    <!-- configures the root web-app -->
    <web-app id='/'>
    <!-- adds xsl to the search path -->
    <class-loader>
    <simple-loader path="$host-root/xsl"/>
    </class-loader>
    <servlet-mapping url-pattern="/servlet/*" servlet-name="invoker"/>
    </web-app>
    </host>
    </server>
    </resin>
    Thank you!

  • CiscoWorks Tomcat Servlet Engine service does not start

    Hello!
    CiscoWorks  Tomcat Servlet Engine service does not start.
    Events in the Windows Event Viewer:
    The CiscoWorks Tomcat Servlet Engine service terminated unexpectedly. It has done this 1 time(s).
    output pdshow and file stderr.log,  hs_err_pid2128.log attached.
    Do  you have an idea how to resolve this?
    Thanks!

    The only things which I see are wrong are the start types for the IPM NG database engine and HUM database engine services.  They must be set to Manual, not Automatic.  However, that would not account for the Tomcat crash.  The crash points to an error in the code which processes regdaemon.xml, but I see no reason why that should be failing.  As I said before, I think it would be best to open a Service Request.  Remote access would be helpful to dig into this problem in more detail.
    Please support CSC Helps Haiti
    https://supportforums.cisco.com/docs/DOC-8895
    https://supportforums.cisco.com

  • Strange problem with forms.  browser does not send syn

    We are having a strange problem and I hope someone can help (im
    stumped).
    setup
    I have a webserver (iplanet 4.1 sp8) running in secure mode. It has a
    weblogic nsapi plugin and forwards EVERYTHING over to an app server.
    The app server runs weblogic 4.5 sp10 and hosts both servlets and
    static html for an application we are developing.
    customers load a long form and are given the ability to upload several
    files, but upon pressing the submit button on the form (they must do
    each file individually) we get an error message that the page cannot
    be displayed.
    upon investigation, I look at a tcp trace and find that when the
    submit button is pressed, the browser sends an ack packet to the
    netscape server and it responds (correctly IMO) with a rst flag.
    Why doesn't the browser start communication with a syn/syn-ack/ack
    sequence? The form appears to have been completely loaded.
    To aggravate matters more, this problem does not always occur and
    clearing the browser's cache seems to aggravate it.
    I would appreciate ANY help that could be offered.
    sorry for the long post,
    -Chris
    Chris Regenye
    Supervisor Systems Services
    PR Newswire
    [email protected]

    In article <[email protected]>,
    Chris Regenye <[email protected]> wrote:
    Barry Margolin <[email protected]> wrote in message
    news:<vzdh7.8$5%1.649@burlma1-snr2>...
    In article <[email protected]>,
    Chris Regenye <[email protected]> wrote:
    We are having a strange problem and I hope someone can help (im
    stumped).
    setup
    I have a webserver (iplanet 4.1 sp8) running in secure mode. It has a
    weblogic nsapi plugin and forwards EVERYTHING over to an app server.
    The app server runs weblogic 4.5 sp10 and hosts both servlets and
    static html for an application we are developing.
    customers load a long form and are given the ability to upload several
    files, but upon pressing the submit button on the form (they must do
    each file individually) we get an error message that the page cannot
    be displayed.
    upon investigation, I look at a tcp trace and find that when the
    submit button is pressed, the browser sends an ack packet to the
    netscape server and it responds (correctly IMO) with a rst flag.
    Why doesn't the browser start communication with a syn/syn-ack/ack
    sequence? The form appears to have been completely loaded.It may be trying to reuse a persistent connection, as recommended in
    HTTP/1.1.Great, but the server obviously doesn't believe this is the case. Any
    idea how to correct this situation? also... as I mentioned this
    problem is intermittant(sp?). When it does not occur, tcp
    communications are normal.It sounds like the bug is in the browser. When it gets the RST, it should
    realize that the old connection has been dropped (even if a server
    implements persistent connections, like it should, it's allowed to close
    idle connections after a timeout or if it's running out of resources).
    When that happens it should automatically retry on a new connection.
    This might explain why the problem is intermittent. The browser is happy
    when the connection has remained open, but it doesn't handle the occasional
    cases where the server has closed the connection unexpectedly.
    Barry Margolin, [email protected]
    Genuity, Woburn, MA
    *** DON'T SEND TECHNICAL QUESTIONS DIRECTLY TO ME, post them to newsgroups.
    Please DON'T copy followups to me -- I'll assume it wasn't posted to the group.

  • Problem in tomcat 4.0

    Hello every body
    I have an error when I Run my Web project in tomcat4.0
    the error is
    " MAPPING configuration error for request URI" ,
    but in the first time that I run the project it success but after I close JBuilder then open it the project doesn't run and it give me the error
    "StandardHost[localhost]: MAPPING configuration error for request URI"
    and I need ur help quick please thanks

    Glad i could help you out.
    I've always preferred working directly with tomcat with an ant script that way you're sure of what you are doing.
    This is recurrent problem : you've got jars that need to be in your project classpath to compile your application but that must not be deployed : ie : it must not be copied in your WEB-INF/lib directory of your webapp in tomcat. (servlet.jar's another one, or even junit.jar if you unit test)
    Actually you can define this in JBuilder : go to your webapp's properties window (right click on webapp -> properties) and go into dependencies tab (i suppose that its called that way, mine's in french ;-). You will find the list of libraries that you have defined for your application. Just define xerces as to be excluded from your webapp for deployment.

  • Strange Problem with Web Object Manager

    Hi,
    I have a very strange problem with JDev.
    When I register a servlet with the Web Object Manager, it does not work (the web server does not find the servlet). This is not the end... If I exit JDev, re-open it and return to the Web Object Manager, instead of the Web Object Manager tree appears a tree labeled JTree with leaves labeled "colors", "sports" and "food"???
    No way to recover the Web Object Manager!
    I had to re-install JDev.
    Any ideas?
    Thanks
    -David

    Thanks but I don't understand. Here is wtgapp.xml:
    <?xml version = '1.0'?>
    <workspace>
    </workspace>
    Here is webtogo.ora:
    [WEBTOGO]
    USE_SYSTEM_CLASSPATH=YES
    DEBUG=YES
    [FILESYSTEM]
    ROOT_DIR=C:\
    TYPE=OS
    [MIMES]
    html=text/html
    xml=text/xml
    xsl=text/xml
    jsp=text/html;handler=oracle.jsp.JspServlet
    xsql=text/html;handler=oracle.xml.xsql.XSQLServlet
    [APPLICATIONS]
    xmlfile=.\wtgapp.xml
    [SERVLET_PARAMETERS]
    emit_debuginfo=true
    bypass_source=true
    jspcompiler=oracle.jdeveloper.jsp.JspOjcCompiler
    page_repository_root=C:\Program Files\Oracle\JDeveloper 3.1.1.2\myclasses\_pages
    after I added my servlet (which was named Servlet1). Where is the problem exactely.
    Thanks.
    -David
    In any case, is the fixed version available?
    null

  • Strange Problem with PAR deployment.

    Hi Everybody,
    I am undergoing with the strange problem with PAR deployment. When I am deploying any Par file its going successful but when again If I am changing this same PAR file in NWDS and deploying it ... its deploying but not showing the updated deployment version. To see the updated version, every time, I have to go Portal->System Admin->Support->Admin Console and DELETE the existing PAR file. But this procedure takes too time to work on each and every time. Can you help me with some new concept where the new deployed version will get updated on previous one without any manual process or if this something related to cache problem then how to work out?
    Thanks,
    Roshan Gupta

    Hi,
    If it saves you time you can also deploy from here:
    .../irj/servlet/prt/portal/prtroot/com.sap.portal.runtime.system.console.ClusterAdminConsole
    In some cases (rarely) I observed the behavior you described above.
    In thoes cases after deploying the file I click the "clean" button on the bottom, since after the deployment it contains the name of the par you just uploaded it'll save you the time of looking for that par to earase.
    After that you have to deploy the par again, but again it's allready in the browse console box.
    Best Regards,
    Nadav.

Maybe you are looking for

  • MacBook Pro mid-2014 Intermittent issue with sound

    This occurs in an intermittent fashion : I cannot adjust volume neither with the slider at the top of the screen, nor with the volume buttons of my keyboard. In fact, there is no way I can adjust the sound. I get this image (bottom) when I try to adj

  • PR not adopted in Scheduling Agreement

    I have created a Scheduling Agreement but when i add the Item from Create with Ref. to Purchase Requisition of that Material its not picking up the PR. actually that PR no. is made in PR type ZIMP (our customized PR type) but when I made the PR in PR

  • Disablig Sorting functinoality in ALV using Classes

    Hi,   How can I disable the ALV sorting functionality using classes? I disabled the buttons on the ALV. But when I select a column and press right click, the sorting functionality is available. How can I disable the right click functionality in alv.

  • How do i manage rss feeds within fire fox

    i see no way to create rss folders so that i can manage many rss feeds from different web sites. there is the latest headlines button on the favorites bar (which came loaded with bbc) but i have no idea how to manage this as one would a standard rss

  • Getting the Last day for a given week number

    Dear Gurus, I want to find the Last day of a given week number. Can anyone help me out. Regards Madhu K