Questions tagged [spring-roo]

Spring Roo is a lightweight tool aimed at developer productivity. Via an intuitive command line interface it supports operations such as Java web project creation, persistence configuration and view scaffolding. Roo creates a Java web project that uses the Spring framework, and leverage some best well known practices in Java development such as dependency injection, aspect oriented programming, object/relational mapping (O/RM).

spring-roo
Filter by
Sorted by
Tagged with
2 votes
1 answer
673 views

Restarting a Roo-application flushes its correspondant MySQL-table

I've got a Roo-project. Its data is persisted into a MySQL-database (via Hibernate). When I restart Tomcat the Roo-applications correspondant MySQL-table gets completely flushed. All data which is ...
Hedge's user avatar
  • 16.5k
2 votes
1 answer
3k views

Weird failure when creating a new Maven project

I'm using Spring Tool Suite (latest version) and whenever I do New project -> Maven Project and choose maven-archetype-webapp as my archetype I get the following weird error in my pom file. Failure ...
Eugen's user avatar
  • 1,543
2 votes
1 answer
3k views

Spring roo is not working

I am currently working on windows 7, 64 bits. I installed a clean version of sts 2.7.2 with spring roo and at first everything was working flawlesly. Later, I tried to install the standalone version ...
tsunade21's user avatar
  • 3,462
2 votes
1 answer
1k views

Change default homepage for Roo generated app using SpringMVC

By default when the web app starts it starts with the home page generated by roo with view name as "index" Suppose i add new custom controller using following command, web mvc controller ~.web....
Rahul's user avatar
  • 23
2 votes
5 answers
11k views

Spring MVC Homepage Controller

I have generated some pages using Spring Roo, and I need to show some items from database on the homepage of the application. So how can I pass model with data to homepage, Roo has added following ...
Zeronex's user avatar
  • 434
2 votes
3 answers
1k views

Spring Roo - Command 'service' not found

I'm new to Roo (and Java in general). I'm following Hantsy's tutorial and am running in to problems trying to create the service. roo> service --entity ~.model.Conference --interface ~.service....
Sameera's user avatar
  • 1,035
2 votes
2 answers
356 views

Spring Roo @Transient not working

these are the frameworks that I'm using: spring MVC 3.2.3, Roo 1.2.4 and ava 1.7. I have added a Transient field to Item domain as follow: @Transient private Long hierarchyNbr; And on saving the ...
Jrr's user avatar
  • 167
2 votes
3 answers
4k views

GeneratedValue with oracle and hibernate does not work

I am facing an issue with the GeneratedValue annotation in my project with Oracle XE database. The value simply does not get generated - I keep getting the error when trying to insert rows in the ...
Vladimir Fedorov's user avatar
2 votes
3 answers
751 views

Is there AspectJ TypePattern for all classes (not interfaces)?

I'm trying to use AspectJ to automatically add a logger field to all my classes to avoid me having to code boiler plate logger info in each class individually. This would seem to me like a fairly ...
Eric B.'s user avatar
  • 24k
2 votes
3 answers
747 views

Including dojo/dom library to Spring Roo

How is it possible to include and use the dojo/dom library in Spring roo. This: <script type="text/javascript"> dojo.require('dojo/dom'); dojo....
balteo's user avatar
  • 24.1k
2 votes
1 answer
14k views

Cannot create JDBC driver of class 'org.postgresql.Driver' for connect URL postgres://username:password@localhost:5432/dbname

I have deployed two Spring roo application on Tomcat 7 server both have database connection while hitting any service of application I am getting below exception Cannot create JDBC driver of class '...
Mayur's user avatar
  • 904
2 votes
2 answers
473 views

Spring Roo - 'JDBC driver not available for 'net.sourceforge.jtds.jdbc.Driver'

I am fairly new to Spring Roo and have a problem with establishing a connection to a MSSQL database. I am using Spring Tool Suite and Roo Version 1.3.1. When I try to test the connection to the ...
YellowSub's user avatar
  • 179
