eclipse - add tomcat - eclipse

I want to add a tomcat server to eclipse.
I follow these instructions:
firstly, In Sever tabs I right click and there's New > Server
I select tomcat 7 and leave the other options default, which are host name, name, runtime environment. Here, I would expect to be prompted to specify installation path - like c:\tomcat or anything
I click finish
There's error popup - Could not load server configuration at conf.....
Thanks for helping me...

Probably missing JST Server Adapters from WTP available from eg. http://download.eclipse.org/releases/indigo.
Cft. Apache Tomcat Not Showing in Eclipse Server Runtime Environments

Worked for me. Was getting the same Could not load server configuration at conf message with Eclipse 3.7 Indigo (ColdFusion IDE).
Installed Tomcat 6 on Win 7.
Stop any Tomcat instances running.
Define a new server, choosing Tomcat 6.
Click Configure runtime environments...
Remove any environments.
Click Seach...
Point to Tomcat dir: C:\Program Files\Apache Software Foundation\Tomcat 6.0
(Should find it) Then click OK and Finish.
Start Tomcat from Eclipse.
FYI, Glassfish wasn't working for me in Eclipse so I went with Tomcat.

Related

Tomcat server not being recognized

I'm currently using Eclipse Mars on OS X to build a PHP based application which requires a web server for a form submission. However, upon attempting to add Tomcat 7.0 as a server, the server list is empty (shown below).
I've been following several tutorials for setting up and configuring a Tomcat server and each one says to place the extracted Tomcat folder in the Eclipse workspace directory so they'll be detected when adding them in Eclipse. The Apache Tomcat folder is in the workspace directory but it still isn't being detected. I've tried reinstalling Eclipse and deleting any duplicate files but I keep getting the same result. How can I properly set up and configure an Apache Tomcat server in Eclipse Mars?
You can tell it about the Tomcat installation using the Server Runtime Environments preference page.
If Tomcat isn't already a known server type, you might need to install a few more. The WTP FAQ has instructions.
All of those tutorials are wrong. You do want to download a copy of Tomcat from Apache so it has the expected layout when Eclipse looks for the jars needed to launch it, but there's no reason to actually put it in the workspace.
I am also using Eclipse neon and I faced the same problem and the answer was available in a question Apache Tomcat Not Showing in Eclipse Server Runtime Environments in the same site already posted
Of the Available Answers the below steps Worked for me:
1.Help-->Eclipse Marketplace
2.Type Tomcat in search box and choose the Option JST Server Adapters(Apache Tomcat,...) and click on Install
3.Then complete the Simple installation steps and after installation Eclipse prompts for a restart accept and then you can see the Target Run time updated with Tomcat server
Note:I am using Windows

Liferay homepage is not found after starting the server in Eclipse

I have set up a Liferay Tomcat Server in Eclipse. After the server starts and I go to localhost:8181 (where I configured the server), the page is empty. Also, if I right click the server in Eclipse and select Open Liferay Portal Home, a 404 Page Not Found is displayed.
When I start the server outside Eclipse, with startup.bat, the page loads just fine.
Does anyone have a clue about why this might happen?
This answer assumes you're using Liferay IDE in Eclipse. It might be accurate even if you're not.
Try making your edits in the Eclipse workspace's server.xml file. The workspace should have a Servers folder, with your Tomcat Liferay server underneath it. The path in my workspace is as follows:
eclipse-luna-workspace/Servers/Liferay v6.2 CE Server (Tomcat 7) at localhost-config
Underneath the directory for the server are copies of the Tomcat configuration files, including server.xml. Make your edits to this server.xml file, restart your server in Eclipse, and Eclipse should copy it to the Tomcat instance at startup.
Where you defined Tomcat http port? And in which way Tomcat is configured in Eclipse?
These questions because Eclipse is able (but it's not mandatory) to override Tomcat default configurations.
Just a note: do you try to use Liferay plugin for Eclipse? It can help you to proper configure a Liferay server in Eclipse (and help you for development also).

Combine Eclipse Juno and GlassFish server

I am using Eclipse Juno and installed GlassFish Server 3.1.2 on Windows 7 under C:\glassfish3. Glassfish is running fine and I am able to visit the admin panel under localhost:4848/common/index.jsf. Morevoer I am able to deploy a war file and can start the application. My external GlassFish-server seems ok!
If I want to add a new Server to my Eclipse Juno environment I come to a screen where I can pick a GlassFish variant and afterwards I need to set a JRE and an Application Server Directory. I can't set a path for the Application Server Directory that my eclipse wizard lets me finish the configuration. Thanks in advance for further information!
UPDATE: I got this error message in the wizard after setting the application server directory path to C:\glassfish3\glassfish like it is proposed here: https://glassfishplugins.java.net/eclipse36/#1
There is no valid GlassFish installation in the specified directory. Click the Install Server button to download and install to that directory.

Eclipse + JBoss Tools won't run webapp to configured JBoss AS

I am using Eclipse 3.7.2 with JBoss Tools 3.3 under Ubuntu 12 and have configured a locally installed copy of JBoss AS 7.1.1 in Eclipse under "Preferences::Server::Runtime" Environments.
However, when trying to run a Java EE application by double-clicking on the project or an .xhtml page I only see "Run As / Run" on Server as an option and I get an HTTP 404 from Apache Tomcat/7.0.26 at localhost:8080. That is, it seems like Eclipse is trying to deploy to a Tomcat server as opposed to the JBoss AS I have configured in "Preferences::Server::Runtime" and I don't get an option like "Run on JBoss" or anything. When I export my application as a war and manually deploy to JBoss AS the app runs fine.
The idea is to add your application to a specific server that you have configured. Additionally; just adding the server runtime isn't enough.
You need to open the Servers view, and from there right click on the background and select New, and then Server. If you choose JBoss Community -> JBoss AS 7.1 here, you can select your previously created Server runtime in the Server runtime environment, or optionally create a new one.
Then comes the mental twist that you need to make. In WTP you don't use the Run As command, but instead right click the server in the Servers view (default name should be JBoss 7.1 Runtime Server, and select Add and Remove. Select one or more applications from your workspace that you would like to run on your server. Click finish when done.
Now right click again on your server, and choose either Start or Debug.

Jboss 7 and eclipse indigo plug in giving error while starting server?

I installed Eclipse indigo and jboss 7 server and jboss server plugins installed for struts2 application.
I created simple application with jsp page and deployed in to jboss7 server ( i installed server ,run from out side of eclipse and i saw new features of jboss 7 ) after deploying application .
I want to start the server but server giving error like " Error:no server JVM at c:\java\jre1.6\bin\server\jvmdll"
help me for this issue.
thanks
param
I also had this problem and did not find where I could set the JVM for JBoss in Eclipse Indigo. I got JBoss 7 working by removing the JRE6 from installed JREs in Eclipse and only having JDK6 there. I also changed JRE6 to JDK6 by double clicking the JBoss server -> Open launch configuration -> Classpath -> Bootstrap Entries.
After this I readded JRE6 to Eclipse for the projects that used it.
change jvm in jboss's tomcat conf from
C:\Program Files\Java\jre6\bin\server\jvm.dll
to
C:\Program Files\Java\jre6\bin\client\jvm.dll
I posted the below answer here
I've just been struggling with this same problem in Eclipse and I noted that as suggested by the answer above the JBoss site has a thread on this issue saying the same as the answer above to copy files from the jdk to the jre folder.
I noticed that you can avoid having to do this if you define the runtime to be the jdk when you create the server. I didn't find how to edit an existing server though.