Re: strange ssl tomcat response

2006-12-13 Thread Hassan Schroeder

On 12/13/06, Tsirkin Evgeny <[EMAIL PROTECTED]> wrote:


tomcat 5.5.20

I remembered I had a vanilla install of 5.5.20 not yet in use, so I
uncommented the https connector and created a keystore

java version "1.5.0_09"

/me == 1.5.0_06 on this machine

Linux SuSe

/me == SuSE 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  [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]



Re: SSL Setup From Site

2006-12-13 Thread Hassan Schroeder

On 12/13/06, Jim Reynolds <[EMAIL PROTECTED]> wrote:

I am running version 5.5.17 and I am not seeing anything in the logs
regarding APR.


You might want to grep for 'Starting ' because a Tomcat install with
out-of-the-box logging will show something like this at startup:

Dec 13, 2006 11:46:36 AM org.apache.coyote.http11.Http11BaseProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Dec 13, 2006 11:46:36 AM org.apache.coyote.http11.Http11BaseProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8443

And if a Connector failed to start, you should see *something* 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]



Re: Having trouble making Tomcat available from outside the network

2006-12-13 Thread Hassan Schroeder

On 12/13/06, Simon Renshaw <[EMAIL PROTECTED]> wrote:

Hi,

I installed Tomcat 5.5.12 on a CentOS 4.4 server. I used port 9090. Then
I installed Luntbuild on it. I can access it internally without
problems.

I created a rule in the firewall to forward port 9090 request to the
Linux server. Unfortunately, when trying to access the site from the
outside, I get a page not found error.


I hope you're not using IE as a diagnostic tool :-) -- telnet directly to
that port from your desktop using the internal hostname and see what
happens. Then try it using the externally exposed (fully 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]



Re: strange ssl tomcat response

2006-12-13 Thread Hassan Schroeder

On 12/13/06, Tsirkin Evgeny <[EMAIL PROTECTED]> wrote:


when connecting via telnet  i am first getting  an empty  response
typing in some character and  only then i am getting the bits.



The strange response bits are what i got here just befor "Connection
closed".


No, if I 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@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: strange ssl tomcat response

2006-12-13 Thread Hassan Schroeder

On 12/13/06, Tsirkin Evgeny <[EMAIL PROTECTED]> wrote:


Basically that can be checked in a very simple manner:
try to setup ssl for a tomcat and then telnet to it (8443 port).
Do you get any response?


Just tried on a 5.5.9 non-APR system -- no response :-)


[1] If no that is problem 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]

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Host element question

2006-12-13 Thread Hassan Schroeder

On 12/13/06, EDMOND KEMOKAI <[EMAIL PROTECTED]> wrote:

How do expect that it will resolve the name dev without DNS?


DNS is not the only name resolution mechanism :-)

For desktop development use, just put all the alias hostnames you
want in your own /etc/hosts file (or for those stuck 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 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]



Re: java.lang.ClassNotFoundException: com.sun.image.codec.jpeg.JPEGImageEncoder

2006-12-13 Thread Hassan Schroeder

On 12/12/06, Mon Cab <[EMAIL PROTECTED]> wrote:


I will research how to uninstall gnu and install sun sdk.


I suggest you not worry about the existing gnu java -- all you have
to do is:
1) download the Sun JDK
2) install it -- I prefer somewhere specific like /usr/local/jdk1.5.0_06/
   so I know exactly what I've got, and can install upgrades in parallel
   without affecting existing installs; YMMV of course
3) set JAVA_HOME and JRE_HOME properly in your Tomcat startup
   scripts and in your own shell initialization files, e.g. .bashrc, and
   include them in your PATH, something 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  [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]



Re: how to set up a web app that initially only serves static content?

2006-12-09 Thread Hassan Schroeder

On 12/9/06, Garey Mills <[EMAIL PROTECTED]> wrote:


 I checked out the web pretty extensively and couldn't find the answer
to the question in the subject. I am working on some Ajax stuff that will
eventually have some servlets, but in the beginning I just want to set up an
index.html that loads some javascript libraries along with the page. How
would I set up a web.xml to reflect that? I've tried commenting out the
 and  tags, but the app won't load and I can't see
it's home directory via tomcat. I tried adding a  tag in
servlet.xml. That works in that I can see the page, but I'm having problems
loading the javascript I want and I am not sure whether it is because of how
I am accessing the html.


1. If you're strictly using static content, you should be able to simply
drop the context into your host's webapps directory without a web.xml
and see it. Your context's docBase *is* in that appBase, right?

But if you have a web.xml with errors -- yeah, it won't be availabile.

2. "problems loading..." -- *what* problems? 404 on the script files,
or ___? ..."because of how I am accessing the html" -- what 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]

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Is this possibe? mod_jk <==SSL==> AJP/1.3

2006-12-08 Thread Hassan Schroeder

On 12/8/06, fredk2 <[EMAIL PROTECTED]> wrote:


although I have not tested this personally, but I was told that mod_proxy
(_ajp)  does not have the Auto Flush option that you can set with mod_jk and
thus creates problem for streaming applications.


You might want to look at the "flushpackets" 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: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Is this possibe? mod_jk <==SSL==> AJP/1.3

2006-12-07 Thread 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. :-)

FWIW,
--
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]



Re: big image only appear at half

2006-12-06 Thread Hassan Schroeder

On 12/6/06, mast <[EMAIL PROTECTED]> wrote:


don't think it s a brower problem because if i umount the image to make
apache run it , it work without any problem
if tomcat is not the problem maybe the problem is between tomcat and mod_jk
i use apache 2.2.3 mod_jk last version and jdk 1.5.0

if i use wget it download the image fully , the problem only seem to be in
displaying ( i have try different navigator always the same resultat )

i have try different test and if i use the port 8080 the image display
without problem, so i am nearly sure there is a problem in the link between
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  [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]



Re: big image only appear at half

2006-12-06 Thread Hassan Schroeder

On 12/6/06, mast <[EMAIL PROTECTED]> wrote:


nobody have had problem with big image on tomcat ? (it do that on a brand
new tomcat with common configuration that s why i am surprised nobody has
encounter this)


I just installed a fresh 5.5.20, dropped a 643K jpeg in the ROOT
directory, and it loads fine, displays fully.

(using JDK 1.5.0_06 on SuSE 10, viewed in FireFox 1.5.0.8, FWIW)


> Hi, i am having a problem with tomcat 5.5.20 (problem not present on
> 5.5.9) , when i put an image bigger than approximatively 130K it only
> appear at half on the screen (it s cut 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 unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: standard Apache 2.2 & Tomcat 5.5 config to avoid open-proxies

2006-12-02 Thread Hassan Schroeder

On 12/2/06, Art <[EMAIL PROTECTED]> wrote:


 http://support.liferay.com/browse/LEP-1605


Liferay? You have my sympathy.


So I do need to complicate my life in this way.  Does anyone have a
suggestion?


Have you read this?

<http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#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]



Re: Manager deploy uploaded war - doesn't use the /WEB-INF/context.xml

2006-11-15 Thread Hassan Schroeder

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.

--
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]



