Problem with GlassFish tools bundle for Eclipse and running Glassfish - java

I've downloaded the GlassFish-Tools-Bundle-For-Eclipse-1.2 and installed it.
When I run the eclipse contained in the release I'm unable to start the Glassfish server, which arrived pre-configured with the release.
It seems to be looking for the server under c:\ (i.e. c:\glassfishv3\glassfish) when in reality it's under {myDevPlaces}\bundle\glassfishv3\glassfish).
I had the glassfish-v3-prelude installed about a year ago but I uninstalled it.
I've bypassed the problem currently by moving the directory to c:\ but I'd appreciate an actual solution if someone has encountered this.
Thanks,
Ittai

FWIW, I'm using a standalone install of GlassFish 3 and the GlassFish Java EE Application Server Plugin for Eclipse (i.e. not a bundle) and everything is working fine.

Please note, As I have observed few days back, GLASSFISH AS 3.1 is compatible and to be downloaded for Eclipse Helios only.
Follow this - http://download.java.net/glassfish/eclipse/helios

Related

Add Tomcat 9 to eclipse

I have downloaded and installed tomcat 9 to my machine, but on Eclipse > Window > Preferences > Server > Runtime Environment, after clicking on Add, I see only Tomcat 7 and Tomcat 8, but not Tomcat 9.
What I have done:
1) installed tomcat 9 to local server;
2) updated eclipse to Mars (latest as of 2015-11-25);
3) installed eclipse "JST Server Adapters" and "JST Server Adapters Extensions"
Note:
My purpose of using tomcat 9 is it seems to be the only version that explicitly support java 8 and later, and my web app is using java 8. (http://tomcat.apache.org/whichversion.html)
I also have tomcat 7 exist in project but I also want to keep it in the machine, not to delete it.
Please see screenshot.
Please let me know about any config that I missed!
There are two things to note here:
Tomcat 9 is not released yet. Not a final version that is. If you check the official website, you will see that the only available version is an M1 version. Hence there is no support from Eclipse WTP for this early version. It will come soon, but not yet.
Tomcat 9 is not the only version that explicitly supports Java 8. If you check this page, you will see that "Supports Java version: 8 and later", which in this context means, that it officially support only Java 8 and above. It does not mean however this is the only one supporting Java 8. Theoretically you should be able to use any Tomcat version, in practice a Tomcat 8 will work perfectly well, since it support Java 7 and above. The majority of people with a Java8 + Tomcat combination are using Tomcat 8. Tomcat 8 also has Eclipse WTP support.
I was able to get the adapters for Apache 9 by installing Eclipse Java EE Developer Tools 3.9.4
Use a later version of eclipse e.g. Eclipse Neon.
It should work.
I tried all the above methods but still was unable to find solution for the problem then I did the following and that helped me to add Apache tomcat to my Eclipse IDE:
After following Help>Eclipse Marketplace and installing Eclipse Java EE Developer Tools 3.10 still tomcat was not available so I went to Help>Eclipse Marketplace>Installed>Eclipse Java EE Developer Tools 3.10>Change I put tick on the following and then I got the Apache Tomcat finally in my Eclipse IDE:
JST Server Adapters
JST Server Adapters Extensions
JSF Tools-Tag Library Metadata(Apache Trindad)
Git Integration for Eclipse
Use later EE version of Eclipse! Contains Tomcat adapters 8.5 and 9.0
I had same problem, but not now.
On my side, eclipse marketplace was stucked on previous WST server adapters.
I've used old update feature Windows > Install New Software
In main update site, I found Web, XML, Java EE and OSGi Enterprise Development part, where WST Adapters where ready to update ...
Eclipse MarketPlace often embed too much features & plugins.
On my own point view, easier to keep a light eclipse ;-)
Tested on eclipse 2020-09

Java EE 7 tutorial, netbeans can't find glassfish

