Ich habe mir hier von Torsten Horn mal das Spring DB + TX zu gemüte geführt.
Unter 2.0.4 Bibliothek läuft es 1A. Jetzt wollt ich es unter Spring 3 laufen lassen. Ich habe dafür die alte Bibliothek über Eclipse rausgeworfen und folgende Dateien eingebunden (den JConnector habe ich nicht rausgeworfen, sondern beibehalten):
eingebunden, ja, ja ich weis etliche Bibliothekn bräuchte ich für das Beispiel nicht. Ich habs auch schon mir reduzierten Blbliotheken probiert. Aber beim Ausführen erhalte ich immer wieder
und ich weis jetzt echt nicht wo der Fehler steckt, weil ich Probleme habe die ausgegebene Fehlermeldung zu interpretieren.
Unter 2.0.4 Bibliothek läuft es 1A. Jetzt wollt ich es unter Spring 3 laufen lassen. Ich habe dafür die alte Bibliothek über Eclipse rausgeworfen und folgende Dateien eingebunden (den JConnector habe ich nicht rausgeworfen, sondern beibehalten):
HTML:
asm-debug-all-3.2.jar
cglib-2.2.jar
commons-logging.jar
org.springframework.aop-3.0.0.RELEASE.jar
org.springframework.asm-3.0.0.RELEASE.jar
org.springframework.aspects-3.0.0.RELEASE.jar
org.springframework.beans-3.0.0.RELEASE.jar
org.springframework.context-3.0.0.RELEASE.jar
org.springframework.context.support-3.0.0.RELEASE.jar
org.springframework.core-3.0.0.RELEASE.jar
org.springframework.expression-3.0.0.RELEASE.jar
org.springframework.instrument-3.0.0.RELEASE.jar
org.springframework.instrument.tomcat-3.0.0.RELEASE.jar
org.springframework.jdbc-3.0.0.RELEASE.jar
org.springframework.jms-3.0.0.RELEASE.jar
org.springframework.orm-3.0.0.RELEASE.jar
org.springframework.oxm-3.0.0.RELEASE.jar
org.springframework.spring-library-3.0.0.RELEASE.libd
org.springframework.test-3.0.0.RELEASE.jar
org.springframework.transaction-3.0.0.RELEASE.jar
org.springframework.web-3.0.0.RELEASE.jar
org.springframework.web.portlet-3.0.0.RELEASE.jar
org.springframework.web.servlet-3.0.0.RELEASE.jar
org.springframework.web.struts-3.0.0.RELEASE.jar
mysql-connector-java-5.1.19-bin.jar
eingebunden, ja, ja ich weis etliche Bibliothekn bräuchte ich für das Beispiel nicht. Ich habs auch schon mir reduzierten Blbliotheken probiert. Aber beim Ausführen erhalte ich immer wieder
HTML:
Exception in thread "main" java.lang.NullPointerException
at org.apache.logging.log4j.LogManager.getContext(LogManager.java:178)
at org.apache.logging.log4j.jcl.LogFactoryImpl$PrivateManager.getContext(LogFactoryImpl.java:109)
at org.apache.logging.log4j.jcl.LogFactoryImpl.getInstance(LogFactoryImpl.java:42)
at org.apache.logging.log4j.jcl.LogFactoryImpl.getInstance(LogFactoryImpl.java:80)
at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:645)
at org.springframework.context.support.AbstractApplicationContext.<init>(AbstractApplicationContext.java:154)
at org.springframework.context.support.AbstractRefreshableApplicationContext.<init>(AbstractRefreshableApplicationContext.java:89)
at org.springframework.context.support.AbstractRefreshableConfigApplicationContext.<init>(AbstractRefreshableConfigApplicationContext.java:59)
at org.springframework.context.support.AbstractXmlApplicationContext.<init>(AbstractXmlApplicationContext.java:61)
at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:136)
at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:83)
at com.proconf.main.MainClass.main(MainClass.java:22)
und ich weis jetzt echt nicht wo der Fehler steckt, weil ich Probleme habe die ausgegebene Fehlermeldung zu interpretieren.