Bonjour,
je fais un simple tuto sur JSF et j'ai ce message en essayant de déployer mon app sur un glassfish
Et je vois pas du tout ou peut se trouver le problème ...
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36 import javax.enterprise.context.SessionScoped; import javax.inject.Named; @Named("testService") @SessionScoped public class TestService { private String image="" ; public String getImage() { System.out.println("-----------" + image); return image; } public void setImage(String image) { this.image = image; } /** * @return */ public void loadImage(final String imageToLoad) { this.image = imageToLoad; } }
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2 cannot Deploy myApp Deployment Error for module: myApp: Error occurred during deployment: Exception while loading the app : WELD-000072 Managed bean declaring a passivating scope must be passivation capable. Bean: Managed Bean [class hotel.web.GalleryService] with qualifiers [@Any @Default]. Please see server.log for more details.
merci d'avance
Partager