-->
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.  [ 11 posts ] 
Author Message
 Post subject: help me about the hibernte source build question!
PostPosted: Sat Nov 12, 2005 3:41 am 
Newbie

Joined: Sat Nov 12, 2005 3:31 am
Posts: 7
i downloaded hibernate core 3.0.5 from this site, but i can not find the "org.hibernate.expression" package. so i checkout the "hibernate3" module source form sourceforge cvs. and run "ant" to build jar package; but when i run "ant", some errors occur. the following is the stack of this exceptions. it's look like the antlr application produce the wrong code...

[javac] Compiling 918 source files to D:\src\Hibernate3.1\build\classes
[javac] D:\src\Hibernate3.1\build\gensrc\org\hibernate\hql\antlr\HqlBaseLexer.java:792: ')' expected
[javac] if (((LA(1 >= '0' && LA(1) <= '9'))) {
[javac] ^
[javac] D:\src\Hibernate3.1\build\gensrc\org\hibernate\hql\antlr\HqlBaseParser.java:1416: ';' expected
[javac] cae JOIN:
[javac] ^
[javac] D:\src\Hibernate3.1\build\gensrc\org\hibernate\hql\antlr\HqlSqlBaseWalker.java:1894: ';' expected
[javac] match(_t,ALL);
[javac] ^
[javac] D:\src\Hibernate3.1\build\gensrc\org\hibernate\hql\antlr\HqlSqlBaseWalker.java:2192: ';' expected
[javac] cae INDICES:
[javac] ^
[javac] D:\src\Hibernate3.1\build\gensrc\org\hibernate\hql\antlr\HqlSqlBaseWalker.java:2833: '(' or '[' expected
[javac] throw new NoViableAltException_t);
[javac] ^
[javac] D:\src\Hibernate3.1\build\gensrc\org\hibernate\hql\antlr\HqlSqlBaseWalker.java:3541: not a statement
[javac] brea;
[javac] ^
[javac] D:\src\Hibernate3.1\build\gensrc\org\hibernate\hql\antlr\HqlSqlBaseWalker.java:4169: ';' expected
[javac] cas PARAM:
[javac] ^
[javac] D:\src\Hibernate3.1\build\gensrc\org\hibernate\hql\antlr\SqlGeneratorBase.java:2103: ';' expected
[javac] swich ( _t.getType()) {
[javac] ^
[javac] 8 errors

------------------------------------------------------------

How to Solve this problem? thx.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Nov 12, 2005 3:44 am 
Expert
Expert

Joined: Mon Jul 04, 2005 5:19 pm
Posts: 720
can you double check to see if there were any other errors? this looks more like a symptom rather than a cause.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Nov 12, 2005 3:46 am 
Expert
Expert

Joined: Mon Jul 04, 2005 5:19 pm
Posts: 720
one more thing - i'm pretty sure ant has it's own version of antlr, although I don't know if this is the problem.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Nov 12, 2005 4:01 am 
Newbie

Joined: Sat Nov 12, 2005 3:31 am
Posts: 7
1. The error message show the code cause this problem, it seems that antlr produce the wrong code....
2. I use the antlr jar file included in the lib dirctory of cvs source.
3. Another symptom is : when i change the grammar diretory files to those of version 3.0.5, the number of error change.
4. what can i do ...


Top
 Profile  
 
 Post subject:
PostPosted: Sat Nov 12, 2005 5:46 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
just run build.bat then it will work

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Sat Nov 12, 2005 9:25 am 
Newbie

Joined: Sat Nov 12, 2005 3:31 am
Posts: 7
max:
thanks for your quickly reply, i try run "build.bat", it's the same problem ;(


Top
 Profile  
 
 Post subject:
PostPosted: Sat Nov 12, 2005 9:41 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
well then i guess you dont have the exact same thing as what is in hibernate3 cvs

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Sat Nov 12, 2005 11:25 am 
Expert
Expert

Joined: Mon Jul 04, 2005 5:19 pm
Posts: 720
is/will there be nightly builds of hibernate 3?


Top
 Profile  
 
 Post subject:
PostPosted: Sat Nov 12, 2005 12:00 pm 
Expert
Expert

Joined: Sat Jun 12, 2004 4:49 pm
Posts: 915
i can't build hibernate with last ant (1.6.5) , too
build is fine with ant 1.6.3


Top
 Profile  
 
 Post subject:
PostPosted: Sat Nov 12, 2005 1:12 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
just use the ant that is with hibernate - don't try to mix and match

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 15, 2005 8:30 pm 
Newbie

Joined: Sat Nov 12, 2005 3:31 am
Posts: 7
I try the same code in another computer, to my suprise, it works ok... may be it's for the env. cause...


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