2 votes
2 answers
819 views

NullPointerException at org.springframework.roo.project.packaging.WarPackaging.createOtherArtifacts(WarPackaging.java:41)

Creating a project with Spring ROO in STS: roo> project --topLevelPackage z --projectName z --java 7 --packaging WAR Created ROOT\pom.xml Created ROOT\src\main\resources Created ROOT\src\main\...
J.F.'s user avatar
  • 403
2 votes
1 answer
674 views

Database Reverse Engineering (DBRE) Add-On. Schema(s) do not exist or does not have any tables

I am try using Roo Database Reverse Engineering (DBRE) Add-On revert my MYSQL data base . when i introspect the database using command database introspect --schema demohibernate I get error ...
Tung Vo's user avatar
  • 2,443
2 votes
1 answer
2k views

Modify how the generated views look like with Spring Roo without manually change each one post-creation?

A simple question. How may I change how Spring Roo generates it's views so I do not need to change them post-creation? If I were to follow the tutorial it would look like this, they however change the ...
Simon Zettervall's user avatar
2 votes
1 answer
1k views

Spring Roo error with command Perform Package

I am new to Java and Spring Framework and using Spring roo in STS 3.1.0.RELEASE and Tomcat 7. Following is log.roo: // Spring Roo 1.2.2.RELEASE [rev 7d75659] log opened at 2012-11-30 20:15:11 ...
Simpanoz's user avatar
  • 2,809
2 votes
1 answer
138 views

what are the requirements for spring insight to work on cloudfoundry with a spring app

I have a spring mvc generated app (through ROO) running in cloudfoundry. I could also deploy spring insight into it. but my app shows up with "Insight: not supported on this stack". Shouldn't it ...
theToaster's user avatar
2 votes
1 answer
1k views

Spring Roo , jQuery, jQueryMobile

I am attempting to use jQuery Mobile in Spring Roo. When I login to my application the application displays the source code for the last included javascript file. Take a look at mjquery-scripts....
Timothy Jeffcoat's user avatar
2 votes
3 answers
5k views

Spring/roo custom finder

I want to create a custom finder (being a web development veteran but a complete first-timer at Java, Spring, AND Roo). The first method below is from my "Asset" view controller class. It's what ...
Dan Ray's user avatar
  • 21.7k
2 votes
2 answers
4k views

SpringSource Tool Suite (STS) install into existing Eclipse install via the update site not working

I'm trying to install SpringSource Tool Suite into an existing Eclipse install (3.7 Indigo). Following the update site manual from SpringSource, everything runs ok, however I cannot find any way to ...
NightWolf's user avatar
  • 7,764
2 votes
3 answers
256 views

How to rollback commands in Spring Roo?

I realise that this has been asked before but the thread seems about 9 months old. Just want to check if the newer versions have added this capability. I seemed to have goofed up with one command and ...
Nilesh's user avatar
  • 4,157
2 votes
3 answers
1k views

Grails/Roo for a .Net developer

I am currently picking up Grails and Roo. The vast majority of training materials appear aimed at new developers or existing Java developers. Does anyone know of any guides, resources or tips for ...
Kynth's user avatar
  • 2,607
2 votes
1 answer
3k views

How can get the object in thymeleaf select option?

Here in autocomplete I get the Product name as expected. I want to do some calculation based on the product selected. But in doCalculation function i'm getting id instead of 'price'. So calculation ...
Gnik's user avatar
  • 7,292
2 votes
1 answer
2k views

Where is Spring Roo console in IntelliJ nowadays?

I saw many messages about Spring Roo console in IntelliJ, but can't find any traces of Roo in reality: Where is it? Or what is instead of it?
Dims's user avatar
  • 49.2k
2 votes
1 answer
426 views

How to modify the results displayed by the loupe component of gvNIX

