1 2 Previous Next 21 Replies Latest reply on Sep 17, 2011 5:59 PM by sverker

    Migrating to AS7

    beve

      Hi,

       

      I've put together a sample project which shows some of the issue that might crop up when migrating to AS7, and also shows how to fix them. This is a work in progress and I'll be adding more as I go along, but I thought it might be useful to others who are about to migrate their applications to AS7.

       

      You can find documentation and the project itself here:

      https://github.com/danbev/migrate

       

      Regards,

       

      /Daniel

        • 1. Re: Migrating to AS7
          alesj

          Are there some tips on how to migrate MC -jboss-beans.xml beans?

          • 2. Re: Migrating to AS7
            beve

            Are there some tips on how to migrate MC -jboss-beans.xml beans?

            Not at the moment but that is a good use case. I'll add an example of that.

             

            Thanks

            • 3. Re: Migrating to AS7
              alesj

               

              Are there some tips on how to migrate MC -jboss-beans.xml beans?

              Not at the moment but that is a good use case. I'll add an example of that.

              It basically should be just a matter of changing the namespace,

              and see if the xml feature/element is supported in the current schema.

               

              I did port most of the default features, but not all.

              * https://github.com/jbossas/jboss-as/tree/master/pojo

              • 4. Re: Migrating to AS7
                sgilda

                Hi Daniel,

                 

                There are a couple of documents that contain Migration information:

                 

                - https://docs.jboss.org/author/display/AS7/How+do+I+migrate+my+application+from+AS5+or+AS6+to+AS7

                       This documents those changes that are needed to  successfully run and deploy AS 5 applications on AS 7.

                 

                - https://docs.jboss.org/author/display/AS7/Example+Applications

                       This details migration of several example applications to AS7.

                 

                I will try to update the first document with your findings.

                 

                Would you like to add your application to the list of migrated example applications?

                 

                Thanks,

                Sande

                • 5. Re: Migrating to AS7
                  beve

                  Would you like to add your application to the list of migrated example applications?

                  Yeah, that would be great. Should I add it to the section "Example Applications Based on EE6"?

                   

                  Regards,

                   

                  /Daniel

                  • 6. Re: Migrating to AS7
                    sgilda

                    H Daniel,

                     

                    The section "Example Applications Based on EE6" is intended for applications that have been designed and written specifically for EE6. Since your application  was migrated from a previous version to AS7 and you documented the steps you took to get it there, I thought it would be a good fit under "Example Applications Migrated from Previous Releases". Or am i misunderstanding what you did with this application?

                     

                    Thanks,

                    Sande

                    • 7. Re: Migrating to AS7
                      beve

                      Hi Sande,

                      I thought it would be a good fit under "Example Applications Migrated from Previous Releases". Or am i misunderstanding what you did with this application?

                      Sorry, I actually meant to write "Example Applications Migrated from Previous Releases" but copied the wrong section header. It's been a long day:)

                       

                      Regards,

                       

                      /Daniel

                      • 8. Re: Migrating to AS7
                        sgilda

                        Hi Daniel,

                         

                        Understood! I know the feeling. :-)

                         

                        It wasn't that obvious anyway, so wrote a little overview under each heading just to make it more clear.

                         

                        Thanks for adding your application to the doc!

                        Sande

                        • 9. Re: Migrating to AS7
                          beve

                          Hi Ales,

                           

                          thanks for the pointer to the pojo subsystem! I've added a very basic example:

                          https://github.com/danbev/migrate/tree/master/mcbeans

                           

                          I was looking at this test file in the pojo project and wondering if that file is using the correct namespace. The test file is using 'urn:jboss:pojo:7.0' while the KernelDeploymentParsingProcessor is using 'urn:jboss:mc:7.0'. I'm guessing that the latter is the one that should be used and it does with the mcbeans example but wanted to double check this with you.

                           

                          Thanks,

                           

                          /Daniel

                          • 10. Re: Migrating to AS7
                            alesj

                            I was looking at this test file in the pojo project and wondering if that file is using the correct namespace.

                            This test is not used atm. See testsuite/integration for pojo tests.

                             

                            while the KernelDeploymentParsingProcessor is using 'urn:jboss:mc:7.0'.

                            This one is actually wrong.

                            It used to be "mc", but we decided to rather go with "pojo".

                             

                            Let me fix this (dunno how the tests didn't pick this up ...).

                            • 11. Re: Migrating to AS7

                              Could you write something about this error:

                               

                              17:23:35,734 ERROR [stderr] (MSC service thread 1-4) log4j:WARN No appenders could be found for logger (org.springframework.web.context.ContextLoader).

                                17:23:35,734 ERROR [stderr] (MSC service thread 1-4) log4j:WARN Please initialize the log4j system properly.

                               

                              I don't know how to make the configuration for log4j

                              i.e. I had a <server>/conf/jboss-log4j.xml I want to migrate.

                               

                              Thanks!

                              • 12. Re: Migrating to AS7
                                beve

                                Could you write something about this error.

                                Sure, I'll add an example of packaging a log4j.xml file with a deployment.

                                Thanks for the suggestion.

                                 

                                Regards,

                                 

                                /Daniel

                                • 13. Re: Migrating to AS7
                                  beve

                                  Could you write something about this error:

                                  I've added an example of using a customized logging for log4j. You can find the details here, see the section "Custom logging".

                                   

                                  I'm going to do some more work on this but it would be great to get feedback about the current solution and if this is the recommended way.

                                   

                                  Regards,

                                   

                                  /Daniel

                                  • 14. Re: Migrating to AS7

                                    Hi,

                                    I got it. I just had to put the log4j.xml into a jar-file in ear/lib.

                                    1 2 Previous Next