STS 3.6.1 on Windows using JDK 7 or 8: "No server selected" error - spring-tool-suite

I run STS 3.6.1 on Windows 7 under either Java 7 or Java 8 JDK.
The "Pivotal tc Server Developer Editions v3.0" is created fine, using tc Server Developer Edition v3.0 and Tomcat 8. It runs fine. However, I cannot edit the runtime configuration. In the Edit Launch configuration dialog (that opens by clicking the "Open launch configuration" link) the error displays as "No server selected". Indeed, there is no Server available in the combo box.
No matter how I create the server (using existing or new tc Server setup) and no matter which JRE I use, the launch configuration will not "stick". The Edit Configuration dialog lets me change the VM Arguments (under Arguments tab) but the changes are not saved.
This error seemed to be introduced in 3.6.1 and tc Server v3.0. It worked in 3.6.0 that used tcServer v2.9
Any ideas of a workaround?
Thanks

The issue of not showing Pivotal tc Server 3.0 on the launch config Server tab in the launch config wizard is in fact turned out to be a tc server eclipse integration problem.
It's fixed now. Please install update tc server integration from this update site:
http://dist.springsource.com/snapshot/TOOLS/eclipse-integration-tcserver/nightly
P.S. Please report any other problems you notice with tc 3.0 server eclipse integration :-)

It seems to be an issue with TC Server rather than STS. I've got the same issue with STS 3.6.1 and TC Server 3.0.0, but creating a server in STS 3.6.1 using my older TC Server 2.9.3 works like a charm.

Related

sts 3.6.1: default server is not added to workspace; cannot select tomcat7 for Pivotal 3.0

When I was using STS 3.6.0 a default 'Servers' folder (Vmware vFabric v2.5 - v.2.9) was always added to any new workspace I created.
Since installing STS 3.6.1 I am no longer seeing a default 'Server' being attached to the workspace.
It appears that STS 3.6.1 is now bundling Pivotal tc Server v3.0, which appears to favor Tomcat 8 for the default underlying binary (this requires Java SE 7, but I need to use Java SE 6(which is my workspace default))
So my best guess as to why the automatic addition of the 'Servers' folder is not occurring, is that I don't have Java SE7 set as my workspace default, but I'm a little surprised that Tomcat 8 is being considered the default binary for tc Server;
I am also having issues manually adding a server for my workspace
(e.g. New->Server->Pivotal tcServer v3.0)
After I select the location for the 'Pivotal tcServer v3.0' the default Tomcat version selected is Tomcat 8.0.9.B.RELEASE. I get the following warning after this selection:
"Tomcat 8 requires Java SE7 or later. Change the JRE to one that meets this requirement"
Understood, but...
When I select Tomcat 7.0.55.A.RELEASE as the Version, I still see the same message and I am unable to proceed with adding the server.(Its my understanding that Tomcat 7.x is supported by Java SE6).
This is unexpected behavior in my opinion since my workspace default JRE supports Tomcat 7. Is there anyway around this issue?
From the main menu, open Window -> Preferences.
Then, navigate to the Server -> Runtime Environments page.
At the top of the list you should be able to see Pivotal tc Server Developer Edition (Runtime). Select it and then press "Edit..." button.
In the dialog that appears, select your JRE and Tomcat versions from the appropriate dropdowns. Press the "Finish" button to save your changes and create a new server instance.
Start the created server and you'll see that Tomcat 7.0.55 starts.
Please raise a defect if you feel that 7.0.55 should be the default rather than 8.x.
Thanks for reporting this. That was a bug indeed. The wizard page should be revalidated if tomcat version has been changed. This should be fixed now. Also some support for using various versions of VMs available via Eclipse's Installed JREs (i.e. JRE's different from Java Home on the system).
Please try updating your tc server eclipse integration from this update: http://dist.springsource.com/snapshot/TOOLS/eclipse-integration-tcserver/nightly I think the fix is already available in the latest build.

NullPointerException when Starting Glassfish 4.0 in Eclipse on OSX Mavericks

I am using Mac 10.9 OSX Mavericks and Eclipse IDE for Java EE Developers(kepler).
I've installed Glassfish 4.0 using the 'new server' option in eclipse and the latest JDK - Java SE 7 [1.7.0_55].
but when trying to start the server, I get this error -
An internal error occurred during: "Starting GlassFish 4.0 at localhost".
java.lang.NullPointerException
Is there anything wrong with my setup? Any advice is much appreciated!
Open eclipse.ini file which is located in your eclipse installation directory (in the same folder with eclipse.exe).
Add -Duser.language=en in the bottom of your eclipse.ini.
Restart eclipse.
I installed Eclipse IDE for Java EE Developers(juno) instead of kepler and it works!
I am not sure what the problem with kepler is but this is a solution that worked for me.
I had the same problem while using Windows 8.1, jdk1.8.0_20, & Eclipse Luna.
I deleted the glassfish server, then re-installed, and it was all fine!
Note:
Remember to delete the server from the installation location.
Also in eclipse when you do a new installation, remember to go to "Configure Runtime Variable" (In the New Server Window), delete the existing config for Glassfish. then when you click next you will be prompted to select the JDK where you can select the correct version of the JDK. If you don't see the correct version of the jdk or no jdk version at all, then you will find above JDK a link called "Installed JRE Preferences" add the right version from there!
I had the same problem using Win7,jdk1.7.0_67, Eclipse Luna, glassfish 4.
As I suspected there is something wrong with the JDK settings, so I checked the Servers config in Preferences and in runtime environments my glassfish server got the problem: invalid JRE.
So I tried to set the JDK but the Finish button just isn't working.
I deleted that server and created a new with the same settings, and it's working.
I'm not sure though what caused this problem.

