2 Replies Latest reply on Apr 2, 2009 2:30 AM by maxandersen

    Deployment of JBoss Seam project created by JBoss Tools

      Hi!

      I created a new JBoss Seam EAR project using the newest JBoss Tools and a local running JBoss AS 4.2.3GA under Windows Vista x64.

      Now the project needs to be deployed to a productive system this is the same JBoss AS but running under Debian x32. I wondered there was no trace of the project within the "deploy" folders of my local server. I read in my documentation that this is where projects are being deployed to?!

      I finally found the datasource file and the .ear folder (is this right that it isn't a file called *.ear but a folder?) but only in the directory "c:\my-eclipse-workspace\.metadata\.plugins\org.jboss.ide.eclipse.as.core\JBoss_4.2_Server\deploy\".

      I copied the myProject-ds.xml and the .ear folder in the defaut\deploy folder of my productive server and started it. Even when the application started it behaved strange - the validation messages for example where old ones. Actions that work on my local server doesn't work on the remote one - even when they access the same database - I don't get errors but strange validation messages instead. For example I can't change my password because the application always says that the password is too short and does not match with the "verify password" field - what is actually does.

      -> Might a reason be that I am locally using the "JDK6" version of the AS while the productive server uses the "JDK5" version instead?

      -> How do I "build" that project correctly from JBoss Tools to deploy it to my remote server? (I can't mount that server at the moment, I can only copy files to it).

      Thank you so much in advance!

        • 1. Re: Deployment of JBoss Seam project created by JBoss Tools
          akazakov

          Hi,

          1. Open JBoss Server View
          2. Double click on the server there
          3. See "Deploy" section. There is "Use worspace metadata" is used by default. You can switch it to "Use the JBoss deploy folder" or "Use a custom deploy folder".

          "GermanDev" wrote:
          -> Might a reason be that I am locally using the "JDK6" version of the AS while the productive server uses the "JDK5" version instead?

          You have to set "Preferences -> Java -> Compiler -> Compiler compliance level" to 1.5 for your projects. Otherwise you will have errors in JVM 5.0 (see JBoss server log).

          • 2. Re: Deployment of JBoss Seam project created by JBoss Tools
            maxandersen

            If you want an archive you can copy to a production server use File > Export > War (or Ear)