yep, I know that bug as well. I made a simple fix in my local copy... I
could make the same fix in CVS, but Kevin said that he would look into
it.

ok, I'll update it in CVS so it would work properly. Any objections from
others?
Anyway, I'll also include my previous email below about fixing this bug.

Neeme

-----Original Message-----
From: Neeme Praks 
Sent: Sunday, June 11, 2000 6:03 PM
To: JetSpeed
Subject: RE: [patch] fix the filename resolving within XML/XSP files



well, after getting a little bit smarter and digging in the code of
Cocoon (from Cocoon CVS), I managed to find a different solution to this
problem. This goes together with the problem of "major bug in XSP" post
and solves both of them.

Referring to the "major bug in XSP" post, I decided to emulate the
offline mode for cocoon. So now I throw a NPE in
JetspeedServletRequest.getContextPath() that is caught in Cocoon.

The possible problem of this being a hack is not so relevant as the
entire Cocoon1 is a little hack and when we move to cocoon2 we'll have
to rework Jetspeed anyway.

What concerns the bug with filename resolving within XML/XSP files, then
it seems to be a bug in the Cocoon version that is distributed together
with Jetspeed. To get access to the source code of Cocoon, I replaced
this with CVS version of cocoon and works just fine...
How about updating cocoon.jar that comes together with Jetspeed?

Neeme

so here is the diff (no need to change the CocoonRenderer.java, should
just update cocoon.jar):

Index: JetspeedServletRequest.java
===================================================================
RCS file:
/products/cvs/jetspeed/jetspeed/src/java/org/apache/jetspeed/util/servle
t/JetspeedServletRequest.java,v
retrieving revision 1.4
diff -r1.4 JetspeedServletRequest.java
107c107,109
<         return req.getContextPath();
---
>         // possible cause for bugs:
>         // this emulates the offline mode for Cocoon
>         throw new NullPointerException();


-----Original Message-----
From: sbelt [mailto:[EMAIL PROTECTED]]
Sent: Saturday, July 01, 2000 12:41 AM
To: JetSpeed
Subject: Re: Cannot access XSP applications


Interesting:

If I delete the contents of the repository folder, I see only the first
XSP
content. All other XSP links show the appropriate Portlet Title Bar, but
the
content continues to be the first XSP page.

Also, the Cusomize link is a blank window.

example:

step1 delete the repository contents
step2 Select the Sample XSP Application link -> The proper page is
displayed
step3 Go back to HOME
step4 select the Portlet Browser link -> The XSP page says "Browser" in
the
yellow bar, but the page content is the XSP Sample application. Pressing
refresh changes nothing.

step5 Delete again the repository folder (no restarting the system)
step6 Select the Porltlet Browser link -> The proper page is desplayed
step7 go back to HOME
step8 Select sample XSP application -> The XSP page content is the
Portlet
Browser page.

In all cases, deleting the repository will make the next click work.

the path to the file in the directory is
d:\NetServices\jakarta-tomcat\bin\repository\_D_\_NetServices\_jakarta_t
omca
t\_webapps\_ROOT_\_jetspeed.class

there is also a .java file there.

Thanks for all your effort.

Steve B.

----- Original Message -----
From: "Neeme Praks" <[EMAIL PROTECTED]>
To: "JetSpeed" <[EMAIL PROTECTED]>
Sent: Friday, June 30, 2000 10:58 AM
Subject: RE: Cannot access XSP applications



Can you check if the java class file is generated in the Cocoon
repository?

Neeme

