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
followin
Partha Goswami wrote:
>
> Oh, Then, type
> # uname -a
> and post out put here
>
> On Mon, Dec 15, 2008 at 10:34 AM, Partha wrote:
>
>>
>>
>>
>> Partha Goswami wrote:
>> >
>> > Actually, If anyone use Tomcat in Solaris Zones, then, /usr/local or
>> /usr
>> > all is come read only mode, by def
> 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:
Oh, Then, type
# uname -a
and post out put here
On Mon, Dec 15, 2008 at 10:34 AM, Partha 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
> >
> > On Sa
> 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
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
> 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
parseSession
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 wrote:
>
>> I think the important message is here:
>>
>> > /usr/local/
> 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=username&j_password=password".
Good so far.
> But to what URL should the above respo
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.
excepti
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 d
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 retu
> 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 refer
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 authentica
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 v
> 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-user&m=122823060425367&w=2
http://www.catb.org/~esr/faqs/smart-questions.html
- Chuck
THIS COMMUNICATION MAY CONTAIN CO
Hsuan-
could you post your
.\WEB-INF\web.xml
.\META-INF\context.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 confidential natur
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
wrote:
> From: removeps-gro...@yahoo.com
> Subject: unable to login to second application because of password di
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.
Apache
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 th
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
"a74
On Sun, Dec 14, 2008 at 1:47 PM, Robert Drescher
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 HttpServletRequest.getPathInfo()
--
Hass
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 /WebApp/files/fi
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, h
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 u
On Sun, Dec 14, 2008 at 12:45 PM, André Warnier 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 :-)
--
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.
-
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 additio
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
Initial
The image would work because it is a separate hit (not "embedded").
For general info, if you did want to embed you would use
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 more nati
Dear Chris,
I just wrote a small post about memory leaks
http://java-monitor.com/forum/showthread.php?t=150 In that post I
also
talk about the difference between maximum memory and committed
memory.
Note that in the memory usage graph you show, the leak is certainly
not
"easy to spot".
On Sun, Dec 14, 2008 at 11:29 AM, Robert Drescher
wrote:
> In other words, if "/App/Reader" is my reader servlet, can I include an
> image into jsp with ?
Of course, it's just a URL.
Better, just make it
(or /App/images/image.jpg, or whatever).
HTH,
--
Hassan Schroeder --
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 servl
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
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 Dec
Send reply to: Tomcat Users List
Date sent: Sun, 14 Dec 2008 12:56:17 +0100
From: Robert Drescher
To: users@tomcat.apache.org
Subject:File system resource for static content
> Hello users,
> I'm trying to find the best practice way for implementing the
> following: I want a s
-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 "t
-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
-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
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 clos
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 worth
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, e-mail:
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 nee
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
> > > a
44 matches
Mail list logo