Blog coding and discussion of coding about JavaScript, PHP, CGI, general web building etc.

Monday, February 15, 2016

Connecting Tomcat server to Eclipse

Connecting Tomcat server to Eclipse


I am trying to use Tomcat 6.0 as a web development server within SpringSource Tool Suite 2.7.1. I create a runtime, download tomcat, create a server, etc as per these instructions http://www.ibm.com/developerworks/opensource/library/os-eclipse-tomcat/index.html#N10148

When I try to run a web app on the server though I get the following error:

The archive: /Servers/Tomcat/bin/bootstrap.jar which is referenced   by the classpath, does not exist.  

I know this bootstrap.jar file does exist in the exact place it says it should be yet it still causes an error. Any ideas?

Answer by Marcin Wasiluk for Connecting Tomcat server to Eclipse


You might want to check/manually edit your path by going into server properities:

In Servers view,

1) double-click on Tomcat server.

2) Then click on Overview of Tomcat settings appears.

3) "Open launch configuration" then Classpath

4) Edit User Entries here

Answer by Michael Allen for Connecting Tomcat server to Eclipse


The trick here was that the location of the jar was inside the Eclipse/STS project directory. STS stores its server configurations inside the /Servers folder and I had decided to store the tomcat runtimes here as well for neatness. Placing the runtimes elsewhere and trying again solves this issue.

Answer by Peiqin for Connecting Tomcat server to Eclipse


Or you may delete the servers configuration, and configure the server again. This works when you may have changed the directory of the server.

Answer by AndrewK for Connecting Tomcat server to Eclipse


I googled my way here on the search terms, "the specified tomcat directory does not exist". (I had moved it from one directory to another.)

For others here for that reason, my solution was to go into Window -> Preferences -> Server -> Runtime Environments and update it there. Then to update the JARs, as in Marcin Wasiluk's answer.

Answer by user2603985 for Connecting Tomcat server to Eclipse


I was also facing same issue and solved it as follows : My conclusions : 1) In my case issue was coming as I shifted the location of the Tomcat. Solution : 2) double clicked on the server configured in the eclipse. 3) Click on Open Launch configuration. 4) Change the classpath under classpath tab to the new location.

Hope this would help.

Answer by suji for Connecting Tomcat server to Eclipse


I have faced the same problem.

Solution: In Project Explorer--> Servers(right click) --> Run As --> Run Configurations(click) --> (Select "Tomcat v7.0 Server at localhost") --> Arguments(tab) --> Working directory(bottom of window) --> others : (click workspace) --> select the "boostraps.jar" from -->Server.

Eg., My workspace.MY path is:

Project Explorer --> Servers(right click) --> Run As --> Run Configurations(click) --> (Select "Tomcat v7.0 Server at localhost") --> Arguments(tab) --> Working directory(bottom of window) --> others : (click workspace) --> /home/ciprus//Servers --> click apply.

Answer by Seifedine Tamallah for Connecting Tomcat server to Eclipse


this could happen if you probably used previous tomcat server in eclipse, so deleting server and its configuration and creating another one will make it work .


Fatal error: Call to a member function getElementsByTagName() on a non-object in D:\XAMPP INSTALLASTION\xampp\htdocs\endunpratama9i\www-stackoverflow-info-proses.php on line 72

0 comments:

Post a Comment

Popular Posts

Powered by Blogger.