The instructions for the Java EE tutorial specify to download and install the following :
Java SE SDK
Java EE SDK
Netbeans
I downloaded SE 8, EE 7 & Netbeans 8.0.2
Installed SE ok, and EE ok - it's essentially glassfish4. While installing Netbeans I'm instructed in the tutorial to NOT install glassfish and, when done with Netbeans to add glassfish to the Netbeans installation.
When I do so, I get the following message (I'm pointing # c:\glassfish4\glassfish which is the correct path AFAIK)
Not a valid GlassFish Server installation.
I've seen another person in the last week with this same error, I looked into that problem and it said that there should be a file in a directory to solve the problem (C:\glassfish4\glassfish\config\glassfish.container). That file does exist on my system.
How does netbeans determine a valid Glassfish installation?
ETA: I followed zapl's advice below, reinstalled Netbeans with it's default Glassfish and, when I right click on Glassfish 4.1 Server, all options are greyed except Refresh and Remove (so, no start/stop, no view of Admin Console, Server Log or Update Center)
I ran into the same problem. It is a known Netbeans-Bug: https://netbeans.org/bugzilla/show_bug.cgi?id=253008
There appear to be two solutions:
Use a nightly Build Netbeans Version equal or higher than 201506180001
In /glassfish/lib/install/applications/__admingui/WEB-INF/lib link (or copy) console-core-4.2-SNAPSHOT.jar to console-core-4.1.jar. After that netbeans is able to find the JAR file and add Glassfish nightly as a Glassfish 4.1 server.
I renamed the JAR as in solution 2 and now it works fine...
Hope this helps!

Error 500 launching the Web Service Explorer with Eclipse

I created my first web service and all seems to run ok, but when I launch the Web Service Explorer, it returns a HTTP ERROR: 500.
I'm using the version Luna Service Release 1 (4.4.1) of Eclipse, Tomcat 8.0.14, Axis2 1.6.2 and JRE 1.8.0_25. I read that it's solved changing the version to jre7, but i didn't work.
[Edited]
What I was doing is this tutorial. The problem comes when I tried the second part. Instead of appears the Web Services Explorer I get the 500 Error.
Thanks for your help! :D
Try changing JAVA_HOME and path to 1.7 JDK instead of 1.8. The problem is due to java 8 which doesn't seem to be compatible with luna as of now.
I had this same issue with Eclipse kepler when launching the Web Services Explorer-- I had jdk1.8 installed. Tried changing the JAVA_HOME (path points to %JAVA_HOME%) to point to jdk1.7 and still got the same issue.
After some research I decided to go with uninstalling jdk1.8 and this worked (somehow).
Totally a work around and not a solution; This got the Web Services Explorer to work for me.

Spring Tool Suite 3.6.2 cannot add server adapter Oracle Weblogic Server 10.3.5

Can anybody help please? I downloaded Spring Tool Suite 3.6.2 and when I am trying to create a new server runtime environment, it does not list the Oracle folder. I only see listed:
Apache,
Basic,
ObjectWeb,
Pivotal,
SpringSource,
VMWare.
I went ahead and click on the upper link "Download Additional server adapters" and it lists a couple of new extensions such as:
Geronimo Core Feature...and so on..
JBossAS tools,
Jonas,
Resin,
SAP,
WASCE...
Websphere
and I still do not see Oracle Weblogic extension.
Am I doing something wrong?
I already set up my classpath, java_home, Path to where my JDK6 is.
Is there anything else I am missing?
If anybody can guide me where I can find information. I have seen information that says to install Eclipse and STS and Weblogic but I am using directly STS, not Eclipse to develop.
Thanks!
Diana
You can install WebLogic Server adapter from Eclipse Marketplace. Look under Help menu in your Eclipse install. Then search for "WebLogic Server Tools". You will need to know which version of Eclipse STS is based on as there are separate toolsets for Kepler, Luna, etc.
Not sure %100 but STS might not have weblogic support. If you are determined to use Eclipse, I would suggest Kepler that would come with the recommended oepe bundle :
http://www.oracle.com/technetwork/developer-tools/eclipse/downloads/oepe-12121-1981534.html

does sysdeo tomcat plugin for eclipse add value to helios?

am developing a simple web app using jsps and servlets for tomcat 5.5.
Currently using the Eclipse Helios and Dynamic Web Application Project.
For some reason it is a nightmare. We spent 4 hours today trying to deploy a servlet to tomcat. We kept getting errors like
"java.lang.UnsupportedClassVersionError: Bad version number in .class file"
we played around with everything trying to set the build compatibility to what tomcat had but couldn't make the stupid thing work. (Yes it is possible we're incompetent. any suggestions on what we can try looking at are apprecieated)
My friend recalls from long time ago that he used this plugin
eclipsetotale_tomcatPlugin
in order to create a "tomcat project". My question is, does sysdeo tomcat plugin add any features that aren't already available in helios?
thanks
Not sure about sysdeo, but your error seems similar to bug 116713:
If your default JRE is set to 1.4.2 and you have a Web project targetting
Tomcat 5.5 (dynamic Web module version 2.4 and Java 5.0), when you tried to run
a main program, you'll get the error (you mention).
What is your default JRE set for your project?
This scenario happens when the JVM running the code is older than the one the compiler generated code for.
Have you considered simply running Tomcat under Java 6? If that is not an option, please edit your question to include this and any other restrictions on this project.
We used to get that error often when we had Java version issues. Eclipse environment and Windows environment (java_home and path variables typically) are easy to overlook.
Also, you can use javap -v Foo in same directory as Foo.class to find out its version.
Just use the Eclipse IDE for Java EE Developers, 206 MB edition of Eclipse. It has Tomcat and other webserver support built-in by default. Works like a charm!
Sysdeo is an old, as far as I know obsolete, plugin.

Categories