Hey all, 

I'm trying to start using xdoclet but the following session bean is causing me the 
server output problems below, even though they're warnings. Can anyone help?

Any help much appreciated.

--- my session bean ---

/**
 * @ejb.bean
 *      name="comp/RegisterDevice"
 *      display-name="Register Device Bean"
 *      type="Stateless"
 *      jndi-name="ejb/comp/RegisterDevice"
 *      primkey-field="id"
 *
 * @ejb.home
 *      extends="javax.ejb.EJBHome"
 *      local-extends="javax.ejb.EJBLocalHome"
 *      remote-class="com.comp.management.ejb.session.RegisterDeviceHome"
 *
 * @ejb.interface
 *      extends="javax.ejb.EJBObject"
 *      local-extends="javax.ejb.EJBLocalObject"
 *      remote-class="com.comp.management.ejb.session.RegisterDevice"
 */
                                                                                
public class RegisterDeviceBean implements SessionBean
{
    private transient SessionContext context = null;
                                                                                
    public void setSessionContext(SessionContext ctx) {
        context = ctx;
    }
                                                                                
    public void unsetSessionContext() throws EJBException {
        context = null;
    }

    /**
     *
     * @throws CreateException
     *
     * @ejb.create-method
     */
     
    public void ejbCreate() throws CreateException { }
     
    public void ejbPostCreate() { }
    public void ejbLoad() throws EJBException { }
    public void ejbStore() throws EJBException { }
     
    /**
     * @ejb.home-method
     */
     
    public void ejbRemove() throws EJBException { }
     
    /**
     * @ejb.home-method
     */
     
    public void ejbActivate() throws EJBException { }
     
    /**
     * @ejb.home-method
     */
     
    public void ejbPassivate() throws EJBException { }
                                                                                
    /**
     * @ejb.interface-method
     */
     
    public boolean register(Device dev) {
                                          
        return true;
    }
}

--- server output ---

14:59:00,140 WARN  [verifier] EJB spec violation:
Bean   : comp/RegisterDevice
Section: 7.10.7
Warning: The local interface must extend the javax.ejb.EJBLocalObject interface. 
14:59:00,141 WARN  [verifier] EJB spec violation:
Bean   : comp/RegisterDevice
Method : public abstract boolean register(Device) throws RemoteException
Section: 7.10.7
Warning: The methods in the local interface must not include java.rmi.RemoteException 
in their throws clause.
 
14:59:00,145 WARN  [verifier] EJB spec violation:
Bean   : comp/RegisterDevice
Method : public abstract void remove() throws RemoteException, RemoveException
Section: 7.10.7
Warning: The methods in the local interface must not include java.rmi.RemoteException 
in their throws clause.
 
14:59:00,146 WARN  [verifier] EJB spec violation:
Bean   : comp/RegisterDevice
Method : public abstract Object getPrimaryKey() throws RemoteException
Section: 7.10.7
Warning: The methods in the local interface must not include java.rmi.RemoteException 
in their throws clause.
 
14:59:00,147 WARN  [verifier] EJB spec violation:
Bean   : comp/RegisterDevice
Method : public abstract EJBHome getEJBHome() throws RemoteException
Section: 7.10.7
Warning: The methods in the local interface must not include java.rmi.RemoteException 
in their throws clause.
 
14:59:00,148 WARN  [verifier] EJB spec violation:
Bean   : comp/RegisterDevice
Method : public abstract Handle getHandle() throws RemoteException
Section: 7.10.7
Warning: The methods in the local interface must not include java.rmi.RemoteException 
in their throws clause.
 
14:59:00,149 WARN  [verifier] EJB spec violation:
Bean   : comp/RegisterDevice
Method : public abstract boolean isIdentical(EJBObject) throws RemoteException
Section: 7.10.7
Warning: The methods in the local interface must not include java.rmi.RemoteException 
in their throws clause.
 
14:59:00,149 ERROR [MainDeployer] could not create deployment: 
file:/opt/jboss-3.2.5/server/default/deploy/megs-ejb.jar
org.jboss.deployment.DeploymentException: Verification of Enterprise Beans failed, see 
above for error messages.
        at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:517)
        at org.jboss.deployment.MainDeployer.create(MainDeployer.java:790)
        at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:644)
        at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:608)
        at sun.reflect.GeneratedMethodAccessor15.invoke(Unknown Source)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)



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

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


-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to