Page 2 of 2 FirstFirst 12
Results 11 to 18 of 18

Thread: Spring Tutorial, Build Failed, http://localhost:8080/manager/list 404 Error

  1. #11
    Join Date
    Apr 2010
    Posts
    18

    Default

    pls set up environment variables properly in both user as well as system.

  2. #12
    Join Date
    Apr 2010
    Posts
    18

    Default

    i am assuming that you are aware of class path concepts and how to set environment variables.

  3. #13
    Join Date
    Mar 2010
    Posts
    10

    Default

    Hi,

    tomcat is running now, I can login as admin and manager. But if I start Tomcat via eclipse, the browser shows an 404 error. Only when I start it by doubleclicking on startup.bat tomcat works...

    ps: the solution to get tomcat running was to set the JAVA_HOME path in the environment variables of my windows 7 x64

  4. #14
    Join Date
    Mar 2010
    Posts
    10

    Default

    deploy and list is successful now:

    Buildfile: C:\Users\Artjom\Desktop\xy\xy\build.xml
    usage:
    [echo] xy build file
    [echo] -----------------------------------
    [echo] Available targets are:
    [echo] build --> Build the application
    [echo] deploy --> Deploy application as directory
    [echo] deploywar --> Deploy application as a WAR file
    [echo] install --> Install application in Tomcat
    [echo] reload --> Reload application in Tomcat
    [echo] start --> Start Tomcat application
    [echo] stop --> Stop Tomcat application
    [echo] list --> List Tomcat applications
    build:
    deploy:
    [copy] Copying 13 files to c:\tomcat\webapps\xy
    list:
    [list] OK - Listed applications for virtual host localhost
    [list] /:running:0:ROOT
    [list] /manager:running:1:manager
    [list] /docs:running:0:docs
    [list] /examples:running:0:examples
    [list] /host-manager:running:0:host-manager
    BUILD SUCCESSFUL
    Total time: 183 milliseconds


    the only thing I did is starting and stopping tomcat via startup.bat/shutdown.bat and not using eclipse for this job.

    thank you for your help

  5. #15
    Join Date
    Mar 2010
    Posts
    10

    Default

    Hi,

    Now I have another build failure:

    Buildfile: C:\Users\Artjom\Desktop\neargear_ids\neargear_ids\ build.xml
    usage:
    [echo] neargear_ids build file
    [echo] -----------------------------------
    [echo] Available targets are:
    [echo] build --> Build the application
    [echo] deploy --> Deploy application as directory
    [echo] deploywar --> Deploy application as a WAR file
    [echo] install --> Install application in Tomcat
    [echo] reload --> Reload application in Tomcat
    [echo] start --> Start Tomcat application
    [echo] stop --> Stop Tomcat application
    [echo] list --> List Tomcat applications
    build:
    [javac] Compiling 1 source file to C:\Users\Artjom\Desktop\neargear_ids\neargear_ids\ war\WEB-INF\classes

    BUILD FAILED
    C:\Users\Artjom\Desktop\neargear_ids\neargear_ids\ build.xml:45: C:\Users\Artjom\Desktop\neargear_ids\neargear_ids\ war\WEB-INF\lib not found.

    Total time: 146 milliseconds


    the only thing I did was extending my project with some libs.



    please help

  6. #16
    Join Date
    Apr 2010
    Posts
    18

    Default

    you need to have required jar files in your war/lib directory. May I suggest you to read the tutorial line by line to avoid confusion. Even a novice user should be able to do it.

  7. #17
    Join Date
    Jun 2008
    Posts
    6

    Default

    In build.xml replace this

    Code:
    <target name="list" description="List Tomcat applications">
            <list url="${tomcat.manager.url}"
                     username="${tomcat.manager.username}"
                     password="${tomcat.manager.password}"/>
        </target>
    with this

    Code:
    <target name="list" description="List Tomcat applications">
            <list url="${tomcat.manager.url}/text"
                     username="${tomcat.manager.username}"
                     password="${tomcat.manager.password}"/>
        </target>

  8. #18
    Join Date
    Nov 2012
    Posts
    1

    Default

    Do post #17! This one works!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •