root path glassfish v4 eclipse luna - eclipse

I had just installed eclipse luna and I use the marketplace to install oracle package to use glassfish v4.0. Everything went ok but when I'm trying to install it they still show me an error at the server root path (Error: The specified directory is not a valid GlassFish installation.)...I don't know why? this happen even giving it a path. have anyone resolve this issue?.

I got caught by this trying to following along with the Lynda.com tutorial on web services with Java EE. You need to download and install Glassfish and then point the server root to the glassfish directory. Here are the steps I took:
download glassfish from here: https://glassfish.java.net/download.html
unzip the zip file: this is essentially the install step
navigate into the installation to the glassfish folder: this what you point eclipse to
The high level answer is here: How do I use Glass fish server with eclipse luna for Java EE?

Possible duplicate of How do I use Glass fish server with eclipse luna for Java EE?
However, you need to specify the "glassfish" folder under the extracted GlassFish files, for example ...\glassfish4\glassfish

First Download full platform from https://glassfish.java.net/download.html
Unzip it.
At the window you read this error, go to the browse for server root and find the glassfish folder inside your unzipped folder. Click on it and your error will be gone.

Related

How to fix this "Unknown version of Tomcat was specified" (Windows)

I want to connect with tomcat server with eclips IDE. I have already install tomcat 8.5 and 9.0 versions.
Both versions shows this error.
So please help me how can I configure my eclipse with tomcat any versions
Don't use an installed copy of Tomcat. Instead, download the Core zip/tar file and unpack it somewhere under your user's home directory. It has the most predictable layout for needed files and avoid any write permission issues you might have with an installed copy.
https://wiki.eclipse.org/WTP_Tomcat_FAQ#Why_won.27t_the_New_Server_Runtime_dialog_recognize_my_Linux_installed_version_of_Tomcat.3F

How to install and configure Tomcat for eclipse IDE in macOS?

Yes I know there are various similar questions like.
eclipse how to configure tomcat that install from package manager?
but not finding any solution to the problem I am facing.
What I am trying to do:
Install Eclipse on macOS
Install Tomcat 8/8.5 on same machine
Configure Tomcat to test Servlet developed in eclipse
What I have done so far:
1. Installed Eclipse
2. Installed tomcat using brew install tomcat#8 :nothing else done
3. Tried adding Server in Eclipse with path : /usr/local/Cellar/tomcat#8
Step 01 :Download Files Required
First Download the Version you Need for your project.
Make sure you download Core zip file from the link below:
Download Apache 7 Tomcat from this link.
Download Apache 8 Tomcat from this link.
Download Apache 9 Tomcat from this link.
Download Apache 10 (Alpha) Tomcat from this link.
Select .Zip from above section
Once you have downloaded it, unzip it to a location
Step 02 :Setting up Server in Eclipse
Open Eclipse Environment
Click on Servers Tab
Click on No servers are available. Click this link to create a new server...
Click Tomcat v(your downloaded version) Server and Next
Choose the extracted folder as path and runtime.
DONE!

Apache Tomcat is missing in Eclipse 3.7

I am planning to using Apache Tomcat for my development purpose in Eclipse IDE. I have created a webservice application, for this I need to configure Installed runtime as Tomcat Server, to run the service.
When I try to install it, I find it was missing in the list of servers.
How can I resolve this?
Window > Show View > Servers. From there, Right click > New > Server and you should see a first group called Apache, with plenty of Tomcats to choose from.
It might depend on the version of Eclipse you are using. I know for sure that Eclipse for Java EE Developers contains these servers, Eclipse Classic or Eclipse for Java Developers might not include them.
I got this problem and found this solution, may be it can help you:
- 1st: Copy file servlet-api.jar in folder install tomcat:ex:C:\tomcat\common\lib\servlet-api.jar into folder install java ex: C:\Program Files\java\jdk1.5\jre\lib\ext.
-2nd: open: C:\tomcat\conf\context.xml
add Text:
< Context reloadable = “true”>
WEB-INF/web.xml
…….
3rd: Download file tomcatPlugin….
unzip into "plugin" folder of eclipse
Start eclipse, go to Window\preference\
In Preference Tab:
Chose Tomcat and config:
+Tomcat version: Your installed tomcat version
+Tomcat home: link to folder that you unzip tomcat (C:\Tomcat5.5)
Manager App username: admin
Manager App password: admin
Clik OK
Restart Eclipse
OK. GOOD LUCK ^^
Source: http://maivanha.blogspot.com/2007/11/i.html

Tomcat server type unavailable in Fedora 15 Eclipse package

I have installed Tomcat server on my Fedora 15, I can run it, and it's avaible at the localhost:8080. Then I tryed adding it into eclipse, File->New->Servers->Server But the list is empty. I am reading this guide http://vaadin.com/book/-/page/getting-started.first-project.html And this is how it should be
(source: vaadin.com)
And this is how I see it
howiseeit http://img42.imageshack.us/img42/8320/38149731.png
Maybe you don't have Eclipse WTP (Web Tools Project) installed. Try installing it on top of your Eclipse-Installation or get startet with the Eclipse IDE for Java EE Developers where this is already included.
In your first image.. .try to click Installed runtimes. Locate your tomcat installation directory and select it.
I think the server is not detected because it's either stopped or eclipse cannot find the installation directory.
Hope that helps. :)

