simpleweb-support Mailing List for Simple (Page 22)
Brought to you by:
niallg
You can subscribe to this list here.
2004 |
Jan
(1) |
Feb
(4) |
Mar
(2) |
Apr
(14) |
May
(22) |
Jun
(15) |
Jul
(9) |
Aug
(2) |
Sep
(7) |
Oct
(4) |
Nov
(2) |
Dec
(12) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2005 |
Jan
(7) |
Feb
(16) |
Mar
(17) |
Apr
|
May
(12) |
Jun
(4) |
Jul
(22) |
Aug
(50) |
Sep
(8) |
Oct
(23) |
Nov
(9) |
Dec
(50) |
2006 |
Jan
(6) |
Feb
(7) |
Mar
(8) |
Apr
(3) |
May
(13) |
Jun
(4) |
Jul
(2) |
Aug
|
Sep
(1) |
Oct
|
Nov
(6) |
Dec
(7) |
2007 |
Jan
(11) |
Feb
(3) |
Mar
(17) |
Apr
(21) |
May
(9) |
Jun
(4) |
Jul
(6) |
Aug
(1) |
Sep
|
Oct
(8) |
Nov
(14) |
Dec
(3) |
2008 |
Jan
(3) |
Feb
|
Mar
|
Apr
(5) |
May
|
Jun
|
Jul
(4) |
Aug
(4) |
Sep
(15) |
Oct
(9) |
Nov
(6) |
Dec
(2) |
2009 |
Jan
(29) |
Feb
(2) |
Mar
(8) |
Apr
(14) |
May
(4) |
Jun
(13) |
Jul
(5) |
Aug
|
Sep
|
Oct
(4) |
Nov
(3) |
Dec
(7) |
2010 |
Jan
|
Feb
(2) |
Mar
(61) |
Apr
(9) |
May
(10) |
Jun
(9) |
Jul
(10) |
Aug
(7) |
Sep
(15) |
Oct
(5) |
Nov
(2) |
Dec
(3) |
2011 |
Jan
(11) |
Feb
|
Mar
|
Apr
(2) |
May
|
Jun
|
Jul
(3) |
Aug
|
Sep
(4) |
Oct
|
Nov
(6) |
Dec
(9) |
2012 |
Jan
|
Feb
(1) |
Mar
(2) |
Apr
(3) |
May
(2) |
Jun
|
Jul
(17) |
Aug
|
Sep
|
Oct
|
Nov
(10) |
Dec
(5) |
2013 |
Jan
(2) |
Feb
(4) |
Mar
|
Apr
(12) |
May
|
Jun
(5) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(3) |
Dec
(1) |
2014 |
Jan
|
Feb
(2) |
Mar
(6) |
Apr
|
May
|
Jun
(20) |
Jul
(12) |
Aug
(4) |
Sep
(3) |
Oct
(5) |
Nov
|
Dec
|
2015 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
(1) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2016 |
Jan
(2) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
|
Dec
|
2017 |
Jan
|
Feb
(2) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Niall G. <gal...@ya...> - 2006-12-01 19:54:20
|
Hi Jeff,=0A=0AIf you like you can put it into the Content.properties in the= simple.http.serve package. Also, if you have a Content.xml file within the= context locator this can pick up overrides. Take a look at the demo packag= e it should show how the Content.xml should look.=0A =0ANiall Gallagher=0A= =0A----- Original Message ----=0AFrom: Jeff Nichols <je...@ne...>= =0ATo: sim...@li...=0ASent: Thursday, November 3= 0, 2006 11:53:07 AM=0ASubject: [Simpleweb-Support] Javascript MIME Type=0A= =0AHello,=0A=0ANewcomer to Simple here, and I just noticed that the MIME ty= pe given by =0Athe FileEngine for a *.js file is 'application/octetstream'.= =0A=0AI don't think that's going to cause any problems with most browsers, = but =0Ait seems it would be nicer to send 'application/javascript'. Of cou= rse, =0Athat RFC is pretty young, and I admit I'm not really in the loop = =0Aconcerning this topic.=0A=0AAnyways, mainly just wanted to get on the li= st.=0A=0AThanks,=0AJeff=0A=0A----------------------------------------------= ---------------------------=0ATake Surveys. Earn Cash. Influence the Future= of IT=0AJoin SourceForge.net's Techsay panel and you'll get the chance to = share your=0Aopinions on IT & business topics through brief surveys - and e= arn cash=0Ahttp://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourcefor= ge&CID=3DDEVDEV=0A_______________________________________________=0ASimplew= eb-Support mailing list=0AS...@li...=0Ahttps:/= /lists.sourceforge.net/lists/listinfo/simpleweb-support=0A=0A=0A=0A=0A=0A = =0A________________________________________________________________________= ____________=0AYahoo! Music Unlimited=0AAccess over 1 million songs.=0Ahttp= ://music.yahoo.com/unlimited |
From: Jeff N. <je...@ne...> - 2006-11-30 19:53:20
|
Hello, Newcomer to Simple here, and I just noticed that the MIME type given by the FileEngine for a *.js file is 'application/octetstream'. I don't think that's going to cause any problems with most browsers, but it seems it would be nicer to send 'application/javascript'. Of course, that RFC is pretty young, and I admit I'm not really in the loop concerning this topic. Anyways, mainly just wanted to get on the list. Thanks, Jeff |
From: Niall G. <gal...@ya...> - 2006-11-04 19:08:09
|
Hi Pat,=0A=0AI am going to include a proper shutdown for the server soon. I= t will be done via a signalling framework, this will allow various componen= ts within the system to shutdown gracefully. Shutdown is an issue that has = needed to be addressed for a while now.=0A =0ACheers,=0A=0ANiall=0A=0A=0A--= --- Original Message ----=0AFrom: R Pat <pat...@gm...>=0ATo: simplew= eb-...@li...=0ASent: Thursday, November 2, 2006 2:13:25= AM=0ASubject: [Simpleweb-Support] A clean way to shutdown the server ?=0A= =0AHi Nial,=0A=0ASomething that looks right to shutdown the server (it work= s for me):=0A=0Apublic class MyServer implements Runnable {=0A=0A=0A publi= c void run() {=0A=0A System.err.println("Server is shutting down...");= =0A=0A=0A // Close all...=0A=0A ........=0A=0A // This finalize al= l =0Asimpleweb's threads=0A=0A Runtime.getRuntime().runFinalization();= =0A }=0A=0A=0A protected final static void shutdown() {=0A Runtime.get= Runtime().exit(0);=0A=0A }=0A=0A=0A protected MyServer() {=0A Thread s= hutdownHook =3D new Thread(this, "shutdown-hook");=0A=0A=0A Runtime.getR= untime().addShutdownHook(shutdownHook);=0A=0A }=0A=0A}=0A=0ARegards,=0APat= rick=0A=0A-----------------------------------------------------------------= --------=0AUsing Tomcat but need to do more? Need to support web services, = security?=0AGet stuff done quickly with pre-integrated technology to make y= our job easier=0ADownload IBM WebSphere Application Server v.1.0.1 based on= Apache Geronimo=0Ahttp://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&b= id=3D263057&dat=3D121642=0A_______________________________________________= =0ASimpleweb-Support mailing list=0AS...@li...= =0Ahttps://lists.sourceforge.net/lists/listinfo/simpleweb-support=0A=0A=0A= =0A=0A=0A=0A |
From: Niall G. <gal...@ya...> - 2006-11-04 19:05:42
|
Hi Jerome,=0A=0AThanks for the feedback on this, Ill make sure the problem = is resolved on the next release. Also, I think your right regarding the sit= e menus, Ill rearrange them.=0A =0ACheers,=0A=0ANiall=0A=0A=0A----- Origina= l Message ----=0AFrom: Jerome Louvel <co...@no...>=0ATo: Simple sup= port and user issues <sim...@li...>=0ASent: Wedn= esday, November 1, 2006 5:26:25 AM=0ASubject: Re: [Simpleweb-Support] Extra= Transfer-Encoding header=0A=0A=0AHi again,=0A=0ALooking at the Simple code= , I've noticed that if the setContentLength() is=0Anot called on Simple's R= esponse then a "-1" value is assumed (unknown=0Alength). So I'm now setting= it to "0" when I don't have a response entity.=0AThis removes the "Transfe= r-Encoding: chunked" header. =0A=0ANow, I have a "Content-Length: 0" header= which is OK, but should probably be=0Aremoved. This can be done by patchin= g the setContentLength(int length)=0Amethod in MonitoredResponse as below:= =0A=0A + this.length =3D length;=0A - set("Content-Length", String.valueOf(= length));=0A + if(length > 0) set("Content-Length", String.valueOf(length))= ;=0A=0ACould you integrate this patch to the next release Simple?=0A=0ABTW,= the Resources/Downloads link on the front page is a bit misleading: I=0Aal= ways expect to get the downloads page instead of the statistics. Maybe it= =0Ashould be renamed and the Simple/Download menu entry be moved to the=0AR= esources menu too?=0A=0ABest regards,=0AJerome=0A=0A> -----Message d'origin= e-----=0A> De : sim...@li... =0A> [mailt= o:sim...@li...] De =0A> la part de Jerom= e Louvel=0A> Envoy=E9 : mercredi 1 novembre 2006 12:16=0A> =C0 : simpleweb-= su...@li...=0A> Objet : [Simpleweb-Support] Extra Transfe= r-Encoding header=0A> =0A> =0A> Hi Niall,=0A> =0A> It appears that Simple i= s adding an extra "Transfer-Encoding: chunked"=0A> header to responses that= don't contain an entity, like 304 responses.=0A> =0A> I'm having some issu= es with Safari browsers and suspect this, =0A> among other=0A> things, to b= e the reason. =0A> =0A> Is there a way to disable this behavior, or could t= his be fixed?=0A> =0A> Best regards,=0A> Jerome Louvel=0A> =0A> =0A> ------= --------------------------------------------------------=0A> -----------=0A= > Using Tomcat but need to do more? Need to support web =0A> services, secu= rity?=0A> Get stuff done quickly with pre-integrated technology to make =0A= > your job easier=0A> Download IBM WebSphere Application Server v.1.0.1 bas= ed on =0A> Apache Geronimo=0A> http://sel.as-us.falkag.net/sel?cmd=3Dlnk&ki= d=3D120709&bid=3D263057&;=0A> dat=3D121642=0A> ____________________________= ___________________=0A> Simpleweb-Support mailing list=0A> Simpleweb-Suppor= t...@li...=0A> https://lists.sourceforge.net/lists/listinfo/si= mpleweb-support=0A=0A=0A---------------------------------------------------= ----------------------=0AUsing Tomcat but need to do more? Need to support = web services, security?=0AGet stuff done quickly with pre-integrated techno= logy to make your job easier=0ADownload IBM WebSphere Application Server v.= 1.0.1 based on Apache Geronimo=0Ahttp://sel.as-us.falkag.net/sel?cmd=3Dlnk&= kid=3D120709&bid=3D263057&dat=3D121642=0A__________________________________= _____________=0ASimpleweb-Support mailing list=0AS...@li...= urceforge.net=0Ahttps://lists.sourceforge.net/lists/listinfo/simpleweb-supp= ort=0A=0A=0A=0A=0A |
From: R P. <pat...@gm...> - 2006-11-02 10:13:27
|
Hi Nial, Something that looks right to shutdown the server (it works for me): public class MyServer implements Runnable { public void run() { System.err.println("Server is shutting down..."); // Close all... ........ // This finalize all simpleweb's threads Runtime.getRuntime().runFinalization(); } protected final static void shutdown() { Runtime.getRuntime().exit(0); } protected MyServer() { Thread shutdownHook = new Thread(this, "shutdown-hook"); Runtime.getRuntime().addShutdownHook(shutdownHook); } } Regards, Patrick |
From: Jerome L. <co...@no...> - 2006-11-01 13:26:43
|
Hi again, Looking at the Simple code, I've noticed that if the setContentLength() = is not called on Simple's Response then a "-1" value is assumed (unknown length). So I'm now setting it to "0" when I don't have a response = entity. This removes the "Transfer-Encoding: chunked" header.=20 Now, I have a "Content-Length: 0" header which is OK, but should = probably be removed. This can be done by patching the setContentLength(int length) method in MonitoredResponse as below: + this.length =3D length; - set("Content-Length", String.valueOf(length)); + if(length > 0) set("Content-Length", String.valueOf(length)); Could you integrate this patch to the next release Simple? BTW, the Resources/Downloads link on the front page is a bit misleading: = I always expect to get the downloads page instead of the statistics. Maybe = it should be renamed and the Simple/Download menu entry be moved to the Resources menu too? Best regards, Jerome > -----Message d'origine----- > De : sim...@li...=20 > [mailto:sim...@li...] De=20 > la part de Jerome Louvel > Envoy=E9 : mercredi 1 novembre 2006 12:16 > =C0 : sim...@li... > Objet : [Simpleweb-Support] Extra Transfer-Encoding header >=20 >=20 > Hi Niall, >=20 > It appears that Simple is adding an extra "Transfer-Encoding: chunked" > header to responses that don't contain an entity, like 304 responses. >=20 > I'm having some issues with Safari browsers and suspect this,=20 > among other > things, to be the reason.=20 >=20 > Is there a way to disable this behavior, or could this be fixed? >=20 > Best regards, > Jerome Louvel >=20 >=20 > -------------------------------------------------------------- > ----------- > Using Tomcat but need to do more? Need to support web=20 > services, security? > Get stuff done quickly with pre-integrated technology to make=20 > your job easier > Download IBM WebSphere Application Server v.1.0.1 based on=20 > Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057& > dat=3D121642 > _______________________________________________ > Simpleweb-Support mailing list > Sim...@li... > https://lists.sourceforge.net/lists/listinfo/simpleweb-support |
From: Jerome L. <co...@no...> - 2006-11-01 11:16:37
|
Hi Niall, It appears that Simple is adding an extra "Transfer-Encoding: chunked" header to responses that don't contain an entity, like 304 responses. I'm having some issues with Safari browsers and suspect this, among other things, to be the reason. Is there a way to disable this behavior, or could this be fixed? Best regards, Jerome Louvel |
From: Kaigenmusha <lig...@gm...> - 2006-09-11 01:01:45
|
I was following the tutorial and I don't seem to be able to get it to work. I think my problem is with the mapping. The service runs but I can't call the service. I don't seem to be able to find the documentation on configuration files that are needed. If anyone could give me an idea of what I need to make this work that would be great. The code is essentially the same as in the tutorials. Thanks |
From: Niall G. <gal...@ya...> - 2006-07-12 13:36:54
|
Hi, You are missing the Mapper.xml configuration file for the MapperEngine. Have a look at the MapperEngine and PatternMapper javadoc documentation. The Mapper.xml must be within either the context used, which in your example is the current working directory ".", as you specify no context. Niall --- Rogelio Canedo <ca...@ip...> wrote: > I have a problem with simple-soap-0,34. when I lunch > the SOAPServer I > have an exception: > > simple.http.serve.LocateException: File not found > at > simple.http.serve.FileLocator.getLocation(Unknown > Source) > at > simple.http.serve.FileLocator.getLocation(Unknown > Source) > at simple.http.serve.FileLocator.getFile(Unknown > Source) > at simple.http.load.PatternResolver.load(Unknown > Source) > at simple.http.load.PatternResolver.load(Unknown > Source) > at simple.http.load.PatternResolver.init(Unknown > Source) > at > simple.http.load.PatternResolver.<init>(Unknown > Source) > at simple.http.load.PatternMapper.<init>(Unknown > Source) > at simple.http.load.PatternMapper.<init>(Unknown > Source) > at > simple.http.load.MapperFactory.getInstance(Unknown > Source) > at simple.http.load.MapperEngine.<init>(Unknown > Source) > at simple.http.load.MapperEngine.<init>(Unknown > Source) > at simple.http.load.MapperEngine.<init>(Unknown > Source) > at simple.http.load.MapperEngine.<init>(Unknown > Source) > at simple.http.load.MapperEngine.<init>(Unknown > Source) > at simple.http.load.MapperEngine.<init>(Unknown > Source) > at web.SOAPServer.<init>(SOAPServer.java:33) > at web.SOAPServer.main(SOAPServer.java:39) > > SOAPServer.java:33 -> > MapperEngine engine = new MapperEngine(); > > SOAPServer.java:39 -> > SOAPServer server = new SOAPServer(9080); > > I don't umdestand why is the problem becouse > MapperEngine is a type > define by simple, > any one have an idea about my problem? > > thank you > > > ------------------------------------------------------------------------- > 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 > _______________________________________________ > Simpleweb-Support mailing list > Sim...@li... > https://lists.sourceforge.net/lists/listinfo/simpleweb-support > Niall Gallagher __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |
From: Rogelio C. <ca...@ip...> - 2006-07-12 07:46:16
|
I have a problem with simple-soap-0,34. when I lunch the SOAPServer I have an exception: simple.http.serve.LocateException: File not found at simple.http.serve.FileLocator.getLocation(Unknown Source) at simple.http.serve.FileLocator.getLocation(Unknown Source) at simple.http.serve.FileLocator.getFile(Unknown Source) at simple.http.load.PatternResolver.load(Unknown Source) at simple.http.load.PatternResolver.load(Unknown Source) at simple.http.load.PatternResolver.init(Unknown Source) at simple.http.load.PatternResolver.<init>(Unknown Source) at simple.http.load.PatternMapper.<init>(Unknown Source) at simple.http.load.PatternMapper.<init>(Unknown Source) at simple.http.load.MapperFactory.getInstance(Unknown Source) at simple.http.load.MapperEngine.<init>(Unknown Source) at simple.http.load.MapperEngine.<init>(Unknown Source) at simple.http.load.MapperEngine.<init>(Unknown Source) at simple.http.load.MapperEngine.<init>(Unknown Source) at simple.http.load.MapperEngine.<init>(Unknown Source) at simple.http.load.MapperEngine.<init>(Unknown Source) at web.SOAPServer.<init>(SOAPServer.java:33) at web.SOAPServer.main(SOAPServer.java:39) SOAPServer.java:33 -> MapperEngine engine = new MapperEngine(); SOAPServer.java:39 -> SOAPServer server = new SOAPServer(9080); I don't umdestand why is the problem becouse MapperEngine is a type define by simple, any one have an idea about my problem? thank you |
From: R. G. <ros...@gm...> - 2006-06-20 15:59:34
|
Hello, i have an application, embedding the simple server (as in getting started example) working already. i managed as well to map a request type with a certain path to a service so far. now, a client should connect to the server, and sending a file to it with the post method. i worked trouhg all the example, but could not work out how to do it. It might be, that somebody else asked the question already, but the mailing list archive is not working either, today (505 Internal error). so sorry. My idea to do so far is to write a service, parsing out the "Post" request, the lenght of file and and afterwords, parsing the Body of the request. Is this the way to do it? or is it intended to do differently. I am quite unfamiliar with the simple server and, is there a documentation, how the mapper.xml is working (is there a way were not only path but the request method can be mapped to a service)? any help very welcome, sorry for bothering but i did not managed to work it out by myself. rose. |
From: Niall G. <gal...@ya...> - 2006-06-17 16:39:30
|
Hi Rose, You are missing a configuration file called mapper.xml. This should be located within reach of your context. Take a look at the demo package http://www.simpleframework.org/download/3.1.3, it should show you an example of the Mapper.xml format. Niall --- "R. Gostner" <ros...@gm...> wrote: > > Hello, > sorry for this "simple question" but i couldn' t > find a hint in the > mailinglist and in the tutorial. > > I would like to embed the simple server into my > application; to do this, > it tried the first example in the tutorial. > the server is running but it seems that the > mappingengine does not; > therefore i always get a 404 not found error, which > is per se fine. > > I was wondering, how i can get it run or what i am > missing? > According to the documentation, the MapperEngine > points to the services. > I did not understand,where exactely it should point? > I post as well my source code. and i am happy about > any kind of inormation. > many thanks, rose. > > package uk.ac.lancs.relate.ip.example; > import java.net.ServerSocket; > import simple.http.connect.Connection; > import simple.http.connect.ConnectionFactory; > import simple.http.load.MapperEngine; > import simple.http.serve.CacheContext; > import simple.http.serve.ProtocolHandlerFactory; > > public class DemoServer { > public static void main(String[] list) > throws Exception { > CacheContext context = new > CacheContext(); > MapperEngine engine = new > MapperEngine(context); > DemoHandler handler = new > DemoHandler(ProtocolHandlerFactory.getInstance(engine)); > Connection connection = > ConnectionFactory.getConnection(handler); > connection.connect(new > ServerSocket(8080)); > } > > } > > > eorror by java > > simple.http.serve.LocateException: File not found > at > simple.http.serve.FileLocator.getLocation(Unknown > Source) > at > simple.http.serve.FileLocator.getLocation(Unknown > Source) > at simple.http.serve.FileLocator.getFile(Unknown > Source) > at simple.http.load.PatternResolver.load(Unknown > Source) > at simple.http.load.PatternResolver.load(Unknown > Source) > at simple.http.load.PatternResolver.init(Unknown > Source) > at > simple.http.load.PatternResolver.<init>(Unknown > Source) > at simple.http.load.PatternMapper.<init>(Unknown > Source) > at simple.http.load.PatternMapper.<init>(Unknown > Source) > at > simple.http.load.MapperFactory.getInstance(Unknown > Source) > at simple.http.load.MapperEngine.<init>(Unknown > Source) > at simple.http.load.MapperEngine.<init>(Unknown > Source) > at simple.http.load.MapperEngine.<init>(Unknown > Source) > at simple.http.load.MapperEngine.<init>(Unknown > Source) > at simple.http.load.MapperEngine.<init>(Unknown > Source) > at > uk.ac.lancs.relate.ip.example.DemoServer.main(DemoServer.java:21) > > OS: Mac OS X > > > -- > R. Gostner > 27 Albion Street * Lancaster * LA1 1DY * UK > email: ros...@gm... * fon:+44 798 958 1410 > > > > _______________________________________________ > Simpleweb-Support mailing list > Sim...@li... > https://lists.sourceforge.net/lists/listinfo/simpleweb-support > Niall Gallagher __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |
From: R. G. <ros...@gm...> - 2006-06-17 14:54:28
|
Hello, sorry for this "simple question" but i couldn' t find a hint in the mailinglist and in the tutorial. I would like to embed the simple server into my application; to do this, it tried the first example in the tutorial. the server is running but it seems that the mappingengine does not; therefore i always get a 404 not found error, which is per se fine. I was wondering, how i can get it run or what i am missing? According to the documentation, the MapperEngine points to the services. I did not understand,where exactely it should point? I post as well my source code. and i am happy about any kind of inormation. many thanks, rose. package uk.ac.lancs.relate.ip.example; import java.net.ServerSocket; import simple.http.connect.Connection; import simple.http.connect.ConnectionFactory; import simple.http.load.MapperEngine; import simple.http.serve.CacheContext; import simple.http.serve.ProtocolHandlerFactory; public class DemoServer { public static void main(String[] list) throws Exception { CacheContext context = new CacheContext(); MapperEngine engine = new MapperEngine(context); DemoHandler handler = new DemoHandler(ProtocolHandlerFactory.getInstance(engine)); Connection connection = ConnectionFactory.getConnection(handler); connection.connect(new ServerSocket(8080)); } } eorror by java simple.http.serve.LocateException: File not found at simple.http.serve.FileLocator.getLocation(Unknown Source) at simple.http.serve.FileLocator.getLocation(Unknown Source) at simple.http.serve.FileLocator.getFile(Unknown Source) at simple.http.load.PatternResolver.load(Unknown Source) at simple.http.load.PatternResolver.load(Unknown Source) at simple.http.load.PatternResolver.init(Unknown Source) at simple.http.load.PatternResolver.<init>(Unknown Source) at simple.http.load.PatternMapper.<init>(Unknown Source) at simple.http.load.PatternMapper.<init>(Unknown Source) at simple.http.load.MapperFactory.getInstance(Unknown Source) at simple.http.load.MapperEngine.<init>(Unknown Source) at simple.http.load.MapperEngine.<init>(Unknown Source) at simple.http.load.MapperEngine.<init>(Unknown Source) at simple.http.load.MapperEngine.<init>(Unknown Source) at simple.http.load.MapperEngine.<init>(Unknown Source) at uk.ac.lancs.relate.ip.example.DemoServer.main(DemoServer.java:21) OS: Mac OS X -- R. Gostner 27 Albion Street * Lancaster * LA1 1DY * UK email: ros...@gm... * fon:+44 798 958 1410 |
From: wickedfast <wic...@gm...> - 2006-06-07 21:46:28
|
Hi A valid HTTP .9 request is as follows. (No version number or header sequence is required) GET /index.html\n For example.. try telnet www.yahoo.com 80\n GET /index.html\n If you try the same thing with the simple server it times out.. because it is waiting for a \r\n\r\n sequence.. but of course there is no headers in a valid HTTP .9 request.. Thanks! /Brian |
From: Niall G. <gal...@ya...> - 2006-05-25 14:33:12
|
Hi, To use the Mapper.xml file you should use MapperEngine instead of LoaderEngine. The Mapper.xml file is located using the Context.getLocator. This is like a ClassLoader for configuration. You must provide it with a search path. For example: File root = new File("C:\www"); File[] search = new File[]{ new File("C:\conf"), new File("C:\www\conf2")}; Context c = new FileContext(root, search); MapperEngine e = new MapperEngine(c); Now if there is a c:\conf\Mapper.xml or a C:\www\conf2\Mapper.xml it will be loaded by the MapperEngine using the provided Context.getLocator. The javadoc should provide more details. Niall --- Vincent Etter <vin...@gm...> wrote: > Hi Niall ! > > Thanks a lot for your answer ! This is exactly what > I needed ! > > I have one last question : > > How can I use the Mapper.xml file ? I mean, where > can I say that I want this > file to be used ? > > Thanks in advance for your answer and for your > (great) work ! > > Vincent > Niall Gallagher __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |
From: Vincent E. <vin...@gm...> - 2006-05-25 13:54:45
|
Hi Niall ! Thanks a lot for your answer ! This is exactly what I needed ! I have one last question : How can I use the Mapper.xml file ? I mean, where can I say that I want thi= s file to be used ? Thanks in advance for your answer and for your (great) work ! Vincent |
From: Niall G. <gal...@ya...> - 2006-05-25 12:47:12
|
Hi, Simple should be fully HTTP/1.1 compliant. With redards to RFC 2616 all the MUST and SHOULD recommendations were followed. According to the specification only features for MUST and SHOULD can be assumed by the client. If you find any protocol errors I will be sure to fix them. Niall --- wickedfast <wic...@gm...> wrote: > Has any work been done to insure http1.1 > compliance.. > > as in something like > > http://coad.measurement-factory.com/samples/http.html > > > Thanks! > > /Brian > > > > ------------------------------------------------------- > All the advantages of Linux Managed Hosting--Without > the Cost and Risk! > Fully trained technicians. The highest number of Red > Hat certifications in > the hosting industry. Fanatical Support. Click to > learn more > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642 > _______________________________________________ > Simpleweb-Support mailing list > Sim...@li... > https://lists.sourceforge.net/lists/listinfo/simpleweb-support > Niall Gallagher __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |
From: Niall G. <gal...@ya...> - 2006-05-25 12:41:18
|
Hi Vincent, Here is the simplest possible way to do this: public class Server { public static void main(String[] list) throws Exception{ Context context = new FileContext(); LoaderEngine engine = new LoaderEngine(context); engine.load("attributes", "my.package.AttributeService"); engine.load("default", "my.package.FileService"); engine.link("*", "default"); engine.link("/attibute/*", "attributes"); ConnectionFactory.getConnection(engine).connect(new ServerSocket(8080)); } } public class FileService extends Service { public FileService(Context context){ super(context); } public void process(Request req, Response resp) throws Exception{ String target = req.getURI(); File file = context.getFile(target); // work with file } } public class AttributeService extends Service { public AttributeService(Context context) { super(context); } public void process(Request req, Response resp)throws Exception{ //work with attributes here } } Hope this helps, Niall --- Vincent Etter <vin...@gm...> wrote: > Hello ! > > I was using Simple 3.0 and I saw this morning that > there were a few new > versions. I decided to use the latest, but I have > some problems. I looked at > the demo and tried to do my own little server, but > I'm not sure what is > useful... > > Could someone give me the minimal architecture > needed to have a server that > : > - has a few services mapped on specific urls > (/attributes => > AttributeService, ...) > - acts like an http server for "unmapped" urls (ie > /index.html loads the > file name index.html located in a given directory). > > I saw that all mapping stuff and server config can > be done in xml files, and > I must say that this is a great thing ! I think I > understood how Mapper.xmland > Content.xml work (but I really don't know where I > have to say in the code > that I want these files to be used...), but > Server.xml is a little more > complicated... Can someone explain me who this file > works ? > > Thanks a lot ! > > Vincent > Niall Gallagher __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |
From: Vincent E. <vin...@gm...> - 2006-05-24 08:44:54
|
Hello ! I was using Simple 3.0 and I saw this morning that there were a few new versions. I decided to use the latest, but I have some problems. I looked a= t the demo and tried to do my own little server, but I'm not sure what is useful... Could someone give me the minimal architecture needed to have a server that : - has a few services mapped on specific urls (/attributes =3D> AttributeService, ...) - acts like an http server for "unmapped" urls (ie /index.html loads the file name index.html located in a given directory). I saw that all mapping stuff and server config can be done in xml files, an= d I must say that this is a great thing ! I think I understood how Mapper.xml= and Content.xml work (but I really don't know where I have to say in the code that I want these files to be used...), but Server.xml is a little more complicated... Can someone explain me who this file works ? Thanks a lot ! Vincent |
From: wickedfast <wic...@gm...> - 2006-05-23 17:29:15
|
Has any work been done to insure http1.1 compliance.. as in something like http://coad.measurement-factory.com/samples/http.html Thanks! /Brian |
From: Jerome L. <co...@no...> - 2006-05-22 10:20:50
|
Hi Niall, Thanks for looking at Restlets and at the code of the Simple connector. > 1) I have performed some very quick benchmarks against > Jetty 6 (the new NIO implementation). The performance > tests using httperf and autobench have shown that > Simple performs slightly better under higher load. > However, my test environment is Linux and both servers > run out of file descriptors at about 3000 requests per > second, simulating about 300 new connections per > second. Sounds good. FYI, the max number of file descriptors on Linux can be increased. On Debian there is a file "/etc/security/limits.conf" for that and the ulimit command may be useful too. > 2) I have an initial implementation for an NIO core, > which is still in the early stages. Hopefully I will > get some time to work on this a bit more and complete > it. I have not had much time recently. > > I think the NIO implementation with the existing > design will improve observed performance. Currently > the IO strategy favours higher loads, which results in > response times that are not as snappy as I would like. Cool, I'm looking forward for this new NIO core. BTW, will this implementation be based on JSE 5.0 or will you keep the backwards compatibility with J2SE 1.4? If you switch to JSE 5.0, the availaibility of java.util.concurrent may help you reduce even more the size of Simple core. > Just to mention, you can improve initial response > times of your implementation by changing the maximum > wait peroid for inactive connections to about 200ms > from the default 1000ms. The server will be a little > more responsive with that configuration. For example > in SimpleServer.java replace > [...] > This ensures that should a pipeline be inactive it > will be placed in the wait queue for a maximum of > 200ms. The javadoc explains the logic in this design. Thanks for the advice, I've checked in the suggested modification. Cheers, Jerome |
From: Niall G. <gal...@ya...> - 2006-05-21 20:28:18
|
Hi Jerome, I have been looking at the Restlet framework over the past couple of days. Looks really great! To answer your questions. 1) I have performed some very quick benchmarks against Jetty 6 (the new NIO implementation). The performance tests using httperf and autobench have shown that Simple performs slightly better under higher load. However, my test environment is Linux and both servers run out of file descriptors at about 3000 requests per second, simulating about 300 new connections per second. 2) I have an initial implementation for an NIO core, which is still in the early stages. Hopefully I will get some time to work on this a bit more and complete it. I have not had much time recently. I think the NIO implementation with the existing design will improve observed performance. Currently the IO strategy favours higher loads, which results in response times that are not as snappy as I would like. Just to mention, you can improve initial response times of your implementation by changing the maximum wait peroid for inactive connections to about 200ms from the default 1000ms. The server will be a little more responsive with that configuration. For example in SimpleServer.java replace this.connection = ConnectionFactory.getConnection(this, new BufferedPipelineFactory()); to this.handler = new PipelineHandlerFactory.getInstance(this, 20, 200); this.connection = ConnectionFactory.getConnection(handler, new BufferedPipelineFactory()); This ensures that should a pipeline be inactive it will be placed in the wait queue for a maximum of 200ms. The javadoc explains the logic in this design. Niall --- Jerome Louvel <jer...@no...> wrote: > > Hi all, > > I wanted to let you know that a Simple connector > (HTTP server) for the > Restlet framework was contributed by Lars Heuer > (Semagia) and is now part of > the latest Restlet release (1.0 beta 12): > http://www.restlet.org/docs/nre/com/noelios/restlet/ext/simple/package-summa > ry.html > > First, thanks to Niall Gallagher for this cool piece > of software. It's great > to have such a powerful and performance HTTP > connector in only 165kb and > without any external dependency. > > I had one question: the current Simple > Request/Response interfaces only rely > on Input/Outputstream. I wanted to know if there was > any plan to also > support the NIO buffers? The Restlet framework has > provision for both BIO > and NIO via its central Representation interface: > http://www.restlet.org/docs/api/org/restlet/data/Representation.html > > Also, did you make any perf comparison with Jetty > (which is a current > recommanded HTTP connector). > > Best regards, > Jerome > > > > ------------------------------------------------------- > 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 > _______________________________________________ > Simpleweb-Support mailing list > Sim...@li... > https://lists.sourceforge.net/lists/listinfo/simpleweb-support > Niall Gallagher __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |
From: Jerome L. <jer...@no...> - 2006-05-21 09:53:49
|
Hi all, I wanted to let you know that a Simple connector (HTTP server) for the Restlet framework was contributed by Lars Heuer (Semagia) and is now part of the latest Restlet release (1.0 beta 12): http://www.restlet.org/docs/nre/com/noelios/restlet/ext/simple/package-summa ry.html First, thanks to Niall Gallagher for this cool piece of software. It's great to have such a powerful and performance HTTP connector in only 165kb and without any external dependency. I had one question: the current Simple Request/Response interfaces only rely on Input/Outputstream. I wanted to know if there was any plan to also support the NIO buffers? The Restlet framework has provision for both BIO and NIO via its central Representation interface: http://www.restlet.org/docs/api/org/restlet/data/Representation.html Also, did you make any perf comparison with Jetty (which is a current recommanded HTTP connector). Best regards, Jerome |
From: Christophe R. <cr...@ac...> - 2006-05-12 14:42:08
|
Hi, I have downloaded the latest release yesterday and some classes (simple/util/xml/*) are missing when the jar is generated. Just need to add a line in the build.xml: <target name="build" depends="prepare"> ... ... <delete includeemptydirs="true"> <fileset dir="${build}"> ... <exclude name="simple/util/xml/*"/> <!-- this is missing --> </fileset> </delete> <jar jarfile="${jar}/${archive}.jar" basedir="${build}"/> <delete dir="${build}"/> </target> Christophe |
From: Christophe R. <cr...@gm...> - 2006-05-12 12:11:55
|
Hi, I have downloaded the latest release yesterday and some classes (simple/util/xml/*) are missing when the jar is generated. Just need to add a line in the build.xml: <target name=3D"build" depends=3D"prepare"> ... ... <delete includeemptydirs=3D"true"> <fileset dir=3D"${build}"> ... <exclude name=3D"simple/util/xml/*"/> <!-- this is missing --> </fileset> </delete> <jar jarfile=3D"${jar}/${archive}.jar" basedir=3D"${build}"/> <delete dir=3D"${build}"/> </target> Chistophe |