Re: Manager deploy uploaded war - doesn't use the /WEB-INF/context.xml

2006-11-15 Thread Hassan Schroeder

On 11/15/06, Tim Alberts <[EMAIL PROTECTED]> wrote:


When I deploy my .war files with the Manager application it seems to
completely ignore the /WEB-INF/context.xml file.  What do I do?


1) put it in META-INF/context.xml where it belongs :-)  and





2) drop the path attribute -- 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-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Proxy setting on Tomcat

2006-11-15 Thread Hassan Schroeder

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.

--
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]



Tomcat 5.5 Virtual Hosting How-To

2006-11-14 Thread Hassan Schroeder

In the interests of contributing to the docs, I've written a short how-to;
the draft is at:

 <http://webtuitive.com/tutorials/virtual-hosting-howto.jsp>

If you have any interest or experience with this, please give it a look
and let me know about anything you'd add/subtract/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]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Problem with RemoteAddrValve in Context.xml

2006-11-14 Thread Hassan Schroeder

On 11/13/06, Peter Neu <[EMAIL PROTECTED]> wrote:


I'm trying to define an ip access filter with RemoteAddrValve in the
context.xml file I deploy with my war file.

If I read the documentation right the only thing to be done is write the
following into the context.xml file:


Did you edit this context.xml *after* deploying a WAR? If so, is
there a corresponding config file that Tomcat's copied into
$CATALINA_HOME/conf/Catalina/{hostname} ? If so, I bet it still
looks like the original one, i.e., no Valve.





Probably unrelated, but you shouldn't have a path attribute 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-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How do I enable HTTP Sessions after setting up Virtual Hosts?

2006-11-11 Thread Hassan Schroeder

On 11/11/06, Rashmi Rubdi <[EMAIL PROTECTED]> wrote:


HTTP Session was working before I set up Virtual Hosts on Tomcat 5.5/ Windows 
XP.


?? And exactly how is it not working now? What's the test case?


The entries in server.xml :



  
 

Dunno if it's related 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  [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]



Re: Can't start tomcat on Debian Linux

2006-11-10 Thread Hassan Schroeder

On 11/10/06, Stepan Yakovenko <[EMAIL PROTECTED]> wrote:


> what does java -version print?
[EMAIL PROTECTED]:~$ java -version
java version "1.4.2"
gij (GNU libgcj) version 4.1.2 20061020 (prerelease) (Debian 4.1.1-17)


clearly, the Java you think you installed is, at the least, 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  [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]



Re: Switching between 2 projects, each setup at Tomcat's ROOT context deletes the source folder of the 2nd project.

2006-11-09 Thread Hassan Schroeder

On 11/9/06, Rashmi Rubdi <[EMAIL PROTECTED]> wrote:


But, my problem only applies to the development envrionment. I tried to set up 
the virtual host on the dev machine by following instructions here:
http://confluence.atlassian.com/display/DOC/Guide+to+using+Apache+Tomcat's+Virtual+Hosts


You don't need anything to do with Apache httpd.


This resulted in a virtual folder virtual.domainname.com under 
\dev\apache-tomcat-5.5.12\work\Catalina\ , but I wasn't able to access the 
application
via http://virtual.domainname.com:8080/

It says "you need to have entries in your DNS server ", I guess I can't have 
this set up while on the local dev box.


Of course you can. Let's say your current hostname is "hawaii". You
have an entry in your hosts file like

192.168.10.20 hawaii

So you add another name after that, maybe

192.168.10.20 hawaii maui

Now you create two Host elements in your Tomcat's server.xml, one
for each hostname, with appBase entries something like webapps/hawaii
and webapps/maui.

Now you install your two apps as ROOT in their respective directories,
and you're good to go.

Believe me, this is not rocket 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
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Switching between 2 projects, each setup at Tomcat's ROOT context deletes the source folder of the 2nd project.

2006-11-09 Thread Hassan Schroeder

On 11/9/06, Rashmi Rubdi <[EMAIL PROTECTED]> wrote:

I'm working on 2 different projects and I'm having problems while trying to 
switch between 2 projects that are both set up at the ROOT context.


The first question is why they both have to be the ROOT context;
nevertheless, if 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 start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Thread pool per webapp?

2006-11-03 Thread Hassan Schroeder

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. :-)

--
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]



Re: Handling expired client certificate

2006-11-01 Thread Hassan Schroeder

On 11/1/06, Subscriber <[EMAIL PROTECTED]> wrote:

Hi,

I've configured Tomcat 5.5.17 to use CLIENT-CERT as authentication
mechanism via web.xml in my web application. This works as expected and
the user gets prompted for a certificate. I'm facing a problem, because
when the user supplies a certificate that has expired Tomcat throws an
exception in the log like this:

INFO: SSL Error getting client Certs
javax.net.ssl.SSLHandshakeException:
java.security.cert.CertificateExpiredException: NotAfter: Thu Jan 19
08:40:14 CET 2
006



My problem is, that I would like to handle the case myself and avoid
exceptions in the log and present the user with a good error message. In
this case, the user has no clue what-so-ever of what happened because
the error remains within Tomcat. What can I do to catch the error myself?


Have you tried something like this 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: best way to setup servlet and filter for REST style URLs

2006-10-17 Thread Hassan Schroeder

On 10/17/06, Jason Novotny <[EMAIL PROTECTED]> wrote:

I'm unsure what you're trying to do --


+ URLs should look "nice" and be bookmarkable in the style of REST e.g.
http://localhost/myapp/mylayout/someaction/



The approach I started to take was to use a servlet filter that
could take any request e.g. "myapp?foo=bar&color=red"


If you want  "nice" URLs why would you ever provide something like
the one above? Why not "myapp/bar/red" ??


However, I noticed depending on the initial URL a user put in,
sometimes bad or unexpected things happened so I thought maybe using a
filter with a forward is very fragile code.


It's as robust as *you*  make it  :-)

If you're using pathInfo to break out your parameters and someone
inserts something extraneous, like  "myapp/bar/oops/red" -- it's up to
you to recognize that and deal with it.

And yes, I for one use filters for this kind of thing all the time...

HTH!
--
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]



Re: tomcat manager security

2006-10-06 Thread Hassan Schroeder

On 10/6/06, Rizwan Merchant <[EMAIL PROTECTED]> wrote:


Can someone give me some insight into how secure the tomcat manager page
is on a production application? Currently we have an application running
on the production box, and we also have the manager running (password
protected of course) so that we can access the tomcat status pages to
determine the memory usage and thread information.


You can restrict access to the manager by IP -- see:
 <http://tomcat.apache.org/tomcat-5.5-doc/config/valve.html>

