You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by Hans Bakker <ma...@antwebsystems.com> on 2009/11/13 09:10:00 UTC

Re: Build Error in Tools?

In 1.6 it also not builds.

The error:
BUILD FAILED
/home/hans/ofbiz/svn/build.xml:182: The following error occurred while
executing this line:
/home/hans/ofbiz/svn/framework/build.xml:147: The following error
occurred while executing this line:
/home/hans/ofbiz/svn/macros.xml:27: The following error occurred while
executing this line:
/home/hans/ofbiz/svn/framework/entity/build.xml:56: The following error
occurred while executing this line:
/home/hans/ofbiz/svn/macros.xml:83: Problem: failed to create task or
type javacc
Cause: the class org.apache.tools.ant.taskdefs.optional.javacc.JavaCC
was not found.
        This looks like one of Ant's optional components.
Action: Check that the appropriate optional JAR exists in
        -/home/hans/ofbiz/svn/framework/base/lib
        -/home/hans/.ant/lib
        -a directory added on the command line with the -lib argument

Do not panic, this is a common problem.
The commonest cause is a missing JAR.

This is not a bug; it is a configuration problem




On Fri, 2009-11-13 at 08:59 +0100, Jacques Le Roux wrote:
> Thanks Adrian,
> 
> Yes I did not care and build with ant from Eclipse where I use the 1.6 JDK. I'm on it, not as simple as I thought some problem 
> appeared...
> In the meantime can you use 1.6 to build ?
> BTW, could we not change from 1.5 to 1.6, is there any blocking reasons I don't remember ?
> 
> Jacques
> 
> From: "Adrian Crum" <ad...@yahoo.com>
> > Latest trunk:
> >
> > Compiling 129 source files to C:\ofbiz\framework\entity\build\classes
> >  [javac15] C:\ofbiz\framework\entity\src\org\ofbiz\entity\connection\DBCPConnectionFactory.java:21: cannot access 
> > org.apache.commons.dbcp.ConnectionFactory
> >  [javac15] bad class file: 
> > C:\ofbiz\framework\entity\lib\commons-dbcp-1.3-20091111-r834702.jar(org/apache/commons/dbcp/ConnectionFactory.class)
> >  [javac15] class file has wrong version 50.0, should be 49.0
> >  [javac15] Please remove or make sure it appears in the correct subdirectory of the classpath.
> >  [javac15] import org.apache.commons.dbcp.ConnectionFactory;
> >  [javac15]                                ^
> >  [javac15] 1 error
> >
> >
> >
> >
> > 
> 
> 
-- 
Antwebsystems.com: Quality OFBiz services for competitive rates


Re: Build Error in Tools?

Posted by Jacques Le Roux <ja...@les7arts.com>.
It seems that this it's a combination with recent Adam's changes. I have an instance that I have not updated and I'm able to compile
it with 1.6. But with an updated instance I get the same error with 1.6.

The problem I get compiling DBCP with 1.5 is about JDBC 4, still on...

Jacques

From: "Hans Bakker" <ma...@antwebsystems.com>
> In 1.6 it also not builds.
>
> The error:
> BUILD FAILED
> /home/hans/ofbiz/svn/build.xml:182: The following error occurred while
> executing this line:
> /home/hans/ofbiz/svn/framework/build.xml:147: The following error
> occurred while executing this line:
> /home/hans/ofbiz/svn/macros.xml:27: The following error occurred while
> executing this line:
> /home/hans/ofbiz/svn/framework/entity/build.xml:56: The following error
> occurred while executing this line:
> /home/hans/ofbiz/svn/macros.xml:83: Problem: failed to create task or
> type javacc
> Cause: the class org.apache.tools.ant.taskdefs.optional.javacc.JavaCC
> was not found.
>        This looks like one of Ant's optional components.
> Action: Check that the appropriate optional JAR exists in
>        -/home/hans/ofbiz/svn/framework/base/lib
>        -/home/hans/.ant/lib
>        -a directory added on the command line with the -lib argument
>
> Do not panic, this is a common problem.
> The commonest cause is a missing JAR.
>
> This is not a bug; it is a configuration problem
>
>
>
>
> On Fri, 2009-11-13 at 08:59 +0100, Jacques Le Roux wrote:
>> Thanks Adrian,
>>
>> Yes I did not care and build with ant from Eclipse where I use the 1.6 JDK. I'm on it, not as simple as I thought some problem
>> appeared...
>> In the meantime can you use 1.6 to build ?
>> BTW, could we not change from 1.5 to 1.6, is there any blocking reasons I don't remember ?
>>
>> Jacques
>>
>> From: "Adrian Crum" <ad...@yahoo.com>
>> > Latest trunk:
>> >
>> > Compiling 129 source files to C:\ofbiz\framework\entity\build\classes
>> >  [javac15] C:\ofbiz\framework\entity\src\org\ofbiz\entity\connection\DBCPConnectionFactory.java:21: cannot access
>> > org.apache.commons.dbcp.ConnectionFactory
>> >  [javac15] bad class file:
>> > C:\ofbiz\framework\entity\lib\commons-dbcp-1.3-20091111-r834702.jar(org/apache/commons/dbcp/ConnectionFactory.class)
>> >  [javac15] class file has wrong version 50.0, should be 49.0
>> >  [javac15] Please remove or make sure it appears in the correct subdirectory of the classpath.
>> >  [javac15] import org.apache.commons.dbcp.ConnectionFactory;
>> >  [javac15]                                ^
>> >  [javac15] 1 error
>> >
>> >
>> >
>> >
>> >
>>
>>
> -- 
> Antwebsystems.com: Quality OFBiz services for competitive rates
>



Re: Build Error in Tools?

Posted by Adam Heath <do...@brainfood.com>.
Hans Bakker wrote:
> In 1.6 it also not builds.
> 
> The error:
> BUILD FAILED
> /home/hans/ofbiz/svn/build.xml:182: The following error occurred while
> executing this line:
> /home/hans/ofbiz/svn/framework/build.xml:147: The following error
> occurred while executing this line:
> /home/hans/ofbiz/svn/macros.xml:27: The following error occurred while
> executing this line:
> /home/hans/ofbiz/svn/framework/entity/build.xml:56: The following error
> occurred while executing this line:
> /home/hans/ofbiz/svn/macros.xml:83: Problem: failed to create task or
> type javacc
> Cause: the class org.apache.tools.ant.taskdefs.optional.javacc.JavaCC
> was not found.
>         This looks like one of Ant's optional components.
> Action: Check that the appropriate optional JAR exists in
>         -/home/hans/ofbiz/svn/framework/base/lib
>         -/home/hans/.ant/lib
>         -a directory added on the command line with the -lib argument
> 
> Do not panic, this is a common problem.
> The commonest cause is a missing JAR.
> 
> This is not a bug; it is a configuration problem

Fixed in 835774.