Tomcat Web-server uses old .class files

Hi Friends,
My Tomcat webserver uses old .class files. The problem persists even if I delete old class files. The new ones are formed but then if i again recompile, the new-old ones are used :)
Am I doing something wrong????
Please suggest!!

I have experienced this problem before as well. Tomcat seems to cache compiled class files for better speed. To get Tomcat to reload class files that I've recently recompiled here is what I do:
1. Go into the Tomcat server administration area (http://localhost/admin)
2. Choose the context that is using the classes that you want to reload (from Service / Host)
3. Make sure reloadable is set to true
3. Click save, and then commit changes
Hope this helps, but if there is a better way to get Tomcat to use the most recent class files I would love to hear it!

Similar Messages

  • Post a File to a web server using HTTP_POST

    Hello,
    I have to generate a program to post a file ".TXT" to a web server using a HTTP POST with multipart form and a couple of variables (user, password).
    I was investigating and I found that I can do it using SAPHTTP but I dont know how to work with the FM HTTP_POST.
    Does anyone have a sample code?
    Thanks
    Ariel

    sample usage:
      CALL FUNCTION 'HTTP_POST'
        EXPORTING
          ABSOLUTE_URI                = IM_OFX_CONTROL_DATA-ADDRESS
          REQUEST_ENTITY_BODY_LENGTH  = RESPONSE_ENTITY_BODY_LENGTH
          RFC_DESTINATION             = IM_OFX_CONTROL_DATA-HTTP_RFCDEST
          USER                        = IM_OFX_CONTROL_DATA-HTTP_USER
          PASSWORD                    = IM_OFX_CONTROL_DATA-HTTP_PASSWORD
          BLANKSTOCRLF                = 'X'
        IMPORTING
          STATUS_CODE                 = STATUS
          STATUS_TEXT                 = STATUS_TEXT
          RESPONSE_ENTITY_BODY_LENGTH = RLENGTH
        TABLES
          REQUEST_ENTITY_BODY         = LT_REQUEST
          RESPONSE_ENTITY_BODY        = RESPONSE
          RESPONSE_HEADERS            = LT_RESPONSE_HEADERS
          REQUEST_HEADERS             = LT_HTTP_HEADERS
       EXCEPTIONS
            OTHERS                      = 1.
    Refer the programs:
    LFPIFF02            
    LOFXALSU04          
    LPRGN_URL_RESPONSEU01
    LSBCCU01            
    LSFTPU09            
    for some idea.
    regards,
    ravi

  • How to set the servlet context path manually in Tomcat web server.

    I tested some servlets by putting them in the folder , which the tomcats examples application uses (ie Tomcat 4.1\webapps\examples\WEB-INF\classes\) and it appeared to be working fine.
    I was calling the servlet like this : http://localhost:2006/examples/servlet/TestServlet
    But when I installed my own WAR file in the server , the servlet is not working now. now the new location of my servlets is : Tomcat 4.1\webapps\MyApp\WEB-INF\classes\
    and I'm trying to call the servlet like this : http://localhost:2006/MyApp/servlet/TestServlet
    The error , what i'm getting is :
    description :The requested resource (/MyApp/servlet/TestServlet) is not available.
    Some body please tell where I'm making the mistake ? I believe this may have something to do with the servlet context path setting. If anybody has any idea , how to set the path..will be much appreciated.

    Thanx for your reply , at first I was not using any web.xml(since not mandatory) but even after using the web.xml file the error is coming . Please have a look into the contents of the web.xml file and let me know if you find any problem...
    <?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>TestServlet</servlet-name>
    <servlet-class>TestServlet</servlet-class>
    </servlet>
    </web-app>
    one more thing I would like to tell you here. I was just looking into the configuration of Iplanet web server..I found that , there are options to set the servlet container path (like : - Prefix: /servlet
    Servlet Directory: /ecomm/iplanet/nes60/product/docs/container )
    so from here I came to know that "container " is the folder where we should put our servlets and it has URI as "servlet" but yet I'm not able to find any option in the Tomcat Web server to set the servlet container to any different directory.
    If you have any idea please let me know.

  • Tomcat can't locate my class files

    Tomcat can't locat my class file for my javabeans in a jsp page.
    (Tomcat 4.1.24/windows XP)
    I have created inside of webapps a directory thesis and also the WEB-INF\classes and WEB-INF\lib. I don't know what should I put in web.xml so it is basically almost empty.
    this is the error I get where Searcher is my javabean:
    org.apache.jasper.JasperException: Unable to compile class for JSP
    An error occurred at line: -1 in the jsp file: null
    Generated servlet error:
    [javac] Since fork is true, ignoring compiler setting.
    [javac] Compiling 1 source file
    [javac] Since fork is true, ignoring compiler setting.
    [javac] C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\thesis\search_jsp.java:89: cannot resolve symbol
    [javac] symbol : class Searcher
    [javac] location: class org.apache.jsp.search_jsp
    [javac] Searcher seek = null;
    [javac] ^
    [javac] C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\thesis\search_jsp.java:91: cannot resolve symbol
    [javac] symbol : class Searcher
    [javac] location: class org.apache.jsp.search_jsp
    [javac] seek = (Searcher) pageContext.getAttribute("seek", PageContext.PAGE_SCOPE);
    [javac] ^
    [javac] C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\thesis\search_jsp.java:94: cannot resolve symbol
    [javac] symbol : class Searcher
    [javac] location: class org.apache.jsp.search_jsp
    [javac] seek = (Searcher) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "Searcher");
    [javac] ^
    [javac] C:\Program Files\Apache Group\Tomcat 4.1\work\Standalone\localhost\thesis\search_jsp.java:111: cannot resolve symbol
    [javac] symbol : class Searcher
    [javac] location: class org.apache.jsp.search_jsp
    [javac] out.print(JspRuntimeLibrary.toString((((Searcher)pageContext.findAttribute("seek")).getAnalyze())));
    [javac] ^
    [javac] 4 errors
         at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:130)
         at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:293)
         at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:353)
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:370)
         at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:473)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:190)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java: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)

    did you create the Searcher class? if so stick it in a package and put it under your web-inf directory. then use an <%@ page import="" %> statement to import the code.
    if you didn't create the class is it in some jar library you downloaded? if so stick the jar file in your web-inf/lib folder.
    -S-

  • Create web service using java class

    Hi,
    I created the web service using java class then i deployed this web service in to the weblogic admin server.when i tested this process it is working fine.
    when I tested The generated WSDL to this process in browser(IE). it is not working.
    I need to to invoke this webservice from another BPEL but this WSDL is not working.

    Hi,
    when i created the webservice in jdeveloper by default it is connected to integrated weblogic server and generates this wsdl.
    http://localhost:7101/helloApplication-javaexcel-context-root/MyWebService1Soap12HttpPort?WSDL
    then I deployed this webservice in to the Adminserver.it gives the following URL.
    http://192.168.56.1:7001/extracExcelToCSV-extractExcelToCSV-context-root/ExtractExcelToCSVSoap12HttpPort?wsdl
    This URL is not working but when i tested this process it is working fine.
    It is giving below error when i try to invoke from jdeveloper
    Error while reading wsdl file
    caused by:java.net.connectExcepption :Connection timed out:connect

  • Sun java web server - using a lot of memory

    sjws 6.1sp7 - solaris 10u4
    we have a web server instance that uses over 3gb of ram. it servers mostly jsps. i understand why permanent heap is so large (jsp classes) any one have an idea of what else could be going on here?
    17921 webservd 3271M 2976M cpu1 0 10 9:05:55 31% webservd/80
    pmap shows (cut down for length):
    00010000 8K r-x-- /opt/jws61/bin/https/bin/webservd
    00020000 8K rwx-- /opt/jws61/bin/https/bin/webservd
    00022000 1171168K rwx-- [ heap ]
    < snip, and a bunch of the following >
    74000000 5440K r--s- dev:314,2 ino:6823381
    74560000 120K r--s- dev:314,2 ino:6823394
    74590000 408K r--s- dev:314,2 ino:6823341
    74600000 464K r--s- dev:314,2 ino:6823383
    74680000 2192K r--s- dev:314,2 ino:6823304
    748B0000 72K r--s- dev:314,2 ino:6823307
    748D0000 144K r--s- dev:314,2 ino:6823286
    74900000 1264K r--s- dev:314,2 ino:6823418
    74A50000 160K r--s- dev:314,2 ino:6823345
    74A80000 552K r--s- dev:314,2 ino:6823276
    74B10000 8K r--s- dev:314,2 ino:6823327
    74B20000 352K r--s- dev:314,2 ino:6823280
    74B80000 832K r--s- dev:314,2 ino:6823319
    74C60000 104K r--s- dev:314,2 ino:6823324
    74C80000 504K r--s- dev:314,2 ino:6823337
    74D10000 352K r--s- dev:314,2 ino:6823283
    74D70000 32K r--s- dev:314,2 ino:6823406
    74D80000 664K r--s- dev:314,2 ino:6823271
    74E30000 16K r--s- dev:314,2 ino:6823314
    74E40000 40K r--s- dev:314,2 ino:6823349
    74E50000 32K r--s- dev:314,2 ino:6823404
    74E60000 104K r--s- dev:314,2 ino:6823278
    74E80000 584K r--s- dev:314,2 ino:6823347
    74F20000 312K r--s- dev:314,2 ino:6823248
    74F80000 1808K r--s- dev:85,40 ino:3471
    75150000 80K r--s- dev:314,2 ino:6823373
    < snip, and then what appears to be taking up most of the memory >
    96800000 20480K rwx-- [ anon ]
    97C00000 20480K rwx-- [ anon ]
    99000000 20480K rwx-- [ anon ]
    9A400000 28672K rwx-- [ anon ]
    9C000000 4096K rwx-- [ anon ]
    9C400000 4096K rwx-- [ anon ]
    9C800000 4096K rwx-- [ anon ]
    9CC00000 28672K rwx-- [ anon ]
    9E800000 8192K rwx-- [ anon ]
    9F000000 8192K rwx-- [ anon ]
    9F800000 24576K rwx-- [ anon ]
    A1000000 4096K rwx-- [ anon ]
    A1400000 4096K rwx-- [ anon ]
    A1800000 12288K rwx-- [ anon ]
    A2400000 40960K rwx-- [ anon ]
    A4C00000 8192K rwx-- [ anon ]
    A5400000 16384K rwx-- [ anon ]
    A6400000 24576K rwx-- [ anon ]
    A7C00000 40960K rwx-- [ anon ]
    AA400000 20480K rwx-- [ anon ]
    AB800000 12288K rwx-- [ anon ]
    AC400000 20480K rwx-- [ anon ]
    AD800000 4096K rwx-- [ anon ]
    ADC00000 36864K rwx-- [ anon ]
    B0000000 4096K rwx-- [ anon ]
    B0400000 16384K rwx-- [ anon ]
    B1400000 4096K rwx-- [ anon ]
    B1800000 8192K rwx-- [ anon ]
    B2000000 45056K rwx-- [ anon ]
    B4C00000 12288K rwx-- [ anon ]
    B5800000 4096K rwx-- [ anon ]
    B5C00000 12288K rwx-- [ anon ]
    B6800000 16384K rwx-- [ anon ]
    B7800000 4096K rwx-- [ anon ]
    B7C00000 4096K rwx-- [ anon ]
    B8000000 4096K rwx-- [ anon ]
    B8400000 4096K rwx-- [ anon ]
    B8800000 4096K rwx-- [ anon ]
    B8C00000 4096K rwx-- [ anon ]
    #/usr/jdk/j2sdk1.4.2_16/bin/jmap -heap 17921
    Attaching to process ID 17921, please wait...
    Debugger attached successfully.
    Server compiler detected.
    JVM version is 1.4.2_13-b06
    using thread-local object allocation.
    Mark Sweep Compact GC
    Heap Configuration:
    MinHeapFreeRatio = 40
    MaxHeapFreeRatio = 70
    MaxHeapSize = 67108864 (64.0MB)
    NewSize = 2228224 (2.125MB)
    MaxNewSize = 4294901760 (4095.9375MB)
    OldSize = 1441792 (1.375MB)
    NewRatio = 2
    SurvivorRatio = 32
    PermSize = 16777216 (16.0MB)
    MaxPermSize = 1073741824 (1024.0MB)
    Heap Usage:
    New Generation (Eden + 1 Survivor Space):
    capacity = 347406336 (331.3125MB)
    used = 163723696 (156.1390838623047MB)
    free = 183682640 (175.1734161376953MB)
    47.1274352348024% used
    Eden Space:
    capacity = 336920576 (321.3125MB)
    used = 163723696 (156.1390838623047MB)
    free = 173196880 (165.1734161376953MB)
    48.59415175640683% used
    From Space:
    capacity = 10485760 (10.0MB)
    used = 0 (0.0MB)
    free = 10485760 (10.0MB)
    0.0% used
    To Space:
    capacity = 10485760 (10.0MB)
    used = 0 (0.0MB)
    free = 10485760 (10.0MB)
    0.0% used
    tenured generation:
    capacity = 715849728 (682.6875MB)
    used = 645847144 (615.9278335571289MB)
    free = 70002584 (66.7596664428711MB)
    90.22105041576548% used
    Perm Generation:
    capacity = 895221760 (853.75MB)
    used = 894921568 (853.4637145996094MB)
    free = 300192 (0.286285400390625MB)
    99.96646730302892% used

    It usually takes about 24 hours to get there. It is easily reproducible. "Kill -3" is not leaving a javacore for some reason.
    The applications are mostly jsp, and are all over the board. There is a lot of XML parsing, some db connections, and all sorts of other home grown things. However, if the jsp applications were leaking would that not be in the heap?
    How would I hunt down these allocations?
    A2400000 40960K rwx-- [ anon ]
    A4C00000 8192K rwx-- [ anon ]
    A5400000 16384K rwx-- [ anon ]
    A6400000 24576K rwx-- [ anon ]
    A7C00000 40960K rwx-- [ anon ]
    AA400000 20480K rwx-- [ anon ]
    AB800000 12288K rwx-- [ anon ]
    ###server.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <!--
       Copyright (c) 2003 Sun Microsystems, Inc.  All rights reserved.
       Use is subject to license terms.
    -->
    <!DOCTYPE SERVER PUBLIC "-//Sun Microsystems Inc.//DTD Sun ONE Web Server 6.1//EN" "file:///opt/jws61/bin/https/dtds/sun-web-server_6_1.dtd" >
    <SERVER>
        <PROPERTY name="docroot" value="/xxxxxweb/xxx"/>
        <PROPERTY name="accesslog" value="/data/logs/xxxxx/access"/>
        <PROPERTY name="user" value=""/>
        <PROPERTY name="group" value=""/>
        <PROPERTY name="chroot" value=""/>
        <PROPERTY name="dir" value=""/>
        <PROPERTY name="nice" value=""/>
        <LS id="ls1" port="92" servername="xxxxx" defaultvs="https-bamxxx"/>
        <MIME id="mime1" file="mime.types"/>
        <ACLFILE id="acl1" file="/opt/jws61/httpacl/generated.https-xxxxx.acl"/>
        <VSCLASS id="vsclass1" objectfile="obj.conf">
            <VS id="https-xxxxx" connections="ls1" mime="mime1" aclids="acl1" >
                <PROPERTY name="docroot" value="/xxxxxweb/xxx"/>
                <WEBAPP uri="/" path="/xxxxxweb/xxx" enabled="true"/>
            </VS>
        </VSCLASS>
    <JAVA javahome="/usr/jdk/j2sdk1.4.2_13" serverclasspath="/opt/jws61/bin/https/jar/webserv-rt.jar:${java.home}/lib/tools.jar:/opt/jws61/bin/https/jar/webserv-ext.jar:/opt/jws61/bin/https/jar/webserv-jstl.jar:/opt/jws61/bin/https/jar/ktsearch.jar:/opt/oracle/product/9.2.0/jdbc/lib/ojdbc14.jar:/opt/oracle/product/9.2.0/jdbc/lib/nls_charset12.jar:/opt/oracle/product/9.2.0/jdbc/lib/ocrs12.jar" classpathsuffix="" envclasspathignored="true" nativelibrarypathprefix="/opt/oracle/product/9.2.0/lib32" debug="false" debugoptions="-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n" dynamicreloadinterval="-1">
            <!--
            <JVMOPTIONS>-Djava.security.manager</JVMOPTIONS>
            <JVMOPTIONS>-Djava.security.policy=/opt/jws61/https-xxxxx/config/server.policy</JVMOPTIONS>
            <JVMOPTIONS>-Djava.security.auth.login.config=/opt/jws61/https-xxxxx/config/login.conf</JVMOPTIONS>
            -->
            <JVMOPTIONS>-Djava.util.logging.manager=com.iplanet.ias.server.logging.ServerLogManager</JVMOPTIONS>
            <JVMOPTIONS>-Djava.awt.headless=true</JVMOPTIONS>
            <JVMOPTIONS>-server</JVMOPTIONS>
            <JVMOPTIONS>-Xmx1024m</JVMOPTIONS>
            <JVMOPTIONS>-Xms96m</JVMOPTIONS>
            <JVMOPTIONS>-Xrs</JVMOPTIONS>
            <JVMOPTIONS>-XX:MaxPermSize=1024m</JVMOPTIONS>
            <JVMOPTIONS>-Denv=proddc2split</JVMOPTIONS>
            <JVMOPTIONS>-Dhttp.proxyHost=proxy-vip.xxxops.com</JVMOPTIONS>
            <JVMOPTIONS>-Dhttp.proxyPort=3128</JVMOPTIONS>
            <JVMOPTIONS>-Dhttps.proxyHost=proxy-vip.xxxops.com</JVMOPTIONS>
            <JVMOPTIONS>-Dhttps.proxyPort=3128</JVMOPTIONS>
    <!--       <JVMOPTIONS>-DORACLE_HOME="/opt/oracle/product/9.2.0"</JVMOPTIONS> -->
            <SECURITY defaultrealm="native" anonymousrole="ANYONE" audit="false">
                <AUTHREALM name="file" classname="com.iplanet.ias.security.auth.realm.file.FileRealm">
                  <PROPERTY name="file" value="/opt/jws61/https-xxxxx/config/keyfile"/>
                  <PROPERTY name="jaas-context" value="fileRealm"/>
                </AUTHREALM>
                <AUTHREALM name="native" classname="com.iplanet.ias.security.auth.realm.webcore.NativeRealm">
                  <PROPERTY name="jaas-context" value="nativeRealm"/>
                </AUTHREALM>
                <!--
                <AUTHREALM name="ldap" classname="com.iplanet.ias.security.auth.realm.ldap.LDAPRealm">
                  <PROPERTY name="directory" value="ldap://localhost:389"/>
                  <PROPERTY name="base-dn" value="o=isp"/>
                  <PROPERTY name="jaas-context" value="ldapRealm"/>
                </AUTHREALM>
                -->
                <!--
                <AUTHREALM name="solaris" classname="com.iplanet.ias.security.auth.realm.solaris.SolarisRealm">
                  <PROPERTY name="jaas-context" value="solarisRealm"/>
                </AUTHREALM>
                -->
            </SECURITY>
            <RESOURCES>
            </RESOURCES>
        </JAVA>
        <LOG file="/data/logs/xxxxx/errors" loglevel="info"/>
    </SERVER>###magnus.conf
    # The NetsiteRoot, ServerName, and ServerID directives are DEPRECATED.
    # They will not be supported in future releases of the Web Server.
    NetsiteRoot /opt/jws61
    ServerName entertainment
    ServerID https-xxxxxx
    RqThrottle 128
    DNS off
    Security off
    PidLog /opt/jws61/https-xxxxxx/logs/pid
    User webservd
    StackSize 131072
    TempDir /tmp/https-xxxxxx-ba138622
    CGIWaitPid on
    KeepAliveThreads 4
    KeepAliveTimeout 30
    KernelThreads off
    MaxKeepAliveConnections 256
    MaxProcs 1
    UseNativePoll on
    Init fn=flex-init access="$accesslog" format.access="%Ses->client.ip% - %Req->vars.auth-user% [%SYSDATE%] \"%Req->reqpb.clf-request%\" %Req->srvhdrs.clf-status% %Req->srvhdrs.content-length%"
    Init fn="load-modules" shlib="/opt/jws61/bin/https/lib/libj2eeplugin.so" shlib_flags="(global|now)"###obj.conf
    <Object name="default">
    AuthTrans fn="match-browser" browser="*MSIE*" ssl-unclean-shutdown="true"
    NameTrans fn="redirect" from="/NASApp/xxx/" url-prefix="/"
    NameTrans fn="ntrans-j2ee" name="j2ee"
    NameTrans fn=pfx2dir from=/mc-icons dir="/opt/jws61/ns-icons" name="es-internal"
    NameTrans fn=document-root root="$docroot"
    PathCheck fn=unix-uri-clean
    PathCheck fn="check-acl" acl="default"
    PathCheck fn=find-pathinfo
    PathCheck fn=find-index index-names="index.html,home.html,index.jsp"
    ObjectType fn=type-by-extension
    ObjectType fn=force-type type=text/plain
    Service method=(GET|HEAD) type=magnus-internal/imagemap fn=imagemap
    #Service method=(GET|HEAD) type=magnus-internal/directory fn=index-common
    Service method=(GET|HEAD) type=magnus-internal/directory fn=send-error code=404 path="404.html"
    Service method=(GET|HEAD|POST) type=*~magnus-internal/* fn=send-file
    Service method=TRACE fn=service-trace
    Error fn="error-j2ee"
    Error fn=send-error code=404 path="/xxxxxxweb/xxx/404.html"
    Error fn=send-error code=405 path="/xxxxxxweb/xxx/404.html"
    Error fn=send-error code=500 path="/xxxxxxweb/xxx/500.html"
    AddLog fn=flex-log name="access"
    </Object>
    <Object name="j2ee">
    Service fn="service-j2ee" method="*"
    </Object>
    <Object name="cgi">
    ObjectType fn=force-type type=magnus-internal/cgi
    Service fn=send-cgi user="$user" group="$group" chroot="$chroot" dir="$dir" nice="$nice"
    </Object>
    <Object name="es-internal">
    PathCheck fn="check-acl" acl="es-internal"
    </Object>
    <Object name="send-compressed">
    PathCheck fn="find-compressed"
    </Object>
    <Object name="compress-on-demand">
    Output fn="insert-filter" filter="http-compression"
    </Object>
    <Object ppath="*.xml">
    AuthTrans fn="set-variable" insert-srvhdrs="Cache-Control: max-age=60"
    AuthTrans fn="set-variable" insert-srvhdrs="Edge-Control: max-age=60"
    </Object>

  • How to clear old class files cached in JVM

    JVM stores old class files in its cache even after the corresponding files have been deleted from the database. This causes a conflict if a new file is saved with the same name as one that was deleted earlier causing old data to be fetched and not the new one.
    am using the following line of code to load the class file :
    Class.forName(className, false, this.getClass().getClassLoader())
    please help
    Thanks - N

    Why are you trying to do that?
    Dynamic Classloading(reloading) has a meaing only on "application container" like WAS.
    Not appropriate for normal applcation.
    Focus on enhancing your application logic and algorithm rather than wasting your brain on difficult and meaningless things. Applying some flexible design patterns wouldn't suffice?
    Anyway, Sun provides wonderful and simple custom classloader sample.
    http://java.sun.com/developer/onlineTraining/Security/Fundamentals/magercises/ClassLoader/help.html
    Anayzing tomcat source(which is downloadable) is another approach.
    Edited by: Dion_Cho on Nov 26, 2007 5:18 PM
    Typo...

  • Tomcat web server

    hello
    i am a italian newbie for java world, and i would want to make you a question:
    for resolving a problem with tomcat web server i must interpretate the following sentence: The best fix is to turn off automatic webapp reloading for the application: in Tomcat's server.xml, find the <Context> declaration, and ensure it is set to: reloadable="false".
    there is someone who knows well the tomcat server.xml configuration file?
    thank you very much
    ps: sorry for my english!

    hi :-)
    when you have a new class, you put it in /WEB-INF/classes/ right?
    tomcat doesnt load this automatically,
    you have to start-stop tomcat to apply your changes.
    when reloadable option is set to true (ex. reloadable="true" )
    you dont need to start-stop tomcat because tomcat will
    automatically load it for you.
    its ok for me in development stage,
    but when you deploy your application for production,
    its no longer advisable.
    why?
    because setting it to reloadable to true eats much resources on the server :-(
    imagine you have 5000 class and when your setting is autoreload.
    this might cause your server to hang.
    its better to just stop the server, put your classes then start again the server.
    i have to go home for now, i hope i give an idea :-)
    regards,

  • Business Objects Enterprise XI 4.0 / Linux / Oracle / Tomcat Web Server

    Hello Experts,
    I have never done a BOBJ install before and I have some questions:
    First, here is our setup: Business Objects Enterprise XI 4.0 / Linux / Oracle / Tomcat Web Server
    1.     We are being asked how big u2013 disk space- to make the server. All I can find is 14 GB for an English only install, there is no documentation on how big the databases need to be. Does anyone have any experience and can tell me how big the databases are going to be initially? I need to tell the server team how much space to put on the server.
    2.     The documentation says to have two databases or schemas, one for Central Management Server and one for the Auditing Data Store. My question around this is whether there is a preferred way to do it, separate databases or separate schemas?
    3.     The documentation does not say anything about the file system layout, do we need to create the standard SAP file system layout (i.e. /sapmnt, etc.)
    Many many thanks in advance, any advice would be a greate help .. please help
    Regards,
    Sunil Patel

    Hi,
    here are some answers:
    1. Well for the Installation of the Software as itself (not the databases) i would recommend at least 30 GB. All the Reports are getting stored physically in the installation directory. This behavior is by default. Later you can move the FileStore (where the Reports, Universes, etc. are located in) to a NAS share f.e.
    With Regards to the Databases i would recommend 1 GB for the CMS DB and 5 GB for the Audit DB. It depends on how you Audit your System. If you audit more actions, more information in the Audit DB will be stored.
    2. 2 Schemas on one DB is fine
    3. Usually you run a BOE installation on UNIX/LINUX under an installation user. BOE will be installed into his Home Directory.
    Regards
    -Seb.

  • Eclipse and TomCat Web Server

    Hi experts,
       I have been working with Eclipse for last 1 month. I was just working with Portal application component development and publishing it to the SAP EP J2EE server everything worked fine.
       I have eclipse,JDK,Tomcat3.3.2 installed in my laptop and EP J2EE engine runs on the server.
       Now i studied online regarding the development process with eclipse, The portal application component is published to Tomcat web server first and tested for possible errors and then published to the EP J2EE server. How this process is handled?
      Can any expert explain on this and provide me link to make the required configuration of eclipse  for publishing to tomcat web server?
    Thank you
    arun

    Well, the answer I found was that I have an invalid character that is not supported yet by the WAS, the character is "ñ".
    Using Eclipse and deploying in Tomcat worked fine but in WAS 7.0 SP 8 it throws ParseExceptions
    Regards

  • Error Message When Using a Class Files to Control Navigation

    This is my first attempt at using a class file in a flash project. My intent is to keep all of my navigation elements in class file called "Navigation".  However, I keep getting an error message when I publish.
    I am using a button to go back to the main screen and I gave that button the instance name of "bnt_home". I have also linked that button in the library to the class "Navigation".
    Here is the code:
    package
        import flash.display.SimpleButton;
        public class Navigation extends SimpleButton
            public function Navigation()
                bnt_home.addEventListener(MouseEvent.MOUSE_DOWN, goNavigation);
            private function goNavigation(event:MouseEvent):void
                gotoAndPlay(1,"Main");

    When I changed the code I got error (1046: Type was not found or was not a compile-time constant: MouseEvent).
    package
        import flash.display.SimpleButton;
        public class Navigation extends SimpleButton
            public function Navigation()
                this.addEventListener(MouseEvent.MOUSE_DOWN, goNavigation);
            private function goNavigation(event:MouseEvent):void
                root.gotoAndPlay(1,"Main");

  • Can data be passed to an external web server using the "in-course web browsing" feature in ver. 7?

    Can data be passed to an external web server using the "in-course web browsing" feature in ver. 7? I would like to display a simple web page, and I would like to pass to that web page the answers to all the quiz questions, quiz score, etc. In other words, instead of passing quiz results to a SCORM-compliant LMS like Moodle, I'd like to pass that data to a Drupal Webform using a URL like:
    https://www.example.com/my-drupal-webform?param1=value1&param2=value2...&paramn=valuen
    Is this possible?
    Thanks,
    John

    You have to make sure every step in MOS Document ID 726414.1 that is applicable to your E-Business Suite 12.1.x release is performed. Enabling ASADMIN is just one of the steps. In spite of following all the steps in this Document you continue to get the error when clicking "Generate WSDL", please log a Service Request with Oracle Support.I will check all steps again. Maybe I missed one... Thanks!

  • Dreamweaver CS3 fails when publishing to the web server using WebDAV

    Dreamweaver CS3 fails when publishing to the web server using
    WebDAV
    using an earlier version (7.x/8.x) works fine.
    Does anybody know if there is a solution for this.. This is
    urgent..
    Attempting to call the 1-800-833-6687 number fails with:
    recording, music, rings as though someone will finally answer, but
    gets a few dial tones and connection goes silent..
    Thanks
    J.

    If all of your credentials are correct, Server Name/IP Address, Username, Password, Root Directory and it's still not connecting, I would try toggling the Passive FTP checkbox.
    If you still can't connect in DW, try downloading a third party FTP program like Filezilla (free) and uploading there. If the third party app doesn't work either, there is likely a problem with your credentials and you would need to contact your hosting provider to straighten it out.

  • Some tutorial for Tomcat Web Server

    Hi,
    I would like to know where I can find a downloadble tutorial about
    Tomcat web server.
    I am a begginer in Java technologies and I have a question.
    ,Tomcat web Server works also like App Server? and Can Apache web
    server works together Tomcat app server? and if it possible, How?
    Give me an example, please.
    Thanks a lot,
    ras283

    You can go to apache.org for information.
    Tomcat can work with Apache, but it only serves JSPs and servlets (and static pages, if you don't want to bother with Apache).
    The J2EE Reference Implementation (j2sdkee1.3.1) includes Tomcat, and functions as an app server as well. See the J2EE tutorial http://java.sun.com/j2ee/tutorial/1_3-fcs/index.html and Java Pet Store demo http://interstagedemo.fs.fujitsu.com:8000/petstore/index.jsp / http://java.sun.com/features/2001/12/petstore13.html

  • Resources for implementing HTTP web server using java

    hi ,
    Thanks for giving your precious time in reading the message.I want to build a HTTP web server using java,which will run on my machine and I can communicate with it through web browser(IE) using HTTP requests and response.
    I know java language, but quite new to network programming.I want to gain enough knowledge on network programming in java.Can you please suggest me good books or any other resources available on the internet for the required subject.Any help will be greatly appreciated.
    my email-id is : [email protected]

    hi there my friend,
    I am writing my own web server too. in w3c there is a sample web server called jigsaw-open source :) and simple-
    I do think it worth trying.
    you can contact me if you want to share some source and info. cause I will.
    [email protected]
    but within 2 weeks I will be back for studying for my web server. you have to wait for a while.

Maybe you are looking for

  • Idoc - file (n:1) .

    Hi experts, We have multiple idocs from sender side R/3 system for INVOICE. for example, we have 3 idocs from R/3 side, we received that at XI, now we need to send One XML file for Receiver side (output file) at ftp server for these 3 idocs. For all

  • WCCP bouncing every minute

    We've pair of C7206VXR NPE-G2s that we're trying to upgrade to ASR1004 that talks to pair of WAE7371s. I've attempted twice to upgrade the routers but failed due to "WCCP" bouncing every minute. TAC suggested that I modify the wccp load balacing feat

  • Vertical display in smartform

    hi, How can we display a text or number vertically in smartforms?

  • Odd address when I send email to a contact

    Normally when I address an email to someone in my address book, I start typing their name in the cell marked "To" and it automatically fills in their address. When it's complete, the only thing that appears in the "blue capsule" in the "To" cell is t

  • Are there any User Ristrictions (No. of Users) on Express Editions.

    Express Editions are free to use and deploy. This is great. There are some restrictions 1 Processor, 1 GB Ram, 4 GB Database. This is ok. But is there any restriction on No. of concurrent users? Would like to know before installing 10g XE on Windows