11 Replies Latest reply on May 24, 2006 4:11 AM by shagy69

    change context path

    shagy69

      Hi all,
      In the User guide its said that one can change the context only by changing the file local.properties found in $PORTAL_HOME/build/.
      I have search that file inside all the Application server and I get 0 results in the search query. How can this be possible? there is another way of doing that.
      thanx.

        • 1. Re: change context path
          theute

          use build/etc/local.properties-example as example and copy it in the build directory.

          (It gets copied if you compile once)

          • 2. Re: change context path
            poyge394

            so i most compile the portal from the src to change contex path ? cant i change the context path in a binary version ?

            • 3. Re: change context path
              theute

              I was answering shagy69 who is obviously using the sources...

              For the binary version, just edit that file:
              jboss-portal.sar/portal-server.war/WEB-INF/jboss-web.xml

              Change context-root to whatever you want.
              See the other thread in that forum if you have difficulties.

              • 4. Re: change context path
                poyge394

                strange
                i remove root.war. and when i change it to:
                <context-root>/</context-root>
                it dont work

                if i change it to
                <context-root>test</context-root>
                i can access it with:
                http://localhost:8080/test

                • 5. Re: change context path
                  ivanlatysh

                  Make sure that you don't have :
                  jbossweb-tomcat55.sar/ROOT.war

                  If you do, remove it.

                  • 6. Re: change context path
                    poyge394

                    already removed

                    • 7. Re: change context path
                      ivanlatysh

                      So do the following:
                      Set context to <context-root>test</context-root> as you did before.
                      Now open http://localhost:8080 in your browser and see what do you have there, if nothing is there change context to <context-root>/</context-root> or simply <context-root/>. If you see any content there remove it.
                      And make sure that no java process hang in the memory.

                      • 8. Re: change context path
                        poyge394

                        strange, it is a blank page, no content when i go to
                        http://localhost:8080
                        but somthing most be thair....for it should give me a error instead....
                        no error in console nether

                        • 9. Re: change context path
                          ivanlatysh

                          It should be blank, you should see no error.
                          Now change <context-root> to <context-root>/</context-root> and run the server.

                          Also if you are using MSIE you should clear your cache, better to use Firefox anyway.

                          Also check if where portal has been mounted. You should see something like that:

                          11:28:42,078 INFO [TomcatDeployer] deploy, ctxPath=/, warUrl=.../deploy/jboss-portal.sar/portal-server.war/
                          11:28:42,281 INFO [TomcatDeployer] deploy, ctxPath=/ws4ee, warUrl=.../tmp/deploy/tmp31689jboss-ws4ee-exp.war/


                          Also if you didn't change log4j config, check log file (not all the messages will be seen from the console)

                          If you still don't see the portal page, reboot your computer.

                          • 10. Re: change context path
                            poyge394

                            ok, a restart helped.....tx

                            • 11. Re: change context path
                              shagy69

                              Thanks guys your conversation has helped a lot! cheers.