Mar 15th, 2012, 05:55 AM
Spring Roo Problem with STS .. need help :(
Well .. hello all,
I'm new to Spring, so please don't be to hard with me.
I downloaded STS 2.9.0 Release .. and now that i try to open up a new Spring Roo Project .. it just
doesn't work at all.
It doest go any further than ... Creating Roo project: execute Spring Roo 'project' command .. and i don't have
any clue why is that. I also tried to de the Roo Tutorial with the pizzashop over the console .. and as i want to perform eclipse .. to make it an importable project .. nothin happens.
At this point i am very frustrated .. i mean .. if there is an option with Create a new Roo Project, why isnt it working ..
... hope someone can help .. because i don't have any idea what might be wrong
Mar 15th, 2012, 08:29 AM
Does a window inside STS with first commands like "project ...." closed? If so, please run
"development mode true", than you will see what is going on.
I'm pretty sure, ROO downloading dependency jars in background, using Maven plugin or itself.
So, if that popup window has been closed itself, STS works, just some background process.
Mar 15th, 2012, 08:46 AM
If i try to create a spring roo project .. STS open up a window .. in order to create it .. i waited at least 45 min nothin happened .. have to crash STS ... now i ran STS in a shell then create a roo proj :
the main error message is :
[Fatal Error] :1:1: Premature end of file.
at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
at com.springsource.sts.roo.core.RooCoreActivator.inv okeMethod(RooCoreActivator.java:92)
...... followed by multiple ones
has anyone a hint ?
Mar 15th, 2012, 09:00 AM
Could you please remove all things from Maven repository folder and Roo cache folders?
May be this error is related with partitially downloaded JAR-files. I had same thing, had to clear Maven repository and Roo cache folders.
Mar 15th, 2012, 09:44 AM
i did ..
well i also already removed it .. downloaded it again ... the cocoa version
doesn't work aswell .. I'm pretty disappointed .. if thats the way how a project can be start faster ..
Mar 15th, 2012, 09:58 AM
by default Maven repository folder located at user's home folder, as hidden .m2 folder.
Exit from STS, remove please .m2 and start STS again. This folder will be recreated. And, you could also check eclipse .log file, there could be the reasons of your troubles.
Log file is located in workspace folder - .metadata (hidden folder again) - .log
Also, if you are using proxy, you should edit maven..../conf/settings.xml and add proxy there. And in STS - check proxy settings too.
Apr 7th, 2012, 04:51 PM
I also get funny problems with STS 2.9 and Roo project.
On win it do not create proper project, just jar files and nothing else.
On lin its 1 in 4 - 2 times I get partial project (and some exception in console in which I run STS), 1 in 4 i get maven downloading something (and then nothing happens), and 1 i 4 it create proper project.
(I would settle just for 25% succes rate however EGit is also reporting error --- this time via NORMAL dialogs not just sillent nothing...)
So my question is:
Where are logs in which I will see those errors? (Under lin I see some while eclipse invoke roo commands, so I want to see those errors too)
Last edited by przemo_li; Apr 8th, 2012 at 01:22 AM.
Apr 8th, 2012, 05:21 AM
as I know, log file located in workspace/.metadata - .log
Please note, when you create a project in 2.9, please use xxx.xxx.xxx as java package, with just xxx.xxx it doesn't works (by me).
Apr 8th, 2012, 06:31 AM
Ups. It do not work I still get those (when Roo is creting project):
java.lang.Exception: Unable to lock bundle cache: java.nio.channels.OverlappingFileLockException
Last edited by przemo_li; Apr 8th, 2012 at 07:24 AM.
May 9th, 2012, 10:32 AM
ty so much !!
Originally Posted by shvaber
This worked for meh