[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipselink-dev] How to import eclipselink to eclipse?

After a full update and rebuild I have replaced javax.persistence 2.1.0 with 2.0.0 found on the trunk. I also replaced javax.xml.bind with a direct dependency to javax.xml.bind_2.2.0.v201005080402.jar in the plugins directory and set up the JAXRS_LIB variable to point to javax.ws.rs_1.1.1.v20101004-1200.jar in plugins.

Now I have the following errors:

DescriptionÂÂÂ ResourceÂÂÂ PathÂÂÂ LocationÂÂÂ Type
Project 'eclipselink.jpa.modelgen.test' is missing required library: '/eclipselink.jpa.test/eclipselink-tests.jar'ÂÂÂ eclipselink.jpa.modelgen.testÂÂÂ ÂÂÂ Build pathÂÂÂ Build Path Problem

DescriptionÂÂÂ ResourceÂÂÂ PathÂÂÂ LocationÂÂÂ Type
The project cannot be built until build path errors are resolvedÂÂÂ eclipselink.jpa.modelgen.testÂÂÂ ÂÂÂ UnknownÂÂÂ Java Problem
The project was not built since it depends on eclipselink.jpa.modelgen.test, which has build path errorsÂÂÂ eclipselink.jpa.testÂÂÂ ÂÂÂ UnknownÂÂÂ Java Problem


This seems a deadlock to me :(

GÃbor

On Thu, Mar 29, 2012 at 4:15 PM, Tom Ware <tom.ware@xxxxxxxxxx> wrote:
I suggest you reduce the number of eclipselink projects you have in your workspace.

Keep:

o.e.p.core
o.e.p.jpa
o.e.p.antlr
o.e.p.jpa.osgi
o.e.p.moxy
eclipselink.core.test
eclipselink.jpa.test
eclipselink.jpa.modelgen.test

Additionally, you'll need the dependency projects as described on

http://wiki.eclipse.org/EclipseLink/Building

With that subset of the projects, the number of errors you have should be reduced.

You may still have some errors relating to javax.xml.bind and javax.persistence 2.1.0 depending how and when they were pulled into Eclipse. ÂFirst ensure you have updated all your projects from SVN and in Eclipse. ÂIf you are still having problems, you may need to open the build path and remove the javax.persistence or javax.xml bind that is referenced and re-add the one you have in your workspace. Â(this issue may occur depending on how your have your Eclipse setup to name projects when it imports them)

-Tom


On 29/03/2012 8:33 AM, PÃntek GÃbor wrote:
I would like to write tests for my new foreign key index creation functionality
and run them from eclipse.

The code affects only org.eclipse.persistence.core. TableDefinition and
DatabasePlatform classes in particular.

GÃbor

On Thu, Mar 29, 2012 at 2:23 PM, Tom Ware <tom.ware@xxxxxxxxxx
<mailto:tom.ware@xxxxxxxxxx>> wrote:

 ÂWhat are you trying to achieve by importing the eclipse projects. ÂIt looks
 Âlike you have imported quite a lot of projects and I'd like to help you pare
 Âdown the list.

 Â-Tom


 ÂOn 29/03/2012 6:26 AM, PÃntek GÃbor wrote:

   ÂHi All,

   ÂI am trying to build eclipselink from the trunk in order to resolve this
   Âissue:
   Âhttp://www.eclipse.org/forums/__index.php?t=rview&goto=825210#__msg_825210
   Â<http://www.eclipse.org/forums/index.php?t=rview&goto=825210#msg_825210>
   Â<http://www.eclipse.org/__forums/index.php?t=rview&goto=__825210#msg_825210

   Â<http://www.eclipse.org/forums/index.php?t=rview&goto=825210#msg_825210>>

   ÂThe solution is ready but I have some trouble with building the project from
   Âeclipse.

   ÂAnt build is working now, but it took some time since did not find a
   Âdocument
   Âdescribing the whole process and the information needed was spread among
   Âseveral
   Âwiki pages.

   ÂI have done the following:
   Âchecked out eclipselink trunk.
   Âran an ant build.
   Âcopied the contents of the trunk/plugins directory to eclipse/plugins
   Âimported the projects suggested on
   Âhttp://wiki.eclipse.org/__EclipseLink/Building

   Â<http://wiki.eclipse.org/EclipseLink/Building>

   ÂEclipse gave the following error messages:
   Â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-tests.jar'

   Âeclipselink.jpa.modelgen.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.moxy.test' is missing required Java project:
   Â'javax.activation'  Âeclipselink.moxy.test    ÂBuild path  ÂBuild
   ÂPath Problem
   ÂProject 'eclipselink.moxy.test' is missing required Java project:
   Â'javax.mail'  Âeclipselink.moxy.test    ÂBuild path  ÂBuild Path
   ÂProblem
   ÂProject 'eclipselink.moxy.test' is missing required Java project:
   Â'javax.xml.bind'  Âeclipselink.moxy.test    ÂBuild path  ÂBuild
   ÂPath Problem
   ÂProject 'eclipselink.moxy.test' is missing required Java project:
   Â'javax.xml.stream'  Âeclipselink.moxy.test    ÂBuild path  ÂBuild
   ÂPath Problem
   ÂProject 'eclipselink.utils.jaxb' is missing required Java project:
   Â'com.sun.xml.bind'  Âeclipselink.utils.jaxb    Â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

   Â'eclipselink.utils.jaxb'  Âeclipselink.utils.jaxb    Â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
   ÂBuild path specifies execution environment J2SE-1.5. There are no JREs
   Âinstalled
   Âin the workspace that are strictly compatible with this environment.
   Âjavax.validation    ÂBuild path  ÂJRE System Library Problem
   ÂBuild path specifies execution environment J2SE-1.5. There are no JREs
   Âinstalled
   Âin the workspace that are strictly compatible with this environment.
   Âorg.eclipse.persistence.core.__jpql    ÂBuild path  ÂJRE System

   ÂLibrary Problem
   ÂBuild path specifies execution environment J2SE-1.5. There are no JREs
   Âinstalled
   Âin the workspace that are strictly compatible with this environment.
   Âorg.eclipse.persistence.jpa.__jpql.test    ÂBuild path  ÂJRE System

   ÂLibrary
   ÂProblem
   ÂBuild path specifies execution environment J2SE-1.5. There are no JREs
   Âinstalled
   Âin the workspace that are strictly compatible with this environment.
   Âorg.eclipse.persistence.jpa.__osgi    ÂBuild path  ÂJRE System

   ÂLibrary Problem


   ÂFor example javax.persistence is imported, but it has version 2.0.0


   ÂThanks in advance!
   ÂGÃbor


   Â_________________________________________________
   Âeclipselink-dev mailing list
   Âeclipselink-dev@xxxxxxxxxxx <mailto:eclipselink-dev@eclipse.org>
   Âhttps://dev.eclipse.org/__mailman/listinfo/eclipselink-__dev
   Â<https://dev.eclipse.org/mailman/listinfo/eclipselink-dev>

 Â_________________________________________________
 Âeclipselink-dev mailing list
 Âeclipselink-dev@xxxxxxxxxxx <mailto:eclipselink-dev@eclipse.org>
 Âhttps://dev.eclipse.org/__mailman/listinfo/eclipselink-__dev
_______________________________________________
eclipselink-dev mailing list
eclipselink-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/eclipselink-dev