Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » How to compile eclipselink codebase
How to compile eclipselink codebase [message #826787] Thu, 22 March 2012 14:01 Go to next message
Ga'bor Pe'ntek is currently offline Ga'bor Pe'ntekFriend
Messages: 16
Registered: July 2009
Junior Member
Hi All,

I have some difficulties building the eclipselink codebase. There are some strange reference problems in the imported projects. I did the following:

1. Checked out the source via anonymous svn from
http //dev.eclipse.org/svnroot/rt/org.eclipse.persistence/trunk

2. copied the jars in plugins to the eclipse/plugins directory

3. Imported the projects to eclipse suggested for core development on
wiki.eclipse.org/EclipseLink/Building"

After importing the projects I got the following problems:

Description Resource Path Location Type
Project 'eclipselink.core.test' is missing required Java project: 'javax.persistence 2.1.0' eclipselink.core.test Build path Build Path Problem
Project 'eclipselink.core.test' is missing required Java project: 'javax.xml.bind' eclipselink.core.test Build path Build Path Problem
Project 'eclipselink.jpa.modelgen.test' is missing required Java project: 'javax.persistence 2.1.0' eclipselink.jpa.modelgen.test Build path Build Path Problem
Project 'eclipselink.jpa.modelgen.test' is missing required library: '/eclipselink.jpa.test/eclipselink-annotation-model.jar' eclipselink.jpa.modelgen.test Build path Build Path Problem
Project 'eclipselink.jpa.modelgen.test' is missing required library: '/eclipselink.jpa.test/eclipselink-tests.jar' eclipselink.jpa.modelgen.test Build path Build Path Problem
Project 'eclipselink.jpa.spring.test' is missing required library: 'jpa-spring.jar' eclipselink.jpa.spring.test Build path Build Path Problem
Project 'eclipselink.jpa.test' is missing required Java project: 'javax.persistence 2.1.0' eclipselink.jpa.test Build path Build Path Problem
Project 'eclipselink.jpa.test' is missing required Java project: 'javax.xml.bind' eclipselink.jpa.test Build path Build Path Problem
Project 'eclipselink.jpa.test' is missing required Java project: 'org.eclipse.persistence.jpa.osgi' eclipselink.jpa.test Build path Build Path Problem
Project 'org.eclipse.persistence.jpa.modelgen' is missing required Java project: 'javax.persistence 2.1.0' org.eclipse.persistence.jpa.modelgen Build path Build Path Problem
Project 'org.eclipse.persistence.moxy.dynamicxjc' is missing required Java project: 'com.sun.xml.bind' org.eclipse.persistence.moxy.dynamicxjc Build path Build Path Problem
Project 'org.eclipse.persistence.moxy.dynamicxjc' is missing required Java project: 'javax.xml.bind' org.eclipse.persistence.moxy.dynamicxjc Build path Build Path Problem
Unbound classpath variable: 'ECLIPSELINK_HOME/plugins/com.sun.tools.xjc_2.2.0.jar' in project 'org.eclipse.persistence.moxy.dynamicxjc' org.eclipse.persistence.moxy.dynamicxjc Build path Build Path Problem
Unbound classpath variable: 'JAXRS_LIB' in project 'eclipselink.jpa.test' eclipselink.jpa.test Build path Build Path Problem
Unbound classpath variable: 'SPRING_AGENT_LIB' in project 'eclipselink.jpa.spring.test' eclipselink.jpa.spring.test Build path Build Path Problem
Unbound classpath variable: 'SPRING_CGLIB_LIB' in project 'eclipselink.jpa.spring.test' eclipselink.jpa.spring.test Build path Build Path Problem
Unbound classpath variable: 'SPRING_COMMONS_LOGGING_LIB' in project 'eclipselink.jpa.spring.test' eclipselink.jpa.spring.test Build path Build Path Problem
Unbound classpath variable: 'SPRING_JOTM_CLIENT_LIB' in project 'eclipselink.jpa.spring.test' eclipselink.jpa.spring.test Build path Build Path Problem
Unbound classpath variable: 'SPRING_LIB' in project 'eclipselink.jpa.spring.test' eclipselink.jpa.spring.test Build path Build Path Problem
Unbound classpath variable: 'SPRING_TEST_LIB' in project 'eclipselink.jpa.spring.test' eclipselink.jpa.spring.test Build path Build Path Problem
Unbound classpath variable: 'SPRING_XAPOOL_LIB' in project 'eclipselink.jpa.spring.test' eclipselink.jpa.spring.test Build path Build Path Problem


I also tried to build the project with running ant in the trunk directory but it failed first with no build.xml found.
Running with ant -f antbuild.xml did not work either.



Thanks for any help!
Gabor

[Updated on: Fri, 23 March 2012 12:29]

Report message to a moderator

Re: How to compile eclipselink codebase [message #829649 is a reply to message #826787] Mon, 26 March 2012 15:43 Go to previous messageGo to next message
James Sutherland is currently offline James SutherlandFriend
Messages: 1939
Registered: July 2009
Location: Ottawa, Canada
Senior Member

Try posting this to the dev mailing list, eclipselink-dev@eclipse.org.

What error did you get with "ant -f antbuild.xml"? Make sure you have all of the dependency jars.


James : Wiki : Book : Blog : Twitter
Re: How to compile eclipselink codebase [message #829667 is a reply to message #829649] Mon, 26 March 2012 16:14 Go to previous messageGo to next message
Ga'bor Pe'ntek is currently offline Ga'bor Pe'ntekFriend
Messages: 16
Registered: July 2009
Junior Member
Hi James,

here is the error message:

C:\java\frameworks\eclipselink-trunk>ant -f antbuild.xml -Dbndtool.lib=biz.aQute.bndlib.jar
Buildfile: C:\java\frameworks\eclipselink-trunk\antbuild.xml
[echo] trunk.build.location = 'C:/java/frameworks/eclipselink-trunk'
[echo] env.CLASSPATH = '${env.CLASSPATH}'
[echo] java.class.path = 'c:\java\apache-ant-1.8.2\lib\ant-launcher.jar;C:\java\apache-ant-1.8.2\lib\ant-antlr.jar;C:\java\apache-ant-1.8.2\lib\ant-apache-bcel.jar;C:\java\apache-ant-1.8.2\l
ib\ant-apache-bsf.jar;C:\java\apache-ant-1.8.2\lib\ant-apache-log4j.jar;C:\java\apache-ant-1.8.2\lib\ant-apache-oro.jar;C:\java\apache-ant-1.8.2\lib\ant-apache-regexp.jar;C:\java\apache-ant-1.8.2\lib\
ant-apache-resolver.jar;C:\java\apache-ant-1.8.2\lib\ant-apache-xalan2.jar;C:\java\apache-ant-1.8.2\lib\ant-commons-logging.jar;C:\java\apache-ant-1.8.2\lib\ant-commons-net.jar;C:\java\apache-ant-1.8.
2\lib\ant-jai.jar;C:\java\apache-ant-1.8.2\lib\ant-javamail.jar;C:\java\apache-ant-1.8.2\lib\ant-jdepend.jar;C:\java\apache-ant-1.8.2\lib\ant-jmf.jar;C:\java\apache-ant-1.8.2\lib\ant-jsch.jar;C:\java\
apache-ant-1.8.2\lib\ant-junit.jar;C:\java\apache-ant-1.8.2\lib\ant-junit4.jar;C:\java\apache-ant-1.8.2\lib\ant-launcher.jar;C:\java\apache-ant-1.8.2\lib\ant-netrexx.jar;C:\java\apache-ant-1.8.2\lib\a
nt-swing.jar;C:\java\apache-ant-1.8.2\lib\ant-testutil.jar;C:\java\apache-ant-1.8.2\lib\ant.jar;c:\Oracle\Middleware\jdk160_24\lib\tools.jar'
[echo] user.home = 'C:\Users\tmcuser05'
[echo] Loading user properties from: 'C:\Users\tmcuser05/build.properties'
[echo] oracle.extensions.depend.dir = 'C:/java/frameworks/eclipselink-trunk/../extension.oracle.lib.external'
[echo] extensions.depend.dir = 'C:/java/frameworks/eclipselink-trunk'
[echo] junit.lib = '${junit.lib}' (if not set tests may not compile; let alone run)
[echo] Loading default properties from: 'C:/java/frameworks/eclipselink-trunk/build.properties'
[echo] Maven install (M2_HOME) set to: 'C:/apache-maven-3.0.3'
[echo] java.version='1.6.0_24'
[echo] jdbc.driver.jar='${jdbc.driver.jar}'

clean-runtime-checkedin:
[echo] Custom properties file 'C:\Users\tmcuser05/build.properties' not found to load.

clean:

build-core-maven:

build-core-ant:
[echo] hermes.2.base.dir = '../..'
[echo] Custom properties file 'C:\Users\tmcuser05/build.properties' not found to load.

clean:

init:
[echo] extensions.depend.dir = 'C:/java/frameworks/eclipselink-trunk'
[echo] bndtool.lib = 'biz.aQute.bndlib.jar'

fail-on-no-bnd:

compile:
[mkdir] Created dir: C:\java\frameworks\eclipselink-trunk\jpa\org.eclipse.persistence.jpa.jpql\classes
[javac] C:\java\frameworks\eclipselink-trunk\jpa\org.eclipse.persistence.jpa.jpql\antbuild.xml:178: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false fo
r repeatable builds
[javac] Compiling 644 source files to C:\java\frameworks\eclipselink-trunk\jpa\org.eclipse.persistence.jpa.jpql\classes
[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] Creating empty C:\java\frameworks\eclipselink-trunk\jpa\org.eclipse.persistence.jpa.jpql\classes\org\eclipse\persistence\jpa\jpql\package-info.class
[javac] Creating empty C:\java\frameworks\eclipselink-trunk\jpa\org.eclipse.persistence.jpa.jpql\classes\org\eclipse\persistence\jpa\jpql\parser\package-info.class
[javac] Creating empty C:\java\frameworks\eclipselink-trunk\jpa\org.eclipse.persistence.jpa.jpql\classes\org\eclipse\persistence\jpa\jpql\model\package-info.class
[javac] Creating empty C:\java\frameworks\eclipselink-trunk\jpa\org.eclipse.persistence.jpa.jpql\classes\org\eclipse\persistence\jpa\jpql\model\query\package-info.class
[javac] Creating empty C:\java\frameworks\eclipselink-trunk\jpa\org.eclipse.persistence.jpa.jpql\classes\org\eclipse\persistence\jpa\jpql\spi\package-info.class

package-src:
[jar] Building jar: C:\java\frameworks\eclipselink-trunk\plugins\org.eclipse.persistence.jpa.jpql.source_2.0.0.qualifier.jar

bnd-package:
[taskdef] Could not load definitions from resource aQute/bnd/ant/taskdef.properties. It could not be found.

BUILD FAILED
C:\java\frameworks\eclipselink-trunk\antbuild.xml:319: The following error occurred while executing this line:
C:\java\frameworks\eclipselink-trunk\jpa\org.eclipse.persistence.jpa.jpql\antbuild.xml:229: Problem: failed to create task or type bnd
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any <presetdef>/<macrodef> declarations have taken place.


Total time: 11 seconds
Re: How to compile eclipselink codebase [message #829710 is a reply to message #829667] Mon, 26 March 2012 17:25 Go to previous messageGo to next message
James Sutherland is currently offline James SutherlandFriend
Messages: 1939
Registered: July 2009
Location: Ottawa, Canada
Senior Member

Have you install bnd?


James : Wiki : Book : Blog : Twitter
Re: How to compile eclipselink codebase [message #829722 is a reply to message #829710] Mon, 26 March 2012 17:42 Go to previous messageGo to next message
Ga'bor Pe'ntek is currently offline Ga'bor Pe'ntekFriend
Messages: 16
Registered: July 2009
Junior Member
How should I install bnd? I thought it is enough to provide it on the command line.

C:\java\frameworks\eclipselink-trunk>ant -f antbuild.xml -Dbndtool.lib=biz.aQute.bndlib.jar
Re: How to compile eclipselink codebase [message #830307 is a reply to message #829722] Tue, 27 March 2012 13:11 Go to previous messageGo to next message
Ga'bor Pe'ntek is currently offline Ga'bor Pe'ntekFriend
Messages: 16
Registered: July 2009
Junior Member
I have added the bnd.jar file - not bndlib.jar - to $ANT_HOME/lib and now it seems to be working.

eclipselink.jar has been produced, but I got some junit errors. To solve that I copied the junit.jar to the ant/lib as well and the errors disappeared.

Now I have another problem
BUILD FAILED
C:\java\frameworks\eclipselink-trunk\antbuild.xml:394: The following error occurred while executing this line:
C:\java\frameworks\eclipselink-trunk\jpa\eclipselink.jpa.test\antbuild.xml:481: The following error occurred while executing this line:
C:\java\frameworks\eclipselink-trunk\jpa\eclipselink.jpa.test\antbuild.xml:451: Reference compile.modelgen.path not found.

but according to this topic, I have to downgrade ant.
http: //dev.eclipse.org/mhonarc/lists/eclipselink-dev/msg04535.html
Re: How to compile eclipselink codebase [message #831131 is a reply to message #830307] Wed, 28 March 2012 14:07 Go to previous messageGo to next message
Ga'bor Pe'ntek is currently offline Ga'bor Pe'ntekFriend
Messages: 16
Registered: July 2009
Junior Member
The build pre-requisites can be found at:

http: //wiki.eclipse.org/EclipseLink/Test/JPA#Pre-requisites
Re: How to compile eclipselink codebase [message #831737 is a reply to message #831131] Thu, 29 March 2012 09:16 Go to previous message
Ga'bor Pe'ntek is currently offline Ga'bor Pe'ntekFriend
Messages: 16
Registered: July 2009
Junior Member
Finally it is working. The dependencies described in the above document are necessary.
Previous Topic:Reference to Superclass
Next Topic:HSQLDB Update schema
Goto Forum:
  


Current Time: Tue Apr 23 13:57:11 GMT 2024

Powered by FUDForum. Page generated in 0.03155 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top