aspose file tools
The moose likes JSF and the fly likes problem with CDI Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JSF
Reply Bookmark "problem with CDI" Watch "problem with CDI" New topic
Author

problem with CDI

adil ourida
Greenhorn

Joined: Aug 18, 2011
Posts: 7
Hello,

I'm using netbeans 6.9.1 and GlassFish 3. In a java class I can use normally the package javax.entreprise.context.* which provide the annotations for cdi's scope. But I can't deploy the project and the error is :

.....build\web&name=Wizard&force=true failed on GlassFish Server 3
....\nbproject\build-impl.xml:683: The module has not been deployed.
BUILD FAILED (total time: 0 seconds)

please can somebody help me.
adil ourida
Greenhorn

Joined: Aug 18, 2011
Posts: 7

Hello,

I've just noticed that when creating a bean CDI with annotation @SessionScoped, I have to add to the class : implements Serializable. Thing that netbeans 7.0.1 do it by itself.
Yosi Pramajaya
Ranch Hand

Joined: Jun 30, 2011
Posts: 44

NetBeans have many problems in integrating server with our codes. So sometimes, you should restart it if you got an error.
Restarting the server and IDE sometimes make my problems just disappear.

And one thing left :
"Welcome to the Ranch"


Visit http://joshiegeek.blogspot.com
adil ourida
Greenhorn

Joined: Aug 18, 2011
Posts: 7
you're right.
Problems are everywhere and somestimes it's troublesome.
I'm used to use netbeans and find dificulties to migrate to eclipse.

thank you for "welcome to the Ranch"
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: problem with CDI
 
Similar Threads
The module has not been deployed. BUILD FAILED
I can't manual start Glassfish V2 for some reason. Please Help me.
Glassfish Installation Help
cant deploy netbeans after using @Sessionscoped
Getting error while running web application in netbeans