Category Archives: Spring

How to integrate Spring and Hibernate

Here are the few tips I have gathered on how to integrate spring and hibernate. Create your bean.xml something like this… ${db.driverClassName} ${db.url} ${db.username} ${db.password}com.usermanagement.pojo.Usercom.usermanagement.pojo.Rolecom.usermanagement.pojo.Privilegecom.usermanagement.pojo.Passwordcom.usermanagement.pojo.PasswordPolicy org.hibernate.dialect.Oracle10gDialectupdatetruetrue <!–org.hibernate.cache.SingletonEhCacheProvider–>org.hibernate.cache.EhCacheProvider The list of jars that you might need are antlr-2.7.6.jar asm-1.5.3.jar axis2-spring-1.6.1.jar … Continue reading

Posted in Hibernate, Spring | Leave a comment

SOAP Version Mismatch: SOAP Version "SOAP 1.2 Protocol" in request does not match the SOAP version "SOAP 1.1 Protocol" of the Web service.

We were getting the below error in our project, when trying to invoke a web service. [Server:server-one] 07:29:12,927 ERROR [stderr] (http-/ [ISS.0088.9168] SOAP Version Mismatch: SOAP Version “SOAP 1.2 Protocol” in request does not match the SOAP version “SOAP … Continue reading

Posted in Spring, Web Services | Leave a comment

How to make ajax call in spring framework

Write a server side method, with a mapping something as follows: @RequestMapping(“/getKids.html”) public @ResponseBody String getChildren(@RequestParam(value = “ocn”) String ocn, HttpServletRequest request, HttpServletResponse response) { return ocn.toUpperCase(); } Here @ResponseBody tells the framework to return value of the method to … Continue reading

Posted in AJAX, Spring | 1 Comment

What is the difference between @RequestMapping’s param attribute AND @RequestParam

Source : @RequestMapping is only used to map request URLs to your controller. The ‘params’ value is used to narrow the mapping down allowing you to map different param values (uuids in this case) to different methods. For example: … Continue reading

Posted in Spring | Leave a comment