|
From: F. Da C. <da...@xs...> - 2004-03-11 23:04:17
|
F. Da Costa wrote:
> Chris Haynes wrote:
>
>> I don't myself understand any Eclipse implications,
>> but phew! using "file://../eclipse3/workspace/tests/context/ " is not
>> exactly
>> making it easy for yourself.
>
> I agree, but at least i got something going (although not much it seemed)
>
>>
>> No one can give you the 'right' answer without knowing your disk layout.
>>
> I undersand so here it goes:
> Env & dirs:
> - w2k
> - jetty home dir: c:\jetty
> - base of project at c:\eclipse3\workspace\testprj
> - the context is called context and at: ${project}\context
> - jetty.xml resides in the context dir
> - WEB-INF lives at: ${context}\WEB-INF
> - web.xml obviously can be found in WEB-INF
>
> To be complete i'll also snip the jetty.xml and web.xml:
> ....
> <Call name="addWebApplication">
<Arg>localhost</Arg>
> <Arg>c:/eclipse3/workspace/tests/context</Arg>
<Arg>/</Arg>
> <Arg>/</Arg>
<Arg>/</Arg>
>
That was all i had to do (enough to go silly isn't it)?
Thx 4 the help anyway.
Got another litle question but will open another thread though.
Fermin
> <Set name="extractWAR">false</Set>
>
> <Set
> name="defaultsDescriptor">c:/eclipse3/workspace/tests/context/WEB-INF/web.xml</Set>
>
>
> <Set name="virtualHosts">
> <Array type="java.lang.String">
> <Item>127.0.0.1</Item>
> <Item>localhost</Item>
> <Item>www.ffneuzen.nl</Item>
> </Array>
> </Set>
> </Call>
> ....
>
> ....
> <web-app>
> <display-name>tests</display-name>
>
> <servlet>
> <servlet-name>testsServlet</servlet-name>
> <servlet-class>org.apache.tapestry.ApplicationServlet</servlet-class>
> <init-param>
>
> <param-name>org.apache.tapestry.application-specification</param-name>
> <param-value>/appl/tests.application</param-value>
> </init-param>
> <load-on-startup>0</load-on-startup>
> </servlet>
>
> <servlet-mapping>
> <servlet-name>testsServlet</servlet-name>
> <url-pattern>/app</url-pattern>
> </servlet-mapping>
>
> </web-app>
> ....
>
> This resiults in the following startup output:
> -xml
> C:\eclipse3\workspace\tests\context\jetty.xml
> launching Jetty from xml: [C:\eclipse3\workspace\tests\context\jetty.xml]
> 15:00:26.140 EVENT Statistics on = false for
> org.mortbay.jetty.Server@1d7ad1c
> 15:00:26.187 EVENT Starting Jetty/4.2.11
> 15:00:26.187 EVENT Started org.mortbay.http.NCSARequestLog@787d6a
> 15:00:26.203 EVENT Checking Resource aliases
> 15:00:26.296 EVENT Started WebApplicationContext[[127.0.0.1, localhost,
> www.ffneuzen.nl]:/c:/eclipse3/workspace/tests/context,tests]
> 15:00:28.531 EVENT Started SocketListener on 0.0.0.0:8080
> 15:00:28.531 EVENT jetty.ssl.keystore=c:\jetty/etc/demokeystore
> 15:00:28.531 EVENT jetty.ssl.password=********
> 15:00:28.531 EVENT jetty.ssl.keypassword=******
> 15:00:28.531 EVENT jetty.ssl.keystore.type=jks
> 15:00:28.546 EVENT jetty.ssl.keystore.provider.name=[DEFAULT]
> 15:00:28.640 EVENT
> SSLServerSocketFactory=com.sun.net.ssl.internal.ssl.SSLServerSocketFactoryImpl@1eb5666
>
> 15:00:28.656 EVENT JsseListener.needClientAuth=false
> 15:00:28.656 EVENT Started SocketListener on 0.0.0.0:8443
> 15:00:28.703 EVENT Started AJP13Listener on 0.0.0.0:8009
> 15:00:28.703 EVENT NOTICE: AJP13 is not a secure protocol. Please
> protect the port 0.0.0.0:8009
> 15:00:28.703 EVENT Started org.mortbay.jetty.Server@1d7ad1c
>
>
> Trying to access the wegpage gives me:
> *http:/localhost results in:*
> Error 404 - Not Found.
> No context on this server matched or handled this request.
> Contexts known to this server are:
>
> * WebApplicationContext[[127.0.0.1, localhost,
> www.ffneuzen.nl]:/c:/eclipse3/workspace/tests/context,tests]
>
> The links above may not work if a virtual host is configured
>
> *http:/localhost/app results in:*
> HTTP ERROR: 404 /app Not Found
> RequestURI=/app
>
>
> If there is any info required please let me know but i'm running out of
> ideas here. Just can't seem to take that last ... hurdle.
> I know the webapp runs on the web.xml as defined so that cannot be the
> issue.
>
> TIA
>
> Fermin DCG
>
>> Four things to try:
>>
>> 1) Use an absolute path like
>> C:/somepath/eclipse3/workspace/tests/context/ , at
>> least until you get it working,
>>
> Did that, thx
>
>> 2) Upper/lower case in Windows file paths _are_ significant when using
>> Java -
>> make sure they are correct - especially the drive letter
>>
> Indeed
>
>> 3) Your Jetty Log is your friend. Find it and understand it. It
>> records excactly
>> how Jetty is interpreting the settings. Add -DDEBUG to the command
>> line for
>> additional info.
>>
> Does not hold enough info (at least my log doesn't)
>
>> 4) I, myself, _never_ use ../ constructs in file paths, as it makes
>> the whole
>> configuration unnecessarily dependent on the directory you happen to
>> be in when
>> starting Jetty
>
> Neither do i anymore
>
>>
>> HTH
>>
>> Chris
>>
>> ----- Original Message -----
>> From: "F. Da Costa" <da...@xs...>
>> To: <jet...@li...>
>> Sent: Wednesday, March 10, 2004 11:22 PM
>> Subject: [Jetty-support] Re: [No context on this server matched or
>> handled this
>> request]
>>
>>
>>
>>> F. Da Costa wrote:
>>>
>>>> Hi,
>>>>
>>>> In my first steps on the Jetty path (and a really slow gmane posting)
>>>> i've come to the point where i can almost start jetty from an arbitrary
>>>> dir.
>>>> The following snip gives me the result as presented below:
>>>>
>>>> <Set name="rootWebApp">tests</Set>
>>>> <Call name="addWebApplications">
>>>> <Arg>/</Arg>
>>>> <Arg><SystemProperty name="jetty.home"
>>>> default="."/>file://../eclipse3/workspace/tests/context/</Arg>
>>>> <!--Arg>org/mortbay/jetty/servlet/webdefault.xml</Arg-->
>>>> <Arg>context/WEB-INF/web.xml</Arg>
>>>> <Arg type="boolean">true</Arg>
>>>> </Call>
>>>>
>>> Snip was actually wrong, needed:
>>> <Call name="addWebApplication">
>>> <Arg>file://../eclipse3/workspace/tests/context</Arg>
>>> <Arg>context/</Arg>
>>>
>>> <Set name="extractWAR">false</Set>
>>>
>>> <Set
>>> name="defaultsDescriptor">org/mortbay/jetty/servlet/webdefault.xml</Set>
>>>
>>> <Set name="virtualHosts">
>>> <Array type="java.lang.String">
>>> <Item></Item>
>>> <Item>127.0.0.1</Item>
>>> <Item>localhost</Item>
>>> <Item>www.ffneuzen.nl</Item>
>>> </Array>
>>> </Set>
>>> </Call>
>>>
>>> But this is also not working as of yet:
>>> Error 404 - Not Found.
>>> No context on this server matched or handled this request.
>>> Contexts known to this server are:
>>>
>>> * WebApplicationContext[[null, 127.0.0.1, localhost,
>>> www.ffneuzen.nl]:/file://../eclipse3/workspace/tests/context,tests]
>>>
>>> The links above may not work if a virtual host is configured
>>>
>>> So the question remains the same.
>>> What do i do to get *this* one to work?
>>>
>>> TIA
>>>
>>> Fermin DCG
>>>
>>>> Result:
>>>> Error 404 - Not Found.
>>>> No context on this server matched or handled this request.
>>>> Contexts known to this server are:
>>>>
>>>> * WebApplicationContext[/jetty.xml,tests]
>>>> * WebApplicationContext[/images,tests]
>>>> * WebApplicationContext[/WEB-INF,tests]
>>>>
>>>> The links above may not work if a virtual host is configured
>>>>
>>>> The used web.xml looks as follows:
>>>> <web-app>
>>>> <display-name>tests</display-name>
>>>>
>>>> <servlet>
>>>> <servlet-name>tests</servlet-name>
>>>>
>>>> <servlet-class>org.apache.tapestry.ApplicationServlet</servlet-class>
>>>> <init-param>
>>>>
>>>> <param-name>org.apache.tapestry.application-specification</param-name>
>>>> <param-value>/appl/tests.application</param-value>
>>>> </init-param>
>>>> <load-on-startup>0</load-on-startup>
>>>> </servlet>
>>>>
>>>> <servlet-mapping>
>>>> <servlet-name>tests</servlet-name>
>>>> <url-pattern>/app</url-pattern>
>>>> </servlet-mapping>
>>>>
>>>> </web-app>
>>>>
>>>> The whole thing does work (also via a jetty launcher) but i need it to
>>>> work with ssl.
>>>>
>>>> I know i'm close but after 4 all-nighters i'm also losing it a bit.
>>>> Any suggestion at to what i need to add to the (std) jetty.xml to get
>>>> the app to startup normally?
>>>>
>>>> TIA
>>>> Fermin DCG
>>>>
>>>>
>>>>
>>>> -------------------------------------------------------
>>>> This SF.Net email is sponsored by: IBM Linux Tutorials
>>>> Free Linux tutorial presented by Daniel Robbins, President and CEO of
>>>> GenToo technologies. Learn everything from fundamentals to system
>>>> administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
>>>> _______________________________________________
>>>> Jetty-support mailing list
>>>> Jet...@li...
>>>> https://lists.sourceforge.net/lists/listinfo/jetty-support
>>>>
>>>
>>>
>>>
>>> -------------------------------------------------------
>>> This SF.Net email is sponsored by: IBM Linux Tutorials
>>> Free Linux tutorial presented by Daniel Robbins, President and CEO of
>>> GenToo technologies. Learn everything from fundamentals to system
>>> administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
>>> _______________________________________________
>>> Jetty-support mailing list
>>> Jet...@li...
>>> https://lists.sourceforge.net/lists/listinfo/jetty-support
>>>
>>>
>>
>>
>>
>>
>>
>> -------------------------------------------------------
>> This SF.Net email is sponsored by: IBM Linux Tutorials
>> Free Linux tutorial presented by Daniel Robbins, President and CEO of
>> GenToo technologies. Learn everything from fundamentals to system
>> administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
>> _______________________________________________
>> Jetty-support mailing list
>> Jet...@li...
>> https://lists.sourceforge.net/lists/listinfo/jetty-support
>>
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by: IBM Linux Tutorials
> Free Linux tutorial presented by Daniel Robbins, President and CEO of
> GenToo technologies. Learn everything from fundamentals to system
> administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
> _______________________________________________
> Jetty-support mailing list
> Jet...@li...
> https://lists.sourceforge.net/lists/listinfo/jetty-support
>
|