3 Replies Latest reply on Nov 5, 2003 2:25 PM by Stephen Jacobs

    DataTransferObject Pattern - NoClassDefFoundError

    Stephen Jacobs Newbie

      I am getting the following error when I try to deploy a new package / session bean. I have a number of other session and entity beans that have deployed just fine for this application, but for some reason this one won't deploy.

      This is the first time I have tried to use data transfer objects to send my data between client and server. The dtos are in a different directory than my session bean, but I am creating a jar file that includes PolicyDetailDto (among other things) and have copied it to /JBOSS_HOME/server/default/lib. I thought that's all there was to it? I don't get any compile errors so I think all of my paths are ok.

      Is there anything else I am not doing? Any help is appreciated!

      Stephen J.

      -----------------------------------------------------

      java.lang.NoClassDefFoundError: nettempo/server/policy/dtos/PolicyDetailDto
      at java.lang.Class.getDeclaredMethods0(Native Method)
      at java.lang.Class.privateGetDeclaredMethods(Class.java:1647)
      at java.lang.Class.privateGetPublicMethods(Class.java:1770)
      at java.lang.Class.getMethods(Class.java:824)
      at org.jboss.verifier.strategy.AbstractVerifier.hasEJBCreateMethod(Abstr
      actVerifier.java:688)
      at org.jboss.verifier.strategy.EJBVerifier20.verifySessionBean(EJBVerifi
      er20.java:1037)
      at org.jboss.verifier.strategy.EJBVerifier20.checkSession(EJBVerifier20.
      java:92)
      at org.jboss.verifier.BeanVerifier.verify(BeanVerifier.java:159)
      at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:475)
      at org.jboss.deployment.MainDeployer.create(MainDeployer.java:786)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:641)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:605)