Commit graph

354 commits

Author SHA1 Message Date
Siarhei Skavarodkin
fa57226c78 Merge ddc89639e0 into 3945cbaeba 2015-05-20 13:49:26 +00:00
michaelisvy
3945cbaeba Fixing #54
Petclinic doesn't work with Java 8
2015-05-20 21:43:19 +08:00
michaelisvy
271225c29a libs upgrade 2015-05-13 01:07:57 +09:00
michaelisvy
c8e360298b fixed bug: vets.html did not display properly 2015-05-13 01:07:46 +09:00
michaelisvy
91ed548481 removing xdd version number
so we always use the latest in the classpath
2015-05-12 19:55:15 +08:00
michaelisvy
4c859ed512 minor update on comment 2015-05-12 19:52:00 +08:00
michaelisvy
a59505897d removed unused dependency to spring-jms 2015-05-12 19:11:11 +08:00
michaelisvy
80c1d243a1 Removed RSS/rome and added JSon
RSS is becoming outdated, JSon is a better example
2015-05-12 19:07:35 +08:00
michaelisvy
c2c404bff5 JSon support
- added json-path to pom.xml
- added a simple test for Veterinarians
2015-05-12 18:55:24 +08:00
michaelisvy
ecd9ccb227 fixed POM configuration issue for Spring Data 2015-05-11 09:44:33 +08:00
michaelisvy
f958964c3c moving to Java 1.8 by default 2015-05-11 08:39:59 +08:00
michaelisvy
9914056a81 removing test that causes lots if issues
Happens since introduction of new mvc namespace tag for
content-negotiation
2015-05-10 06:45:39 +08:00
michaelisvy
f760aaf9d5 removing unneeded dependency-management block 2015-05-10 06:44:17 +08:00
michaelisvy
b20ba1aeef Merge branch 'Cobertura' 2015-05-10 06:35:43 +08:00
michaelisvy
694390d0c2 migrated assertion to assertJ 2015-05-10 06:33:10 +08:00
michaelisvy
38a5b28e29 Improving/fixing comments 2015-04-14 09:27:41 +08:00
michaelisvy
aeec7104ba Adding Maven config for Cobertura 2015-04-14 09:27:25 +08:00
michaelisvy
74d61b38e0 update libraries 2015-03-26 17:04:22 +08:00
michaelisvy
cc4ae966c6 removed deprecated Mapper in Jdbc 2015-01-21 18:22:46 +08:00
michaelisvy
d8a2b5c737 cleanup on tests 2015-01-20 22:25:24 +08:00
michaelisvy
1dfc3b7a3a Migrated test assertions to AssertJ 2015-01-20 22:02:34 +08:00
michaelisvy
35a179f88b latest versions and imports cleanup 2015-01-20 21:21:27 +08:00
michaelisvy
3e4512781e Sonar review: made code more readable 2015-01-16 09:25:36 +08:00
michaelisvy
1c9b401248 cleaned up if statement in controller 2015-01-16 09:22:40 +08:00
michaelisvy
5c9ab6bd06 test methods:used should/shouldNot 2015-01-16 09:08:22 +08:00
michaelisvy
7080682d3e workaround because there seems to be a conflict
There seems to be a conflict between the following:

1) New MVC namespace syntax:
<mvc:content-negotiation use-not-acceptable="true">
	    	<mvc:default-views>
	      		<bean class="org.springframework.web.servlet.view.JstlView">
	      			<property name="url" value="" />
	      		</bean>
	    	</mvc:default-views>
	  	</mvc:content-negotiation>

2) Inside my Unit test:
ResultActions actions =
this.mockMvc.perform(get("/vets.xml").accept(MediaType.TEXT_XML));
        actions.andDo(print()); // action is logged into the console

        actions.andExpect(status().isOk());
2014-12-05 13:41:55 +08:00
michaelisvy
ecefae2073 Upgraded to latest Spring Data and AspectJ 2014-12-05 13:40:07 +08:00
michaelisvy
d7b100f90d Removed 'Help' from menu
We were planning to create a ‘help’ but it never happened
2014-11-28 13:54:31 +09:00
michaelisvy
49c39b65dc renamed headTag.jsp -> staticFiles.jsp 2014-11-28 13:52:09 +09:00
michaelisvy
85c8237fb5 added comment on <mvc:default-servlet-handler /> 2014-11-28 13:40:46 +09:00
michaelisvy
6e079b23bb Error control on description was missing
Took that opportunity to use custom tag (14 lines versus 2 lines)
2014-11-28 13:25:17 +09:00
michaelisvy
f0bf692767 Moving "visit" object to request scope
Previously was in session scope (doesn’t scale as well)
2014-11-28 13:19:25 +09:00
michaelisvy
92e7ab43be Simplified ContentNegoViewResolver config
- Now using namespace, much simpler (11 lines instead of 27)
- Just a minor issue with:
<bean class="org.springframework.web.servlet.view.JstlView">
	<property name="url" value="" />
