Showing posts with label tomcat. Show all posts
Showing posts with label tomcat. Show all posts

Friday, March 13, 2015

Tomcat connector in failed state (5 of 285 technotes for 2015)

While running the basic web application using Spring Boot and embedded Tomcat, I am getting the error Tomcat Connector in failed state. 

The problem is resolved once the default port is changed from 8080 to 8181


java -jar target/gs-serving-web-content-0.1.0.jar –server.port=8181


Solution found from:

http://stackoverflow.com/questions/20735205/launching-spring-application-address-already-in-use

Saturday, February 28, 2015

How to Configure Tomcat 7 Eclipse Luna IDE for JEE Developers

Step 1. Install Java 

image

Step 2. Download Tomcat from web site to a location where you want to install Tomcat. for eg: C:xxxxapache-tomcat-7.0.57

Step 3. Create environment variables 

JAVA_HOME=C:Program FilesJavajdk1.8.0_25

JRE_HOME=C:Program FilesJavajre1.8.0_25

Step 4. Download eclipse and unzip at a proper location C:xxxxeclipse-jee-luna-R-win32-x86_64

image

Step 5: Follow the remaining steps below to configure tomcat in eclipse

image
image
image

Double click on the server and select the server location -> to use Tomcat installation.

image


Step 6. Configure Users and Groups for Tomcat

Open tomcat-users.xml file under C:xxxxapache-tomcat-7.0.57conf and add the user and the roles.

 <role rolename=“manager-gui”/>
 <role rolename=“admin-gui”/>
 <user password=“tomcat” roles=“manager-gui,admin-gui” username=“tomcat”/>


Step 7. Start the server. The admin console url is http://localhost:8080/

image