Tomcat setting

Hi All,
I have database seerver on one system,Tomcat running on other system and my application is on another sytem.
Is it posibble to run it ?
If yes then where i have to make changes.?
I tried to pass IP address of the system that holds application in <host> and <engine> in Tomcat/conf/server.xml but not running.
Does it require some other changes
Help me frnds.
You guys r genius.
thnkx

option 1: make tomcat listen on port 80, then you don't have to specify a portnumber.
option 2: if you already have a regular webserver running on port 80 then you may be able to install a module that will forward JSP and servlet requests to tomcat. Check this page:
http://tomcat.apache.org/tomcat-4.1-doc/config/jk.html

Similar Messages

  • JSP  - Tomcat Setting/Configuration

    Hi, guys..
    I m using Tomcat as the sever environment for running JSP... Normally my JSP files are stored in Tomcat webapp ROOT folder and work well...
    However, this time I need to run some JSP files which are NOT in ROOT folder but other directories (I CANNOT move them to ROOT folder also)... In order to make these JSP pages functional, how do I configure the Tomcat setting? Thanks a lot!
    SD

    Well
    AS they have said, the ROOT is not for putting your files.
    You should know the directory structure of the web-application. But to place your application anywhere in the hard disk and have tomcat load it, its context needs to be included in the server.xml file (located in the conf dir. under $TOMCAT_HOME )
    Use this link for further info
    http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/context.html

  • Tomcat Installation and setting Java Classpath

    Please help me in setting up Java classpath for Tomcat Server. I am unable to start the Server itself.

    try this it worked for me..install Tomcat and Ant in 2 seperate directories, if you are win98 or less edit your autoexec.bat file and set the class paths as follows
    set PATH=C:\jdk1.3\bin;%PATH%
    set ANT_HOME=C:\Ant
    set TOMCAT_HOME=C:\Tomcat
    set JAVA_HOME=C:\jdk1.3
    If you are using windows 2000 or NT you have to goto control panel --> system --> advanced and click environment variables
    for name type in say TOMCAT_HOME and for value type in c:\Tomcat
    restart your computer.
    Then goto tomcat\bin and type startup....in a browser type in http://localhost:8080 and you are in
    hope this helps

  • Issue with starting tomcat in windows for webcenter sites installation

    Hello All,
    I have been trying to install oracle webcenter sites on windows 7, I followed all the steps in the documentation for the configuration and setup. but anytime I start the tomcat using the startup.bat script I get errors as shown below.
    C:\WCS11gR1\tomcat\bin>catalina debug
    Using CATALINA_BASE: "C:\WCS11gR1\tomcat"
    Using CATALINA_HOME: "C:\WCS11gR1\tomcat"
    Using CATALINA_TMPDIR: "C:\WCS11gR1\tomcat\temp"
    Using JAVA_HOME: "C:\Program Files\Java\jdk1.7.0_21"
    Using CLASSPATH: "C:\WCS11gR1\home\bin;C:\Program Files\Java\jdk1.7.0_21\l
    ibtools.jar;;C:\WCS11gR1\tomcat\bin\bootstrap.jar"
    Initializing jdb ...
    runrun org.apache.catalina.startup.Bootstrap start
    java.io.IOException: Cannot run program "C:\Program": CreateProcess error=2, The
    system cannot find the file specified
    at java.lang.ProcessBuilder.start(ProcessBuilder.java:1042)
    at java.lang.Runtime.exec(Runtime.java:615)
    at java.lang.Runtime.exec(Runtime.java:483)
    at com.sun.tools.jdi.AbstractLauncher$Helper.launchAndAccept(AbstractLau
    ncher.java:180)
    at com.sun.tools.jdi.AbstractLauncher.launch(AbstractLauncher.java:132)
    at com.sun.tools.jdi.SunCommandLineLauncher.launch(SunCommandLineLaunche
    r.java:235)
    at com.sun.tools.example.debug.tty.VMConnection.launchTarget(VMConnectio
    n.java:495)
    at com.sun.tools.example.debug.tty.VMConnection.open(VMConnection.java:3
    26)
    at com.sun.tools.example.debug.tty.Commands.commandRun(Commands.java:559
    at com.sun.tools.example.debug.tty.TTY.executeCommand(TTY.java:491)
    at com.sun.tools.example.debug.tty.TTY.<init>(TTY.java:765)
    at com.sun.tools.example.debug.tty.TTY.main(TTY.java:1067)
    Caused by: java.io.IOException: CreateProcess error=2, The system cannot find th
    e file specified
    at java.lang.ProcessImpl.create(Native Method)
    at java.lang.ProcessImpl.<init>(ProcessImpl.java:288)
    at java.lang.ProcessImpl.start(ProcessImpl.java:133)
    at java.lang.ProcessBuilder.start(ProcessBuilder.java:1023)
    ... 11 more
    Fatal error:
    Unable to launch target VM.
    If I run it by clicking on the bat file directory I get this error in my catalina log file below:
    May 27, 2013 5:04:48 PM org.apache.catalina.startup.Catalina start
    SEVERE: Cannot start server. Server instance is not configured.
    Kindly advise me on what to do to resolve this issue.

    Yes I did that all the commands give me error.
    If I use the startup.bat I get a list of errors ending with:
    org.apache.catalina.startup.Catalina start SEVERE: Cannot start server. Server instance is not configured.
    but I have configured the instance using the following settings for windows:
    SET CATALINA_HOME = C:\WCS11gR1\tomcat
    SET CATALINA_BASE = C:\WCS11gR1\tomcat
    SET JAVA_HOME=C:\Program Files\Java\jdk1.7.0_21
    SET JAVA_OPTS=-Xmx1500m
    SET CS_HOME=C:\WCS11gR1\home
    SET CATALINA_OPTS=-XX:MaxPermSize=192m -Dfile.encoding=UTF-8 -Dnet.sf.ehcache.enableShutdownHook=true -Djava.net.preferIPv4Stack=true

  • Validate w/ schema ---Problem setting up JAXP1.2 jar

    Sorry, I may just be being a retard
    I am trying to validate an xml document with a schema. I know that I need to use a JAXP 1.2 parser.
    I am using Eclipse 2.1 right now, but I tried this through the command prompt to see if it was something I was doing specifically in eclipse.
    First, I want to make sure that I have the proper jar.
    Where do I get the JAXP 1.2 jar? The only place that I found it was with the Java Web Services Developer Pack 1.4 release. Is that the correct place to get it?
    Second, if so, what do I need to do to get java to use that jar instead of existing one? From what I read, I just need to put the new jar in the classpath first. Maybe I am doing this worng, please explain what I should be doing.
    Here is the code that I am running. I keep getting the SAXNotRecognizedException that they say you get when you don't have a JAXP 1.2 parser.
    import java.io.*;
    import java.sql.*;
    import javax.xml.parsers.*;
    import org.apache.commons.digester.Digester;
    public class dhq {
       static final String JAXP_SCHEMA_LANGUAGE =
          "http://java.sun.com/xml/jaxp/properties/schemaLanguage";
       static final String W3C_XML_SCHEMA =
          "http://www.w3.org/2001/XMLSchema";
       static final String JAXP_SCHEMA_SOURCE =
          "http://java.sun.com/xml/jaxp/properties/schemaSource";
       static final String DHQWEB_SCHEMA = "dhqweb.xsd";
       static final String DHQWEB_XML = "DHQ.xml";
       public static void main(String[] args) {
          try {
          SAXParserFactory factory =
             SAXParserFactory.newInstance();
          factory.setValidating(true);
          SAXParser parser = factory.newSAXParser();
          parser.setProperty(JAXP_SCHEMA_LANGUAGE, W3C_XML_SCHEMA); //Throws SAXNotRecognizedException here
          parser.setProperty(JAXP_SCHEMA_SOURCE, new File(DHQWEB_SCHEMA));
          Digester d = new Digester(); //Haven't gotten to implementing this yet.
          parser.parse(new FileInputStream(new File(DHQWEB_XML)), d);Thanks in advance for any help, especially for helping with such a newb problem.

    Here is some content from the following install link:
    http://java.sun.com/xml/docs/summer02/jaxp/ReleaseNotes.html#deploy
    Using JAXP 1.2 with the Java Web Services Developer Pack (Java WSDP)
    Again, if you are using the Java WSDP installation process to do the update, then you don't have to worry about the updates. But if you are updating individual jar files, copy them to
    <JWSDP_HOME>/common/endorsed/
    Using JAXP 1.2 with Tomcat version 4.0.3 or 3.3
    First, be sure to remove xerces.jar from
    <TOMCAT_HOME>/common/lib/
    The reason for that step is that xerces.jar contains earlier Xerces implementations which will interfere with the operation of JAXP 1.2.
    The next step depends on which version of the Java 2 SDK you are using:
    For version 1.4 of the Java 2 SDK:
    You need to know that JAXP 1.1 is built into that version of the platform. JAXP 1.1 has a smaller footprint, but JAXP 1.2 implements XML Schema, and it also includes transform compiler, XSLTC.
    To use the JAXP 1.2 implementation instead of the JAXP 1.1 implementation, copy all of the JAR files except jaxp-api.jar to
    <TOMCAT_HOME>/common/lib/
    Then, when running Tomcat, set the java.endorsed.dirs system property to
    <TOMCAT_HOME>/common/lib/
    Note:
    The jaxp-api.jar file should not be copied, because it contains high-level factory APIs that are not subject to change.
    For version 1.3 of the Java 2 SDK:
    Copy all 6 JAR files to
    <TOMCAT_HOME>/common/lib/
    and add that directory to your classpath.
    Using JAXP 1.2 with version 1.4.0 of the Java 2 platform
    Version 1.4 of the Java 2 platform has JAXP 1.1 implementations built in. JAXP 1.1 has a smaller footprint, but JAXP 1.2 implements XML Schema and the transform compiler, XSLTC.
    To use the JAXP 1.2 implementation, copy all of the jar files except jaxp-api.jar into
    <JAVA_HOME>/jre/lib/endorsed/
    Note:
    The jaxp-api.jar file should not be copied, because it contains high-level factory APIs that are not subject to change.

  • Problem in Starting tomcat in new window

    I Have configured tomcat set environment and done all the stuff but while starting tomcat
    Another DOS window breifly opens and closes, (I can
    not read the message in
    that window), and the above window remains open.
    I do not get a new window or anything after this. I
    tried opening my browser
    and typing http://localhost:8080/ in the address
    line, but I get the
    "Cannot find server or DNS Error" from the browser.
    I tried changing the
    port to 80 instead of 8080, but that doesn't work
    either.
    I'd greatly appreciate it if anyone can help get me
    past this issue.

    I would suggest deleting all the log files under tomcat\logs and then try starting it up. When it fails go to the logs folder and look through all the files that were created and see if there is any error message. it should tell you why its not starting properly.
    -S

  • Installing tomcat 3.3.2

    Hi,
    I am new to New to Tomcat. I have downloaded Tomcat3.3.2 and have set the env. Variables in Autoexec.bat (Win98).But i am having a problem in starting the Tomcat (Both from console and from the start icon).Please let me know the solution about the Installation and configuration.
    ================================================
    The env. Variables in Autoexec.bat are:
    ================================================
    set JAVA_HOME=c:\jdk1.2.2
    set TOMCAT_HOME=c:\tomcat
    set TOMCAT_INSTALL=c:\tomcat
    set CATALINA_HOME=c:\tomcat
    ==================================================================
    The following ERRORS are displayed on thge Server Console Screen
    ==================================================================
    java:52)
    at org.apache.tomcat.startup.Main.execute(Main.java:272)
    at org.apache.tomcat.startup.Main.main(Main.java:98)
    Root Exception: org.apache.tomcat.core.TomcatException: EmbededTomcat.initContex
    tManager
    org.apache.tomcat.core.TomcatException: EmbededTomcat.initContextManager
    at org.apache.tomcat.startup.EmbededTomcat.initContextManager(EmbededTom
    cat.java:631)
    at org.apache.tomcat.startup.EmbededTomcat.execute1(EmbededTomcat.java:7
    91)
    at org.apache.tomcat.startup.EmbededTomcat$1.run(EmbededTomcat.java:775)
    at org.apache.tomcat.util.compat.Jdk12Support$PrivilegedProxy.run(Jdk12S
    upport.java:166)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.apache.tomcat.util.compat.Jdk12Support.doPrivileged(Jdk12Support.
    java:76)
    at org.apache.tomcat.startup.EmbededTomcat.execute(EmbededTomcat.java:77
    3)
    at java.lang.reflect.Method.invoke(Native Method)
    at org.apache.tomcat.util.IntrospectionUtils.execute(IntrospectionUtils.
    java:52)
    at org.apache.tomcat.startup.Main.execute(Main.java:272)
    at org.apache.tomcat.startup.Main.main(Main.java:98)
    =====================
    Thanks

    Is there any specific reason to use an old version of Tomcat?

  • "access denied" message on tomcat

    i have downloaded jakarta tomcat, set classpaths etc,
    set JAVA_HOME environment and CATALLINA_HOME environment.
    Catalina connects, but the J2sdk1.4.1_01 reads back in MSDOS
    "access denied".
    I have a personal firewall "Zone Alarm" and do not think it is
    preventing the server from running because i usually get an alert.
    Please advise if there is a work around.
    thanks in advance

    Ok. If anyone is interested, do not attempt to set the
    CATALINA_HOME environment since it appears to default to the
    root directory "." or searches ".." in windows 98. Attempting
    to do it manually by for example, setting the catalina home
    environment in autoexec.bat, will result in you getting
    a bad file command and an "access denied" error message when
    trying to connect to the jdk.

  • Spawning a new browser in hyperlink in java/tomcat

    Post Author: passionlessDrone
    CA Forum: General
    Hello friends -
    I'm going crazy trying to reckon a way to spawn a new browser from a hyperlink field with the java info view / tomcat set up.  Based on some recommendations provided for .NET users, I went ahead and modified viewDHTMLReport.jsp with the following line, diretly after the CrystalReportInteractiveViewer was created:
    viewer1.setHyperlinkTarget("_blank");
    I have confidence this is being called, as I mispelled the function name on my first try and got a 505 returned from Tomcat indicating bad method name, etc.  Tragically, even with a valid method name, the page continues to render 'target="_self" no matter what value is passed in as a hyperlink target.  I have also tried modifiying DHTMLViewer.jsp and ADHTMLViewer.jsp with similar calls directly after the setProductLocale call, but the same results. 
    Is there a chance that processHttpRequest in the Viewer just doesn't pay attention to what gets set in setHyperlinkTarget and will return "_self" no matter what? 
    It also seems a bit naughty that it appears you have to globally set hyperlinks to either spawn new windows or not.
    Any insight or advice is greatly appreciated!
    Take care!
    -pD

    Post Author: passionlessDrone
    CA Forum: General
    Bump.
    Surely someone has either solved this problem or deemed it impossible. 
    Thanks!
    - pD

  • TOMCAT CAN�T FIND BEAN CLASSE

    Hello, i am from Argentina. i need URGENT help with tomcat, because i am developing my final thesis.
    I have all my sources in
    C:\jakarta-tomcat-5.0.16\webapps\tesis
    C:\jakarta-tomcat-5.0.16\webapps\tesis\ (archivos jsp)
    C:\jakarta-tomcat-5.0.16\webapps\tesis\lib
    C:\jakarta-tomcat-5.0.16\webapps\tesis\web-inf\classes\edu\tesis\beans
    C:\jakarta-tomcat-5.0.16\webapps\tesis\web-inf\classes\edu\tesis\queries
    C:\jakarta-tomcat-5.0.16\webapps\tesis\web-inf\classes\fede\servlets
    my problem is that when i execute the login.jsp through the browser in this way
    http://localhost:8080/tesis/login.jsp
    tomcat can�t find the edu.tesis.beans package
    In compiled jsp class i can see this
    package org.apache.jsp;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import javax.servlet.jsp.*;
    import edu.tesis.beans.*;
    so, the problem is that tomcat set package org.apache.jsp; to my jsp, so it can�t find edu.tesis.beans package.
    This is my context path that is in $CATALINA_HOME/conf/server.xml file
    <Context path="/tesis" docBase="C:\tomcat\webapps\tesis"
    debug="9"
    reloadable="true"
    crossContext="true"/>
    This is an extraction of my jsp file
    <html>
    <head>
    <%@page import="edu.tesis.beans.*"%>
    </head>
    <body>
    <jsp:useBean id="universidad" class="edu.tesis.beans.Universidad" scope="request" />
    <form action="servlets/fede.servlets.ServletMaxwell" method="post"><BR><BR><BR><BR>
    PLEASE, I NEED AN URGENT HELP!!!!
    THANKS,
    FEDERICO

    Tampoco te preocupes porque Tomcat cambie el paquete de las p�ginas jsp. Eso es un comportamiento normal. Adem�s nota que el paquete de tu tesis es importado en la clase generada a partir del jsp, o sea que deberia encontrarla si est� en el lugar correcto.
    Otra cosa que veo extra�a en tu estructura de directorios es que existe un directorio "lib" por fuera de WEB-INF. Si este contiene beans en forma de paquetes jar, deberia estar dentro de WEB-INF

  • Can't start Tomcat!  help me!

    Hello all,
    I have used JDK1.3.1; now I download Tomcat, I write a batch file includes:
    set JAVA_HOME=C:\JDK1.3.1
    set ANT_HOME=C:\jakarta-tomcat
    set TOMCAT_HOME=C:\jakarta-tomcat
    set CLASSPATH=%CLASSPATH%;C:\jdk1.3.1\lib\tools.jar;
    and run it;
    now I go to C:\jakarta-tomcat\bin and type 'startup':
    C:\jakarta-tomcat\bin>startup
    Including all jars in C:\jakarta-tomcat\lib in your CLASSPATH.
    Using CLASSPATH: C:\jakarta-tomcat\classes;C:\jakarta-tomcat\lib\ant.jar;C:\jaka
    rta-tomcat\lib\jasper.jar;C:\jakarta-tomcat\lib\jaxp.jar;C:\jakarta-tomcat\lib\p
    arser.jar;C:\jakarta-tomcat\lib\servlet.jar;C:\jakarta-tomcat\lib\webserver.jar;
    ;C:\jdk1.3.1\lib\tools.jar;;C:\JDK1.3.1\lib\tools.jar
    Starting Tomcat in new window
    but the new window disappear after several seconds,Tomcat doesn't start.Then, I type 'tomcat run':
    C:\jakarta-tomcat\bin>tomcat run
    Including all jars in C:\jakarta-tomcat\lib in your CLASSPATH.
    Using CLASSPATH: C:\jakarta-tomcat\classes;C:\jakarta-tomcat\lib\ant.jar;C:\jaka
    rta-tomcat\lib\jasper.jar;C:\jakarta-tomcat\lib\jaxp.jar;C:\jakarta-tomcat\lib\p
    arser.jar;C:\jakarta-tomcat\lib\servlet.jar;C:\jakarta-tomcat\lib\webserver.jar;
    ;C:\jdk1.3.1\lib\tools.jar;;C:\JDK1.3.1\lib\tools.jar
    ERROR reading C:\jakarta-tomcat\conf\server.xml
    At Line 121 /Server/ContextManager/ContextInterceptor/ className=org.apache.tomc
    at.context.LoaderInterceptor
    FATAL: configuration error
    java.lang.ClassNotFoundException: org.apache.tomcat.context.LoaderInterceptor
    at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:120)
    at org.apache.tomcat.util.xml.ObjectCreate.start(XmlMapper.java:453)
    at org.apache.tomcat.util.xml.XmlMapper.matchStart(XmlMapper.java:314)
    at org.apache.tomcat.util.xml.XmlMapper.startElement(XmlMapper.java:68)
    at com.sun.xml.parser.Parser.maybeElement(Parser.java:1390)
    at com.sun.xml.parser.Parser.content(Parser.java:1498)
    at com.sun.xml.parser.Parser.maybeElement(Parser.java:1399)
    at com.sun.xml.parser.Parser.content(Parser.java:1498)
    at com.sun.xml.parser.Parser.maybeElement(Parser.java:1399)
    at com.sun.xml.parser.Parser.parseInternal(Parser.java:491)
    at com.sun.xml.parser.Parser.parse(Parser.java:283)
    at org.apache.tomcat.util.xml.XmlMapper.readXml(XmlMapper.java:198)
    at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:143)
    at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:163)
    C:\jakarta-tomcat\bin>
    What's this problem? How can I do?please help me,
    thanks

    Modify the classpath as follows.
    set JAVA_HOME=C:\JDK1.3.1
    set ANT_HOME=C:\jakarta-tomcat
    set TOMCAT_HOME=C:\jakarta-tomcat
    set CLASSPATH=%CLASSPATH%;C:\jdk1.3.1\lib\tools.jar;JAVA_HOME\lib;
    Modify the Path as follows
    set PATH = %PATH%;%JAVA_HOME%\bin;%TOMCAT_HOME%\bin

  • New  to Tomcat

    Hi,
    I am new to New to Tomcat. I have downloaded Tomcat3.3.2 and have set the env. Variables in Autoexec.bat (Win98).But i am having a problem in starting the Tomcat (Both from console and from the start icon).Please let me know the solution about the Installation and configuration.
    ================================================
    The env. Variables in Autoexec.bat are:
    ================================================
    set JAVA_HOME=c:\jdk1.2.2
    set TOMCAT_HOME=c:\tomcat
    set TOMCAT_INSTALL=c:\tomcat
    set CATALINA_HOME=c:\tomcat
    ==================================================================
    The following ERRORS are displayed on thge Server Console Screen
    ==================================================================
    java:52)
    at org.apache.tomcat.startup.Main.execute(Main.java:272)
    at org.apache.tomcat.startup.Main.main(Main.java:98)
    Root Exception: org.apache.tomcat.core.TomcatException: EmbededTomcat.initContex
    tManager
    org.apache.tomcat.core.TomcatException: EmbededTomcat.initContextManager
    at org.apache.tomcat.startup.EmbededTomcat.initContextManager(EmbededTom
    cat.java:631)
    at org.apache.tomcat.startup.EmbededTomcat.execute1(EmbededTomcat.java:7
    91)
    at org.apache.tomcat.startup.EmbededTomcat$1.run(EmbededTomcat.java:775)
    at org.apache.tomcat.util.compat.Jdk12Support$PrivilegedProxy.run(Jdk12S
    upport.java:166)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.apache.tomcat.util.compat.Jdk12Support.doPrivileged(Jdk12Support.
    java:76)
    at org.apache.tomcat.startup.EmbededTomcat.execute(EmbededTomcat.java:77
    3)
    at java.lang.reflect.Method.invoke(Native Method)
    at org.apache.tomcat.util.IntrospectionUtils.execute(IntrospectionUtils.
    java:52)
    at org.apache.tomcat.startup.Main.execute(Main.java:272)
    at org.apache.tomcat.startup.Main.main(Main.java:98)
    =====================
    Thanks

    Hi evnafets,
    Thanks for your King Assistance and help. Could you please let me know as to How to Configure Tomcat3.2.2 (Step by Step process). As i have ReInstalled Tomcat3.2.2 and i am already Using Jdk1.2.2. So I guess these two go along well But why this is showing the errors.
    Please let me know te produre to Install Tomcat3.2.2.
    Thanks in Advance,
    Parimoj

  • Debugging with Tomcat and Eclipse

    I am using eclipse 3.0 and tomcat 5.5.9 .I am having problems getting this set up in debug mode .
    When I run catalina.bat jpda start it looks like it is listening but when I run eclipse in debug mode I get the
    following error .
    :Failed to connect to remote VM. Connection refused.
    I have set the following paremeters in catalina.bat
    set JAVA_OPTS=-Xdebug -Xnoagent -Xrunjdwp:transport=dt_shmem,server=y,suspend=n,address=5000
    also set up the following parameters as they have suggested in Tomcat .
    set JPDA_TRANSPORT=dt_shmem
    set JPDA_ADDRESS=5000
    Any Ideas .

    Plz Try This
    Set following var as
    JPDA_TRANSPORT="dt_socket"
    JPDA_ADDRESS="9800"
    And for JPDA_ADDRESS u can use any number but in Eclipse while attching debugger
    make sure Port must be same as JPDA_ADDRESS.
    Also use proper Host .
    I think it will work.
    Thanking You

  • JSP session getting destroyed when second user logs in

    Hi,
    I am facing a session related problem in a small login program in jsp. I am using three jsp pages, login.jsp (user logs in), page1.jsp (creates a session and stores username) and page2.jsp (accesses session).
    Login.jsp:
    No jsp actually. Just a simple html form.
    Page1.jsp:
    String name=request.getParameter("Name");
    session=request.getSession(true);
    session.setAttribute("Name",name);
    Page2.jsp:
    session=request.getSession(false);
    if(session.isNew())
    System.out.println("new session created");
    String name=session.getAttribute("Name").toString();
    As expected, it works like session getting set at page1 and used at page2. It works good if users log in one by one. The problem arises when 2 (or more users with different logins) try to access the page at same time. When a new user logs in, the previous user session gets destroyed (session.isNew() becomes true and session Id changes).
    Is it the way I am using sessions (missing something), or there is some setting in tomcat server to specify maximum number of logins (sessions that can be handled).
    Regards
    Kamal

    Hi,
    Thanks for reply, but I guess the problem is not clear. Let me explain..
    A user logs in, he reaches first page (page1.jsp), here session is getting set. Then user goes to page2.jsp where application retrieves the information from session and uses it. It works all well.
    When two (or more) user logs in.. First user logs in, he reaches page 1, session is set. But then another user logs in (different id) and a session is set for him as well. Now the problem here is that session for first user gets destroyed at this point, which is unexpected (two sessions should not conflict, on different machines).
    Additionally, the problem does not happen necessarily at second login. eg. sometimes 4 users log in and when fifth one logs in, fourth gets logged out (session gets destroyed).
    I am not able to figure out, whether the problem is in code (given in first post) or there is some tomcat setting responsible for this behavior.
    Regards
    Kamal

  • Generating reports using RWServlet.class(Patch-12)

    Sir,
    We have configured the Apache Tomcat-3.2.2 to be the servlet engine for generating reports using oracle.reports.rwcgi.RWServlet. Earlier we have been using, Patch-2. We have created many keys(cgicmd.dat) for the different reports that are there with the mostly needed report parameters(including PARAMFORM=YES). We call the report in the browser giving the URL "http://<machine_name>/oraclereports/servlet/oracle.reports.rwcgi.RWServlet?<key_name>". Now, the report page that gets generated is the parameter form. In the HTML source of this page, the form-submitting action is pointing correctly to URL "http://<machine_name>/oraclereports/servlet/oracle.reports.rwcgi.RWServlet.....". The parameter values are entered and the form submitted. The generated report is perfect..
    Some days before, Patch-10 was installed. The RWServlet.class that comes along with this was copied to the oracle/reports/rwcgi folder in Tomcat. Now, when the same steps(calling report) as done before were done, the report is not getting generated, giving the output for no page found. The HTML source of the parameter form shows the form-submitting-action URL as "http://<machine_name>/servlet/oracle.reports.rwcgi.RWServlet.." omitting the "oraclereports" that was there earlier.
    Now, we have installed Patch-12, copied the new RWServlet.class. For this case also, the same problem is now encountered. Now, have we have to do any additional configuration somewhere? The page that is generated, on giving the URL ""http://<machine_name>/oraclereports/servlet/oracle.reports.rwcgi.RWServlet/showenv?server=Rep60_MACHINENAME" is showing the SCRIPT_NAME as "/servlet/oracle.reports.rwcgi.RWServlet". Is it something to do with this? We tried putting SCRIPT_NAME as a user environment variable, and also by giving SET SCRIPT_NAME=/oraclereports. Still, the problem persists. Doesn't the HttpServletRequest class have some method that returns the SCRIPT_NAME, i.e, the path where the execution is being done? How could different versions of the same class oracle.reports.rwcgi.RWServlet deployed with the same settings on the Tomcat servlet engine behave differently? Please help us on how to solve this problem..
    Thank you,
    Regards..
    Ranjith

    Hi,
    Is there some way, i.e., by doing some Tomcat setting changes, that the RWServlet of Patch-10/12 can be made to work like RWServlet of Patch-2(with normal settings)? Please help..
    Thank you,
    Regards..
    Ranjith

Maybe you are looking for

  • Need more storage - larger internal drive, or external drive?

    Good day...here's a little background before I head into my question. I have a mid-2010 Macbook Pro with a 320 GB hard drive.  I have an 2 GB WD External Hard drive...I've partitioned 500 GB that I use for my Time Machine backups and use the remainin

  • Java Developer Exam.

    I'm thinking of taking the Java Developer exam. People who have done the Java Developer exam, could you please contribute with your help by answering these questions ? 1. How long did you program in Java before taking the exam on ? 2. How long did it

  • How can I burn HD movie footage?

    Hi, I need to copy some HD movie footage to disc so that I can free up some space on the harddrive (as it seems that I only have 19.50gb left) but when I go to copy using iDVD I am told that there is insufficient space to record and I need to delete

  • Upgrade iOS 4.2.1 to 5.0

    I received an old iPad with 4.2.1 IOS. Can i upgrade this version to a later version?

  • Deep Freeze for iPad?

    I work at a children's hospital and we are looking for an iPad solution similar to Deep Freeze for PCs. We have used mobile PCs on clumsy carts with Deep Freeze on them so that personal data would be easily wiped. We are looking for something similar