Hi,
I have problem while configuring Hibernate tools 3.2.4 version in my eclipse 3.4. I have weblogic 10.3 and oracle 10g. I have created a connection pool in weblogic to oracle. I wanted to configure hibernate using weblogic jndi.
I have set the properties as below:-
<hibernate-configuration> <session-factory name="sessionfactory"> <property name="connection.datasource" >spring</property> <property name="show_sql">true</property> <property name="jndi.class">weblogic.jndi.WLInitialContextFactory</property> <property name="jndi.url">t3://localhost:7021</property> <property name="dialect">org.hibernate.dialect.Oracle9iDialect</property> <property name="hibernate.default_schema">SCOTT</property> </session-factory> </hibernate-configuration>
my session factory and Database Nodes in the hibernate view in eclipse giving error while refreshing them.So , i am not able to connect to the database from hibernate view. And also I am using jre 1.6 build 19 to run the classes so, not able to find the reason for bad version number in class file error as shown below.
Can some one please suggest what could be solution to resolve this issue.
!ENTRY org.eclipse.core.jobs 4 2 2010-06-18 09:28:23.838 !MESSAGE An internal error occurred during: "Fetching children of Database". !STACK 0 java.lang.UnsupportedClassVersionError: Bad version number in .class file at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(Unknown Source) at java.security.SecureClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.access$100(Unknown Source) at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at org.hibernate.console.ConsoleConfiguration$1.findClass(ConsoleConfiguration.java:246) at java.lang.ClassLoader.loadClass(Unknown Source) at org.hibernate.console.ConsoleConfiguration$1.loadClass(ConsoleConfiguration.java:254) at java.lang.ClassLoader.loadClass(Unknown Source) at org.hibernate.console.ConsoleConfiguration$1.loadClass(ConsoleConfiguration.java:262) at java.lang.ClassLoader.loadClassInternal(Unknown Source) at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(Unknown Source) at java.security.SecureClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.access$100(Unknown Source) at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at org.hibernate.console.ConsoleConfiguration$1.findClass(ConsoleConfiguration.java:246) at java.lang.ClassLoader.loadClass(Unknown Source) at org.hibernate.console.ConsoleConfiguration$1.loadClass(ConsoleConfiguration.java:254) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:177) at weblogic.rmi.internal.StubGenerator.getStubClass(StubGenerator.java:764) at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:793) at weblogic.rmi.internal.StubGenerator.generateStub(StubGenerator.java:786) at weblogic.rmi.extensions.StubFactory.getStub(StubFactory.java:74) at weblogic.rmi.internal.StubInfo.resolveObject(StubInfo.java:213) at weblogic.rmi.internal.StubInfo.readResolve(StubInfo.java:207) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeReadResolve(Unknown Source) at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source) at java.io.ObjectInputStream.readObject0(Unknown Source) at java.io.ObjectInputStream.readObject(Unknown Source) at weblogic.utils.io.ChunkedObjectInputStream.readObject(ChunkedObjectInputStream.java:197) at weblogic.rjvm.MsgAbbrevInputStream.readObject(MsgAbbrevInputStream.java:598) at weblogic.utils.io.ChunkedObjectInputStream.readObject(ChunkedObjectInputStream.java:193) at weblogic.rmi.internal.ObjectIO.readObject(ObjectIO.java:62) at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:240) at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:348) at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:259) at weblogic.jndi.internal.ServerNamingNode_1033_WLStub.lookup(Unknown Source) at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:405) at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:393) at javax.naming.InitialContext.lookup(Unknown Source) at org.hibernate.connection.DatasourceConnectionProvider.configure(DatasourceConnectionProvider.java:52) at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:124) at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:56) at org.hibernate.cfg.SettingsFactory.createConnectionProvider(SettingsFactory.java:414) at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:62) at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2005) at org.hibernate.eclipse.console.workbench.LazyDatabaseSchemaWorkbenchAdapter$2.execute(LazyDatabaseSchemaWorkbenchAdapter.java:108) at org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:64) at org.hibernate.eclipse.console.workbench.LazyDatabaseSchemaWorkbenchAdapter.readDatabaseSchema(LazyDatabaseSchemaWorkbenchAdapter.java:105) at org.hibernate.eclipse.console.workbench.LazyDatabaseSchemaWorkbenchAdapter.getChildren(LazyDatabaseSchemaWorkbenchAdapter.java:61) at org.hibernate.eclipse.console.workbench.BasicWorkbenchAdapter.fetchDeferredChildren(BasicWorkbenchAdapter.java:105) at org.eclipse.ui.progress.DeferredTreeContentManager$1.run(DeferredTreeContentManager.java:234) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
[img]C:\Users\Raveendra\Desktop\issue.jpg[/img]
|