1 Reply Latest reply on Nov 22, 2009 5:00 AM by seamtom

    Seam 2.1.2GA Blog example cannot change context root

    seamtom
      I'm having problem to change the context root of blog example in seam 2.1.2GA. Anyone come across the same issue? or know how to fix it?

      Here is what I've done.

      1) create a Seam dynamic project (EAR) named blog with context root blog in eclipse
      2) copy all java source files, view files, properties files, persistence.xml, treecache.xml, web.xml, faces-config.xml, components.xml, pages.xml, ..., etc., from seam blog examples to blog project in eclipse.
      3) copy required jar libs, setup dependence, and build path, etc.
      4) "run as" jboss AS 4.2.3
      5) Open browser to http://localhost:8080/seam-blog works. It can navigate to other pages and do search.

      Wait a minute! There is a mismatch between URL and context root setup.

      My context is blog, not seam-blog.  I open up jboss-app.xml under EAR project to double check and it says <context root>/blog</context root>.
      I also check the properties setup of blog war project in eclipse. It also says context root is blog. 

      If I http://localhost:8080/blog, it fails. No matter how I change the context root in jboss-app.xml. No luck.

      Whoever has a clue, please help. Thanks.
        • 1. Re: Seam 2.1.2GA Blog example cannot change context root
          seamtom
          <blockquote>
          _tom tom wrote on Nov 21, 2009 17:52:_<br/>

          I'm having problem to change the context root of blog example in seam 2.1.2GA. Anyone come across the same issue? or know how to fix it?

          Here is what I've done.

          1) create a Seam dynamic project (EAR) named blog with context root blog in eclipse
          2) copy all java source files, view files, properties files, persistence.xml, treecache.xml, web.xml, faces-config.xml, components.xml, pages.xml, ..., etc., from seam blog examples to blog project in eclipse.
          3) copy required jar libs, setup dependence, and build path, etc.
          4) "run as" jboss AS 4.2.3
          5) Open browser to http://localhost:8080/seam-blog works. It can navigate to other pages and do search.

          Wait a minute! There is a mismatch between URL and context root setup.

          My context is blog, not seam-blog.  I open up application.xml under EAR project to double check and it says <context root>/blog</context root>.
          I also check the properties setup of blog war project in eclipse. It also says context root is blog. 

          If I http://localhost:8080/blog, it fails. No matter how I change the context root in jboss-app.xml. No luck.

          Whoever has a clue, please help. Thanks.

          </blockquote>

          Click HELP for text formatting instructions. Then edit this text and check the preview.