HTH,
--
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]



Re: error while running a webapp

2006-10-06 Thread Hassan Schroeder

On 10/6/06, David Smith <[EMAIL PROTECTED]> wrote:

A word of caution -- autoReconnect=true is more a hack than a solution.
Recent experience of users in another list I'm on suggest it's really
hit or miss whether it actually recovers a stale connection or not.


I don't recall ever having a problem with it (what list was that on, BTW?)
but now revisiting the Connector/J doc
<http://dev.mysql.com/doc/refman/5.1/en/connector-j-reference-configuration-properties.html>
I notice use of autoReconnect is "not recommended" and there's also a
"autoReconnectForPools" -- any experience with that?


It's best in a design pattern to implement a connection pool,,,


Of course.


As far as the OP's problem is concerned, some additional information
like relevant log and code excerpts would be most helpful.


Uh, did you look at the log excerpt in the referenced PDF? :-)

--
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]



Re: error while running a webapp

2006-10-05 Thread Hassan Schroeder

On 10/5/06, Oliver Wagner <[EMAIL PROTECTED]> wrote:


I think the DB close the connection while the tomcat is running and I don't 
know (at my Connection-Pool) how to know when that happened.


set
  autoReconnect=true
in your driver config, or catch the exception when the timeout occurs
and retry connecting to see if it's a simple timeout/transient failure or
something more  persistent.

HTH!
--
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]



Re: Changing default index.jsp

2006-09-26 Thread Hassan Schroeder

On 9/25/06, Roger Mori-Tuesta <[EMAIL PROTECTED]> wrote:


I'd like to change the default index.jsp/index.html page with
my   /tomcat-5-15-home/webapps/obc/myindex.jsp.


See the Servlet spec for 

HTH,
--
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]



Re: New session PER REQUEST

2006-09-26 Thread Hassan Schroeder

On 9/25/06, Maurice Yarrow <[EMAIL PROTECTED]> wrote:


So, (apropos of the issues I saw with my setup) were there
multiple hosts, one or more of which required both http and https
access ?


This particular installation had no https requirements. If that's not a
complete deal-breaker, I could probably whip up a sanitized sample
config -- let me know.

--
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]



Re: New session PER REQUEST

2006-09-25 Thread Hassan Schroeder

On 9/25/06, Maurice Yarrow <[EMAIL PROTECTED]> wrote:


And, fronting with Apache 2.0, and using mod_proxy, I just had one heck
of a time getting this to work right.  I used httpd 

OK, two points --

1) it's not clear that the OP *needs* Apache in front of Tomcat -- if not,
the whole issue becomes moot :-)

2) my only recent experience using an Apache front-end was setting
up a small cluster of multi-host Tomcats using Apache 2.2.x and
mod_proxy_ajp; obviously more work than just Tomcat alone, but
it didn't seem particularly onerous.

And of course there may be some areas (e.g. your JavaScript example)
that need unique tweaking depending on the individual webapp.

FWIW!
--
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]



Re: New session PER REQUEST

2006-09-25 Thread Hassan Schroeder

On 9/25/06, Darren Hall <[EMAIL PROTECTED]> wrote:


...  The client does not want to see urls with an identifier on the end
of them (i.e. www.abcdomain.com/abc), yet I need the identifier to correctly
send the request to the correct container in Tomcat (meaning the abc app
lives under the /abc folder under webapps in Tomcat). So when a request
comes in for www.abcdomain.com I need to forward that request to Tomcat with
an /abc on the end of it so that Tomcat correctly resolves it to the "abc"
application and then when the response is returned to the user the url still
appears as www.abcdomain.com with no /abc identifier after it. (Does this
make sense?


No. Why don't you just have virtual hosts in Tomcat? That would seem
the obvious way to handle this, whether you "need" Apache in front of
it (for some other unrelated reason) or not.

FWIW!
--
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]



Re: How to test a tomcat virtual host?

2006-09-21 Thread Hassan Schroeder

On 9/21/06, Samsamoddin Rajaei <[EMAIL PROTECTED]> wrote:


I am trying to test my virtual hosts and my tomcat configuration on my
local pc (Windows XP).



When I start tomcat they are no exceptions and everything seems to be ok.
When I call the page "http://127.0.0.1:9080/"; I see the defaultHost
(host1). My Question is: how can I test my other hosts (host2 and host3)


Add them to your hosts file -- on Windows it's something similar to
 C: \WINNT\System32\drivers\etc\hosts

HTH,
--
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]



Re: Uploading the file

2006-09-14 Thread Hassan Schroeder

On 9/14/06, Kristian Rink <[EMAIL PROTECTED]> wrote:


... Could this be due to a web-browser related timeout?


You would certainly get more reproducible test results using, say,
`curl` to do test uploads.

--
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]



Re: Apache2, Tomcat, and connectors

2006-09-12 Thread Hassan Schroeder

On 9/11/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:


I'd like to set up several developers with their own development
environments (tomcat, and their apps) on the app server.


I'm not sure why this seems difficult, but maybe I don't understand
fully what you want to do :-)  In any case --

You have one app server, so you create a Tomcat instance for each
of Fred, Gina, and Bob. The instances have AJP connectors listening
on, respectively, ports 9001, 9101, 9201.

Then your balancer cluster looks something like:


 BalancerMember ajp://testbox:9001 smax=10 loadfactor=10 route=TEST01
 BalancerMember ajp://testbox:9101 smax=10 loadfactor=10 route=TEST02
 BalancerMember ajp://testbox:9201 smax=10 loadfactor=10 route=TEST03


This assumes using mod_proxy_ajp, because I've set that up for a
client recently, and haven't used mod_jk in years.  :-)

Anyway, does that address your use case?

--
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]



Re: jsvc + Tomcat vs Apache + Tomcat

2006-09-11 Thread Hassan Schroeder

On 9/11/06, Greg Johnson <[EMAIL PROTECTED]> wrote:


My production web server is currently running standalone Tomcat on Linux. I 
chose to use jsvc to serve the content on port 80.


You could use iptables to "re-route" port 80 traffic to Tomcat running
on a non-privileged port e.g. 8080...

--
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]



Re: problem with tomcat JDBC realm , i can not login and all configuration are correct

2006-09-09 Thread Hassan Schroeder

On 9/9/06, Legolas Woodland <[EMAIL PROTECTED]> wrote:


I should say that i double check JDBC driver to be in place , double
check connection url ...


"double check" as in, create a simple JSP or servlet that uses that
information to successfully access that table in the DB?


  userTable="users" userNameCol="username"
  userCredCol="password"
  userRoleTable="users" roleNameCol="role_name" />


At least in my -- case-sensitive -- environment, "users" != "USERS",
"username" != "USERNAME", etc. :-)


  CREATE TABLE "HR"."USERS"
   ("NAME" VARCHAR2(32 CHAR),
"USER_ID" NUMBER,
"LASTNAME" VARCHAR2(32 CHAR),
"USERNAME" VARCHAR2(32 CHAR), ...


And have you looked at your logs?

HTH,
--
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]



