Hi.
Not a direct answer, but did you look at the webdav app ?
At least for ideas.
Robert Drescher wrote:
[...]
I want a servlet to perform file uploads and to store the files in the local
filesystem.
-
To unsubscribe,
On Sat, Dec 13, 2008 at 1:27 AM, Caldarale, Charles R
chuck.caldar...@unisys.com wrote:
From: Christopher Schultz [mailto:ch...@christopherschultz.net]
Subject: Re: Tomcat 5.5 manager deploy context descriptor
Is there a way to see, if my context.xml is actually loaded
anywhere?
Hello users,
I'm trying to find the best practice way for implementing the following:
I want a servlet to perform file uploads and to store the files in the local
filesystem. This part is not that hard to do as i'm currently writing into
the javax.servlet.context.tempdir.
The problem is that i
Disclaimer: the following results were obtained by using Unix tools to
extract the official zip and targz binary downloads.
On 12.12.2008 21:31, andrew wrote:
* If you want to use Tomcat as a Windows service, use the .zip Tomcat
* distribution, not the .tar.gz distribution.
I think it is
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Stefan,
Schuster Stefan wrote:
As far as I can tell, the XML-Beans generated code works well - even if
The stream is closed after reading, this should be no problem as the next
request will submit a new stream, right?
Yes, your servlet can close
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Flemion,
Flemion Shafeeq wrote:
We restrict IP addresses to our application using RemoteAddressValve.
But we have a requirement of redirecting the request to a customized html
static page when we get request from such denied IP's.
How do i do
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Billy,
Billy Ng wrote:
I am using Tomcat 5.5 on Linux 64-bit. The server always has lots of
hits so I increase the maxThreads from 300 to 500 in server.xml.
From the thread monitor, I saw mostly about 350 threads were used.
Is this steady use or
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Kees Jan,
Kees Jan Koster wrote:
JVM
Free memory: 38.13 MB Total memory: 111.18 MB Max memory: 1365.37 MB
As David pointed out, this is probably measured against the committed
memory, not the max memory.
I believe that committed and total are
The problem with this approach is that when you upgrade the war file
the files will be deleted.
I believe It is better to save the files outside the web app and
deliver them either with a symbolic link from within your war file or
using a reader servlet.
Yuval Perlov
www.r-u-on.com
On
To add to what Alan said:
If I create a new Eclipse Dynamic Web Project, and name it MyWebApp during the
project setup, in the first window it has a drop down for Target Runtime. That
should be your installed Tomcat on your desktop development machine; Windows in my
case. It starts out with
Exactly. Since we are supposed to write an application that's running
without extracting the war, Steves approach was my first try, but it's not
working that way :(
Also, symlinks are a good way in posix systems, but then the app is not
platform independent anymore.
The approach of a reader
On Sun, Dec 14, 2008 at 11:29 AM, Robert Drescher
robert.dresc...@gmail.com wrote:
In other words, if /App/Reader is my reader servlet, can I include an
image into jsp with img src=/App/Reader?file=image.jpg /?
Of course, it's just a URL.
Better, just make it img src=/App/Reader/image.jpg /
The image would work because it is a separate hit (not embedded).
For general info, if you did want to embed you would use jsp:include
You can also have the servlet map to something like /files/* and parse
the path to find out which file is being requested - this makes the
file url feel
There are various posts, but among them I can't find an answer. I hope there
is one.
I am Trying to do a Weblogic EJB t3 lookup from a web app running in Tomcat
5.5. After deploying WL 10.3 jars in Tomcat's common/lib area, I can
authenticate with WL's security Realm, but when I do an
Hi.
What if user-a uploads a file called abc.jpg and then user-b uploads a
file called abc.jpeg ? Who wins ?
Worse, they do it at the same time..
;-)
-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional
André Warnier wrote:
Hi.
What if user-a uploads a file called abc.jpg and then user-b uploads a
file called abc.jpeg ? Who wins ?
Worse, they do it at the same time..
;-)
Ooops, I meant abc.jpg both times of course.
-
To
On Sun, Dec 14, 2008 at 12:45 PM, André Warnier a...@ice-sa.com wrote:
What if user-a uploads a file called abc.jpg and then user-b uploads a
file called abc.jpg ? Who wins ?
Hopefully, everyone wins, since the Klever Koder has checked first
to be sure an existing file isn't being overwritten
That seems like the usual race condition problem to me. Hopefully one of them
will get an error, at worst, and it won't silently overwrite the file with the
one from whoever won the race.
André Warnier wrote:
André Warnier wrote:
Hi.
What if user-a uploads a file called abc.jpg and then
I had to do something like that myself. Here's a little method that creates
a folderpath for each unique session.
public File getTempDir(HttpSession hsess)
{
String path = hsess.getServletContext().getRealPath(/); // /
context root of the application
return new File(path,
Ok, thanks to all, I finished my Reader Servlet.
I created a work dir which has to be included into the webapps.policy so
that webapps can read and write to it.
My reader servlet accepts a param file so far, since i haven't figured out
how to do the mapping and parsing to do the
On Sun, Dec 14, 2008 at 1:47 PM, Robert Drescher
robert.dresc...@gmail.com wrote:
My reader servlet accepts a param file so far, since i haven't figured out
how to do the mapping and parsing to do the /WebApp/files/filename.jpg so
far. But that should be a quick fix.
see
Hi. I added a second application, but am unable to login to it because of
password digest issues. Stepping into RealmBase.java this is what I find:
When I log in to the primary application (under ROOT) the password is
test and the password saved in the database is the sha1 which is
kazukin6 schrieb am 13.12.2008 um 18:15:33 (-0800):
1) there is maxThreads=100 in context.xml
2) sending 100 simultaneous requests to one servlet, for example ab.exe -n
100 -c 100 {address}
3) in the servlet's own log for performance it shows around only 200-500 ms
per request
4) in the
Hi all:
When I browse http://localhost:8180/geant2-java-rrd-ma the following is
returned:
HTTP Status 404 -
type Status report
message
description The requested resource () is not available.
Nevermind, I figured it out. In the second request to login, there was an
extra line, so the password was actually test\r\n.
--- On Sun, 12/14/08, removeps-gro...@yahoo.com removeps-gro...@yahoo.com
wrote:
From: removeps-gro...@yahoo.com removeps-gro...@yahoo.com
Subject: unable to
Hsuan-
could you post your
.\WEB-INF\web.xml
.\META-INF\Applicationcontext.xml
Martin
__
Disclaimer and confidentiality note
Everything in this e-mail and any attachments relates to the official business
of Sender. This transmission is of a
From: hsuan [mailto:hs...@nchc.org.tw]
Subject: HTTP Status 404 with Apache Tomcat/5.5
What's the problem ! How can I to solve the problem?
http://marc.info/?l=tomcat-userm=122823060425367w=2
http://www.catb.org/~esr/faqs/smart-questions.html
- Chuck
THIS COMMUNICATION MAY CONTAIN
MessageDigester.digest() returns an array of bytes
this will produce a DataType conversion error to/from String without
constructing a new String datatype
the bigger problem is digest does 'padding' so the only way to get back the
original string is:
keep the MessageDigest in a local instance
Server returned HTTP response code: 408 for URL: https...j_security_check
In my testing I get the following error:
Server returned HTTP response code: 408 for URL:
https://localhost:6143/mywebservice/action/j_security_check
408 = request time out.
So the question is how can a client
From: removeps-gro...@yahoo.com [mailto:removeps-gro...@yahoo.com]
Subject: Server returned HTTP response code: 408 for URL:
https...j_security_check
Server returned HTTP response code: 408 for URL:
https://localhost:6143/mywebservice/action/j_security_check
You're not allowed to reference
But how does this work through code? My initial request is to
http://localhost/mywebservice/file.do; (and all this is through Java code
similar to below).
Tomcat redirects the request to the login page specified in web.xml
http://localhost/mywebservice/login.html;. Then either Tomcat returns
Hi, Michael !
I suppose Connection Times (ms) table section actually describes
individual requests? And Percentage of the requests served within a certain
time (ms) as well?
For me it seems that concurrency is hardly working at all, but threads are
blocked (or waiting) somewhere outside of
Hi all :
When I using http://localhost:8180/geant2-java-rrd-ma/ to browser ,it's show
the error message as follows :
HTTP Status 500 -
_
type Exception report
message
description The server encountered an internal error () that prevented it
from fulfilling this request.
From: removeps-gro...@yahoo.com [mailto:removeps-gro...@yahoo.com]
Subject: RE: Server returned HTTP response code: 408 for URL:
https...j_security_check
The request input stream is set to
j_username=usernamej_password=password.
Good so far.
But to what URL should the above response be
Partha Goswami wrote:
Actually, If anyone use Tomcat in Solaris Zones, then, /usr/local or /usr
all is come read only mode, by default. so, Its need to know, Which oS
On Sat, Dec 13, 2008 at 6:32 PM, David Smith d...@cornell.edu wrote:
I think the important message is here:
It should be a POST request to /[webapp]/j_security_check,
and include the JSESSIONID cookie set by the server when the
login page was returned.
Thanks, this seems to be the issue. There is a call to
org.apache.catalina.connector.Request.setRequestedSessionId(String id) from
Nevermind, I see that JSESSIONID is added to the response automatically from
Tomcat.
The code
System.out.println(connection.getHeaderField(Set-Cookie));
prints
JSESSIONID=56136B3CE4CC657DD36C226E264A97AD; Path=/mywebservice; Secure
So now I think I just have to include that cookie in every
From: removeps-gro...@yahoo.com [mailto:removeps-gro...@yahoo.com]
Subject: RE: Server returned HTTP response code: 408 for URL:
https...j_security_check
How does the client get the JSESSIONID?
It's normally sent as a cookie; if the client has disabled cookies, the login
page servlet or JSP
Oh, Then, type
# uname -a
and post out put here
On Mon, Dec 15, 2008 at 10:34 AM, Partha parthat...@gmail.com wrote:
Partha Goswami wrote:
Actually, If anyone use Tomcat in Solaris Zones, then, /usr/local or /usr
all is come read only mode, by default. so, Its need to know, Which oS
From: hsuan [mailto:hs...@nchc.org.tw]
Subject: HTTP Status 500 problem with tomcat5.5
Much better post this time - you actually supplied real information, but you
didn't tell us the JVM you're using, nor the platform you're running on.
org.apache.jasper.JasperException: Exception in JSP:
Partha Goswami wrote:
Oh, Then, type
# uname -a
and post out put here
On Mon, Dec 15, 2008 at 10:34 AM, Partha parthat...@gmail.com wrote:
Partha Goswami wrote:
Actually, If anyone use Tomcat in Solaris Zones, then, /usr/local or
/usr
all is come read only mode, by default.
Hi All,
I have a requirement to disable one default functionality in tomcat which is
mentioned as below,
URL: http://tomcat.apache.org/tomcat-6.0-doc/config/host.html
Section: Automatic Application Deployment
Description snippet: If you are using the standard Host implementation, the
following
42 matches
Mail list logo