!!!!!!!!Deloying ejb error on jboss3.2.2
yjyang Dec 3, 2003 1:06 AMHey I encounter a strange problem when trying to deploy an entitybean on jboss3.2.2, I was complained that the method signature does not match. But it's exactly same... I found the problem goes away when I restart the JBoss server.
The errors as follows:
14:57:48,793 INFO [MainDeployer] Starting deployment of package: file:/D:/jboss3.2.2/jboss-3.2.2RC4/server/default/deploy/myEJBJAR.jar
14:57:49,964 WARN [verifier] EJB spec violation:
Bean : Pg_jndiBean
Method : public abstract EJBObject create(Pg_jndiPK) throws CreateException, RemoteException
Section: 12.2.9
Warning: Each create(...) method in the entity bean's home interface must have a atching ejbCreate(...) method in the entity bean's class.
14:57:49,994 WARN [verifier] EJB spec violation:
Bean : Pg_jndiBean
Method : public abstract Collection findByDescription(String) throws FinderException, RemoteException
Section: 12.2.9
Warning: Each finder method must match one of the jbFind methods defined in the entity bean class.
14:57:50,024 WARN [verifier] EJB spec violation:
Bean : Pg_jndiBean
Method : public abstract Pg_jndi findByPrimaryKey(Pg_jndiPK) throws FinderException, RemoteException
Section: 12.2.9
Warning: Each finder method must match one of the ejbFind methods defined in the entity bean class.
14:57:50,044 WARN [verifier] EJB spec violation:
Bean : Pg_jndiBean
Method : public abstract Collection findByName(String) throws FinderException, RemoteException
Section: 12.2.9
Warning: Each finder method must match one of the ejbFind methods define
d in the entity bean class.
14:57:50,074 WARN [verifier] EJB spec violation:
Bean : Pg_jndiBean
Method : public abstract Collection findByMpkind(String) throws FinderException, RemoteException
Section: 12.2.9
Warning: Each finder method must match one of the ejbFind methods defined in the entity bean class.
14:57:50,104 WARN [verifier] EJB spec violation:
Bean : Pg_jndiBean
Method : public abstract Collection findByDeploy(Boolean) throws FinderException, RemoteException
Section: 12.2.9
Warning: Each finder method must match one of the ejbFind methods define
d in the entity bean class.
14:57:50,134 WARN [verifier] EJB spec violation:
Bean : Pg_jndiBean
Method : public abstract Collection findByRelation oolean) throws FinderException, RemoteException
Section: 12.2.9
Warning: Each finder method must match one of the ejbFind methods defined in the entity bean class.
14:57:50,205 WARN [verifier] EJB spec violation:
Bean : Pg_logBean
Method : public abstract EJBObject create(Pg_logPK) throws CreateException, RemoteException
Section: 12.2.9
Warning: Each create(...) method in the entity bean's home interface must have a matching ejbCreate(...) method in the entity bean's class.
14:57:50,235 WARN [verifier] EJB spec violation:
Bean : Pg_logBean
Method : public abstract Pg_log findByPrimaryKey(Pg_logPK) throws FinderException, RemoteException
Section: 12.2.9
Warning: Each finder method must match one of the ejbFind methods defined in the entity bean class.
14:57:50,265 WARN [verifier] EJB spec violation:
Bean : Pg_logBean
Method : public abstract Pg_log findByPrimaryKey(Pg_logPK) throws FinderException, RemoteException
Section: 12.2.9
Warning: The return type for a find method must be the entity bean's remote interface type (single-object finder) or a collection thereof (for a ulti-o
bject finder).
14:57:50,295 ERROR [MainDeployer] could not create deployment: file:/D:/jboss3.2
.2/jboss-3.2.2RC4/server/default/deploy/myEJBJAR.jar
org.jboss.deployment.DeploymentException: Verification of Enterprise Beans failed, see above for error messages.
at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:490)
at org.jboss.deployment.MainDeployer.create(MainDeployer.java:776)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:631)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:605)
at sun.reflect.GeneratedMethodAccessor34.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea
nDispatcher.java:284)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
at $Proxy6.deploy(Unknown Source)
at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymen
tScanner.java:302)
at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentS
canner.java:458)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
doScan(AbstractDeploymentScanner.java:201)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
loop(AbstractDeploymentScanner.java:212)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
run(AbstractDeploymentScanner.java:191)
14:57:50,395 ERROR [URLDeploymentScanner] Failed to deploy: org.jboss.deployment
.scanner.URLDeploymentScanner$DeployedURL@b545c450{ url=file:/D:/jboss3.2.2/jbos
s-3.2.2RC4/server/default/deploy/myEJBJAR.jar, deployedLastModified=107043462000
0 }
org.jboss.deployment.DeploymentException: Verification of Enterprise Beans faile
d, see above for error messages.
at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:490)
Anyway I found multiple hot-deploy issues. One example is I just changed some logic in servlet and the change won't appear even after redeploy. But after server restart it looks fine....
Who can help me ?I wait for your answer!thanks