Brett Sealey | 1 Apr 2002 01:36

Re: Bug in DTD?

Miro,

just to let you know that on Saturday I checked in an updated DTD that
fixed this. If you are keen you can try it otherwise just wait until the
next point release.

Brett

On Wed, 27 Mar 2002, Brett Sealey wrote:

> I think you are right, I'll look into it this weekend - i.e. as soon as I
> have some time.
> 
> In the meantime you might want to temporarily use:
> JAVA_OPTIONS='-Dorg.mortbay.xml.XmlParser.NotValidating=true' ./bin/jetty.sh run demo admin
> 
> Cheers,
> Brett
> 
> On Wed, 27 Mar 2002, Halas, Miroslav wrote:
> 
> > I think the bug is in DTD, when you look at definition of set 
> > 
> > <!ELEMENT Set ( %VALUE; )* >
> > <!ATTLIST Set %NAMEATTR; %TYPEATTR; >
> > 
> > it doesn't allow you to specify class.
> > 
> > Miro Halas

(Continue reading)

Brett Sealey | 1 Apr 2002 02:00

Re: Calling static methods from XML configuration

Thanks Jochen,

this is an important fix - well spotted, I've rolled it into CVS.

Regards,
Brett

On Thu, 28 Mar 2002 Jochen.Schwarze <at> cit.de wrote:

