Greg Wilkins | 1 Feb 2004 09:02
Gravatar

Release 4.2.17


Jetty release 4.2.17 is now available via http://jetty.mortbay.org

This release fixes a busy loop problem introduced in 4.2.15rc0.  The
fix for better handling of InterruptedIOExceptions made it possible for
a thread to run in a busy loop.  The recent 4.2.16 release also contains
this problem.

Jetty-4.2.17 - 1 Feb 2004
  + Fixed busy loop in threadpool run
  + Reorganized ServletHolder init

Jetty-4.2.16 - 30 Jan 2004
  + Fixed setDate multi-cpu race
  + Improved low thread handling
  + FileResource better handles non sun JVM
  + Fixed HttpTunnel for JDK 1.2
  + Monitor closes socket before exit
  + RequestDispatcher uses request encoding for query params
  + Update jasper to 4.2.29

Jetty-4.2.15 - 24 Dec 2003
  + SecurityConstraints not reset by stop() on custom context
  + Fixed UnixCrypt handling in HTAccessHandler
  + Added patch for JBoss realm single sign on
  + Environment variables for CGI
  + Removed support for old JBoss clustering

Jetty-4.2.15rc0 - 24 Nov 2003
  + PathMap uses own Map.Entry impl for IBM JVMs
(Continue reading)

Greg Wilkins | 1 Feb 2004 10:01
Gravatar

Re: Running Jetty in Ant


Jetty should happily run with ant as the parent classloader.

I expect the problem is something to do with class versions rather
than not found.

Try stripping out of Jetty's lib and ext directory everything that
eclipse may provide (commons stuff for jasper, xerces etc. etc.)

Can you also tell us what class is giving you the problem and how
it is being loaded?

perhaps print out some of the classloaders just before the error?

Chris wrote:
> I'm getting classloader problems when invoking Jetty from within an Ant
> task.
> 
> I've written a very small Ant task to run the Jetty server (in-process) and
> then fetch pages using httpunit. The purpose is to do a little unit-testing
> of my webapps and also to precompile all JSP pages during the build process.
> 
> When I run Jetty out-of-process, that is, outside my Ant task, everything
> works great. When I run it in-process, I get class-not-found errors. I've
> tried specifying the classpath through the Ant <classpath> element and
> through the Eclipse build-path. I also went outside the Eclipse environment
> and specified all the necessary jars on the java command line (-cp) when
> invoking Ant. No luck.
> 
> My guess is that something about the Jetty and the Ant classloaders
(Continue reading)

Sagar Saladi | 2 Feb 2004 20:05
Picon
Favicon

Adding a Listener

Hi all,
  Problem: I want to add a new listener in runtime. I
could do this using addListener() method. But when I
tried to connect to that port using telnet, I found
that even though the listener has been added, it is
not listening for connections.
   The only solution, I found was that I need to
restart the Jetty server. This results in stopping all
the current listeners and restarting them again. This
is like cutting the branch which I am sitting on.

Is there any way to make the new listener accept
connections after being added and without restarting
the server.

Thanks,
Vid.

__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
http://webhosting.yahoo.com/ps/sb/

-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
Jetty-support mailing list
(Continue reading)

Yehonatan Mozes | 2 Feb 2004 20:06
Picon

Servlets instances

Hi , 

Is there a way to know how many instances of a single servlet jetty allocates ?

say i'm having about 5 hits on "test servlet" every millisecond , how can i 

know how many instaces of "test servlet" are running?

best,

Yoni.

-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
Jetty-support mailing list
Jetty-support <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jetty-support

Metal Fatigue | 2 Feb 2004 20:47
Picon
Favicon

Adding a Listener

>>>>> "S" == Sagar Saladi <kokoko_12000 <at> yahoo.com> writes:

S> Hi all, Problem: I want to add a new listener in runtime. I could
S> do this using addListener() method. But when I tried to connect to
S> that port using telnet, I found that even though the listener has
S> been added, it is not listening for connections.

Listener implements LifeCycle.  Anything that implements LifeCycle is
going to sit there passively until you call start() on it.

You need to call start() on the Listener after you've added it to the
server with addListener().

--

-- 
Seth Blumberg, a.k.a. Metal Fatigue, a.k.a. Nodens <sethb <at> pobox.com> O-
-  --  ---  -----  --------  -------------  --------  -----  ---  --  -
"Fancy what a game of chess would be if all the chessmen had passions
 and intellects, more or less small and cunning; if you were not only
 uncertain about your adversary's men, but a little uncertain also
 about your own."                         -- Felix Holt, _George Eliot_

-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
Jetty-support mailing list
Jetty-support <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jetty-support
(Continue reading)

Greg Wilkins | 3 Feb 2004 07:13
Gravatar

Re: 404 error

Sorry for the slow response...

The FORM needs to have a target of

   /jpoxtest/test/JDOServlet

not

  /test/JDOServlet

you need to include the context path.

Alternately you can do it with relative URIs

cheers

