6 Replies Latest reply on Feb 5, 2010 11:31 AM by mvlach

    Two same application on one jboss

    mvlach

      Hello,


      I have two application (second is derived from the first - and use the same components). Some components are different (for example authenticator).


      But when I deploy both applications to one jboss I ged weird behaviour.


      The I go to the first application (called www.war) and logged I can't loggin. The first application use the components from the second, the authenticator component.


      When I type the credentials for second application I can log.


      Is there some problem with components names ?


      Thanks Mila

        • 1. Re: Two same application on one jboss
          nickarls

          Do you use a loader-repository in jboss-web.xml?

          • 2. Re: Two same application on one jboss
            mvlach

            Hello,


            yes I am.


            I have edit the files and till this change the application work good.


            Thanks you for the help.


            Mila

            • 3. Re: Two same application on one jboss
              swd847

              Make sure that each app has its own copy of the seam jars, you can't share them between projects.


               

              • 4. Re: Two same application on one jboss
                mvlach

                Thanks you for help...


                But, when I repackage the wars to EJB and using the ear, the scope isolation don'tt works.


                I first EAR I have




                <?xml version="1.0" encoding="UTF-8"?>
                <jboss-app>
                    <class-loading java2ClassLoadingCompliance="false">
                        <loader-repository>
                            seam.jboss.org:loader=etrader-ts.ear
                            <loader-repository-config>java2ParentDelegation=false</loader-repository-config>
                        </loader-repository>
                    </class-loading>
                </jboss-app>






                In second ear



                <?xml version="1.0" encoding="UTF-8"?>
                <jboss-app>
                    <class-loading java2ClassLoadingCompliance="false">
                        <loader-repository>
                            seam.jboss.org:loader=etrader-demo.ear
                            <loader-repository-config>java2ParentDelegation=false</loader-repository-config>
                        </loader-repository>
                    </class-loading>
                </jboss-app>
                





                So this file is named jboss-app.xml and is localted in eeeee.ear/META-INF


                Thanks for help.


                Mila









                • 5. Re: Two same application on one jboss
                  babazs

                  Hy!


                  Which version of JBoss do you use?


                  If you use JBoss 5.1 go deployers/ear-deployer-jboss-beans.xml, and change the isolated property of EARClassLoaderDeployer to true!


                  • 6. Re: Two same application on one jboss
                    mvlach

                    Hello,


                    I'm using the 4.2.3 JBoss.


                    When I set the isolation level globally, the application can't run. There is problem with some other classes.
                    I read the documentation and the above solution (jboss-all.xml) should work.