> -----Original Message-----
> From: sbelt [mailto:[EMAIL PROTECTED]]
> Sent: Friday, June 30, 2000 6:36 PM
> To: JetSpeed
> Subject: Re: Cannot access XSP applications
>
>
> Well, yes but no ;)
>
> It appears that the path is cleaned-up as you see in the
> turbine.log below.
> However, my screen comes up with simply the Jetspeed Header
> and footer with
> no data in between. The messages below are the only entries in the
> Turbine.log, so I am not sure where the problem lies.
>
> By the way, I do want to thank you for the progress though. I
> am excited to
> reach the point where I can see what is happening with the
> "Confiure your
> own page" implementation.
>
> [Fri Jun 30 09:30:24 PDT 2000] -- NOTICE  -- Jetspeed: cache
> hit:  Portlet -
> org.apache.jetspeed.portal.portlets.CocoonPortlet - stylesheet -
> /content/dynamic/portletbrowser/xsp/index.xsl -
> http://localhost:8080/content/dynamic/portletbrowser/xsp/index.xml
> [Fri Jun 30 09:30:24 PDT 2000] -- NOTICE  -- CocoonPortlet:
> transforming
> file:///D:/NetServices/jakarta-tomcat/webapps/ROOT/content/dyn
> amic/portletbr
> owser/xsp/index.xml with stylesheet
> file:///D:/NetServices/jakarta-tomcat/webapps/ROOT/content/dyn
> amic/portletbr
> owser/xsp/index.xsl
> [Fri Jun 30 09:30:24 PDT 2000] -- NOTICE  -- DiskCache: this
> URL can't be
> stored in cache... providing it
> directly.file:///D:/NetServices/jakarta-tomcat/webapps/ROOT/co
> ntent/dynamic/
> portletbrowser/xsp/index.xml
>
> ----- Original Message -----
> From: "Neeme Praks" <[EMAIL PROTECTED]>
> To: "JetSpeed" <[EMAIL PROTECTED]>
> Sent: Friday, June 30, 2000 6:09 AM
> Subject: RE: Cannot access XSP applications
>
>
> ok. just made my first commit ;-)
>
> Check out from CVS (JetspeedDiskCache.java) and tell me if it solved
> your problem.
>
> Neeme
>
> > -----Original Message-----
> > From: sbelt [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, June 26, 2000 6:52 PM
> > To: JetSpeed
> > Subject: Re: Cannot access XSP applications
> >
> >
> > Thanks! Could you let me know when you post it in CVS? I
> > would very much
> > appreciate it.
> >
> > Steve B.
> >
> > ----- Original Message -----
> > From: "Neeme Praks" <[EMAIL PROTECTED]>
> > To: "JetSpeed" <[EMAIL PROTECTED]>
> > Sent: Sunday, June 25, 2000 2:33 PM
> > Subject: RE: Cannot access XSP applications
> >
> >
> >
> > (uhoh, back from the midsummer celebrations and now trying to dig
> > through all the emails...)
> >
> > I had the same problem once... I fixed it in my local copy,
> > not sure if
> > I posted the diff (it was before I got write access)...
> I'll check it
> > out and let you know...
> >
> > Neeme
> >
> > > -----Original Message-----
> > > From: Steve Belt [mailto:[EMAIL PROTECTED]]
> > > Sent: Saturday, June 24, 2000 11:08 PM
> > > To: JetSpeed
> > > Subject: Cannot access XSP applications
> > >
> > >
> > > (Thanks Kevin, you were right about the lib folder - I now
> > > see Jetspped)
> > >
> > > (Thanks Kevin, you were right about the lib folder - I now
> > > see Jetspped)
> > >
> > > When I try to access any XSP link, I get a blank page. I
> > disected the
> > > Turbine.log and foud the entries at the bottome of this
> > > email. Note the
> > > repeated "/" character in the url (.../ROOT//content/...). I
> > > have looked at
> > > the CocoonPortlet source and found the url is being
> > obtained from the
> > > command:
> > >
> > > String url =
> > > JetspeedDiskCache.getInstance().getEntry( pc.getURL() ).getURL();
> > >
> > > I have tried modifying the PortletRegistry to remove the
> "/" at the
> > > beginning of the URL's, but then Jetspeed sees no seperator
> > > between the ROOT
> > > and content folder (ie Coccoon cannot find
> > .../ROOTcontent/dynamic...)
> > >
> > > From this point, it is over my head.
> > >
> > > Any ideas?
> > > Steve B.
> > >
> > > [Sat Jun 24 13:56:57 PDT 2000] -- NOTICE  -- Jetspeed: cache
> > > hit:  Portlet -
> > > org.apache.jetspeed.portal.portlets.CocoonPortlet - stylesheet -
> > > /content/dynamic/customizer/xsp/ui-generic.xsl -
> > > http://localhost:8080/content/dynamic/customizer/xsp/ui.xml
> > > [Sat Jun 24 13:56:57 PDT 2000] -- NOTICE  -- CocoonPortlet:
> > > transforming
> > > file:///D:/NetServices/jakarta-tomcat/webapps/ROOT//content/dy
> > namic/customiz
> > er/xsp/ui.xml with stylesheet
> > file:///D:/NetServices/jakarta-tomcat/webapps/ROOT//content/dy
> namic/cust
> omiz
> er/xsp/ui-generic.xsl
> [Sat Jun 24 13:56:57 PDT 2000] -- NOTICE  -- DiskCache: this URL can't
> be
> stored in cache... providing it
> directly.file:///D:/NetServices/jakarta-tomcat/webapps/ROOT//c
> ontent/dyn
> amic
> /customizer/xsp/ui.xml
>
>
>
>
> --
> --------------------------------------------------------------
> Please read the FAQ! <http://java.apache.org/faq/>
> To subscribe:        [EMAIL PROTECTED]
> To unsubscribe:      [EMAIL PROTECTED]
> Archives and Other:  <http://java.apache.org/main/mail.html>
> Problems?:           [EMAIL PROTECTED]
>
>
>
> --
> --------------------------------------------------------------
> Please read the FAQ! <http://java.apache.org/faq/>
> To subscribe:        [EMAIL PROTECTED]
> To unsubscribe:      [EMAIL PROTECTED]
> Archives and Other:  <http://java.apache.org/main/mail.html>
> Problems?:           [EMAIL PROTECTED]
>
>
>
> --
> --------------------------------------------------------------
> Please read the FAQ! <http://java.apache.org/faq/>
> To subscribe:        [EMAIL PROTECTED]
> To unsubscribe:      [EMAIL PROTECTED]
> Archives and Other:  <http://java.apache.org/main/mail.html>
> Problems?:           [EMAIL PROTECTED]
>
>
>
> --
> --------------------------------------------------------------
> Please read the FAQ! <http://java.apache.org/faq/>
> To subscribe:        [EMAIL PROTECTED]
> To unsubscribe:      [EMAIL PROTECTED]
> Archives and Other:  <http://java.apache.org/main/mail.html>
> Problems?:           [EMAIL PROTECTED]
>
>
>
> --
> --------------------------------------------------------------
> Please read the FAQ! <http://java.apache.org/faq/>
> To subscribe:        [EMAIL PROTECTED]
> To unsubscribe:      [EMAIL PROTECTED]
> Archives and Other:  <http://java.apache.org/main/mail.html>
> Problems?:           [EMAIL PROTECTED]
>
>


--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html>
Problems?:           [EMAIL PROTECTED]



--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html>
Problems?:           [EMAIL PROTECTED]



--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html>
Problems?:           [EMAIL PROTECTED]

Reply via email to