facebook

Packaged Archive Deployment [Closed]

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #200579 Reply

    When I try to deploy my web application as a .WAR file (Packaged Archive), nothing happens. Is there a log file or something I can look at to see what went wrong? Does this happen to anyone else?

    W2K
    Eclipse 2.1.2
    JDK 1.4.2
    MyEclipse 2.6.4

    #200580 Reply

    Scott Anderson
    Participant

    Hmmm…. The log file is at <workspace-directory>/.metadata/.log. Can you also post your complete configuration information as we request in the ‘Posting Guidelines’ thread? With that and the log we should be able to figure out what’s up.

    –Scott
    MyEclipse Support

    #200592 Reply

    Scott Anderson
    Participant

    Never mind the config info. I saw it in one of your other posts. The log we need though.

    –Scott
    MyEclipse Support

    #200660 Reply

    Here is the contents of the platform.cfg.log file:

    LogEntry.0=START_INSTALL_LOG
    LogEntry.1=ALL_FEATURES_INSTALLED
    LogEntry.2=END_INSTALL_LOG
    eof=eof

    OK

    #200742 Reply

    Scott Anderson
    Participant

    Oops. Sorry, but that’s not the log file I meant. 🙂

    The log file is located at <workspace>/.metadata/.log. It may not be visible in the explorer on windows if you have it set to ‘hide file extensions’.

    When I try to deploy my web application as a .WAR file (Packaged Archive), nothing happens.

    When you say nothing happens, do you mean that your application isn’t deployed, or that it’s not available via the browser? Can you also provide all the configuration information we request in the Posting Guidelines thread at the top of this forum? That often helps us quickly see the issue.

    –Scott
    MyEclipse Support

    #200772 Reply

    @scott wrote:

    Oops. Sorry, but that’s not the log file I meant. 🙂

    The log file is located at <workspace>/.metadata/.log. It may not be visible in the explorer on windows if you have it set to ‘hide file extensions’.

    Gotcha. . .here is the contents of .log:

    !SESSION Dec 12, 2003 11:03:17.906 ———————————————
    java.version=1.4.2
    java.vendor=Sun Microsystems Inc.
    BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
    Command-line arguments: -os win32 -ws win32 -arch x86 -install file:C:/eclipse/
    !ENTRY com.genuitec.eclipse.ast.deploy.core 1 1 Dec 12, 2003 11:03:17.906
    !MESSAGE Build Exception
    !STACK 0
    Deployment descriptor: C:\development\workspace\communitylist-WAR\Web-Content\WEB-INF\web.xml does not exist.
    at org.apache.tools.ant.taskdefs.War.setWebxml(War.java:121)
    at com.genuitec.eclipse.ast.deploy.ant.J2EEArchiveDeployer.privExportWebProject(Unknown Source)
    at com.genuitec.eclipse.ast.deploy.ant.J2EEArchiveDeployer.exportWebProject(Unknown Source)
    at com.genuitec.eclipse.ast.deploy.core.DeploymentPackager.exportWebProject(Unknown Source)
    at com.genuitec.eclipse.ast.deploy.core.WebDeployment.deployAsPackageArchive(Unknown Source)
    at com.genuitec.eclipse.ast.deploy.core.Deployment.deploy(Unknown Source)
    at com.genuitec.eclipse.ast.deploy.core.ui.wizard.NewDeploymentWizard$1.run(Unknown Source)
    at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:101)

    When you say nothing happens, do you mean that your application isn’t deployed, or that it’s not available via the browser?

    The .war file never gets created in the <tomcat>/webapps folder.

    #200773 Reply

    Scott Anderson
    Participant

    Deployment descriptor: C:\development\workspace\communitylist-WAR\Web-Content\WEB-INF\web.xml does not exist.

    This looks like the culprit. It appears that your web project isn’t deployable because it lacks a web.xml file. That’s really odd since we put one in there when we create web projects. In any case, until you have a valid one, this things is going nowhere. 🙂

    I’ve entered a bug report to get a better error message, like one that doesn’t require reading the log.

    –Scott
    MyEclipse Support

    #200776 Reply

    Never mind. . .after actually reading that .log file, I notice the line that reads:

    Deployment descriptor: C:\development\workspace\communitylist-WAR\Web-Content\WEB-INF\web.xml does not exist.

    Once I added a generic web.xml file, it deployed just fine. Thanks for your responses! Keep up the great work.

    #200780 Reply

    Not sure why Eclipse didn’t create the web.xml file for me automatically. Oh well. . .

Viewing 9 posts - 1 through 9 (of 9 total)
Reply To: Packaged Archive Deployment [Closed]

You must be logged in to post in the forum log in