</bean>
(should investigate later if we can remove “url” attribute
2014-11-28 12:45:57 +09:00
michaelisvy
8929d373ec upgraded to Spring Data 1.7.0 2014-10-18 23:39:29 +08:00
michaelisvy
475f5f5349 migrated to Spring 4.1.1.RELEASE
Also had to make changes because Spring now uses com.rometools for RSS
feeds
See here for more details: https://jira.spring.io/browse/SPR-11893
2014-10-18 23:36:15 +08:00
michaelisvy
f5cf426e43 upgraded to Joda Time 2.5 2014-10-18 22:28:30 +08:00
michaelisvy
74f683aaa9 Fixed typo 2014-10-18 22:13:01 +08:00
Siarhei Skavarodkin
ddc89639e0 fix for JasperException when java8 is used
When java8 is used as default JDK the application throws exception when you try to access it.
Consider the following sequence:

1. java -version

        java version "1.8.0_20"
        Java(TM) SE Runtime Environment (build 1.8.0_20-b26)
        Java HotSpot(TM) 64-Bit Server VM (build 25.20-b23, mixed mode)

2. git clone https://github.com/komarevsky/spring-petclinic.git
3. cd spring-petclinic
4. mvn clean install
5. mvn tomcat7:run
6. open in browser "http://localhost:9966/petclinic/"

You will see the following:

HTTP Status 500 - Unable to compile class for JSP:

type Exception report

message Unable to compile class for JSP:

description The server encountered an internal error that prevented it from fulfilling this request.

exception

org.apache.jasper.JasperException: Unable to compile class for JSP:

An error occurred at line: 1 in the generated java file
The type java.util.Map$Entry cannot be resolved. It is indirectly referenced from required .class files

Stacktrace:
	org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:102)
	org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:331)
	org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:469)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:378)
	....

Changing tomcat7-maven-plugin version from 2.0 to 2.2 helps to fix it.
2014-09-24 09:49:37 +03:00
Mic
0a03a05590 moved to AspectJ 1.8.2 and Dandelion 0.10.1 2014-08-26 10:51:01 +08:00
Mic
df1596b78c using latest versions of hibernate, spring-data, joda... 2014-08-08 13:55:01 +08:00
Mic
9f6814d7db updated versions of Spring Data and AspectJ 2014-07-02 05:55:16 +08:00
Mic
a04d789db9 versions upgrade. 2014-06-05 00:01:17 +08:00
michaelisvy
ce50e80736 Merge pull request #42 from bram-atmire/documentation-fix
update db_readme.txt to reflect properties rename
2014-06-02 08:41:51 +08:00
michaelisvy
45fb0c4e53 Merge pull request #44 from tduchateau/master
Updated README with the Dandelion-Datatables configuration file
2014-06-01 21:05:21 +08:00
Thibault Duchateau
fba9e78b92 Updated README with the Dandelion-Datatables configuration file 2014-06-01 12:50:08 +02:00
michaelisvy
5c4aaa60f3 Merge pull request #43 from tduchateau/master
Upgraded Dandelion-Datatables to the latest release (v0.10.0)
2014-06-01 18:28:01 +08:00
Thibault Duchateau
e99c67a4bb Upgraded Dandelion-Datatables to the latest release (v0.10.0)
* The old datatables-servlet2 dependency has been removed from the pom.xml
 * Some attributes have been renamed (e.g. paginate => pageable)
 * Starting from the v0.10.0, all web components (servlet, filter) must be explicitely declared in the web.xml file. That's why I added the following declaration: DandelionFilter, DandelionServlet and DatatablesFilter
 * Added a new datatables.properties file in order to disable the asset management brought by Dandelion-Core. This is equivalent to the old cdn=true table attribute
2014-05-31 11:02:32 +02:00
Bram Luyten
1341c12d1f update db_readme.txt to reflect properties rename
jdbc.properties was renamed to data-access.properties, but this file still referred to the old name.
2014-05-11 18:37:42 +02:00
Mic
ce7e6e8bdc updated URL on cloud foundry 2014-04-12 23:54:45 +08:00
Mic
8ee6c79fe0 updated lib versions 2014-04-12 23:29:02 +08:00