3 Replies Latest reply on Nov 1, 2003 2:04 PM by juha

    SLSB can't find DTO classes

    dbenoff

      when I deploy SLSBs that use DTO's, I get a NoClassDefFound exception. I've tried packaging the classes inside the ejb-jar with a manifest entry, inside the war file, as a jar in the deploy directory, in various lib directories, but nothing works. Can someone please tell me how to get this working?

      Any tips would be MUCH appreciated!

        • 1. Re: SLSB can't find DTO classes

          What is a DTO and what does your package structure look like at the moment?

          -- Juha

          • 2. Re: SLSB can't find DTO classes
            dbenoff

            Hi Juha,
            Thanks for responding. By DTO, I mean Data Transfer Object (also called Value Object???)

            My ejb jar file is like this (only using local interface):

            META-INF
            |-->MANIFEST.MF
            |-->jboss.xml
            |-->ejb-jar.xml
            hibernateEJB
            |-->UserBean.class
            |-->LocalUser.class
            |-->LocalUserHome.class

            Even if I put my DTO class (UserDTO) in the hibernateEJB package, and add a classpath entry to the manifest, I get a NoClassDefFound exception.

            What am I doing wrong?

            • 3. Re: SLSB can't find DTO classes

              You don't need manifest files. Deploying an external JAR into deploy directory will work as long as you make sure your deployment order is correct. Or package your value objects with your EJB jar.

              -- Juha