Wpis z mikrobloga

#programowanie #java #hibernate #jasperreports #jaspersoft

Cześć Mirki, czy instalował z was ktoś Jasper Reports Server z WAR na tomcat? Próbowałem według dokumentacji to zrobić przy użyciu js-install-ce.bat ale nie ma nigdzie konfiguracji na bazę danych SQL Server. Skopiowałem sobie także sam WAR to webapps i stworzyłem plik hibernate.properties z parametrami połączenia z bazą ale dostaje coś takiego:

"Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Cannot resolve reference to bean 'dataSource' while setting bean property 'dataSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in ServletContext resource [/WEB-INF/applicationContext-webapp.xml]: Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: Name [test] is not bound in this Context. Unable to find [test]."

Jest to związane z tą definicją: metadata.hibernate.dataSource.jndiName = jdbc/test
Jeśli nie dodam tego do hibernate.properties to dostaje błąd że nie jest to zdefiniowane: metadata.hibernate.dataSource.jndiName

Z góry dziękuję za pomoc!