-->
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.  [ 2 posts ] 
Author Message
 Post subject: HibernateExt won't build (build.bat)
PostPosted: Fri Jan 05, 2007 7:54 am 
Newbie

Joined: Fri Jul 21, 2006 7:20 am
Posts: 15
I have a root directory that contains a map hibernate-3.2 and a map HibernateExt. When I run build.bat in the hibernate-3.2 directory it builds just fine.

However when I run build.bat in the HibernateExt directory it ends up with this list of compile errors:


Code:
H:\Workspace\HibernateExt>build

H:\Workspace\HibernateExt>set HIBERNATECORE=H:\Workspace\HibernateExt\..\hibernate-3.2

H:\Workspace\HibernateExt>java -cp "H:\Workspace\HibernateExt\..\hibernate-3.2\lib\ant-launcher-1.6.5.jar" org.apache.tools.ant.la
unch.Launcher -lib H:\Workspace\HibernateExt\..\hibernate-3.2/lib
Buildfile: build.xml
  [taskdef] Could not load definitions from resource clovertasks. It could not be found.

dist:

init:
     [echo] Build ejb3-persistence-3.0 Final Release (2007-01-05 12:53:42)

compile:
    [javac] Compiling 2 source files to H:\Workspace\HibernateExt\ejb-api\build\classes

jar:
      [jar] Building jar: H:\Workspace\HibernateExt\ejb-api\build\ejb3-persistence.jar
  [taskdef] Could not load definitions from resource clovertasks. It could not be found.

init:
     [echo] Build Hibernate EntityManager-3.2.0.GA (2007-01-05 12:53:48)

compile:
    [javac] Compiling 49 source files to H:\Workspace\HibernateExt\ejb\build\classes
    [javac] H:\Workspace\HibernateExt\ejb\src\java\org\hibernate\ejb\AbstractEntityManagerImpl.java:44: cannot find symbol
    [javac] symbol  : class TypeMismatchException
    [javac] location: package org.hibernate
    [javac] import org.hibernate.TypeMismatchException;
    [javac]                      ^
    [javac] H:\Workspace\HibernateExt\ejb\src\java\org\hibernate\ejb\Ejb3Configuration.java:49: cannot find symbol
    [javac] symbol  : class MappingNotFoundException
    [javac] location: package org.hibernate
    [javac] import org.hibernate.MappingNotFoundException;
    [javac]                      ^
    [javac] H:\Workspace\HibernateExt\ejb\src\java\org\hibernate\ejb\QueryImpl.java:19: cannot find symbol
    [javac] symbol  : class QueryParameterException
    [javac] location: package org.hibernate
    [javac] import org.hibernate.QueryParameterException;
    [javac]                      ^
    [javac] H:\Workspace\HibernateExt\ejb\src\java\org\hibernate\ejb\QueryImpl.java:20: cannot find symbol
    [javac] symbol  : class TypeMismatchException
    [javac] location: package org.hibernate
    [javac] import org.hibernate.TypeMismatchException;
    [javac]                      ^
    [javac] H:\Workspace\HibernateExt\ejb\src\java\org\hibernate\ejb\QueryImpl.java:22: cannot find symbol
    [javac] symbol  : class QueryExecutionRequestException
    [javac] location: package org.hibernate.hql
    [javac] import org.hibernate.hql.QueryExecutionRequestException;
    [javac]                          ^
    [javac] H:\Workspace\HibernateExt\ejb\src\java\org\hibernate\ejb\instrument\InterceptFieldClassFileTransformer.java:9: package
org.hibernate.bytecode.util does not exist
    [javac] import org.hibernate.bytecode.util.ClassFilter;
    [javac]                                    ^
    [javac] H:\Workspace\HibernateExt\ejb\src\java\org\hibernate\ejb\instrument\InterceptFieldClassFileTransformer.java:10: packag
