Reputation: 1887
Im using Netbeans 8.0.2,
For some reason the cdi-api.jar
is missing from the glashfish libraries,
so i have to add the jar manually each time i create a new project,
i tried adding this jar to the Java EE from GlassFish
list under Tools -> Libraries,
but it didn't show up when i create a new project.
So how can i add the jar file to that list?
Upvotes: 0
Views: 3438
Reputation: 89
I had the same problem. Some of the classes, that used to be before in "weld-osgi-bundle.jar" are now moved to "cdi-api.jar". And this is causing now troubles .... As far as I understand, there is no "nice and clean" fix so far. Just add "cdi-api.jar" as a jar to your project libraries (Right click over Libraries->Add JAR/Folder)
More info here: Bug 247013 - cdi-api.jar is missing from glassfish 4.1 libraries
"So I Got That Goin' For Me, Which is Nice" ;-)
Upvotes: 1
Reputation:
take admin rights, go to the glassfish installed folder, put the required jar in this path:::
$GF_HOME/glassfish4/glassfish/modules/
Upvotes: 0