Hi
I have created a web application. I am using ant to build the war and deploy in tomcat.
The war file is deployed under "TOMCATE_HOME/work/standalone/localhost/onlineres.war".
I have my source files in "D:\Sadiq\Projects\Onlineres". The folder structure is as follows.
1) D:\Sadiq\Projects\Onlineres:
This folder is having the context.xml, web.xml, build.xml and build.properties files.
2) D:\Sadiq\Projects\Onlineres\src:
This folder is having the java files
3) D:\Sadiq\Projects\Onlineres\web:
This folder is having the jsp pages, css and java scripts.
After executing the build target in build.xml file, the following folders have been included in D:\Sadiq\Projects\Onlineres.
1) D:\Sadiq\Projects\Onlineres\war\onlineres
This folder is having the jsp pages, css and java scripts etc.
2) D:\Sadiq\Projects\Onlineres\war\onlineres\WEB-INF
This folder is having web.xml and all class files.
3) D:\Sadiq\Projects\Onlineres\war\onlineres\META-INF
This folder is having the context.xml file
I have copied the D:\Sadiq\Projects\Onlineres\war\onlineres folder into "TOMCATE_HOME\webapps".
Now after restarting the server, I try to access the application by the URL "http://localhost:8888/onlineres/index.jsp". Now I got the page not found error. (Note: I have configured the port as 8888 while installing the tomcat)
But I deploy the application using ant, I am able to access the application by the above said URL
Also I have tried using the install target. In this case the "onlineres.war" file is created within the D:\Sadiq\Projects\Onlineres\war\onlineres. In this case the war file is not copied to "TOMCATE_HOME/work/standalone/localhost/onlineres.war". Instead the application is running from the path "D:\Sadiq\Projects\Onlineres\war\onlineres.war ". But once I restarted the application the I am unable to access the application.
What I want to do is as follows.
I would like to run the application without creating the file "onlineres.war". I have the folder "D:\Sadiq\Projects\Onlineres\war\onlineres" after the build target in build.xml is executed using ant. I would like to run the application from this folder.
Whether this is possible? If so what I have to change? Please help.
Thanks in advance.
M. Jahabar Sadiq.