Re: multiple virtual hosts and ssl certificates

2006-08-25 Thread Hassan Schroeder

On 8/25/06, Paul Singleton <[EMAIL PROTECTED]> wrote:


In 5.5.9 you can put all your certificates in one
keystore ...
I suggest you don't proliferate keystores unless you
really have to...


Why? It seems far more manageable to me having them separate...

--
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]



Re: multiple virtual hosts and ssl certificates

2006-08-25 Thread Hassan Schroeder

On 8/25/06, teknokrat <[EMAIL PROTECTED]> wrote:

So lets see if i understand this correctly. I can only have multiple SSL
certificates if I create different Services in server.xml pointing to
different ports?


No,  you don't need different Services; you need a Connector and
associated keystore per IP (or IP/port) that you want to secure.

--
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]



Re: one docbase, many paths

2006-08-22 Thread Hassan Schroeder

On 8/22/06, Kallin Nagelberg <[EMAIL PROTECTED]> wrote:

What is the best way to setup multiple paths all pointing to the same
docbase?


Have only one Context and use a Filter to forward from the fake "paths"? :-)

--
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]



Re: two application on different port with restriction

2006-08-21 Thread Hassan Schroeder

On 8/21/06, tamri <[EMAIL PROTECTED]> wrote:


so, I have anothr question: If i have 2 application and I want to run this
eachone  different post independently each other,so that , application1 runs
on 8080 port, application2 runs on port 8081, with restriction that
application1 can't run on port 8081, and on the contrary, application2 can't
run on 8080.
how can I do? enyone can help me?


Reading the Fine Manual would be a good way to help yourself :-)

quoting:
A Service element represents the combination of one or  more
Connector components that share a single Engine component for
 processing incoming requests.

Hence you could easily configure two Services, each with a connector
for one of your target ports.

Alternatively, you could use Filters to prevent each app running on an
"unauthorized" port.

FWIW!
--
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]



Re: Creating /WEB-INF folders for virtualhosts

2006-08-21 Thread Hassan Schroeder

What I would like, is to be able to put test.jsp in
/var/www/username/public_html or any user created directory in that
directory. I just can't seem to find the key to this. In fact, I can't
even find where tomcat is setting the default directory to
/usr/local/tomcat/webapps.


Your server.xml file contains at least one  element; the
default location for it to find its webapps (s) is
$CATALINA_HOME/webapps. You can change that by specifying
the appBase, e.g.
  


If someone has a good idea about how to do this it would be greatly
appreciated.


It's in the Tomcat docs. Really. Start here:

<http://tomcat.apache.org/tomcat-5.5-doc/config/index.html>


End of Question  A side note:


And if some of the "lingo" is confusing, you may just want to take the
time to read (or at least skim) the Servlet Spec.

The best directions on changing your car's timing belt do assume a
certainly familiarity with hand tools and internal combustion engines...

FWIW!
--
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]



Re: Dynamically Determining the Web App

2006-08-09 Thread Hassan Schroeder

On 8/9/06, Kohn, Robert M. <[EMAIL PROTECTED]> wrote:

I have two web apps that are identical except for their root directory
(and  entry in server.xml).
Is there any way of determining from within a servlet which one is
actually running?


ServletContext.getServletContextName() should do it, eh?

--
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]



Re: Taglibs ; error in a JSP using expression langluage

2006-08-08 Thread Hassan Schroeder

On 8/8/06, Le Nguyen-Thinh <[EMAIL PROTECTED]> wrote:


My JSP contains a piece of code which calls a tag from the taglib above:



What in the world is that supposed  to be referring to?


java.lang.NumberFormatException: For input string: "${0}"


Try:  

(assuming MAX is actually set somewhere to an integer value...)

--
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]



Re: Two Virtual Hosts

2006-08-06 Thread Hassan Schroeder

On 8/6/06, Li <[EMAIL PROTECTED]> wrote:


The JDBCRealm I defined for deployed one is in server.xml, any idea?


Yes -- read the Fine Manual:

<http://tomcat.apache.org/tomcat-5.5-doc/config/realm.html>

:: which directly addresses your issue :-)

--
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]



Re: Classpath problem

2006-08-06 Thread Hassan Schroeder

On 8/6/06, Julien vander Straeten <[EMAIL PROTECTED]> wrote:


Could someone tell me what command I have to type to make this thing
work?


<http://catb.org/~esr/faqs/smart-questions.html>   :-)

--
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]



Re: Pointing domain to your application

2006-08-03 Thread Hassan Schroeder

On 8/3/06, Gamefaqs Philippines <[EMAIL PROTECTED]> wrote:


>Of course they can -- the OP is talking about two different domains.
>So there would be two  elements, each having its own ROOT
>context.

>So simple, no mod_rewrite nonsense required...

But I'm still probably be needing mod_jk right? How do I point each IP to my 
application?


Do you need Apache httpd for some reason? Supporting PHP or
some other non-Java app? If not, forget it and mod_jk.

Each individual app (Context) is contained within the appropriate Host
element. That's it.

--
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]



Re: Pointing domain to your application

2006-08-03 Thread Hassan Schroeder

On 8/3/06, Edmund Urbani <[EMAIL PROTECTED]> wrote:


Ah. Sorry. I missed the important part, where you said you had two
applications in one tomcat. They can't both have the root context then.


Of course they can -- the OP is talking about two different domains.
So there would be two  elements, each having its own ROOT
context.

So simple, no mod_rewrite nonsense required...

--
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]



Re: Someone Please: Why Is Tomcat Looking In The Wrong Directory?

2006-08-01 Thread Hassan Schroeder

On 8/1/06, Robinson, Eric <[EMAIL PROTECTED]> wrote:

I deleted the first one. It was a legacy of when the application used to
be in that path. Same result.


And restarted Tomcat?

What is your instance of Tomcat's relevant appBase pointing to?

--
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]



Re: Someone Please: Why Is Tomcat Looking In The Wrong Directory?

2006-08-01 Thread Hassan Schroeder

On 8/1/06, Robinson, Eric <[EMAIL PROTECTED]> wrote:


mobiledoc.xml exists in /usr/local/tomcat5/conf/Catalina/localhost

mobiledoc.xml exists in /home/myaccount/tomcat5/conf/Catalina/localhost


The above just feels wrong -- why both places? I'd delete the first one.


The contents of the file are as follows:



And you could certainly specify an absolute path for your docBase,
if you're in a hurry :-)

FWIW,
--
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]



Re: Can GlobalNamingResources be accessed without a ResourceLink

2006-07-31 Thread Hassan Schroeder

On 7/31/06, David Uctaa <[EMAIL PROTECTED]> wrote:

