Modifying a session bean program from an other java class
monte-cristo May 23, 2013 4:20 PMHi everyone!
I created a java class "Hotspot.java" which insert methods and instructions into a session bean (3.x) program.
The idea is that the class Hotspot opens the session bean class (UtilisateurBean.java= User Bean in french, which is containing in an EJB project that I named Users and in the package "com.application.metier") as a simple file in reader mode, checks for a given position and inserts an instruction on that position. Every thing is fine, until I restart JBoss Server, I have this Exception:
JBAS014775: New missing/unsatisfied dependencies:
service jboss.naming.context.java.comp.Users.Users.UtilisateurBean (missing) dependents: [service jboss.naming.context.java.comp.Users.Users.UtilisateurBean.Validator, service jboss.naming.context.java.comp.Users.Users.UtilisateurBean.ValidatorFactory]
JBAS014777: Services which failed to start: service jboss.deployment.unit.
"Users.jar"
.INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.unit.
"Users.jar"
.INSTALL: Failed to process phase INSTALL of deployment
"Users.jar"
11
:
30
:
19
,
839
ERROR [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads -
1
) {
"JBAS014653: Composite operation failed and was rolled back. Steps that failed:"
=> {
"Operation step-2"
=> {
"JBAS014671: Failed services"
=> {
"jboss.deployment.unit.\"Users.jar\".INSTALL"
=>
"org.jboss.msc.service.StartException in service jboss.deployment.unit.\"Users.jar\".INSTALL: Failed to process phase INSTALL of deployment \"Users.jar\""
},
"JBAS014771: Services with missing/unavailable dependencies"
=> [
"jboss.naming.context.java.comp.Users.Users.UtilisateurBean.ValidatorFactoryjboss.naming.context.java.comp.Users.Users.Utilisateur
BeanMissing[jboss.naming.context.java.comp.Users.Users.UtilisateurBean.ValidatorFactoryjboss.naming.context.java.comp.Users.Users.
UtilisateurBean]"
,
"jboss.naming.context.java.comp.Users.Users.UtilisateurBean.Validatorjboss.naming.context.java.comp.Users.Users.
UtilisateurBeanMissing[jboss.naming.context.java.comp.Users.Users.UtilisateurBean.Validatorjboss.naming.context.java.comp.Users.
Users.UtilisateurBean]"
]}}}
I suppose that the modification of a session bean program involvs other modifications of project properties or something ??
I don't know... I'm lost
Any help please!
Thank you very much
PS: I use JBoss 7.1 server, and Eclipse EE Juno