2010-11-24 3 views
0

J'essaie d'utiliser iReport avec une connexion hibernate chargée à l'aide du fichier de configuration spring xml. Donc, dans l'assistant netbeans, je choisis une nouvelle source de données et je sélectionne "Spring Hibernate Collection". Je placerai mon fichier source xml, mais quand je clique essai i cette exception:iReport, erreur lors de la connexion hibernate à ressort dans le plugin netbeans

org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from class path resource [META-INF/spring.cfg.xml]; nested exception is org.springframework.beans.FatalBeanException: NamespaceHandler class [org.springframework.context.config.ContextNamespaceHandler] for namespace [http://www.springframework.org/schema/context] not found; nested exception is java.lang.ClassNotFoundException: org.springframework.context.config.ContextNamespaceHandler 

Le xml printemps est ok beacouse al fonctionne très bien dans l'application, le problème est quand je tente de l'utiliser pour iRepor dans NetBeans brancher.

La documentation sur le rapport jasper utilisant l'hibernation et le ressort est très très légèrement.

EDIT J'ai ajouté tous pot printemps Dependance dans Outils-> Options-> iReport-> classpath (je suis à NetBeans se référant, cela est en situation irrégulière ... totaly) et semblent finalement charger contexte, mais maintenant, j'ai ce excpetions:

WARNING [org.netbeans.ProxyClassLoader]: Will not load class org.springframework.beans.factory.xml.NamespaceHandlerSupport arbitrarily from one of [email protected][com.jaspersoft.ireport] and [email protected][org.netbeans.libs.springframework] starting from SystemClassLoader[569 modules]; see http://wiki.netbeans.org/DevFaqModuleCCE 
WARNING [org.netbeans.ProxyClassLoader]: Will not load class org.springframework.beans.factory.xml.NamespaceHandler arbitrarily from one of [email protected][com.jaspersoft.ireport] and [email protected][org.netbeans.libs.springframework] starting from SystemClassLoader[569 modules]; see http://wiki.netbeans.org/DevFaqModuleCCE 
org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from class path resource [META-INF/spring.cfg.xml]; nested exception is org.springframework.beans.FatalBeanException: Class [org.springframework.context.config.ContextNamespaceHandler] for namespace [http://www.springframework.org/schema/context] does not implement the [org.springframework.beans.factory.xml.NamespaceHandler] interface 

Je pense que cela est un problème du plug-in NetBeans seulement et je peux faire quoi que ce soit :(

Merci

Répondre

0

Installation application autonome iReport. tout fonctionne bien, donc c'est un problème de plugin iReport dans netbeans.

Questions connexes