-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: java.lang.IllegalAccessError:
PostPosted: Sat Mar 24, 2007 5:14 pm 
Newbie

Joined: Sat Mar 24, 2007 9:38 am
Posts: 8
Location: London
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

Quote:
Hello Hibernate - I am unable to run downloaded ant schemaexport
in the helloworld-jpa example. IllegalAccessError occurs when
org.hibernate.cfg.ExtendedMappings calls super() on
org.hibernate.cfg.Mappings.
Other ant targets ie compile, startdb, dbmanager work. I swapped in
(& back out ) hibernate annotations/entitymanager 3.3.0 which failed
for other reasons. helloworld examples followed as per the book.
ant -diagnostics output is included below.
Any help most appreciated.


Hibernate version:3.2, Hibernate annotations & entitymanager 3.2.0.CR3

Mapping documents: persistance.xml:
Code:
<project name="Hello World with JPA" default="compile" basedir=".">

    <!-- Name of project and version -->
    <property name="proj.name"      value="Hello World with JPA"/>
    <property name="proj.shortname" value="helloworld-jpa"/>
    <property name="version"        value="1.0"/>

    <!-- Global properties for this build -->
    <property name="database.dir"           value="database"/>
    <property name="src.java.dir"           value="src/java"/>
    <property name="src.etc.dir"            value="src/etc"/>
    <property name="lib.dir"                value="lib"/>
    <property name="build.dir"              value="build"/>

    <!-- Classpath declaration -->
    <path id="project.classpath">
        <fileset dir="${lib.dir}">
            <include name="**/*.jar"/>
            <include name="**/*.zip"/>
        </fileset>
    </path>

    <!-- Useful shortcuts -->
    <patternset id="meta.files">
        <include name="**/*.xml"/>
        <include name="**/*.properties"/>
    </patternset>

    <!-- Clean up -->
    <target name="clean" description="Clean the build directory">
        <delete dir="${build.dir}"/>
        <mkdir dir="${build.dir}"/>
    </target>

    <!-- Compile Java source -->
    <target name="compile">
        <mkdir dir="${build.dir}"/>
        <javac srcdir="${src.java.dir}"
               destdir="${build.dir}"
               classpathref="project.classpath"/>
    </target>

    <!-- Copy metadata to build classpath -->
    <target name="copymetafiles">
        <mkdir dir="${build.dir}"/>
        <copy todir="${build.dir}">
            <fileset dir="${src.java.dir}">
                <patternset refid="meta.files"/>
            </fileset>
        </copy>
        <copy todir="${build.dir}">
            <fileset dir="${src.etc.dir}">
                <patternset refid="meta.files"/>
            </fileset>
        </copy>
    </target>

    <!-- Run HelloWorld -->
    <target name="run" depends="compile, copymetafiles"
        description="Build and run HelloWorld">
        <java fork="true"
              classname="hello.HelloWorld"
              classpathref="project.classpath">
            <classpath path="${build.dir}"/>
        </java>
    </target>

    <!-- Hibernate Tools import -->
    <taskdef name="hibernatetool"
             classname="org.hibernate.tool.ant.HibernateToolTask"
             classpathref="project.classpath"/>

    <!-- Export the database schema -->
    <target name="schemaexport" depends="compile, copymetafiles"
        description="Exports a generated schema to DB and file">

        <hibernatetool destdir="${basedir}">
            <classpath path="${build.dir}"/>
            <jpaconfiguration/> <!-- Use META-INF/persistence.xml -->
            <hbm2ddl
                drop="true"
                create="true"
                export="true"
                outputfilename="${proj.shortname}-ddl.sql"
                delimiter=";"
                format="true"/>
        </hibernatetool>
    </target>

    <!-- Start the HSQL DB server -->
    <target name="startdb" description="Run HSQL database server with clean DB">
        <!-- Delete database files -->
        <delete dir="${database.dir}"/>
        <java classname="org.hsqldb.Server"
              fork="yes"
              classpathref="project.classpath"
              failonerror="true">
            <arg value="-database.0"/>
            <arg value="file:${database.dir}/db"/>
        </java>
    </target>

    <!-- Start the HSQL DB browser tool -->
    <target name="dbmanager" description="Start HSQL DB manager">
        <java
            classname="org.hsqldb.util.DatabaseManagerSwing"
            fork="yes"
            classpathref="project.classpath"
            failonerror="true">
            <arg value="-url"/>
            <arg value="jdbc:hsqldb:hsql://localhost/"/>
            <arg value="-driver"/>
            <arg value="org.hsqldb.jdbcDriver"/>
        </java>
    </target>

