Tomcat do not run HURRY!!

I HAVE SET JAVA_HOME AND CATLINA_HOME BOTH CORRECTLY IN MY WINDOWS XP ENVIRONMENT VARIABLES.
MY STARTUP.BAT RUNS PROPERLY BUT TOMCAT 4.1.29 DO NOT RUN IT OPENS AND THEN ITSELF SHUT DOWNS
I HAVE J2SDK1.4.1
AND I HAVE INCREASED VIRTUAL MEMORY SIZE UP TO 1024 - 2048 MB
PLEASE SUPPORT ME QUICKLY

is there problem of version? i have heard that
tomcat4.1.2x do not run with jdk1.4.x it requires jdk
1.2 or jdk1.3You have heard incorrectly.
or its an virtual memory problem??Without an error it is impossible to tell. As far as I know, Tomcat starts up correctly and is running right now on your machine. Read the logs.
I am not able to
o read the problem(error) b'coz after tomcat window
opens it gets closed itself instantly.What do the logs say?
or do i need to install any pathc? if it is so give
ve me url of that pathc.Look at http://jakarta.apache.org/tomcat/tomcat-4.1-doc/index.html
It has instructions on how to install Tomcat. I have installed Tomcat many times. Following the steps they provide IN ORDER worked 100% of the time. Reading the logs when errors occur also helps in understanding problems.

