9 Replies Latest reply on May 25, 2009 4:52 PM by maxandersen

    changes in the JBoss tools?

    nitm

      hi,

      i had to reinstall all of my development environment, including the JBoss Tools and it behaves a little bit different.

      I mostly use the tools for seam development, and with the current version of the tools i noticed that two things act different with the seam web project:
      (1) the security rules (security.drl) is not being generated, though there's a reference to the file in the components.xml file
      (2) the datasource file (projectName-ds.xml) is not being deployed to the root directory of the server, it is packed in the resources directory of the ear file.

      the version that i'm using now is the current stable version (3.0.1GA) but i don't know what's the version i used to work with (my laptop was stolen).
      i kind of liked the way it used to work for me a lot better than how it does now.. anyone has any idea how i can set that up?

      thanks!
      nitzan;

        • 1. Re: changes in the JBoss tools?
          akazakov

          Did you create your seam projects by wizards? If you imported it then you have to use "Right-click on projectName-ds.xml->Make deployable" menu to deploy -ds.xml.

          • 2. Re: changes in the JBoss tools?
            nitm

            yes, i created the project using the wizard.. i even did that 3 times just to make sure i'm not missing something..

            i will try the "Make deployable" option when i get home, though it's not something i needed to do in the past, and as for the rules files, it won't even create it so it's a bigger problem.

            thanks, nitzan;

            • 3. Re: changes in the JBoss tools?
              akazakov

              Looks like a bug. Please report it to JIRA. Don't forget to describe detailed steps to reproduce it.

              • 4. Re: changes in the JBoss tools?
                nitm

                i reported a bug to jira: https://jira.jboss.org/jira/browse/JBIDE-4371

                also, as i wrote there, the "Make deployable" on the ds file prompt this message: "There are no servers that support deploying single files"

                is there a way to overcome the security rules issue? i'm not sure what to put in that file.

                thanks, nitzan;

                • 5. Re: changes in the JBoss tools?
                  maxandersen

                   

                  "nitm" wrote:
                  i reported a bug to jira: https://jira.jboss.org/jira/browse/JBIDE-4371


                  Are you sure you are using the same version of seam as before ?

                  security.drl is as far as I remember not a requirement in seam 2 and it was definitly never supposed to be in the root of the EAR since that is a broken assumption about classloading.


                  also, as i wrote there, the "Make deployable" on the ds file prompt this message: "There are no servers that support deploying single files"


                  Then you don't have one of our AS adapters configured, and that also explains any issue with why -ds.xml is not deployed.



                  • 6. Re: changes in the JBoss tools?
                    nitm

                    yes, i'm using the same seam version as i used to (2.1.1GA), the only thing that changed is the version of the JBoss Tools.

                    the security.drl wasn't in the root of the ear but in the META-INF directory (if i remember correctly).
                    if it's not a requirement and the wizard does not generate it, at least it should not configure it in the components.xml.. this does cause some exceptions (added to the jira post)

                    what AS adapters ?
                    i'm using a fresh installation of eclipse and i updated the Tools from the stable update site.
                    was there another thing i should of done/configure?

                    thanks, nitzan;

                    • 7. Re: changes in the JBoss tools?
                      akazakov

                       

                      "nitm" wrote:
                      what AS adapters ?
                      i'm using a fresh installation of eclipse and i updated the Tools from the stable update site.
                      was there another thing i should of done/configure?


                      See JBoss Server View->New->Server->JBoss Community->...

                      • 8. Re: changes in the JBoss tools?
                        nitm

                        oh, ok, now i can add the ds file and deploy it.

                        why is there a difference between the two servers?
                        thanks!

                        • 9. Re: changes in the JBoss tools?
                          maxandersen

                           

                          "nitm" wrote:

                          why is there a difference between the two servers?
                          thanks!


                          Because the feature of being able to deploy any resource is something that WTP does not provide by default, only we do that - so that is why it only works for our AS adapters.