ICEfaces 1.8.1 Seam 2.2.0.CR1 HTTP 404
[Logo]
ICEsoft.org Forums: ICEfaces, ICEmobile, ICEpdf
[Search] Search   [Recent Topics] Recent Topics   [Groups] Home Page | www.icefaces.org  [Register] Register  [Login] Login 
ICEfaces 1.8.1 Seam 2.2.0.CR1 HTTP 404  XML
Forum Index -> JBoss Seam Integration
Author Message
jgenoese

Joined: 13/10/2007 00:00:00
Messages: 18
Offline


Before I take up anyone's precious time with all the details, can anyone tell my some possible reasons why I'd get an http 404 starting up my app? It seems that I get the 404 unless I type in

http://{host}:{port}/{rootContext}/home.seam

I'm using Maven 2.0.9 and I'm refactoring POMs a bit to clean things up. It used to work without the "/home.seam".

It appears as if the servlet container part isn't even getting the hit -- nothing shows up in the log. Now when I enter ".../bogus.seam", I get a 404 and some fanfare in the log.

If I enter ".../index.html", there's a 404 and nothing in the log, and I know index.html is there, right where it should be.

Sigh... at least it's an interesting problem. Any ideas?



John
jgenoese

Joined: 13/10/2007 00:00:00
Messages: 18
Offline


Never mind. It turned out to be a packaging issue. Because I learned Seam using seam-gen, I never took notice of things like "index.html". In refactoring my POMs, I screwed up the maven-war-plugin 'packagingIncludes' parameter, and omitted this file. Duh!

John
jgenoese

Joined: 13/10/2007 00:00:00
Messages: 18
Offline


/

John
judy.guglielmin

Joined: 20/02/2007 00:00:00
Messages: 1196
Offline


You can specify a "welcome-page" either using pages.xml or web.xml....which are you using? In your pages.xml, you can use Seam to define the welcom page with the Code:
no-conversation-view-id="home.xhtml"
property.

or you can use the jsf-ish way in web.xml similar to:-
Code:
    <welcome-file-list>
         <welcome-file>home.html</welcome-file>
     </welcome-file-list>
 


Have you done either of these?
jgenoese

Joined: 13/10/2007 00:00:00
Messages: 18
Offline


I used the "no-conversation-view-id" to no effect, because my home page requires the user to be logged in. They were supposed to be redirected to said page, but were not.

I think it was a combination of wrong things.

Once the index.html redirect to "home.seam" was in place, everything was as it should be.

Thanks for your kind reply! This forum is great.

John
 
Forum Index -> JBoss Seam Integration
Go to:   
Powered by JForum 2.1.7ice © JForum Team