spring-roo

websphere 7 (and Spring Roo) incompatible with javax.el.ELException

喜你入骨 提交于 2019-12-02 21:25:49
I have a application where the frontend is based on the Spring Roo 1.1.2 jspx files. Every think works fine in Tomcat 6, but if I deploy the same application in a Websphere 7 (class loader: parent last), then I get a exception: java.lang.ClassCastException: java.lang.NullPointerException incompatible with javax.el.ELException [13.04.11 09:53:55:493 UTC] 00000026 servlet E com.ibm.ws.webcontainer.servlet.ServletWrapper service SRVE0068E: Uncaught exception created in one of the service methods of the servlet /WEB-INF/layouts/default.jspx in application cyber. Exception created : com.ibm

Spring Roo Date Field with Current Timestamp

五迷三道 提交于 2019-12-02 19:31:15
问题 Most databases allow to have field with current timestamp (act as creation timestamp), for example in MySQL: CREATE TABLE t (ts TIMESTAMP DEFAULT CURRENT_TIMESTAMP) How to achieve this in Spring Roo? Can't find hint from Roo manual. Thanks. 回答1: This would be created with: field date --fieldName ts --type java.util.Date --persistenceType JPA_TIMESTAMP This will add: @Temporal(TemporalType.TIMESTAMP) to the field, which should cause the auto-generator to create a TIMESTAMP field. If you want

What is Spring Roo?

一世执手 提交于 2019-12-02 18:46:38
Despite all I've read, I still can't figure out what Spring Roo actually is , and that's after reading the first chapter of Spring Roo In Action, What is Spring Roo? ! I understand the motivation for simplifying the process of developing a Spring application, but what does Spring Roo actually do? Can someone summarize the contents of that first chapter, specifically how Spring Roo reduces the complexity of developing a Spring app? The authors will probably see this, so do a good job! Spring Roo is a toolchain for rapid development of java application using all, some or none of those

The £ sign is shown as a diamond with a question mark in the middle

爱⌒轻易说出口 提交于 2019-12-02 13:30:34
I'm creating a webapp which involves displaying financial data to the user. Being from the UK and using GBP £ for currency, this character is used a lot. However, every now and then, the £ is shown as a diamond with a question mark in the middle, and on the web page it throws an invalid charachter UTF-8 byte 1 of 1 byte string. Is there a UTF safe way to display the £ sign? Here is an example of what I am doing at the moment: "Rent Per Annum: £" + '${tenant.currentRent}' The particular problem can have at least the following one or more causes: The JSP file is not by the editor (Eclipse,

JDBC driver not available for 'org.postgresql.Driver' on Spring Roo

烂漫一生 提交于 2019-12-02 12:07:30
I am trying to use database reverse engineer ... See full Roo v1.3 script and UBUNTU env at this simple "hello" script . The error: Located add-ons that may offer this JDBC driver 2 found, sorted by rank; T = trusted developer; R = Roo 1.3 compatible ID T R DESCRIPTION ------------------------------------------------------------- 01 Y Y 9.1.0.901-1_0001 Postgres #jdbcdriver... 02 Y Y 9.1.0.901_0001 Postgres #jdbcdriver... -------------------------------------------------------------------------------- [HINT] use 'addon info id --searchResultId ..' to see details about a search result [HINT]

Spring Roo Date Field with Current Timestamp

点点圈 提交于 2019-12-02 09:49:31
Most databases allow to have field with current timestamp (act as creation timestamp), for example in MySQL: CREATE TABLE t (ts TIMESTAMP DEFAULT CURRENT_TIMESTAMP) How to achieve this in Spring Roo? Can't find hint from Roo manual . Thanks. Simon Elliston Ball This would be created with: field date --fieldName ts --type java.util.Date --persistenceType JPA_TIMESTAMP This will add: @Temporal(TemporalType.TIMESTAMP) to the field, which should cause the auto-generator to create a TIMESTAMP field. If you want more control, you can always annotate the generated entity field further with @Column

How to modify the attributes of a returned object using AspectJ?

做~自己de王妃 提交于 2019-12-02 06:38:57
问题 I have a class that looks like follows (from Spring Roo DataOnDemand) which returns a new transient (not persisted) object for use in unit testing. This is what the code looks like after we do a push-in from Spring Roo's ITD. public class MyObjectOnDemand { public MyObjectOnDemand getNewTransientObject(int index) { MyObjectOnDemand obj = new MyObjectOnDemand(); return obj; } } What I need to do is make additional calls on the returned object reference to set additional fields that Spring Roo

How to modify the attributes of a returned object using AspectJ?

元气小坏坏 提交于 2019-12-02 04:24:59
I have a class that looks like follows (from Spring Roo DataOnDemand) which returns a new transient (not persisted) object for use in unit testing. This is what the code looks like after we do a push-in from Spring Roo's ITD. public class MyObjectOnDemand { public MyObjectOnDemand getNewTransientObject(int index) { MyObjectOnDemand obj = new MyObjectOnDemand(); return obj; } } What I need to do is make additional calls on the returned object reference to set additional fields that Spring Roo's auto-generated method is not taking care of. So without modifying the above code (or pushing it in

GWT + JSTL in development mode — is it possible?

回眸只為那壹抹淺笑 提交于 2019-12-02 00:00:02
问题 I have a GWT app (generated by roo) that I have decided to secure with Spring Security. Roo generates a login.jspx page as part of the security setup and this jspx uses some basic JSTL taglibs. When running in development mode, the underpinning Jetty server apparently does not like this. With the following Maven dependencies <dependency> <groupId>javax.servlet.jsp.jstl</groupId> <artifactId>jstl-api</artifactId> <version>1.2</version> <classifier/> </dependency> <dependency> <groupId>org

Why do I get a NullPointerException when initializing Spring

吃可爱长大的小学妹 提交于 2019-12-01 20:40:29
I've got a problem running a batch job on my server, whereas it runs fine from Eclipse on my development workstation. I've got my Spring environment set up using Roo, made an entity, and make a batch that does some work, and test it well on my develompent box. I initialize my context and do the work, but when I run my batch on the server, the context isn't initialized properly. Here's the code: public class TestBatch { private static ApplicationContext context; @SuppressWarnings("unchecked") public static void main(final String[] args) { context = new ClassPathXmlApplicationContext("/META-INF