This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 190644 - EclipseLink Module doesn't include javax.persistence package
Summary: EclipseLink Module doesn't include javax.persistence package
Status: RESOLVED INCOMPLETE
Alias: None
Product: javaee
Classification: Unclassified
Component: Persistence (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P2 normal (vote)
Assignee: Sergey Petrov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-28 14:54 UTC by javydreamercsw
Modified: 2010-10-08 00:07 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description javydreamercsw 2010-09-28 14:54:08 UTC
This seems to be a bug/ommision in the library since adding the TopLink Essentials, which claims the same as EclipseLink module, does include the javax.persistence package.

Also this library claims to be 2.0 but it doesn't contain the javax.persistence.metamodel package.
Comment 1 javydreamercsw 2010-09-28 21:56:23 UTC
For some reason the libraries specified in the module are not in my installation! The modules/ext/eclipselink folder is not present. Sadly placing the files where they should be and restarting the IDE doesn't fix the issue.
Comment 2 Sergey Petrov 2010-09-30 22:17:56 UTC
What kind of installation do you use?
Eclipselink library include jpa2.0 api jar and eclipselink jpa provider and related functionality jar.
Comment 3 javydreamercsw 2010-10-01 00:03:09 UTC
In this case I used the zip distro of 6.9.1. It might be missing from the distro. The weird thing is that placing the files where they should didn't solve the issue.
Comment 4 Sergey Petrov 2010-10-01 06:16:28 UTC
do you mean there is eclipselink library in libraries list but no corresponding jars? if it's just provider selection in pu wizrds but eclipselink module isn't included in ide by unknown reasons ide can't know where jars should be.
Can you check library classpath in Tools|Library also?
Comment 5 Sergey Petrov 2010-10-01 08:30:58 UTC
Also, can you provide a link to used zip distribution?
Comment 6 Sergey Petrov 2010-10-01 09:11:06 UTC
for example netbeans-6.9.1-201008030030-ml.zip contain java/modules/ext/eclipselink with all jars.
Comment 7 Sergey Petrov 2010-10-06 08:09:50 UTC
please reopen with additional information.
Comment 8 javydreamercsw 2010-10-06 15:47:04 UTC
Entry in Tool>Library has the proper links to the jars.

This is the link I used to get the zip distro: http://download.netbeans.org/netbeans/6.9.1/final/zip/netbeans-6.9.1-201007282301-ml-java.zip

Reopening with requested information
Comment 9 Sergey Petrov 2010-10-07 14:40:09 UTC
I've tried your link and it have eclipselink jars under "netbeans-6.9.1-201007282301-ml-java\netbeans\java\modules\ext\eclipselink", also tried to create pu in j2se application with clipselink provider and have both jars added to the project.
may you zip be corrupted?
Comment 10 David Konecny 2010-10-07 23:15:22 UTC
javydreamercsw, it does sound like your installation is corrupted or something. Could you try different build please? And also how do you reproduce the problem? Do you create a project and add EclipseLink IDE library to its classpath and some JPA packages are missing?
Comment 11 javydreamercsw 2010-10-07 23:30:01 UTC
In my case I'm trying to use the EclipseLink Netbeans Module within a RCP application.
Comment 12 David Konecny 2010-10-08 00:07:38 UTC
I'm not sure what exactly 'EclipseLink Netbeans Module' is but NetBeans module can express which packages should be publicly visible and which not. Perhaps javax.persistence.metamodel was not exported? I would check project.xml of such module.