</project>


Code between sessionFactory.openSession() and session.close():

Full stack trace of any exception that occurs:
Code:
BUILD FAILED
C:\helloworld\helloworld-jpa\build.xml:77: Problems in creating a configuration for JPA. Have you remembered to add hibernate EntityManager jars to the classpath ?
   at org.hibernate.tool.ant.JPAConfigurationTask.createConfiguration(JPAConfigurationTask.java:42)
   at org.hibernate.tool.ant.ConfigurationTask.getConfiguration(ConfigurationTask.java:54)
   at org.hibernate.tool.ant.HibernateToolTask.getConfiguration(HibernateToolTask.java:287)
   at org.hibernate.tool.ant.Hbm2DDLExporterTask.execute(Hbm2DDLExporterTask.java:45)
   at org.hibernate.tool.ant.HibernateToolTask.execute(HibernateToolTask.java:171)
   at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
   at org.apache.tools.ant.Task.perform(Task.java:364)
   at org.apache.tools.ant.Target.execute(Target.java:341)
   at org.apache.tools.ant.Target.performTasks(Target.java:369)
   at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
   at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
   at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
   at org.eclipse.ant.internal.core.ant.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
   at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
   at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:704)
   at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:455)
   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 org.eclipse.ant.core.AntRunner.run(AntRunner.java:356)
   at org.eclipse.ant.internal.ui.launchConfigurations.AntLaunchDelegate$1.run(AntLaunchDelegate.java:215)
   at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.reflect.InvocationTargetException
   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 org.hibernate.tool.ant.JPAConfigurationTask.createConfiguration(JPAConfigurationTask.java:28)
   ... 22 more
Caused by: java.lang.IllegalAccessError: tried to access method org.hibernate.cfg.Mappings.<init>(Ljava/util/Map;Ljava/util/Map;Ljava/util/Map;Ljava/util/Map;Ljava/util/Map;Ljava/util/Map;Ljava/util/Map;Ljava/util/List;Ljava/util/List;Lorg/hibernate/cfg/NamingStrategy;Ljava/util/Map;Ljava/util/Map;Ljava/util/Map;Ljava/util/List;Ljava/util/Map;Ljava/util/Map;)V from class org.hibernate.cfg.ExtendedMappings
   at org.hibernate.cfg.ExtendedMappings.<init>(ExtendedMappings.java:65)
   at org.hibernate.cfg.AnnotationConfiguration.createExtendedMappings(AnnotationConfiguration.java:166)
   at org.hibernate.cfg.AnnotationConfiguration.secondPassCompile(AnnotationConfiguration.java:254)
   at org.hibernate.cfg.Configuration.buildMappings(Configuration.java:1115)
   at org.hibernate.ejb.Ejb3Configuration.buildMappings(Ejb3Configuration.java:1211)
   at org.hibernate.ejb.EventListenerConfigurator.configure(EventListenerConfigurator.java:154)
   at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:847)
   at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:178)
   at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:235)
   ... 27 more
