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 191525 - JPA API not on classpath of a project with JBoss target
Summary: JPA API not on classpath of a project with JBoss target
Status: RESOLVED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: JBoss (show other bugs)
Version: 7.0
Hardware: PC Mac OS X
: P3 normal (vote)
Assignee: Petr Hejl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-01 15:30 UTC by Petr Jiricka
Modified: 2010-11-03 15:27 UTC (History)
1 user (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 Petr Jiricka 2010-11-01 15:30:20 UTC
1. Register JBoss 6 Milestone 5
2. Create a new Entity class (in the wizard, provide the package name and accept all the other defaults).

=> Usages of JPA classes in the generated code will be underlined, as the JPA API is not on the classpath. Sounds like <jboss_inst>/common/lib/hibernate-jpa-2.0-api.jar should be on the classpath.
Comment 1 Petr Jiricka 2010-11-01 15:32:24 UTC
Sorry, one step is missing:
1A. Create a new Java EE 6 Web project with JBoss target.
Comment 2 Petr Hejl 2010-11-03 15:27:42 UTC
Fixed in web-main 2028282ec7cb.