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 93098 - Project did not have a PersistenceProviderSupplier in its lookup
Summary: Project did not have a PersistenceProviderSupplier in its lookup
Status: RESOLVED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: Persistence (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Erno Mononen
URL:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2007-01-24 13:27 UTC by Petr Blaha
Modified: 2007-02-09 15:40 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
stack trace (5.53 KB, text/plain)
2007-01-24 13:28 UTC, Petr Blaha
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Blaha 2007-01-24 13:27:25 UTC
[NB build 070124]
I tried to add persistence in web project. The exception is thrown:

java.lang.IllegalArgumentException: The given
project[WebProject[MasterFileObject@1a65f5e[tmp/WebApplication3]]] did not have
a PersistenceProviderSupplier in its lookup
	at
org.netbeans.modules.j2ee.persistence.util.PersistenceProviderComboboxHelper.<init>(PersistenceProviderComboboxHelper.java:73)
Comment 1 Petr Blaha 2007-01-24 13:28:44 UTC
Created attachment 37623 [details]
stack trace
Comment 2 Erno Mononen 2007-01-24 14:16:15 UTC
Fixed in trunk. This was caused by the recent changes in j2ee/persistence that 
are needed for moving it to the ide cluster. I'll leave the issue open (with a 
slightly altered summary) however, since the PersistenceProviderSupplier needs 
to be implemented in other project types as well. So far it is been implemented 
for EJB and Web projects.

Checking in ide/golden/friend-packages.txt;
/cvs/ide/golden/friend-packages.txt,v  <--  friend-packages.txt
new revision: 1.88; previous revision: 1.87
done
Checking in ide/golden/deps.txt;
/cvs/ide/golden/deps.txt,v  <--  deps.txt
new revision: 1.433; previous revision: 1.432
done
RCS file: /cvs/web/project/src/org/netbeans/modules/web/project/
WebEMGenStrategyResolver.java,v
done
Checking in web/project/src/org/netbeans/modules/web/project/
WebEMGenStrategyResolver.java;
/cvs/web/project/src/org/netbeans/modules/web/project/
WebEMGenStrategyResolver.java,v  <--  WebEMGenStrategyResolver.java
initial revision: 1.1
done
Checking in web/project/src/org/netbeans/modules/web/project/WebProject.java;
/cvs/web/project/src/org/netbeans/modules/web/project/WebProject.java,v  <--  
WebProject.java
new revision: 1.96; previous revision: 1.95
done
RCS file: /cvs/web/project/src/org/netbeans/modules/web/project/
WebPersistenceProviderSupplier.java,v
done
Checking in web/project/src/org/netbeans/modules/web/project/
WebPersistenceProviderSupplier.java;
/cvs/web/project/src/org/netbeans/modules/web/project/
WebPersistenceProviderSupplier.java,v  <--  WebPersistenceProviderSupplier.java
initial revision: 1.1
done
Checking in web/project/nbproject/project.xml;
/cvs/web/project/nbproject/project.xml,v  <--  project.xml
new revision: 1.51; previous revision: 1.50
done
Checking in j2ee/persistence/nbproject/project.xml;
/cvs/j2ee/persistence/nbproject/project.xml,v  <--  project.xml
new revision: 1.9; previous revision: 1.8
done
Comment 3 Erno Mononen 2007-02-09 15:40:57 UTC
Fixed in trunk.

http://j2ee.netbeans.org/source/browse/j2ee/persistence/src/org/netbeans/
modules/j2ee/persistence/util/
PersistenceProviderComboboxHelper.java?r1=1.3&r2=1.4