Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

wamp server :How to deploy jsp application

I am newly started using WAMP server. I am unable to deploy my java application on it. only Html pages run. Please help with directory structure and where to keep jsp, java, .class ,war,xml files. JSP code is shown on html page when i click link for jsp.

like image 818
Chava Avatar asked Dec 06 '22 05:12

Chava


2 Answers

I will actually answer your question instead of being a snotty know-it-all.

Yes, you can deply wampserver and Tomcat at the same time on the same computer. By default Wamp binds itself to port 80 which is the default port for the http protocol. I believe Tomcat binds itself to port 8080 so there should be no conflict but if there is, just change Tomcat to 8080 and you can run them both at the same time. If you want something small and easier to work with try Blazix.

Good luck to you.

like image 199
Mr Lee Avatar answered Jan 06 '23 01:01

Mr Lee


WAMP Server is primarily meant for PHP/MySQL Development on Windows and does not support Java/JSP out of the box.(AFAIK) While it would be possible to use the same WAMP installation for configuring it to support JSPs, you would still need a Servlet Container for interpreting your Java/JSP source files. Since you are new to WAMP, it would be more logical to install a different Servlet Container such as Tomcat given below to reduce the time needed to get you up and running.

To deploy JSP applications with minimal configuration/maintenance other than your project specifications, check out Apache Tomcat for Windows.

http://tomcat.apache.org/ - Download Tomcat 6.0(Windows Service)

like image 44
Thiyagaraj Avatar answered Jan 06 '23 03:01

Thiyagaraj