eclipse tomcat error

gudii9
gudii9 used Ask the Experts™
on
hi,

I have configured eclipse with tomcat 8

i modified my tomcat-users.xml by doing cntr+shift+R and searching on tomcat-users.xml

i added below entry as i am getting tomcat username and password screen when i run rest web services 139 query parameter example from annotation
when i give tomcat , tomcat getting anauthorized error


<tomcat-users>
  <user name="admin" password="admin" roles="admin-gui,manager-gui" />
</tomcat-users>


after addin above when i restart getting below
eror
Could not load the Tomcat server configuration at /Servers/Tomcat v8.0 Server at localhost-config. The configuration may be corrupt or incomplete



How to solve:

Close Eclipse
Copy all files from TOMCAT_7_HOME/conf to WORKSPACE_FOLDER/Servers/Tomcat v7.0 Server at localhost-config
Start Eclipse
Expand the Servers project, click on the Tomcat 7 project and hit F5
Start Tomcat from Eclipse

to folow above steps how to where is my tomcat conf directory or where the tomcat directory is ?
is there is a way in eclipse you can see properties etc to find it?
how to know my server is tomcat 8 or tomcat 8.5 etc

how to solve this error
please advise
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®

Author

Commented:
seems below is path
C:\gpSoftwares\apache-tomcat-8.0.39-windows-x64\apache-tomcat-8.0.39\conf

how to confirm from eclipse or outside eclipse?

Author

Commented:
i copied ovedr from
C:\gpSoftwares\apache-tomcat-8.0.39-windows-x64\apache-tomcat-8.0.39\conf

to
attached eclipse servers-->config path

Port 8080 required by Tomcat v8.0 Server at localhost is already in use. The server may already be running in another process, or a system process may be using the port. To start this server you will need to stop the other process or change the port number(s).


now i see error

Port 8080 required by Tomcat v8.0 Server at localhost is already in use. The server may already be running in another process, or a system process may be using the port. To start this server you will need to stop the other process or change the port number(s).

please advise how to find what is running on 8080 and how to stop that or how to change port?
tomcatSErverConfig.png

Author

Commented:
i chnaged port to 9762 now i get below error
HTTP Status 404 - /restinjection/form.html


type Status report

message /restinjection/form.html

description The requested resource is not available.


Apache Tomcat/8.0.39

please advise

Author

Commented:
PORT
PORT.png

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial