• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

EJB deployment problem

 
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi friends,

I have a problem deploying my EJB module to JBoss 4.03SP1.
I deploy and run mu application using IntelliJ (with the JBoss plug-in).

I get the following error:

11:40:54,906 WARN [ServiceController] Problem creating service jboss.j2ee:jndiName=helloEJB,service=EJB
java.lang.NoSuchMethodException: org.jboss.ejb.StatelessSessionContainer.removeHome(javax.ejb.Handle)

I really need your help with this problem

Thanks
Rivka

my EJB looks like this:

package sample;

import org.nite.dataAccessObjects.basic.*;
import org.nite.dataAccessObjects.util.*;
import org.nite.exceptions.basic.ApplicationException;
import org.nite.exceptions.basic.LightExceptionInfo;
import org.nite.exceptions.basic.ValidateException;
import org.nite.transferObjects.util.LabelValueBean;
import org.nite.util.*;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import javax.ejb.*;
import java.util.*;

public class helloBean implements SessionBean {

private javax.ejb.SessionContext mySessionCtx;
private CodeTableDAO codeTableDAO = null;
static final private Log log = LogFactory.getLog(helloBean.class);

public HashMap getCodeTables(){

return codeTableDAO.getCodeTables();
}

public helloBean() {
}

public void ejbCreate() throws CreateException {
DAOFactory dAOFactory = DAOFactory.getDAOFactory(DAOFactory.INFORMIX);
codeTableDAO = dAOFactory.getCodeTableDAO();

}

public void setSessionContext(SessionContext sessionContext) throws EJBException {
mySessionCtx = sessionContext;
}

public void ejbRemove() throws EJBException {

codeTableDAO = null;
}

public void ejbActivate() throws EJBException {
}

public void ejbPassivate() throws EJBException {
}
}
 
Ranch Hand
Posts: 293
Mac OS X Netbeans IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Have you declared the home interface as well?
 
rivka zam
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
yes Dave - i did.

my home interface:

package sample;

import javax.ejb.EJBHome;
import javax.ejb.CreateException;
import java.rmi.RemoteException;

public interface helloHome extends EJBHome {
sample.hello create() throws RemoteException, CreateException;
}

and my biz interface:

package sample;

import javax.ejb.EJBObject;
import java.util.HashMap;

public interface hello extends EJBObject {

public HashMap getCodeTables() throws java.rmi.RemoteException;
}

Thanks
Rivka
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic