3 Replies Latest reply on Nov 25, 2011 4:35 AM by nagendra peddu

    hot deploy and java.lang.ClassNotFoundException

    Karel Jelinek Newbie

      I have project generated with seam gen. So I have src/model, src/action and src/test directories. Everithing was fine, until I correctly sort my classes to model and action directories. Now I have only entities in model directory and actions, entity home objects, web service endpoints etc. in action directory.
      But when I run explode ant target (or deploy) I will get war directory (war file) with this structure:


      WEB-INF/classes with all of my classes from model dir
      WEB-INF/dev with all of my classes from action dir



      But now I will get java.lang.ClassNotFoundException in some events.


      For example, when I go on some page where I am using my own converter. I have converter class in scr/action directory so after deploy it is in WEB-INF/dev dir. But facelets page can´t see this class there and ClassNotFoundException is thrown. Everithing is ok when I move converter class to src/model dir.


      I have similar problem with web services. I have web services classes in src/action dir. And web service endpoint was not deployed until I moved endpoint classes to src/model dir.


      Finally I need to have some classes in src/model dir, because without them my application is not functional.


      I read about WEB-INF/dev dir and this is directory that allows seam to hot deploy all src/action classes.


      Do You have some solutions? Or what should I have to do to get rid of src/model and src/action dir and have only one src dir with all classes?