0 Replies Latest reply on Jan 6, 2011 12:50 AM by Daniel Leighton

    JBDS 3.0: .js files not copied into EAR

    Daniel Leighton Newbie

      We have a Seam application (deploying to JBoss EAP 5.x) structued as an exploded EAR, built through JBoss Developer Studio 3.0. Our issue relates to deployment to the embedded EAP server (i.e. via server, add/remove in JBDS or JBoss Tools).

      When deploying, everything makes it into the EAR correctly except a series of complementary javascript files (resources of sorts, I guess) which are stored under a subfolder under Webcontent in top level web project (specifically project/WebContent/javascript)

      Basically, these files never get deployed into the application EAR (or actually the WAR inside the EAR). Instead we end up with an empty javascript folder in the deployed EAR - i.e. the individual files aren't automatically copied into the folder as you would expect. We can manually copy them in after the fact, but it's a pain.

      I can't for the life of me find any settings or differences with any other sub folder in the project which might explain why these specific files aren't getting deployed.

      FWIW, the structure of the project is as follows:

      - project
       - build
       - lib
       - src
       - Webcontent
        - common
        - crud
        - img
        - javascript   _the only folder with this issue_
        - layout
        - manualProcessing
      - project-ejb
       - ...
      - project-test
       - ...

      Any ideas at all as to why .js files wouldn't be properly copied/deployed into the exploded EAR?

      (Note I've also posted this at http://stackoverflow.com/questions/4456906/javascript-files-not-deploying-into-ear)