nd is sent to the
> browser.
Either Read The Fine Manual :-)
<http://tomcat.apache.org/tomcat-5.5-doc/ssi-howto.html>
:: to enable SSI in Tomcat, or use a JSP (or JSTL) include.
--
Hassan Schroeder - [EMAIL PROTECTED]
Webtuitive Des
Bruno Georges wrote:
> you can write a servlet filter for this.
... or use an existing one: <http://tuckey.org/urlrewrite/>
FWIW!
--
Hassan Schroeder - [EMAIL PROTECTED]
Webtuitive Design === (+1) 408-938-0567 === http://webtu
ve me a hint here?
google 'MultipartRequest' -- first hit :-)
--
Hassan Schroeder - [EMAIL PROTECTED]
Webtuitive Design === (+1) 408-938-0567 === http://webtuitive.com
dream. code.
t the easiest and most performant fix would be for doHead() to not
return Content-Length at all; the more-useful-but-slower approach
would be to build the page/count bytes/discard and I'm not sure I'd
want to see that...
Perhaps someone else will have an opinion :-)
--
Hassan Schr
page, but there is nothing between the brackets.
> You can't see in the test case that I sent, but this causes all sorts of
> problems if you have code that tries to use the data that c:import
> supposedly loads.
It sounds like a problem to develop an app based on behavior that
e port number 8080 is hard-coded in some place?
Nope. The manager works fine on port 80 (or for that matter any
other port I've ever tried) :-)
Something else in your configuration is causing your problem.
--
Hassan Schroeder - [EMAIL PROTECTED]
Webtuitive Des
Andrew.du wrote:
> How to?
Just Do It :-)
Seriously, what's the question? Set CATALINA_HOME, JAVA_HOME, use
$CATALINA_HOME/bin/catalina.sh instead of catalina.bat.
That should be all it takes...
--
Hassan Schroeder - [EMAIL PROTECTED]
Webtuitive Design ===
.
>
> Any ideas why this is occuring, and any ideas to redirect the bad url
> to the good one?
My configuration is the opposite -- the cert is for "example.com",
not "www.example.com". But I use a Filter to redirect any requests
for th
address once I have "hello world" on XP working
"I'll fix the broken configuration after I have it running"? Maybe
not the ideal approach. :-)
FWIW!
--
Hassan Schroeder - [EMAIL PROTECTED]
Webtuitive Design === (+1) 408-938-0567 =
irect) from /index.jsp
to /unique/index.jsp
HTH,
--
Hassan Schroeder [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
d just be
'http://www.theuniquepear.com/welcome.do' which you could map
as the welcome file. No redirects required.
If, for some reason, you still can't or won't do this, configure your
contexts as crossContext="true" and *forward* -- not redirect --
from
benchmarking, why are you wasting time with the
installer? Install the tar file version, make copies of the startup scripts
and configure one of each to use the target JVM.
FWIW!
--
Hassan Schroeder [EMAIL PROTECTED]
--
ute of the Context
element in the Tomcat docs. If set, you can get a RequestDispatcher
for another Context on the same host.
FWIW,
--
Hassan Schroeder [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROT
On 3/23/06, Alan Honczar <[EMAIL PROTECTED]> wrote:
> I think that it will be the way, because mod_rewrite is available for Apache2
> and latest...
mod_rewrite is available from Apache 1.2 on, actually
<http://httpd.apache.org/docs/1.3/mod/index.html>
-
On 4/12/06, Martin Gainty <[EMAIL PROTECTED]> wrote:
> Any clues where to acquire jar for compressionFilter ???
source and compiled files are in the servlets-examples webapp...
HTH!
--
Hassan Schroeder [EMAIL
On 4/17/06, biai <[EMAIL PROTECTED]> wrote:
> I have 3 virtual hosts on the server, so I cannot atribute ROOT to all of
> them.
Of course you can; just use a different appBase for each host.
HTH,
--
Hassan Schroeder [EMA
nd putting all your appBases outside of
$CATALINA_HOME -- it makes it a lot easier to upgrade, back up,
etc.
FWIW,
--
Hassan Schroeder [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
u have two hosts named 'calvin' and 'hobbes'.
Create separate directories like
/webapps/calvin
/webapps/hobbes
In your Host elements specify one of those as the appBase for that host.
Put your default webapp for each one in
/webapps/calvin/ROOT
/webapps/hobbes/ROOT
Done.
-
ied to install both cerfiticates using the same keysotre and different
aliases, but it does not work.
Should I use different keystores...?
Yes, create a Connector element for each IP address, a keystore
for each Connector, and set the keystoreFile attributes accordingly.
HTH,
--
Hassan Sch
app to redirect to the preferred hostname.
You can also use it to redirect traffic that doesn't need to be SSL
to the corresponding http:// url...
FWIW,
--
Hassan Schroeder [EMAIL PROTECTED]
-
To
On 5/9/06, Scott Purcell <[EMAIL PROTECTED]> wrote:
I know someone yesterday mentioned filters, but I could not find any
examples of this type via a heavy google search.
<http://tuckey.org/urlrewrite/>
--
Hassan Schroeder [EMA
st, start Tomcat, connect?
--
Hassan Schroeder [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
say what. Can you make a simple WAR of a test case?
--
Hassan Schroeder [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
in web.xml, e.g.
LoginServlet
UserConfig.login
LoginServlet
/login
HTH,
--
Hassan Schroeder [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
n the Tomcat web site (in conjunction with the Servlet spec) :-)
FWIW!
--
Hassan Schroeder [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Try that and see if your classpath issues disappear.
And for troubleshooting at least, it may help to use absolute paths in
your configs to avoid confusion...
HTH,
--
Hassan Schroeder [EMAIL PROTECTED]
-
To u
On 5/19/06, keyur sheth <[EMAIL PROTECTED]> wrote:
So can you tell me the reason why I am unable to do that.
No. :-)
Certainly not without seeing the relevant part of your server.xml and
the relevant parts of your server logs.
P.S. Using a real subject line would be a good idea...
--
On 5/19/06, keyur sheth <[EMAIL PROTECTED]> wrote:
So attached is the part of the server.xml file for non-SSL and SSL
? no keystorePass? or just using the default?
In any case, the critical information is: what do your logs say?
--
Hassan Sch
On 5/19/06, keyur sheth <[EMAIL PROTECTED]> wrote:
But I don't know what should see in the log directory and which file
specifically.
There shouldn't be that many to choose from, but in any case, the
one with errors in it :-)
--
Hassan Schroeder
/servlet" in there -- read the Tomcat doc or google for
"Tomcat invoker servlet" to understand why...
HTH,
--
Hassan Schroeder [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED
o the browser is "HTTP 500".
Sounds correct to me -- that's the error code. Are you saying that
your JSP2 error page doesn't generate any visible output?
Is it possible you're using MS IE and your page's output falls below
the "show friendly (sic) messages" thresho
reshold value -- I forget exactly how big -- but
you should test using some other browser (Firefox, Opera, whatever).
--
Hassan Schroeder [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED
-- if it's "smsinfo" -- then of course the above path has to
reflect that, e.g.
The url-mapping in web.xml is relative to the context; HTML href or
form action attributes are relative to the server.
HTH,
--
Hassan Schroeder ---
ou'll have a snapshot of memory use leading
up to the end, which might offer some clues.
You could also use the Tomcat manager interface to grab status
from the system periodically for post-crash analysis.
HTH!
--
Hassan Schroeder ---
you have a burning *need* to do this (*must* run PHP, FastCGI for
Rails, or some such)? If not, I'd say don't do it :-) And if you must, get
a second IP and run Apache httpd separately on that.
The list archives are full of discussion on this -- that may help you decide.
R
or some
non-Java applications. Keeping them totally separate from your Tomcat
installation seems a lot easier (more maintainable) to me. YMMV. :-)
HTH!
--
Hassan Schroeder [EMAIL PROTECTED]
-
To unsubscribe
On 5/24/06, Markus Ludwig Grandpre <[EMAIL PROTECTED]> wrote:
I'd like to run jakarta-tomcat-5.0.19 with two different JDKs:
on a SuSE-SE-9.0 system. I'd be glad to receive any help from you.
And the problem is?
--
Hassan Schroeder
he hell you're supposed to organize a
directory structure with multiple applications?
Exactly as you have it, as proven by the fact that the ROOT and example
contexts work -- it's your context config that's causing your problem.
HTH!
--
Hassan Schroeder
look closely* at each element
and attribute and *check them against the doc*. It'll save you a lot of
unneccessary frustration. Really. :-)
--
Hassan Schroeder [EMAIL PROTECTED]
-
To start a new topic, e-
in your log when you start up
Tomcat now? There should be some reference to why /smsinfo
isn't found, or isn't starting.
--
Hassan Schroeder [EMAIL PROTECTED]
-
To start a new topic, e-mail: us
ect to that instead of just forwarding, but
have you tried `response.sendRedirect("/welcome.jsf");` ?
For that matter, why not just add 'welcome.jsf' to your welcome
file list? :-) Anyway --
Is it the first line in your page? No white space being sent first?
--
Hassan Schr
On 5/26/06, Garner Shawn <[EMAIL PROTECTED]> wrote:
I thought the welcome page had to be a .jsp or .html according to the
servlet spec?
? Where do you see that in the spec?
--
Hassan Schroeder [EMAIL PRO
and I'll try it on an existing
working install.
--
Hassan Schroeder [EMAIL PROTECTED]
-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
in quite a while :-)
The PHP4 servlet worked, but wasn't all that stable, in my limited
experience. And when it crashed it took the whole JVM with it, so
I didn't think it suitable for production. YMMV.
HTH!
--
Hassan Schroeder ---
o your operating environment. IMHO :-)
--
Hassan Schroeder [EMAIL PROTECTED]
-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands,
)(nor does it match any examples in JSP.7.3)...
--
Hassan Schroeder [EMAIL PROTECTED]
-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
in your web.xml?
java.security.cert.CertificateExpiredException
/WEB-INF/errors/expired.jsp
--
Hassan Schroeder [EMAIL PROTECTED]
-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAI
On 11/3/06, Christopher Schultz <[EMAIL PROTECTED]> wrote:
Does anyone else suspect that Martin is actually an expert system
designed to read and respond to mailing list posts, but is totally
failing the Turing test?
Yeah, I've been thinking exactly that for a while now. :-)
there's a valid reason --
Create separate virtual hosts with unique AppBases and run each
project as ROOT in its own vhost. End of problem.
HTH!
--
Hassan Schroeder [EMAIL PROTECTED]
-
To star
et science, and having multiple aliased hosts
on your desktop can simplify a developer's life immensely. :-)
--
Hassan Schroeder [EMAIL PROTECTED]
-
To start a new topic, e-mail: users@tomcat.apache.org
t, not in your path.
What happens with
/usr/java/jdk1.5.0_04/bin/java -version
I've used .rpm distrib from sun web cite and alien tool to convert
it to .deb.
Personally I'd uninstall /whatever/ that thing is, and install directly from
the Sun .bin version. :-)
--
Hassan Schroeder --
but that Context path is wrong -- should be ""
(null path) for the default Context. (Just guessing that it might cause
a mismatched path in the session cookie.) So fix that first. :-)
--
Hassan Schroeder ---
bute in a
context.xml file under META-INF, and is that *really* what you want
the path to be?
--
Hassan Schroeder [EMAIL PROTECTED]
-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-m
/divide/whatever. :-)
On- or off-list is fine, as you prefer.
Thanks!
--
Hassan Schroeder [EMAIL PROTECTED]
-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED
On 11/15/06, Ernie Ho <[EMAIL PROTECTED]> wrote:
my tomcat server is behind a proxy; how would you specify the proxy
setting? Is there some config file to edit?
The *client* that's trying to *connect to* Tomcat needs to be
configured to know about the proxy.
--
Hassa
- it's irrelevant and ignored, since the
path is derived from the name of the WAR file.
HTH!
--
Hassan Schroeder [EMAIL PROTECTED]
-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-m
On 11/15/06, Tim Alberts <[EMAIL PROTECTED]> wrote:
>path is derived from the name of the WAR file.
If it is ignored, how can it be specified when uploading a war file via
the manager?
As originally stated -- it's the name of the WAR file.
--
Ha
ml#access>
--
Hassan Schroeder [EMAIL PROTECTED]
-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
t in the middle)
Perhaps a browser problem? What happens if you use wget or similar
to fetch the image?
--
Hassan Schroeder [EMAIL PROTECTED]
-
To start a new topic, e-mail: users@tomcat.apache.org
To unsu
ween
apache (mod_jk) and tomcat, but which parameter could affect this ?
Interesting, but I haven't used mod_jk since last century :-)
As another data point, though, you might try it with mod_proxy_ajp to
isolate the AJP Connector.
HTH!
--
Hassan Schroeder
On 12/7/06, dfelicia <[EMAIL PROTECTED]> wrote:
mod_proxy is ... It also doesn't offer
load-balancing,
Not true; see <http://httpd.apache.org/docs/2.2/mod/mod_proxy_balancer.html>
I've used this recently (with mod_proxy_ajp) and it worked fine. :-)
FWI
lushpackets" parameter to the ProxyPass
directive <http://httpd.apache.org/docs/2.2/mod/mod_proxy.html> :-)
FWIW,
--
Hassan Schroeder [EMAIL PROTECTED]
-
To start a new topic, e-mail: user
does that
mean? Are you using something other than a Web browser? If it's a
404 problem, what do your access logs show?
A little more info would help... :-)
--
Hassan Schroeder [EMAIL PROTECTED]
-
ething like (.bashrc example)
export JAVA_HOME=/usr/local/jdk1.5.0_06
export JRE_HOME=$JAVA_HOME/jre
export PATH=$JAVA_HOME/bin:$JRE_HOME/bin: ... all your other path entries ...
HTH,
--
Hassan Schroeder [EMAI
uck on Windows, in
something like c:\WINDOWS\system32\drrivers\etc\hosts).
An easy and convenient way to separate projects that each need
(or expect) their own ROOT context.
FWIW,
--
Hassan Schroeder [EMAIL PRO
in my configuration
The Connector on the test system above is configured with
sslProtocol="TLS"
so you might consider Chuck's suggestion for starters...
--
Hassan Schroeder [EMAIL PROTECTED]
---
enter something after the "Escape character is '^]'." line the
result is a blank line and connection closed.
--
Hassan Schroeder [EMAIL PROTECTED]
-
To start a new topic, e-mail: users
y qualified) name.
--
Hassan Schroeder [EMAIL PROTECTED]
-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
mething* loggedl :-)
--
Hassan Schroeder [EMAIL PROTECTED]
-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
10.0
So, pretty close :-)
I need to check if this particular version of tomcat (jvm) when set up for
ssl
response with strange bits when telneting to the ssl port.
... and same as before, only a blank line response/close connection.
FWIW!
--
Hassan Schroeder
,
because I just pasted that Valve config into my vanilla 5.5.20 server.xml,
restarted, loaded the index page, and got (as expected) a new logfile
named "access_webapp.2006-12-13.log" with appropriate contents...
FWIW,
--
Hassan Schroeder ---
Yes, trying this (http://localhost:8443) with FF results in a prompt to
download a BIN file, which turns out to be:
prompt> od -a ldlepaov\(2\).bin
000 nak etx soh nul stx stx nl
007
I'll leave interpretation of the "correctness" of that to you :-)
-
On 12/14/06, Sachin Patel <[EMAIL PROTECTED]> wrote:
I have a directory webapps/ABC2 in tomcat 5.5.20
I want to access it using http://localhost:8080/ABC instead of
http://localhost:8080/ABC2
Then *rename the directory*; end of problem. :-)
--
Hassan Sch
rcumstance would preclude your changing a directory
name??
--
Hassan Schroeder [EMAIL PROTECTED]
-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additi
call "patching source" at all. It built,
it ran, but with only marginal stability (and when it crashed, the whole VM
crashed). Not production-ready, certainly.
YMMV!
--
Hassan Schroeder [EMAIL PROTECTED]
---
On 12/15/06, Caldarale, Charles R <[EMAIL PROTECTED]> wrote:
For 6.0, you need the attribute SSLEnabled="true" in your
element:
Ah, and that's missing from the sample 8443 Connector config in
the 6.0.2 distribution, though it's in 6.0.4.
--
Hassan Schroeder -
a line by line basis.
Have you tried this yet? request.getReader() would seem to cover
your situation, assuming this isn't binary data.
--
Hassan Schroeder [EMAIL PROTECTED]
-
To start a new topic, e-
rintln(line);
}
RequestDispatcher rd =
this.getServletContext().getRequestDispatcher("/WEB-INF/jsp/screen/screen-post.jsp");
rd.forward(request, response);
}
}
POSTed content is written to catalina.out as I'd ex
objects are serializable.
So it's not clear what value shifting all that to a DB would add...
YMMV,
--
Hassan Schroeder [EMAIL PROTECTED]
-
To start a new topic, e-mail: users@tomcat.apache.org
To uns
ng the lines.
"unlimited" is kind of vague -- are you talking hundreds, thousands?
How time-consuming is the processing of each "adduser"?
I doubt you really want to start a separate thread for each one :-)
--
Hassan Schroeder ---
On 12/21/06, David Kerber <[EMAIL PROTECTED]> wrote:
Nobody has a suggestion about this?
Sure. I suggest you rephrase what you're actually trying to accomplish,
because the original made utterly no sense to me :-)
FWIW,
--
Hassan Schroeder [EMAI
:: I'd bet your basic configuration is wrong. What are your Host appBase
and Context docBase, and where are they being set?
--
Hassan Schroeder [EMAIL PROTECTED]
-
To start a new topic, e-
omcat-5.5.9\mywebapp\WEB-INF\classes\log4j.properties.
:: which doesn't include a 'webapps' directory.
Is that just a typo or are you setting Context atttributes (like docBase)
somewhere else?
--
Hassan Schroeder ---
h cool, important, and useful stuff.
Wow. And I thought there was already a surfeit under the tree. :-)
Is there a URL to documentation of all these wonders?
--
Hassan Schroeder [EMAIL PROTECTED]
-
To s
arts of your server.xml and Context files...
--
Hassan Schroeder [EMAIL PROTECTED]
-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-
On 12/30/06, Peter Coppens <[EMAIL PROTECTED]> wrote:
That said, I am baffled by the fact that some connections take >15minutes.
Are you referring to MySQL connection setup time? Or query time?
Either way, it certainly doesn't sound like a Tomcat problem... :-)
--
Ha
ns entries that affect the ports and
addresses that Tomcat's using -- check those.
HTH, and good luck!
--
Hassan Schroeder [EMAIL PROTECTED]
-
To start a new topic, e-mail: users@tomcat.apache.org
at is the "/usr/local/java/. . ." referring to? Is this needed for the
website?
Absolutely; that's the JDK referred to above. `java -version` will tell
you which one; if it's 1.5.something you may want to just download and
install the latest 1.5.x, ra
scratch on the new machine, get it running, e.g. the example apps
work, and then copy over the current production apps.
FWIW!
--
Hassan Schroeder [EMAIL PROTECTED]
-
To start a new topic, e-mail: users@t
On 1/3/07, Le Phuoc Canh <[EMAIL PROTECTED]> wrote:
Can we use php with tomcat ?
Google is your friend: http://www.google.com/search?q=tomcat+php
And the first entry: <http://wiki.apache.org/tomcat/UsingPhp>
HTH!
--
Hassan Schroeder [EMA
ng for checking tiny changes in jsps to me.
Amen to that :-) So why not just use the deployment directory as the
development directory? Edit your JSP, click browser's reload, done.
YMMV, of course :-)
--
Hassan Schroeder [EMAI
uot; that I'm used to from apache http
server httpd.conf file.
Try: grep -i encoding $CATALINA_HOME/conf/web.xml
HTH!
--
Hassan Schroeder [EMAIL PROTECTED]
-
To start a new topic, e-mail: users@tomc
ured Apache httpd properly, Tomcat won't get any
such requests, eh? :-)
But you can also look at $CATALINA_HOME/conf/web.xml for the
default servlet's servlet-mapping...
HTH,
--
Hassan Schroeder
derstand how name-based virtual hosting is *not*
the solution to your "problem" here.
It doesn't matter if "newsite1.org" has an IP shared with other hosts or
domains, so why is it not in DNS?
--
Hassan Schroeder [EMAIL PROTECTED]
--
When will you get the idea to take this to a JBoss list??? Logging in
Tomcat works absolutely fine with virtual hosts in standalone mode,
right out of the box.
You're fishing in the wrong stream, here, I think...
--
Hassan Schroeder [EMAI
nfiguration just to see how logging
works normally. Then transfer that test case to your JBoss environment
and see what happens.
Good luck,
--
Hassan Schroeder [EMAIL PROTECTED]
-
To start a new topic, e-
On 1/17/07, Ortwin Glück <[EMAIL PROTECTED]> wrote:
But I wanted to use mod_jk because it can do load-balancing.
...as does mod_proxy via mod_proxy_balancer -- see:
<http://httpd.apache.org/docs/2.2/mod/mod_proxy_balancer.html>
FWIW!
--
Hassan Schroeder ---
even using an emerging JVM scripting language, e.g. Groovy).
YMMV!
--
Hassan Schroeder [EMAIL PROTECTED]
-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
in production on Linux boxes, but I
have no experience with it on Windows.
--
Hassan Schroeder [EMAIL PROTECTED]
-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED
e. I added a
metadata-complete="false" to the web.xml declaration just to be on
the safe side, but no change. The Filter is declared and mapped in
web.xml in the usual way, and works fine sans annotation.
Anyone using this successfully? TIA!
--
Hassan Schroeder -
101 - 200 of 983 matches
Mail list logo