Eclipse Juno Tomcat 6 Remote Host Not Supported

I am trying to add a tomcat 6 server in my eclipse juno but I am getting this error:
The currently selected server type does not support remote hosts
Before juno I had galileo on the same machine and I was able to add tomcat 6 successfully in it without any problems.
I searched on the internet before asking but the only relevant link i got was this:
Eclipse Tomcat7 Server Doesnt support Remote Host
and it doesn't help much.
Pls help
Thanks
I had the same problem with Tomcat 7 and I solved it by importing a Tomcat 7 project from another workspace which already had the server set up. Additionally I added a Runtime Environment for Apache Tomcat 7 (Window > Preferences > Server > Runtime Environments > Add)
I recently had the same problem and it was because I had a previous version of tomcat installed, upgraded to a newer version, deleted to old one, and never changed the runtime environment in Eclipse. It's kind of a poor error message because it doesn't state the true nature of the problem but anyway... The easiest way to fix this is:
Open Eclipse, right click on the workspace and select New Server.
Once you are at the Define New Server wizard click on Apache and select Tomcat 6. This is where you should see the error The currently selected server type does not support remote hosts. Now below server runtime environment click Configure Runtime Environments and new popup will open. You should see Apache Tomcat v6.0 in the preferences window. Select this and click edit to the right.
You will have a new popup titled Edit Server Runtime Environment. Under Tomcat Installation Directory you can browse to the location of the tomcat directory. Assuming you have downloaded Tomcat and put it at the top level of your C: drive you should have something like this: C:\apache-tomcat-6.0.36. Click finish and you should be good to go. Let us know how it works out for you!
I also had the same problem and tried to follow #dbk's solution but I didn't have the "Configure Runtime Environments" in the wizard screen. For me I needed to go to preferences->server->run time environments where I had incorrectly configured runtime environments. So to be clear if you have runtime environments that are not configured correctly you will have to edit them first.

Can't install glassfish server -EJB 3.1- on eclipse Indigo

I am facing problem with server adapter of glassfish. Whenever I download the adapter I can't use it as I cannot see it in the wizard.
I download it using "download additional server adapter", but even when it is successfully downloaded, I still do not have choice to work with glassfish as its adapter doesn't show up on the screen.
can any one help?
Hi I found the solution ,
First I am using windows 7 ,64 bit
So when i used JRE 1.6 for 64 bit and i run the eclipse using "run as administrator" , the adapter downloaded and appeared in the wizard .
Thanks

How to specify VMware vFabric configuration?

I've installed SpringSource Tools suite and that automatically installs the VMWare vFabric Server as the default test Server.
On my project, when I select "Run on Server" it complains that the /Servers/VMware vFabric tc Server Developer Edition v2.5-config file is missing.
What's going on here? I checked the physical directory and it was not there. Am I missing something in the STS setup?
...the /Servers/VMware vFabric tc Server Developer Edition v2.5-config file is missing... I checked the physical directory and it was not there.
In my installation of STS (SpringSource Tool Suite 2.8.1 which includes VMware vFabric tc Server Developer Edition v2.6) the configuration files for the server instance which is configured by default in STS is located in:
STS_INSTALLATION_DIR\springsource\vfabric-tc-server-developer-2.6.1.RELEASE\spring-insight-instance\conf
If you couldn't find it, you may have been looking in one of the Tomcat directories instead of inside the "spring-insight-instance" directory.
Once STS addon is installed, restart eclipse. You will be presented with a spring dashboard. Click on the extension tab. Choose TC Server and then install. This should solve the problem. You will see the Server automatically installed.
I had a similar problem. It turned out that the "Servers" project was closed in the STS Explorer window.
Once I re-opened the Servers project, and restarted the workbench, the problem went away.
Please find the steps to Installation & Config of VM Ware TC server for Springs Tools Suite(STS)
Download tcServer Developer’s Edition – current version is 2.5.1
Make a directory for tcServer (such as /opt/tcserver or c:\tcserver)
Unzip the downloaded file into that directory
Type at command line in your tcServer directory (.sh for unix/mac, .bat for Windows): tcruntime-instance.sh create myInsight -t insight
Start STS
From menu: File > New > Other… > Server > Server
Scroll to VMware, choose VMware vFabric tcServer 2.5
Click Configure Runtime Environments link
Add new tcServer, setting the location to your tcServer directory, press OK
Choose the newly configured Server Runtime Environment from the drop down