spring-roo

Configure drools with spring. xsd errors

烈酒焚心 提交于 2019-12-06 04:47:43
I'm trying to create spring roo application with Drools. But I faced with errors in applicationContext.xml. Error: Multiple annotations found at this line: - Unable to locate Spring NamespaceHandler for element 'drools:execution-node' of schema namespace 'http://drools.org/schema/ drools-spring' - cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'drools:execution-node'. this is a piece of applicationContext.xml: <beans xmlns="http://www.springframework.org/schema/beans" xmlns:aop="http://www.springframework.org/schema/aop" xmlns:context="http

Spring MVC - Constraint validation with annotations - Error messages not displayed

孤街醉人 提交于 2019-12-06 04:46:05
I would like to be able to display my entity field constraints validation errors in the web interface. For example, I have the following constraints defined on my entity: @RooJavaBean @RooToString @RooJpaActiveRecord public class Member { @NotNull @Email @Column(unique = true) private String email; private String pseudo; @NotNull @Size(min = 6) private String password; @NotNull @Size(min = 2) private String firstName; @NotNull @Size(min = 2) private String lastName; @Temporal(TemporalType.DATE) @DateTimeFormat(pattern = "dd/MM/yyyy") private Date dateOfBirth; @NotNull @Enumerated private

How to add Spring roo on Spring Tools Suite

允我心安 提交于 2019-12-05 17:32:58
I 've installed sts but the create a new roo project does not exists, what i have to do to add spring roo? In the previous version i could create it but not in 3.5.0 In Spring tool suite, click on the Extensions link in the Dashboard. Search for Spring Roo and install it. STS 3.5.0 doesn't include Spring Roo. You must install it manually using the STS Dashboard. 来源: https://stackoverflow.com/questions/23365784/how-to-add-spring-roo-on-spring-tools-suite

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

China☆狼群 提交于 2019-12-05 15:08:42
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

Code Analysis Tools and Inter-Type-Declarations

吃可爱长大的小学妹 提交于 2019-12-05 11:39:24
问题 I have a maven project generated by Spring Roo and use several tools (checkstyle, pmd etc.) to collect information about my project. (namely I am using codehaus' sonar for this) Roo makes heavy use of AspectJ Inter Type Declarations (ITD) to seperate concerns like persistence, javabeans-getter/setters etc. These ITDs are woven in at compile-time so tools like checkstyle and pmd (who work on source-level) have a lot of false positives. The only solution I currently see, is to deactivate checks

com.sun:tools:jar:1.4.2 missing when running “perform eclipse” in roo

为君一笑 提交于 2019-12-05 11:10:46
When I run "perform eclipse" in Roo I get: roo> perform eclipse [INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [INFO] Building bugzter [INFO] task-segment: [eclipse:clean, eclipse:eclipse] [INFO] ------------------------------------------------------------------------ [INFO] [eclipse:clean {execution: default-cli}] [INFO] Deleting file: .project [INFO] Deleting file: .classpath [INFO] Deleting file: .wtpmodules [INFO] Deleting file: .component [INFO] Deleting file: org.eclipse.wst.common.component [INFO] Deleting file: org

Spring checkbox JSP Tag is broken when using Converter for type Boolean

∥☆過路亽.° 提交于 2019-12-05 10:22:07
I've set up a CRUD web application with Spring Roo and Spring MVC. My problem is: since I'm using a converter for localizing the displaying of boolean values the Spring JSP Tag checkbox is broken which means the checkboxes don't take the real value from the backing beans. They are always false and unchecked. I've done some research and probably found the error in the writeTagDetails method of org.springframework.web.servlet.tags.form.CheckboxTag . Here is the interesting part of this method: // the concrete type may not be a Boolean - can be String if (boundValue instanceof String) {

Can we use multipart and @RequestBody together in spring..?

安稳与你 提交于 2019-12-05 04:10:19
I want to create a API which can have parameter as multipart file and JSON object (@RequestBody). Please find following snippet while calling this API I am getting 415 HTTP error. If I remove "@RequestBody LabPatientInfo reportData" then it works fine. @RequestMapping(value={"/lab/saveReport"}, method={RequestMethod.POST}, consumes={"multipart/form-data"}, headers={"Accept=application/json"}) @ResponseBody public ResponseEntity<String> saveReport(@RequestParam(value="reportFile") MultipartFile reportFile, @RequestBody LabPatientInfo reportData) throws IOException { HttpHeaders headers = new

My Spring application leaks database connections whereas I use the default Roo configuration

非 Y 不嫁゛ 提交于 2019-12-04 18:49:42
I am encountering an serious issue with my application. It leaks database connections whereas I use the default Spring Roo datasource configuration as follows: <bean class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close" id="dataSource"> <property name="driverClassName" value="${database.driverClassName}" /> <property name="url" value="${database.url}" /> <property name="username" value="${database.username}" /> <property name="password" value="${database.password}" /> <property name="testOnBorrow" value="true" /> <property name="testOnReturn" value="true" /> <property name=

Spring/roo custom finder

情到浓时终转凉″ 提交于 2019-12-04 16:42:35
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 happens on your first hit to the asset administration page--it comes back with a view and a batch of the currently active assets. It works fine: @RequestMapping("/assets") public ModelAndView listAssets() { ModelAndView mav = new ModelAndView(); mav.setViewName("admin/asset"); Collection<com.myapp.model.Asset> assets = com.myapp.model.Asset.findAllAssets() ; mav.addObject("assets", assets); return mav;