pls set up environment variables properly in both user as well as system.
pls set up environment variables properly in both user as well as system.
i am assuming that you are aware of class path concepts and how to set environment variables.
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
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
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
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.
In build.xml replace this
with thisCode:<target name="list" description="List Tomcat applications"> <list url="${tomcat.manager.url}" username="${tomcat.manager.username}" password="${tomcat.manager.password}"/> </target>
Code:<target name="list" description="List Tomcat applications"> <list url="${tomcat.manager.url}/text" username="${tomcat.manager.username}" password="${tomcat.manager.password}"/> </target>
Do post #17! This one works!