5 Replies Latest reply on Oct 20, 2008 1:02 PM by bronzeiii

    External Exploded Deployment

    bronzeiii

      Hi

      JBOSS Server V: 4.2.3

      I'm a jboss newbie, so hope someone can help me out with this problem.

      I have an Eclipse directory, folder name, MVC, the structure within is the following

      MVC
      -> src
      -> class
      -> etc
      -> lib
      -> web (where i store jsp pages)
      -> web.war
      -> WEB-INF -> web.xml

      So the problem

      1) I modified the jboss-service.xml file, and set the scan URL to
      file:///D:/MVC/, but then when i start up the jboss, it was complaining that i dont have a deployer.

      --- Packages waiting for a deployer ---
      org.jboss.deployment.DeploymentInfo@306cc039 { url=file:/D:/MVC/web.war/WEB-INF/web.xml }
      deployer: null
      status: null
      state: INIT_WAITING_DEPLOYER
      watch: file:/D:/MVC/web.war/WEB-INF/web.xml
      altDD: null
      lastDeployed: 1224483628588
      lastModified: 1224483628587
      mbeans:

      What did i do wrong? I thought this is how we suppose to handle the external exploded deployment.

      Hope someone may share the knowledge to help me overcome this problem!

      Thanks

        • 1. Re: External Exploded Deployment
          jaikiran

          Does you web.war contain a WEB-INF/web.xml file? Please post the output of the following command:

          jar -tf web.war


          While posting the logs or code or xml content, remember to wrap it in a code block using the Code button in the message editor window and please hit the Preview button to make sure your post is correctly formatted

          • 2. Re: External Exploded Deployment
            bronzeiii

            hey Jaikiran

            Yes, my web.war folder contains a sub-folder, WEB-INF, and it contains a web.xml file.

            when i execute

            jar -tf web.war

            I received java.io.FileNotFoundException: web.war (Access is denied) I'm not sure why it's throwing a FileNotFoundException since web.war is a folder instaed of a file...

            Further help would be appreciate!

            Thanks so much
            Take care

            • 3. Re: External Exploded Deployment
              bronzeiii

              btw.. my OS is windows vista.

              Thanks!

              • 4. Re: External Exploded Deployment
                jaikiran

                 

                "bronzeiii" wrote:
                since web.war is a folder instaed of a file...




                I assumed that it was an archive. Use this instead:

                dir /b /s


                • 5. Re: External Exploded Deployment
                  bronzeiii

                  Hi Jarikiran

                  Yes, my web.war folder contains the WEB-INF folder and in WEB-INF folder contains the web.xml file. I reviewed the folder structure i posted, and realized that it didn't format as I wish it did. So to answer your question, after executing dir /b /s, i see

                  D:/Java Practices/miniMVC/web.war/WEB-INF
                  D:/Java Practices/miniMVC/web.war/WEB-INF/web.xml

                  So I think i do have the proper folder structure for exploded deployment. So please let me know what you think, and what i did wrong.

                  Thanks