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_HO ME/work/standalone/localhost/onlineres.war".
I have my source files in "D:\Sadiq\Proje cts\Onlineres". The folder structure is as follows.
1) D:\Sadiq\Projec ts\Onlineres:
This folder is having the context.xml, web.xml, build.xml and build.propertie s files.
2) D:\Sadiq\Projec ts\Onlineres\sr c:
This folder is having the java files
3) D:\Sadiq\Projec ts\Onlineres\we b:
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\Projec ts\Onlineres.
1) D:\Sadiq\Projec ts\Onlineres\wa r\onlineres
This folder is having the jsp pages, css and java scripts etc.
2) D:\Sadiq\Projec ts\Onlineres\wa r\onlineres\WEB-INF
This folder is having web.xml and all class files.
3) D:\Sadiq\Projec ts\Onlineres\wa r\onlineres\MET A-INF
This folder is having the context.xml file
I have copied the D:\Sadiq\Projec ts\Onlineres\wa r\onlineres folder into "TOMCATE_HOME\w ebapps".
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\Projec ts\Onlineres\wa r\onlineres. In this case the war file is not copied to "TOMCATE_HO ME/work/standalone/localhost/onlineres.war". Instead the application is running from the path "D:\Sadiq\Proje cts\Onlineres\w ar\onlineres.wa r". 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\Proje cts\Onlineres\w ar\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.
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_HO ME/work/standalone/localhost/onlineres.war".
I have my source files in "D:\Sadiq\Proje cts\Onlineres". The folder structure is as follows.
1) D:\Sadiq\Projec ts\Onlineres:
This folder is having the context.xml, web.xml, build.xml and build.propertie s files.
2) D:\Sadiq\Projec ts\Onlineres\sr c:
This folder is having the java files
3) D:\Sadiq\Projec ts\Onlineres\we b:
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\Projec ts\Onlineres.
1) D:\Sadiq\Projec ts\Onlineres\wa r\onlineres
This folder is having the jsp pages, css and java scripts etc.
2) D:\Sadiq\Projec ts\Onlineres\wa r\onlineres\WEB-INF
This folder is having web.xml and all class files.
3) D:\Sadiq\Projec ts\Onlineres\wa r\onlineres\MET A-INF
This folder is having the context.xml file
I have copied the D:\Sadiq\Projec ts\Onlineres\wa r\onlineres folder into "TOMCATE_HOME\w ebapps".
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\Projec ts\Onlineres\wa r\onlineres. In this case the war file is not copied to "TOMCATE_HO ME/work/standalone/localhost/onlineres.war". Instead the application is running from the path "D:\Sadiq\Proje cts\Onlineres\w ar\onlineres.wa r". 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\Proje cts\Onlineres\w ar\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.
Comment