View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3820756#3820756

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3820756

I spent the last three days downloading more information, I installed XDoclet and 
Chocolate, I started my project over from scratch, I followed every instruction 
exactly, and I still can't get this simple bean to deploy.



Here is the source code for the bean:



package com.hlmksw.hal.framework.server;



import javax.ejb.SessionBean;

import javax.ejb.SessionContext;



public class VersionBean implements SessionBean

{



  private SessionContext context;



  public void setSessionContext( SessionContext context)

  {

    this.context = context;

  }



  public void ejbActivate() { }

  public void ejbPassivate() { }

  public void ejbRemove() { }

  public void ejbCreate() { }



  public java.lang.String Value()

  {

    return "1.0";

  }



}



Here is the ejb-jar.xml file (double slashes prepended to each line for posting 
purposes):



//<?xml version="1.0" encoding="UTF-8"?>

//<!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 
2.0//EN" "http://java.sun.com/dtd/ejb-jar_2_0.dtd";>



//<ejb-jar >



//   HAL-J Version Bean

//   <display-name>HAL-J Version Bean</display-name>



//   <enterprise-beans>



//      

//        <display-name>VersionBean</display-name>

//        <ejb-name>VersionBean</ejb-name>

//        <jndi-name>Version</jndi-name>

//        com.hlmksw.hal.framework.server.VersionHome

//        com.hlmksw.hal.framework.server.Version

//<ejb-class>com.hlmksw.hal.framework.server.VersionBean</ejb-class>

//        <session-type>Stateless</session-type>

//        <transaction-type>Bean</transaction-type>

//      





//   </enterprise-beans>



//</ejb-jar>





Here is the jboss.xml file (generated by XDoclet):



//<?xml version="1.0" encoding="UTF-8"?>

//<!DOCTYPE jboss PUBLIC "-//JBoss//DTD JBOSS 3.0//EN" 
"http://www.jboss.org/j2ee/dtd/jboss_3_0.dtd";>



//



//   <security-domain>java:/jaas/samples</security-domain>



//   <enterprise-beans>



//   </enterprise-beans>



//   <resource-managers>

//   </resource-managers>



//



Here is the application descriptor:



//<?xml version="1.0" encoding="UTF-8"?>



//<!DOCTYPE application PUBLIC '-//Sun Microsystems, Inc.//DTD J2EE Application 
1.3//EN' 'http://java.sun.com/dtd/application_1_3.dtd'>



//

//  <display-name>HAL-J Core</display-name>

//  Application description

//  

//    core.jar

//  

//






-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to