Is there any way to modify the results (that is, the caption) displayed by the loupe component of gvNIX? I create the loupe component with the following commands: web mvc loupe setup web mvc loupe ...
dcervera's user avatar
2 votes
1 answer
3k views

Spring HashMap Form

I am creating an application with Spring Roo for generate documents. First of all the user create a document: public class Document { @NotNull private String titleDocument; @OneToMany(cascade ...
Pedro Gonzalez's user avatar
2 votes
1 answer
3k views

How to order hashset in Jackson? @JsonPropertyOrder did not work

I have two entity, Survey and Information. Survey Entity: @RooJavaBean @RooToString @RooJpaActiveRecord(table = "information") @JsonPropertyOrder({ "seq"}) public class Information { @NotNull ...
Wong Kin Chung's user avatar
2 votes
3 answers
3k views

Spring Roo Jpa Setup fails, maven-eclipse-plugin issue?

I'm using spring roo version 1.2.3. Just a few days ago, the project creation with any package worked fine. But recently, if I create a project with WAR or POM packaging, then the Jpa Setup command ...
QuestionEverything's user avatar
2 votes
2 answers
2k views

Dynamically reacting to changes in select

I'm building a Spring MVC based webapp in which I'll be using several drop-down menus. What I'm trying to accomplish is that when the user selects one of the available options, a description of that ...
Eugen's user avatar
  • 1,543
2 votes
1 answer
856 views

File upload on form:update with Spring Roo

I'm struggling with the file upload on form:update with spring roo. For the creation part, I used a form:multi tag provided by Jose Delgado here. The custom form:multi tag adds the enctype="...
user19304's user avatar
2 votes
2 answers
2k views

Unable to setup Spring Security with JSF in Spring Roo

I'm using the script command in spring roo to create an application I'm working on. This is the roo script I'm using. project --topLevelPackage is.kdh.cyberdojo --projectName cyberdojo --java 6 -...
Gunnlaugur's user avatar
2 votes
2 answers
1k views

Google App Engine with Spring Roo

Here is the Roo script that I am running. Using version spring-roo-1.2.2.RELEASE from the shell both in terminal and in STS. persistence setup --provider DATANUCLEUS --database GOOGLE_APP_ENGINE --...
Mouscellaneous's user avatar
2 votes
2 answers
4k views

Websphere 7 - universal match pattern ('/**') is defined before other patterns

I have generated a spring project using Roo, and used the security setup addon to add in the spring security. The security works fine on Tomcat 7, but am running into the following problem when trying ...
Isaac's user avatar
  • 23
2 votes
1 answer
335 views

Build reusable modified / created columns for Hibernate

Is it possible to re-use defined columns in Hibernate? I have about 20 tables, each one requiring at least modified and created and some other fields which are the same for all these columns. I've ...
Jan Vladimir Mostert's user avatar
2 votes
1 answer
894 views

Can i modify setter getter in xx_Roo_JavaBean.aj through xx.java in spring-roo?

below is a sample class: AAAA.java 1 package tp.domain; 2 3 import org.springframework.beans.factory.annotation.Value; 4 import org.springframework.roo.addon.javabean.RooJavaBean; 5 ...
user1268200's user avatar
2 votes
1 answer
3k views

How to call method in file .aj in spring roo project?

How to call method in file .aj in spring roo project? e.g. How to call method "Employee.findAllEmployees()" in Employee_Roo_Jpa_ActiveRecord.aj from method callMethod() in Employee.java? file: ...
user1268200's user avatar
2 votes
1 answer
5k views

Spring 3 / Hibernate - execute DB dump during runtime

I am developing a application with spring roo, which uses spring 3 and hibernate. Due to the fact that the Backend is built to be not a productive one, I net an option to set the data back to a dump. ...
Alexander's user avatar
  • 7,218
2 votes
1 answer
789 views

Spring Roo v.s. Maven 2 Archetypes

I want to implement a tool that generates web service application, based on a WSDL file. The idea is to ask the user questions and to generate an application with features based on those questions. ...
i000174's user avatar
  • 1,167
2 votes
1 answer
1k views

Update entity from non-owner side in bi-directional many-to-one relationship

I'm defined a bi-directional many-to-one relationship between two entities in Spring Roo. @RooEntity public class Car { @OneToMany(mappedBy="car") private Set<Wheel> wheels = new HashSet&...
Hedge's user avatar
  • 16.5k
2 votes
2 answers
251 views

Is there a library behind Spring roo's text-based interface?

I would like to create my own text based interface. Did spring roo create their text based interface from scratch or did they use a library?
JavaRocky's user avatar
  • 19.6k
2 votes
3 answers
3k views

Error when executing "perform tests" in Roo

I'm using Spring Roo in STS and when I run the command "perform tests" I get the following error: Cannot run program "mvn.bat" (in directory "C:\SS workspace\hello"): CreateProcess error=2, The ...
Neets's user avatar
  • 4,144
2 votes
1 answer
1k views

DBRE Spring Roo problem

I'm trying to use Spring Roo for the first time to generate the code using the reverse engineering. After installing the Postgresql addon by: osgi install --url http://spring-roo-repository....
sboubaker's user avatar
2 votes
2 answers
5k views

Creating a Many-to-Many Relationship Using Spring Roo

Can anyone direct me how to create a many-to-many relationship using the spring roo framework? I've been trying to implement this relationship and can't seem to get through with it. Anyone knows of ...
pundit's user avatar
  • 770
2 votes
3 answers
3k views

org.apache.felix.framework.cache.BundleArchive: Unable to create archive directory

googling I gound that this error is shown when windows can't run a .bat I'm getting this when I'm running roo comand in my workspace. OS -> windows 7, 32 bits jdk -> jdk1.6.0_22 roo -> spring-roo-1....
Blanca Hdez's user avatar
  • 3,543
2 votes
2 answers
4k views

javax.persistence in java-6-openjdk

I am trying to perform the build of a Spring Roo project (= Spring MVC + aspectj + hibernate) on my hudson integration server. The project is configured tu use <dependency> <groupId>...
Nicolas's user avatar
  • 277
2 votes
1 answer
5k views

AJC throws error no sources specified when compiling in Eclipse

I am trying to compile a Spring-generated Maven project in Eclipse with maven-eclipse-plugin. Maven throws the following error during compile: [ERROR] Failed to execute goal org.codehaus.mojo:...
Manuel M's user avatar
  • 859
2 votes
1 answer
165 views

gvNIX Typical security: no feedback in signup form UI of binding errors

When using Typical security, errors in the signup form are not shown in the form. There is no feedback on what went wrong, only an empty screen. A solution for empty form have I provided at the ...
dhmc's user avatar
  • 313
2 votes
1 answer
2k views

Spring Roo and Maven Project Build Lifecycle Mapping

I downloaded Eclipse IDE for Java EE Developers 4.3.2 and than I installed the following plugins: Spring Tool Suite - http://dist.springsource.com/release/TOOLS/update/e4.3/ GWT - http://dl.google....
user977828's user avatar
  • 7,499
2 votes
2 answers
2k views

Spring roo adding custom controller and JSP

I have created a spring roo application with 3 entities. Respective controllers, jsp/views with pagination are generated by roo which is working fine. Then I have developed a custom service to ...
AmbGup's user avatar
  • 771
2 votes
2 answers
6k views

Eclipse, Maven & Spring Roo 1.2.4.RELEASE: Missing artifact org.springframework.roo:org.springframework.roo.annotations:jar

I am trying to create and compile a project using Spring Roo 1.2.4... I am using: - Spring Roo 1.2.4.RELEASE - Spring STS 3.4.0.RELEASE - Maven 3.0.5 Spring Roo console seams to work. But Maven ...
Ariel Carrera's user avatar

1
3 4
5
6 7
26