File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

problem with CDI

 
adil ourida
Greenhorn
Posts: 7
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 7
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
Posts: 46
Java Netbeans IDE Redhat
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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"

 
adil ourida
Greenhorn
Posts: 7
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic