4 Replies Latest reply on Sep 15, 2005 2:08 PM by renatov

    Class not found in HAR

    artemis

      I have deployed .har based on the hibernate3 instructions (jboss 4.0.2, hibernate 3.0)

      here is my directory structure in

      har folder
      ....WEB-INF
      .........classes
      .............ssi.listener.bean
      ....................WsmType.class
      ....................WsmType.hbm.xml
      ....META-INF
      ........HibernateService.xml



      18:05:53,656 INFO [HbmBinder] Mapping class: CWsmType -> WSM_TYPE
      18:05:53,656 ERROR [Configuration] Could not compile the mapping document
      org.hibernate.MappingException: class CWsmType not found while looking for property: oid

      why doesn't application server find my class? Any ideas? Thanks.

        • 1. Re: Class not found in HAR
          artemis

           

          "artemis" wrote:
          I have deployed .har based on the hibernate3 instructions (jboss 4.0.2, hibernate 3.0)

          here is my directory structure in

          har folder
          ....WEB-INF
          .........classes
          .............ssi.listener.bean
          ....................CWsmType.class
          ....................CWsmType.hbm.xml
          ....META-INF
          ........HibernateService.xml



          18:05:53,656 INFO [HbmBinder] Mapping class: CWsmType -> WSM_TYPE
          18:05:53,656 ERROR [Configuration] Could not compile the mapping document
          org.hibernate.MappingException: class CWsmType not found while looking for property: oid

          why doesn't application server find my class? Any ideas? Thanks.


          • 2. Re: Class not found in HAR
            artemis

            There is the source of the problem if anyone is interested:

            Class files along with ...hbm.xml files have to be JARed, insted of expanded within the .HAR file.

            A similar bug has been known but this one must be new.

            • 3. Re: Class not found in HAR
              renatov

              I have the same problem. Unfortunelly there is few docs to develop apps with HAR.

              • 4. Re: Class not found in HAR
                renatov

                ... after the complaint ... your schemaexport didn´t find the compiled java classes to map the DDL. Identify the classpath in your Ant target.