e org.hibernate.bytecode.util does not exist
    [javac] import org.hibernate.bytecode.util.FieldFilter;
    [javac]                                    ^
    [javac] H:\Workspace\HibernateExt\ejb\src\java\org\hibernate\ejb\AbstractEntityManagerImpl.java:158: cannot find symbol
    [javac] symbol  : class TypeMismatchException
    [javac] location: class org.hibernate.ejb.AbstractEntityManagerImpl
    [javac]             catch (TypeMismatchException e ) {
    [javac]                        ^
    [javac] H:\Workspace\HibernateExt\ejb\src\java\org\hibernate\ejb\AbstractEntityManagerImpl.java:187: cannot find symbol
    [javac] symbol  : class TypeMismatchException
    [javac] location: class org.hibernate.ejb.AbstractEntityManagerImpl
    [javac]             catch (TypeMismatchException e ) {
    [javac]                        ^
    [javac] H:\Workspace\HibernateExt\ejb\src\java\org\hibernate\ejb\AbstractEntityManagerImpl.java:402: cannot find symbol
    [javac] symbol  : variable MANUAL
    [javac] location: class org.hibernate.FlushMode
    [javac]             if ( isTransactionActive && session.getFlushMode() == FlushMode.MANUAL ) {
    [javac]                                                                                ^
    [javac] H:\Workspace\HibernateExt\ejb\src\java\org\hibernate\ejb\AbstractEntityManagerImpl.java:406: cannot find symbol
    [javac] symbol  : variable MANUAL
    [javac] location: class org.hibernate.FlushMode
    [javac]             else if ( ! isTransactionActive && session.getFlushMode() != FlushMode.MANUAL ) {
    [javac]                                                                                       ^
    [javac] H:\Workspace\HibernateExt\ejb\src\java\org\hibernate\ejb\AbstractEntityManagerImpl.java:408: cannot find symbol
    [javac] symbol  : variable MANUAL
    [javac] location: class org.hibernate.FlushMode
    [javac]                     session.setFlushMode( FlushMode.MANUAL );
    [javac]                                                        ^
    [javac] H:\Workspace\HibernateExt\ejb\src\java\org\hibernate\ejb\Ejb3Configuration.java:890: cannot find symbol
    [javac] symbol  : class MappingNotFoundException
    [javac] location: class org.hibernate.ejb.Ejb3Configuration
    [javac]                             catch( MappingNotFoundException e ) {
    [javac]                                        ^
    [javac] H:\Workspace\HibernateExt\ejb\src\java\org\hibernate\ejb\Ejb3Configuration.java:942: cannot find symbol
    [javac] symbol  : variable JPAQL_STRICT_COMPLIANCE
    [javac] location: class org.hibernate.cfg.Environment
    [javac]             preparedProperties.setProperty( Environment.JPAQL_STRICT_COMPLIANCE, "true" );
    [javac]                                                            ^
    [javac] H:\Workspace\HibernateExt\ejb\src\java\org\hibernate\ejb\QueryImpl.java:50: cannot find symbol
    [javac] symbol  : class QueryExecutionRequestException
    [javac] location: class org.hibernate.ejb.QueryImpl
    [javac]             catch (QueryExecutionRequestException he) {
    [javac]                        ^
    [javac] H:\Workspace\HibernateExt\ejb\src\java\org\hibernate\ejb\QueryImpl.java:53: cannot find symbol
    [javac] symbol  : class TypeMismatchException
    [javac] location: class org.hibernate.ejb.QueryImpl
    [javac]             catch( TypeMismatchException e ) {
    [javac]                        ^
    [javac] H:\Workspace\HibernateExt\ejb\src\java\org\hibernate\ejb\QueryImpl.java:66: cannot find symbol
    [javac] symbol  : class QueryExecutionRequestException
    [javac] location: class org.hibernate.ejb.QueryImpl
    [javac]             catch (QueryExecutionRequestException he) {
    [javac]                        ^
    [javac] H:\Workspace\HibernateExt\ejb\src\java\org\hibernate\ejb\QueryImpl.java:69: cannot find symbol
    [javac] symbol  : class TypeMismatchException
    [javac] location: class org.hibernate.ejb.QueryImpl
    [javac]             catch( TypeMismatchException e ) {
    [javac]                        ^
    [javac] H:\Workspace\HibernateExt\ejb\src\java\org\hibernate\ejb\QueryImpl.java:92: cannot find symbol
    [javac] symbol  : class QueryExecutionRequestException
    [javac] location: class org.hibernate.ejb.QueryImpl
    [javac]             catch (QueryExecutionRequestException he) {
    [javac]                        ^
    [javac] H:\Workspace\HibernateExt\ejb\src\java\org\hibernate\ejb\QueryImpl.java:95: cannot find symbol
    [javac] symbol  : class TypeMismatchException
    [javac] location: class org.hibernate.ejb.QueryImpl
    [javac]             catch( TypeMismatchException e ) {
    [javac]                        ^
    [javac] H:\Workspace\HibernateExt\ejb\src\java\org\hibernate\ejb\QueryImpl.java:175: cannot find symbol
    [javac] symbol  : class QueryParameterException
    [javac] location: class org.hibernate.ejb.QueryImpl
    [javac]             catch (QueryParameterException e) {
    [javac]                        ^
    [javac] H:\Workspace\HibernateExt\ejb\src\java\org\hibernate\ejb\QueryImpl.java:197: cannot find symbol
    [javac] symbol  : class QueryParameterException
    [javac] location: class org.hibernate.ejb.QueryImpl
    [javac]             catch (QueryParameterException e) {
    [javac]                        ^
    [javac] H:\Workspace\HibernateExt\ejb\src\java\org\hibernate\ejb\QueryImpl.java:219: cannot find symbol
    [javac] symbol  : class QueryParameterException
    [javac] location: class org.hibernate.ejb.QueryImpl
    [javac]             catch (QueryParameterException e) {
    [javac]                        ^
    [javac] H:\Workspace\HibernateExt\ejb\src\java\org\hibernate\ejb\QueryImpl.java:238: cannot find symbol
    [javac] symbol  : class QueryParameterException
    [javac] location: class org.hibernate.ejb.QueryImpl
    [javac]             catch (QueryParameterException e) {
    [javac]                        ^
    [javac] H:\Workspace\HibernateExt\ejb\src\java\org\hibernate\ejb\QueryImpl.java:287: cannot find symbol
    [javac] symbol  : class QueryParameterException
    [javac] location: class org.hibernate.ejb.QueryImpl
    [javac]             catch (QueryParameterException e) {
    [javac]                        ^
    [javac] H:\Workspace\HibernateExt\ejb\src\java\org\hibernate\ejb\QueryImpl.java:315: cannot find symbol
    [javac] symbol  : class QueryParameterException
    [javac] location: class org.hibernate.ejb.QueryImpl
    [javac]             catch (QueryParameterException e) {
    [javac]                        ^
    [javac] H:\Workspace\HibernateExt\ejb\src\java\org\hibernate\ejb\event\EJB3DeleteEventListener.java:40: method does not overri
de a method from its superclass
    [javac]     @Override
    [javac]          ^
    [javac] H:\Workspace\HibernateExt\ejb\src\java\org\hibernate\ejb\event\EJB3PostUpdateEventListener.java:37: cannot find symbol

    [javac] symbol  : method getSession()
    [javac] location: class org.hibernate.event.PostUpdateEvent
    [javac]             EntityEntry entry = (EntityEntry) event.getSession().getPersistenceContext().getEntityEntries().get( entit
y );
    [javac]                                                        ^
    [javac] H:\Workspace\HibernateExt\ejb\src\java\org\hibernate\ejb\instrument\InterceptFieldClassFileTransformer.java:30: cannot
find symbol
    [javac] symbol  : class ClassFilter
    [javac] location: class org.hibernate.ejb.instrument.InterceptFieldClassFileTransformer
    [javac]                             new ClassFilter() {
    [javac]                                     ^
    [javac] H:\Workspace\HibernateExt\ejb\src\java\org\hibernate\ejb\instrument\InterceptFieldClassFileTransformer.java:36: cannot
find symbol
    [javac] symbol  : class FieldFilter
    [javac] location: class org.hibernate.ejb.instrument.InterceptFieldClassFileTransformer
    [javac]                             new FieldFilter() {
    [javac]                                     ^
    [javac] Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
    [javac] 30 errors

BUILD FAILED
H:\Workspace\HibernateExt\build.xml:25: The following error occurred while executing this line:
H:\Workspace\HibernateExt\ejb\build.xml:49: Compile failed; see the compiler error output for details.

Total time: 16 seconds

H:\Workspace\HibernateExt>


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 05, 2007 8:39 am 
Newbie

Joined: Fri Jul 21, 2006 7:20 am
Posts: 15
Okay, copying hibernate3.jar from h:\workspace\hibernate-3.2\build to h:\workspace\hibernate-3.2\ gets me a little further.

But I got some other error during the [javadoc] task that expected to see a h:\workspace\Hibernate3 map. So I copied the complete h:\workspace\hibernate-3.2 directory to h:\workspace\Hibernate3

ok, now I run build.

Which fails at this point:

Code:
init:
     [echo] Build Hibernate Annotations-3.2.0.GA (2007-01-05 01:36:10)

compile:
    [javac] Compiling 132 source files to H:\Workspace\HibernateExt\metadata\build\classes
    [javac] H:\Workspace\HibernateExt\metadata\src\java\org\hibernate\cfg\AnnotationConfiguration.java:292: doSecondPass(java.util
.Map,java.util.Map) in org.hibernate.cfg.SecondPass cannot be applied to (java.util.Map)
    [javac]                             sp.doSecondPass( classes );
    [javac]                                   ^
    [javac] H:\Workspace\HibernateExt\metadata\src\java\org\hibernate\cfg\AnnotationConfiguration.java:424: doSecondPass(java.util
.Map,java.util.Map) in org.hibernate.cfg.SecondPass cannot be applied to (java.util.Map)
    [javac]                             ( (SecondPass) it.next() ).doSecondPass( classes );
    [javac]                                 ^
    [javac] H:\Workspace\HibernateExt\metadata\src\java\org\hibernate\cfg\AnnotationConfiguration.java:428: doSecondPass(java.util
.Map,java.util.Map) in org.hibernate.cfg.SecondPass cannot be applied to (java.util.Map)
    [javac]                             ( (SecondPass) it.next() ).doSecondPass( classes );
    [javac]                                 ^
    [javac] H:\Workspace\HibernateExt\metadata\src\java\org\hibernate\cfg\ExtendedMappings.java:264: classes has private access in
org.hibernate.cfg.Mappings
    [javac]             return classes;
    [javac]                        ^
    [javac] H:\Workspace\HibernateExt\metadata\src\java\org\hibernate\cfg\CreateKeySecondPass.java:13: org.hibernate.cfg.CreateKey
SecondPass is not abstract and does not override abstract method doSecondPass(java.util.Map,java.util.Map) in org.hibernate.cfg.Se
condPass
    [javac] public class CreateKeySecondPass implements SecondPass {
    [javac]        ^
    [javac] H:\Workspace\HibernateExt\metadata\src\java\org\hibernate\cfg\FkSecondPass.java:22: org.hibernate.cfg.FkSecondPass is
not abstract and does not override abstract method doSecondPass(java.util.Map,java.util.Map) in org.hibernate.cfg.SecondPass
    [javac] public class FkSecondPass implements SecondPass {
    [javac]        ^
    [javac] H:\Workspace\HibernateExt\metadata\src\java\org\hibernate\cfg\IndexSecondPass.java:14: org.hibernate.cfg.IndexSecondPa
ss is not abstract and does not override abstract method doSecondPass(java.util.Map,java.util.Map) in org.hibernate.cfg.SecondPass

    [javac] public class IndexSecondPass implements SecondPass {
    [javac]        ^
    [javac] H:\Workspace\HibernateExt\metadata\src\java\org\hibernate\cfg\OneToOneSecondPass.java:27: org.hibernate.cfg.OneToOneSe
condPass is not abstract and does not override abstract method doSecondPass(java.util.Map,java.util.Map) in org.hibernate.cfg.Seco
ndPass
    [javac] public class OneToOneSecondPass implements SecondPass {
    [javac]        ^
    [javac] H:\Workspace\HibernateExt\metadata\src\java\org\hibernate\cfg\annotations\ResultsetMappingSecondPass.java:37: org.hibe
rnate.cfg.annotations.ResultsetMappingSecondPass is not abstract and does not override abstract method doSecondPass(java.util.Map,
java.util.Map) in org.hibernate.cfg.SecondPass
    [javac] public class ResultsetMappingSecondPass implements QuerySecondPass {
    [javac]        ^
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
    [javac] 9 errors

BUILD FAILED
H:\Workspace\HibernateExt\build.xml:25: The following error occurred while executing this line:
H:\Workspace\HibernateExt\metadata\build.xml:42: Compile failed; see the compiler error output for details.

Total time: 2 minutes 57 seconds

H:\Workspace\HibernateExt>


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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.