|
BuildAndInstall
short manual to building and installing the Spring Finance Manager sample application
Featured Source AccessThere should be one tag per article released. svn checkout http://spring-finance-manager.googlecode.com/svn/tags/FinanceManager-0.X/ (X should correspond to the version you wish to download) Of course this assumes that you have a SVN client installed. Alternatively you can just download the project sources from the download section of the 'Project Home' Web site. Compile and build projectThen in a next step you need to compile or install the application via maven: cd FinanceManager-0.X mvn install This assumes you have maven 2.0.9 or higher installed. Test the projectTo run the tests separately, you can run: mvn test Build Eclipse project artifactsFinally, if you would like to import the project into Eclipse, IntelliJ, or NetBeans, you need to install the relevant plugin in the project pom.xml. By default, the pom contains the maven plugin for Eclipse: mvn clean eclipse:clean eclipse:eclipse Run ApplicationI have tested the application on Apache Tomcat version 6.0.18. |
► Sign in to add a comment
On http://localhost:8080/FinanceManager/person/form, Get:
Handler execution resulted in exception - forwarding to resolved error view: ModelAndView: reference to view with name 'uncaughtException'; model is {exception=org.springframework.beans.TypeMismatchException: Failed to convert value of type [java.lang.String] to required type [java.lang.Long]; nested exception is java.lang.NumberFormatException: For input string: "form"} org.springframework.beans.TypeMismatchException: Failed to convert value of type [java.lang.String] to required type [java.lang.Long]; nested exception is java.lang.NumberFormatException: For input string: "form" at org.springframework.beans.SimpleTypeConverter.convertIfNecessary(SimpleTypeConverter.java:50) at org.springframework.validation.DataBinder.convertIfNecessary(DataBinder.java:455) at org.springframework.web.bind.annotation.support.HandlerMethodInvoker.resolvePathVariable(HandlerMethodInvoker.java:464) at org.springframework.web.bind.annotation.support.HandlerMethodInvoker.resolveHandlerArguments(HandlerMethodInvoker.java:245) at org.springframework.web.bind.annotation.support.HandlerMethodInvoker.invokeHandlerMethod(HandlerMethodInvoker.java:135) at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.invokeHandlerMethod(AnnotationMethodHandlerAdapter.java:336) at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.handle(AnnotationMethodHandlerAdapter.java:323) at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:824) at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:769) at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:613) at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:525) at javax.servlet.http.HttpServlet.service(HttpServlet.java:617) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:71) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter.doFilterInternal(OpenEntityManagerInViewFilter.java:113) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) at java.lang.Thread.run(Thread.java:636) Caused by: java.lang.NumberFormatException: For input string: "form" at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) at java.lang.Long.parseLong(Long.java:438) at java.lang.Long.valueOf(Long.java:535) at org.springframework.util.NumberUtils.parseNumber(NumberUtils.java:158) at org.springframework.beans.propertyeditors.CustomNumberEditor.setAsText(CustomNumberEditor.java:116) at org.springframework.beans.TypeConverterDelegate.doConvertTextValue(TypeConverterDelegate.java:356) at org.springframework.beans.TypeConverterDelegate.doConvertValue(TypeConverterDelegate.java:332) at org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:167) at org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:101) at org.springframework.beans.SimpleTypeConverter.convertIfNecessary(SimpleTypeConverter.java:47) ... 32 moreIf you use JUnit 4.5 with Spring Framework 3.0.0.M4 you get only errors during the test phase: http://jira.springframework.org/browse/SPR-5995?page=com.atlassian.jira.plugin.ext.bamboo%3Abamboo-build-results-tabpanel
Do you have an Ant script to build your application? When I do mvn clean eclipse:clean eclipse:eclipse, Maven went on and on with its downloading. I had to stop it after an hour or so, when it was still not done. Not familiar with Maven either, this is unfortunate for me.
One more quick question. Once Maven has finished compiling the sources the result is a War file that can be deployed into Tomcat?
where can i get database script of this application ?? i want it if u can give it to me .
Hi, I am new to spring developemnt.
Caused by: java.lang.NumberFormatException?: For input string: "form"
Why that error coming when I am trying to click on Create link.(person)
please give me database script. Thank you so much!
Please provide any solution as i am getting the below error stack trace after deploying in JBoss4.2.
Context initialization failed org.springframework.beans.factory.BeanCreationException?: Error creating bean with name 'org.springframework.dao.annotation.PersistenceExceptionTranslationPostProcessor#0?' defined in ServletContext? resource [/WEB-INF/config/FinanceManager?-infrastructure.xml]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException?: Error creating bean with name 'entityManagerFactory' defined in ServletContext? resource [/WEB-INF/config/FinanceManager?-infrastructure.xml]: Invocation of init method failed; nested exception is org.hibernate.AnnotationException?: java.lang.NoSuchMethodException?: org.hibernate.validator.ClassValidator?.<init>(java.lang.Class, java.util.ResourceBundle?, org.hibernate.validator.MessageInterpolator?, java.util.Map, org.hibernate.annotations.common.reflection.ReflectionManager?)