aspose file tools*
The moose likes JSF and the fly likes problem with CDI Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
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: 46

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"


Independent Programmer - Technology Enthusiast - JUG Leader from JUG Joglosemar
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://aspose.com/file-tools
 
subject: problem with CDI