[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index] [Home]

Re: GNUJSP 1.0.1Pre1 bug, or ...?



>What's the status with this dontusepagebasehack thing?  I'm satisfied with how
 it
>works now but will this get rolled into the current beta release?  Should I st
ick with
>the snapshot or install the next beta?

The problem is that the solution is not that easy.
Using that flag will break automatic changs detection of included 
files. I have an idea how to fix that 
(path building for included files needs other handling than 
path building for the jsp page itself) but didn't get to it.
Also I would like a statement from Wes and Noel before removing
code they explicitly added.


>
>Doug Collinge wrote:
>
>> Ok, test completed, and .....   it works!
>>
>> Now, what does the pagebase thing do? And if it is still useful for some pur
pose
>> why not just put in the defeat you added with dontusepagebasehack and enable
 it if
>> pagebase= is not set?  Should please everyone, right?
>>
>> My thanks to the JServ and GNUJSP crew!  Very fine work that makes my life m
ore
>> pleasant.
>>
>> Carsten Heyl wrote:
>>
>> > Wes? Noel?
>> > I think that is the problem with using DOCUMENT_BASE if
>> > running on jserv as I indicated before.
>> >
>> > Noel:
>> >         Why did you add that? What error did you remove?
>> >         In my opinion that should be removed.
>> >         It breaks ~username URLs also.
>> >
>> > Doug:
>> >         I added a test case in current snapshot.
>> >         It is currently being build.
>> >         Could you try it and set
>> >
>> >                 dontusepagebasehack=true
>> >
>> >         in your gnujsp init args?
>> >
>> > All others having problems with ~username URLs
>> > could you test current snapshot against pre1 version?
>> > (Note: Adding parameter dontusepagebasehack=true to pre1 does no harm.)
>> >
>> > >Here's something interesting - I have a rewrite rule in my configuration:
>> > >
>> > >    RewriteRule ^/([^/]+)\.html /plain.jsp?page=$1
>> > >
>> > >which maps anything that looks like "/blah.html" into "/plain.jsp?page=bl
ah"
>> > >plain.jsp is a page that reads some data out of /plain/blah.html and refo
rmats
>> > >it a little bit.
>> > >
>> > >The problem is that this doesn't work under 1.0.1pre1 but it does under
>> > >1.0.0.  No changes other than resetting the paths to the gnujsp dir.
>> > >Everything seems to be working properly: the rewrite log indicates that t
he
>> > >mapping is proceeding properly and calling the servlet via
>> > >"/plain.jsp?page=blah" works too.  But when the same uri is generated via
>> > >rewrite gnujsp says it can't find the jsp file.
>> > >
>> > >Huh?  What does gnujsp have to do with rewrite?  Does anyone have any ide
a
>> > >what might be going on here?
>> > >
>> > >Mark Wielaard wrote:
>> > >
>> > >> Hi all,
>> > >>
>> > >> I just took the latest snapshot and made tar.gz and zip files.
>> > >> They can be found on:
>> > >> <http://www.klomp.org/gnujsp/downloads/gnujsp-1.0.1pre1.tar.gz>
>> > >> <http://www.klomp.org/gnujsp/downloads/gnujsp101pre1.zip>
>> > >>
>> > >> This is the first pre-release of GNUJSP 1.0.1.
>> > >> The most notable changes compared to GNUJSP 1.0.0 are:
>> > >>     -- support for virtual hosts and mappings under Apache + JServ
>> > >>     -- support for Apache-style language negotiation based on extension
>> > >>     -- new "keepJava" parameter to save generated .java files
>> > >>     -- new "usehostname" parameter to run virtual hosts in one scratchd
ir
>> > >>     -- all Throwables are caught and sent to errorPage, not just Except
ions
>> > >>     -- better support for Win32 systems
>> > >> And a lot of bugs have been solved.
>> > >> (See for more details the included CHANGES file)
>> > >>
>> > >> It would be really appreciated if people could download and install the
m
>> > >> and run the testsuite/main.jsp. Please mail the results (summary please
),
>> > >> Servlet Engine, JVM, compiler and initArgs you used to the list.
>> > >> (Note to run the testsuite you have to include the gnujsp10test.jar in
>> > >> your zone repository classpath and not the normal gnujsp10.jar file.)
>> > >>
>> > >> I think the following has to be done before the real GNUJSP 1.0.1 relea
se:
>> > >> - Wait for some success stories installing these pre1 versions :)
>> > >> - Include the latest servlet libraries from Paul.
>> > >>   (The current version has an old fix for a problem with postParseData(
),
>> > >>    see lib/README.servlet)
>> > >> - Include some more examples of errors that occur when someone has a
>> > >>   wrong setup. (Most questions on the gnujsp mailinglist are about erro
rs
>> > >>   that are caused by wrong setups or crashing JVMs.)
>> > >> - Include some more results on the testsuite for different Servlet Engi
nes,
>> > >>   so people know what to expect.
>> > >> - Fix the CHANGES file (include the correct release date).
>> > >>
>> > >> If everything works OK in the next few days I will update the web pages
>> > >> and make the real GNUJSP 1.0.1 release (or another pre-release if somet
hing
>> > >> nasty shows up).
>> > >>
>> > >> Have fun testing,
>> > >>
>> > >> Mark
>> > >
>> > >
>> >
>> > Ciao,
>> >         Carsten Heyl
>> >
>> >   Carsten Heyl                          Heyl@NADS.De
>> >   NADS - Solutions on Nets              http://www.nads.de/
>> >   NADS GmbH                             http://www.pixelboxx.de/
>> >   Hildebrandtstr. 4E                    Tel.: +49 211 933 02-90
>> > D-40215 Duesseldorf                     Fax.: +49 211 933 02-93
>
>

Ciao,
	Carsten Heyl

  Carsten Heyl                          Heyl@NADS.De
  NADS - Solutions on Nets              http://www.nads.de/
  NADS GmbH                             http://www.pixelboxx.de/
  Hildebrandtstr. 4E                    Tel.: +49 211 933 02-90
D-40215 Duesseldorf                     Fax.: +49 211 933 02-93