Similar Messages

  • Tomcat Does not run : catalina_home not defined correctly

    Hello guys
    im having a problem with tomcat4.0. ive installed tomcat-4.0 at c:\jakarta-tomcat-4.0.
    and
    jdk1.3 at :\jdk1.3
    Ive set enviroment variables
    catalina_home = c:\jakarta-tomcat-4.0
    java_home = c:\jdk1.3\bin
    classpath = c:\jdk1.3\lib\tools.jar
    Event then when I run the startup.bat from c:\jakarta-tomcat-4.0\bin it gives error
    The CATALINA_HOME environment variable is not defined correctly
    This environment variable is needed to run this program
    Plz help me in this regard

    You could download the Java Web Services Devloper Pack from this website and install that. It includes Tomcat 4 and does all the configuration for you (at least on Windows) :)

  • Apex Tomcat server is not running

    oracle version :10g
    apex Version :4.0
    OS :unix
    1.database server is working
    2.apex server down
    3.we increased tablespaces
    4.checked locked account also.
    every thing fine .
    but we cannot able to access server we are receving message
    unable to found server
    tomcat is not running .
    can you please help us to run tomcat .
    regards
    r

    I'm assuming that whoever installed the Apex Listener installed it under the Apache Tomcat application server. This isn't officially supported by Oracle, but it does work. You start Tomcat by executing "startup.bat" in its bin directory on Windows or "startup.sh" on Linux or other Unix-like OSes. In Windows, it will keep running as long as the command window is open (but you can minimize it) or I believe there is a way to set it up as a service - I'm not a Windows guru. In *nix, you can add an ampersand to the command to keep it running in background, or set it up to run as a daemon.
    Altogether, you probably need someone to learn more about how to run Tomcat if the person who set it up for you is no longer available. There is plenty of information on-line - just use Google or Bing.

  • Tomcat installation prob: process not running

    Hi,
    I am trying to install Tomcat on a Solaris 9 box. (Am a beginner) Am done with the settings but Tomcat is not running.
    $cd $CATALINA_HOME/bin/
    $startup.sh
    Using CATALINA_BASE: /export/amt/Tomcat/apache-tomcat-4.1.37-LE-jdk1.4
    Using CATALINA_HOME: /export/amt/Tomcat/apache-tomcat-4.1.37-LE-jdk1.4
    Using CATALINA_TMPDIR: /export/amt/Tomcat/apache-tomcat-4.1.37-LE-jdk1.4/temp
    Using CATALINA_OUT: /export/amt/Tomcat/apache-tomcat-4.1.37-LE-jdk1.4/logs/catalina.out
    Using JAVA_HOME: /usr/java
    $ps
    PID TTY      TIME CMD
    *10447 pts/3 0:00 bash*
    *10530 pts/3 0:00 ps*
    Could it be something related to port setting? I have not changed any of the port settings.
    Could somebody tell me how do I determine which port numbers to use?
    Many Thanks (In anticipation),
    AS

    Hi,
    You should ask your question in a Tomcat forum, and not a programming forum.
    Kaj

  • Tomcat server is not running automatically

    Hi BO experts,
    I have installed SAP Business Objects XI 3.1 in my system and noticed that Tomcat server is not running in Central Configuration Manager where the status is "Stopped". If I start manually also it's not starting (In properties, the startup type is - Automatic).
    So I went this path "E:\Program Files\Business Objects\Tomcat55\bin" and double clicked "startup.bat" then I am able to login into Infoview. Could please someone explain that is there any possible way to run Tomcat automatally so that i do not need to start up manually every time?
    Thanks in advance!!

    I'm assuming that whoever installed the Apex Listener installed it under the Apache Tomcat application server. This isn't officially supported by Oracle, but it does work. You start Tomcat by executing "startup.bat" in its bin directory on Windows or "startup.sh" on Linux or other Unix-like OSes. In Windows, it will keep running as long as the command window is open (but you can minimize it) or I believe there is a way to set it up as a service - I'm not a Windows guru. In *nix, you can add an ampersand to the command to keep it running in background, or set it up to run as a daemon.
    Altogether, you probably need someone to learn more about how to run Tomcat if the person who set it up for you is no longer available. There is plenty of information on-line - just use Google or Bing.

  • Tomcat 5.0 not running as a service

    Hey everyone, I'm extremelly new to Java and Tomcat so bare with me. Have tomcat 5.0 running on a Windows Server 2003 machine. Everything seems to be running fine, my servlets are all working. The problem is I use a remote desktop connection to login to the server and work (which is how I started up the tomcat server). When I log off the server, tomcat is shutting down. Anyone know what's going on??
    Thanks,
    Jeremy

    Jeremy,
    This is happening becos the service is only valid for the current logon session...once you logoff, it will be turn off.... One good way is to set it run automatically...
    Go to Control Panel->Administrative Tools->Services....look for your Tomcat service, set it to run Automatically...
    Any probs pls revert

  • Error In Tomcat But Not In WebLogic

              I have a .war file that runs perfectly in WebLogic 7.0. Today I tried to run that
              same .war in Tomcat 4.0.6. Unfortunately, it did not run. I get the following
              error:
              java.lang.IllegalStateException: Cannot forward after response has been committed
              Now, I know what this error means, but I don't know why I would get it when I
              run in Tomcat but not WebLogic. Does WebLogic do something to "insulate" me from
              this error that perhaps Tomcat does not do?
              Aidan
              

              The effect to use <jsp:forward> or RequestDispatcher.forward is different between
              BEA and Tomcat (even Websphere). Weblogic stores the output in a buffer, before
              the buffer reaches the limit, you can call those forward methods without obvious
              problems. Tomcat (and Websphere I ever tested) is not so tolerable. If you have
              send out something via Servlet writer or JSPWriter, or have something like HTML
              tags/text before forwards, chances are big to encounter the exceptions you have.
              So I use more include methods to assemble my JSPs and servlets, for the purpose
              of portability.
              "Aidan Monroe" <[email protected]> wrote:
              >
              >I have a .war file that runs perfectly in WebLogic 7.0. Today I tried
              >to run that
              >same .war in Tomcat 4.0.6. Unfortunately, it did not run. I get the following
              >error:
              >
              >java.lang.IllegalStateException: Cannot forward after response has been
              >committed
              >
              >Now, I know what this error means, but I don't know why I would get it
              >when I
              >run in Tomcat but not WebLogic. Does WebLogic do something to "insulate"
              >me from
              >this error that perhaps Tomcat does not do?
              >
              >Aidan
              >
              

  • Tomcat 6 stop running while Oracle XE runs

    Hi All,
    =========
    My Env:
    Ubuntu 10
    =========
    After a full day's research & work I managed to install Tomcat 6, Cocoon & Java files successfully. The following is my problem.
    I have an existing Oracle XE running with Apex 3.2.
    When I start Tomcat 6 it gets started fine, but in few seconds it stops running and gives the message " Tomcat servlet engine is not running, but pid file exists.". I can stop & start this, or restart this but the same problem happens again after few seconds with the same message ( I know this by checking the status). During this few seconds running I am able to access it via the browser by http://localhost:8180 ( I modified the port from 8080 to 8180). Apex uses port 8080. During this time I don't have any problem with Apex (set to run at start up).
    When I stop the Oracle Database and start Tomcat 6 it works fine, it continues to run perfectly. Again when I start the database, I am unable to access Apex via port 8080 & get the message "can't establish a connection to the server at 127.0.0.1:8080."
    Can anyone please help me?
    Thanks ever so much
    Naushad

    Hi Naushad,
    you probably have missed a setting to migrate the tomcat to port 8180. The behaviour you describe fits to the one I'd expect for a port conflict - either service runs perfectly when he's "alone", but doesn't work if the other one started before.
    You can fix this on both sides. Reconfiguration of the port your EPG hosts your APEX may be a little easier. You just have to login as sys and execute the following block:
    begin
      dbms_xdb.sethttpport(8081);
    end;
    commit;Change the port to whatever value you want.
    To change your Tomcat port configuration, you probably edited the following piece in your server.xml
    <Connector port="8080" protocol="HTTP/1.1"
    ...You'll find other ports used by the Tomcat in that file as well. Make sure you don't have a conflict with some other service.
    I'm running a Tomcat next to XE on Ubuntu 8.04. Since I had to reconfigure the Tomcats default SSL Port (8443 was already used by another web server on that machine), I moved all Tomcat ports from 80XX to 100XX, keeping the EPG on port 8080, and it works fine for me.
    -Udo

  • Java program not running by the Ant

    i have a small java program.
    its a classpath problem.
    cant figure out where is the problem.
    i am running the code via Ant.
    build.xml
    <?xml version="1.0"?>
    <project name="myproject" basedir="." default="all">
        <property name="src.dir"     value="src"/>
         <property name="classes.dir" value="classes"/>
         <property name="lib.dir"     value="C:/tomcat/webapps/axis/WEB-INF/lib"/>
         <property name="runclass" value="TestClient"/>
         <target name="all" depends="clean,compile"/>
         <target name="clean">
            <delete dir="${classes.dir}"/>
        </target>
        <path id="classpath">
            <fileset dir="${lib.dir}" includes="**/*.jar"/>
        </path>
        <target name="compile">
            <mkdir dir="${classes.dir}"/>
         <javac srcdir="${src.dir}"
          destdir="${classes.dir}"
          deprecation="on"
          debug="on">
       <classpath><path refid="classpath"/></classpath>
      </javac>
         </target>
         <target name="run" depends="compile">
       <!-- run the class -->
       <java classname="${runclass}">
            <classpath>
              <pathelement path="${classpath}"/>
              <fileset dir="${lib.dir}">
                <include name="**/*.jar"/>
            </fileset>
              </classpath>
           </java>
      </target>
         </project>i invoked
    ant runand got this
    Buildfile: build.xml
    compile:
    run:
         [java] Could not find TestClient. Make sure you have it in your classpath
         [java]     at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava
    .java:170)
         [java]     at org.apache.tools.ant.taskdefs.Java.run(Java.java:710)
         [java]     at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:178)
         [java]     at org.apache.tools.ant.taskdefs.Java.execute(Java.java:84)
         [java]     at org.apache.tools.ant.UnknownElement.execute(UnknownElement.ja
    va:275)
         [java]     at org.apache.tools.ant.Task.perform(Task.java:364)
         [java]     at org.apache.tools.ant.Target.execute(Target.java:341)
         [java]     at org.apache.tools.ant.Target.performTasks(Target.java:369)
         [java]     at org.apache.tools.ant.Project.executeSortedTargets(Project.jav
    a:1216)
         [java]     at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
         [java]     at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(De
    faultExecutor.java:40)
         [java]     at org.apache.tools.ant.Project.executeTargets(Project.java:1068
         [java]     at org.apache.tools.ant.Main.runBuild(Main.java:668)
         [java]     at org.apache.tools.ant.Main.startAnt(Main.java:187)
         [java]     at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
         [java]     at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
    BUILD SUCCESSFUL
    Total time: 2 secondsso, code is not running......its dfinitely a classpath problem , because error message says "Could not find TestClient. Make sure you have it in your classpat".
    TestClient is the name of main class file.
    not sure whats wrong with this build.xml ? whats wrong in it ?
    one thing , i guess, i did not mention "." , current directory in the build.xml ......is it because of that ?
    i browsed apache manual......To Run a Java program.....first, they are making a JAR file ...and then they are executing the JAR.
    i really, dont need the JAR file......i just want to run it.....thats enough.
    somewhere, i have to do some modification in this buld.xml.......do you have any idea ?
    thank you

    TestClient folder has
    1)src
    2)classes
    3)build.xml
    i have posted the build.xml already.
    now, src folder has TestClient.java
    TestClient.java
    ==================
    import org.apache.axis.client.Call;
    import org.apache.axis.client.Service;
    import javax.xml.namespace.QName;
    public class TestClient {
       public static void main(String [] args) {
         try {
           String endpoint =
               "http://ws.apache.org:5049/axis/services/echo";
           Service  service = new Service();
           Call     call    = (Call) service.createCall();
           call.setTargetEndpointAddress( new java.net.URL(endpoint) );
           call.setOperationName(new QName("http://soapinterop.org/","echoString"));
           String ret = (String) call.invoke( new Object[] { "Hello!" } );
           System.out.println("Sent 'Hello!', got '" + ret + "'");
         } catch (Exception e) {
           System.err.println(e.toString());
    }and i did
    ant runand i got those errors.
    clearly, its not able to run it.
    looked the manual....did not find anything special about java task....still not working.

  • App is not running on server

    Hi,
    My lccs application is not running on server even server is supporting ssl.
    php version on server is 5.2.14.
    i tried to print lccs RTCAccount object on server its giving some fatal error.
    i got response like .....
    Array
        [wrapper_data] => Array
                [headers] => Array
                        [0] => HTTP/1.1 302 Moved Temporarily
                        [1] => Server: Apache-Coyote/1.1
                        [2] => X-Powered-By: Servlet 2.4; JBoss-4.2.1.GA (build: SVNTag=JBoss_4_2_1_GA date=200707131605)/Tomcat-5.5
                        [3] => Expires: Fri, 15 Oct 2010 15:23:37 GMT
                        [4] => Cache-Control: max-age=30
                        [5] => Set-Cookie: Whitcomb-Ident=vatrai:na2-sdk-9b17de0a-2188-4f2e-89b2-9453f6eb6be2; Domain=collaboration.adobelivecycle.com; Path=/vatrai
                        [6] => Location: https://na2.collaboration.adobelivecycle.com/vatrai?mode=xml&accountonly=true&
                        [7] => Content-Language: en-US
                        [8] => Content-Length: 0
                        [9] => Date: Fri, 15 Oct 2010 15:23:06 GMT
                        [10] => HTTP/1.1 200 OK
                        [11] => Server: Apache-Coyote/1.1
                        [12] => Set-Cookie: JSESSIONID=ZubjKocVM3rJinHDTxkN.22; Path=/
                        [13] => Cache-Control: max-age=0
                        [14] => Content-Type: text/xml;charset=UTF-8
                        [15] => Content-Length: 190
                        [16] => Date: Fri, 15 Oct 2010 15:23:08 GMT
                [readbuf] => Resource id #4
        [wrapper_type] => cURL
        [stream_type] => cURL
        [mode] => r
        [unread_bytes] => 0
        [seekable] =>
        [uri] => https://collaboration.adobelivecycle.com/vatrai?mode=xml&accountonly=true&
        [timed_out] =>
        [blocked] => 1
        [eof] =>
    Array
        [0] =>
    Fatal error:  Uncaught exception 'RTCError' in /home/myapp/public_html/videos/lccs.php:707 Stack trace: #0 /home/myapp/public_html/videos/lccs.php(587): RTC->http_get('https://collabo...', Array) #1 /home/myapp/public_html/videos/lccs.php(254): RTCAccount->do_initialize() #2 /home/myapp/public_html/videos/a.php(16): RTCAccount->__construct('https://collabo...') #3 {main}   thrown in
    /home/myapp/public_html/videos/lccs.php on line
    707

    Sorry.... I am pasting here full code of lccs.php...
    <?php
    ** Adobe LiveCycle Collaboration Service Account Management API
    ** Revision
    **   $Revision: #1 $ - $Date: 2010/07/26 $
    ** Author
    **   Raffaele Sena
    ** Copyright
    **   ADOBE SYSTEMS INCORPORATED
    **     Copyright 2007 Adobe Systems Incorporated
    **     All Rights Reserved.
    **   NOTICE: Adobe permits you to use, modify, and distribute this file in accordance with the
    **   terms of the Adobe license agreement accompanying it.  If you have received this file from a
    **   source other than Adobe, then your use, modification, or distribution of it requires the prior
    **   written permission of Adobe.
    * error thrown or generated by RTC API
    class RTCError extends Exception {
    * Constants for common user roles
    interface RTCUserRole {
        const NONE = 0;
        const LOBBY = 5;
        const VIEWER = 10;
        const PUBLISHER = 50;
        const OWNER = 100;
    * Constants for node configuration
    interface NodeConfiguration {
        const STORAGE_SCHEME_SINGLE_ITEM = 0;
        const STORAGE_SCHEME_QUEUE       = 1;
        const STORAGE_SCHEME_MANUAL      = 2;
    * a class that generates RTC authentication tokens
    class RTCAuthenticator {
        private $authURL;
        function __construct($url) {
            $this->authURL = $url;
        // Get an RTC authentication token give login and password.
        function login($user, $password, & $retHeaders) {
            $headers = array (
                "Content-Type" => 'text/xml'
            $data = "<request><username>{$user}</username><password>{$password}</password></request>";
            $resp = RTC::http_post($this->authURL, $data, $headers);
            if (RTC::$DEBUG)
                echo "$resp\n";
            try {
                $result = new SimpleXMLElement($resp);
            } catch (Exception $e) {
                throw new RTCError("bad-response");
            if ($result['status'] == "ok") {
                $auth = $result->authtoken;
                if ($auth['type'] == "COOKIE") {
                    $retHeaders["Cookie"] = (string) $auth;
                    return null;
                } else {
                    $gak = base64_encode($auth);
                    return "gak={$gak}";
            } else
                throw new RTCError($resp);
        // Get a guest authentication token.
        function guestLogin($user) {
            $guk = base64_encode("g:{$user}:");
            return "guk={$guk}";
    * a class that deals with meeting sessions and # external collaboration
    class RTCSession {
        private $instance;
        private $account;
        private $room;
        private $secret;
        function __construct($instance, $account, $room) {
            $this->instance = str_replace("#room#", $room, $instance);
            $this->account = $account;
            $this->room = $room;
         * get an external authentication token
        function getAuthenticationToken($accountSecret, $name, $id, $role) {
            $role = (int) $role;
            if ($role < RTCUserRole::NONE || $role > RTCUserRole::OWNER)
                throw new RTCError("invalid-role");
            $utfname = utf8_encode($name);
            $token = "x:{$utfname}::{$this->account}:{$id}:{$this->room}:{$role}";
            $signature = $this->sign($accountSecret, $token);
            $signed = "{$token}:{$signature}";
            // unencoded
            // $ext = "ext={$signed}";
            // encoded
            $encoded = base64_encode($signed);
            $ext = "exx={$encoded}";
            return $ext;
         * get the userId that the server will generate for this user
        function getUserID($id) {
          return strtoupper("EXT-{$this->account}-{$id}");
        function getSecret($baseURL, $authToken, $authHeaders) {
            $data = RTC::http_get("{$baseURL}app/session?instance={$this->instance}&{$authToken}", $authHeaders);
            if (RTC::$DEBUG)
                echo $data;
            $response = new SimpleXMLElement($data);
            $this->secret = (string) $response-> {
                'session-secret' };
        function invalidate($baseURL, $authToken, $authHeaders) {
            $data = "action=delete&instance={$this->instance}&{$authToken}";
            $res = RTC::http_post("${baseURL}app/session", $data, $authHeaders);
            if (RTC::$DEBUG)
                echo $res;
            $this->instance = null;
            $this->account = null;
            $this->room = null;
            $this->secret = null;
        private function sign($acctSecret, $data) {
            $key = "{$acctSecret}:{$this->secret}";
            // Calculate HMAC-SHA1 according to RFC2104
            // http://www.ietf.org/rfc/rfc2104.txt
            $blocksize = 64;
            $hashfunc = 'sha1';
            if (strlen($key) > $blocksize)
                $key = pack('H*', $hashfunc ($key));
            $key = str_pad($key, $blocksize, chr(0x00));
            $ipad = str_repeat(chr(0x36), $blocksize);
            $opad = str_repeat(chr(0x5c), $blocksize);
            $hmac = pack('H*', $hashfunc (($key ^ $opad) .
            pack('H*', $hashfunc (($key ^ $ipad) . $data))));
            return bin2hex($hmac);
    * A class that contains room or template item information.
    class RTCItem {
        public $name;
        public $desc;
        public $created;
        function __construct($name, $desc, $created) {
            $this->name = $name;
            $this->desc = $desc;
            $this->created = date_create($created);
    * a class that deals with account information and provisioning
    class RTCAccount {
        const ROOM_ITEMS = "meetings";
        const TEMPLATE_ITEMS = "templates";
        public $url;
        private $authToken;
        private $uathHeaders;
        private $authenticator;
        private $baseURL;
        private $contentPath;
        function contentURL() {
            return "{$this->baseURL}app/content{$this->contentPath}";
        function __construct($url) {
            $this->url = $url;
            $this->authToken = null;
            $this->authHeaders = array ();
            $this->authenticator = null;
            $this->baseURL = null;
            $this->contentPath = null;
            $this->roomInstance = null;
            if (RTC::$DEBUG)
                echo RTC::$VERSION . "\n";
            $this->do_initialize();
        // Return the node configuration
        function getNodeConfiguration($room, $coll, $node) {
            $instance = str_replace("#room#", $room, $this->roomInstance);
            $path = "/{$coll}/nodes/{$node}/configuration";
            return RTC::http_get("{$this->baseURL}app/rtc?instance={$instance}&path={$path}&{$this->authToke n}", $this->authHeaders);
        // Return the RTC items given collection and node
        function fetchItems($room, $coll, $node, $items = null) {
            $instance = str_replace("#room#", $room, $this->roomInstance);
            $params = "instance={$instance}&collection=${coll}&node={$node}";
            if ($items != null) {
                if (!is_array($items))
                    $items = array (
                        $items
                while (list ($i, $it) = each($items)) {
                    $params .= "&item={$it}";
            $params .= "&{$this->authToken}";
            return RTC::http_get("{$this->baseURL}app/rtc?{$params}", $this->authHeaders);
        // Publish an item
        function publishItem($room, $collection, $node, $item, $overwrite = false) {
            $headers = array_merge($this->authHeaders, array ( "Content-Type" => 'text/xml' ));
            $instance = str_replace("#room#", $room, $this->roomInstance);
            $params = "instance={$instance}&action=publish&collection={$collection}&node={$node}";
            if ($overwrite) $params .= "&overwrite={$overwrite}";
            $params .= "&{$this->authToken}";
            $data = "<request>" . RTC::array_toXML($item, "item") . "</request>";
            return RTC::http_post("{$this->baseURL}app/rtc?{$params}", $data, $headers);
        // Retract an item
        function retractItem($room, $collection, $node, $itemID) {
            $instance = str_replace("#room#", $room, $this->roomInstance);
            $data = "instance={$instance}&collection={$collection}&node={$node}&item={$itemID}&{$this->authTo ken}";
            return RTC::http_post("{$this->baseURL}app/rtc", $data, $this->authHeaders);
        // Set user role
        function setUserRole($room, $userID, $role, $coll = null, $node = null) {
            $instance = str_replace("#room#", $room, $this->roomInstance);
        $data = "instance={$instance}&action=setrole&user={$userID}&role={$role}";
        if ($coll != null)
            $data .= "&collection={$coll}";
        if ($coll != null)
            $data .= "&node={$node}";
        $data .= "&{$this->authToken}";
            return RTC::http_post("{$this->baseURL}app/rtc", $data, $this->authHeaders);
        // Returns information about the account, if active
        function getAccountInfo() {
            $acctid = explode('/', $this->roomInstance);
            $acctid = $acctid[0];
            $data = RTC::http_get("{$this->baseURL}app/account?account={$acctid}&{$this->authToken}", $this->authHeaders);
            return $data;
        // Returns information about the room/instance, if active
        function getRoomInfo($room) {
            $instance = str_replace("#room#", $room, $this->roomInstance);
            $data = RTC::http_get("{$this->baseURL}app/account?instance={$instance}&{$this->authToken}", $this->authHeaders);
            return $data;
        private function do_initialize() {
            if ($this->contentPath)
                return true;
            $data = RTC::http_get("{$this->url}?mode=xml&accountonly=true&{$this->authToken}", $this->authHeaders);
            if (RTC::$DEBUG)
                echo $data;
            try {
                $xml = new SimpleXMLElement($data);
            } catch (Exception $e) {
                throw new RTCError("bad-response");
            if ($xml->getName() == "meeting-info") {
                $this->baseURL = '' . $xml->baseURL['href'];
                $this->url = rtrim($this->baseURL, '/') . parse_url($this->url, PHP_URL_PATH);
                $this->contentPath = '' . $xml->accountPath['href'];
                if ($xml->room)
                    $this->roomInstance = '' . $xml->room['instance'];
                return true;
            if ($xml->getName() == "result") {
                if ($xml['code'] == "unauthorized") {
                    if ($xml->baseURL) {
                $this->baseURL = '' . $xml->baseURL['href'];
                $this->url = rtrim($this->baseURL, '/') . parse_url($this->url, PHP_URL_PATH);
                    $authURL = '' . $xml->authentication['href'];
                    if (substr($authURL, 0, 1) == '/') {
                        $authURL = $this->baseURL . $authURL;
                    $this->authenticator = new RTCAuthenticator($authURL);
                    return false;
            throw new RTCError($data);
    class RTC {
        public static $DEBUG = false;
        public static $USE_CURL = false;
        public static $VERSION = '$Revision: #1 $ - $Date: 2010/07/26 $';
        function http_get($url, $headers = null) {
            if (RTC::$DEBUG) {
                echo "http_get: {$url}\n";
                if ($headers != null)
                    print_r($headers);
            if (RTC::$USE_CURL) {
                 * use curl library
                $req = curl_init($url);
                //if (RTC::$DEBUG) curl_setopt($req, CURLOPT_VERBOSE, true);
                curl_setopt($req, CURLOPT_RETURNTRANSFER, true);
                curl_setopt($req, CURLOPT_FOLLOWLOCATION, true);
                curl_setopt($req, CURLOPT_SSL_VERIFYPEER, false);
                if ($headers)
                    curl_setopt($req, CURLOPT_HTTPHEADER, $headers);
                $resp = curl_exec($req);
                $error = curl_error($req);
                if ($error == "")
                    $status = curl_getinfo($req, CURLINFO_HTTP_CODE);
                else
                    $status = $error;
                curl_close($req);
                if ($error != "" && $status != 200)
                    throw new RTCError($error);
                else
                    return $resp;
            } else {
                 * use streams
                if ($headers == null)
                    $header = '';
                else {
                    $header = "";
                    foreach ($headers as $name => $value) {
                        if ($header != "")
                            $header .= "\r\n";
                        $header = $header . $name . ": " . $value;
                $opts = array (
                    'http' => array (
                        'method' => 'GET',
                        'header' => $header
                $context = stream_context_create($opts);
                $fp = fopen($url, 'r', false, $context);
                if (!$fp)
                    throw new RTCError("connection-failed");
                $meta = stream_get_meta_data($fp);
                $statusLine = explode(' ', $meta['wrapper_data'][0], 3);
                $resp = stream_get_contents($fp);
                fclose($fp);
               // printf("<pre>%s</pre>", print_r($meta, TRUE));
                //printf("<pre>%s</pre>", print_r($resp, TRUE));
                //printf("<pre>%s</pre>", print_r($statusLine, TRUE));
                if ($statusLine[1] == "200" | $statusLine[1] == "302")
                    return $resp;
                else
                    throw new RTCError($statusLine[1]);
        function http_post($url, $params, $headers = null) {
            if (is_array($params))
                $data = http_build_query($params);
            else
                $data = $params;
            if (RTC::$DEBUG) {
                echo "http_post: {$url} {$data}\n";
                if ($headers != null)
                    print_r($headers);
                if ($root == 'configuration')
                    $result .= '</field>';
                else
                    $result .= '</property>';
            if ($root != null)
                $result .= "</{$root}>";
            return $result;
    if (!isset($_SERVER['QUERY_STRING'])) {
      function usage($progname) {
        echo "usage: {$progname} [--debug] [--host=url] account user password command parameters...\n";
        echo "\n";
        echo "where <command> is:\n";
        echo "    --list\n";
        echo "    --create room [template]\n";
        echo "    --delete room\n";
        echo "    --delete-template template\n";
        echo "    --ext-auth secret room username userid role\n";
        echo "    --invalidate room\n";
        echo "\n";
        echo "    --get-node-configuration room collection node\n";
        echo "    --fetch-items room collection node\n";
        echo "    --register-hook endpoint [token]\n";
        echo "    --unregister-hook\n";
        echo "    --hook-info\n";
        echo "    --subscribe-collection room collection\n";
        echo "    --unsubscribe-collection room collection\n";
        echo "    --create-node room collection [node]\n";
        echo "    --remove-node room collection [node]\n";
        echo "    --set-user-role room userID role [collection [node]]\n";
        echo "    --publish-item room collection node itemID body\n";
        echo "    --retract-item room collection node itemID\n";
        exit(1);
      function getRole($role) {
        $role = strtolower($role);
        if ($role == "none")
          return RTCUserRole::NONE;
        else if ($role == "lobby")
          return RTCUserRole::LOBBY;
        else if ($role == "viewer")
          return RTCUserRole::VIEWER;
        else if ($role == "publisher")
          return RTCUserRole::PUBLISHER;
        else if ($role == "owner")
          return RTCUserRole::OWNER;
        else if (is_numeric($role))
          return intval($role);
        else
          throw new RTCError("invalid-role");
      // running from the command line
      $args = $_SERVER['argv'];
      $progname = array_shift($args);
      $host = "http://connectnow.acrobat.com";
      $accountName = "<YOUR DEVELOPER ACCOUNT NAME>";
      $username = "sdkuser";
      $password = "sdkpassword";
      while (count($args) > 0) {
        $arg = $args[0];
        if ($arg == "--debug")
          RTC::$DEBUG = true;
        else if (strncmp($arg, "--host=", 7) == 0)
          $host = substr($arg, 7);
        else if (strncmp($arg, "-", 1) == 0) {
          echo "invalid option: $arg\n";
          $args = array();
        else
          break;
        array_shift($args);
      if (count($args) < 3) {
        usage($progname);
      $accountName = array_shift($args);
      $username = array_shift($args);
      $password = array_shift($args);
      $host = rtrim($host, '/');
      $accountURL = "{$host}/${accountName}";
      try {
        $am = new RTCAccount($accountURL);
        $am->login($username, $password);
        if (count($args) == 0 || $args[0] == "--list") {
          echo "==== template list for {$accountName} ====\n";
          foreach ($am->listTemplates() as $t) {
            echo "{$t->name}:{$t->created->format(DATE_RFC822)}\n";
          echo "==== room list for {$accountName} ====\n";
          foreach ($am->listRooms() as $r) {
            echo "{$r->name}:{$r->desc}:{$r->created->format(DATE_RFC822)}\n";
        else if ($args[0] == "--create") {
          $am->createRoom($args[1], count($args) > 2 ? $args[2] : null);
        else if ($args[0] == "--delete") {
          $am->deleteRoom($args[1]);
        else if ($args[0] == "--delete-template") {
          $am->deleteTemplate($args[1]);
        else if ($args[0] == "--ext-auth") {
          if (count($args) >= 6)
            $role = getRole($args[5]);
          else
            $role = RTCUserRole::LOBBY;
          $session = $am->getSession($args[2]);
          $token = $session->getAuthenticationToken($args[1], $args[3], $args[4], $role);
          echo $token . "\n";
        else if ($args[0] == "--info") {
          if (count($args) == 1) {
            echo $am->getAccountInfo();
          } else {
            echo $am->getRoomInfo($args[1]);
        else if ($args[0] == "--get-node-configuration") {
          echo $am->getNodeConfiguration($args[1], $args[2], $args[3]);
        else if ($args[0] == "--fetch-items") {
          echo $am->fetchItems($args[1], $args[2], $args[3]);
        else if ($args[0] == "--register-hook") {
          if (count($args) > 2)
            echo $am->registerHook($args[1], $args[2]);
          else
            echo $am->registerHook($args[1]);
        else if ($args[0] == "--unregister-hook") {
          echo $am->unregisterHook();
        else if ($args[0] == "--hook-info") {
          echo $am->getHookInfo();
        else if ($args[0] == "--subscribe-collection") {
          if (count($args) > 3)
            echo $am->subscribeCollection($args[1], $args[2], $args[3]);
          else
            echo $am->subscribeCollection($args[1], $args[2]);
        else if ($args[0] == "--unsubscribe-collection") {
          if (count($args) > 3)
            echo $am->unsubscribeCollection($args[1], $args[2], $args[3]);
          else
            echo $am->unsubscribeCollection($args[1], $args[2]);
        else if ($args[0] == "--publish-item") {
          echo $am->publishItem($args[1], $args[2], $args[3],
            array( 'itemID' => $args[4], 'body' => $args[5] ));
        else if ($args[0] == "--retract-item") {
          echo $am->retractItem($args[1], $args[2], $args[3], $args[4]);
        else if ($args[0] == "--create-node") {
          echo $am->createNode($args[1], $args[2], $args[3]);
        else if ($args[0] == "--remove-node") {
          if (count($args) > 3)
            echo $am->removeNode($args[1], $args[2], $args[3]);
          else
            echo $am->removeNode($args[1], $args[2]);
        else if ($args[0] == "--set-user-role") {
          $role = getRole($args[3]);
          if (count($args) > 5)
            echo $am->setUserRole($args[1], $args[2], $role, $args[4], $args[5]);
          else if (count($args) > 4)
            echo $am->setUserRole($args[1], $args[2], $role, $args[4]);
          else
            echo $am->setUserRole($args[1], $args[2], $role);
        else {
          usage($progname);
      } catch(RTCError $e) {
        echo "Error: {$e}";
    ?>
    Thanks,
    Vishnu

  • How to redirect tomcat's (not in jwsdp) output  to catalina.out

    how to redirect tomcat's (not in jwsdp) output from consolee to catalina.out

    Finally we solve this.
    In startup.bat we've changed string
    call "%EXECUTABLE%" start %CMD_LINE_ARGS%
    to
    call "%EXECUTABLE%" run %CMD_LINE_ARGS% 1>..\logs\catalina.out 2>..\logs\catalina-err.out
    (the above in one string)
    May be someone know something better?

  • Why does my MacBook Pro sometimes restores its RAM when I open it, even though it did not run out of battery?

    Sometimes when I open my MacBook Pro, it restores its RAM, as if it has run out of battery, even though it has not run out of battery and it has been charging. Why does this happen, and should it be happening?

    It's similar to hybernation mode in Windows.
    If you put your laptop to sleep, after X amount of hours it will move to the "deeper" sleep level (save memory to disk and shut down...), to save up battery.
    Otherwise if you left your laptop asleep in the evening, you could wake up to a dead battery. Not a great surprise when you in hurry to leave the house with your laptop...
    You can find our more here

  • Help - Tomcat - Package not found in import

    Error: 500
    Location: /htmltest/login.jsp
    Internal Servlet Error:
    org.apache.jasper.JasperException: Unable to compile C:\jdk1.3.1\jakarta-tomcat-3.3a\work\DEFAULT\htmltest\login_1.java:5: Package usingjsp not found in import.
    import usingjsp.*;
    ^
    1 error
         at org.apache.tomcat.facade.JasperLiaison.javac(Unknown Source)
         at org.apache.tomcat.facade.JasperLiaison.processJspFile(Unknown Source)
         at org.apache.tomcat.facade.JspInterceptor.requestMap(Unknown Source)
         at org.apache.tomcat.core.ContextManager.processRequest(Unknown Source)
         at org.apache.tomcat.core.ContextManager.internalService(Unknown Source)
         at org.apache.tomcat.core.ContextManager.service(Unknown Source)
         at org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Unknown Source)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Unknown Source)
         at java.lang.Thread.run(Thread.java:484)
    Above is the error I encounter when running my JSP and Servlets combination under Tomcat3.3a
    Can anyone pls tell me basically what error is that?
    The path for my package "usingjsp" is c:\jdk13~1.1\jakart~1.3a\webapps\examples\web-inf\classes\usingjsp
    I put my package under that directory because to my knowledge Tomcat requires all servlet to be put under there by default.
    The path for my JSP file is c:\jdk13~1.1\jakart~1.3a\webapps\htmltest.
    NOTE: I had modified the XML file.
    Under that folder there is 2 classes named LoginServlet and UserDataTable.
    Below are my codes:
    1. logintest.html
    <html>
    <body>
    <form action="login.jsp" method="post">
    <table>
    <tr><td>Username: <td><input type="text" name="username">
    <tr><td>Password: <td><input type="password" name="password">
    </table>
    <input type="submit" value="SUBMIT">
    </form>
    </body>
    </html>
    2. login.jsp
    <%@ page language="java" import="java.util.*" %>
    <%@ page import="usingjsp.*" %>
    <html>
    <body bgcolor="#a3355f">
    <%
         String userName = request.getParameter("username");
         String password = request.getParameter("password");
         String userKey = UserDataTable.createUserData();
         Hashtable userData = UserDataTable.getUserData(userKey);
         userData.put("username", userName);
    %>
    <form action="/examples/servlet/LoginServlet" method="post">
    <input type="hidden" name="userKey" value="<%userKey%>">
    <input type="submit" value="SUBMIT">     
    </form>
    </body>
    </html>
    3. LoginServlet.java
    //package usingjsp;
    import javax.servlet.*;
    import java.io.*;
    import java.util.*;
    public class LoginServlet extends GenericServlet {
         public void service(ServletRequest req, ServletResponse res) throws IOException {
              res.setContentType("text/html");
              PrintWriter out = res.getWriter();
              String userKey = req.getParameter("userKey");
              Hashtable userData = new Hashtable();
              UserDataTable temp = new UserDataTable();
              userData = temp.getUserData(userKey);
              if (userData == null) {
                   out.println("<html>");
                   out.println("<body>");
                   out.println("<h1>SORRY<h1>");
                   out.println("</body>");
                   out.println("</html>");
                   return;
              String userName = (String)userData.get("username");
                   out.println("<html>");
                   out.println("<body>");
                   out.println("<h1>" + userName + "<h1>");
                   out.println("</body>");
                   out.println("</html>");
    4. UserDataTable.java
    //package usingjsp;
    import java.util.*;
    public class UserDataTable {
         protected static Hashtable userData = new Hashtable();
         protected static Random keyGenerator = new Random();
         public static String createUserData() {
              String userKey = "" + keyGenerator.nextLong();
              userData.put(userKey, new Hashtable());
              return userKey;
         public static Hashtable getUserData(String userKey) {
              if (userKey == null) return null;
                   return (Hashtable) userData.get(userKey);
         public static void clearUserData(String userKey) {
              if (userKey == null) return;
                   userData.remove(userKey);
    }Pls let me know if you need more info. Thanks!

    1. login.jsp
    <%@ page language="java" import="java.util.*" %>
    <%@ page import="classes.servlets.*" %>
    <html>
    <body bgcolor="#a3355f">
    <%
         String userName = request.getParameter("username");
         String password = request.getParameter("password");
         String userKey = UserDataTable.createUserData();
         Hashtable userData = UserDataTable.getUserData(userKey);
         userData.put("username", userName);
    %>
    <form action="/classes/servlet/LoginServlet" method="post">
    <input type="hidden" name="userKey" value="<%userKey%>">
    <input type="submit" value="SUBMIT">     
    </form>
    </body>
    </html>
    2. UserDataTable.java
    package classes.servlets;
    import java.util.*;
    public class UserDataTable {
         protected static Hashtable userData = new Hashtable();
         protected static Random keyGenerator = new Random();
         public static String createUserData() {
              String userKey = "" + keyGenerator.nextLong();
              userData.put(userKey, new Hashtable());
              return userKey;
         public static Hashtable getUserData(String userKey) {
              if (userKey == null) return null;
                   return (Hashtable) userData.get(userKey);
         public static void clearUserData(String userKey) {
              if (userKey == null) return;
                   userData.remove(userKey);
    3. LoginServlet.java
    package classes.servlets;
    import javax.servlet.*;
    import java.io.*;
    import java.util.*;
    public class LoginServlet extends GenericServlet {
         public void service(ServletRequest req, ServletResponse res) throws IOException {
              res.setContentType("text/html");
              PrintWriter out = res.getWriter();
              String userKey = req.getParameter("userKey");
              Hashtable userData = new Hashtable();
              UserDataTable temp = new UserDataTable();
              userData = temp.getUserData(userKey);
              if (userData == null) {
                   out.println("<html>");
                   out.println("<body>");
                   out.println("<h1>SORRY<h1>");
                   out.println("</body>");
                   out.println("</html>");
                   return;
              String userName = (String)userData.get("username");
                   out.println("<html>");
                   out.println("<body>");
                   out.println("<h1>" + userName + "<h1>");
                   out.println("</body>");
                   out.println("</html>");
    }I had added CLASSPATH=c:\jdk13~1.1\jakart~1.3a\webapps\internet\web-inf into autoexec.bat.
    I had been able to compile UserDataTable.java and LoginServlet.java.
    Path for UserDataTable = c:\jdk13~1.1\jakart~1.3a\webapps\internet\web-inf\classes\servlets\UserDataTable.java
    Path for LoginServlet = c:\jdk13~1.1\jakart~1.3a\webapps\internet\web-inf\classes\servlets\UserDataTable.java
    server.xml<?xml version="1.0" encoding="ISO-8859-1"?>
    <Server>
        <!-- You can add a "home" attribute to represent the "base" for
             all relative paths. If none is set, the TOMCAT_HOME property
             will be used, and if not set "." will be used.
             webapps/, work/ and log/ will be relative to this ( unless
             set explicitely to absolute paths ).
          -->
        <ContextManager workDir="work" >
          <!-- ==================== Global modules ==================== -->
            <LoaderInterceptor11  useApplicationLoader="true" />
            <TrustedLoader />
            <LogSetter name="tc_log" timestamps="true"
                 verbosityLevel="INFORMATION"  />
            <LogEvents enabled="false" />
            <!-- Backward compat: read the Context declarations from server.xml-->
            <ContextXmlReader config="conf/server.xml" />
            <!-- Separated Context -->
            <ContextXmlReader config="conf/apps.xml" />
            <AutoDeploy source="modules" target="modules"
                  redeploy="true" />
            <AutoWebApp dir="modules" host="DEFAULT" trusted="true"/>
            <AutoDeploy source="webapps" target="webapps" />
            <AutoWebApp dir="webapps" host="DEFAULT" />
            <PolicyLoader securityManagerClass="java.lang.SecurityManager"
                    policyFile="conf/tomcat.policy" />
            <SimpleMapper1 />
            <SessionExpirer checkInterval="60" />
            <!-- For development you can use randomClass="java.util.Random" -->
            <SessionIdGenerator randomClass="java.security.SecureRandom"
                                randomFile="/dev/urandom" />
            <!-- ========== context processing modules ========== -->
            <!-- This will be the "default" profile
                 ( all except the "global" modules can be set per context )
              -->
            <LogSetter name="servlet_log"
                 timestamps="true"
                 verbosityLevel = "INFORMATION"
                 path="logs/servlet-${yyyyMMdd}.log"
                 />
            <LogSetter  name="JASPER_LOG"
                 timestamps="true"
                 path="logs/jasper-${yyyyMMdd}.log"
                 verbosityLevel = "INFORMATION"  />
            <WebXmlReader validate="true" />
            <ErrorHandler showDebugInfo="true" />
            <WorkDirSetup cleanWorkDir="false" />
            <Jdk12Interceptor />
            <!-- Non-standard invoker, for backward compat. ( /servlet/* ) -->
            <InvokerInterceptor />
            <!-- you can add javaCompiler="jikes" -->
            <JspInterceptor keepGenerated="true"
                   largeFile="false"
                   useJspServlet="false"
                   />
            <StaticInterceptor listings="true" />
            <ReloadInterceptor fullReload="true" />
            <SimpleSessionStore maxActiveSessions="-1" />
            <AccessInterceptor />
            <CredentialsInterceptor />
            <SimpleRealm  filename="conf/users/global-users.xml" />
           <!-- UnComment the following and comment out the
                above to get a JDBC realm.
                Other options for driverName:
                  driverName="oracle.jdbc.driver.OracleDriver"
                  connectionURL="jdbc:oracle:thin:@ntserver:1521:ORCL"
                  connectionName="scott"
                  connectionPassword="tiger"
                  driverName="org.gjt.mm.mysql.Driver"
                  connectionURL="jdbc:mysql://localhost/authority"
                  connectionName="test"
                  connectionPassword="test"
                "connectionName" and "connectionPassword" are optional.
            -->
            <!--
            <JDBCRealm
                debug="99"
             driverName="sun.jdbc.odbc.JdbcOdbcDriver"
             connectionURL="jdbc:odbc:TOMCAT"
             userTable="users"
                userNameCol="user_name"
                userCredCol="user_pass"
             userRoleTable="user_roles"
                roleNameCol="role_name" />
            -->
            <LoadOnStartupInterceptor />
            <Servlet22Interceptor />
            <!-- Tag pooling support.
                 To enable the reuse of tag handlers as described in
                 the JSP spec, uncomment the following.  If your pages
                 use a lot of custom tags, you should see a nice performance
                 gain.
                 Note that placing the interceptor here will enable
                 Tag pooling for all of the web applicatitions loaded -
                 this may be a bad thing if all tags are not coded to
                 handle reuse. To enable pooling only for specific web
                 applications i.e. Contexts, place the interceptor inside of
                 the Context's definition.
                 To view information about tag usage uncomment the tag
                 LogSetter. Set verbosityLevel to DEBUG to see everytime
                 a tag is obtained and released.
            -->
            <!--
            <LogSetter  name="tag_pool_log" timestamps="true"
                path="logs/tagpool-${yyyyMMdd}.log"
                verbosityLevel="INFORMATION" />
            <TagPoolManagerInterceptor />
            -->
            <!-- Request processing -->
            <DecodeInterceptor />
            <SessionId cookiesFirst="true" noCookies="false" />
            <!-- Automatic config generation
                 Set noRoot="false" if you wish to have Tomcat try to take
                   control of the external web server's root context.
                   Additonal configuration of the external web server may be
                   required for this to be successful.
                 Note: Configuration files are not written as part of the
                   default startup behvior.  Append "jkconf" to the startup
                   command to have Tomcat initialize, write the config files,
                   then exit. This may be done while Tomcat is running.
              -->
            <ApacheConfig noRoot="true" />
            <IISConfig noRoot="true" />
            <NSConfig noRoot="true" />
             <!-- Uncoment for apache-style logs
                  Attributes: logFile, flush, format
            <AccessLogInterceptor/>
              -->
          <!-- ==================== Connectors ==================== -->
           <!-- new http adapter. Attributes:
                   secure - use SSL ( https )
                   keystore, keypass - certs for SSL
                   port
                   reportedname - Server name to send back to browser
                                  by default report Tomcat Web Server ...
                                  set an empty string to avoid sending server header
            -->
            <Http10Connector   port="8080"
                      secure="false"
                      maxThreads="100"
                      maxSpareThreads="50"
                      minSpareThreads="10" />
            <!--
                Uncomment this for SSL support. You _need_ to set up a
                server certificate if you want this to work, and you
                need JSSE. See tomcat-ssl-howto.html for more detailed
                instructions.
                1. Make the JSSE jars available to Tomcat, either by making
                   them an installed extension or by adding them to the
                   Tomcat CLASSPATH.
                2. Do: keytool -genkey -alias tomcat -keyalg RSA
                   RSA is essential to work with Netscape and IIS.
                   Use "changeit" as password. ( or add keypass attribute )
                   You don't need to sign the certificate.
             -->
            <!--
            <Http10Connector  port="8443" secure="true" />
            -->
            <!--
                 JNI connector. It assumes the library is located in
                 TOMCAT_HOME/bin/native/jni_connect.[dll, nlm, so]. or in LD_LIBRARY_PATH.
                 For different paths set "nativeLibrary" parameter.
                 The JniConnector will be self-enable only if JNI mode is detected.
             -->
            <JniConnector />
            <!-- Apache AJP12 support. This is also used to shut down tomcat.
                 Parameter "address" defines network interface this Interceptor
                 "binds" to. Add it if you want to "bind" to just "127.0.0.1".
                 address="127.0.0.1"
                 Parameter "tomcatAuthentication", controls if Tomcat honors
                 ( and uses ) auth done in HTTP Server or not, when true Tomcat does
                 not use in any way auth information provided by the HTTP Server.
                 true is the default.
                 tomcatAuthentication="false"
              -->
            <Ajp12Connector      port="8007" />
            <!-- Apache AJP13 support (mod_jk)
                 Parameter "address" defines network interface this Interceptor
                 "binds" to. Add it if you want to "bind" to just "127.0.0.1".
                 address="127.0.0.1"
                 Parameter "tomcatAuthentication", controls if Tomcat honors
                 ( and uses ) auth done in HTTP Server or not, when true Tomcat does
                 not use in any way auth information provided by the HTTP Server.
                 true is the default.
                 tomcatAuthentication="false"
              -->
            <Ajp13Connector port="8009" />
          <!--
               Context definitions can be placed here ( not recommended ) or
               in separate files. The ContextXmlReader will read all context
               definitions ( you can customize the "base" filename ).
               The default is conf/apps-[name].xml.
               See conf/apps-examples.xml and conf/apps-admin.xml 
           -->
    <Context path="/internet"
    docBase="webapps/internet"
    crossContext="true"
    debug="0"
    reloadable="true"
    trusted="false" >
    </Context>
        </ContextManager>
    </Server>The directory structure is:
    <c:\>
        <jdk13~1.1>
            <jakart~1.3a>
                <webapps>
                    <internet>
                        <jsp>
                        <web-inf>
                            <classes>
                                <servlets>
                                <beans>P/S: Actually, I would want to add c:\jdk13~1.1\jakart~1.3a\webapps into CLASSPATH, so that I can use the package as internet.web-inf.classes.servlet (instead of current version of classes.servlet).
    However, the compiler would not let me compile because it says ";" expected at web-inf (I think the hyphen is not allowed). Is there any other solution?
    Thanks and sorry to bother you again!

  • Servlet does not run

    Hi, I have a servlet which I was developing in my local computer using Tomcat, then I had to upload the servlet in a server which is running Web Logic, I put the name of the serlet and the path of the class of the servlet location and still not running, also some of the libraries that I use in the servlet are already located in the lib directory of the server (WEB-INF\lib), any ideas?, thanks in advance.

    Hi, I asked to the server administrator if they have to restart the server in order to run new servlets and he said that no, these are the entries that I have:
    <servlet>
    <servlet-name>GanttChart</servlet-name>
    <servlet-class>com.gepower.gees.gms.times.GanttChart</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>GanttChart</servlet-name>
    <url-pattern>/servlet/GanttChart</url-pattern>
    </servlet-mapping>
    I don't know what's going wrong, any ideas?, thanks.

  • Firefox often hags with an error message somethng like_Script not complete or still running._I cannot uninstall Firefox with the uninstall program routine inthe control panel and the Mozilla uninstall helper.exe will not run either. How do I uninstall Fi

    Firefox hangs with an error message something like - Script not complete or still running.
    I cannot uninstall Firefox with the uninstall program routine in the Control Panel and the Mozilla uninstall helper.exe program will not run either. How do I completely uninstall Firefox so I can make a clean reload?
    == This happened ==
    Every time Firefox opened
    == Not sure but I think it was after the update

    Thanks for the reply.
    I am very new to these forums (or is it fora?).
    I didn't know there was a Tomcat forum.
    How to I find it.
    Ta much & best regards,
    Pete

Maybe you are looking for

  • Questions about remote control and infrared port Qosmio F20

    Hi again, My Toshiba Qosmio F20 comes with a remote control funcioning through a infrared device on the front of the computer. Regarding this I have 2 questions: 1. How do I configure additonal functionality through the remote control? (Like launchin

  • Load balancing on cookie pattern NOT working

    Hi, I try to configure ACE 4710 LB A5(2.1) LB to do following: 1. client send a http request for login to WEB srv 2. server response and send a cookie Set-Cookie with following pattern JSESSIONID=C333C37FCF083D210A639ABB8BB9DB21.S01 (33 random body 3

  • To find the table name using field name

    Hi, Do we have any transaction code using field name to find out the table name Regards, P.Arunkumar.

  • Photoshop Elements installer

    Hello, I have Adobe Photoshop Elements 8 (Kit Wacom Bamboo Fun Pen & Touch), serial number xxxxxxxxx Yesterday I fell down the stairs and destroyed my computer. I have a new computer and I want to install the program, but do not know how to do it (no

  • What is "KQR M PO" in shared pool

    Hi, I am using oracle version 10.2.0.4. I fired below SQL. select * from ( select pool, name, bytes/1024/1024 bytes from v$sgastat where pool='shared pool' order by 3 desc where rownum < 6; POOL NAME BYTES/1024/1024 shared pool KQR M PO 404.138763 sh