5 Replies Latest reply on Jan 4, 2011 6:05 AM by wolfgangknauf Branched from an earlier discussion.

    How to deploy application to JBoss AS through Eclipse

    sars

      I already succeed to starting jboss through eclipse. My next question is how I can manage my application to deploy on jboss server to eclipse. I've tried but alway fail, they said null pointer something. Whereas it's only hello world application. If I use tomcat, I can started well. It just need to right click ---> run as server, it will be run well. But for Jboss, I need your hands guys.

        • 1. Re: How to deploy application to JBoss AS through Eclipse
          wolfgangknauf

          Hi,

           

          what Eclipse and JBoss versions do you use? How does your application look like (What kind of modules does it contain? Which JavaEE version)?

          Did you restart Eclipse since the error occured first? Do you use an older workspace? If yes: try to start Eclipse using a new, empty workspace.

           

          Many, many questions ;-)...

           

          Best regards

           

          Wolfgang

          • 2. Re: How to deploy application to JBoss AS through Eclipse
            sars

            Hi,

             

            Thanks for replying. I'm using eclipse 3.3 europa and jboss 5.1. My module is jsf project. I use java 6. Yeah I did to restart. The error occur once I tried to hit the url of application. e.g. hellojsfjboss, but the weird thing is why I can run it in tomcat 6.0 very well. I can run jboss server without module, it can run well. Anyway, what do you mean by older workspace? I just created a new workspace. Thanks for help. 

            • 3. Re: How to deploy application to JBoss AS through Eclipse
              wolfgangknauf

              Hi,

               

              the next question is: does the error happen in Eclipse (do you seen an error messagebox when publishing the module), or is the error shown on the JBoss console?

              If it is in the JBoss console: please post the full stack trace.

               

              By the way: you should upgrade your Eclipse ;-). The current version is 3.6, which is three years newer than your 3.3. Maybe the new version has improved validation which reports the error to you.

               

              Best regards

               

              Wolfgang

              • 4. Re: How to deploy application to JBoss AS through Eclipse
                sars

                Hi Wolfgang,

                 

                It solved. . I just need to manage setting server point to my application template. Yeah, actually previous I use Eclipse Helios as you suggested. But a week I'm joining new project, the team leader ask me to make all development environment are in the same version. That's why I back to the old fashioned one .  My only problem now is how to make deployment automatically, because in current I must use ant to deploy manually. That makes development slower I think, because I need to deploy and restart the server all over again once I do simple changes. In my previous when I used tomcat, for any changes in page such as xhtml or jsp I don't need to restart server. Do you have any suggestion?

                Thanks Wolfgang.

                 

                Sarwo 

                • 5. Re: How to deploy application to JBoss AS through Eclipse
                  wolfgangknauf

                  Hi,

                   

                  good news: you don't need to restart JBoss, because this one can perform "hot deployment": simply copy the new WAR file to "%JBOSS_HOME%\default\deploy", and the server will redeploy it after some seconds.

                   

                  Best regards

                   

                  Wolfgang