I am running Tomcat 5.5.16, and I have a couple of DataSources set up in the
GobalNamingResources section of my server.xml.  Now, I preferably want to be
able to access these resources without having to set up a separate 
section for each application, so I can deploy new applications that access
these resources without having to modify my server configuration.


So don't put your Context elements in server.xml -- put them in your
new webapp's META-INF/context.xml, where they should be anyway :-)

--
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]



Re: [OT?] is there a way to map an application URL on tomcat like: http://a.com/app1 to http://app1.a.com/

2006-07-28 Thread Hassan Schroeder

On 7/28/06, David Gagnon <[EMAIL PROTECTED]> wrote:

Yes but for each URL:
http://vhost1.site.com
http://vhost2.site.com

I need a host entry in server.xml, so in this case 2 host defined in
server.xml.  Is there a way to have only 1 host defined and using alias
or something like this ?


<http://tomcat.apache.org/tomcat-5.5-doc/config/host.html>

--
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]



Re: [OT?] is there a way to map an application URL on tomcat like: http://a.com/app1 to http://app1.a.com/

2006-07-28 Thread Hassan Schroeder

On 7/28/06, David Gagnon <[EMAIL PROTECTED]> wrote:


For now I only have 1 host with lots of application under it So (1
host->X applications).  If I want to use virtual host I do need to have
1 vHost per application (1 host -> 1 application) right ?


No. A virtual host can have an arbitrary number of webapps.

--
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]



Re: [OT?] is there a way to map an application URL on tomcat like: http://a.com/app1 to http://app1.a.com/

2006-07-27 Thread Hassan Schroeder

On 7/27/06, David Gagnon <[EMAIL PROTECTED]> wrote:


 I have seen this on the website of a Saas supplier yesterday and I was
wondering if it was possible to do it with Tomcat.  When you go on their
website and they assign you an application to the url:
http://yourcompany.saassupplier.com.


This is called a "virtual host"; it requires DNS entries to point that URL
to your server, that's all.

Setting up virtual hosting in Tomcat is documented. :-)

--
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]



Re: apache not talking to tomcat w/ mod_jk

2006-07-26 Thread Hassan Schroeder

On 7/26/06, Ian Caswell <[EMAIL PROTECTED]> wrote:


, but i don't know how to
verify it's loaded.  Is there a way for apache
to show loaded modules?


$APACHE_HOME/bin/apachectl -M

--
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]



Re: Possible to send 503 status over JK?

2006-07-25 Thread Hassan Schroeder

On 7/25/06, Rick G <[EMAIL PROTECTED]> wrote:


The 500 is caught correctly, but I always end up seeing the tomcat generated
error page for a 503.
I guess this could be a mod_jk or apache issue if you are saying that tomcat
is sending the right status code.

Questions:
 what version of tomcat you running?


that quick test was on 5.5.17 standalone just to confirm the correct
http header was being sent.

--
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]



Re: Possible to send 503 status over JK?

2006-07-25 Thread Hassan Schroeder

On 7/25/06, Rick G <[EMAIL PROTECTED]> wrote:


  It seems like on a 503, Tomcat generates its own 503 page and returns
status 200


What makes you think this? I just stopped a webapp with the manager,
tried to load a page, and got (using LiveHttpHeaders) the Tomcat 503
page with the expected status 503 header.

So there wouldn't seem to be a problem, eh?
--
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]



Re: Custom Error page when Tomcat is down?

2006-07-24 Thread Hassan Schroeder

On 7/24/06, Eric B. <[EMAIL PROTECTED]> wrote:


> If Apache is generating an "internal server error" as you indicated, it
> should be returning a 5xx status, I'd think.

I'd think so too.  But I put in ErrorDocument 500 directives, and got
nothing out of it.


OK, simplest test: I took a standalone Apache 2.0.52, put a text-string

 ErrorDocument 500 "Stimpy, you eediot"

into httpd.conf, forced a server error with a CGI script, and got my
test string returned with status  500.

So I would try to get that configured properly first, outside of your
mod_jk stuff, and go on from there.
--
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]



Re: Custom Error page when Tomcat is down?

2006-07-24 Thread Hassan Schroeder

On 7/24/06, Eric B. <[EMAIL PROTECTED]> wrote:


Thanks for the pointer, but the problem that I see is that Apache is
returning the status code 200 to the browser.


If Apache is generating an "internal server error" as you indicated, it
should be returning a 5xx status, I'd think.

--
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]



Re: Xorg vs XFree86

2006-07-24 Thread Hassan Schroeder

On 7/24/06, Ronald Klop <[EMAIL PROTECTED]> wrote:


...port/package stilll has the dependency for xorg-client-libs.
See /usr/ports/www/tomcat55.


So are you saying this "port/package" thing introduces a dependency
not found in a normal 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]



Re: Custom Error page when Tomcat is down?

2006-07-24 Thread Hassan Schroeder

On 7/24/06, Eric B. <[EMAIL PROTECTED]> wrote:


Is there any way I can customize that error page to say/show something
different?


See the Apache doc for "ErrorDocument"

--
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]



Re: Where is my Tomcat

2006-07-24 Thread Hassan Schroeder

On 7/24/06, OOzy Pal <[EMAIL PROTECTED]> wrote:


> This is the reason people who use "installers" need to become very
> proficient with the "find" command :-)



How can I find my JDK?


Uh, did I mention the "find" command

Start with `man find`, perhaps.

And I heartily second rthe recommendation to uninstall all this stuff
and install the JDK and Tomcat from tar files...

Good luck,
--
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]



Re: Where is my Tomcat

2006-07-24 Thread Hassan Schroeder

On 7/24/06, OOzy Pal <[EMAIL PROTECTED]> wrote:


After searching the archive, I checked catalina.out and here is the log

The JAVA_HOME environment variable is not defined correctly
This environment variable is needed to run this program
NB: JAVA_HOME should point to a JDK not a JRE

hmm, where is my JDK, I installed it.


So you need to locate it and set that environment variable.

This is the reason people who use "installers" need to become very
proficient with the "find" command :-)

--
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]



Re: Xorg vs XFree86

2006-07-24 Thread Hassan Schroeder

On 7/24/06, Richard Ehrlich <[EMAIL PROTECTED]> wrote:

Will Tomcat 5.5/freeBSD 6.1 work well with X11/Xorg?


It would take less time to try it than to ask :-)

And I can't imagine what fonts have to do with server software...

--
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]



Re: Xorg vs XFree86

2006-07-24 Thread Hassan Schroeder

On 7/24/06, Richard Ehrlich <[EMAIL PROTECTED]> wrote:

I want to install tomcat 5.5. I see references in the requirements to
XF86 and its fonts.


?? where?

--
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]



Re: Tomcat Memory Status?

2006-07-23 Thread Hassan Schroeder

On 7/23/06, Christopher Schultz <[EMAIL PROTECTED]> wrote:


