Hibernate + Ireports

Asked

Viewed 154 times

1

I’m trying to connect a Spring MVC project to Hibernate using JSP. But a problem arises when I try to create a connection to import data to a report using Jasperreports + Ireport technology. When I select Spring Option Loaded Hibernate Connection, and when I press spring-servlet.xml an error appears:

Unexpected exception parsing XML document from class path resource [spring-servlet.xml];nest exception is java.lang.IllegalStateException: Context namespace element 'component-scan' and its parser class[org.springframework.context.annotation.ComponentScanbenaDefinitionParser]are only available on JDk 1.5 and higher.

Foto de quando acontece o erro em seu ambiente.

What has been used:

  • Spring framework 4.0.6
  • Hibernate 4
  • Netbeans 8.0 patch 2
  • JDK 1.8
  • JRE 8
  • Netbeans Plugin
    • Ireport 5.6
    • Jasperreports 5.6

I have already checked that all JDK settings are correct and the JDK path is in the PATH and classpath and in the CMD when I give the command java -version is displayed the version java_version "1.8.0_05".

Someone would know how to fix this mistake?

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.