Debugging a tomcat project in Eclipse 3.4.2

I downloaded eclipse 3.4.2 and tried installing tomcat plugin (version 3.2.1)for eclipse from sysdeo (http://www.eclipsetotale.com/tomcatPlugin.html)
I have followed installation instructions but when is start tomcat from eclipse toolbar i got the following error
java.lang.NoClassDefFoundError: org/apache/tomcat/util/log/SystemLogHandler
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2357)
at java.lang.Class.getConstructor0(Class.java:2671)
at java.lang.Class.newInstance0(Class.java:321)
at java.lang.Class.newInstance(Class.java:303)
at org.apache.catalina.startup.Bootstrap.init(Bootstrap.java:205)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:390)
I did follow troubleshoot instructions but no success.
I tried to putting plugin in dropin directory too but still got the same error.
This was working fine in eclipse 3.2 and 3.3
Then I tried using standard inbuilt WTP to set up my tomcat server. I am not sure how it will pick my server.xml in conf directory of tomcat, it seems it is not picking as of now.
How do I associate my eclipse project with this setup. I am able to start the server but when i browse the tomcat start page, it does not show anything.
I would appreciate if someone can provide some ways to fix this.
Thanks in advance.
-Dipesh
After trying out few things I was able to debug tomcat project in eclipse 3.4.2
To debug tomcat application/project using eclipse 3.4.2 use WTP plugins which are installed along with it.
Go to Window --> Show View --> Others --> Server
In this view create a new server, please select tomcat installation directory and version information.
Then double click on Tomcat VX.X Server at local host, it opens up configuration settings page
In the Server Locations Section select "Use Tomcat Installation (takes control of Tomcat Installation) and enter deploy path.
In the publishing section select Never Publish automatically and uncheck update context path checkbox.
Voila!! All set to debug tomcat project in eclipse 3.4.2
There is no need to download and copy any extra plugin.
Thanks Juri. Hope this helps.
I'm using Tomcat with Eclipse Java EE version with WTP and it works perfectly. I have Ant scripts which deploy my web app to the tomcat webapp folder. In order to debug, you have to open the Server view in Eclipse, add a new server and choose the correct Tomcat version. Once that's done, open the configuration of Tomcat within eclipse by double-clicking on the server entry in the Eclipse server view you just created. On the left-middle side of the confguration page you should see something like "let Eclipse control the native Tomcat installation", I don't remember the exact text now. You have to choose that. Then you can set a breakpoint in your source code and then start Tomcat in debug mode from within Eclipse's server view.
Hope that helped.
If you are using the Sysdeo plugin, then you don't want to also be using the standard Eclipse WTP servers. To use the Sysdeo plugin, you need to have already downloaded and extracted a standard zipped tomcat directory. Make sure to define CATALINA_HOME in your path. Then, assuming you've correctly installed the sysdeo plugin, go into Eclipse->Windows->Prefs->Tomcat (this is Sysdeo's Tomcat settings, and not the WTP settings). You need to tell the plugin where you've extracted your Tomcat directory, and set it to use Context files.
Now create a new Dynamic web project. Right click it, and go into its properties->Tomcat.
Check it as a 'Tomcat Project'. Give it a context name, and also tell it the directory which would be the base of your war (by default, Eclipse has named this WebContent, I believe). Apply it and close the Window. Right click again your project, and go to the Tomcat section. Add the 'Tomcat Libraries to Build Path' so you can use the Servlet/JSP classes. Finally, click on 'Update Context'. If you go into your Tomcat directory under Conf, you'll see that the plugin has created a context for you that points to your Eclipse workspace. No need for deploying the app to the Tomcat directory. Now, you should be able to click on the Sysdeo Tomcat 'start' button, and your app should be able to connect to your app at localhost:8080/context_name.
HTH,
Bill
Using the excellent Findjar web page for:
org/apache/tomcat/util/log/SystemLogHandler
gives the following:
Information on class org.apache.tomcat.util.log.SystemLogHandler:
Containing JAR files:
jbossweb.jar
gwt-dev-windows.jar
tomcat-util-3.3.2.jar
tomcat-util-4.0.6.jar
tomcat-util-4.1.31.jar
tomcat-util-4.1.34.jar
tomcat-util-4.1.36.jar
tomcat-util-5.0.16.jar
tomcat-util-5.0.18.jar
tomcat-util-5.0.28.jar
tomcat-util-5.5.12.jar
tomcat-util-5.5.15.jar
tomcat-util-5.5.23.jar
tomcat-util-5.5.4.jar
tomcat-util-5.5.7.jar
tomcat-util-5.5.9.jar
tomcat-util-5.5.7-alpha.jar
tomcat-util-5.5.8-alpha.jar
tomcat-util-5.5.9-alpha.jar
Ensure the appropriate jar file is in your CLASSPATH.