There is plenty of memory left. If you notice, you have ~1MB free out of
~5MB: you still have ~58MB of memory to expand into before you start
/really/ running out of memory.


Thanks, apparently I've been misinterpreting those numbers for, well,
ever :-)

A little experimentation shows that Tomcat with only the manager app
will run with ` -Xms4m -Xmx4m` (at 2m it immediately exits OOM).

Guess I should revisit some of my webapps' memory usage :-)

--
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]



Re: Tomcat Memory Status?

2006-07-22 Thread Hassan Schroeder

On 7/22/06, Christopher Schultz <[EMAIL PROTECTED]> wrote:


Another poster suggested that you increase your max heap size. That is
reasonable if your application actually needs more memory to function
normally. I encourage you to analyze your memory needs and possibly
increase the heap size to meet those needs. But, don't just jack up the
heap size because you are running out of memory; you might have a
resource leak


...though the original poster said his app *wasn't deployed*.

A fresh install of 5.5.17 with *no* contexts other than the manager --
started up with default catalina.sh script -- starts with:

Free memory: 1.40 MB Total memory: 4.93 MB Max memory: 63.56 MB

I doubt anyone will get much of an application to run in that available free
space. Hence my suggestion that the 64Mb default is pretty useless  :-)

YMMV,
--
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]



Re: Tomcat Memory Status?

2006-07-22 Thread Hassan Schroeder

On 7/22/06, Gamigin Gamigin <[EMAIL PROTECTED]> wrote:

I've been having OutOfMemory problems and I've been watching the
"Server Status" section under Tomcat Manager. Immediately after
starting Tomcat (with my main application undeployed) I see:

Free memory: 2.17 MB Total memory: 5.84 MB Max memory: 63.56 MB

Can anyone explain what these numbers mean? I can't find any
explanation in the Tomcat documentation. What is the difference
between Total memory and Max memory? Free memory is a lot lower than
expected for just starting the server. I can't only have 2MB available
after starting the server and not even running my application.


Sure you can. :-)  The default JVM size of 64Mb is ridiculously small.
Bump it up to ~256Mb at least...

--
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]



Re: The requested resource is not available

2006-07-19 Thread Hassan Schroeder

On 7/19/06, Darren Hall <[EMAIL PROTECTED]> wrote:


When I attempt to go to the above URL I get the error "The requested
resource (/abc/abc) is not available."


I would simplify -- comment out your servlet in web.xml, put a proper
welcome file (e.g. index.jsp) in the context -- and  make sure that
there aren't other errors keeping your context from starting.

Then add back your servlet's url-mapping and watch your logs :-)

--
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]



Re: Don´t work :(

2006-07-19 Thread Hassan Schroeder

On 7/19/06, Bernardo Martin <[EMAIL PROTECTED]> wrote:


I install jdk1.5.0_07 first, httpd 2.2..0 second and jakarta tomcat
5.5.17at the end in suse



/usr/local//apache-tomcat-5.5.17/bin/startup.sh

/

Using JRE_HOME:   /usr/lib/java/jre


Make sure you set JRE_HOME to point to the JDK/JRE you installed!
Because that looks like you're using (expletives deleted) GNU "java"
and I would expect problems with that...

FWIW,
--
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]



Re: automatic rederict to website

2006-07-18 Thread Hassan Schroeder

On 7/18/06, d17may <[EMAIL PROTECTED]> wrote:


currently I have to type like
http://mywebsite:9090/mycontext/

what shud i do so that when i user type
http://mywebsite:9090
it rederict to my context


Why do you want this to redirect? Make your context the default
(ROOT) context. Very simple. Reading the Fine Manual will help
a lot, too, if that's not sufficiently clear...

--
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]



Re: The requested resource is not available

2006-07-18 Thread Hassan Schroeder

On 7/18/06, Darren Hall <[EMAIL PROTECTED]> wrote:




controller
com.abc.framework.controller.ControlServlet




controller
/abc




Also I've tried hitting the servlet directly by pointing my browser
to http://localhost:8080/abc and I get the same "The requested resource
(/abc) is not available" error.


Since it doesn't work with Tomcat standalone, you Apache conf stuff
is irrelevant. The Context configuration would be helpful, though.

But if the above url-pattern is in a Context with path '/abc', then you're
telling it to give everything that looks like 'http://localhost:8080/abc/abc'
to your control servlet, which probably isn't what you want...  :-)

Or there's something else broken in your Context, and that should be
indicated in your logs at startup.

FWIW,
--
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]



Re: URL Redirection in tomcat

2006-07-10 Thread Hassan Schroeder

On 6/29/06, santhoshs <[EMAIL PROTECTED]> wrote:


Am using Tomcat 5.0 . My requirement is to redirect the URL
"http://username.mysite.com"; to
"http://username.site.com/application.do?login_name=username";.



My Question is whether should i use apache for this redirection or can i
achieve this using tomcat itself ? If so what should I do to achieve this ?


You certainly don't need apache, but you do need to read the servlet
spec about welcome files and forwarding. :-)

Also, if the originating URL is the root of your site, where is the value
"username" coming from??

--
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]



Re: Tomcat compiles JSP on every request! Why?

2006-07-05 Thread Hassan Schroeder

On 7/5/06, Sergei P. Volin <[EMAIL PROTECTED]> wrote:


> 1) some other process is touching them and updating the timestamp
> 2) the timestamp is in the future



The other thing that I noticed in my server is that the server clock is
15 min slow a day. Can it be the reason?..


That means that if you drop a changed JSP on the server, it's in the
future for 15 minutes, eh? At least as far as that server's concerned   :-)

Set up NTPD on that server today...

--
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]



Re: Serving CSS files from a certain URL

2006-07-05 Thread Hassan Schroeder

On 7/5/06, Alec Swan <[EMAIL PROTECTED]> wrote:


I like your idea of using filters to rewrite CSS paths. Could you give
me a hint on how to do that best?


Actually, if you're in a hurry, you could just use the URL Rewrite Filter
 -- see <http://tuckey.org/urlrewrite/> -- an incredibly handy tool for lots
of other things as well  :-)

Writing your own would be pretty simple, though -- grab any request
that ends in '.css' , substring off the unwanted parts and forward to
the "correct" URL. Or if you only have a small number of style sheets,
you could put the original and "fixed" URLs in a HashMap and save
the string processing.  TMTOWTDI. :-)

HTH,
--
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]



Re: Serving CSS files from a certain URL

2006-07-05 Thread Hassan Schroeder

On 7/5/06, Alec Swan <[EMAIL PROTECTED]> wrote:

In any case I don't understand why this works in your case.


Now that I have more coffee in me, me neither :-)  It really shouldn't, and
I'm at another location now, so I can't revisit that, but...

The problem is that "relative" to the container depends on how your JSP
is being invoked; consider:


Test
/WEB-INF/jsp/Test.jsp


Test
/test


Test
/foo/bar/test


The second mapping will work with your ../../css/Styles.css link, the
first will not.