Michael Burke wrote:
> I'm using jetty in jboss-3.2.1 and am having a problem finding my 
> servlet. The servlet is in a war file in an ear file. The 
> application.xml for the ear file is:
> 
>> <module>
>> <web>
>> <web-uri>jpoxtest.war</web-uri>
>> <context-root>/jpoxtest</context-root>
>> </web>
>> </module>
> 
> 
> this is just the part pertaining to the war file. My web.xml is:
(Continue reading)

Greg Wilkins | 3 Feb 2004 07:15
Gravatar

Re: Servlets instances


Unless you are using SingleThreadedModel, there will only be a single
instance of a servlet per context.

If you are using SingleThreadedModel - then DON'T!!!

cheers

Yehonatan Mozes wrote:
> Hi , 
> 
> Is there a way to know how many instances of a single servlet jetty allocates ?
> 
> say i'm having about 5 hits on "test servlet" every millisecond , how can i 
> 
> know how many instaces of "test servlet" are running?
> 
> 
> 
> 
> 
> best,
> 
> Yoni.
> 
> 
> 
> -------------------------------------------------------
> The SF.Net email is sponsored by EclipseCon 2004
> Premiere Conference on Open Tools Development and Integration
(Continue reading)

biju mohan | 3 Feb 2004 09:42
Favicon

Virtual Directory creation for Jboss-Jetty

Hello,
 
I need to create a virtual directory with jboss-3.2.1-jetty. How do I do that?!!
 
The context need to be something like the following.
 
<Context path="/pdf" docBase="C:/tmp/pdf" debug="1"
                        reloadable="true" crossContext="true" />
 
Thank you,
 
-Biju Mohan
Meghana Shah | 3 Feb 2004 09:20
Picon
Favicon

Where can I deploy my application's war file?


Actually we are facing a problem in Jetty server, like when we restart our
server all jsp files recompiles into classes and we want to stop the
recompilation problem. To solve that, I am trying to use precompiled jsp
files and then use that jsp files' classes as servlet and then we have to
map that servlet in web.xml.

To do this I am doing the following steps:

I am using Jetty4.2.2 and j2sdk1.4

Now my example application is EmailFinder.It contains two directories
"jsp" and "WEB_INF".

Next jsp directory contains all .jsp
files-email.jsp,lookup.jsp,lookupresponse.jsp,delete.jsp,deleteresponse.jsp,error.jsp.
And WEB-INF dir contains "classes" directory and web.xml file. Again
classes directory contains "email" dir and all jsp's servlet classes, for
ex. email_jsp.class,lookup_jsp.class,etc; and email directory contains
Map.class bean. The classes like email_jsp.class in the WEB-INF/classes
folder are all precompiled jsp files' servlet classes.

Next I update my web.xml file to add servlet mapping for all the servlets,
for ex. for email.jsp file:
<servlet>
     <servlet-name>email</servlet-name>
     <servlet-class>email_jsp</servlet-class>
  </servlet>

  <servlet-mapping>
     <servlet-name>email</servlet-name>
     <url-pattern>email.jsp</url-pattern>
  </servlet-mapping>

  <welcome-file-list>
    <welcome-file>email.jsp</welcome-file>
  </welcome-file-list>

Then I am creating EmailFinder.war file. For that, I am in the directory
Jetty-4.2.2/webapps/EmailFinder. And then I give command like "jar cvf
EmailFinder.war jsp WEB-INF". I put this EmailFinder.war file in the
Jetty-4.2.2/webapps directory. And then I am changing my xml configuration
file, antispam.xml, to add context for the EmailFinder application. For
ex,

<Call name="addWebApplication">
    <Arg>/EmailFinder</Arg>
    <Arg><SystemProperty name="jetty.home"
default="."/>/webapps/EmailFinder.war</Arg>
    <Set name="extractWAR">true</Set> 
    <Set name="defaultsDescriptor"><SystemProperty name="jetty.home"
default="."/>/webapps/EmailFinder/WEB-INF/web.xml</Set>
  </Call>

Next I delete the EmailFinder folder from /webapps folder.

Then I start Jetty server using the following command:

Jetty-4.2.2/bin> jetty.sh start ../etc/antispam.xml

Now the problem is that, my EmailFinder folder doesn't expand in the
/webapps directory, but it expands in default /tmp directory as
/tmp/Jetty_8080_EmailFinder/webapp/"jsp and WEB-INF".

And I am not able to run my application. 

So what to do? please reply me the solution as soon as possible.

Thanks in advance.

Meghana Shah

__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
http://webhosting.yahoo.com/ps/sb/

-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
Jetty-support mailing list
Jetty-support <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jetty-support

Yehonatan Mozes | 3 Feb 2004 17:59
Picon

Servlets instances

Greg, 

I'm writing the message again , cause i didn't see my post...

is SingleThreadModel the only way you're allocating more then one servlet?

say you have heavy load on a single servlet... what do you do ?

are you opening a stack on the service method ?

is there any other situation (beside SingleThreadModel ) which you're 

allocating 2 servlet?

best,

Yoni.

-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
Jetty-support mailing list
Jetty-support <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jetty-support


Gmane