I migrated from spring boot 1.5 to 2.0 and used jasper report. Migration has a problem is The import org.springframework.web.servlet.view.jasperreports cannot be resolved. my code is
import org.springframework.web.servlet.view.jasperreports.JasperReportsMultiFormatView;
Can I see how the java package was changed? To be resolve.
Spring Boot 2.0 uses Spring Framework 5.0 where the support for JasperReports was removed. The package org.springframework.web.servlet.view.jasperreports is no longer available.
As per Upgrading to Spring Framework 5.x:
The Spring Framework no longer supports: Portlet, Velocity, JasperReports, XMLBeans, JDO, Guava (replaced by the Caffeine support). If those are critical to your project, you should stay on Spring Framework 4.3.x (supported until 2020). Alternatively, you may create custom adapter classes in your own project (possibly derived from Spring Framework 4.x).
Related
We are using Java 1.8, Spring Boot 1.5.4.RELEASE with Camel 2.17.1. As this is a very old release now, the team wants to upgrade to latest Spring Boot (2.4.X) and Camel (3.4.2), but due to some deadline issues we can afford only upgrade Spring Boot right now.
As this link, start.io, it gives the information about the compatible ranges of Spring Boot with Camel for only Camel version 3.X.X onward.
Can Spring Boot 2.4.X be used with Camel 2.17.1 or must both frameworks be upgraded simultaneously?
No, the Camel version that is released is only supporting the version of Spring Boot it was built against, e.g., Camel 2.25.x that would be Spring Boot 2.1.x.
There isn't any plan upstream to release a new Camel 2.x release supporting Spring Boot 2.4 or later. Camel 2.x will be EOL at the end of this year, and currently it's not actively developed. We only fix critical bugs and security issues that affect Camel source code (not third parties).
However, Red Hat Integration (commercial product) will, in its next upcoming release, support Spring Boot 2.4.x and also Java 11. That is a special effort they have done to their product (not upstream). As Red Hat is actively supporting their customers for a longer period, than what is possible to do for free at Apache Software Foundation.
I have a project that uses java 1.4, Struts 1, running on WAS 6 and I need to implements Spring Security, for show some components by a ROLE_ADMIN and ROLE_USER, what version of spring security it´s compatible with my project and i neeed to know if the configuration is like the tutorials for spring security 3.0.x that uses the web.xml.
From the FAQ:
Spring Security 2.0.x requires a minimum JDK version of 1.4 and is
built against Spring 2.0.x. It should also be compatible with
applications using Spring 2.5.x.
But when it comes to security, I would not use end-of-life products.
We are planning to develop Spring Application. In our servers JDK version is 1.5(it cannot be changes as there are so many other applications running on the same server). I am planning to use Spring core , MVC modules.SO can any one suggest which version of spring is suitable for JDK 1.5.And also suggest which version of Hibernate is suitable for the selected spring version.
Thanks in Advance,
Rajesh
Both Spring 4 and Hibernate 4 require Java 1.6 so for Java 1.5 you should use:
Spring 3.2.12.
Hibernate 3.6.10
I want to use spring 4 with minimal xml configuration for the now new project I am about to develop. I will be using Spring in this project for dependency-injection, mvc, security and jdbc. I will use JOOQ for query generation. (Yes, I need to project to support Postgresql and oracle) (maybe, in future, this app will extended support for REST too). The problem I face now is my production application server is JBoss5.1.0.GA, which obviously does not support servlet 3.0. Now I have a working spring 4 mvc code base with servlet 2.5, but I could not figure out how to configure the security with java config. Because I see most of the examples on spring 4 on servlet 3.0+ versions, and very less not good examples on 2.5. Though I read the spring security from the spring website, it made little difference on implementing it. Have anyone implemented security (db/ldap) on servlet 2.5? Share with me your wisdom and experiences.
Spring security (I suppose version 3.2 as you speak of spring 4) works well on servlet 2.5, at least with xml config. I am not sure that you can use full java config for security, but I am sure annotations can be used for method security.
Can i use Spring Webflow/MVC and Spring Security and Hibernate on Google App Engine?
Is there a list/summary of java frameworks that can be used on the GAE?
Will it Play In Java lists frameworks, languages and libraries that work (or not) in Google App Engine. At present, the information listed is:
Spring MVC
Version 2.5.6
Status COMPATIBLE
To see Spring's MVC framework running on App Engine, check out the autoshoppe sample application. If you're using Spring forms (e.g. using the spring-form.tld tag library and subclassing SimpleFormController), you will need to register custom editors for your properties. This is covered in http://groups.google.com/group/google-appengine-java/browse_thread/thread/d93fd7385bf85bf7.
Spring ORM
Version 2.5.6
Status COMPATIBLE
To get Spring working with the App Engine-provided JPA interface, follow the instructions at http://objectuser.wordpress.com/2009/05/19/spring-jpa-in-google-app-engine/, which discusses a workaround to the dependency on javax.naming needed for #PersistenceContext. A more complex workaround is available at http://groups.google.com/group/google-appengine-java/browse_thread/thread/187d41712ec1d394.
Spring Security
Version(s) ?
Status SEMI-COMPATIBLE
To work around a ClassNotFoundException, you can use a re-compiled version of the library which adds a StringInsensitiveComparator class -- the download is provided at http://www.google-app-engine.com/blog/post/Spring-security-fix-for-google-app-engine.aspx. See http://www.dotnetguru2.org/bmarchesson/index.php?p=1100 for tips on how to get Spring Security running with App Engine and GWT (in French). See http://groups.google.com/group/google-appengine-java/browse_thread/thread/964e7f5e42840d9c for discussion on the integration.
Hibernate
Versions All
Status INCOMPATIBLE
You cannot currently use Hibernate directly. The differences between the App Engine datastore and SQL were too great to get the standard Hibernate up and running under App Engine. App Engine does support JDO and JPA, so you may be able to convert your Hibernate code to use one of these ORM interfaces.
I suppose that it should work with Spring 3.0 too, I will try soon and share the results.
UPDATE: I tried a Spring MVC Hello World with Spring 3.0.6 with Google App Engine and it worked perfectly, both locally and in the cloud. The drawback though, is longer load time when a new instance starts.
As far as I know, no third party libraries are supported (at least none are listed), and JRE classes are limited to this list. But I guess if a library only makes use of the listed jre classes, they should be fine. However, finding out if they do would have to be based on trying it out.