CrazyEngineers Archive
Old, but evergreen and popular discussions on CrazyEngineers, presented to you in read-only mode.
@Ashish Ahuja • 22 Mar, 2013 • 1 like
I have installed xampp v1.8.1 on my laptop and i wanted to run few jsp pages using it. Can anyone please help with instructions on how to do that?
@Kaustubh Katdare • 22 Mar, 2013 • 1 like First make sure tomcat is installed, if not get the addon from:

If required, configure tomcat port number to avoid conflict (should not be required, but better check) -
Look for the following on tomcat install directory -

<Connector port="9000" protocol="org.apache.coyote.http11.Http11AprProtocol"
redirectPort="8443" />
Check User Name and Password for Tomcat

<role rolename="manager"/>
<role rolename="admin"/>
<user username="xampp" password="xampp" roles="admin,manager"/>
Hope this helps.
@Ashish Ahuja • 23 Mar, 2013 Well thanks sir for the reply but the tomcat is already a part of the basic package with this version of xampp. And as per the codes mentioned above , these are as on my machine :

<Connector port="8080" protocol="HTTP/1.1"
              redirectPort="8443" />

  <role rolename="tomcat"/>
  <role rolename="role1"/>
  <user username="tomcat" password="tomcat" roles="tomcat"/>
  <user username="both" password="tomcat" roles="tomcat,role1"/>
  <user username="role1" password="tomcat" roles="role1"/>
Should i change these to the ones mentioned by you? and after I do it, what should i do next to get a jsp page running on my browser window?
@Kaustubh Katdare • 23 Mar, 2013 It'd be difficult to respond without knowing what the error is. Are you getting a blank page or some error?
@Ankita Katdare • 19 Mar, 2014 • 1 like In case, if someone is still looking into this and facing an issue, I hope these step by step process can be of help -

1. Download Apache Tomcat addon here.
2. Extract tomcat addon in Xampp server root directory
3. Go to C://xampp/
4. Stop all services of xampp
5. Open shell and relocate all services
6. Enable mod_jk and relocate
7. Start the services
8. In Xampp control panel you will see the tomcat service. Activate it.
9. Click on admin and enter username and password as xampp and xampp
10. There you go! Open tomcat admin!
@keshav_1994 • 19 Jul, 2014 I m new in making servlet and jsps...

previously i was using tomcat on eclipse now i want to shift it to xampp....

i have changeg the port of tomcat at eclipse nd my tomcat server has been started successfully although i didnt get the 5th point told by miss.ankita to relocate services....

but the problem is i am abe to get :-
1) where to save jsp file (i saved in ht docs nd i did run it using localhost/calc.jsp)
but it is showing me the code on browser rather dan the result of application... and the same application works fine on eclipse...

wat to do?
@Ashish Ahuja • 19 Jul, 2014 In order to run jsp with XAMPP you need to place your .jsp files in the webapps directory of your tomcat folder within your xampp installation folder.


and use the https://localhost:8080/{your_jsp_file_name}
to run your .jsp file.
@crusadersplanet • 21 Jul, 2014 remove comments
<role rolename="tomcat"/>
<role rolename="role1"/>
<user username="tomcat" password="tomcat" roles="tomcat"/>
<user username="both" password="tomcat" roles="tomcat,role1"/>
<user username="role1" password="tomcat" roles="role1"/>

remove <!-- and -->
@janardan kumhar • 30 Aug, 2015 • 1 like No need to change username and password ..
1.) Remove comments <!-- and --> from <tomcat-users>
2.) Start Tomcat
3.) Copy your page or project to xampp/tomcat/webapps/project-1
4.) go to browser .. type .. locahost:8080/project-1
@Karshil Sheth • 26 Jan, 2020

Go to Tomcat and start services. After that in the url it should be  Link Error, Report this to CE Staff and finally you are on. Just place all the jsp files in the proper directory and webapps folder from which its execution starts.


Related Posts

@sisir47 · Sep 24, 2011

Is it a single phase motor or three phase motor and why? I want to know which motor is used in ceiling fan and washing machines and mixer - ac...

@kashmirihasan · Jul 12, 2013

How to make a pure sine wave ups ??? any circuit diagram? and what is the difference between a pure sine wave ups and modified sine wave?

@xheavenlyx · May 9, 2011

On an infinite grid of ideal one ohm resistors, what is the equivalent resistance across the two given points? A clearer image:

@nitishchopra2002 · Jun 27, 2012

hello everyone i am looking to work in cloudsim software for scheduling . i installed jdk and then netbeans , after that i followed this link instructions . I...

@Kaustubh Katdare · Apr 26, 2013

Samsung Galaxy S4 has been launched in Indian markets for a price of Rs. 41,500. People were skeptic about the time-line Samsung would follow to bring the phone to India....