I just installed Java EE plugin in plain eclipse and I am trying to add tomcat server. I opened add new server which showing "Choose the type of server to create" but there is no server list. How can I add tomcat server?
Eclipse: Indigo.
Do as this:
Windows -> Show View -> Servers
Then in the Servers view, right-click and add new. It will show a pop up containing many server vendors. Under Apache select Tomcat v7.0 (Depending upon your downloaded server version). And in the run time configuration point it to the Tomcat folder you have downloaded.
You can try this article. It has the info you want !!
If you have the Standard Eclipse installed (instead of the JavaEE version), then you'll need to install the JavaEE web developer tools.
You can drag and drop the Install button from here: https://marketplace.eclipse.org/content/eclipse-enterprise-java-and-web-developer-tools
Or you can go to Help > Install New Software then select the Eclipse site from the dropdown (Helios, Kepler depending upon your revision). Then select the option that shows Java EE. Restart Eclipse and you should see the Server list, such as Apache, Oracle, IBM etc.
Go to Server tab
Click on No servers are available. Click this link to create a new
server.
Select Tomcat V8.0 from server type list:
Provide path of server:
Click Finish.
You will see server added:
Right click->Start
Now you can run your web applications on server.
If by mistake, you have deleted your Tomcat Server and Eclipse is not showing more options (Next button will be inactive) then in this case follow the bellow steps:
First remove the two files from the following path:
Path : workspace/.metadata/.plugins/org.eclipse.runtime/.settings/
And that two files are :
org.eclipse.wst.server.core.prefs
org.eclipse.jst/server.tomcat.core.prefs
After deleting/removing the above two files from the workspace, Restart the Eclipse IDE.
Change to the Server View, Right Click 'New',
Window 'Define a New Server' is shown,
--> Select the Apache Folder, choose Tomcat-Version
Browse to the unzipped 'Apache-Tomcat folder', choose the second level
Now you are able to add/configure your new Tomcat Server. (Now you will see the 'Next' button will become active, and you can then follow the normal instructions)
There are different eclipse plugins available to manage Tomcat server and create war file.
For example you can use tomcatPlugin. It permits to start/stop and build the war simply.
You can read this tutorial.
This is very simple steps involved as you mentioned you have already installed JAVAEE plugin so the first step for you is go to Windows->Show View->Server in add select the AppacheTOMcat and select the tomcat version you have downloaded and set the path and start the server after that.
Most of the time when we download tomcat and extract the file a folder will be created:
C:\Program Files\apache-tomcat-9.0.1-windows-x64
Inside that actual tomcat folder will be there:
C:\Program Files\apache-tomcat-9.0.1-windows-x64\apache-tomcat-9.0.1
so while selecting you need to select inner folder:
C:\Program Files\apache-tomcat-9.0.1-windows-x64\apache-tomcat-9.0.1
instead of the outer.
Right Click on the server tab, go for NEW-> Server. then choose recent version of tomcat server. Click on next, and then give path for your tomcat server.(You can download tomcat server from this link https://tomcat.apache.org/download-80.cgi#8.5.32). Click on finish.
You can start your server now..!!
Right on the windows tab select Preferences, go for Server. then choose Runtime Environment. Click on Add, then select Apache...choose version of tomact server from this(version you installed) --> then browse the parent directory of bin of Apache tomact server--->then finsh.
Click on Windows--> selcet show view-->select server-> click on link -->choose apache--> and choose your version-->then Next -->then Finish.
Related
SPEC : jdk1.8 ,TOMEE702, win10
Question : How/What/which to install and use TOMEE for open-ejb3.X ?
url : http://tomee.apache.org/download-ng.html
I could not find any easy install-able for all of the downloads from the url.
with regards
Karthik
How to install
Just unzip the archive you downloaded.
which distribution
TomEE comes in several flavors which offer either alternative implementations for some of the specifications and/or additional functionality. Without more concrete requirements it's not possible recommend concrete flavor.
You can see the comparison here: http://tomee.apache.org/comparison.html Note that the table is for version 1.7 For 7.0.x, the details are in the text below.
The difference between plume/plus is that the first one uses eclipselink and mojara, while "plus" uses openjpa and myfaces.
The difference between web-profile and the others interms of ejb is that web-profile by spec supports ejb-lite, while plus/plume should support ejb full.
Also I'd recommend you to use the latest and greates version of tomee - currently 7.0.3 and upgrade to 7.0.4 as soon as it's released as it contains A LOT of fixes.
I think you want to know the way of using openejb with tomcat server.
To do that you will have to download openejb.war file.
http://tomee.apache.org/download/apache-openejb-3.1.4.html
After downloading openejb.war file download the tomcat server which can be downloaded from the link given below.
http://tomcat.apache.org/
Extract your tomcat zip file to a folder and deploy openejb.war file to tomcat's webapp folder.
If you are using Eclipse as an IDE then setup a tomcat server by going to window menu -> preferences -> server -> Runtime Environments. Add your version of tomcat server.
After adding the server, check the Project Explorer view, there you should see Servers folder. Finally right click on the project explorer view, select import and search for war file and lastly add the openejb.war file.
If everything goes well you should have successfully added openejb to your tomcat server.
If you have an openejb based project then you can add it by going to window menu -> show view and search for server. You should probably see the server view at the very end of your eclipse window. Right click on it and select Add and Remove. In the Add and Remove window you can control your projects deployment.
If you don't have a project then develop a project and add it to your server and run the tomcat server. You might also need to configure openejb.xml file depending upon your needs.
Tomee installation is no different then any other Tomcat installation. You should download the compressed file and extract it into your desired directory, preferably into root drive in case of windows extract it into the c drive.
Once extracted you can start it from the bin folder startup.bat or startup.sh script. Make sure you have the compatible jdk installed into your system and the path is configured for the JDK.
You can find the detailed installation step from the official documentation of apache.
I have been trying to solve this problem using this answer but it couldn't solve my problem.
What i did is this--
I installed weblogic server inside a folder on my desktop.
Now i want to use this weblogic server with eclipse.
Do i need to download additional adapters or do i need to do something else to configure weblogic with eclipse since i have already installed weblogic on my system.
It should just be a case of creating a new server in Eclipse and specifying the installation location.
Before beginning, you should make sure that you have the "Java EE" flavour of Eclipse installed.
Open up Eclipse.
Go to the Servers view.
Right-click in the Servers view and select New > Server.
In the filter box type 'weblogic'. This should show one option (I forget the exact name of it. Something like weblogic adapter tools.
Select this and complete the wizard. You'll be prompted to restart Eclipse once it completes.
After Eclipse has restarted, repeat steps 2,3, and 4. Except this time, the you should get a selection of servers that you can create. You should be able to create BEA/Oracle weblogic servers at multiple versions.
Select the one for the version that you have downloaded and click Next.
Provide paths to WebLogic home and Java home and complete the wizard.
I get this problem running Apache server on eclipse
Could not load the Tomcat server configuration at \Servers\Tomcat v7.0 Server at localhost-config. The configuration may be corrupt or incomplete.
Resource is out of sync with the file system: '/Servers/Tomcat v7.0 Server at localhost-config/web.xml'.
I need your help please
The problem is that tomcat files have changed and your eclipse still have the old tomcat files... this might happen if you manually deploy something on your tomcat or for some other reasons.
I would try to refresh the Servers folder in eclipse (right click > refresh or just F5) and see if the problem disappears
If this does not work. I would delete the tomcat servers in eclipse and recreate it (right click in the server view and click "new Server")
Here are the steps to follow:
In Eclipse, Open the "Server" tab.
Double click on the "Tomcat7" entry to see the configuration.
Then click on the "Open launch configuration" link in the "General
information" block.
In the dialog, select the "Classpath" tab.
Click the "Add external jar" button.
Select the file "/usr/share/tomcat7/bin/tomcat-juli.jar"
Close the dialog.
Start tomcat 7 from Eclipse.
as described here: link
Cheers
Encountered the same issue and solved by doing following changes
First Close Eclipse
Copy all files from TOMCAT_7_HOME/conf
Paste inside to WORKSPACE_FOLDER/Servers/Tomcatv7.0Server-atlocalhostconfig
Start Eclipse
Open the Servers project, click on the Tomcat 7 project and refresh
Start Tomcat from Eclipse
final view of Ecclipse after fix server issue
I'm a new comer for java web development.
I can now start my tomcat6.0 with myeclipse 10.0,and have that famous tomcat welcome page on localhost:8080.
Then I try to create an empty web project.And right click to tomcat 6.0 under the server tab, choose "Add deployment",I choose project name and other things left with default.
then run my tomcat server, visit localhost:8080/projectname/index.jsp in my browser, it reply 404 error to me,"description The requested resource is not available.".
What I've repeated done:
1.Window->reference->server->tomcat 6.x, select the folder of tomcat.make sure the jdk version.
2.file->new->web project input name and done.
3.right click tomcat 6.0 in server tab, add deployment, choose project then done.
4.start server
5.goto browser ,input localhost:8080/projectname/index.jsp, got 404 error
6.select this project, try to run as myeclipse server application, it tell me could not redeploy
There are two signs maybe help.First is, when I right click tomcat under servers tab and add deployment, there is a yellow exclamation mark before it, and "deployment status" says "Deployment is out of date due to changes in the underlying project contents. You'll need to manually 'Redeploy' the project to update the deployed archive."
The second on is, I can not find any thing related to my project under webapps.Is it because I installed tomcat under C driver and myeclipse have no privilege to write things into there?
I don't know why this happen, I followed everything tutorial about this topic show me. Is there anything I missed?Please, any help will be appreciate!!
If you create empty Dynamic Web Project from Eclipse it will produce no result as it have no code your scr and WEB-INF folders will be emplty
Did you stop tomcat wich you run manually before start it from Ecliple? By default when you start your tomcat from Eclipse you not able to see welcome Tomcat page. Please post link with your tutorial here.
Alright, problem is solved.
I did several steps, and I'm not sure which one is the key move, I just have the content within index.jsp.
First I uninstalled my tomcat in C driver.
Then instead of exe binary format tomcat installer, I unzip my tomcat rar package into D driver.
Then change CATALINA_HOME,point it to new path
I also changed my MyEclipse's default workbench. Because there's also a Eclipse in my computer, they two were share the same bench, now I seperate them.
Pay attention, after change the workbench, the eclipse tomcat become enable again,which has been disabled in earlier operation, and jdk for my tomcat 6.0 has to be redeclare.
Last step, I point tomcat to the new one on D driver, and deploy again, everything just rock and roll.
ENV:Win7 32bit, myeclipse 10.6, tomcat 6.0
!
I have installed tomcat6 successfully,how to configure tomcat on eclipse.
what's wrong in my eclipse please suggest me..!
You first have to add your tomcat installation directory in Preferences -> Server -> Runtime Environments. After this you can select the tomcat installation in the New Server dialogue.
open window->preferences->servers->runtime environment->Add->select apache version->select apache home directory->finish.
You can configure you tomcat server in eclipse, by following steps
Click on Servers in the bottom panel of eclipse and then click new.
In the list of servers select tomcat and then select version and click next.
Give your installation of tomcat in Tomcat installation directory.
click finish
You could fid the step by step instructions on the following URL. Hope this helps :
http://www.eclipse.org/webtools/community/education/web/t320/Configuring_an_Application_Server_in_Eclipse.pdf