--- Nested Exception ---
java.lang.reflect.InvocationTargetException
   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 org.hibernate.tool.ant.JPAConfigurationTask.createConfiguration(JPAConfigurationTask.java:28)
   at org.hibernate.tool.ant.ConfigurationTask.getConfiguration(ConfigurationTask.java:54)
   at org.hibernate.tool.ant.HibernateToolTask.getConfiguration(HibernateToolTask.java:287)
   at org.hibernate.tool.ant.Hbm2DDLExporterTask.execute(Hbm2DDLExporterTask.java:45)
   at org.hibernate.tool.ant.HibernateToolTask.execute(HibernateToolTask.java:171)
   at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
   at org.apache.tools.ant.Task.perform(Task.java:364)
   at org.apache.tools.ant.Target.execute(Target.java:341)
   at org.apache.tools.ant.Target.performTasks(Target.java:369)
   at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
   at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
   at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
   at org.eclipse.ant.internal.core.ant.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
   at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
   at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:704)
   at org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:455)
   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 org.eclipse.ant.core.AntRunner.run(AntRunner.java:356)
   at org.eclipse.ant.internal.ui.launchConfigurations.AntLaunchDelegate$1.run(AntLaunchDelegate.java:215)
   at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.IllegalAccessError: tried to access method org.hibernate.cfg.Mappings.<init>(Ljava/util/Map;Ljava/util/Map;Ljava/util/Map;Ljava/util/Map;Ljava/util/Map;Ljava/util/Map;Ljava/util/Map;Ljava/util/List;Ljava/util/List;Lorg/hibernate/cfg/NamingStrategy;Ljava/util/Map;Ljava/util/Map;Ljava/util/Map;Ljava/util/List;Ljava/util/Map;Ljava/util/Map;)V from class org.hibernate.cfg.ExtendedMappings
   at org.hibernate.cfg.ExtendedMappings.<init>(ExtendedMappings.java:65)
   at org.hibernate.cfg.AnnotationConfiguration.createExtendedMappings(AnnotationConfiguration.java:166)
   at org.hibernate.cfg.AnnotationConfiguration.secondPassCompile(AnnotationConfiguration.java:254)
   at org.hibernate.cfg.Configuration.buildMappings(Configuration.java:1115)
   at org.hibernate.ejb.Ejb3Configuration.buildMappings(Ejb3Configuration.java:1211)
   at org.hibernate.ejb.EventListenerConfigurator.configure(EventListenerConfigurator.java:154)
   at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:847)
   at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:178)
   at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:235)


Name and version of the database you are using:HSQLDB 1.8.0.7

The generated SQL (show_sql=true):

Code:
        alter table MESSAGES
        drop constraint FK131AF14C3CD7F3EA;

    drop table MESSAGES if exists;

    create table MESSAGES (
        MESSAGE_ID bigint generated by default as identity (start with 1),
        MESSAGE_TEXT varchar(255),
        NEXT_MESSAGE_ID bigint,
        primary key (MESSAGE_ID)
    );

    alter table MESSAGES
        add constraint FK131AF14C3CD7F3EA
        foreign key (NEXT_MESSAGE_ID)
        references MESSAGES;[/b]


[b]Debug level Hibernate log excerpt:



Problems with Session and transaction handling? not yet.

Read this: http://hibernate.org/42.html