> 
> 
> When you make a static call to a method from the XML configuration, like this
> 
>     <Call class="Derived" name="foo">...</Call>
> 
> the XML Configurator will call the static foo() method of Derived's superclass
> (if such a method exists).
> (Took me a long time to find why my code wasn't called ... ;-)
> I suggest that the XML configurator calls static methods only if they have the
> exact declaring class,
> see the attached fix.
> 
> Background: For instance methods, java.lang.Class.getMethods() lists only the
> most detailed method;
> for static methods, it also lists all methods of all superclasses.
> 
> Best,
> 
>      Jochen
> 
(Continue reading)

Noam Bulvik | 1 Apr 2002 12:19

Re: problem serving pages when there is no closing URL


-----Original Message-----
From: Noam Bulvik 
Sent: Sun, March 31, 2002 9:47 AM
To: 'Brett Sealey'
Subject: RE: [jetty-support] problem serving pages when there is no
closeing URL

Hi 

The problem is not handeling redirect,it is a NullPointerException at
HttpResponse(line 331)
checking in the c.v.s shows that thre was a change between versions 3.1.5
and 3.1.6 part of it was removing the check whether  _handlerContext==null
adding this check again solved the problem and the redirection worked as
before.
Noam

-----Original Message-----
From: Brett Sealey [mailto:bretts <at> mortbay.org]
Sent: Fri, March 29, 2002 2:21 AM
To: Noam Bulvik
Cc: 'jetty-support <at> yahoogroups.com'
Subject: Re: [jetty-support] problem serving pages when there is no
closeing URL

Hi Noam,

302 is a redirect, which is the correct behaviour when a directory is
requested without a training slash. 99% of HTTP clients should be able to
(Continue reading)

Richard L Williams | 1 Apr 2002 15:03

RE: Setting port in setty.bat (and jetty.sh?)


Edward

I don't guess you had time to actually read my post.  You didn't answer my
question.

"Edward Ivanovic" <eivanovic <at> agent-ware.com> on 03/31/2002 01:30:06 PM

Please respond to jetty-support <at> yahoogroups.com

To:   <jetty-support <at> yahoogroups.com>
cc:
bcc:
Subject:  RE: [jetty-support] Setting port in setty.bat (and jetty.sh?)

To override the default port in Jetty 4, you can either specify the
JETTY_PORT system variable or specify the port in the XML by changing:
         <Set name="Port"><SystemProperty name="jetty.port"
default="8080"/></Set>
to just
         <Set name="Port">8080</Set>
then whatever the jett.bat file sets will be ignored.

-----Original Message-----
From: willirl [mailto:richard.williams1 <at> ipaper.com]
Sent: Friday, March 29, 2002 10:01 AM
To: jetty-support <at> yahoogroups.com
Subject: [jetty-support] Setting port in setty.bat (and jetty.sh?)

The jetty port is set to 8080 in the bat procedure.  Isn't this
(Continue reading)

Richard L Williams | 1 Apr 2002 15:05

Re: urgent


Why don't you try using the jetty.bat that is included in the [.bin]
directory?

Richard

"qsminhas" <qsminhas <at> yahoo.com> on 03/31/2002 02:32:31 PM

Please respond to jetty-support <at> yahoogroups.com

To:   jetty-support <at> yahoogroups.com
cc:
bcc:
Subject:  [jetty-support] urgent

i have downloaded Jetty-3.1.7.tgz and installed it in my G drive. the
path is:
G:\Xml\jetty\Jetty-3.1.7

My java1.3.0 is installed in E drive ...the path is:
E:\Java

My batch file looks like this:

SET PATH=C:\WINDOWS;C:\WINDOWS\COMMAND;F:\\BIN;D:\ORAWIN95
\BIN;E:\JAVA\BIN
set JETTY_HOME=G:\Xml\jetty\Jetty-3.1.7
set JAVA_HOME=E:\java\
%JETTY_HOME%\bin\jetty.bat

(Continue reading)

Richard L Williams | 1 Apr 2002 16:36

Does Jetty use Tomcat

I get the idea that Jetty uses some Tomcat classes (Jasper) to handle web
apps.

Is this true?

If so, then does the docs for Tomcat config also apply to Jetty config?

Richard

Richard L Williams | 1 Apr 2002 17:59

Add a zip option to CVS

Would it be possible to add a Jetty zip kit at sourceforge?  I'm having to
download to Windows - untar then rezip to a zip for OpenVMS.  The vms
unzipper won't untar.

Richard

Halas, Miroslav | 1 Apr 2002 18:42
Picon
Favicon

RE: Controlling where war file gets extracted....

Greg,

Yes, I did check it and there are actually some files created, maybe I
missed them the first time, but the web application is still not working and
this is what is happening

If I run the the webapps with configuration like this

  <Call name="addWebApplication">
    <Arg>/</Arg>
    <Arg><SystemProperty name="jetty.home" default="."/>/webapps/aqp/≤/Arg>
    <Arg><SystemProperty name="user.home" default="."/>/webdefault.xml</Arg>
    <Arg type="boolean">false</Arg> <!-- dont expand war -->
  </Call>

  <Call name="addWebApplication">
    <Arg>/jadmin/*</Arg>
    <Arg><SystemProperty name="jetty.home"
default="."/>/webapps/jadmin.war</Arg>
    <Arg><SystemProperty name="user.home" default="."/>/webdefault.xml</Arg>
    <Arg type="boolean">false</Arg> <!-- dont expand war -->
  </Call>

I get deprecation messages but Jetty behaves exactly as I expect, no
unpacking is done, application runs just fine (both ccentral and jadmin).

The output is

Using Property file = D:\ccentral\config\server1\jetty.xml
10:07:34.133 EVENT  Checking Resource aliases
(Continue reading)

Brett Sealey | 1 Apr 2002 23:11

Re: Re: problem serving pages when there is no closing URLNoam,

Noam,
 sorry for the delay - only just had time to look into it... Also sorry
it took two goes for me to understand!

This was fixed 18th March by Greg on the Jetty 3.1 branch - it was fixed
earlier than that on HEAD but the backpatch must have been forgotten...

FYI here is the CVS info:

/usr/local/java/jetty/Jetty3/src/org/mortbay/http
bretts <at> london[2763]: cvsjetty diff -r1.6.2.1 -r1.6.2.2 HttpResponse.java
Index: HttpResponse.java
===================================================================
RCS file: /cvsroot/jetty/Jetty/src/org/mortbay/http/HttpResponse.java,v
retrieving revision 1.6.2.1
retrieving revision 1.6.2.2
diff -r1.6.2.1 -r1.6.2.2
3c3
< // $Id: HttpResponse.java,v 1.6.2.1 2002/01/04 00:09:26 gregwilkins Exp $
---
> // $Id: HttpResponse.java,v 1.6.2.2 2002/03/18 22:11:27 gregwilkins Exp $
33c33
<  *  <at> version $Id: HttpResponse.java,v 1.6.2.1 2002/01/04 00:09:26 gregwilkins Exp $
---
>  *  <at> version $Id: HttpResponse.java,v 1.6.2.2 2002/03/18 22:11:27 gregwilkins Exp $
330c330
<             if (error_page==null)
---
>             if (error_page==null && _handlerContext!=null)

(Continue reading)

Brett Sealey | 1 Apr 2002 23:18

Re: Does Jetty use Tomcat

Mostly no, I've not checked what is there so this is all "theoretical".

Docs for:
- Jasper might help in terms of understanding the properties that it uses
  and how it does its work.
- General Servlet 2.3 info (Servlets, webapps, webxml filters
  etc...) should be applicable.
- Catalina stuff is not applicable to Jetty.
etc...

Brett

On Mon, 1 Apr 2002, Richard L Williams wrote:

> I get the idea that Jetty uses some Tomcat classes (Jasper) to handle web
> apps.
> 
> Is this true?
> 
> If so, then does the docs for Tomcat config also apply to Jetty config?
> 
> Richard


Gmane