Florian Weimer | 1 Jul 2010 09:05
Picon

Re: [jetty-user] FileScanner thread results in libc crash?

* kedar mhaswade:

> Here is the relevant portion of the crash log (the entire crash log is
> attached). Maybe I should look it up on bugs.sun.com.

The Sun VM does not deal properly with out-of-memory situations on
Linux.  In the memory overcommitment case, it requests memory using
the MAP_NORESERVE flag, but it is not prepared to handle the SIGSEGV
that might arrive.  Without memory overcommitment, you're likely to
crash when an unguarded malloc() call returns 0.

You should check how many VMs run on the box and adjust their heap
sizes accordingly.

--

-- 
Florian Weimer                <fweimer <at> bfk.de>
BFK edv-consulting GmbH       http://www.bfk.de/
Kriegsstraße 100              tel: +49-721-96201-1
D-76133 Karlsruhe             fax: +49-721-96201-99

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email

Florian Weidemann | 1 Jul 2010 15:43
Picon
Favicon

[jetty-user] Question regarding resourceBase (Jetty Stand alone)

Hi,

I'm using Jetty as a Stand alone Server. In a webapp I'm developing I 
would like to have some resources available at that webapps root URL, 
for example I want to be able to access an Image by going to 
<serverUrl>/wepApp/image.jpg, while the image is located in some other 
directory inside that webapplication.
In embedded Jetty I could do this by using the 
webapp.setResourceBase(path) to set the resourcebase to the Path of the 
Images parent directory.
I tried setting the resourceBase for the webapp on the stand alone 
server by using the jetty-web.xml, as described in the second codebox 
here: http://docs.codehaus.org/display/JETTY/ContextDeployer, however so 
far without success.

Can anyone help me with this?

Regards,
Florian

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email

kedar mhaswade | 1 Jul 2010 19:30
Picon

Re: [jetty-user] FileScanner thread results in libc crash?


On Thu, Jul 1, 2010 at 12:05 AM, Florian Weimer <fweimer <at> bfk.de> wrote:
* kedar mhaswade:

> Here is the relevant portion of the crash log (the entire crash log is
> attached). Maybe I should look it up on bugs.sun.com.

The Sun VM does not deal properly with out-of-memory situations on
Linux.  In the memory overcommitment case, it requests memory using
the MAP_NORESERVE flag, but it is not prepared to handle the SIGSEGV
that might arrive.  Without memory overcommitment, you're likely to
crash when an unguarded malloc() call returns 0.

Hmm. Strange.  I thought all bets are off when you specify -Xms -Xmx, i.e. the VM won't even
start if that much memory is not available on the heap. The fact that it starts up fine, serves
pages well, it's only at the time of app upgrade that I see this consistently made me curious.

You should check how many VMs run on the box and adjust their heap
sizes accordingly.
Well, there is plenty of memory on the system although there are other VM's on it. I just use
-Xmx512m -Xms512m.

BTW, does anyone think this is related to client VM? Somehow, I don't have -server on java
command line. Would server VM perform better in this particular case? (I doubt).
 

--
Florian Weimer                <fweimer <at> bfk.de>
BFK edv-consulting GmbH       http://www.bfk.de/
Kriegsstraße 100              tel: +49-721-96201-1
D-76133 Karlsruhe             fax: +49-721-96201-99

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email



Stian Brattland | 2 Jul 2010 14:53
Picon
Favicon

[jetty-user] Jetty Plus on Jetty 6 - why is it not there?

Hei,

I've installed Jetty on an Ubuntu 9.10 box, using "apt-get install jetty 
libjetty-extra libjetty-extra-java". However, no Jetty Plus files are 
included when i
install Jetty this way. I am as certain as i could be about this, 
because i kept getting a "ClassNotFound"-exception indicating that the 
"EnvEntry" class
could not be found.

However, what i did was that i downloaded one of the 6.x releases, and 
added the "annotations" and "plus" directories to the "jetty/lib" dir on 
my ubuntu
box. Things worked fine after that.

Anyway, is that the easiest way to add plus capabilities to the jetty 
release which is available via apt-get on my ubuntu 9.10 box? Is there a 
reason for
not letting Jetty Plus being included (like licenses, copyrights or 
anything similar?)

Appreciate all feedback!

Kind regards,
Stian Brattland

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email

Florian Weidemann | 2 Jul 2010 18:28
Picon
Favicon

Re: [jetty-user] Question regarding resourceBase (Jetty Stand alone)

Found the solution myself, I had the imagefolder located inside the 
WEB-INF Folder of the App, appearently this won't work, it has to be 
located somewhere else.
> Hi,
>
> I'm using Jetty as a Stand alone Server. In a webapp I'm developing I 
> would like to have some resources available at that webapps root URL, 
> for example I want to be able to access an Image by going to 
> <serverUrl>/wepApp/image.jpg, while the image is located in some other 
> directory inside that webapplication.
> In embedded Jetty I could do this by using the 
> webapp.setResourceBase(path) to set the resourcebase to the Path of 
> the Images parent directory.
> I tried setting the resourceBase for the webapp on the stand alone 
> server by using the jetty-web.xml, as described in the second codebox 
> here: http://docs.codehaus.org/display/JETTY/ContextDeployer, however 
> so far without success.
>
> Can anyone help me with this?
>
> Regards,
> Florian
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>    http://xircles.codehaus.org/manage_email
>
>

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email

Pablo Duboue | 3 Jul 2010 08:33
Picon
Gravatar

Re: [jetty-user] Jetty Plus on Jetty 6 - why is it not there?

Hi Stian,

On Friday, July 02, 2010, Stian Brattland wrote:
> Hei,
> 
> I've installed Jetty on an Ubuntu 9.10 box, using "apt-get install jetty
> libjetty-extra libjetty-extra-java". However, no Jetty Plus files are
> included when i
> install Jetty this way. I am as certain as i could be about this,
> because i kept getting a "ClassNotFound"-exception indicating that the
> "EnvEntry" class
> could not be found.
> 
> However, what i did was that i downloaded one of the 6.x releases, and
> added the "annotations" and "plus" directories to the "jetty/lib" dir on
> my ubuntu
> box. Things worked fine after that.
> 
> Anyway, is that the easiest way to add plus capabilities to the jetty
> release which is available via apt-get on my ubuntu 9.10 box? Is there a
> reason for
> not letting Jetty Plus being included (like licenses, copyrights or
> anything similar?)

Your question is better addressed to the Debian/Ubuntu maintainers of the 
Jetty maintainers.

I'm looking around for the reasons of Jetty Plus absence, but sending it to 
the list in case anybody has the answer at hand.

You are welcome to fill a wish-list bug against jetty requesting plus to be 
included, but most likely it is missing due to lack of manpower. You're more 
than welcomed to join Debian Java Maintainers [1] and help us out.

Thanks!

Pablo

[1] http://pkg-java.alioth.debian.org/developers.html
Pablo Duboue | 3 Jul 2010 12:02
Picon
Gravatar

Fwd: [jetty-user] Jetty Plus on Jetty 6 - why is it not there?

---------- Forwarded message ----------
From: Niels Thykier <niels <at> thykier.net>
Date: Sat, Jul 3, 2010 at 4:01 AM
Subject: Re: [jetty-user] Jetty Plus on Jetty 6 - why is it not there?
To: debian-java <at> lists.debian.org, support <at> brattland.no, user <at> jetty.codehaus.org

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 2010-07-03 08:33, Pablo Duboue wrote:
> Hi Stian,
>
> On Friday, July 02, 2010, Stian Brattland wrote:
>> Hei,
>>
>> I've installed Jetty on an Ubuntu 9.10 box, using "apt-get install jetty
>> libjetty-extra libjetty-extra-java". However, no Jetty Plus files are
>> included when i
>> install Jetty this way. I am as certain as i could be about this,
>> because i kept getting a "ClassNotFound"-exception indicating that the
>> "EnvEntry" class
>> could not be found.
>>
>> However, what i did was that i downloaded one of the 6.x releases, and
>> added the "annotations" and "plus" directories to the "jetty/lib" dir on
>> my ubuntu
>> box. Things worked fine after that.
>>
>> Anyway, is that the easiest way to add plus capabilities to the jetty
>> release which is available via apt-get on my ubuntu 9.10 box? Is there a
>> reason for
>> not letting Jetty Plus being included (like licenses, copyrights or
>> anything similar?)
>
> Your question is better addressed to the Debian/Ubuntu maintainers of the
> Jetty maintainers.
>
> I'm looking around for the reasons of Jetty Plus absence, but sending it to
> the list in case anybody has the answer at hand.
>
> You are welcome to fill a wish-list bug against jetty requesting plus to be
> included, but most likely it is missing due to lack of manpower. You're more
> than welcomed to join Debian Java Maintainers [1] and help us out.
>
> Thanks!
>
> Pablo
>
> [1] http://pkg-java.alioth.debian.org/developers.html

Hi

As Pablo Duboue already mentioned in a separate mail (which was not
CC'ed to the jetty-user list), jetty-plus is enabled in Debian (version
>= 6.1.24-3). Currently both Debian and Ubuntu are currently scheduled
to ship 6.1.24-5 with their next stable release (called Squeeze and
Maverick Meerkat respectively).

I looked the changes and it looks like the reason was that we had not
packaged geronimo-jta-1.0.1b-spec at the time[1]. This means you cannot
enabled it in the version you have (because it is not built/shipped in
that version) unless you rebuilt it from source.

The actual change required in jetty (which also enables
jetty-annotations) can be acquired by checking out the jetty packaging
from svn.debian.org[2] and running the command listed in [3] in the
newly downloaded directory.
 You can file a bug in Ubuntu (against jetty) for getting this change
backported to Karmic (9.10) or/and Lucid (10.04). I cannot promise you
they will do it though. Also, they will not attempt to enable
jetty-annotations unless you explicitly request that as well - the
Stable Release Team will reject "unrelated" changes to a package.

~Niels

[1] That is to say, Debian did not have the package at that time. Ubuntu
takes most of its Java packages from Debian without changes; this makes
a lot of things easier for us in both distributions in our development
cycles.

Disclaimer: geronimo-jta-1.0.1b-spec has been changed when it was
uploaded to Debian. I do not know if these changes affects whether
jetty-plus can be built.

[2] svn co svn://svn.debian.org/svn/pkg-java/trunk/jetty

[3] svn diff -r12295:12553
The actual revision for this change is r12553.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkwu7lwACgkQVCqoiq1YlqwBjQCglXgjjmuOYi1qfQIS7if+AU0E
l9MAoM58/rsq054CtYTClS/QtwB0AgeL
=92n3
-----END PGP SIGNATURE-----

--
To UNSUBSCRIBE, email to debian-java-REQUEST <at> lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster <at> lists.debian.org
Archive: http://lists.debian.org/4C2EEE5F.7080808 <at> thykier.net

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email

Stian Brattland | 4 Jul 2010 20:01
Picon
Favicon

Re: Fwd: [jetty-user] Jetty Plus on Jetty 6 - why is it not there?

Hi,

I've filed a bug report for the issue 
(https://bugs.launchpad.net/ubuntu/+source/jetty/+bug/601656). I really 
hope it will be taken
care of, so that it becomes a part of the standard Jetty distribution on 
at least Ubuntu 10.04.

Thanks for your responses!

Den 03.07.2010 12:02, skrev Pablo Duboue:
> ---------- Forwarded message ----------
> From: Niels Thykier<niels <at> thykier.net>
> Date: Sat, Jul 3, 2010 at 4:01 AM
> Subject: Re: [jetty-user] Jetty Plus on Jetty 6 - why is it not there?
> To: debian-java <at> lists.debian.org, support <at> brattland.no, user <at> jetty.codehaus.org
>
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 2010-07-03 08:33, Pablo Duboue wrote:
>    
>> Hi Stian,
>>
>> On Friday, July 02, 2010, Stian Brattland wrote:
>>      
>>> Hei,
>>>
>>> I've installed Jetty on an Ubuntu 9.10 box, using "apt-get install jetty
>>> libjetty-extra libjetty-extra-java". However, no Jetty Plus files are
>>> included when i
>>> install Jetty this way. I am as certain as i could be about this,
>>> because i kept getting a "ClassNotFound"-exception indicating that the
>>> "EnvEntry" class
>>> could not be found.
>>>
>>> However, what i did was that i downloaded one of the 6.x releases, and
>>> added the "annotations" and "plus" directories to the "jetty/lib" dir on
>>> my ubuntu
>>> box. Things worked fine after that.
>>>
>>> Anyway, is that the easiest way to add plus capabilities to the jetty
>>> release which is available via apt-get on my ubuntu 9.10 box? Is there a
>>> reason for
>>> not letting Jetty Plus being included (like licenses, copyrights or
>>> anything similar?)
>>>        
>> Your question is better addressed to the Debian/Ubuntu maintainers of the
>> Jetty maintainers.
>>
>> I'm looking around for the reasons of Jetty Plus absence, but sending it to
>> the list in case anybody has the answer at hand.
>>
>> You are welcome to fill a wish-list bug against jetty requesting plus to be
>> included, but most likely it is missing due to lack of manpower. You're more
>> than welcomed to join Debian Java Maintainers [1] and help us out.
>>
>> Thanks!
>>
>> Pablo
>>
>> [1] http://pkg-java.alioth.debian.org/developers.html
>>      
> Hi
>
> As Pablo Duboue already mentioned in a separate mail (which was not
> CC'ed to the jetty-user list), jetty-plus is enabled in Debian (version
>    
>> = 6.1.24-3). Currently both Debian and Ubuntu are currently scheduled
>>      
> to ship 6.1.24-5 with their next stable release (called Squeeze and
> Maverick Meerkat respectively).
>
> I looked the changes and it looks like the reason was that we had not
> packaged geronimo-jta-1.0.1b-spec at the time[1]. This means you cannot
> enabled it in the version you have (because it is not built/shipped in
> that version) unless you rebuilt it from source.
>
> The actual change required in jetty (which also enables
> jetty-annotations) can be acquired by checking out the jetty packaging
> from svn.debian.org[2] and running the command listed in [3] in the
> newly downloaded directory.
>   You can file a bug in Ubuntu (against jetty) for getting this change
> backported to Karmic (9.10) or/and Lucid (10.04). I cannot promise you
> they will do it though. Also, they will not attempt to enable
> jetty-annotations unless you explicitly request that as well - the
> Stable Release Team will reject "unrelated" changes to a package.
>
> ~Niels
>
> [1] That is to say, Debian did not have the package at that time. Ubuntu
> takes most of its Java packages from Debian without changes; this makes
> a lot of things easier for us in both distributions in our development
> cycles.
>
> Disclaimer: geronimo-jta-1.0.1b-spec has been changed when it was
> uploaded to Debian. I do not know if these changes affects whether
> jetty-plus can be built.
>
> [2] svn co svn://svn.debian.org/svn/pkg-java/trunk/jetty
>
> [3] svn diff -r12295:12553
> The actual revision for this change is r12553.
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.10 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iEYEARECAAYFAkwu7lwACgkQVCqoiq1YlqwBjQCglXgjjmuOYi1qfQIS7if+AU0E
> l9MAoM58/rsq054CtYTClS/QtwB0AgeL
> =92n3
> -----END PGP SIGNATURE-----
>
>
> --
> To UNSUBSCRIBE, email to debian-java-REQUEST <at> lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster <at> lists.debian.org
> Archive: http://lists.debian.org/4C2EEE5F.7080808 <at> thykier.net
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>      http://xircles.codehaus.org/manage_email
>
>
>    

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email

Greg Wilkins | 6 Jul 2010 05:44
Gravatar

[jetty-user] Releases 7.1.5.v20100705

Jetty and Jetty Hightide maintenance releases 7.1.5.v20100705 are now
available via

   jetty-core:   http://eclipse.org/jetty/
   jetty-hightide:  http://jetty.codehaus.org/

This release contains a number of minor fixes and improvements:

jetty-7.1.5.v20100705
 + Update ecj to 3.6 Helios release drop
 + 288194 Add blacklist/whitelist to ProxyServlet and ProxyHandler
 + 296570 EOFException for HttpExchange when HttpClient.stop called.
 + 311550 The WebAppProvider should allow setTempDirectory
 + 316449 Websocket disconnect fix
 + 316584 Exception on startup if temp path has spaces and extractWAR=false
 + 316597 Removed null check and fixed name in Resource#hrefEncodeURI
 + 316970 jetty.sh fails to find JETTY_HOME in standard directories
 + 316973 jetty.sh claims java installation is invalid
 + 316976 removed quotes of JAVA_OPTIONS in jetty.sh
 + 317019 Date HTTP header not sent for HTTP/1.0 requests
 + 317759 Allow roles and constraints to be added after init
 + 317906 OPTIONS correctly handles TRACE
 + 318308 Correct quoting of unicode control characters
 + 318470 unboxing NPE protection in HttpConnection
 + 318551 Optional uncheck Printwriter
 + JETTY-1237 Save local/remote address to be available after close

jetty <at> codehaus 7.1.5.v20100705
 + JETTY-1236 connectors added with jettyConfig ignored by maven plugin
 + JETTY-1241 enhance jetty-ant port support
 + 318894 Spaces in jboss URLs

Thanks to all that contributed time, testing and code.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email

Sumi Das | 7 Jul 2010 17:50

[jetty-user] FW: Help with Jetty ClassNotFoundException!!!



 

.ExternalClass .ecxhmmessage P {padding:0px;} .ExternalClass body.ecxhmmessage {font-size:10pt;font-family:Verdana;} Can someone please help me. I have been trying to resolve this error for days to no avail.

I have Jetty 6.1.14 running in Eclipse Galileo. I keep getting a java.lang.ClassNotFoundException: org.mortbay.cometd.continuation.ContinuationCometdServlet, when I try to compile my servlet.


I have the all the appropriate libraries and imports added to my project and I have a web.xml file that contains the following.

 <servlet>
        <servlet-name>cometd</servlet-name>
        <servlet-class>org.mortbay.cometd.continuation.ContinuationCometdServlet</servlet-class>
        <load-on-startup>1</load-on-startup>
</servlet>

    <servlet-mapping>
      <servlet-name>cometd</servlet-name>
      <url-pattern>/cometd/*</url-pattern>
    </servlet-mapping>

    <servlet>
        <servlet-name>CometdDemoServlet</servlet-name>
        <servlet-class>mypack.CometdDemoServlet</servlet-class>
         <load-on-startup>2</load-on-startup>
    </servlet>


I have tried different versions of Jetty but I keep getting the same error.

Thank you
Sumi


The New Busy think 9 to 5 is a cute idea. Combine multiple calendars with Hotmail. Get busy.
The New Busy think 9 to 5 is a cute idea. Combine multiple calendars with Hotmail. Get busy.

Gmane