Hello guys,
I put a simple stateless bean into the deploy directory and everything went
fine. Then I modified the bean class so that the only "business method" has
now a different signature compared to the one of the EJBObject interface
(which is an error) re-jared it and re-deployed it and jBoss (correctly, I
think) replied:
[Auto deploy] Auto deploy of file:/D:/Program
Files/jboss2/deploy/ejbTest2.jar
[Container factory] Deploying:file:/D:/Program
Files/jboss2/deploy/ejbTest2.jar
[Container factory] Deploying EJBTest2
at java.lang.Class.getMethod0(Native Method)
at java.lang.Class.getMethod(Unknown Source)
at
org.jboss.ejb.StatelessSessionContainer.setupBeanMapping(StatelessSessionCon
tainer.java:223)
at
org.jboss.ejb.StatelessSessionContainer.init(StatelessSessionContainer.java:
75)
at org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:306)
at org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:98)
at java.lang.reflect.Method.invoke(Native Method)
at javax.management.MBeanServer.invoke(MBeanServer.java:1635)
at javax.management.MBeanServer.invoke(MBeanServer.java:1501)
at org.jboss.ejb.AutoDeployer.deploy(AutoDeployer.java:258)
at org.jboss.ejb.AutoDeployer.run(AutoDeployer.java:194)
at java.lang.Thread.run(Unknown Source)
[Container factory] java.lang.NoSuchMethodException
[Auto deploy] Deployment failed:file:/D:/Program
Files/jboss2/deploy/ejbTest2.jar
[Auto deploy] org.jboss.ejb.DeploymentException: Could not deploy
file:/D:/Program Files/jboss2/deploy/ejbTest2.jar, Cause:
java.lang.NoSuchMethodException
[Auto deploy] at
org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:344)
[Auto deploy] at
org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:98)
[Auto deploy] at java.lang.reflect.Method.invoke(Native Method)
[Auto deploy] at
javax.management.MBeanServer.invoke(MBeanServer.java:1635)
[Auto deploy] at
javax.management.MBeanServer.invoke(MBeanServer.java:1501)
[Auto deploy] at org.jboss.ejb.AutoDeployer.deploy(AutoDeployer.java:258)
[Auto deploy] at org.jboss.ejb.AutoDeployer.run(AutoDeployer.java:194)
[Auto deploy] at java.lang.Thread.run(Unknown Source)
Then I corrected the error, re-jared it, re-deployed and jBoss replies
exactly the same as above, I IMHO mistakenly.
To be said is that I didn't changed the timestamp of the .xml files but only
the jar's.
It seems that when an error occurs during deployment something goes wrong
and it is not restored to the correct state. This is MHO, also because
deploying another bean (in particular the bank.jar given with jBoss) after
the errors above, jBoss says:
[Auto deploy] Auto deploy of file:/D:/Program Files/jboss2/deploy/bank.jar
[Container factory] Deploying:file:/D:/Program Files/jboss2/deploy/bank.jar
[Container factory] Deploying EJBTest2
at java.lang.Class.getMethod0(Native Method)
at java.lang.Class.getMethod(Unknown Source)
at
org.jboss.ejb.StatelessSessionContainer.setupBeanMapping(StatelessSessionCon
tainer.java:223)
at
org.jboss.ejb.StatelessSessionContainer.init(StatelessSessionContainer.java:
75)
at org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:306)
at org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:98)
at java.lang.reflect.Method.invoke(Native Method)
at javax.management.MBeanServer.invoke(MBeanServer.java:1635)
at javax.management.MBeanServer.invoke(MBeanServer.java:1501)
at org.jboss.ejb.AutoDeployer.deploy(AutoDeployer.java:258)
at org.jboss.ejb.AutoDeployer.run(AutoDeployer.java:194)
at java.lang.Thread.run(Unknown Source)
[Container factory] java.lang.NoSuchMethodException
[Auto deploy] Deployment failed:file:/D:/Program
Files/jboss2/deploy/bank.jar
[Auto deploy] org.jboss.ejb.DeploymentException: Could not deploy
file:/D:/Program Files/jboss2/deploy/bank.jar, Cause:java
.lang.NoSuchMethodException
[Auto deploy] at
org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:344)
[Auto deploy] at
org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:98)
[Auto deploy] at java.lang.reflect.Method.invoke(Native Method)
[Auto deploy] at
javax.management.MBeanServer.invoke(MBeanServer.java:1635)
[Auto deploy] at
javax.management.MBeanServer.invoke(MBeanServer.java:1501)
[Auto deploy] at org.jboss.ejb.AutoDeployer.deploy(AutoDeployer.java:258)
[Auto deploy] at org.jboss.ejb.AutoDeployer.run(AutoDeployer.java:194)
[Auto deploy] at java.lang.Thread.run(Unknown Source)
jBoss seems to "remember" the wrong bean (EJBTest2) and tries to redeploy it
instead of the correct jar (bank.jar).
Another question: why deleting a jar from the deploy directory does not
undeploy the bean ? Or it is not supposed to be like that ?
Thanks
BS
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]