facebook

Building war file

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #318639 Reply

    distance
    Member

    How do I rename the web context in a struts project?
    How can I automatically war file everytime a run a project on my development
    machine?

    #318662 Reply

    support-joy
    Member

    distance,

    You have not included your OS details and installation details.
    Now to answer your queries –
    To change your web context root do the following – right click on the project > properties > MyEclipse > Web and change the web context-root

    I am afraid we currently do not provide an option to automatically create a war file and deploy. To build war file – right click on the project > Export > JavaEE > War
    You can use build automatically option to automatically deploy your project to your app server(from menu options click on Project > Build automatically). In case build automatically is not selected, right click on your project > build

    #318761 Reply

    distance
    Member

    I was able to change the context-root to project
    from “prj” to prj-revised”. When I run the application
    on server I get http 400
    error? What is that I am missing. Installation summary follows
    ~~~~~~~~~~~~~~~~
    *** Date:
    Monday, August 8, 2011 3:54:30 PM CDT

    ** System properties:
    OS=WindowsVista
    OS version=6.1.0
    Java version=1.6.0_13

    *** MyEclipse details:
    MyEclipse Enterprise Workbench
    Version: 9.1
    Build id: 9.1-20110701

    *** Eclipse details:
    MyEclipse Enterprise Workbench

    Version: 9.1
    Build id: 9.1-20110701

    Eclipse startup command=-os
    win32
    -ws
    win32
    -arch
    x86
    -showsplash
    -launcher
    C:\usr\local\MyEclipse9\MyEclipse 9\myeclipse.exe
    -name
    Myeclipse
    –launcher.library
    C:\usr\local\MyEclipse9\MyEclipse 9\../Common/plugins/org.eclipse.equinox.launcher.i18n.win32.win32.x86_3.2.0.v201103301700\eclipse_3215.dll
    -startup
    C:\usr\local\MyEclipse9\MyEclipse 9\../Common/plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar
    -install
    C:\usr\local\MyEclipse9\MyEclipse 9
    -configuration
    C:\usr\local\MyEclipse9\MyEclipse 9\configuration
    -vm
    C:\usr\local\MyEclipse9\Common\binary\com.sun.java.jdk.win32.x86_1.6.0.013\jre\bin\client\jvm.dll
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    #318799 Reply

    support-joy
    Member

    distance,

    Thank you for the installation details. You seem to be hitting 400 bad request. Please check if you have syntax error. Open your problems tab and look for issues listed. If there are any, right click on the same and click on [quick-fix]. I need to look at your code to see what is the root cause. Clear your .log file located at [your workspace dir]/.metadata/.log, replicate issue and attach the file here. Could you also include screenshot of the issue you see to help me get a visual.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Building war file

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