2 Replies Latest reply on May 25, 2007 2:04 AM by Joan Horta Tosas

    Web application deployment question

    Ryan Hockenbury Newbie

      I'd like to be able to separate my classes from my WAR file, since my classes are often recompiled individually (and this is a large scale project). If I omit the class files from the WAR, where should I put them instead?

      I'd like to change from something like this (directory structure of WAR file):
      -------------------

      index.jsp
      +META-INF
       manifest.mf
      +WEB-INF
       web.xml
       +classes
       +package1
       +subpackagename1
       myclass.class
       +package2
       +subpackageame2
       yourclass.class


      to instead these (WAR file):
      ---------------
      index.jsp
      +META-INF
       manifest.mf
      +WEB-INF
       web.xml
       +classes


      JAR file 1:
      ----------------
      +META-INF
       manifest.mf
      +package1
       +subpackagename1
       myclass.class

      JAR file 2:
      ----------------
      +META-INF
       manifest.mf
      +package2
       +subpackageame2
       yourclass.class



      When I do this, my index.jsp gives me classdefnotfound on 'myclass' and 'yourclass'. I'm kinda new to this, but I figured the JARs should go inside the 'lib' folder of the JBoss server I am using. This doesn't seem to be the case. Any help would be appreciated.