BTW, why do you think it's a bad idea to keep web designers focused on the look 
and feel of the site and releaving them from the deployment details?


OT to the list -- but I think a development team should work within a
common (consistent) environment. Otherwise you wind up jumping
through the kind of hoops we're discussing now. :-)

In any case, if I *had* to solve this problem, I'd use the relative links
that work for your 'static' situation, and then either

1) serve all *.css files with a servlet that "fixes" the paths or
2) rewrite the css file paths with a Filter

HTH,
--
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]



Re: Serving CSS files from a certain URL

2006-07-05 Thread Hassan Schroeder

On 7/5/06, Alec Swan <[EMAIL PROTECTED]> wrote:

Web designers don't run web servers or servlet containers on their machines. (I call 
their environment "static").


I understand -- and I think that's a bad idea. But whatever.


So, in my running example Test.jsp would have the following relative link 
../../css/Styles.css in order for it to work in the "static" environment.


Exactly -- which is what I tried, and which works just fine for me.


However, this relative link doesn't work when I deploy Test.jsp in Tomcat.


So, what's different? What path do your logs show as being requested?

--
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]



Re: Tomcat compiles JSP on every request! Why?

2006-07-05 Thread Hassan Schroeder

On 7/4/06, Sergei P. Volin <[EMAIL PROTECTED]> wrote:


I've never seen it before - Tomcat compiles a couple of my JSPs on every
request! Why? How can it be?


Have you checked whether:

1) some other process is touching them and updating the timestamp
2) the timestamp is in the future

? Either of those would do it :-)
--
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]



Re: cluster manual

2006-07-05 Thread Hassan Schroeder

On 7/5/06, MW Janssen <[EMAIL PROTECTED]> wrote:


Can you send how you did it? I mean what is your server.xml settings, how
did you install the different tomcat instances (shared catalina_home
possible??) etc.


OK, I already had two test instances of 5.5.17 running on separate
machines, using Apache 2.2.2 + mod_proxy_ajp for balancing, so
essentially all I did was paste back in the  stuff from the
sample server.xml file in the distribution, add 'distributable' to each
web.xml, turn on multicast on both systems, and restart.

Seriously, as Tim said, the how-to and the comments in server.xml
are all you really need...

--
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]



Re: Serving CSS files from a certain URL

2006-07-05 Thread Hassan Schroeder

On 7/4/06, Alec Swan <[EMAIL PROTECTED]> wrote:


I need to reference Styles.css from Test.jsp in such a way that it works in 
static as well as in deployed mode. Note that for this to work in the static 
mode (no web servers or servlet containers) all paths should be relative. 
Therefore, when I deploy Test.jsp I want Tomcat either to handle relative paths 
correctly or ignore the path altogether and just serve all CSS file from a 
certain location (directory or URL).

The goal of all this is to maintain only one source tree used by web designers 
and Tomcat administrator and avoid changing paths in JSP files during 
deployment.

I would appreciate any feedback on this.


OK, since you asked :-)  -- this seems a really strange requirement;
are your "web designers" unable to run a Tomcat instance to work
in?

But in any case, using relative links to a css file works fine on a test
page I just did that mirrors your described files. So *exactly* how is
this not working for you?

--
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]



Re: cluster manual

2006-07-05 Thread Hassan Schroeder

On 7/5/06, MW Janssen <[EMAIL PROTECTED]> wrote:

Is there a good and detailed manual (thus not the manual on Tomcat website)


Are you referring to:
  <http://tomcat.apache.org/tomcat-5.5-doc/cluster-howto.html> ?

Following it enabled me to set up a 2-node cluster for the first time
in a few minutes, no problems encountered.


or any other documentation/info for clustering 2 tomcat servers? What I want
is 2 servers with tomcat installed to be clustered for failover and
loadbalancing.


So have you tried following the directions? If so, what didn't work?

--
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]



Re: JDBC Realm for several webapp

2006-07-04 Thread Hassan Schroeder

On 7/4/06, Stanislav Komlenac <[EMAIL PROTECTED]> wrote:


> Where are you defining your contexts now??

nowhere! i dont have any contexts define in my applications, as
far as i know :-(


An application *is* a Context. It sounds like reading the servlet spec
would make this a lot less painful:-)

--
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]



Re: Serving CSS files from a certain URL

2006-07-03 Thread Hassan Schroeder

On 7/2/06, Alec Swan <[EMAIL PROTECTED]> wrote:


I have a servlet, which I deploy as a WAR file. I want this servlet to service 
all .jsp requests, but have Tomcat service .css files from /site/css/ directory 
inside the servlet WAR file. I don't want Tomcat to invoke my servlet when 
serving CSS files.


So what's the problem? You map your servlet to *.jsp, and everything
else goes to the DefaultServlet. Right?

How is this not working?
--
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]



Re: OS X Server - Enable Tomcat for JSPs only

2006-07-03 Thread Hassan Schroeder

On 7/3/06, Tom Jacobs <[EMAIL PROTECTED]> wrote:

I want to configure my Mac OS X Server 10.4 so Tomcat handles JSPs,
but Apache serves normal content (including PHP, CGI, and so on),



I've Googled extensively and tried many approaches,


such as?


   but 
without
success. Many of the suggestions I've found either apply to OS X (not
Server),


..an irrelevant distinction, I'd imagine -- what's so different?


  or are several years old and probably obsolete. It seems
like someone should have already invented this wheel but I can't find
the evidence.


If you must use an old Apache httpd, use mod_jk to connect to Tomcat;
otherwise use httpd 2.2 and mod_proxy_ajp. Between the Tomcat docs
and a bit of googling, you should be good to go.

If not, tell us what you *have* tried and exactly how it "didn't work"...

--
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]



Re: JDBC Realm for several webapp

2006-07-03 Thread Hassan Schroeder

On 7/2/06, Stanislav Komlenac <[EMAIL PROTECTED]> wrote:

Citiram Stanislav Komlenac <[EMAIL PROTECTED]>:

>>> I want to have 2 web applications on my web server. Idea si to
>>> makde JDBC Realm unique for each web application.



problem is that i dont understand what should i have in this
{context}.xml files and what should i have in server.xml :-( a
nd where should i put this {context}.xml file?


Where are you defining your contexts now??

--
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]



Re: Serving files to Windows Media Player -- ClientAbortException: java.net.SocketException: Broken pipe (or) Connection reset

2006-06-30 Thread Hassan Schroeder

On 6/30/06, Garth Patil <[EMAIL PROTECTED]> wrote:


I'm trying to debug an application that serves small (20-100k) media
files of various types (.swf, .wmv) to Windows Media Player (primarily
versions 9, 10, 11). The problem I'm experiencing is that I'm seeing a
SocketException with about 50% of the requests.


You're sending Flash files to Windows Media Player?? I can imagine
that resulting in a closed connection  :-)

--
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]



