You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by Oliver Kiessler <ol...@gmail.com> on 2005/05/11 09:09:44 UTC

Troubles compiling current trunk

hi list,
I am having problems compiling the current trunk. Tried it on linux and osx:

....

/Users/oliver/src/jackrabbit/src/java/org/apache/jackrabbit/core/search/xpath/XPath.java:795:
cannot resolve symbol
symbol  : class SimpleNode
location: class org.apache.jackrabbit.core.search.xpath.XPath
  SimpleNode jjtn000 = new SimpleNode(this, JJTRANGEEXPR);
  ^
/Users/oliver/src/jackrabbit/src/java/org/apache/jackrabbit/core/search/xpath/XPath.java:795:
cannot resolve symbol
symbol  : class SimpleNode
location: class org.apache.jackrabbit.core.search.xpath.XPath
  SimpleNode jjtn000 = new SimpleNode(this, JJTRANGEEXPR);
                           ^
/Users/oliver/src/jackrabbit/src/java/org/apache/jackrabbit/core/search/xpath/XPath.java:805:
cannot resolve symbol
symbol  : class SimpleNode
location: class org.apache.jackrabbit.core.search.xpath.XPath
                  SimpleNode jjtn001 = new SimpleNode(this, JJTRANGEEXPR);
                  ^
/Users/oliver/src/jackrabbit/src/java/org/apache/jackrabbit/core/search/xpath/XPath.java:805:
cannot resolve symbol
symbol  : class SimpleNode
location: class org.apache.jackrabbit.core.search.xpath.XPath
                  SimpleNode jjtn001 = new SimpleNode(this, JJTRANGEEXPR);
                                           ^
/Users/oliver/src/jackrabbit/src/java/org/apache/jackrabbit/core/search/xpath/XPath.java:854:
cannot resolve symbol
symbol  : class SimpleNode
location: class org.apache.jackrabbit.core.search.xpath.XPath
  SimpleNode jjtn000 = new SimpleNode(this, JJTADDITIVEEXPR);
  ^
/Users/oliver/src/jackrabbit/src/java/org/apache/jackrabbit/core/search/xpath/XPath.java:854:
cannot resolve symbol
symbol  : class SimpleNode
location: class org.apache.jackrabbit.core.search.xpath.XPath
  SimpleNode jjtn000 = new SimpleNode(this, JJTADDITIVEEXPR);
                           ^
/Users/oliver/src/jackrabbit/src/java/org/apache/jackrabbit/core/search/xpath/XPath.java:885:
cannot resolve symbol
symbol  : class SimpleNode
location: class org.apache.jackrabbit.core.search.xpath.XPath
                  SimpleNode jjtn001 = new SimpleNode(this, JJTADDITIVEEXPR);
                  ^
/Users/oliver/src/jackrabbit/src/java/org/apache/jackrabbit/core/search/xpath/XPath.java:885:
cannot resolve symbol
symbol  : class SimpleNode
location: class org.apache.jackrabbit.core.search.xpath.XPath
                  SimpleNode jjtn001 = new SimpleNode(this, JJTADDITIVEEXPR);
                                           ^
/Users/oliver/src/jackrabbit/src/java/org/apache/jackrabbit/core/search/xpath/XPath.java:930:
cannot resolve symbol
symbol  : class SimpleNode
location: class org.apache.jackrabbit.core.search.xpath.XPath
  SimpleNode jjtn000 = new SimpleNode(this, JJTMULTIPLICATIVEEXPR);
  ^
/Users/oliver/src/jackrabbit/src/java/org/apache/jackrabbit/core/search/xpath/XPath.java:930:
cannot resolve symbol
symbol  : class SimpleNode
location: class org.apache.jackrabbit.core.search.xpath.XPath
  SimpleNode jjtn000 = new SimpleNode(this, JJTMULTIPLICATIVEEXPR);
                           ^
Note: Some input files use or override a deprecated API.
Note: Recompile with -deprecation for details.
100 errors

