No option to create Roo project is Spring Tool Suite (STS version 3.6.1) - eclipse

There seems to be no option in STS 3.6.1 to create a Roo app. While Googling I noticed this question for the same problem in version 3.5.0, and the sloution was to install Roo to STS manually as it is no longer included. Sweet, so I did that.
I installed it from the STS dashboard and after installation was complete and STS was re-started the dashboard shows this (so the installation was successful):
And lo and behold... still no option to creat a Spring Roo app!
So... how can I find the option to create a Spring Roo app from within Spring tool Suite?

You must install "Spring IDE - Roo Extension" too:
Then "Create Roo Project" will be ready:

Try to use Help -> Install new software And select SpringSorce Update Site to install Spring-Roo related features.
Anyway, you could run the Spring Roo shell on the systems shell to create the project (STS is great tool, but it isn't required to work with Roo).
Good luck!

Related

What is the difference between Eclipse with Spring IDE plugin and Spring Tool Suite alone?

What's the difference between these
Eclipse with the Spring IDE plugin
Spring Tool Suite (STS) alone
I ask because STS says it's built on top of Eclipse, and I wonder what differences it has over simply using a plugin that adds similar functionality to "vanilla" Eclipse.
It's true, STS is built on top of Eclipse. The difference is only related to another products support from the STS installation, like Roo, Pivotal tc Server, Cloud Foundry and getting started guides, but you could also include this features in your Eclipse installation.
So STS gives a complete solution around Spring features and simplifies the developer environment install, that's the key difference.
As Martin Lippert explains in the forums:
"So you can end-up having the same features in STS and your existing
Eclipse installation after installing the STS features into it."
You could find more details on the Spring forums.
Details on features: STS features and Spring IDE plugin features.
Spring Tool suite has ready to go features specially designed to spring supported projects and cloud environment. And Eclipse is more generic where we've to add the plugins and extensions for our platform setup.
There is already an article about this in DZone Spring IDE and the Spring Tool Suite - Using Spring in Eclipse.
While the Spring IDE project provides a set of plugins for the Eclipse
IDE, the Spring Tool Suite comes as a ready-to-use distribution of the
latest Eclipse releases with the Spring IDE components pre-installed.
This includes the tc Server integration for Eclipse (another IDE
extension that is provided by Pivotal as an open-source project) and
various other additions to Eclipse that turn the pure Eclipse IDE into
a ready-to-use, best-of-breed environment for enterprise Spring
application development.

Spring Roo can't run with shortcut `Run as Server`

I have this SpringRoo repository I have just cloned and imported on my Eclipse workspace. The Eclipse I'm using now is a newly download Eclipse Standard 4.3.2. I have installed the WTP (3.5.2) and SpringSource (all of them) plugins. Also I have installed a new Apache Tomcat 7 on my terminal.
The problem is that after importing the SpringRoo project (via Maven) on the workspace and resolved some issues with pom.xml, I can't get to run the application because I can't see Run As Server option on the Run As menu. How could I get the project/eclipse to have this feature again?
Spring Roo doesn't run in a server ... you should read the reference guide and understand what is Roo.
Any way, you can "Run As ..." the applications you create with Roo, not Roo itself.

Where to download Spring Roo 1.2.4 runtime?

I'm running Eclipse Juno 4.2 (upgraded from Indigo 3.7), with the Spring Tool Suite tools installed. A while ago I had installed Spring Roo 1.2.2.RELEASE, and configured the Roo plugin to point to the 1.2.2.RELEASE runtime.
I would now like to upgrade to Spring 1.2.4.RELEASE, but cannot find the runtime anywhere. I've looked on the Spring site, but cannot seem to find a download link to it anywhere.
So a few questions:
1) Is the runtime still required as a separate download and do I still need to configure Eclipse to point to it separately?
2) Where can I download the runtime from?
3) Why do I need the separate runtime? Why is STS/Eclipse not smart enough to use the Roo artifact that is included in my maven project?
I still don't why I need the separate runtime to configure Eclipse, however, I did finally find a download link for the latest ROO packages: http://docs.spring.io/downloads/nightly/release-download.php?project=ROO

Use Tomcat server with Hibernate and Springsource Tool Suite?

I just installed Springsource Tool Suite as a plugin to eclipse kepler. I need to develop database-driven-web applications with it. I have thought I could do that using hibernate, but the eclipse STS plugin that I found for hibernate seems to only work with jboss server. I want to work with tomcat 7 server. Can someone suggest a good way to use hibernate with STS eclipse and tomcat? Or is there a better way besides eclipse to do database integration with STS eclipse and tomcat? Links to download tools, and to modern tutorials with the current versions of each tool, would be greatly appreciated. I just created a new Spring MVC project using the template in STS eclipse kepler. It would be nice to have tutorials and tools that work with that toolset. Even a fully working database-driven web application sample code to study.
Your requirements as listed below:
Spring Tools Suite : http://www.springsource.org/downloads/sts-ggts (Choose the appropriate version)
For Tomcat 7 to be used on STS , you will need to download it from this link: http://tomcat.apache.org/download-70.cgi
Update to JDK 7. Link: http://www.oracle.com/technetwork/java/javase/downloads/index.html
To setup tomcat 7 in Spring Tools Suite (essentially Eclipse configured for Spring) use this link : http://www.coreservlets.com/Apache-Tomcat-Tutorial/tomcat-7-with-eclipse.html (Follow the same procedure for STS)
You will also need to install a DBMS. Try using MySQL . Download it from : http://dev.mysql.com/downloads/mysql/
Also if you decide to use Eclipse for Spring (I do.. :P ), use this : http://www.eclipse.org/downloads/packages/eclipse-ide-java-ee-developers/keplerr
If you decide to use Kepler, you will need to install STS plugin for Kepler. Try: http://marketplace.eclipse.org/content/spring-tool-suite-sts-eclipse-kepler-43#.UhwuRNJkOSo
Try the following link for your first project: http://www.mkyong.com/spring/maven-spring-hibernate-mysql-example/
EDIT: As a developer it is very essential to know what is the standard way of implementing a Spring+ORM application. It's practice to to include Maven as a dependency management tool. Follow the links:
Download Maven: http://maven.apache.org/download.cgi
Setup maven in Eclipse : Setting up new Maven In eclipse
Link to website using maven : Just Google.. :P
As for the no Maven part, try understanding why actually is maven used. Follow the link: http://www.tutorialspoint.com/spring/spring_environment_setup.htm , to setup a spring envirnoment without maven. When you use Hibernate, just add the necessary jars to WEB-INF/lib folder. As simple as that.
Hope it helps. :)

How to make spring roo project has dynamic web nature?

Hi I'm giving a try of Spring Roo, I have STS installed with eclipse.
if I do new-> Dynamic Web -> add spring roo nature, the spring roo shell keep showing message of "Not spring roo installed" (actually I have it installed in preference->spring roo)
if I do new->spring Roo project, the project generated is a java standard application and not a web application :S but the ROO console works
and I do "controller all --package ~.web" command it only generate web.xml but still missing the option run as.. -> server
screenshot: http://i54.tinypic.com/14mqu8h.jpg
any idea?
Please run the perform eclipse Roo command in your Roo Console on your project and see.
You should probably run your Roo project with m2eclipse addon installed. Use tomcat:run as your Maven goal.
There is a series of articles on the starting from the following link which would address most of your questions related to eclipse configuration.
http://blog.lckymn.com/2009/05/17/roo-so-cool-01/
Cheers!!!