Hi
Can someone tell me where to find an example with tomcat 5.5 embedded?
It seems there is nothing...
Or even better: Is there a way to use the http(s) connector without tomcat?
I want to direct ALL requests to ONE pure servlet and there do not need most
parts of tomcat.
Regards,
Steffen
Hi
1. Question
I need to store some information which differs for each request.
My problem: I need it at a place where I have no access to the request, the
response or the session.
Now, I can also do it using ThreadLocal variables, but these take time.
I would prefer to use a custom Thread
Hi
I've got tomcat 4 running on a win2003 server and it spits it's log
messages to a catalina.out file. Once a day I want to rotate the log - copy
it, zip up the copy and truncate the original. I do this on linux with a
simple shell script. Tomcat is running during all of this and has its mitts
See http://www.fckeditor.net/
-Ursprüngliche Nachricht-
Von: David Wall [mailto:[EMAIL PROTECTED]
Gesendet: Freitag, 11. Februar 2005 19:15
An: Tomcat Users List
Betreff: Re: HTMLArea and SpellCheck plugin
Anybody successfully implemented a tomcat webapp that uses the
Hi
Just because I'm interested:
If I had more than one certificate in my keystore, which
certificate would be used by tomcat for https? Is there a way
to specify which certificate to use?
I don't know.
But you can use different keystores:
Use the following attributes for CoyoteConnector:
Hi
Wait a second...Tomcat will determine which cert to send down
based upon the IP address that the browser went to? I guess
that makes sense...so does the web server never get to see
what domain the browser was looking up to come to the site,
or is that info available?
That info is
Hi
If we do this and get that new certificate into the keystore
used by our Tomcat 4, will everything be fine, or will Tomcat
present 2 certificates to users accessing the site? I mean,
will it correctly present the certificate for the old domain
to the user when they go to the old
Hi
I have this weird problem with an instance of tomcat 4.1.30
running on Windows Server 2003. Tomcat output (log messages)
is directed into CATALINA_HOME/logs/catalina.out. Every 4
hours a little log rotation script runs while tomcat is
active. It zips catalina.out into an archived logs
Hi
the number of threads will depend on the size of your
machine, but to support many concurrent users, you will want
to turn off keep alive connections, as these will have the
opposite effect.
Wouldn't it make more sense to enable keep alive connections and increase
the thread count - if
Hi
I can't find anything specific to my question in the FAQs but I'm trying
to set up a tomcat server with virtual hosts using https. I have two ips,
each with its own SSL cert as I understand is necessary for https.
What I want is to have each ip use port 443 with its own document tree
Hi
When i do a check on the back ground threads i see many jvm threads
running ..
27288 pts/0S 0:34 /usr/local/j2sdk1.4.2_06/bin/java -Xms700m
-Xmx800m -XX:+UseConcMarkSweepGC -
27289 pts/0S 0:01 /usr/local/j2sdk1.4.2_06/bin/java -Xms700m
-Xmx800m -XX:+UseConcMarkSweepGC -
Hi
I have a situation, where a lot of threads seem to stop working right in my
servlet.
From debug output, I know they entered the servlet but never leave it.
My problem is that this never occurs on our development system, but only on
the production system.
I need to stop tomcat end even do a
Sorry,
http://learn.to/quote
Regards,
Steffen
-Ursprüngliche Nachricht-
Von: Phillip Mangwiro [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 10. November 2004 08:06
An: Tomcat Users List
Betreff: Re: wrong version 49.0
Wei Wei wrote:
After installed 5.0.29 TC, I tried to bring up
Hi
Get tcpview pro (it's free) and check what binds this port.
Regards,
Steffen
-Ursprüngliche Nachricht-
Von: Stephen Charles Huey [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 10. November 2004 22:01
An: Tomcat User
Betreff: problem - BindException: JVM_Bind: 80
I'm seeing a
Hi
... and placed in a folder called web-inf/classes and I have placed
sevlet.jar file in web-inf/lib folder.
First, to start read the docs.
Second, to start I would prefer a stable release, go back to 5.0.
Third, tomcats libs are fine where they are. Don't copy them, remove the
copies.
Fourth,
Hi
Hi, I am use the File Upload. I need to read the whole file contents in a
String buffer.
Why into a String buffer?
This is propably a charset encoding problem.
Do NOT read it into a stringbuffer.
See FileWriter documentation:
FileWriter is meant for writing streams of characters. For
Hi
Does Tomcat support the headers: X-Forwarded-For, X-Forwarded-Host and
X-Forwarded-Server when running behind a proxy?
I'm running Tomcat 5.0.25 behind Apache 1.3/mod_proxy and doesn't look
like Tomcat uses these headers.
What would you expect tomcat to do when these headers are present?
Hi
This is much more than a character encoding problem.
No.
Daxin simply wanted to upload binary data (he even mentioned images...).
So he didn't want to extract text from word documents.
What he did was, he loaded binary data, converted that to a string and
finally wrote the string to a file.
Thanks. It works.
Fine.
But what? Switching to FileOutputStream or just using item.write?
(They should both work, though the second seems to make more sence. Just
asking for interest.)
Regards,
Steffen
smime.p7s
Description: S/MIME cryptographic signature
Hi
I'm using the firefox browser and have no proxy definitions.
First try another browser.
Then, maybe your tomcat is configured to use cookies as session ids and your
browser is configured not to accept cookies?
However, since there is no different code for local and remote clients, I
cannot
Hi
I am using jakarta-tomcat-5.0.27 standalone on windows xp pro.
When I connect from a browser on the same host as Tomcat, the session
listener is invoked on every request to to tomcat from the client...
Are you sure? This doesn't happen to me.
And as tomcat usually doesn't care about wether
Hi
How do I deal with a situation where a user logged in and found something
interesting on my site and decided to give the URL address (with jsessionid)
of the page to his/her friend? Since the URL has the session id of the
sender, the receiver clicks on the link and will have access to the
Hi
import Account;
No. No. No.
Import is used to make classes of foreign packages available.
Classes in the same package are always available.
And you should never have any package-less class, hence no problems.
Regards,
Steffen
smime.p7s
Description: S/MIME cryptographic signature
Hi
So is the best advice to go with what I know best (and can be sure my
websites run under) and install old versions.
Or to go with the very latest of everything.
I would recommend to use some recent version. Not the lastest, because they
are alpha/beta versions.
Simply try it and if it
Hi
Is there any place where I can find information about embedded tomcat?
I mean beyond the docs - Examples and such?
Regards,
Steffen
smime.p7s
Description: S/MIME cryptographic signature
Hi
When I open a new browser, I am getting session data in the new browser
that was in another browser.
Actually, at least for my IE it works as follows:
If I spawn a new browser window pressing ctrl-n, it is seen as a second view
for the same content and as such, IE keeps the cookies and
Hi
The backend apache does not only serve static pages like GIF or JS. It
also handles PHP, Perl-scripts and some SSL. This can not be done with
tomcat.
Tomcat CAN do SSL just fine.
For some seldomly used php and perl-scripts, tomcat is also just fine.
But I agree, if lots of php and perl is
Hi
For your problem, remove apache completely, use tomcat standalone and use
squid as frontend cache.
As static content will also be cached by squid, you can completely remove
the overhead of apache and mod_jk.
Regrads,
Steffen
smime.p7s
Description: S/MIME cryptographic signature
Hi
Actually, I'm a big advocate against staying in HTTPS, because of the
overhead. However, this is a problem with Tomcat, because in the 4.x and
5.x lines it was decided by someone that if a session started in HTTPS it is
only valid in HTTPS (basically, the session cookie is turned into a
Hi
However, here's an interesting/fairly recent thread:
http://marc.theaimsgroup.com/?l=tomcat-userm=106036177509367w=2
30K file:
Server #of Samples Average Deviation Median
Apache 1000 182ms 277 90
Tomcat 1000 185ms 249 80
And that way 4.1.27, over which 5.x
Hi
If I write a java program to list the services and run the program from
the command line, I can see the newly added service right away.
Modify your program to list the services, wait one minute, list the services
again.
Install a printer in that time.
See, if the application reflects that
Hi
Tomcat and QMail are installed on same host. Currently clients
(Mozilla-mail, KMail, ect) send email using SSL encryption.
If tomcat is on the same host as your mail daemon, ssl encryption makes no
sense. Send the mail without ssl. It might be nessessary to configure this
in QMail, but since
Hi
But if you run tomcat standalone, you have to run tomcat as root.
NO.
There are ways to run tomcat using jsvc and others.
Search the archive - I haven't done so myself yet.
Apache does not run as root, so if you run Apache in front of tomcat, you
can avoid exposing the root account.
And
Hi
Apache is likely much better than tomcat in serving static content, ...
I assume you cannot prove that, right?
Regards,
Steffen
smime.p7s
Description: S/MIME cryptographic signature
Hi
I just read the DefaultServlet code and found in doGet(...) the following:
try {
serveResource(request, response, true);
} catch( IOException ex ) {
// we probably have this check somewhere else too.
if( ex.getMessage() != null
Hi
Can anyone recommend a very reputable company that provides reliable unix
reseller hosting with knowledgeable Tomcat support?
Hi.
Try www.ipx-server.de together with [EMAIL PROTECTED]@apache.org...
Works fine for me.
Regards,
Steffen
smime.p7s
Description: S/MIME cryptographic signature
Hi
I see the code now. Its dead code. At one time - when tomcat was serving
resources and the client pressed the stop button - a broken pipe exception
would be logged. But since then in other code spots - the non-logging of
broken pipe has been implemented.
So you agree to remove it from the
Hi
if ( len buffer.length )
break;
seems to be dead code too in DefaultServlet.copyRange( InputStream,
ServletOutputStream, long, long ).
Regards,
Steffen
smime.p7s
Description: S/MIME cryptographic signature
Hi
Please don't make a habit of posting every bit of what you think is dead
code on this list ;) There's enough traffic on here as-is.
Ok, I see.
Although I tried to keen it in one thread to make it easy to ignore it for
others.
If you feel like auditing the code, that's a great thing, and
Hi
Actually, I like these kind of patches and would be happy to
evaluate/commit them ;)
Okay, so for a start, can I do some changes that I think would be good for
the code, make a diff and send that to you?
Regards,
Steffen
smime.p7s
Description: S/MIME cryptographic signature
Hi
There is a known StringBuffer memory leak in a certain version of the jvm
(which I can't remember now offhand). But I'm pretty sure I mentioned on
this list before, so search the archives. (or just wait.. someone will chime
in with the exact version). I think it was around 4.1.2_05 ?
First,
Hi
But that makes the archives useless: for example any discussions
not-related to DefaultServlet don't belong in this thread.
Right now, I am just reading that single file...
Have confidence in yourself and do your testing ;) If your tests work,
we'll most likely trust you. If they don't,
Hi
This has a combination of Jakarta-Tomcat (4.1.2) and Apache (1.3.27).
Upgrade to the latest tomcat of the 4.1.x release. 4.1.2 is fairly old and
there are newer versions of the same core. 5.0 is a newer spec, so that
might not be what you want, but I would definitly upgrade to 4.0.30.
Hi
I've thought of upgrading to a newer version of both but have a concern
that since the software was written for the older 4.1.2. Are there any good
sources which could help me through the upgrade?
The tomcat docs.
Upgrading should only be a problem for major version changes, since they
tend
Hi
Are there any solution about limit the process or threads count?. Remember
that Tomcat server.xml parameters don`t work.
For me, these settings work.
However, remember what they describe. They set the numbers of workers, not
total threads. You applicaton might spawn threads, tomcat might
Hi
If you have apache2 in front of it, you can create two different
virtualhosts with
VirtualHost 1.2.3.4:80
mount unsecure here
/VirtualHost
VirtualHost 1.2.3.4:443
mount secure here
/VirtualHost
Regards,
Steffen
-Ursprüngliche Nachricht-
Von: Scott Ahten [mailto:[EMAIL
Hi
I want to archieve the following:
I want to map everything to a special servlet that checks for permissions
and a lot other things and finally invokes other servlets or modules of my
system for dynamic content. however, I do not want to reinvent the wheel, so
I would like to pass static
Hi
If you want to be able to scale your application, you need to be able to
move the static image handling out of tomcat to a separate web server. Using
Tomcat to handle both application chores and web serving chores will limit
the overall scalability of your system.
I strongly disagree.
Tomcat
Hi
Finally for the stupid question of the day. I notice alot of information
re: merging apache and tomcat. My question is why? I'm assuming the Apache
is better at serving web pages that Tomcat but is that the only reason? It
would seem that for a small website, just having Tomcat would be fine.
Hi
I am attempting to redirect to a URL that is similar to the following
http://www.mysite.com/index.jsp?mainFrame=somePage.jsp?item1=info1item2=inf
o2
However, I can only do a request.getParameter on item1 in the somePage.jsp
JSP. When I attempt to do it for item2, it fails..
This is
Hi
Please: http://learn.to/quote
-Original Message-
Regards,
Steffen
smime.p7s
Description: S/MIME cryptographic signature
Hi
I have to synchronize on the method ...
No you do not need to synchonize on the method, you need to synchronize.
You can synchronize on anything.
The easiest would be to do the following:
public static synchronized void amethod()
{
//some code that access the database and needs to be
Hi
Hello Users! I'm using xml files like configuration files for servlets. Is
it possible to prevent these xml's from reading in browser but do not close
access to servlet for read these files. Any ideas how to achieve this?
Put these files in the webapps WEB-INF folder.
Everything there should
Hi
I wrote a servlet with mapping as / . But when it is forwarded to
subdirectory it is coming to same servlet and executing in a loop.
You cannot map a single url. Tomcat only maps prefixes. So, you cannot map
/ with tomcat. (Resin can, but this is another story.)
Here is a workaround:
Map
Hi
limit get
locationmach /WEB-INF
/location
/limit
or somthink like that?
Might be, I dunno.
Using apache directives to seldom.
Regards,
Steffen
smime.p7s
Description: S/MIME cryptographic signature
Hi
I have tomcat jakarta-tomcat-5.0.19 installed on my machine under /opt
Now, I have installed another tomcat (same version) under another root
directory.
I need to have two versions working at the same time. Under one, I will
have a client web version and under the other one, my test version.
Hi
I cant grasp what you said. I am using Tomcat 4.1.x. I searched in Google
for world welcome-file and could'nt find anything on it. Are you talking
about welcome-file-list ?.
Yes. It's entry is welcome-file.
welcome-file-list
welcome-fileroot/welcome-file
/welcome-file-list
Hi
You cannot map a single url. Tomcat only maps prefixes.
Really? Where did this nugget come from? ;) I nearly choked on my
(otherwise fabulous) croissant. Your assertion above is wrong. Tomcat
implements servlet mapping exactly as required by the Servlet Specification
(SRV 11). That
Hi
No. You're mistaking the default configuration for something that's
hard-coded. Out of the box, / is mapped to Tomcat's DefaultServlet, which
handles static content. This is routine for other containers as well and is
not a particular Tomcat trick.
No, I did understand this.
However, I
Hi
I need to store webpages in the database.
Until now I used BLOBs for this, but I think about switching to VARCHARs.
It would not be a problem to limit the content to say 1 CHARs.
However I am using ISO8859_1. (I think this is a one-byte-charset?)
What would you recommend?
Regards,
Hi
Some documentation that I did manage to find suggested the following would
work:
shutdown.sh port 8015
but I get the usage message when I try that.
I cannot tell you for shutdown.sh, but for me it works that way:
catalina.sh start == to start as daemon
catalina.sh stop == to stop
Hi
Use a script as follows:
---8 tomcat.bat
net stop tomcat
net start tomcat
start iexplore.exe http://127.0.0.1:8080
exit
---8 tomcat.bat
Regards,
Steffen
smime.p7s
Description: S/MIME cryptographic signature
Hi
I've used javamail-crypto, it's cool. It worked fine. The environment
was very low stress as far as usage goes, something like one message every
couple of days.
Okay, I will give both a try:
javamail-crypto AND bouncycastle.org.
It detailed the meaning of alpha, beta, and stable ;)
Hi
I have installed j2re-1_4_2_01-windows-i586 and jakarta-tomcat-5.0.25 on a
Windows server 2003 SE.
This will not work.
Tomcats needs a java compiler, which is not part of the jre. Install the
sdk.
And better install j2sdk-1_4_2_05 instead of ..._01, because there were a
lot of bug fixes,
Hi
I have seen those already.
- http://javamail-crypto.sourceforge.net/
early alpha makes me nervous for productive systems.
- http://jpgpmime.sourceforge.net/
this is pgp, i need x509 s/mime.
- http://www.wedgetail.com/jcsi/smime/
there is no information about pricing or license.
-
Hi
We are using www.bouncycastle.org to send s/MIME signed mails with
javamail.
I have seen this as well, as it is used as base of
- http://javamail-crypto.sourceforge.net/
early alpha makes me nervous for productive systems.
But there are no exsamples.
Could you please provide me a
Hi
Solved. Need to restart windows, whenever the settings in
uriworkermap.properties is modified. Seems like the isapi_redirect.dll can
only get reloaded by windows restart and not by restarting the IIS website.
Try restarting the website AND the iisadmin service.
Regards,
Steffen
Hi
Come on, Tomcat 3.2.1??? This is way tooo old.
JDK 1.3.1_13? The same!
IBM_HTTP_SERVER? predecessor of Apache httpd? Again.
Remove them altogether!
Install jdk1.4.2_05 and tomcat 5.0.28.
No neither use httpd NOR mod_jk.
You will be fine and happy with this.
I doublt, you will find someone
Hi
If I install Apache 2.0 and Tomcat 4.1 and use mod_jk that is compatible
for that I don't what issues will be raised by that.
Right, that is why I suggest using tomcat ONLY.
This works, and even when tomcat 3.2.1 might be slower that ibm_httpd,
tomcat 5.0 is really fast and is at almost at
Hi
I used tomcat 4.0.6, 4.1.x, 5.0.x and more without problems.
But now, I have a problem with character encoding.
I use iso-8851-1 all over the place.
My javascript takes a input.value and passes them to my servlet using an url
such as http://server/servlet?data=; + encodeURIComponent(value).
Hi
I have successfully installed TC 4.0.6 on Win XP Pro and it starts fine at
boot time.
Is there any reason, you did that?
4.0.6 is VERY old. Try 5.0.x at least.
Regards,
Steffen
smime.p7s
Description: S/MIME cryptographic signature
Hi
If you do not have that much SSL traffic, you can use mod_proxy to forward
requests to servlet containers using SSL!
You only need to install a low-bit certificate in your container and make
that certificate accepted by your apache. It can even be self-signed.
However, your container will have
Hi
And I would say the opposite, mod_proxy is great, as a matter of fact, the
next version of it will have the AJP protocol in it, and mod_proxy is proven
to be very stable.
This is great news for me. Is there any date when this will be stable /
public??
If you are into advanced config, you
Hi
just use your imagination. I'm sure you can figure out how to pass the
remote host to tomcat, one way or the other, but to say it cannot be
circumvented, thats a little strong :)
You can do that, if you pass parameters, but then you have to change your
webapp, wich is not possible, if you
Hi
(1) how I make a certificate accepted by apache
Hm, I don't know, maybe someone else can answer this.
Try a selfsigned at first.
(2) how I make mod_proxy redirect requests from port 443 to my tomcat on
port 8443 and request from port 80 to tomcat on port 8080
VirtualHost :443
Hi
I have a web application using tomcat 4.1. I want to access a crystal
report. I have installed crystal report 10. Can I view that from Tomcat
4.1? What are the configuration steps? I found the instruction for Tomcat
5.0 in the web, but not for Tomcat 4.1. Please help me.
Have you tried
Hi
I'm using Tomcat 5.0.27. I can access it from my computer via
127.0.0.1:8080, but not via 192.168.1.172:8080. But I can reach Tomcat from
another computer in the network via 192.168.1.172:8080. I didn't change any
Tomcat settings. I'm using WinXP Professional and no firewall is running.
PLEASE IGNORE.
Hi
Some month ago I could not subscribe using my usual mail account,
so I subscribed with an alternative one.
Now, I test to get on the list again.
Since I got a confirmation, that I am on the list using this account,
I decided to send a test message.
Hope, it works.
Sorry,
Hi
Each time tomcat is restarted the file tomcat-users.xml is rewritten. It
is horrible since my umask being 0022 the file which stores passwords become
world readable. Obviously this file has to be read my the server but I do
not see any valuable reason to write it back opening a serious
Hi
If I understand your setup, you could look into Single Sign-On. Tomcat
has a special Valve for this. Search the docs/archives for details.
Sorry, no. Single Sign-On only works on the same domain, as it requires
sessions itself.
If that doesn't work for you -- granted, there are some
80 matches
Mail list logo