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

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.

Related

Change Bootstrap Entries in Eclipse Run Configuration

I'm currently migrating from Java 1.7 to Java 1.8 and I'm facing a little problem with my Run Configuration in Eclipse: On the Classpath tab, there are two sections (namely Bootstrap Entries and User Entries). In the Bootstrap Entries section, it says JRE System Library [JavaSE-1.7].
However, I set Java 1.8 as my default runtime environment in Eclipse's preferences already. I do have several Run Configurations and some already point to a 1.8 JRE, I previously installed. But it is not possible to edit the entry in the Run Configuration dialog.
So, I wonder:
What actually is a Bootstrap Entry?
Where does it come from?
Where can I modify it from 1.7 to 1.8?
I had similar issue with JBoss 6.3.0 EAP. I was trying to upgrade from Java 1.6 to 1.7, but the Bootstrap entries were coming back to the previous value as soon as I closed the pop-up.
Go to Window-> Preferences -> Java -> Installed JREs and remove the earlier version of Java from there.
Come back to the window and your only existing JDK version will reflect. Have not tried this with Tomcat, but it might solve the problem.
Please let me know if it works.
For launch configurations the JRE is not configured via the Classpath tab, but on the JRE tab - if you are launching a Java Application (some other kinds of launch configurations have it on their Main tab).
What you see as "Bootstrap Entries" directly reflects your choice on the above tab of the dialog.

How to downgrade glassfish from 4.1.1 to 4.1 in Eclipse Luna

A pretty simple question here:
I need to downgrade the version of Glassfish I am using in Eclipse Luna from 4.1.1 to 4.1, to get over an extremely annoying bug that occurs when trying to POST/PUT using JAX-RS.
I've looked on-line but have been unable to find out how to revert to the previous version - can anybody tell me how to do this, or point to instructions somewhere on the web for how to do it? I am pretty new to glassfish and eclipse....
All help greatly appreciated...
Unfortunately you can downgrade an installed server from eclipse same way you don't have an option in server's settings to downgrade it to another version. You must set a new server configuration.
First of all you must install on your computer the new Glassfish server you need (this installation is a required step).
Once done, to set another version on your ide you must go to Eclipse's options and select Window / Preferences / Server / Runtime Environment and select the right Add button
After that, select Glassfish folder and Glassfish 4 version. Check also the Create new local server checkbox
With this option, eclipse will allow you to select another Glassfish installation to be added. You should have the 4.1.1 version you need installed previously.
After that, open your eclipse's servers tab (you probably know how to access it but, if not, it's at eclipse's Window / Show view / Other / Server / Servers ) and do right click and select New / Server
Add your new configurated server and enjoy.

Cannot install Apache Tomcat in Eclipse

I've downloaded apache-tomcat-8.0.8 archive, then I've unzipped it and tried to add it in Preferences -> Server -> Runtime Environments by clicking Search and selecting path to the uzipped archive. What I'm getting is Server Error
No new server runtime environments were found.
Any ideas why it might be happening? I have no Apache Tomcat options in New Server Runtime Environment window, which I get by clicking Add in the previous one. There are such options in every tutorial I read.
I think there currently is no adapter for Tomcat 8 in Eclipse.
Updated
Don't use the search button. Click add and choose an adapter first. Open Apache and choose Tomcat 7. Click next and point the installation directory at your Tomcat folder.
It seem that you have Eclipse without Java EE components.
so you see something like
instead of
Check Apache Tomcat Not Showing in Eclipse Server Runtime Environments (need to install JST Server Adapters )
Once you have plugins installed follow dialog flow e.g. like
http://help.eclipse.org/juno/index.jsp?topic=%2Forg.eclipse.jst.server.ui.doc.user%2Ftopics%2Ftomcat.html
Seems like no java EE component.
Eclipse IDE for Java Developers 'Servers' doesn't exist.
Therefore download correct Eclipse IDE. It is Eclipse IDE for Enterprise Java Developers(Eclipse IDE for Java EE Developers).
Then,
Open Eclipse IDE > Click on the Servers tab located at the bottom > right click > New > click on Server.
Select Apache and then select the appropriate version of tomcat server.click Next.
Select tomcat Installation Directory and JRE. Click next.Click Finish.

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.

GlassFish in Eclipse complains "GlassFish v3 requires a JDK 1.6 and not a JRE"

I am running:
Eclipse Java EE IDE for Web Developers.
Version: Helios Service Release 2
Build id: 20110218-0911
I have also installed Java EE 6 SDK Update 2 which includes:
GlassFish Open Source Edition 3.1
Java EE 6 Code Samples
Java EE 6 API Documentation
Java EE 6 Tutorial
Your First Cup: An Introduction to the Java EE Platform
I have registered GlassFish with Eclipse but when I try to start the server, I get the following error:
GlassFish v3 requires a JDK 1.6 and not a JRE. Please add/select the correct JDK in the Server properties 'Runtime Environment' section.
I have searched here for an answer but none so far seem to work. Can anybody suggest how I would sort this error out?
I had the same issue and actually i got the solution from this link ( The above answers really didnt gave me the solution
https://forums.oracle.com/forums/thread.jspa?messageID=7033028
1) make sure the jdk is installed. Look in C:\Program Files\Java\jdk1.6.XXXX (mine says 0_16). If that has stuff in it the jdk probably was installed, if not you can grab just the jdk from http://java.sun.com/javase/downloads/index.jsp
2) This is where the error message kinda foobars ya...
- Get eclipse started, ignore the message.
- Go to Window>Preferences
- Then under +Java+Installed JREs hit Add.
- Select 'Standard VM' then Next
- JRE Home = C:\Program Files\Java\jdk1.6.XXXX the rest should fill in automagically. Hit Finish.
- MOST IMPORTANT!!! Click the check box back in the Preferences Window for the new jdk runtime...I don't know why it's necessary, but it definitely is...
3)Still in Preference Window.
- Get to +Server, Runtime Environments
- Select the Glassfish SRE, hit Edit...
- From the JRE drop down grab the JDK and hit Finish
- Hit Okay.
4)Go to the Servers Veiw (probably down by the Console View).
Right click on the Bundled Glassfish...Server and hit restart/start...
Yes, you downloaded (or pointed Eclipse to) a JRE, but it needs a JDK. The latter has all the Java tools: javac.exe, java.exe, jar.exe, etc.
If you look at the directory where you told Eclipse to look for a JDK, you must see a /bin directory with those .exe files in it. If you don't, you know why the error message.
Make sure you downloaded a JDK and point Eclipse to it.
One more check: see if you can start Glassfish without Eclipse. You're ignorant of two things if you're learning both at the same time. Leave one unknown out of the equation until you can make Glassfish run on its own.
You need a JAVA_HOME environment variable. What's it pointing to? If you don't have one, create it.
For other people like me who still have a problem, try to be careful in your JRE Definition :
Don't use this : C:\Program Files\Java\jdk1.6.0_29\jre
but this : C:\Program Files\Java\jdk1.6.0_29
and Glassfish will eventually work.
It took me a while to find where this is configured in eclipse so I'll note it here for everyone:
Window menu > Preferences dialog > Server section > Runtime Environments subsection.