Santiago Gala wrote:
> 
> David Sean Taylor wrote:
> >
> > Since we switched over to JSP layouts, I can't get Jetspeed to work with
> > Apache anymore.
> > I now have the default page coming up by adding
> >
> > DirectoryIndex index.html index.jsp
> >
> > But the problem is when you click on any link with /portal in it.
> > See what I mean: http://www.bluesunrise.com/nile/
> > Looks ok, but then click on 'RSS Resources' or 'Please login to Jetspeed' or
> > any link with /portal in it.
> > (http://www.bluesunrise.com/nile/portal/screen/Login)
> > You get 'The page cannot be found'
> 
> I got one step beyond. If you are using mod_jk, and the file
> conf/mod_jk.conf-auto, it will not work as such. You will need to do
> something like:
> JKMount /portal/* ajp12

Obviously I wanted to say /<your-webapp-name>/portal/*

Also, beware that mod_jk.conf-auto is self generated, and it will be
rewritten each time you restart tomcat. So, you should copy the file,
edit it and point apache to it.


A different problem with mod_jk is that it reuses sockets, so you should
/etc/init.d/httpd restart each time you restart tomcat.


> 
> The problem when I do it is that the pages start working, but are
> delivered to the client as text/plain. I can see the source code and
> notice that the pages have the right content.
> 
> I think the problem is that we are flushing the response stream without
> setting the proper ContentType. I tried to trace it, but I could not
> find where it is done. Maybe Ingo could check if the ContentType is set
> anywhere? It shoud be set to whatever is the preferredMimeType, but it
> should be done before we start flushing the Response object.
> 
> I don't fully understand the Response process when templates are used.

I got it working after some fiddling (setting ContentType here and
there). However, I tried to set ContentType in several places, so I
would need to work more before I know which patch is needed.

> 
> >
> > Does this work on Websphere?
> >
> > What does this do:
> >
> > <jsp:forward page="portal/"/>
> >
> > --
> > --------------------------------------------------------------
> > To subscribe:        [EMAIL PROTECTED]
> > To unsubscribe:      [EMAIL PROTECTED]
> > Search: <http://www.mail-archive.com/[email protected]/>
> > List Help?:          [EMAIL PROTECTED]
> 
> --
> --------------------------------------------------------------
> To subscribe:        [EMAIL PROTECTED]
> To unsubscribe:      [EMAIL PROTECTED]
> Search: <http://www.mail-archive.com/[email protected]/>
> List Help?:          [EMAIL PROTECTED]


--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/[email protected]/>
List Help?:          [EMAIL PROTECTED]

Reply via email to