BUILD FAILED
File...... /Users/oliver/.maven/cache/maven-java-plugin-1.5/plugin.jelly
Element... ant:javac
Line...... 63
Column.... 48
Compile failed; see the compiler error output for details.
Total time: 4 minutes 16 seconds
Finished at: Wed May 11 09:03:31 CEST 2005

iBook:~/src/jackrabbit oliver$ java -version
java version "1.4.2_07"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_07-215)
Java HotSpot(TM) Client VM (build 1.4.2-50, mixed mode)

thanks and regards,
oliver

Re: Troubles compiling current trunk

Posted by Oliver Kiessler <ol...@gmail.com>.
thanks jukka and marcel, now everything compiles fine.

On 5/11/05, Marcel Reutegger <ma...@gmx.net> wrote:
> Hi Oliver,
> 
> Oliver Kiessler wrote:
> > hi list,
> > I am having problems compiling the current trunk. Tried it on linux and osx:
> >
> > ....
> >
> > /Users/oliver/src/jackrabbit/src/java/org/apache/jackrabbit/core/search/xpath/XPath.java:795:
> > cannot resolve symbol
> > symbol  : class SimpleNode
> > location: class org.apache.jackrabbit.core.search.xpath.XPath
> >   SimpleNode jjtn000 = new SimpleNode(this, JJTRANGEEXPR);
> 
> This is because of a package rename see [1]. With the current project
> structure generated parser classes are also within the regular source
> tree. e.g. your XPath.java class which is not used anymore. we are
> currently discussing this issue in [2].
> 
> To get your checkout working again, you have to delete the directory:
> /Users/oliver/src/jackrabbit/src/java/org/apache/jackrabbit/core/search
> and jackrabbit should compile again.
> 
> regards
>   marcel
> 
> [1] http://issues.apache.org/jira/browse/JCR-110
> [2] http://issues.apache.org/jira/browse/JCR-116
>

Re: Troubles compiling current trunk

Posted by Marcel Reutegger <ma...@gmx.net>.
Hi Oliver,

Oliver Kiessler wrote:
> hi list,
> I am having problems compiling the current trunk. Tried it on linux and osx:
> 
> ....
> 
> /Users/oliver/src/jackrabbit/src/java/org/apache/jackrabbit/core/search/xpath/XPath.java:795:
> cannot resolve symbol
> symbol  : class SimpleNode
> location: class org.apache.jackrabbit.core.search.xpath.XPath
>   SimpleNode jjtn000 = new SimpleNode(this, JJTRANGEEXPR);

This is because of a package rename see [1]. With the current project 
structure generated parser classes are also within the regular source 
tree. e.g. your XPath.java class which is not used anymore. we are 
currently discussing this issue in [2].

To get your checkout working again, you have to delete the directory:
/Users/oliver/src/jackrabbit/src/java/org/apache/jackrabbit/core/search
and jackrabbit should compile again.

regards
  marcel

[1] http://issues.apache.org/jira/browse/JCR-110
[2] http://issues.apache.org/jira/browse/JCR-116

Re: Troubles compiling current trunk

Posted by Jukka Zitting <jz...@yukatan.fi>.
Hi,

Oliver Kiessler wrote:
> I am having problems compiling the current trunk. Tried it on linux and osx:
> [...]
> /Users/oliver/src/jackrabbit/src/java/org/apache/jackrabbit/core/search/xpath/XPath.java:795:
> cannot resolve symbol
> symbol  : class SimpleNode
> location: class org.apache.jackrabbit.core.search.xpath.XPath
>   SimpleNode jjtn000 = new SimpleNode(this, JJTRANGEEXPR);
>   ^

The JavaCC parsers were recently moved from o.a.j.core.search to 
o.a.j.core.query, so you probably have some leftover files breaking the 
build (the parser files are not cleaned by "maven clean", see JCR-116).

A quick fix is either to remove the old files ("rm -r 
src/java/org/pache/jackrabbit/core/search" should be fine) or to get a 
fresh svn checkout.

BR,

Jukka Zitting