Hi, 

The latest jboss shows better messages when deployment fails.  In your
case it is probably the empty env-entry-name / res-ref-name in
ejb-jar.xml, but the best way to find out would be to upgrade.  The
binary will show 

[Default] jBoss 2.0 BETA-PROD-01 Started


Regards, 

Sebastien


"Perrin, Brad" wrote:
> 
> Hello,
> 
> I have just downloaded the latest jboss and have gotten it to start up and
> run with the test file and no jar files in the deploy directory.  When I
> create and deploy the simple session bean that I am including in this
> e-mail, I receive the following error.  I have tried other test beans and
> had the same results.  Am I missing a configuration item for the container
> or the server.  It appears as though the deployment is failing altogether.
> 
> [Auto deployer] Starting
> [Auto deploy] Auto deploy of file:/usr/local/jboss/deploy/EJBTest.jar
> [Container factory] Deploying:file:/usr/local/jboss/deploy/EJBTest.jar
> [Container factory] Loading ejb-jar.xml :
> jar:file:/tmp/tmpejbjar2707.jar!/META-
> INF/ejb-jar.xml
> [Container factory] Loading standardjboss.xml :
> jar:file:/usr/local/jboss/lib/ex
> t/jboss.jar!/org/jboss/metadata/standardjboss.xml
> [Container factory] Deploying EJBTest
> [Auto deploy] Deployment failed:file:/usr/local/jboss/deploy/EJBTest.jar
> [Auto deploy] org.jboss.ejb.DeploymentException: Could not deploy
> file:/tmp/tmpe
> jbjar2707.jar
> [Auto deploy]   at
> org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:5
> 65)
> [Auto deploy]   at
> org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:1
> 93)
> [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
> org.jboss.ejb.AutoDeployer.startService(AutoDeployer.java:264
> )
> [Auto deploy]   at
> org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport.
> java:89)
> [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.Main.<init>(Main.java:155)
> [Auto deploy]   at org.jboss.Main.<init>(Main.java:86)
> [Auto deploy]   at org.jboss.Main$1.run(Main.java:76)
> [Auto deploy]   at java.security.AccessController.doPrivileged(Native
> Method)
> [Auto deploy]   at org.jboss.Main.main(Main.java:67)
> [Auto deployer] Started
> [Container factory] Starting
> [Container factory] Started
> [Security manager] Starting
> [Security manager] Started
> [Transaction manager] Starting
> [Transaction manager] Started
> [Simple Realm Mapping] Starting
> [Simple Realm Mapping] Started
> [Default] Shutdown hook added
> 
> //EJBTestBean.java
> 
> import javax.ejb.*;
> import java.rmi.RemoteException;
> 
> public class EJBTestBean implements SessionBean {
> 
>         private SessionContext mContext = null;
> 
>         public void ejbPassivate() {
>                 System.out.println("EJBTestBean passivated.");
>         }
> 
>         public void ejbActivate() {
>                 System.out.println("EJBTestBean activated.");
>         }
> 
>         public void ejbCreate() {
>                 System.out.println("EJBTestBean created.");
>         }
> 
>         public void ejbRemove() {
>                 System.out.println("EJBTestBean removed.");
>         }
> 
>         public void setSessionContext(SessionContext context) {
>                 System.out.println("EJBTestBean context set.");
> 
>                 mContext = context;
>         }
> 
>         public String greet()
>         {
>                 return "Hello, I'm an EJB!";
>         }
> }
> 
> <?xml version="1.0" encoding="UTF-8"?>
> 
> <ejb-jar ID="">
>   <description></description>
>   <display-name></display-name>
>   <small-icon></small-icon>
>   <large-icon></large-icon>
>   <ejb-client-jar></ejb-client-jar>
>   <enterprise-beans>
>     <session>
>       <description>test bean</description>
>       <ejb-name>EJBTest</ejb-name>
>       <home>EJBTestHome</home>
>       <remote>EJBTest</remote>
>       <ejb-class>EJBTestBean</ejb-class>
>       <session-type>Stateless</session-type>
>       <transaction-type>Bean</transaction-type>
>       <env-entry>
>         <description></description>
>         <env-entry-name></env-entry-name>
>         <env-entry-type>java.lang.String</env-entry-type>
>         <env-entry-value></env-entry-value>
>       </env-entry>
> 
>       <resource-ref>
>         <description></description>
>         <res-ref-name></res-ref-name>
>         <res-type></res-type>
>         <res-auth>Container</res-auth>
>       </resource-ref>
>     </session>
>   </enterprise-beans>
>   <assembly-descriptor />
> 
> </ejb-jar>
> 
> 
> Thanks,
> 
> Brad.
> ----------------------------------------
> Brad Perrin
> Electronic Data Systems
> [EMAIL PROTECTED]
> 
> --
> --------------------------------------------------------------
> To subscribe:        [EMAIL PROTECTED]
> To unsubscribe:      [EMAIL PROTECTED]
> Problems?:           [EMAIL PROTECTED]


--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]

Reply via email to