Re: JDBC Realm for several webapp

2006-06-30 Thread Hassan Schroeder

On 6/30/06, Stanislav Komlenac <[EMAIL PROTECTED]> wrote:


I want to have 2 web applications on my web server. Idea si to
makde JDBC Realm unique for each web application. How can i do
this?


<http://tomcat.apache.org/tomcat-5.5-doc/config/realm.html>

The Realm Component

  ...

  You may nest a Realm inside any Catalina container (Engine, Host, or
  Context). In addition, Realms associated with an Engine or a Host are
  automatically inherited by lower-level containers, unless explicitly
  overridden.

Sounds pretty straightforward :-)

Perhaps you should post the relevant part of your server.xml and
{context}.xml 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-mail: [EMAIL PROTECTED]



Re: cgi-bin doesn't seem to work

2006-06-29 Thread Hassan Schroeder

On 6/29/06, Sarah Parrott <[EMAIL PROTECTED]> wrote:

No, it didn't... I checked!


uh, OK. Just seems totally backward to configure and then reinstall.

In any case -- do you have a url-mapping in your web.xml for the
cgi servlet?

Is there anything being written to your log files when you try to access
your example cgi?  Exactly what kind of file is your example?


--
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]



Re: How to suppress implicit conversions when spliiting up the query string into parameters

2006-06-29 Thread Hassan Schroeder

On 6/29/06, KHZ (SAW) <[EMAIL PROTECTED]> wrote:


We've severe problems if a URL contains an umlaut. For URL usage we encode
strings using UTF-8, i.e. "ü" (which would be ü in HTML) can be viewed
as "%c3%bc". Getting the request parameter I'ld expect the same string. But
we see 2 characters. Obviously it's interpreted as ISO8859-1 


<http://tomcat.apache.org/tomcat-5.5-doc/config/http.html>

URIEncoding 

   This specifies the character encoding used to decode the URI bytes,
   after %xx decoding the URL. If not specified, ISO-8859-1 will be used.

HTH!
--
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]



Re: cgi-bin doesn't seem to work

2006-06-29 Thread Hassan Schroeder

On 6/29/06, Sarah Parrott <[EMAIL PROTECTED]> wrote:


 I'm trying to enable cgi on tomcat 5.5. I've uncommented the servlet and
servlet mappings from the web.xml and renamed the server/lib/servelts-
cgi.jar like it says in the howto, and then reinstalled tomcat.


?! "...and then reinstalled it"?

Wouldn't that wipe out your configuration changes?

--
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]



Re: Setting up SSL on Tomcat 5.5.17 - no response from Tomcat

2006-06-28 Thread Hassan Schroeder

On 6/28/06, Erik Matthew Brakke <[EMAIL PROTECTED]> wrote:


keystoreFile="C:\Documents and Settings\Administrator\.keystore"


It's highly advisable to avoid paths with spaces in them for anything
related to Tomcat, Java, etc.

FWIW!
--
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]



Re: Why has Tomcat Undeployed my Applications?

2006-06-20 Thread Hassan Schroeder

On 6/20/06, Antonio Petrelli <[EMAIL PROTECTED]> wrote:


Why here? Your context information should be put either in the
server.xml file or in /META-INF/context.xml
The directory that you used is temporary, AFAIK.


Utterly wrong; please read the doc --
<http://tomcat.apache.org/tomcat-5.5-doc/config/context.html>

--
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]



Re: servlet as an index page ?

2006-06-19 Thread Hassan Schroeder

On 6/19/06, Leonel <[EMAIL PROTECTED]> wrote:


I'm trying  to make a  Servlet  act as a Index page


Suggestion: *read* the 2.4 Servlet Spec :-)

If you're not running a 2.4 webapp, forward from the welcome-file
of your choice...

HTH,
--
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]



Re: Problem with tag library calling

2006-06-14 Thread Hassan Schroeder

On 6/12/06, Alex Turner <[EMAIL PROTECTED]> wrote:

I have the following lines in my source file:

<%@ taglib prefix="mp" uri="com.mintpixels.web.helper" %>


Has this ever worked? Because that "uri" above doesn't look much
like a URI to me :-)(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]



Re: how to install php on tomcat?

2006-06-09 Thread Hassan Schroeder

On 6/9/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:

A better idea would be to put Apache in from of Tomcat and compile PHP
into that.


And an even better idea, if you *must* have PHP, would be to run
Apache *alongside* Tomcat on a separate IP, and not add pointless
complication to 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, e-mail: [EMAIL PROTECTED]



Re: how to install php on tomcat?

2006-06-09 Thread Hassan Schroeder

On 6/9/06, Nikita Tovstoles <[EMAIL PROTECTED]> wrote:

I know nothing about php, so this may be a dumb question, but how do I
add php support to tomcat?


A PHP servlet can be built from source in PHP4; last time I looked
that feature wasn't in PHP5. But I haven't looked 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  [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]



Re: Re: [help] blank index.jsp on Tomcat 5.5.9

2006-05-28 Thread Hassan Schroeder

On 5/27/06, Garner Shawn <[EMAIL PROTECTED]> wrote:

I seen it in the servlet spec but maybe it was spec 2.3 and not 2.4.
It said it it has to be a . where  is .jsp or .html.


I don't see any such thing in either the 2.3 or 2.4 specs, and just
added an arbitrary name -- "home.doodah" :-) -- to my welcome
list and it worked as expected.


I tried the forward and redirect with no spaces and neither work.


? In a previous mail you said the forward worked, but the redirect
didn't. Has this changed?


I also tried putting the welcome file as the welcome.jsf and that
doesn't work either.


Q: why do you have index.jsp mapped as a servlet?
  
  org.apache.jsp.index_jsp
  org.apache.jsp.index_jsp
  

Is that a JSF thing, or ?

Regardless, can you create a minimal WAR that demonstrates this
problem? If so, send it to me offlist 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]



Re: Re: [help] blank index.jsp on Tomcat 5.5.9

2006-05-26 Thread Hassan Schroeder

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 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]



Re: [help] blank index.jsp on Tomcat 5.5.9

2006-05-25 Thread Hassan Schroeder

On 5/25/06, Garner Shawn <[EMAIL PROTECTED]> wrote:

I have an index.jsp that redirects to a jsf page.



<%response.sendRedirect("welcome.jsf");%>



However I know the webapp was deployed because if I type in
/welcome.jsf the page comes up.


Not sure why you'd redirect 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 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]



Re: More (Unending) "Resource Not Found"/ Directory Problems

2006-05-25 Thread Hassan Schroeder

On 5/25/06, Allen Williams <[EMAIL PROTECTED]> wrote:

Yeah, I fixed that.  That error is no longer in the logs.


Let me assure you that absolute appBase and absolute docBase
paths work fine together -- I've got systems in production set up
that way.

In any case, what *does* show up 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: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



<    4   5   6   7   8   9   10   >