Last active
September 18, 2020 12:28
-
-
Save ponsuke0531/597121ea8b3b674d1588dde838291f05 to your computer and use it in GitHub Desktop.
WELD-000072: Bean declaring a passivating scope must be passivation capable.となってしまった時の対応方法 ref: https://qiita.com/ponsuke0531/items/0475a32bf599b6dab5fd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cannot Deploy アプリ名 | |
deploy is failing=Error occurred during deployment: Exception while loading the app : CDI deployment failure:WELD-000072: Bean declaring a passivating scope must be passivation capable. Bean: Managed Bean [class secondSubmittedValue.PasswordBean] with qualifiers [@Default @Any @Named]. Please see server.log for more details. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[2017-12-02T09:02:49.893+0900] [glassfish 4.1] [SEVERE] [] [javax.enterprise.system.core] [tid: _ThreadID=45 _ThreadName=admin-listener(4)] [timeMillis: 1512172969893] [levelValue: 1000] [[ | |
Exception while loading the app]] | |
[2017-12-02T09:02:49.895+0900] [glassfish 4.1] [SEVERE] [AS-WEB-GLUE-00192] [javax.enterprise.web] [tid: _ThreadID=45 _ThreadName=admin-listener(4)] [timeMillis: 1512172969895] [levelValue: 1000] [[ | |
Undeployment failed for context /firstJsf]] | |
[2017-12-02T09:02:49.905+0900] [glassfish 4.1] [SEVERE] [] [javax.enterprise.system.core] [tid: _ThreadID=45 _ThreadName=admin-listener(4)] [timeMillis: 1512172969905] [levelValue: 1000] [[ | |
Exception while loading the app : CDI deployment failure:WELD-000072: Bean declaring a passivating scope must be passivation capable. Bean: Managed Bean [class secondSubmittedValue.PasswordBean] with qualifiers [@Default @Any @Named] | |
org.jboss.weld.exceptions.DeploymentException: WELD-000072: Bean declaring a passivating scope must be passivation capable. Bean: Managed Bean [class secondSubmittedValue.PasswordBean] with qualifiers [@Default @Any @Named] | |
at org.jboss.weld.bean.ManagedBean.checkType(ManagedBean.java:213) | |
at org.jboss.weld.bean.AbstractBean.initializeAfterBeanDiscovery(AbstractBean.java:105) | |
at org.jboss.weld.bean.ManagedBean.initializeAfterBeanDiscovery(ManagedBean.java:122) | |
...省略.. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import javax.enterprise.context.SessionScoped; | |
import javax.inject.Named; | |
import lombok.Data; | |
@Named | |
@SessionScoped | |
@Data | |
public class PasswordBean { | |
/** パスワード. */ | |
private String password = "password"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.Serializable; | |
import javax.enterprise.context.SessionScoped; | |
import javax.inject.Named; | |
import lombok.Data; | |
@Named | |
@SessionScoped | |
@Data | |
public class PasswordBean implements Serializable { | |
/** serialVersionUID. */ | |
private static final long serialVersionUID = 8156366672034041582L; | |
/** パスワード. */ | |
private String password = "password"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment