Alexandre Jacques | 1 Feb 04:01 2007
Picon

Virtual Directory

Hi,

I am new to Jetty 6, migrating an application from Tomcat.

I now find myself trying to find a way to map an external directory to
serve static content from a Java WebApp. Something that sounds like a
"virtual directory".

Is there any way to do that?

My configuration looks like:

        <Item>
            <New id="voffice" class="org.mortbay.jetty.webapp.WebAppContext">
                <Set name="contextPath">/</Set>
                <Set name="war">./webapps/voffice.war</Set>
                <Set name="VirtualHosts">
                    <Array type="java.lang.String">
                        <Item>(...).com</Item>
                    </Array>
                </Set>
            </New>
        </Item>

What I need is, when somebody access something like /voffice/images/*,
that Jetty should grab the images from a static location (in my FS)
like /usr/local/apps/voffice/images/*.

Is it possible?

(Continue reading)

Nik Gonzalez | 1 Feb 07:24 2007

Re: Virtual Directory

Hi Alexandre,

You may define a new Context that points to your images directory like this:

    <New id="images" class="org.mortbay.jetty.servlet.Context">
      <Arg><Ref id="Contexts"/></Arg>
      <Arg>/images</Arg>
      <Set name="ResourceBase"><SystemProperty name="jetty.home" 
default="."/>/images</Set>
      <Call name="addServlet">
        <Arg>org.mortbay.jetty.servlet.DefaultServlet</Arg>
        <Arg>/*</Arg>
      </Call>
    </New>

Then you can get your images with this 
http://localhost:8080/images/some.gif.

HTH,
Nik

Alexandre Jacques wrote:
> Hi,
>
> I am new to Jetty 6, migrating an application from Tomcat.
>
> I now find myself trying to find a way to map an external directory to
> serve static content from a Java WebApp. Something that sounds like a
> "virtual directory".
>
(Continue reading)

Wesslan | 1 Feb 09:35 2007
Picon

Re: Jetty 6.x & Ubuntu Linux

Yes, I'm running that combo w/o problems. Though, we currently don't have
that much traffic on our apps... :)

Cheers,
Peter

-----Original Message-----
From: jetty-support-bounces <at> lists.sourceforge.net
[mailto:jetty-support-bounces <at> lists.sourceforge.net] On Behalf Of Carlos A.
Carnero Delgado
Sent: den 31 januari 2007 20:09
To: jetty-support <at> lists.sourceforge.net
Subject: [Jetty-support] Jetty 6.x & Ubuntu Linux

Hi there,

we have almost decided to use Ubuntu Linux 6.06 LTS Server for hosting a
couple of internal web applications, running, of course, Jetty 6.x.
Is there anyone else running that combo?

BTW, I have been a lurker on this list for a while and let me tell you that
Jetty is really fine piece of software. Thanks a lot for it.

Best regards,
Carlos.
--
<nick> grah windows just crashed again, unstable crap.
<yukito> Windows isn't unstable, it's just spontaneous.

-------------------------------------------------------------------------
(Continue reading)

scott.lepage | 1 Feb 17:01 2007

Re: Can't parse faces-config.xml


Thank you Jan, moving up to 6.1 SNAPSHOT did the trick.

Jan Bartel wrote:
> 
> Scott,
> 
> Have a read of:
> 
> http://jira.codehaus.org/browse/JETTY-222
> 
> As you can see, the reported issue has been fixed, but I'm waiting on
> some feedback from Ryan Lubke.
> 
> If you want to test out the fix and report your findings, that would
> be good too.
> 
> regards
> Jan
> 
> scott.lepage wrote:
>> Has this been addressed?
>> 
>> I am using Jetty 6.1.1 and JSF RI 1.2_03-b09-FCS. I also tried JSF
>> 1.2_02-b03-FCS with the same result. Like Pirko, I followed the
>> instructions
>> at http://docs.codehaus.org/display/JETTY/JSF+Reference+Implementation. 
>> 
>> FYI, none of the war's from the JSF examples run under this
>> configuration.
(Continue reading)

Maryam Elston | 1 Feb 20:36 2007
Picon

Re: your PHAyyqRMACY

Hi,

Get medication from our site because it costs less.

http://www.zodrx*.com - Remove "*" to make the link working!

--

Harry could tell he was trying to sound disdainful, as though what Moody
was saying was barely worth his notice, but his hands gave him away;
they had balled themselves into fists.

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Jetty-support mailing list
Jetty-support <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jetty-support

Carlos A. Carnero Delgado | 1 Feb 21:08 2007
Picon

Re: Jetty 6.x & Ubuntu Linux

Hello Peter,

On 2/1/07, Wesslan <forum-subscriber <at> wesslan.se> wrote:
> Yes, I'm running that combo w/o problems. Though, we currently don't have
> that much traffic on our apps... :)

Are you starting it up automatically at boot time? Which script do you
use, the one that comes packaged or something customized?

i'm using the packaged bin/jetty.sh and followed its instructions.
However, I'm getting errors while setting the JETTY_HOME environment
variable. It seems that no matter where I put it, Jetty will not pick
it up. In fact, this is how the JRE is being invoked (all in one
line):

    /usr/lib/jvm/java-1.5.0-sun/bin/java
        -Djetty.home=/opt/jetty-6.1.1
        -jar /opt/jetty-6.1.1/start.jar  /opt/jetty-6.1.1/etc/jetty.xml

Any idea?

Thanks a lot,
Carlos.
--

-- 
<nick> grah windows just crashed again, unstable crap.
<yukito> Windows isn't unstable, it's just spontaneous.

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
(Continue reading)

malena | 2 Feb 01:37 2007
Picon

Problems setting a system property at the java command line


Hi,

I am starting Jetty as a webapplication container with the following bash
script, where I am instruting that the System property
org.joseki.rdfserver.config be set to ./temp/joseki-config.ttl, however,
when I make an http request to my Joseki web application, my application
outputs to the console  that it can't find the file.  I know that my
webapplication tries to read the system property when it gets a request, so
I don't know why the application seems to think that the system property has
not been set. 

Is there another way to set the system.property? Perhaps in the
context/joseki.xml file? 

#!/bin/bash
export CP=".;./lib/rt.jar"

$JAVA_HOME/bin/java -cp $CP -DSTART=./start.config -Xmx1024m -jar start.jar 
config/jetty.xml

Also, on another issue:
I tried to set the jetty.home property at the java commandline as so 

 java -Djetty.home="./JETTYHOME"

But this didn't work.  I read that I had to set system properties for jetty
in the start.config, which is a nuisance, because I had to extract it from
start.jar. 
Does anyone know why setting the jetty.home property in the command line
(Continue reading)

Armi Lyn B. Manlosa | 2 Feb 02:16 2007

Re: Problems setting a system property at the java command line

hello malena,

i tried setting system properties on the command line with the -D option 
and it worked fine for me. in any case, an alternative way to setting 
system properties would be to add the following in etc/jetty.xml:

  <Call class="java.lang.System" name="setProperty">
    <Arg>org.joseki.rdfserver.config</Arg>
    <Arg>./temp/joseki-config.ttl</Arg>
  </Call>

best regards,
armi

malena wrote:
> Hi,
>
> I am starting Jetty as a webapplication container with the following bash
> script, where I am instruting that the System property
> org.joseki.rdfserver.config be set to ./temp/joseki-config.ttl, however,
> when I make an http request to my Joseki web application, my application
> outputs to the console  that it can't find the file.  I know that my
> webapplication tries to read the system property when it gets a request, so
> I don't know why the application seems to think that the system property has
> not been set. 
>
> Is there another way to set the system.property? Perhaps in the
> context/joseki.xml file? 
>
> #!/bin/bash
(Continue reading)

Greg Wilkins | 2 Feb 09:12 2007
Picon

Prerelease 6.1.2pre0


The Pre-release of Jetty 6.1.2pre0 is now available via http://jetty.mortbay.org

This release is intended to give access to some of the work in progress on a
6.1.2 later this month.

It contains minor fixes and improvements.

jetty-6.1.2pre0 1 Feb 2007
 + Fixed 1.4 method in jetty plus
 + Fixed generation of errors during jsp compilation for jsp-2.1
 + Added cometd jsonp transport from aabeling
 + Added terracotta cluster support for cometd
 + JETTY-213 request.isUserInRole(String) fixed
 + JETTY-215 exclude more transitive dependencies from tomcat jars for jsp-2.0
 + JETTY-216 handle AJP packet fragmentation
 + JETTY-218 handle AJP ssl key size and integer
 + JETTY-219 fixed trailing encoded chars in cookies
 + JETTY-220 fixed AJP content
 + JETTY-222 fix problem parsing faces-config.xml
 + add support for Annotations in servlet, filter and listener sources
 + improved writer buffering
 + moved JSON parser to util to support reuse
 + handle virtual hosts in ContextHandlerCollection
 + enable SslSelectChannelConnector to modify the SslEngine's client authenticat
ion settings

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
(Continue reading)

olivier.belet | 2 Feb 10:40 2007
Picon

Noublions pas la Saint Valentin

Bonjour, nous vous proposons ci dessous 4 sites pour faire plaisir a votre amour a l'occasion de la Saint Valentin.
 
 
 
 
 
 
 
 
 
 
N'ésitez pas à venir découvrir notre univer sur notre site :
 
 
bien a vous et encore bonne fète......
 
 

Si cette réception vous cause un quelconque désagrément, nous vous prions d'avance de nous en excuser car telle n'était pas notre intension...

Conformément à la loi N° 78-17 du 16 Janvier 1978, vous pouvez demander à être retiré de cette liste en répondant à ce mail et en nous

indiquant que vous ne voulez plus recevoir de message de notre part. Bien à vous.

Message créé et envoyé avec la version d'évaluation d'un logiciel d'e-mailing

Attention :
Pour toute demande ou réclamation, veuillez contacter l'expéditeur de ce message.

 

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Jetty-support mailing list
Jetty-support <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jetty-support

Gmane