Remote debugging with Eclipse and WS7

Any idea how I can set this up?
Thanks

Not true. You can do it through Eclipse with settings set in the server.xml <jvm> tag. I know because I asked this quetion a few years ago and implented the information.
Why am I asking again. Well I lost the e-mail with the information (Heh the inbox got full and I dumped old e-mails) Now I'm collecting old tips to keep just in case I run across the problem again. Not every company moves on to the last technology. Some hang on to some out dated stuff.
Thanks for the suggestion I know of NetBeans and think its one of many great IDE tools.

Similar Messages

  • Remote debuging with Eclipse and Sun WebServer 7

    Does any have an Idea how this can be done?
    Thanks

    This is not the right forum for this question. The right forum might be http://forum.java.sun.com/forum.jspa?forumID=759

  • Remote Debugging w/ Eclipse and Weblogic

    Hi,
              I'd like to debug my Servlets/EJB's running on a Weblogic 6.1 SP4. My
              IDE is Eclipse 2.1
              To enable remote debugging I start Weblogic with that additional JVM
              options:
              -classic -Xdebug -Xnoagent
              -Xrunjdwp:transport=dt_socket,address=5000,suspend=y,server=y
              and configured my Remote Application in Eclipse accordingly.
              The connection successes.
              Problem: When I reach my breakpoint, Eclipse pops up an error message:
              "Attempting to install a breakpoint in the type
              com.xxx....
              that has no line number attributes. The breakpoint cannot be
              installed. Class files must be generated with the line number
              attributes.
              Reason:
              Absent Line Number Information"
              I compiled my sources with enabled debug option.
              Any comments and ideas are appreciated.
              Cheers,
              Jan.
              

    Sorry!
              the debug option was NOT enabled (seems that my ant script is too
              complex at this stadium...)
              Cheers,
              Jan.
              [email protected] (Jan-Friedrich Mutter) wrote in message news:<[email protected]>...
              > Hi,
              >
              > I'd like to debug my Servlets/EJB's running on a Weblogic 6.1 SP4. My
              > IDE is Eclipse 2.1
              > To enable remote debugging I start Weblogic with that additional JVM
              > options:
              >
              > -classic -Xdebug -Xnoagent
              > -Xrunjdwp:transport=dt_socket,address=5000,suspend=y,server=y
              >
              > and configured my Remote Application in Eclipse accordingly.
              >
              > The connection successes.
              >
              > Problem: When I reach my breakpoint, Eclipse pops up an error message:
              > "Attempting to install a breakpoint in the type
              > com.xxx....
              > that has no line number attributes. The breakpoint cannot be
              > installed. Class files must be generated with the line number
              > attributes.
              > Reason:
              > Absent Line Number Information"
              >
              > I compiled my sources with enabled debug option.
              >
              > Any comments and ideas are appreciated.
              >
              > Cheers,
              > Jan.
              

  • Remote debugging with APEX and SQL Developer

    Hi,
    I have problems concerning breakpoints within my SQL Packages I want to debug.
    I want to force SQL-Developer to suspend execution of a function, so I can get forward step by step.
    The SQL-Developer do not stop executing at the breakpoints I set in the Package.
    The message I get is the following (on SQL-Developer side):
    Debugger accepted connection from remote process on port 4000.
    Processing 110 classes that have already been prepared...
    Finished processing prepared classes.
    Debugger disconnected from remote process.
    Seems to me, that the process runs into the debug-mode but leave without stopping at a given breakpoint??
    Do anybody have an idea how to solve it?
    We use Oracle 10.2.0.3.0, SQL Developer 1.5.1 and APEX 3.1.2.
    The Package-function I want to debug runs on another Oracle database as the APEX application.
    Thanks in advance
    Regards
    Norbert
    Edited by: Norbert2 on Apr 20, 2009 5:47 AM

    Hi Carsten,
    now I have done a further step. I can debug a remote PL/SQL-Package through APEX, but now I get an exception when the program execution jumps back to the APEX PL/SQL-Package.
    My APEX-Page-Process looks like this:
    BEGIN
      dbms_debug_jdwp.connect_tcp(host => 'IP-ADDRESS', port => '4201');
      APEX_TEST_PKG.remoteDebug;
      dbms_debug_jdwp.disconnect;
    END;The procedure APEX_TEST_PKG.remoteDebug looks like this (located on the APEX-DB):
    PROCEDURE startRemoteDebug
      AS 
        v_string    VARCHAR2(50)   := '';
      BEGIN
        [email protected](host => 'IP-ADDRESS', port => '4000',
                 option_flags => dbms_debug_jdwp.connect_defer_suspension);
        v_string := [email protected];
        DBMS_OUTPUT.PUT_LINE(v_string);
        [email protected];
      END remoteDebug; The procedure REMOTE_TEST_PKG.testFunc looks like this (located on the Remote-DB):
    FUNCTION testFunc RETURN VARCHAR2
      AS 
        v_string    VARCHAR2(50)   := '';
      BEGIN        
        v_string := 'Test';
      RETURN v_string;
    END testFunc; When I start the debug session without the option dbms_debug_jdwp.connect_defer_suspension, I get an exception Oracle.EXCEPTION_ORA_604.
    Starting the debug session with the above mentioned option, I am able to debug the remote function.
    But now I get an exception when the executor tries leaving the remote function going back to the invoking function. With the debugger I can step over the return-statment successfully and the debugger steps on the next line END testFunc;. On this line I get the exception above
    Exception breakpoint occurred at line -1 of PBREAK.pls.
    $Oracle.Builtin.EXCEPTION_USER:
    Exception breakpoint occurred at line -1 of PBREAK.pls.
    $Oracle.Builtin.EXCEPTION_USER: I tried another way where I get now exception and where I can step through my functions in APEX, descending to functions in the remote db and going back to APEX.
    For this case I put the debug-statements in remote function:
    FUNCTION testFunc RETURN VARCHAR2
      AS 
        v_string    VARCHAR2(50)   := '';
      BEGIN        
        dbms_debug_jdwp.connect_tcp(host => 'IP-ADDRESS', port => '4000');
        v_string := 'Test';
        dbms_debug_jdwp.disconnect;  
      RETURN v_string;
    END testFunc; But I have no idea why it doesn't work properly starting the remote debug session in the apex procedure.
    Regards
    Michael
    Edited by: user6044915 on 02.09.2009 04:08
    Edited by: user6044915 on 02.09.2009 04:21
    Edited by: user6044915 on 02.09.2009 04:28

  • Remote Debugging w/Eclipse Transport Error

    I am requesting help on a problem I am encountering using remote debugging with eclipse and Weblogic 8.1.2. I have successfully used remote debugging in the past with other application servers, but I have been unsuccessful with Weblogic 8.1.
    I have set the remote debugging options both on the weblogic start script as well as configured eclipse to connect to the port that was defined in the startup script (See Below). When I start the remote debugger within eclipse and it seems to connect properly. Once I set a break point or remove a break point, weblogic generates a "Transport error, error code = -1" and stops the debugger with in Eclipse.
    At this point I am at a loss of what is causing this error. I would appreciate any help on this issue.
    Operating System: WindowsXP Pro
    Weblogic Version: 8.1.2
    Eclipse 3.2
    JDK 1.4.2
    JAVA_OPTS: =-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=7777,server=y,suspend=n
    Thanks!
    Rafael Salazar

    Interesting. I tried it and it works. you might want to check your Eclipse port number. In addition try netstat -a to see if port 1044 is active.
    This one might also help: http://www.jacoozi.com/index.php?option=com_content&task=view&id=119&Itemid=134
    Let me know if you have any questions.

  • Debugging using Eclipse and non-standalone 10g

    Hey - is it possible to perform remote debugging using Eclipse against the non-standalone version of the 10g App Server? I've tried some of the hints listed in this forum (the most promising seemed to be starting oc4j using this command-line command:
    java -classic -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=2727 -jar oc4j.jar, then connecting with the Eclipse debugger, which I managed to do - though I had to change one of the parameters because the designated file [a timezone file] could not be found - after the change things seemed to start up correctly. However, when I tried to hit http://localhost:2727 I got a "server not found or DNS error"). I don't know if the debugging works with the non-standalone version of 10g or not... or if I should be using some other startup command so hopefully y'all can help :)
    Thanks,
    Scott

    Scott, apparently you have fallen pray of one of the most common misunderstandings of oc4j. Oc4j, namely, Oracle Application Server Container for j2ee, is a COMPLETE j2ee server. It supports http and https by itself. It is also an ejb container and a lot more. It can be used as a standalone or, with a different configuration, integrated into Oracle Application Server as its core component.
    When you use the command "java -jar oc4j.jar ...", you are starting an instance of "standalone oc4j" or "oc4j standalone" as mentioned above, albeit from an OAS installation. In contrast, you can start one instance of Oracle Application Server by "<ORACLE_HOME>/opmn/bin/opmn startall", which will starts, besides several other components, one or several oc4j processes as its oc4j component. This OAS is an HTTP server that takes initial requests and routs the requests that are for OC4J to OC4J server. It may handle some of the requests by itself, or routs other http requests to other components, like mod_plsql. Finally, what we usually called "farm" is a collection of OAS clusters and instances that share the same OAS Infrastructure.
    What I have written is just a tiny mini introduction of the OAS. For starters, oc4j is for use by development and small-medium scale production deployments. Plese take a look at the book "Oracle Application Server Containers for J2EE Standalone User's Guide" and then, "Oracle Application Server Concepts". You can find them by
    1. go to http://otn.oracle.com
    2. select "documentation" pull-down menu and then "application server"
    3. go to the first "view library" or the one suits you.
    4. view the "Oracle Application Server Concepts"
    5. or go to "List of All Books" and you will see all of them!
    Well, the best place to self-teach oc4j is, besides googling with site:oracle.com, the oc4j homepage,
    http://www.oracle.com/technology/tech/java/oc4j/index.html
    The above is written in case you need more information. Now let me come to your specific questions.
    1. how to hit the OC4J instance directly, bypassing an HTTP server entry?Since what you started is an oc4j standalone, it does not make any sense to say "bypassing an HTTP server entry". Oc4j instance itself IS an http server. To access its http service, try
    http://<yourHostNameOrIP>:<httpPort>/<yourAppWebContextRoot>
    where the httpPort and yourAppWebContextRoot can be found in default-web-site.xml or http-web-site.xml. Which one or other web-site.xmls are effective is determined in <OC4J_HOME>/config/server.xml. Here the OC4J_HOME refers to your "C:/OraHome1/j2ee/home".
    2. how to get the HTTP server started via the command-line startup?As said above, you already got an HTTP server running.
    What I suggest for you is to play with oc4j standalone. You can come to OAS later:
    1. download oc4j standalone distribution, "Oracle Containers for J2EE 10g (10.1.3) Developer Preview 3", from here "http://www.oracle.com/technology/software/products/ias/preview.html"
    2. unzip the downloaded file. What you get is basically the same to a part of your existing "C:/OraHome". Go to j2ee/home. Run
    java -Xdebug -Xnoagent -Djava.compiler=none -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=3301 -jar oc4j.jar
    Make sure you are using java 1.4.2 sdk.
    3. "new" your remote debugger from Eclicpse and specify the hostname and port 3301.
    4. http://<yourHost>:8888/
    A further note: to debug jsp's, you can use Jdeveloper that allows you to set debug points directly in a jsp that is running in its embeded oc4j server.

  • Apex 4.1 remote debugging with dbms_debug_jdwp - breakpoints not working

    Hi all,
    I'm using remote debugging with sqldeveloper like described here:
    http://www.oracle.com/webfolder/technetwork/de/community/apex/tipps/remote-debug/index.html
    http://sueharper.blogspot.com/2006/07/remote-debugging-with-sql-developer_13.html
    It works great with my sqldeveloper 3.0 and Apex 4.0.2
    Now i tried the same on two other servers with Apex 4.1
    The debugger is connecting. I can see the connect and diconnect message in the debug windows in the sqldeveloper.
    But the breakpoints are not working.
    Is the debugging working in Apex 4.1 for anyone here?
    Any ideas why the breakpoints are not working?
    BR,
    Björn

    Hi Björn,
    In your APEX application, have you tried updating the URL to include the parameter REMOTE, in order to initiate the remote debug connection? e.g.
    f?p=100:1:&SESSION.::REMOTE::Using the REMOTE parameter cuts out the need to specify debug code surrounding statements in the APEX PL/SQL.
    The steps are as follows:
    1) In SQL Developer, set break points in the the PL/SQL code, and compile using the "Compile for debug" option
    2) Execute the following two grants
    grant DEBUG CONNECT SESSION to <PARSE USER>;
    grant debug on <PROC> to public;  <-- might not need public but just whoever the DAD is running as.5) In SQL Developer, right-click on your connection and select the "Remote Debug..." context menu item. This will launch the "Listen for JPDA" dialog.
    5) Run the APEX Application page containing/activating the code you wish to debug, and update its URL with REMOTE in the debug parameter of the URL, and then hit Enter.
    6) Carry out the action on the page to trigger the breakpoint in your code e.g. submit the page, or click a button on the page, and you should be redirected to the breakpoint in the code in SQL Developer.
    Although I'm running with the latest release of SQL Developer, version 3.2.2 (http://www.oracle.com/technetwork/developer-tools/sql-developer/downloads/index.html), and APEX 4.2, the 'REMOTE' parameter was introduced with our 3.1 release so will also be available for you to use in 4.1.
    Regards,
    Hilary

  • It´s possible to use the "Remote" app with Itunes and a Nokia E72 with Joikuspot installed only? Or I´ll need to buy a modem Wifi?

    It´s possible to use the "Remote" app with Itunes and a Nokia E72 with Joikuspot installed only? Or I´ll need to buy a modem Wifi?
    I was using "remote" with a D-link modem, that works fine at my iPad. But now I´m using only the cell phone as modem 3G, and don´t want to intall a router to put new cables at my notebook.

    What?
    You want to control iTunes on your computer using the Remote app on your iPad?
    And you want to connect the iPad and computer through your Nokia?
    No, this will not work.
    Just create a network with your notebook.

  • Remote debug with gdb

    Can anybody help?
    I try to use remote debug with gdb-5.0 on Solaris8 x86. When I issue "target cisco ..." I get "No such file or directory" message.
    What is the problem.
    Thanks.

    Solved for me
    FlasCC/sdk/usr/bin/g++ -c -g -O0 main.cpp ## additional flags
    FlasCC/sdk/usr/bin/g++ main.o -emit-swf -o main.swf ## additional flags
    changet to
    FlasCC/sdk/usr/bin/g++ -g -O0 main.cpp -emit-swf -o main.swf ## additional flags

  • Remote Server Debugging with Tomcat and Eclipse

    Hi ,
    I am using Tomcat 4.0, Jdk1.3 and eclipse 2.1 ,Windows 2000
    I am trying for past 5 days, Remote Server Debugging.
    But I can't acheive.Please help in this tough situation.
    I have configured Tomcat to run in debug mode by the following steps:
    1) In catalina.bat, SET CATALINA_OPTS=-server -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8000
    2) Then I set the JAVA_HOME AND TOMCAT_HOME in the environment mode.
    3) Then I clicked the startup.bat in the bin directory.
    In Eclipse side , I followed as,
    1) Run/Debug/Remote Java Application/New/
    In the connect tab, I gave host:localhost and port:8000
    2) Then I clicked Debug button.
    I didn't use any plugin.
    But it producing "Failed to connect to Remote VM.Connection refused."
    So I gave host:localhost and port:8080 in eclipse side,
    but this I am getting errorin eclipse side as "Failed to connect to Remote VM".In server side, I am getting error as,
    java.lang.NullPointerException
    at org.apache.catalina.connector.http.HttpResponseStream.checkHead(HttpR
    esponseStream.java:253)
    at org.apache.catalina.connector.http.HttpResponseStream.<init>(HttpResp
    onseStream.java:104)
    at org.apache.catalina.connector.http.HttpResponseImpl.createOutputStrea
    m(HttpResponseImpl.java:220)
    at org.apache.catalina.connector.ResponseBase.getOutputStream(ResponseBa
    se.java:725)
    at org.apache.catalina.connector.ResponseBase.finishResponse(ResponseBas
    e.java:469)
    at org.apache.catalina.connector.HttpResponseBase.finishResponse(HttpRes
    ponseBase.java:236)
    at org.apache.catalina.connector.http.HttpResponseImpl.finishResponse(Ht
    tpResponseImpl.java:288)
    at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcesso
    r.java:1039)
    at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.ja
    va:1107)
    at java.lang.Thread.run(Thread.java:484)
    Please do the needful
    If you have anwser, Please mail to [email protected]

    Well, once you're already using MyEclipse, I have it set up even simpler than that. Go to Window/Preferences/MyEclipse/Application Servers/Tomcat4/Launch and set the launch mode to debug.
    This works if the project is successfully setup as a webproject in MyEclipse.
    My problem is that I have a project that was not developed with MyEclipse and for some reason does not work when I set it up as a web project in MyEclipse. MyEclipse seem to do something funny with it when I establish the project. Now, if I set it up simply as a java project (as oppposed to Web Project) in myEclipse, then MyEclipse does not give me an option of deploying it.
    Any ideas about how I would go about debugging a project that's not set up as a Web Project in my eclipse?

  • Remote Debug in eclipse

    Hello!
    I am new to eclipse...Can someone tell me how to use remote debug? I thought it is done by running "Debug..." after selecting the java file...Sorry for being so ignorant about this...I will really appreciate your help. Thank you.

    You do not have to have a main() method in the application. In fact you can have a breakpoint in any Java component. It just has to be in debugger's scope and it'll get visited.
    Example: Let's say you're rinning a Tomcat app. You can have a breakpoint inside a servlet's doGet() methof and when you invkoke the servlet from Firefox, Eclipse will pause the excution and will bring the debugger perspective up.
    From the article "Eclipse Debug window should automatically pop-up with the stack pointer on your first breakpoint (See Figure 3: Breakpoint hit in Eclipse's debugger). After that, you can use all the various functions that the debugger has to offer, namely variable assignments, step-into, drop to frame, etc."
    If you're not seeining anything, chances are that you're not executing that piece of code. Double check that and let me know.
    Levent Gurses

  • Debugging with Eclipse CDT

    Hi,
    I've successfully configured the CDT to point to Flascc toolchain and it actually produces a 3.0 MB air executable (yay). (Though I don't know how to replase O3 switch with -O4 switch and also don't know how to change the name of the output file to Out.swf in case of -emit-swf. help/hints appreciated)
    I tried to configure flascc gdb with CDT (local app debugging) but failed. Can anyone tell how to configure CDT to debug swf files ? Local, attached or remote debugging, anying please ? I am using Mac OSX.

    I was once able to get FlasCC gdb working within Eclipse on a Mac.  I'm not sure if that will work with an AIR executable.
    These were the rough instructions of how I got debugging setup.  Your mileage may vary and you may need to make some changes based on how your project is setup.
    When debugging using FlasCC GDB you need to set an environment variable called FLASCC_GDB_RUNTIME that points to the application to launch the SWF with. This will either be a standalone Flash Player Debugger or a browser that has a Flash Player Debugger plugin.
    To set this variable in Eclipse:
    Right Click the Project > Properties
    C/C++ Build > Environment
    Click Add
    Name: FLASCC_GDB_RUNTIME
    Value: /Users/path/to/runtimes/player/11.1/mac/Flash Player Debugger.app
    Next create a new debug configuration:
    Click the "Green Bug Button Down Arrow"
    Click Debug Configurations...
    Create a new "C/C++ Attach to Application" configuration
    Set the "C/C++ Application:" field to your SWF using the Browse button
    Select the Debugger tab
    Change the "GDB debugger:" field to point to the gdb in your alchemy build using the Browse button
    Click Debug
    Click New...
    Select the SWF file
    At this point the debugger view should take over and show what appears to be a source not found error. Ignore this error by pressing the green continue button.You should now be broken at main.If you are using Windows you may need to add a path mapping so CDT knows how to map /cygdrive/c/ style paths to native C:/ style paths:
    In your Debug Configuration go to the Source tab
    Click Add...
    Choose Path Mapping and click OK
    Click Add
    Set the Compilation Path to the Cygwin style path to your source drive (/cygdrive/c/)
    Set the Local file system path to the Windows style path to your source drive (C:/)
    Note: Recent versions of Eclipse may have broken this workflow, so you may need to try an older build of Eclipse.
    Note: Debugging is not supported on projector executables, only on SWFs running in the standalone Flash Player Debugger or in a browser that has the Flash Player Debugger installed.

  • JSP Debugging with Eclipse 3.2 WTP

    I am using OC4J 10.1.3 Standalone and the latest version of Eclipse WTP. Has anybody been able to debug JSP pages with this configuration? I have found a few references to getting remote debugging to work using JDeveloper, but nothing regarding WTP.
    I have tried setting the debug <init-param> to class, but the breakpoints are not hit when starting the server in debug mode. I have also set the debug_mode and emit_debuginfo init parameters to true. The development attribute in the orion-web-app element is set to true.
    I have tried starting OC4J using the following command:
    java -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=4000 -jar oc4j.jar
    and then debugging through Eclipse using a Remote Java Application launcher and connecting to port 4000. Again, no breakpoint is hit even though Eclipse does connect ok to port 4000.
    I am trying to debug a simple JSP named index.jsp with a breakpoint on the line <% out.print("Hello, World!"); %>. Nothing fancy.
    Do I need to use the JspOjcCompiler compiler even though I am not using JDeveloper? I was not able to get this compiler to work. It was failing with the _index class not found.
    Thanks,
    Dave

    Hi, I didn't get an email notifying me of a response to this. Just happened to check myself.
              But basically you want to point the weblogic server directly to your workspace (src code) so it can detect a change. THis is from our doc below. You may also write an ant script specific to weblogic that redeploys the app and reloads the xml and prop files without restarting the server.
              1.     Start up your Weblogic domain server (i.e., C:\Domains\devDomain\startWebLogic.cmd).
              2.     Go to url, http://localhost:7001/console and log in (weblogic, weblogic).
              3.     On the left menu, click Deployments, then Lock & Edit button above it, and then the Install button in the main panel.
              4.     Change the location to the web folder in your project workspace (C:\Eclipse\workspace\<projectname>\web) Click Next.
              5.     Leave checked the Install this deployment as an application and click Next.
              6.     Put name for Name of deployment. . From here you can click Finish.
              7.     Click Activate Changes. Then check the deployment box and click Start button and Servicing all requests (in Deployments panel). Then click Yes to start it on the next page
              8.     Enter the URL of the application. This example is
              http://localhost:7001/web/index.htm
              The ?web? was the name of the web folder we deployed from. In the future you could name this something different if deploying from this console so the url?s do not conflict.
              Edited by mwooten77 at 01/18/2007 9:34 AM
              Edited by mwooten77 at 01/18/2007 9:35 AM

  • Remote Debugging in Eclipse

    hi,
    I am using Eclipse3.1 and Tomcat 5.
    While doing remote debugging ,i got a message Failed to connect to remote VM.i searched for forum about this.i got solution but i couldn't rectify this.can any one tell where to insert the line in the tomcat's start.bat ? How to start the tomcat? and remaining settings in Eclipse .I need step by step process.
    my task is to connect to the remote unix server.i dont know how to connect to the server with giving the values of hostname,userid and password .
    Kindly help me ,I spent 2 weeks in this.
    thanking you.

    You need to start the remove VM in debug mode. For that you need to start with following options
    java -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=4000
    Then try connecting to Remote VM with IP/Port number 4000.

  • Cannot make .war file using tomcat with eclipse and ant

    i have made all necesary configuration for deploying application using eclipse and ant for the tomcat server.
    when i start the server by clicking the tomcat icon on eclipse toolbar, the message is prompted that "missing application web.xml and using defaults". i have placed the web.xml file in the web/WEB-INF directory of the source project directory.
    also when i use ant by right-clicking on the build.xml file and choose Run as ant.. the process creates a desired .war file in webapps folder of the tomcat server but that war file does not works.
    where is the error i cannot figure out.
    am attaching the code of build.xml for reference.
    please help.
    build.xml:-
    <project name="BecilCTI" default="compile" basedir=".">
    <property file="build.properties"/>
    <property file="${user.home}/build.properties"/>
    <property name="app.name" value="BecilCTI"/>
    <property name="app.path" value="/${app.name}"/>
    <property name="app.version" value="0.1-dev"/>
    <property name="build.home" value="${basedir}/build"/>
    <property name="catalina.home" value="c:/Tomcat_5.5"/> <!-- UPDATE THIS! -->
    <property name="dist.home" value="${basedir}/dist"/>
    <property name="docs.home" value="${basedir}/docs"/>
    <property name="manager.url" value="http://localhost:8080/manager"/>
    <property name="src.home" value="${basedir}/src"/>
    <property name="web.home" value="${basedir}/web"/>
    <property name="compile.debug" value="true"/>
    <property name="compile.deprecation" value="false"/>
    <property name="compile.optimize" value="true"/>
    <!--<property name="build.compiler" value="org.eclipse.jdt.core.JDTCompilerAdapter"/>-->
    <path id="compile.classpath">
    <!-- Include all elements that Tomcat exposes to applications -->
    <pathelement location="${catalina.home}/common/classes"/>
    <fileset dir="${catalina.home}/common/endorsed">
    <include name="*.jar"/>
    </fileset>
    <fileset dir="${catalina.home}/common/lib">
    <include name="*.jar"/>
    </fileset>
    <pathelement location="${catalina.home}/shared/classes"/>
    <fileset dir="${catalina.home}/shared/lib">
    <include name="*.jar"/>
    </fileset>
    </path>
    <target name="all" depends="clean,compile"
    description="Clean build and dist directories, then compile"/>
    <target name="clean"
    description="Delete old build and dist directories">
         <echo message="Cleaning all dirs."/>
    <delete dir="${build.home}"/>
    <delete dir="${dist.home}"/>
    </target>
    <target name="compile" depends="prepare"
    description="Compile Java sources">
    <!-- Compile Java classes as necessary -->
    <mkdir dir="${build.home}/WEB-INF/classes"/>
    <javac srcdir="${src.home}"
    destdir="${build.home}/WEB-INF/classes"
    debug="${compile.debug}"
    deprecation="${compile.deprecation}"
    optimize="${compile.optimize}">
    <classpath refid="compile.classpath"/>
    </javac>
    <!-- Copy application resources -->
    <copy todir="${build.home}/WEB-INF/classes">
    <fileset dir="${src.home}" excludes="**/*.java"/>
    </copy>
    </target>
    <target name="dist" depends="compile"
    description="Create binary distribution">
    <!-- Copy documentation subdirectories
    <mkdir dir="${dist.home}/docs"/>
    <copy todir="${dist.home}/docs">
    <fileset dir="${docs.home}"/>
    </copy> -->
    <!-- Create application JAR file -->
    <jar jarfile="${catalina.home}/webapps/${app.name}.war"
    basedir="${build.home}"/>
    <!-- Copy additional files to ${dist.home} as necessary -->
    </target>
    <target name="install" depends="compile"
    description="Install application to servlet container">
    <deploy url="${manager.url}"
    username="${manager.username}"
    password="${manager.password}"
    path="${app.path}"
    localWar="file://${build.home}"/>
    </target>
    <target name="list"
    description="List installed applications on servlet container">
    <list url="${manager.url}"
    username="${manager.username}"
    password="${manager.password}"/>
    </target>
    <target name="prepare">
    <!-- Create build directories as needed -->
    <mkdir dir="${build.home}"/>
    <mkdir dir="${build.home}/WEB-INF"/>
    <mkdir dir="${build.home}/WEB-INF/classes"/>
    <!-- Copy static content of this web application -->
    <copy todir="${build.home}">
    <fileset dir="${web.home}"/>
    </copy>
    <mkdir dir="${build.home}/WEB-INF/lib"/>
    </target>
    <target name="reload" depends="compile"
    description="Reload application on servlet container">
    <reload url="${manager.url}"
    username="${manager.username}"
    password="${manager.password}"
    path="${app.path}"/>
    </target>
    <target name="remove"
    description="Remove application on servlet container">
    <undeploy url="${manager.url}"
    username="${manager.username}"
    password="${manager.password}"
    path="${app.path}"/>
    </target>
    </project>

    So is context.xml actually overwriting the settings found in server.xml?I think so. The way I understand it is the the context.xml file saves you from having to edit server.xml. It is preferred for each web app to do its own config, rather than lumping them all together in server.xml.
    And what would be the best way to create the war file? IAt its heart, a WAR is just a zip file with its contents laid out in according to the specification of a web application directory structure.
    So the simplest way to make a war file is to zip up your directory structure with a tool like winzip, and rename it to be myApp.war.
    Regarding ant, I would recommend you take a look through [url http://jakarta.apache.org/tomcat/tomcat-4.1-doc/appdev/index.html
    ]this tutorial. It explains the basics of website layout, configuration and deployment.
    On [url http://jakarta.apache.org/tomcat/tomcat-4.1-doc/appdev/source.html] this page  in particular, it includes a link to a basic ant file that you can use as a starting point.
    Cheers,
    evnafets

Maybe you are looking for