Hello.
I have a simple stateless session bean I can't figure out how to
deploy. The deployment descriptor is:
<?xml version="1.0" encoding="Cp1252"?>
<ejb-jar>
<description>Demo Test</description>
<display-name>Demo</display-name>
<enterprise-beans>
<session>
<ejb-name>Demo</ejb-name>
<home>bcci.repres.buslog.DemoHome</home>
<remote>bcci.repres.buslog.Demo</remote>
<ejb-class>bcci.repres.buslog.DemoBean</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Bean</transaction-type>
</session>
</enterprise-beans>
</ejb-jar>
The ejb-jar.xml is placed where it has to be - META-INF. On deployment
I get:
[Auto deploy] Auto deploy of file:/opt/jboss/deploy/demo.jar
[Container factory] Deploying:file:/opt/jboss/deploy/demo.jar
[Container factory] Loading ejb-jar.xml :
jar:file:/tmp/tmpejbjar13255.jar!/META-INF/ejb-jar.xml
[Container factory] Loading standardjboss.xml :
jar:file:/opt/jboss/lib/ext/jboss.jar!/org/jboss/metadata/standardjboss.xml
[Container factory] Deploying Demo
[Auto deploy] Deployment failed:file:/opt/jboss/deploy/demo.jar
[Auto deploy] org.jboss.ejb.DeploymentException: Could not deploy
file:/tmp/tmpejbjar13255.jar
[Auto deploy] at org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:565)
[Auto deploy] at org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:193)
[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:285)
[Auto deploy] at org.jboss.ejb.AutoDeployer.run(AutoDeployer.java:221)
[Auto deploy] at java.lang.Thread.run(Thread.java:484)
The funny things is that if I try to redeploy the interest.jar (from
the getting started guide) after this results in the same deployment
failure (by same I mean I get a message that the demo.jar is to be
deployed when actually I am copying interest.jar in the deploy dir).
Also if I have my buggy bean in the deploy dir at jboss startup (where
is also the interest.jar) I get twice the same deployment error (it
says I'm trying to deploy demo.jar both times). If I remove my bad
bean from the dir the next jboss startup gets me interest.jar deployed
cleanly. I've digged for a while in the archives and in the
documentation available but I could not get a clear-cut explanation on
the deployment error messages and routines. If there are resources
I've missed, please, direct me there to start digging and save all of
you from long desperate messages like this. Also: RH6.2, latest beta
refresh JDK1.3 from Sun, JBoss PR4.1 binary download.
Thanxs.
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]