Jim: This process is extremely easy. You highlight the project name on the project view, right click (application key), and choose <export> <war file>. Then you click on <Browse> and get to the <Save> that does not differ from <Save> dialog in MS Word. You can choose any location to save your .WAR file, just remember that location. Then you can deploy your application using Server Admin Console. You login to the console and click on <Web applications>. It will display the list of all your web projects. When you check the project name and click <Deploy> you will be prompted to enter location of the project .WAR file and you can browse to the location where you had store your .WAR file. That's it! What I would like to bring to people's attention is the following interesting dialog. The dialog is below. Anna - You can build a WAR file for deploying by going Exporting the project as a WAR. Should be in File->Export or right click on the project and select Export - True enough. The problem with that is the whole concept of a manual step in what should, in my opinion, be an automated process. I see that as the equivalent in Windows of having the development environment build all object files and stop just short of building the executable, which has to be done manually from a menu. JAR files of any kind (WAR, EAR, etc.) should be build artifacts, not manual selections. - You are looking at it from two different points of view. The build artifacts should be handled by your release engineering process. Which in an enterprise application is typically a series of ANT files that run to do actual deployments from a source code repository. The developer implementation is different, as it assumes that each developer has their own Tomcat or Glassfish testing server they are using, so that is why the Server Adaptors are there. When you click the publish operation on a Server Adaptor it publishes the WAR and other files to that development server. It doesn't create a standard WAR to be deployed, that is what the Export operation is for. Two different use cases. -----Original Message----- From: program-java-bounce@xxxxxxxxxxxxx [mailto:program-java-bounce@xxxxxxxxxxxxx] On Behalf Of Corbett, James Sent: Tuesday, January 13, 2009 9:37 AM To: program-java@xxxxxxxxxxxxx Subject: [program-java] Re: WAR file Anna: Ok, yes the suggestion of exporting the compiled version was correct. I assume that when you did your Export you walked through a number of steps and pages.... If so then with in those steps you will find the export directory.... I suggest that you attempt to export once again and take note of each step. Let us know. j -----Original Message----- From: program-java-bounce@xxxxxxxxxxxxx [mailto:program-java-bounce@xxxxxxxxxxxxx] On Behalf Of Anna Giller Sent: January 13, 2009 09:26 To: program-java@xxxxxxxxxxxxx Subject: [program-java] Re: WAR file Jim: I was advised to use <File> <Export> and export my project as .WAR file. Does it make sense? Thanks, Anna -----Original Message----- From: program-java-bounce@xxxxxxxxxxxxx [mailto:program-java-bounce@xxxxxxxxxxxxx] On Behalf Of Corbett, James Sent: Tuesday, January 13, 2009 7:47 AM To: program-java@xxxxxxxxxxxxx Subject: [program-java] Re: WAR file Anna: I was talking with a team member and he feels that it has something to do with the configuration of Eclipse when you are creating the compiled version. Somewhere there must be a means of directing the file. Jim -----Original Message----- From: program-java-bounce@xxxxxxxxxxxxx [mailto:program-java-bounce@xxxxxxxxxxxxx] On Behalf Of Anna Giller Sent: January 12, 2009 16:15 To: program-java@xxxxxxxxxxxxx Subject: [program-java] Re: WAR file Jim: This folder name is in several locations. Here they are: 1. c:\workspace 2. C:\workspace\.metadata\.plugins\org.eclipse.core.resources\.projects 3. C:\workspace\.metadata\.plugins\org.eclipse.ltk.core.refactoring\.refact orin gs 4. C:\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0 5. C:\Sun\AppServer\domains\domain1\generated\policy 6. C:\Sun\AppServer\domains\domain1\generated\ejb\j2ee-modules 7. C:\Sun\AppServer\domains\domain1\generated\jsp\j2ee-modules 8. C:\Sun\AppServer\domains\domain1\generated\xml\j2ee-modules Thank you, Anna -----Original Message----- From: program-java-bounce@xxxxxxxxxxxxx [mailto:program-java-bounce@xxxxxxxxxxxxx] On Behalf Of Corbett, James Sent: Monday, January 12, 2009 3:30 PM To: program-java@xxxxxxxxxxxxx Subject: [program-java] Re: WAR file Anna: Can you locate the folder myWebApp? j -----Original Message----- From: program-java-bounce@xxxxxxxxxxxxx [mailto:program-java-bounce@xxxxxxxxxxxxx] On Behalf Of Anna Giller Sent: January 12, 2009 15:19 To: program-java@xxxxxxxxxxxxx Subject: [program-java] Re: WAR file Jim: I registered Glassfish with Eclipse using Eclipse Help. .WAR file is not in APPLICATION folder nor anywhere else, I searched my full harddrive. How then Glassfish is able to execute my project? Right now I have Eclipse closed and Glassfish running. I open IE and go to http://localhost:8080/MyWebApp/ The browser correctly displays the first page of the project. Where Glassfish finds the project if .WAR file doesn't exist? Thank you very much, Anna -----Original Message----- From: program-java-bounce@xxxxxxxxxxxxx [mailto:program-java-bounce@xxxxxxxxxxxxx] On Behalf Of Corbett, James Sent: Monday, January 12, 2009 2:20 PM To: program-java@xxxxxxxxxxxxx Subject: [program-java] Re: WAR file Anna: By any chance did you incorporate your Glass Fish server into Eclipse and or did you use the WTP plug in (Web Tools Platform)... Your structure looks similar to my own to a degree.... Have you checked out the application folder? Jim -----Original Message----- From: program-java-bounce@xxxxxxxxxxxxx [mailto:program-java-bounce@xxxxxxxxxxxxx] On Behalf Of Anna Giller Sent: January 12, 2009 14:08 To: program-java@xxxxxxxxxxxxx Subject: [program-java] Re: WAR file Jim: My server is structured as follows: C:\Sun\AppServer\domains\domain1\ Inside /domain1/ there are the following 14 items: Addons Applications Autodeploy Bin Config Docroot Generated Imq java-web-start jbi lib logs session-store master-password If I could find .WAR file I would be able to deploy the application manually by moving .WAR file to AUTODEPLOY folder. But there is no .WAR file. Thank you, Anna -----Original Message----- From: program-java-bounce@xxxxxxxxxxxxx [mailto:program-java-bounce@xxxxxxxxxxxxx] On Behalf Of Corbett, James Sent: Monday, January 12, 2009 10:52 AM To: program-java@xxxxxxxxxxxxx Subject: [program-java] Re: WAR file What was your GlassFish folder structure... j -----Original Message----- From: program-java-bounce@xxxxxxxxxxxxx [mailto:program-java-bounce@xxxxxxxxxxxxx] On Behalf Of Anna Giller Sent: January 12, 2009 10:29 To: program-java@xxxxxxxxxxxxx Subject: [program-java] Re: WAR file Jim: I'm not sure what your question is. I can open my localhost site in the browser and it says that the server is running. Thanks, Anna -----Original Message----- From: program-java-bounce@xxxxxxxxxxxxx [mailto:program-java-bounce@xxxxxxxxxxxxx] On Behalf Of Corbett, James Sent: Monday, January 12, 2009 9:47 AM To: program-java@xxxxxxxxxxxxx Subject: [program-java] Re: WAR file Anna: In second thought, perhaps not.... The server might be a Process but this is getting off topic. What shows up in the web browser that might indicate a source? Jim -----Original Message----- From: program-java-bounce@xxxxxxxxxxxxx [mailto:program-java-bounce@xxxxxxxxxxxxx] On Behalf Of Anna Giller Sent: January 12, 2009 09:41 To: program-java@xxxxxxxxxxxxx Subject: [program-java] Re: WAR file Hi Jim! I did what you suggested. When I start the server it is not shown under Task Manager. Should it be? Thanks, Anna -----Original Message----- From: program-java-bounce@xxxxxxxxxxxxx [mailto:program-java-bounce@xxxxxxxxxxxxx] On Behalf Of Corbett, James Sent: Monday, January 12, 2009 7:34 AM To: program-java@xxxxxxxxxxxxx Subject: [program-java] Re: WAR file Anna: Try accessing the Task Manager: ctrl + alt + Delete.... Then Alt T for Tasks.... Under the Applications tab note what is running.... Then close the TM and run your web service and repeat the steps to view running applications. Jim -----Original Message----- From: program-java-bounce@xxxxxxxxxxxxx [mailto:program-java-bounce@xxxxxxxxxxxxx] On Behalf Of Anna Giller Sent: January 9, 2009 16:25 To: program-java@xxxxxxxxxxxxx Subject: [program-java] Re: WAR file Jim: No I'm not running anything. Thanks, Anna -----Original Message----- From: program-java-bounce@xxxxxxxxxxxxx [mailto:program-java-bounce@xxxxxxxxxxxxx] On Behalf Of Corbett, James Sent: Friday, January 09, 2009 3:34 PM To: program-java@xxxxxxxxxxxxx Subject: [program-java] Re: WAR file In case one, are you running an application? j -----Original Message----- From: program-java-bounce@xxxxxxxxxxxxx [mailto:program-java-bounce@xxxxxxxxxxxxx] On Behalf Of Anna Giller Sent: January 9, 2009 14:58 To: program-java@xxxxxxxxxxxxx Subject: [program-java] Re: WAR file Jim: I run my web application 1 of 2 ways: 1. right click on the project name, select "run as", then choose "run on server". 2. In Internet Explorer I open a location as follows: http://localhost:8080/MyWebProject/ Both this ways brings me to the default index.jsp page. Thanks, Anna -----Original Message----- From: program-java-bounce@xxxxxxxxxxxxx [mailto:program-java-bounce@xxxxxxxxxxxxx] On Behalf Of Corbett, James Sent: Friday, January 09, 2009 2:39 PM To: program-java@xxxxxxxxxxxxx Subject: [program-java] Re: WAR file Anna: Ok, you've compiled it.... You can run it in the server..... How do you run it? Jim -----Original Message----- From: program-java-bounce@xxxxxxxxxxxxx [mailto:program-java-bounce@xxxxxxxxxxxxx] On Behalf Of Anna Giller Sent: January 9, 2009 14:38 To: program-java@xxxxxxxxxxxxx Subject: [program-java] Re: WAR file Jim, My web project with the extension .EAR doesn't exist either. -----Original Message----- From: program-java-bounce@xxxxxxxxxxxxx [mailto:program-java-bounce@xxxxxxxxxxxxx] On Behalf Of Corbett, James Sent: Friday, January 09, 2009 2:31 PM To: program-java@xxxxxxxxxxxxx Subject: [program-java] Re: WAR file Try searching for .ear? j -----Original Message----- From: program-java-bounce@xxxxxxxxxxxxx [mailto:program-java-bounce@xxxxxxxxxxxxx] On Behalf Of Anna Giller Sent: January 9, 2009 14:27 To: program-java@xxxxxxxxxxxxx Subject: [program-java] Re: WAR file Jim: I start Glassfish first. I ran a search again and got 109 build.xml files with quite different locations. Most of them are in c:\sun\sdk\... subfolders. It looks like my web application with the extension .war does not exist. But I found one with the extension .lunch. Is it something relevant? Thank you, Anna -----Original Message----- From: program-java-bounce@xxxxxxxxxxxxx [mailto:program-java-bounce@xxxxxxxxxxxxx] On Behalf Of Corbett, James Sent: Friday, January 09, 2009 2:21 PM To: program-java@xxxxxxxxxxxxx Subject: [program-java] Re: WAR file Do you have to run Glass Fish first, or does the compiling with in Eclipse evoke the session? Jim -----Original Message----- From: program-java-bounce@xxxxxxxxxxxxx [mailto:program-java-bounce@xxxxxxxxxxxxx] On Behalf Of Anna Giller Sent: January 9, 2009 13:47 To: program-java@xxxxxxxxxxxxx Subject: [program-java] Re: WAR file Jim: I did a search (windows key+F) on build.xml and .war files, but got no results. I'm able to execute my web project, so it should be something somewhere. I did not add any plug ins, I'm not even quite sure what it means. My server is structured as follows: C:\Sun\AppServer\domains\domain1\ This folder contains the following 14 items: Addons Applications Autodeploy Bin Config Docroot Generated Imq java-web-start jbi lib logs session-store master-password Thank you, Anna -----Original Message----- From: program-java-bounce@xxxxxxxxxxxxx [mailto:program-java-bounce@xxxxxxxxxxxxx] On Behalf Of Corbett, James Sent: Friday, January 09, 2009 1:31 PM To: program-java@xxxxxxxxxxxxx Subject: [program-java] Re: WAR file I'm using Glassfish server. I'm not 100% sure of the folder structure of the Glass Fish project but there should be a build or .build folder with in... I created an Eclipse dynamic web project and this is how everything got configured. Did you add any plug ins for creating a web package? I did not see any option for WAR file. Where should it be? See above question. Where can I find build.xml file? What are you using for a source repository? If you are using WinCVS then the build.xml file will be in the implementation folder.... Do a search for build.xml using the Windows search utility and while you are at it look for your .war file. j Thank you, Anna -----Original Message----- From: program-java-bounce@xxxxxxxxxxxxx [mailto:program-java-bounce@xxxxxxxxxxxxx] On Behalf Of Corbett, James Sent: Friday, January 09, 2009 12:36 PM To: program-java@xxxxxxxxxxxxx Subject: [program-java] Re: WAR file Anna: 1. Do you have a web server? 2. Do you have a distribution folder? 3. Where does your build.xml file point to? 4. Have you done your initial configuration so as to inform Eclipse that it is now indeed to create .war files in place of .jar files? j -----Original Message----- From: program-java-bounce@xxxxxxxxxxxxx [mailto:program-java-bounce@xxxxxxxxxxxxx] On Behalf Of Anna Giller Sent: January 9, 2009 12:20 To: program-java@xxxxxxxxxxxxx Subject: [program-java] WAR file Hi Everyone! After Eclipse builds a web application, where does it store .WAR file? Thanks in advance, Anna