ant -diagnostics:
    ------- Ant diagnostics report -------
    Apache Ant version 1.6.5 compiled on June 2 2005

    -------------------------------------------
    Implementation Version (JDK1.2+ only)
    -------------------------------------------
    core tasks : 1.6.5
    optional tasks : not available

    -------------------------------------------
    ANT_HOME/lib jar listing
    -------------------------------------------
    ant.home: C:\Sun\SDK\lib\ant\bin\..
    ant-antlr.jar (5667 bytes)
    ant-apache-bcel.jar (8617 bytes)
    ant-apache-bsf.jar (12597 bytes)
    ant-apache-log4j.jar (3022 bytes)
    ant-apache-oro.jar (48034 bytes)
    ant-apache-regexp.jar (3724 bytes)
    ant-apache-resolver.jar (4082 bytes)
    ant-commons-logging.jar (3864 bytes)
    ant-commons-net.jar (35303 bytes)
    ant-icontract.jar (9721 bytes)
    ant-jai.jar (21359 bytes)
    ant-javamail.jar (6761 bytes)
    ant-jdepend.jar (8160 bytes)
    ant-jmf.jar (6605 bytes)
    ant-jsch.jar (22726 bytes)
    ant-junit.jar (74237 bytes)
    ant-launcher.jar (9180 bytes)
    ant-netrexx.jar (9998 bytes)
    ant-nodeps.jar (421008 bytes)
    ant-starteam.jar (35472 bytes)
    ant-stylebook.jar (2328 bytes)
    ant-swing.jar (6763 bytes)
    ant-trax.jar (68841 bytes)
    ant-vaj.jar (49742 bytes)
    ant-weblogic.jar (14363 bytes)
    ant-xalan1.jar (4465 bytes)
    ant-xslp.jar (2244 bytes)
    ant.jar (1034049 bytes)
    jbi-ant-tasks.jar (307248 bytes)
    junit-3.8.1.jar (121070 bytes)
    xercesImpl.jar (1010675 bytes)
    xml-apis.jar (124724 bytes)

    -------------------------------------------
    Tasks availability
    -------------------------------------------
    ccmkdir : Not Available
    propertyfile : Not Available
    importtypelib : Not Available
    vsscheckin : Not Available
    p4reopen : Not Available
    image : Not Available
    csc : Not Available
    sshexec : Not Available
    wlrun : Not Available
    p4label : Not Available
    p4revert : Not Available
    replaceregexp : Not Available
    jjtree : Not Available
    jarlib-display : Not Available
    jspc : Not Available
    test : Not Available
    vsshistory : Not Available
    icontract : Not Available
    p4submit : Not Available
    scp : Not Available
    ccmcheckin : Not Available
    p4change : Not Available
    p4delete : Not Available
    vssadd : Not Available
    p4integrate : Not Available
    translate : Not Available
    cclock : Not Available
    chown : Not Available
    vajload : Not Available
    jarlib-available : Not Available
    rexec : Not Available
    WsdlToDotnet : Not Available
    jpcovmerge : Not Available
    ejbjar : Not Available
    stlist : Not Available
    serverdeploy : Not Available
    ildasm : Not Available
    cccheckin : Not Available
    ccunlock : Not Available
    wljspc : Not Available
    telnet : Not Available
    sosget : Not Available
    p4sync : Not Available
    ccmklabel : Not Available
    p4edit : Not Available
    maudit : Not Available
    netrexxc : Not Available
    ftp : Not Available
    jpcovreport : Not Available
    ccmcheckout : Not Available
    xmlvalidate : Not Available
    p4resolve : Not Available
    ccmcheckintask : Not Available
    iplanet-ejbc : Not Available
    native2ascii : Not Available
    ccrmtype : Not Available
    starteam : Not Available
    vsscheckout : Not Available
    soscheckin : Not Available
    mimemail : Not Available
    stylebook : Not Available
    stlabel : Not Available
    cab : Not Available
    ccmkbl : Not Available
    cccheckout : Not Available
    p4have : Not Available
    jdepend : Not Available
    jsharpc : Not Available
    symlink : Not Available
    script : Not Available
    ccmcreatetask : Not Available
    rpm : Not Available
    attrib : Not Available
    mmetrics : Not Available
    echoproperties : Not Available
    stcheckin : Not Available
    chgrp : Not Available
    vajexport : Not Available
    stcheckout : Not Available
    p4labelsync : Not Available
    vsscreate : Not Available
    ejbc : Not Available
    vbc : Not Available
    wsdltodotnet : Not Available
    ccmkattr : Not Available
    ccupdate : Not Available
    renameext : Not Available
    vsslabel : Not Available
    vsscp : Not Available
    vajimport : Not Available
    p4fstat : Not Available
    setproxy : Not Available
    wlstop : Not Available
    p4counter : Not Available
    ilasm : Not Available
    soscheckout : Not Available
    jarlib-resolve : Not Available
    ccuncheckout : Not Available
    jlink : Not Available
    javacc : Not Available
    jarlib-manifest : Not Available
    pvcs : Not Available
    ccmklbtype : Not Available
    sound : Not Available
    scriptdef : Not Available
    mparse : Not Available
    blgenclient : Not Available
    jjdoc : Not Available
    ccmkelem : Not Available
    javah : Not Available
    ccmreconfigure : Not Available
    p4add : Not Available
    soslabel : Not Available
    jpcoverage : Not Available
    depend : Not Available
    vssget : Not Available
    ddcreator : Not Available

    -------------------------------------------
    org.apache.env.Which diagnostics
    -------------------------------------------
    Not available.
    Download it at http://xml.apache.org/commons/

    -------------------------------------------
    XML Parser information
    -------------------------------------------
    XML Parser : org.apache.xerces.jaxp.SAXParserImpl
    XML Parser Location: C:\JavaSun\jdk1.5.0_10\jre\lib\ext\xerces-2.6.2.jar

    -------------------------------------------
    System properties
    -------------------------------------------
    java.runtime.name : Java(TM) 2 Runtime Environment, Standard Edition
    sun.boot.library.path : C:\JavaSun\jdk1.5.0_10\jre\bin
    java.vm.version : 1.5.0_10-b03
    ant.library.dir : C:\JavaSun\jdk1.5.0_10\jre\lib\ext
    java.vm.vendor : Sun Microsystems Inc.
    java.vendor.url : http://java.sun.com/
    path.separator : ;
    java.vm.name : Java HotSpot(TM) Client VM
    file.encoding.pkg : sun.io
    user.country : GB
    sun.os.patch.level : Service Pack 2
    java.vm.specification.name : Java Virtual Machine Specification
    user.dir : C:\helloworld\helloworld-jpa
    java.runtime.version : 1.5.0_10-b03
    java.awt.graphicsenv : sun.awt.Win32GraphicsEnvironment
    java.endorsed.dirs : C:\JavaSun\jdk1.5.0_10\jre\lib\endorsed
    os.arch : x86
    java.io.tmpdir : C:\DOCUME~1\LESLIE~1\LOCALS~1\Temp\
    line.separator :

    java.vm.specification.vendor : Sun Microsystems Inc.
    user.variant :
    os.name : Windows XP
    ant.home : C:\Sun\SDK\lib\ant\bin\..
    sun.jnu.encoding : Cp1252
    java.library.path : C:\JavaSun\jdk1.5.0_10\bin;.;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\MySQL\MySQL Server 5.0\bin;C:\JavaSun\jdk1.5.0_10\bin\;C:\Sun\SDK\lib\ant\bin\;C:\Program Files\MySQL\MySQL Server 5.0\bin\;C:\Program Files\jad\;C:\Program Files\CVSNT\;C:\JavaSun\jdk1.5.0_10\bin;C:\Sun\SDK\bin\;C:\Sun\SDK\lib\ant\bin\
    java.specification.name : Java Platform API Specification
    java.class.version : 49.0
    sun.management.compiler : HotSpot Client Compiler
    os.version : 5.1
    user.home : C:\Documents and Settings\LESLIE ST JAMES
    user.timezone :
    java.awt.printerjob : sun.awt.windows.WPrinterJob
    file.encoding : Cp1252
    java.specification.version : 1.5
    user.name : LESLIE ST JAMES
    java.class.path : C:\Sun\SDK\lib\ant\bin\..\lib\ant-launcher.jar;C:\helloworld\helloworld-jpa\.\;c:\javasun\JMF21~1.1E\lib\sound.jar;c:\javasun\JMF21~1.1E\lib\jmf.jar;c:\javasun\JMF21~1.1E\lib;C:\hibernate-3.2\lib\junit-3.8.1.jar;C:\hibernate-3.2\hibernate3.jar;C:\JavaSun\jdk1.5.0_10\jre\lib\ext\ant-1.6.5.jar;C:\JavaSun\jdk1.5.0_10\jre\lib\ext\ant-antlr-1.6.5.jar;C:\JavaSun\jdk1.5.0_10\jre\lib\ext\ant-junit-1.6.5.jar;C:\JavaSun\jdk1.5.0_10\jre\lib\ext\ant-launcher-1.6.5.jar;C:\JavaSun\jdk1.5.0_10\jre\lib\ext\ant-swing-1.6.5.jar;C:\JavaSun\jdk1.5.0_10\jre\lib\ext\antlr-2.7.6.jar;C:\JavaSun\jdk1.5.0_10\jre\lib\ext\asm-attrs.jar;C:\JavaSun\jdk1.5.0_10\jre\lib\ext\asm.jar;C:\JavaSun\jdk1.5.0_10\jre\lib\ext\c3p0-0.9.1.jar;C:\JavaSun\jdk1.5.0_10\jre\lib\ext\cglib-2.1.3.jar;C:\JavaSun\jdk1.5.0_10\jre\lib\ext\checkstyle-all.jar;C:\JavaSun\jdk1.5.0_10\jre\lib\ext\cleanimports.jar;C:\JavaSun\jdk1.5.0_10\jre\lib\ext\commons-collections-2.1.1.jar;C:\JavaSun\jdk1.5.0_10\jre\lib\ext\commons-logging-1.0.4.jar;C:\JavaSun\jdk1.5.0_10\jre\lib\ext\concurrent-1.3.2.jar;C:\JavaSun\jdk1.5.0_10\jre\lib\ext\connector.jar;C:\JavaSun\jdk1.5.0_10\jre\lib\ext\dnsns.jar;C:\JavaSun\jdk1.5.0_10\jre\lib\ext\dom4j-1.6.1.jar;C:\JavaSun\jdk1.5.0_10\jre\lib\ext\ehcache-1.2.3.jar;C:\JavaSun\jdk1.5.0_10\jre\lib\ext\hibernate3.jar;C:\JavaSun\jdk1.5.0_10\jre\lib\ext\jaas.jar;C:\JavaSun\jdk1.5.0_10\jre\lib\ext\jacc-1_0-fr.jar;C:\JavaSun\jdk1.5.0_10\jre\lib\ext\javassist.jar;C:\JavaSun\jdk1.5.0_10\jre\lib\ext\jaxen-1.1-beta-7.jar;C:\JavaSun\jdk1.5.0_10\jre\lib\ext\jboss-cache.jar;C:\JavaSun\jdk1.5.0_10\jre\lib\ext\jboss-common.jar;C:\JavaSun\jdk1.5.0_10\jre\lib\ext\jboss-jmx.jar;C:\JavaSun\jdk1.5.0_10\jre\lib\ext\jboss-system.jar;C:\JavaSun\jdk1.5.0_10\jre\lib\ext\jdbc2_0-stdext.jar;C:\JavaSun\jdk1.5.0_10\jre\lib\ext\jgroups-2.2.8.jar;C:\JavaSun\jdk1.5.0_10\jre\lib\ext\jta.jar;C:\JavaSun\jdk1.5.0_10\jre\lib\ext\junit-3.8.1.jar;C:\JavaSun\jdk1.5.0_10\jre\lib\ext\localedata.jar;C:\JavaSun\jdk1.5.0_10\jre\lib\ext\log4j-1.2.11.jar;C:\JavaSun\jdk1.5.0_10\jre\lib\ext\log4j-1.2.13.jar;C:\JavaSun\jdk1.5.0_10\jre\lib\ext\mysql-connector-java-5.0.4-bin.jar;C:\JavaSun\jdk1.5.0_10\jre\lib\ext\oscache-2.1.jar;C:\JavaSun\jdk1.5.0_10\jre\lib\ext\proxool-0.8.3.jar;C:\JavaSun\jdk1.5.0_10\jre\lib\ext\sunjce_provider.jar;C:\JavaSun\jdk1.5.0_10\jre\lib\ext\sunpkcs11.jar;C:\JavaSun\jdk1.5.0_10\jre\lib\ext\swarmcache-1.0rc2.jar;C:\JavaSun\jdk1.5.0_10\jre\lib\ext\syndiag2.jar;C:\JavaSun\jdk1.5.0_10\jre\lib\ext\versioncheck.jar;C:\JavaSun\jdk1.5.0_10\jre\lib\ext\xerces-2.6.2.jar;C:\JavaSun\jdk1.5.0_10\jre\lib\ext\xml-apis.jar;C:\JavaSun\jdk1.5.0_10\lib\tools.jar
    java.vm.specification.version : 1.0
    sun.arch.data.model : 32
    java.home : C:\JavaSun\jdk1.5.0_10\jre
    java.specification.vendor : Sun Microsystems Inc.
    user.language : en
    awt.toolkit : sun.awt.windows.WToolkit
    java.vm.info : mixed mode, sharing
    java.version : 1.5.0_10
    java.ext.dirs : C:\JavaSun\jdk1.5.0_10\jre\lib\ext
    sun.boot.class.path : C:\JavaSun\jdk1.5.0_10\jre\lib\rt.jar;C:\JavaSun\jdk1.5.0_10\jre\lib\i18n.jar;C:\JavaSun\jdk1.5.0_10\jre\lib\sunrsasign.jar;C:\JavaSun\jdk1.5.0_10\jre\lib\jsse.jar;C:\JavaSun\jdk1.5.0_10\jre\lib\jce.jar;C:\JavaSun\jdk1.5.0_10\jre\lib\charsets.jar;C:\JavaSun\jdk1.5.0_10\jre\classes
    java.vendor : Sun Microsystems Inc.
    file.separator : \
    java.vendor.url.bug : http://java.sun.com/cgi-bin/bugreport.cgi
    sun.cpu.endian : little
    sun.io.unicode.encoding : UnicodeLittle
    sun.desktop : windows
    sun.cpu.isalist :


Top
 Profile  
 
 Post subject:
PostPosted: Sat Mar 24, 2007 6:41 pm 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
Are you using the libraries that come with the package or not? If you do swap any files in the lib/ directory with newer versions, I do not guarantee that either the code will work or that the libraries are compatible with each other.

Does it run if you just unpack the archive and follow the README?

_________________
JAVA PERSISTENCE WITH HIBERNATE
http://jpwh.org
Get the book, training, and consulting for your Hibernate team.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Mar 25, 2007 11:29 am 
Newbie

Joined: Sat Mar 24, 2007 9:38 am
Posts: 8
Location: London
Yes, using install lib jars. I had swapped the apparent relevant ones
as an exception caused by super() seemed likely to be a version
issue. I'm going to clean it all out and start again from scratch.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.