Re: CSS and HTTPS problem ...

2009-03-31 Thread Rob Heittman
You'd have to change the CSS to also reference the images, etc. over https.
 The warning you describe will be triggered whenever you have an HTML page,
delivered over https, that calls images, CSS, or javascript from another
source, delivered over http.  This isn't a Restlet thing ... it applies to
any SSL Web server.
However, one neat Restlet thing that does help, is the Redirector feature.
 This is a bit advanced, but you can use the Redirector on your local web
service to proxy these requests to the other server; this can be used to
avoid such warnings and single-source issues, at the expense of some
overhead in your web service and a responsibility to manage the security
appropriately.

- Rob

On Tue, Mar 31, 2009 at 5:34 AM, Mohamed Abdel-Aziz Bayoumi <
mohamed@gmail.com> wrote:

> Hi Rob,
>
> Thanx for the fast reply ... As it told you Rob i'm using absolute links to
> images or css (since these are not hosted on my server) like the following
> CSS snippet (the background property)
>thead th,tbody th
>{
>   background : #FFF url(
> http://muffinresearch.co.uk/code/xhtmlandcss/tableshow/th_bck.gif)
> repeat-x;
>   color: white;
>   padding : 5px 10px;
>   border-left : 1px solid #CCC;
>   }
> another important note: i've switched to HTTP instead of HTTPS just to test
> and the style was displayed perfectly (no broken images or missing css
> files) both locally and remotely (i didn't change anything in code) which
> makes me 100% that the problem is mainly considered with HTTPS connection as
> i told you before ...
>
> Thank you
>
>
> Hard to diagnose without seeing the HTML source ... but is it possible your
> HTML is constructed with an absolute URL (starting with http://) in the
> CSS
>  tag?  Any snippets of the HTML you can share, or a link to a
> page if it's public?
>
> On Fri, Mar 27, 2009 at 10:46 AM, Mohamed Abdel-Aziz Bayoumi <
> mohamed@gmail.com> wrote:
>
> > It's been a long time since i posted here ... hope u r all fine n well ..
> > Now my problem.  I've planned to add some style to one of my restlet
> (which
> > is actually a TEXT_HTML MediaType repreaentation) so i made an external
> > stylesheet n saved my .css file and linked it to my html restlet and
> began
> > to test n here u r what i found (note: i'm running the whole application
> via
> > secured HTTPS):
> >
>
> --
>
> http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=1445199
>
>
> --
> View this message in context:
> http://n2.nabble.com/CSS-and-HTTPS-problem-...-tp2544622p2562022.html
> Sent from the Restlet Discuss mailing list archive at Nabble.com.
>
> --
>
> http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=1493998
>

--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=1498463

Re: CSS and HTTPS problem ...

2009-03-31 Thread Mohamed Abdel-Aziz Bayoumi
Hi Rob,

Thanx for the fast reply ... As it told you Rob i'm using absolute links to 
images or css (since these are not hosted on my server) like the following CSS 
snippet (the background property)
thead th,tbody th
{
   background : #FFF 
url(http://muffinresearch.co.uk/code/xhtmlandcss/tableshow/th_bck.gif) 
repeat-x; 
   color: white;  
   padding : 5px 10px; 
   border-left : 1px solid #CCC;
   }
another important note: i've switched to HTTP instead of HTTPS just to test and 
the style was displayed perfectly (no broken images or missing css files) both 
locally and remotely (i didn't change anything in code) which makes me 100% 
that the problem is mainly considered with HTTPS connection as i told you 
before ...

Thank you


Hard to diagnose without seeing the HTML source ... but is it possible your
HTML is constructed with an absolute URL (starting with http://) in the CSS
 tag?  Any snippets of the HTML you can share, or a link to a
page if it's public?

On Fri, Mar 27, 2009 at 10:46 AM, Mohamed Abdel-Aziz Bayoumi <
mohamed@gmail.com> wrote:

> It's been a long time since i posted here ... hope u r all fine n well ..
> Now my problem.  I've planned to add some style to one of my restlet (which
> is actually a TEXT_HTML MediaType repreaentation) so i made an external
> stylesheet n saved my .css file and linked it to my html restlet and began
> to test n here u r what i found (note: i'm running the whole application via
> secured HTTPS):
>

--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=1445199


-- 
View this message in context: 
http://n2.nabble.com/CSS-and-HTTPS-problem-...-tp2544622p2562022.html
Sent from the Restlet Discuss mailing list archive at Nabble.com.

--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=1493998


Java 6

2009-03-31 Thread Cliff Binstock
Is it correct that the current build is based on Java 1.5?  Is there a Java
6 build available?  Or do I have to build this myself?

Notably, I can't run a Java 6 compiled application under tomcat w/Java 6.
I'm not 100% certain, but it appears that this is because Restlet itself is
1.5 (I get class version errors loading the restlet application).

 

 

Thanks much,

 

Cliff Binstock

Coyote Reporting

--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=1497681

Re: Starting with restlet

2009-03-31 Thread Thierry Boileau
Hello,

I suspect your application is deployed with a "demo.war" file. Thus, the 
root URI of your J2ee application is "http://:8080/demo".
Then, the web.xml file says that the root servlet handles all calls 
starting by "/demo", that is to say in the context of your J2ee 
application which is already "http://:8080/demo"...
Therefore, I think it should work for URIs such as : http://:8080/demo/demo.

If you want to request URIs such as http://:8080/demo, 
then either update your web.xml file (/*), or 
configure your servlet container to attach your war file at the root URI.

Best regards,
Thierry Boileau

> Hi i'm an italian student and i'm starting with Restlet. As first example to 
> understand how things work, i followed this ones:
>
> http://danilogurovich.wordpress.com/2008/09/23/a-simple-restlet-demo-application/
>
> I included all the library listed in the page.
> I copied all the 6 class in Myeclipse 7 and i called the web project "demo".
> There aren't error in the class.
> I use tomcat 6 as webserver.
> I deployed the project in the server (after having started it) and when i run 
> the project as webserver application in Myeclipse, for all the url at bottom 
> of page in the previous URL, i get a 404 error from the server.
> What i'm wrong???
> There are other things to do?
> I have to install something other?
> Please help me to proceed !!
>
> --
> http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=1493572
>
>

--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=1495738


Re: Restlet XmlWriter, getRepresentation

2009-03-31 Thread Thierry Boileau
Hi 김도남,

I've fixed also the standalone document declaration as suggested in the 
blog post and required by the W3C specification.

best regards,
Thierry Boileau

> I got it.
>
> http://www.sstm.pe.kr/2009/03/how-to-use-restlet-xmlwritter.html
>
> --
> http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=1455568
>
>

--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=1493910


Starting with restlet

2009-03-31 Thread webpost
Hi i'm an italian student and i'm starting with Restlet. As first example to 
understand how things work, i followed this ones:

http://danilogurovich.wordpress.com/2008/09/23/a-simple-restlet-demo-application/

I included all the library listed in the page.
I copied all the 6 class in Myeclipse 7 and i called the web project "demo".
There aren't error in the class.
I use tomcat 6 as webserver.
I deployed the project in the server (after having started it) and when i run 
the project as webserver application in Myeclipse, for all the url at bottom of 
page in the previous URL, i get a 404 error from the server.
What i'm wrong???
There are other things to do?
I have to install something other?
Please help me to proceed !!

--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=1493572


Re: NullPointer when trying to configure server connector

2009-03-31 Thread Thierry Boileau
Hello,

thanks for your report, the sample code does not show how to provide the 
context of the server connector...
I've updated the web page.

NB : note that you are looking at the documentation of the 1.0 release 
of the Restlet framework.
At this time, the documentation for the connectors are located in the 
wiki aka knows as the "user guide":

=> 1.1 release : 
http://wiki.restlet.org/docs_1.1/13-restlet/27-restlet/37-restlet.html
=> 1.2 release : 
http://wiki.restlet.org/docs_1.2/13-restlet/27-restlet/37-restlet.html

Best regards,
Thierry Boileau

> Hi, I am quite new to Restlet, I am trying to configure server connector as 
> described in http://www.restlet.org/documentation/1.0/connectors
> However, line 
> server.getContext().getParameters().add("useForwardedForHeader", "true");
> throws me a nullpointerexception because context is null. I am using Restlet 
> 1.1.2
> Any help would be appreciated..
> Thomas
>
> --
> http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=1483706
>
>

--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=1493675


Re: expires header with redirects?

2009-03-31 Thread Stephan Koops
Hi Robin,

take a look at 
http://wiki.restlet.org/docs_1.1/13-restlet/27-restlet/130-restlet.html .

@Jerome, Thierry: What about logging also the api call to use for set 
the value?

best regards
Stephan

Robin schrieb:
> Hi,
>
> I'm trying to set an Expires: header on a redirectTemporary (307), but
> I can't find a way to do it using the Restlet API.  If I try to use a
> Form to set a custom header, I get the warning:
>
> WARNING: Addition of the standard header "Expires" is not allowed.
> Please use the Restlet API instead
>
> However as far as I can see, the API only allows setting the
> expiryDate on representations.
>
> Is there a way to work around this?
>
> Thanks

--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=1492731


expires header with redirects?

2009-03-31 Thread Robin
Hi,

I'm trying to set an Expires: header on a redirectTemporary (307), but
I can't find a way to do it using the Restlet API.  If I try to use a
Form to set a custom header, I get the warning:

WARNING: Addition of the standard header "Expires" is not allowed.
Please use the Restlet API instead

However as far as I can see, the API only allows setting the
expiryDate on representations.

Is there a way to work around this?

Thanks.

-- 
-Robin

Robin Barooah
http://www.sublime.org

--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=1492635