simpleweb-support Mailing List for Simple (Page 30)
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: Henry V. <hen...@ge...> - 2005-07-26 18:57:07
|
Re Hi Neil, Well i found the problem and fixed it. And i would like your input about it. The problem is when the client suddently close the stream and this happens often in highly concurrent transactions. java.io.IOException: Stream closed at java.io.PushbackInputStream.ensureOpen(PushbackInputStream.java:57) at java.io.PushbackInputStream.unread(PushbackInputStream.java:181) at simple.http.PollerInputStream.available(PollerInputStream.java:114) at simple.http.BasicPoller.process(BasicPoller.java:117) at simple.http.Processor.execute(Processor.java:121) at simple.http.Processor.run(Processor.java:83) at java.lang.Thread.run(Thread.java:595) Then the exception makes the closes the poller This happens, in the class : simple.http.Processor private void execute() throws InterruptedException { Object top = queue.dequeue(); Poller poller = (Poller)top; try{ poller.process(proc); }catch(Exception e){ poller.close(); } } Why close the poller? My fix consist in removing the try catch, and removing the line of the pooler.close the code is : private void execute() throws IOException, InterruptedException { Object top = queue.dequeue(); Poller poller = (Poller) top; poller.process(proc); } then is catched in the run method public void run() { while (alive) { try { execute(); } catch (IOException e) { l } catch (InterruptedException e) { logger.error("Interrupted exception while executing an request", e); } } } -----Original Message----- From: sim...@li... [mailto:sim...@li...]On Behalf Of Henry Voyer Sent: Tuesday, July 26, 2005 1:06 PM To: sim...@li... Cc: jor...@ge... Subject: RE: [Simpleweb-Support] Problem when stress testing an application using SimpleWeb Hi Neil, Thanks for answering. We know thats part of the problem. But for the HTTP processing that doesnt mean that simple has to stop processing more requests comming from the same or other clients. It looks like the poller.close() does just that. One error and everything stops. Il continue checking to see exactly at what request/ratio it happens and exacly why. Regards And thanks henry -----Original Message----- From: sim...@li... [mailto:sim...@li...]On Behalf Of Niall Gallagher Sent: Tuesday, July 26, 2005 10:53 AM To: sim...@li... Subject: Re: [Simpleweb-Support] Problem when stress testing an application using SimpleWeb Hi Henry, The stream has been closed because of an error! An error has occured probably because the HTTP request contained a message body. At any rate there is some HTTP/1.1 violation with delimeters. Has your request got a message body that you have failed to read? Niall --- Henry Voyer <hen...@ge...> wrote: > Hi everyone > > I have been stress testing an extensive transaction > oriented application > that uses simple. > The stress test consist of using jmeter with around > 20 threads sending 500 > requests each to my server. > > After a couple of minutes the system stops. > > So i started putting logs and found the section > where the errors occurs. > The code : > > simple.http.Processor > > private void execute() throws InterruptedException > { > logger.debug("Reading a process"); > Object top = queue.dequeue(); > logger.debug("Processing " + > ToStringBuilder.reflectionToString(top)); > Poller poller = (Poller)top; > try{ > logger.debug("Who is being processed " + > ToStringBuilder.reflectionToString(proc)); > poller.process(proc); > logger.debug("Finishing pooler"); > }catch(Exception e){ > logger.error("Closing the pooler due to: ", > e); > poller.close(); > } > } > > The exception is: > > ERROR 2005-07-26 10:02:00,125 Processor.execute - > Closing the pooler due to: > java.io.IOException: Stream closed > at > java.io.PushbackInputStream.ensureOpen(PushbackInputStream.java:57) > at > java.io.PushbackInputStream.unread(PushbackInputStream.java:181) > at simple.http.PollerInputStream.available(Unknown > Source) > at simple.http.BasicPoller.process(Unknown Source) > at simple.http.Processor.execute(Unknown Source) > at simple.http.Processor.run(Unknown Source) > at java.lang.Thread.run(Thread.java:595) > > My configuration is: > > System.setProperty("simple.http.load.mapper", > custommapper); > System.setProperty("simple.http.poller", > "simple.http.GranularPoller"); > > MapperEngine engine = new MapperEngine(new > FileContext(), > serviceManager); > > ProtocolHandler handler = > HandlerFactory.getInstance(engine); > > > ProcessQueue.getInstance().resize(processingThreads); > > Connection connection = > ConnectionFactory.getConnection(handler); > > InetAddress netAddress = > InetAddress.getByName(myip); > serverSocket = new ServerSocket(port, backlog, > netAddress); > > connection.connect(serverSocket); > > > Has anyone experience this problem and what did you > do to fix this? > > > > ------------------------------------------------------- > SF.Net email is sponsored by: Discover Easy Linux > Migration Strategies > from IBM. Find simple to follow Roadmaps, > straightforward articles, > informative Webcasts and more! Get everything you > need to get up to > speed, fast. > http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click > _______________________________________________ > 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 ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Simpleweb-Support mailing list Sim...@li... https://lists.sourceforge.net/lists/listinfo/simpleweb-support ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Simpleweb-Support mailing list Sim...@li... https://lists.sourceforge.net/lists/listinfo/simpleweb-support |
From: Henry V. <hen...@ge...> - 2005-07-26 17:06:25
|
Hi Neil, Thanks for answering. We know thats part of the problem. But for the HTTP processing that doesnt mean that simple has to stop processing more requests comming from the same or other clients. It looks like the poller.close() does just that. One error and everything stops. Il continue checking to see exactly at what request/ratio it happens and exacly why. Regards And thanks henry -----Original Message----- From: sim...@li... [mailto:sim...@li...]On Behalf Of Niall Gallagher Sent: Tuesday, July 26, 2005 10:53 AM To: sim...@li... Subject: Re: [Simpleweb-Support] Problem when stress testing an application using SimpleWeb Hi Henry, The stream has been closed because of an error! An error has occured probably because the HTTP request contained a message body. At any rate there is some HTTP/1.1 violation with delimeters. Has your request got a message body that you have failed to read? Niall --- Henry Voyer <hen...@ge...> wrote: > Hi everyone > > I have been stress testing an extensive transaction > oriented application > that uses simple. > The stress test consist of using jmeter with around > 20 threads sending 500 > requests each to my server. > > After a couple of minutes the system stops. > > So i started putting logs and found the section > where the errors occurs. > The code : > > simple.http.Processor > > private void execute() throws InterruptedException > { > logger.debug("Reading a process"); > Object top = queue.dequeue(); > logger.debug("Processing " + > ToStringBuilder.reflectionToString(top)); > Poller poller = (Poller)top; > try{ > logger.debug("Who is being processed " + > ToStringBuilder.reflectionToString(proc)); > poller.process(proc); > logger.debug("Finishing pooler"); > }catch(Exception e){ > logger.error("Closing the pooler due to: ", > e); > poller.close(); > } > } > > The exception is: > > ERROR 2005-07-26 10:02:00,125 Processor.execute - > Closing the pooler due to: > java.io.IOException: Stream closed > at > java.io.PushbackInputStream.ensureOpen(PushbackInputStream.java:57) > at > java.io.PushbackInputStream.unread(PushbackInputStream.java:181) > at simple.http.PollerInputStream.available(Unknown > Source) > at simple.http.BasicPoller.process(Unknown Source) > at simple.http.Processor.execute(Unknown Source) > at simple.http.Processor.run(Unknown Source) > at java.lang.Thread.run(Thread.java:595) > > My configuration is: > > System.setProperty("simple.http.load.mapper", > custommapper); > System.setProperty("simple.http.poller", > "simple.http.GranularPoller"); > > MapperEngine engine = new MapperEngine(new > FileContext(), > serviceManager); > > ProtocolHandler handler = > HandlerFactory.getInstance(engine); > > > ProcessQueue.getInstance().resize(processingThreads); > > Connection connection = > ConnectionFactory.getConnection(handler); > > InetAddress netAddress = > InetAddress.getByName(myip); > serverSocket = new ServerSocket(port, backlog, > netAddress); > > connection.connect(serverSocket); > > > Has anyone experience this problem and what did you > do to fix this? > > > > ------------------------------------------------------- > SF.Net email is sponsored by: Discover Easy Linux > Migration Strategies > from IBM. Find simple to follow Roadmaps, > straightforward articles, > informative Webcasts and more! Get everything you > need to get up to > speed, fast. > http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click > _______________________________________________ > 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 ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Simpleweb-Support mailing list Sim...@li... https://lists.sourceforge.net/lists/listinfo/simpleweb-support |
From: Niall G. <gal...@ya...> - 2005-07-26 14:53:13
|
Hi Henry, The stream has been closed because of an error! An error has occured probably because the HTTP request contained a message body. At any rate there is some HTTP/1.1 violation with delimeters. Has your request got a message body that you have failed to read? Niall --- Henry Voyer <hen...@ge...> wrote: > Hi everyone > > I have been stress testing an extensive transaction > oriented application > that uses simple. > The stress test consist of using jmeter with around > 20 threads sending 500 > requests each to my server. > > After a couple of minutes the system stops. > > So i started putting logs and found the section > where the errors occurs. > The code : > > simple.http.Processor > > private void execute() throws InterruptedException > { > logger.debug("Reading a process"); > Object top = queue.dequeue(); > logger.debug("Processing " + > ToStringBuilder.reflectionToString(top)); > Poller poller = (Poller)top; > try{ > logger.debug("Who is being processed " + > ToStringBuilder.reflectionToString(proc)); > poller.process(proc); > logger.debug("Finishing pooler"); > }catch(Exception e){ > logger.error("Closing the pooler due to: ", > e); > poller.close(); > } > } > > The exception is: > > ERROR 2005-07-26 10:02:00,125 Processor.execute - > Closing the pooler due to: > java.io.IOException: Stream closed > at > java.io.PushbackInputStream.ensureOpen(PushbackInputStream.java:57) > at > java.io.PushbackInputStream.unread(PushbackInputStream.java:181) > at simple.http.PollerInputStream.available(Unknown > Source) > at simple.http.BasicPoller.process(Unknown Source) > at simple.http.Processor.execute(Unknown Source) > at simple.http.Processor.run(Unknown Source) > at java.lang.Thread.run(Thread.java:595) > > My configuration is: > > System.setProperty("simple.http.load.mapper", > custommapper); > System.setProperty("simple.http.poller", > "simple.http.GranularPoller"); > > MapperEngine engine = new MapperEngine(new > FileContext(), > serviceManager); > > ProtocolHandler handler = > HandlerFactory.getInstance(engine); > > > ProcessQueue.getInstance().resize(processingThreads); > > Connection connection = > ConnectionFactory.getConnection(handler); > > InetAddress netAddress = > InetAddress.getByName(myip); > serverSocket = new ServerSocket(port, backlog, > netAddress); > > connection.connect(serverSocket); > > > Has anyone experience this problem and what did you > do to fix this? > > > > ------------------------------------------------------- > SF.Net email is sponsored by: Discover Easy Linux > Migration Strategies > from IBM. Find simple to follow Roadmaps, > straightforward articles, > informative Webcasts and more! Get everything you > need to get up to > speed, fast. > http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click > _______________________________________________ > 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: Henry V. <hen...@ge...> - 2005-07-26 14:14:10
|
Hi everyone I have been stress testing an extensive transaction oriented application that uses simple. The stress test consist of using jmeter with around 20 threads sending 500 requests each to my server. After a couple of minutes the system stops. So i started putting logs and found the section where the errors occurs. The code : simple.http.Processor private void execute() throws InterruptedException { logger.debug("Reading a process"); Object top = queue.dequeue(); logger.debug("Processing " + ToStringBuilder.reflectionToString(top)); Poller poller = (Poller)top; try{ logger.debug("Who is being processed " + ToStringBuilder.reflectionToString(proc)); poller.process(proc); logger.debug("Finishing pooler"); }catch(Exception e){ logger.error("Closing the pooler due to: ", e); poller.close(); } } The exception is: ERROR 2005-07-26 10:02:00,125 Processor.execute - Closing the pooler due to: java.io.IOException: Stream closed at java.io.PushbackInputStream.ensureOpen(PushbackInputStream.java:57) at java.io.PushbackInputStream.unread(PushbackInputStream.java:181) at simple.http.PollerInputStream.available(Unknown Source) at simple.http.BasicPoller.process(Unknown Source) at simple.http.Processor.execute(Unknown Source) at simple.http.Processor.run(Unknown Source) at java.lang.Thread.run(Thread.java:595) My configuration is: System.setProperty("simple.http.load.mapper", custommapper); System.setProperty("simple.http.poller", "simple.http.GranularPoller"); MapperEngine engine = new MapperEngine(new FileContext(), serviceManager); ProtocolHandler handler = HandlerFactory.getInstance(engine); ProcessQueue.getInstance().resize(processingThreads); Connection connection = ConnectionFactory.getConnection(handler); InetAddress netAddress = InetAddress.getByName(myip); serverSocket = new ServerSocket(port, backlog, netAddress); connection.connect(serverSocket); Has anyone experience this problem and what did you do to fix this? |
From: Niall G. <gal...@ya...> - 2005-07-15 15:07:55
|
Hi Jan, I have tested Simple many times on Redhat, and it has worked every time without a problem. However, there is no upper limit on the number of connections it will accept before rejecting them. So if your server receives a large load over a short period of time file handles can be eaten up fairly quickly. What client are you using to connect to Simple? Also what packages/objects does your server use? If you can let me know I will have a look and see if there is a bug regarding file handles! Regards, Niall --- Jan Mikkelsen <ja...@ja...> wrote: > Hi > > > > I have been running out of filehandles since I > incorporated Simple into > my application. I'm running on Red Hat and max. > number of filehandles Is > 1024. My program uses 100 normally, but suddenly the > number starts > rising until it reaches 1024. I get lots of lines > like this with lsof: > > > > java-ak 10197 root 949u sock 0,0 > 53806164 can't > identify protocol > > java-ak 10197 root 950u sock 0,0 > 53806165 can't > identify protocol > > java-ak 10197 root 951u sock 0,0 > 53814036 can't > identify protocol > > java-ak 10197 root 952u sock 0,0 > 53814037 can't > identify protocol > > java-ak 10197 root 953u sock 0,0 > 53824098 can't > identify protocol > > java-ak 10197 root 954u sock 0,0 > 53814058 can't > identify protocol > > java-ak 10197 root 955u sock 0,0 > 53823442 can't > identify protocol > > > > Does anybody know if Simple can cause "leakage of > filehandles" ? > > > > Any input is welcome here :-) > > > > Jan Mikkelsen > > Niall Gallagher __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |
From: Jan M. <ja...@ja...> - 2005-07-15 12:47:45
|
Hi=20 =20 I have been running out of filehandles since I incorporated Simple into my application. I'm running on Red Hat and max. number of filehandles Is 1024. My program uses 100 normally, but suddenly the number starts rising until it reaches 1024. I get lots of lines like this with lsof:=20 =20 java-ak 10197 root 949u sock 0,0 53806164 can't identify protocol java-ak 10197 root 950u sock 0,0 53806165 can't identify protocol java-ak 10197 root 951u sock 0,0 53814036 can't identify protocol java-ak 10197 root 952u sock 0,0 53814037 can't identify protocol java-ak 10197 root 953u sock 0,0 53824098 can't identify protocol java-ak 10197 root 954u sock 0,0 53814058 can't identify protocol java-ak 10197 root 955u sock 0,0 53823442 can't identify protocol =20 Does anybody know if Simple can cause "leakage of filehandles" ? =20 Any input is welcome here :-) =20 Jan Mikkelsen |
From: Jan M. <jm...@ad...> - 2005-07-11 21:14:14
|
Hi Niall Thanks for your ideas. The LoggingOutputStream is just responsible for redirecting stdout and stderr. I think you are right about the client closing connections. I have found other bits of information that suggest that this is unavoidable and not a problem. I have not had any complains either, so it is propably ok. Jan |
From: Jan M. <jm...@ad...> - 2005-07-11 21:04:34
|
Michael, Thanks for the input! I have changed my code to send headers first. I don't think it has helped on the exceptions, but i'll keep the changes. /Jan |
From: Jan M. <jm...@ad...> - 2005-07-11 21:02:14
|
From: Jan M. <jm...@ad...> - 2005-07-11 21:00:58
|
From: Niall G. <gal...@ya...> - 2005-07-11 10:32:28
|
Hi Jan, This could be a number of things, I notice that you have wrapped the Respose.getOutputStream in a LoggingOutputStream, perhaps this is doing something! Anyway, this type of error can happen if the browser or client closes the connection while the data is being sent, it can also happen if the browser is refreshed as the content is being sent. The cause is that the client closes its side of the socket before the server has finished sending. There should be no problem on the server side! Regards Niall --- Jan Mikkelsen <jm...@ad...> wrote: > Hi > > I get this exception a lot: > 2005-07-10 09:09:35,674 WARN [Thread-22] > (LoggingOutputStream.java:167) - > java.net.SocketException: Connection reset > 2005-07-10 09:09:35,674 WARN [Thread-22] > (LoggingOutputStream.java:167) - at > java.net.SocketOutputStream.socketWrite(Unknown > Source) > 2005-07-10 09:09:35,675 WARN [Thread-22] > (LoggingOutputStream.java:167) - at > java.net.SocketOutputStream.write(Unknown Source) > 2005-07-10 09:09:35,675 WARN [Thread-22] > (LoggingOutputStream.java:167) - at > simple.http.MonitoredResponse.commit(Unknown Source) > 2005-07-10 09:09:35,675 WARN [Thread-22] > (LoggingOutputStream.java:167) - at > simple.http.MonitoredResponse.ensureCommit(Unknown > Source) > 2005-07-10 09:09:35,675 WARN [Thread-22] > (LoggingOutputStream.java:167) - at > simple.http.MonitoredResponse.getOutputChannel(Unknown > Source) > 2005-07-10 09:09:35,675 WARN [Thread-22] > (LoggingOutputStream.java:167) - at > simple.http.ResponseStream.getOutputStream(Unknown > Source) > 2005-07-10 09:09:35,676 WARN [Thread-22] > (LoggingOutputStream.java:167) - at > simple.http.ResponseStream.flushBuffer(Unknown > Source) > 2005-07-10 09:09:35,676 WARN [Thread-22] > (LoggingOutputStream.java:167) - at > simple.http.ResponseStream.close(Unknown Source) > > Here is my code: > > private void sendImage(Response resp, > ByteArrayOutputStream bo, Image image, > String imageName) throws IOException { > OutputStream out = resp.getOutputStream(bo.size() + > 1024); > bo.writeTo(out); > resp.set("Content-disposition", > "attachement;filename=" +imageName); > resp.set("Pragma", "no-cache"); > resp.set("Cache-Control", "no-cache"); > resp.set("Expires", "0"); > resp.set("Content-Type", image.getContentType()); > out.close(); > } > > I hope that somebody on this list can spot an error > here. > > Jan > > > ------------------------------------------------------- > This SF.Net email is sponsored by the 'Do More With > Dual!' webinar happening > July 14 at 8am PDT/11am EDT. We invite you to > explore the latest in dual > core and dual graphics technology at this free one > hour event hosted by HP, > AMD, and NVIDIA. To register visit > http://www.hp.com/go/dualwebinar > _______________________________________________ > Simpleweb-Support mailing list > Sim...@li... > https://lists.sourceforge.net/lists/listinfo/simpleweb-support > Niall Gallagher __________________________________ Do you Yahoo!? Yahoo! Mail - You care about security. So do we. http://promotions.yahoo.com/new_mail |
From: Michael \Luni\ L. <lun...@ya...> - 2005-07-11 05:41:49
|
Jan, Try setting all the headers first, before you write any data. In the HTTP response, the headers come first, and thus most servers require that same order. Luni --- Jan Mikkelsen <jm...@ad...> wrote: > Hi > > I get this exception a lot: > 2005-07-10 09:09:35,674 WARN [Thread-22] > (LoggingOutputStream.java:167) - java.net.SocketException: > Connection reset > 2005-07-10 09:09:35,674 WARN [Thread-22] > (LoggingOutputStream.java:167) - at > java.net.SocketOutputStream.socketWrite(Unknown Source) > 2005-07-10 09:09:35,675 WARN [Thread-22] > (LoggingOutputStream.java:167) - at > java.net.SocketOutputStream.write(Unknown Source) > 2005-07-10 09:09:35,675 WARN [Thread-22] > (LoggingOutputStream.java:167) - at > simple.http.MonitoredResponse.commit(Unknown Source) > 2005-07-10 09:09:35,675 WARN [Thread-22] > (LoggingOutputStream.java:167) - at > simple.http.MonitoredResponse.ensureCommit(Unknown Source) > 2005-07-10 09:09:35,675 WARN [Thread-22] > (LoggingOutputStream.java:167) - at > simple.http.MonitoredResponse.getOutputChannel(Unknown Source) > 2005-07-10 09:09:35,675 WARN [Thread-22] > (LoggingOutputStream.java:167) - at > simple.http.ResponseStream.getOutputStream(Unknown Source) > 2005-07-10 09:09:35,676 WARN [Thread-22] > (LoggingOutputStream.java:167) - at > simple.http.ResponseStream.flushBuffer(Unknown Source) > 2005-07-10 09:09:35,676 WARN [Thread-22] > (LoggingOutputStream.java:167) - at > simple.http.ResponseStream.close(Unknown Source) > > Here is my code: > > private void sendImage(Response resp, ByteArrayOutputStream > bo, Image image, > String imageName) throws IOException { > OutputStream out = resp.getOutputStream(bo.size() + 1024); > bo.writeTo(out); > resp.set("Content-disposition", "attachement;filename=" > +imageName); > resp.set("Pragma", "no-cache"); > resp.set("Cache-Control", "no-cache"); > resp.set("Expires", "0"); > resp.set("Content-Type", image.getContentType()); > out.close(); > } > > I hope that somebody on this list can spot an error here. > > Jan > > > ------------------------------------------------------- > This SF.Net email is sponsored by the 'Do More With Dual!' > webinar happening > July 14 at 8am PDT/11am EDT. We invite you to explore the > latest in dual > core and dual graphics technology at this free one hour event > hosted by HP, > AMD, and NVIDIA. To register visit > http://www.hp.com/go/dualwebinar > _______________________________________________ > Simpleweb-Support mailing list > Sim...@li... > https://lists.sourceforge.net/lists/listinfo/simpleweb-support > |
From: Jan M. <jm...@ad...> - 2005-07-10 20:08:25
|
Hi I get this exception a lot: 2005-07-10 09:09:35,674 WARN [Thread-22] (LoggingOutputStream.java:167) - java.net.SocketException: Connection reset 2005-07-10 09:09:35,674 WARN [Thread-22] (LoggingOutputStream.java:167) - at java.net.SocketOutputStream.socketWrite(Unknown Source) 2005-07-10 09:09:35,675 WARN [Thread-22] (LoggingOutputStream.java:167) - at java.net.SocketOutputStream.write(Unknown Source) 2005-07-10 09:09:35,675 WARN [Thread-22] (LoggingOutputStream.java:167) - at simple.http.MonitoredResponse.commit(Unknown Source) 2005-07-10 09:09:35,675 WARN [Thread-22] (LoggingOutputStream.java:167) - at simple.http.MonitoredResponse.ensureCommit(Unknown Source) 2005-07-10 09:09:35,675 WARN [Thread-22] (LoggingOutputStream.java:167) - at simple.http.MonitoredResponse.getOutputChannel(Unknown Source) 2005-07-10 09:09:35,675 WARN [Thread-22] (LoggingOutputStream.java:167) - at simple.http.ResponseStream.getOutputStream(Unknown Source) 2005-07-10 09:09:35,676 WARN [Thread-22] (LoggingOutputStream.java:167) - at simple.http.ResponseStream.flushBuffer(Unknown Source) 2005-07-10 09:09:35,676 WARN [Thread-22] (LoggingOutputStream.java:167) - at simple.http.ResponseStream.close(Unknown Source) Here is my code: private void sendImage(Response resp, ByteArrayOutputStream bo, Image image, String imageName) throws IOException { OutputStream out = resp.getOutputStream(bo.size() + 1024); bo.writeTo(out); resp.set("Content-disposition", "attachement;filename=" +imageName); resp.set("Pragma", "no-cache"); resp.set("Cache-Control", "no-cache"); resp.set("Expires", "0"); resp.set("Content-Type", image.getContentType()); out.close(); } I hope that somebody on this list can spot an error here. Jan |
From: Niall G. <gal...@ya...> - 2005-06-28 13:54:47
|
Hi, You can download the demo package from the following location. http://simpleweb.sourceforge.net/download/download.php?version=2.6&package=simple-demo-1.0.tar.gz The source for the standalone server used in the demo package can be extracted from the simple-demo-1.0.jar file. You can use the following command: jar -xvf simple-demo-1.0.jar In the source look for the Java file simple/demo/serve/Server.java, this contains the source for running and configuring the server. Look for a line in the Server.java file that contains the following text new VelocityContainer(); Change this to the following new GroovyContainer(Server.context); Also you might want to change the imports also. This should work fine! Niall Niall Gallagher __________________________________ Yahoo! Mail Stay connected, organized, and protected. Take the tour: http://tour.mail.yahoo.com/mailtour.html |
From: Maratib A. K. <mar...@jm...> - 2005-06-28 13:29:18
|
Hi there, i hv't found simple-demo-1.0 package in the download page (http://simpleweb.sf.net/download). can u mail it to me. Scondly if u can help in creating a standalone server using Simple which can serve Groovey pages as well as direct classes extended from BasicService or ActiveService, that will be highly appreicated. A student learning Simple :) Maratib ----- Original Message ----- From: <sim...@li...> To: <sim...@li...> Sent: Monday, June 27, 2005 8:16 PM Subject: Simpleweb-Support digest, Vol 1 #72 - 2 msgs > Send Simpleweb-Support mailing list submissions to > sim...@li... > > To subscribe or unsubscribe via the World Wide Web, visit > https://lists.sourceforge.net/lists/listinfo/simpleweb-support > or, via email, send a message with subject or body 'help' to > sim...@li... > > You can reach the person managing the list at > sim...@li... > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Simpleweb-Support digest..." > > > Today's Topics: > > 1. Service and Template serving (Maratib Ali Khan) > 2. Re: Service and Template serving (Niall Gallagher) > > --__--__-- > > Message: 1 > From: "Maratib Ali Khan" <ma...@ga...> > To: <sim...@li...> > Date: Mon, 27 Jun 2005 05:09:24 -0700 > Subject: [Simpleweb-Support] Service and Template serving > Reply-To: sim...@li... > > This is a multi-part message in MIME format. > > ------=_NextPart_000_009C_01C57AD6.62B905D0 > Content-Type: text/plain; > charset="iso-8859-1" > Content-Transfer-Encoding: quoted-printable > > hi there > > how can i make the simple web server to server velocity pages as well as = > normal services extended from BasicService > > > regards > > Maratib > > ------=_NextPart_000_009C_01C57AD6.62B905D0 > Content-Type: text/html; > charset="iso-8859-1" > Content-Transfer-Encoding: quoted-printable > > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> > <HTML><HEAD> > <META http-equiv=3DContent-Type content=3D"text/html; = > charset=3Diso-8859-1"> > <META content=3D"MSHTML 6.00.2900.2668" name=3DGENERATOR> > <STYLE></STYLE> > </HEAD> > <BODY bgColor=3D#ffffff> > <DIV><FONT face=3DArial size=3D2>hi there</FONT></DIV> > <DIV><FONT face=3DArial size=3D2></FONT> </DIV> > <DIV><FONT face=3DArial size=3D2>how can i make the simple web server to = > server=20 > velocity pages as well as normal services extended from=20 > BasicService</FONT></DIV> > <DIV><FONT face=3DArial size=3D2></FONT> </DIV> > <DIV><FONT face=3DArial size=3D2></FONT> </DIV> > <DIV><FONT face=3DArial size=3D2>regards</FONT></DIV> > <DIV><FONT face=3DArial size=3D2></FONT> </DIV> > <DIV><FONT face=3DArial size=3D2>Maratib</FONT></DIV> > <DIV> </DIV></BODY></HTML> > > ------=_NextPart_000_009C_01C57AD6.62B905D0-- > > > > --__--__-- > > Message: 2 > Date: Mon, 27 Jun 2005 06:45:28 -0700 (PDT) > From: Niall Gallagher <gal...@ya...> > Subject: Re: [Simpleweb-Support] Service and Template serving > To: sim...@li... > Reply-To: sim...@li... > > Hi, > > If you have a look at the simple-demo-1.0 package in > the download page (http://simpleweb.sf.net/download) > you can see a demo server implementation which serves > velocity templates. What you can do is take a look at > the services implemented here. > > Looking at the mapper.properties file you'll see path > references paired with service class names. This is > how Simple serves a resource using a Service. In here > you can place the name of your BasicService > implementation. Simple makes no distinction between > types of services it loads. For example: > > > package test; > > public class MyService extends BasicService { > > public MyService(Context context) { > super(context); > } > > // etc ... > } > > > And in mapper.properties you would add the following > entry: > > /path/*=test.MyService > > This should work! > > Regards > Niall > > > > > --- Maratib Ali Khan <ma...@ga...> wrote: > >> hi there >> >> how can i make the simple web server to server >> velocity pages as well as normal services extended >> from BasicService >> >> >> regards >> >> Maratib >> > > > Niall Gallagher > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > > > > --__--__-- > > _______________________________________________ > Simpleweb-Support mailing list > Sim...@li... > https://lists.sourceforge.net/lists/listinfo/simpleweb-support > > > End of Simpleweb-Support Digest |
From: Niall G. <gal...@ya...> - 2005-06-27 13:45:36
|
Hi, If you have a look at the simple-demo-1.0 package in the download page (http://simpleweb.sf.net/download) you can see a demo server implementation which serves velocity templates. What you can do is take a look at the services implemented here. Looking at the mapper.properties file you'll see path references paired with service class names. This is how Simple serves a resource using a Service. In here you can place the name of your BasicService implementation. Simple makes no distinction between types of services it loads. For example: package test; public class MyService extends BasicService { public MyService(Context context) { super(context); } // etc ... } And in mapper.properties you would add the following entry: /path/*=test.MyService This should work! Regards Niall --- Maratib Ali Khan <ma...@ga...> wrote: > hi there > > how can i make the simple web server to server > velocity pages as well as normal services extended > from BasicService > > > regards > > Maratib > Niall Gallagher __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |
From: Maratib A. K. <ma...@ga...> - 2005-06-27 12:11:26
|
hi there how can i make the simple web server to server velocity pages as well as = normal services extended from BasicService regards Maratib |
From: Niall G. <gal...@ya...> - 2005-05-18 20:03:50
|
Hello All, I have relased version 2.6, which contains some major enhancements for error reporting as well as features which make HTTP redirects and forwards much simpler. This release should greatly reduce debugging problems, which often arise when exceptions are not reported clearly. Niall Niall Gallagher __________________________________ Yahoo! Mail Mobile Take Yahoo! Mail with you! Check email on your mobile phone. http://mobile.yahoo.com/learn/mail |
From: Christophe R. <cr...@ac...> - 2005-05-18 19:21:02
|
Yes, the output stream is wrapped in a GZIPOutputStream: /** * Returns a GZIPOutputStream. * @see simple.http.Response#getOutputStream(int) */ public OutputStream getOutputStream(int size) throws IOException { return new GZIPOutputStream(resp.getOutputStream(), size); } Christophe > -----Original Message----- > From: sim...@li... [mailto:simpleweb- > sup...@li...] On Behalf Of Niall Gallagher > Sent: Wednesday, May 18, 2005 3:08 PM > To: sim...@li... > Subject: Re: [Simpleweb-Support] outputstream flush in BasicResource > > Hi Christophe, > > Ill have a look into it, I would imagine that this is > a problem with output buffering done. Do you override > or interfere with the Request.getOutputStream at any > point? > > Niall > > --- Christophe Roudet <cr...@ac...> wrote: > > Hi, > > > > I a using simpleweb to do some remote invocation > > with the Spring framework. > > Works like a charm, I just have a little problem on > > error processing: > > > > I have a class that extends ProtocolHandler, it just > > checks if the request > > is zipped and does the appropriate treatment if > > needed (wrapped the stream > > in a gzip stream). I then have a class that extends > > BasicService that simply > > do the method invocation. > > > > The only problem I have is with a corrupted zip > > request. An Exception is > > raised and processed by BasicResource: > > > > public void process(Request req, Response resp, > > Report report) throws > > Exception{ > > Format format = context.getFormat(); > > byte[] page = format.getMessage( > > context, req.getURI(), report); > > > > resp.setCode(report.getCode()); > > resp.setText(report.getText()); > > resp.setDate("Date", > > System.currentTimeMillis()); > > resp.setContentLength(page.length); > > resp.set("Content-Type", > > format.getMimeType()); > > resp.getOutputStream().write(page); > > // -- > > resp.getOutputStream().flush(); // flush added > > > > resp.getOutputStream().close(); > > } > > > > I have added a flush on the stream otherwise the > > response is not received by > > the client. > > I don't know if it is a bug but it fixed my little > > problem. > > > > Christophe > > > > > > > > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by Oracle Space > > Sweepstakes > > Want to be the first software developer in space? > > Enter now for the Oracle Space Sweepstakes! > > > http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click > > _______________________________________________ > > Simpleweb-Support mailing list > > Sim...@li... > > > https://lists.sourceforge.net/lists/listinfo/simpleweb-support > > > > Niall Gallagher > > > > __________________________________ > Do you Yahoo!? > Read only the mail you want - Yahoo! Mail SpamGuard. > http://promotions.yahoo.com/new_mail > > > ------------------------------------------------------- > This SF.Net email is sponsored by Oracle Space Sweepstakes > Want to be the first software developer in space? > Enter now for the Oracle Space Sweepstakes! > http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click > _______________________________________________ > Simpleweb-Support mailing list > Sim...@li... > https://lists.sourceforge.net/lists/listinfo/simpleweb-support |
From: Niall G. <gal...@ya...> - 2005-05-18 19:08:13
|
Hi Christophe, Ill have a look into it, I would imagine that this is a problem with output buffering done. Do you override or interfere with the Request.getOutputStream at any point? Niall --- Christophe Roudet <cr...@ac...> wrote: > Hi, > > I a using simpleweb to do some remote invocation > with the Spring framework. > Works like a charm, I just have a little problem on > error processing: > > I have a class that extends ProtocolHandler, it just > checks if the request > is zipped and does the appropriate treatment if > needed (wrapped the stream > in a gzip stream). I then have a class that extends > BasicService that simply > do the method invocation. > > The only problem I have is with a corrupted zip > request. An Exception is > raised and processed by BasicResource: > > public void process(Request req, Response resp, > Report report) throws > Exception{ > Format format = context.getFormat(); > byte[] page = format.getMessage( > context, req.getURI(), report); > > resp.setCode(report.getCode()); > resp.setText(report.getText()); > resp.setDate("Date", > System.currentTimeMillis()); > resp.setContentLength(page.length); > resp.set("Content-Type", > format.getMimeType()); > resp.getOutputStream().write(page); > // -- > resp.getOutputStream().flush(); // flush added > > resp.getOutputStream().close(); > } > > I have added a flush on the stream otherwise the > response is not received by > the client. > I don't know if it is a bug but it fixed my little > problem. > > Christophe > > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by Oracle Space > Sweepstakes > Want to be the first software developer in space? > Enter now for the Oracle Space Sweepstakes! > http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click > _______________________________________________ > Simpleweb-Support mailing list > Sim...@li... > https://lists.sourceforge.net/lists/listinfo/simpleweb-support > Niall Gallagher __________________________________ Do you Yahoo!? Read only the mail you want - Yahoo! Mail SpamGuard. http://promotions.yahoo.com/new_mail |
From: Christophe R. <cr...@ac...> - 2005-05-18 15:10:24
|
Hi, I a using simpleweb to do some remote invocation with the Spring framework. Works like a charm, I just have a little problem on error processing: I have a class that extends ProtocolHandler, it just checks if the request is zipped and does the appropriate treatment if needed (wrapped the stream in a gzip stream). I then have a class that extends BasicService that simply do the method invocation. The only problem I have is with a corrupted zip request. An Exception is raised and processed by BasicResource: public void process(Request req, Response resp, Report report) throws Exception{ Format format = context.getFormat(); byte[] page = format.getMessage( context, req.getURI(), report); resp.setCode(report.getCode()); resp.setText(report.getText()); resp.setDate("Date", System.currentTimeMillis()); resp.setContentLength(page.length); resp.set("Content-Type", format.getMimeType()); resp.getOutputStream().write(page); // -- resp.getOutputStream().flush(); // flush added resp.getOutputStream().close(); } I have added a flush on the stream otherwise the response is not received by the client. I don't know if it is a bug but it fixed my little problem. Christophe |
From: Niall G. <gal...@ya...> - 2005-05-18 12:04:49
|
Hi Padraic, Yes, I have had a look, and the PatternResolver does not acquire the properties directly from getProperties. I must add a Locator.getInputStream method to make it easier to acquire the properties from JAR files located in the classpath via the ClassLoader.getResourceAsStream method. Regards Niall --- Padraic Renaghan <pre...@cs...> wrote: > Just tried that... Doesn't work. But it got me > closer... > > Issue seems to be that PatternMapper acquires the > mapper.properties file > via getFile() > and/or getLocation and not getProperties(). > > Overriding getFile did the trick. > > public File getFile(String name) throws > LocateException { > URL url = > this.getClass().getClassLoader().getResource(name); > if (url != null) { > String path = url.toExternalForm(); > if (path.startsWith("file:")) { > return new File(path.substring(5)); > } > } > return super.getFile(name); > }¨ > > Thanks. > > > > > > > > Niall Gallagher <gal...@ya...> > Sent by: > sim...@li... > 05/17/2005 02:40 PM > Please respond to simpleweb-support > > > To: > sim...@li... > cc: > Subject: Re: [Simpleweb-Support] > PatternMapper load from classpath > > > Hi Padraic, > > Subclass the Context object and re-write the > getLocator so that it acquires the properties from > the > classpath. Done! > > Niall > > --- Padraic Renaghan <pre...@cs...> wrote: > > What is the best way for me to get PatternMapper > to > > load mapper.properties > > from the classpath? > > I thought about extending it, but its all final > and > > private. > > Other ideas? > > > > Thanks, > > Padraic > > > > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by Oracle Space > > Sweepstakes > > Want to be the first software developer in space? > > Enter now for the Oracle Space Sweepstakes! > > > http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click > > _______________________________________________ > > Simpleweb-Support mailing list > > Sim...@li... > > > https://lists.sourceforge.net/lists/listinfo/simpleweb-support > > > > Niall Gallagher > > > > __________________________________ > Do you Yahoo!? > Yahoo! Mail - now with 250MB free storage. Learn > more. > http://info.mail.yahoo.com/mail_250 > > > ------------------------------------------------------- > This SF.Net email is sponsored by Oracle Space > Sweepstakes > Want to be the first software developer in space? > Enter now for the Oracle Space Sweepstakes! > http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click > _______________________________________________ > Simpleweb-Support mailing list > Sim...@li... > https://lists.sourceforge.net/lists/listinfo/simpleweb-support > > > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by Oracle Space > Sweepstakes > Want to be the first software developer in space? > Enter now for the Oracle Space Sweepstakes! > http://ads.osdn.com/?ad_idt12&alloc_id344&op=click > _______________________________________________ > Simpleweb-Support mailing list > Sim...@li... > https://lists.sourceforge.net/lists/listinfo/simpleweb-support > Niall Gallagher __________________________________ Do you Yahoo!? Take Yahoo! Mail with you! Get it on your mobile phone. http://mobile.yahoo.com/maildemo |
From: Padraic R. <pre...@cs...> - 2005-05-18 04:41:26
|
Just tried that... Doesn't work. But it got me closer... Issue seems to be that PatternMapper acquires the mapper.properties file=20 via getFile() and/or getLocation and not getProperties(). Overriding getFile did the trick. public File getFile(String name) throws LocateException { URL url =3D this.getClass().getClassLoader().getResource(name); if (url !=3D null) { String path =3D url.toExternalForm(); if (path.startsWith("file:")) { return new File(path.substring(5)); } } return super.getFile(name); }=A8 Thanks. Niall Gallagher <gallagher=5F...@ya...> Sent by: sim...@li... 05/17/2005 02:40 PM Please respond to simpleweb-support =20 To: sim...@li... cc:=20 Subject: Re: [Simpleweb-Support] PatternMapper load from cla= sspath Hi Padraic, Subclass the Context object and re-write the getLocator so that it acquires the properties from the classpath. Done! Niall --- Padraic Renaghan <pre...@cs...> wrote: > What is the best way for me to get PatternMapper to > load mapper.properties > from the classpath? > I thought about extending it, but its all final and > private. > Other ideas? >=20 > Thanks, > Padraic >=20 >=20 >=20 > ------------------------------------------------------- > This SF.Net email is sponsored by Oracle Space > Sweepstakes > Want to be the first software developer in space? > Enter now for the Oracle Space Sweepstakes! > http://ads.osdn.com/?ad=5Fid=3D7412&alloc=5Fid=3D16344&op=3Dclick > =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F= =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F > Simpleweb-Support mailing list > Sim...@li... > https://lists.sourceforge.net/lists/listinfo/simpleweb-support >=20 Niall Gallagher =20 =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F= =5F=5F=5F=5F=5F=5F=5F=5F=5F=20 Do you Yahoo!?=20 Yahoo! Mail - now with 250MB free storage. Learn more.=20 http://info.mail.yahoo.com/mail=5F250 ------------------------------------------------------- This SF.Net email is sponsored by Oracle Space Sweepstakes Want to be the first software developer in space? Enter now for the Oracle Space Sweepstakes! http://ads.osdn.com/?ad=5Fid=3D7412&alloc=5Fid=3D16344&op=3Dclick =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F= =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F Simpleweb-Support mailing list Sim...@li... https://lists.sourceforge.net/lists/listinfo/simpleweb-support |
From: Niall G. <gal...@ya...> - 2005-05-17 18:40:19
|
Hi Padraic, Subclass the Context object and re-write the getLocator so that it acquires the properties from the classpath. Done! Niall --- Padraic Renaghan <pre...@cs...> wrote: > What is the best way for me to get PatternMapper to > load mapper.properties > from the classpath? > I thought about extending it, but its all final and > private. > Other ideas? > > Thanks, > Padraic > > > > ------------------------------------------------------- > This SF.Net email is sponsored by Oracle Space > Sweepstakes > Want to be the first software developer in space? > Enter now for the Oracle Space Sweepstakes! > http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click > _______________________________________________ > Simpleweb-Support mailing list > Sim...@li... > https://lists.sourceforge.net/lists/listinfo/simpleweb-support > Niall Gallagher __________________________________ Do you Yahoo!? Yahoo! Mail - now with 250MB free storage. Learn more. http://info.mail.yahoo.com/mail_250 |
From: Padraic R. <pre...@cs...> - 2005-05-16 17:56:49
|
What is the best way for me to get PatternMapper to load mapper.properties from the classpath? I thought about extending it, but its all final and private. Other ideas? Thanks, Padraic |