thillai_selvan Posted October 18, 2011 Share Posted October 18, 2011 Dear all,When running the catalina script I am getting the following error message.sh /usr/share/tomcat6/bin/catalina.sh run Kindly help me to fix this.Thanks in advance! Code:2011-10-18 19:14:08,412 ERROR ContextLoader,main:215 - Context initialization failedorg.springframework.beans.factory.BeanCreationException: 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-datasource.xml]: Invocation of init method failed; nested exception is javax.naming.NamingException: Could not create resource factory instance [Root exception is java.lang.UnsupportedClassVersionError: Bad version number in .class file] Link to comment Share on other sites More sharing options...
mgeise Posted October 19, 2011 Share Posted October 19, 2011 looks like a java version issue. You seem to have classes compiled with a later version of java than you are using to run your app server. Try using Java 1.6 Link to comment Share on other sites More sharing options...
thillai_selvan Posted October 20, 2011 Author Share Posted October 20, 2011 Dear mgeise,Thanks for ur reply. I am now using java 1.6I have another question. Which jdk version I need to use for make it to support postgres 8.4.Will I get answer here or I need to open another question. If anyone knows Kindly answer.Thank u! Link to comment Share on other sites More sharing options...
thillai_selvan Posted October 21, 2011 Author Share Posted October 21, 2011 Now my java and javac are version 1.6.0_22 still I am getting the same error message. What is the problem here? I am using tomcat6. postgres8.4.debian squeeze packages.How to configure jasperserver 3.7.1 in tomcat6Please guide me Thank u Link to comment Share on other sites More sharing options...
thillai_selvan Posted October 21, 2011 Author Share Posted October 21, 2011 And also I am using jdk version 1.5Will it be ok or I need to use jdk 1.6? Link to comment Share on other sites More sharing options...
thillai_selvan Posted October 21, 2011 Author Share Posted October 21, 2011 Dear All,Now I have installed jdk version 1.6. And again checked the catalina script output while running it.Now the above problem is solved.But again now I am getting the following error. 2011-10-21 17:19:51,366 WARN JDBCExceptionReporter,main:100 - SQL Error: 0, SQLState: null2011-10-21 17:19:51,379 ERROR JDBCExceptionReporter,main:101 - Cannot create PoolableConnectionFactory (FATAL: password authentication failed for user "jasperadmin")2011-10-21 17:19:51,386 WARN SettingsFactory,main:133 - Could not obtain connection to query metadataorg.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (FATAL: password authentication failed for user "jasperadmin") Can anybody help me to fix this.Thanks in advance! Link to comment Share on other sites More sharing options...
thillai_selvan Posted November 1, 2011 Author Share Posted November 1, 2011 I found that the issue in pg_hba.conf file. Once I have made appropriate configurations the issue got solved!Thanks! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now