Re: Session Affinity and Session Replication

2007-02-06 Thread Hassan Schroeder

On 2/6/07, Rob Bugh <[EMAIL PROTECTED]> wrote:


All the documentation I've read to date indicates not to use sticky
sessions and session replication together.


Can you cite where you saw that?

I've set up a similar config (using mod_proxy_ajp) with both sticky
sessions and session replication 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: Session Affinity and Session Replication

2007-02-06 Thread Hassan Schroeder

On 2/6/07, Rob Bugh <[EMAIL PROTECTED]> wrote:

My confusion in part stems from this comment in the The Apache
Tomcat Connector - Reference Guide,
http://tomcat.apache.org/connectors-doc/reference/workers.html


Ah, OK -- perhaps that's JK-specific. As I said, I used mod_proxy_ajp
which has no "worker" configuration to it. In fact, having used mod_jk
in the distant past, I was impressed by the simplicity of configuration
of the mod_proxy_ajp setup. Might be worth a look :-)

--
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: Load Balancing Configuration

2007-02-06 Thread Hassan Schroeder

On 2/6/07, Rob Bugh <[EMAIL PROTECTED]> wrote:


I currently have the following load balancing configuration: Apache with mod_jk 
and 2 Tomcat servers and Apache acts as the load balancer for the two Tomcat 
servers. I'm concerned about the single point of failure with Apache, however. 
Is there an alternate configuration that, for instance, allows me to have more 
than one Apache server balancing the Tomcat servers?


If you /need/ real-time redundancy/failover, you want dedicated load
balancer hardware.

If your budget doesn't cover that, here's the bargain way(tm):

Set up two servers with Apache httpd, call 'em X and Y.

X is configured with the Web server's public IP address. A cron job on
Y pings or gets a test page every N seconds from X.

If that fails (or depending on how trigger-happy you want to be, fails
for some # of attempts) then the cron job on Y ifconfigs the box to
respond to the IP of X.

(You can criss-cross this if you're using round-robin-DNS.)

Hacky zero-dollar failover, and duct tape left over :-)

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: Load Balancing Configuration

2007-02-06 Thread Hassan Schroeder

On 2/6/07, Rob Bugh <[EMAIL PROTECTED]> wrote:


If all of the incoming connections are over SSL can a harware load
balancer handle this?


Dunno -- my experience was a while back with Cisco Local Directors,
and SSL was never a requirement.

Hopefully someone else can chime in with relevant experience. Sorry!

--
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 encryption serverice

2007-02-06 Thread Hassan Schroeder

On 2/6/07, �墙鹉� <[EMAIL PROTECTED]> wrote:


I want to confirm one thing that Tomcat only can provide SSL encryption
serverice with sign-self certificate ?


Nope, utterly not true.


Because i have tried SSL with certificate signed by our own CA, Tomcat would
not work and occured SSL handshake Exception.


Have you followed this doc?
 <http://tomcat.apache.org/tomcat-6.0-doc/ssl-howto.html>

If that doesn't give you enough information to get it working, please
provide more info about your exact configuration.

--
Hassan Schroeder  [EMAIL PROTECTED]


Re: Tomcat SSL configure for only one application.

2007-02-09 Thread Hassan Schroeder

On 2/9/07, Cartman <[EMAIL PROTECTED]> wrote:

Hi, I want to configure my tomcat server for use ssl but I have some
applicatións working on this server and I don't want that all application
work with ssl, just only one will work with ssl support.   How do I do that?


Are you talking about different *hosts* or different webapps within
the same host?

--
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 5.5 redirect vs. forward behavior with welcome-file-list

2007-02-12 Thread Hassan Schroeder

On 2/12/07, Todd Gamber <[EMAIL PROTECTED]> wrote:


I realize that populating content based on what's in the URL bar is not the
best design, but I can't seem to find another way to definitively get the
name of the actual JSP being requested.


TSSIYF -- The Servlet Spec is your friend :-)

SRV.8.4.2 Forwarded Request Parameters
  Except for servlets obtained by using the getNamedDispatcher
 method, a servlet that has been invoked by another servlet using
 the forward method of RequestDispatcher has access to the path
 of the original request.

 The following request attributes must be set:
   javax.servlet.forward.request_uri
   javax.servlet.forward.context_path
   javax.servlet.forward.servlet_path
   javax.servlet.forward.path_info
   javax.servlet.forward.query_string

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: 2nd Try for Advice on Tomcat Shutdown

2007-02-13 Thread Hassan Schroeder

On 2/13/07, Scott Danforth <[EMAIL PROTECTED]> wrote:

Hmmm. I just joined this mailing list today,



But, so far, nobody has responded to my posting. Maybe I'm asking about
something so trivial


or maybe you're just a wee bit impatient? :-)


I kind of expect there must be something in Tomcat like JServ's soft
shutdown


Not that it' s definitive, but I've never heard of such a thing.


Can somebody tell me what the Tomcat solution is?


Yeah, don't worry, be happy; use session replication and just pull the
plug whenever. At least that's worked for me  :-)

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: 2nd Try for Advice on Tomcat Shutdown

2007-02-13 Thread Hassan Schroeder

On 2/13/07, Scott Danforth <[EMAIL PROTECTED]> wrote:


The only problem is that my session data isn't serializable. So it isn't
going anywhere in the near term.


That is, indeed, a fly in the ointment ... :-)

--
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] RE: insight into model.do

2007-02-14 Thread Hassan Schroeder

On 2/14/07, Steve Ingraham <[EMAIL PROTECTED]> wrote:


Ok, I have been trying to locate the class file but am striking out.
Can someone tell me where this "my.package.action.ModelAction" class
would be located in a Jakarta Tomcat 5.5.9 build on a Redhat AS 3
machine?  I have run the command "locate *.ModelAction*" with no return.


Your struts-config.xml entry shows the file you're looking for:

 type="org.keel.clients.struts.ModelAction"

So find the *source* for the application, and look for
{wherever}/org/keel/clients/struts/ModelAction.java

Again, this is *the webapp's source code* -- very likely somewhere
other than the Tomcat install directory.

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 mysteriously shuts down

2007-02-15 Thread Hassan Schroeder

On 2/15/07, raine king <[EMAIL PROTECTED]> wrote:


How do I check if another app is sending Tomcat messages?


You could try the --log option in iptables. Or write a simple listener
daemon to log the event if that doesn't provide enough data.

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: Jsp gest 404 error

2007-02-15 Thread Hassan Schroeder

On 2/15/07, Coelho.Joao <[EMAIL PROTECTED]> wrote:


Is there a way to get some logs going?


Absolutely, and it's covered in the Fine Manual :-)

Might be a good next stop...

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: Jsp gest 404 error

2007-02-15 Thread Hassan Schroeder

On 2/15/07, Coelho.Joao <[EMAIL PROTECTED]> wrote:

What Fine manual ?


?! You're joking, right? If not, speaking to your immediate question,
that'd be <http://tomcat.apache.org/tomcat-4.1-doc/config/logger.html>

Or use the local copy included in your standard Tomcat installation as
$CATALINA_HOME/webapps/tomcat-docs

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 Apache SSL Unauthenticated Content

2007-02-16 Thread Hassan Schroeder

On 2/16/07, c. <[EMAIL PROTECTED]> wrote:


I've got tomcat running with apache using mod_proxy_ajp.  Apache is
serving out all static files and taking care of ssl.  When I go to a
secure page under tomcat (https) I always get a warning that the page
contains unauthenticated content.


If Apache httpd is "taking care of SSL", then this has nothing to do
with Tomcat. You need to determine what's being requested that's
not being delivered via HTTPS.

--
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: Root context setup

2007-02-16 Thread Hassan Schroeder

On 2/16/07, Jim Goodspeed <[EMAIL PROTECTED]> wrote:


I want myapp.war to be the default application


Name it ROOT.war, which Tomcat recognizes as the default context.

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: URL Redirect Question

2007-02-18 Thread Hassan Schroeder

On 2/17/07, Stanczak Group <[EMAIL PROTECTED]> wrote:

So create a filter or is there one already to use?


If you don't want to roll your own:  <http://tuckey.org/urlrewrite/>

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: Installing Tomcat 6.0.9 on Sun Solaris

2007-02-19 Thread Hassan Schroeder

On 2/19/07, Daniel Gresh <[EMAIL PROTECTED]> wrote:


I've been following the installation instructions in RUNNING.txt.
Basically, it tells me to download the binary distribution, unpack it,
make sure JDK1.5 or greater is installed, and run the server. I also need to 
set up a CATALINA_BASE,


No, you don't. Until you've gotten the basic installation down, stay out
of the "advanced configuration" section. :-)

If you follow *exactly* the steps before that, it should just work. If it
doesn't, e.g., you're still getting a "connection failed" error, check to
see whether the process is running or not. If not, check the logs, and
if so, check for firewall/iptables/whatever problems.

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: Installing Tomcat 6.0.9 on Sun Solaris

2007-02-19 Thread Hassan Schroeder

On 2/19/07, Daniel Gresh <[EMAIL PROTECTED]> wrote:


However, startup.sh does not start the
server apparently; I cannot connect to it from a browser


You need to look in your server logs for the underlying problem that's
preventing Tomcat from 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]



Re: Persisting Sessions to Database for Fault-Tolerance

2007-02-20 Thread Hassan Schroeder

On 2/20/07, Nathan Hook <[EMAIL PROTECTED]> wrote:


The company I am working for is trying to get our application to
"Enterprise Strength" and have been working on server failover issues.



As of right now I'm not a fan of the current clustering solution that is
offered by tomcat


Because?

--
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 setup multiple CATALINA_BASE

2007-03-01 Thread Hassan Schroeder

On 3/1/07, Rao Manekar <[EMAIL PROTECTED]> wrote:
.

when I type www.website1.com in my browser, how does that request gets
routed to  on my local tomcat installation?


Or to put it another way --

"When I ask for www.website1.com, why does Tomcat give me the
webapps associated with www.website1.com?"   :-)

Uh, why *wouldn't* it? Isn't that the whole point of named virtual hosts?

And given that's it's trivial to simply /try/ this and see that it does in fact
work exactly this way...

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 setup multiple CATALINA_BASE

2007-03-01 Thread Hassan Schroeder

On 3/1/07, Rao Manekar <[EMAIL PROTECTED]> wrote:

As a matter of fact I tried it.  It
did not work.  I couldn't figure out the relation between  element and
its IP address.


You don't have to. :-)  And in fact, it's really irrelevant whether the two
hosts have different IPs or not -- the names, as Charles already said,
are what are matched.

If you're still having trouble, post the relevant parts of your server.xml.

--
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 setup multiple CATALINA_BASE

2007-03-01 Thread Hassan Schroeder

On 3/1/07, Rao Manekar <[EMAIL PROTECTED]> wrote:


We know that for sure that there is a domain name www.cnn.com registered in
DNS.
Let's say I create a  element and add my application files under
${catalina.home}/www/appBase/www.cnn.com


?! where did you get that path? Never mind, it doesn't matter because...


If any one in the world type www.cnn.com would that request come to my
server and get application under ${catalina.home}/www/appBase/www.cnn.com


..this is so seriously confused. Answer: of course not -- DNS lookups
will provide the *real* address of CNN as they're supposed to.

So do you actually have a registered domain? Does the IP address
point to your server? If so, you're set. Lather, rinse, repeat.  :-)

--
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 setup multiple CATALINA_BASE

2007-03-01 Thread Hassan Schroeder

On 3/1/07, Rao Manekar <[EMAIL PROTECTED]> wrote:


Let me ask you this, Charles and Hassan, do you have an installation with
tomcat referring to two websites with two different IP addresses?


Sure, several. Some have one connector that listens on all addresses
*configured on that host*, some have multiple connectors for specific
addresses (to handle SSL, etc.).

Again, if you're still having problems, post your configuration and more
specifics.

--
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 6 will not compile under Windows with the current Java

2007-03-02 Thread Hassan Schroeder

On 3/2/07, Ron Wheeler <[EMAIL PROTECTED]> wrote:


Am I correct in assuming that everyone is going to have the same problem
with logging.


It's not clear to me what "problem" you're trying to solve. I'm running
TC 6.0.9 out of the box with Java 6 and log4j for my apps, no probs.

If Spring wants log4j, drop the jar file in there, and you're done, eh?

Or am I totally missing something? :-)

--
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: Writing My Own Connector

2007-03-02 Thread Hassan Schroeder

On 3/2/07, Peter Kennard <[EMAIL PROTECTED]> wrote:


What I would like to do is take an AJP connector,
redo it's insides to parse another format and
then pass the requests off to servlets.


Seems to me that looking at the differences in source between two
connectors (e.g. AJP and HTTP) would be the best documentation of
what you'll have to change :-)

--
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: Named based virtual host redirection

2007-03-06 Thread Hassan Schroeder

On 3/6/07, Darren Kukulka <[EMAIL PROTECTED]> wrote:


This worked but I want to hide the redirect URL,


and eliminate the doubled network traffic, I hope? :-)

Anyway,



DocumentRoot d:/apache2/htdocs
ServerName test.abc.co.uk
ProxyPass / http://fred.abc.co.uk/app1/
ProxyPassReverse / http://fred.abc.co.uk/app1/


This almost works, but it only appears to show the html content, not the
JSP.  Does anybody have any suggestions how to make this work?


1. move your static content to Tomcat,
2. use mod_proxy_ajp instead of mod_jk

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: Another howto: Load Balancer + fail over (two active Tomcats, one backup Tomcat)

2007-03-07 Thread Hassan Schroeder

On 3/7/07, Christopher Schultz <[EMAIL PROTECTED]> wrote:


Load balancing pretty much always comes down to either:
1. A single point of failure (Apache httpd, BigIP, or whatever).
or
2. Non-100% reachability (for instance, due to one of the
   round-robin'd web servers going down).


At which point you use `ifconfig` to add the failed IP to the working
httpd box and it's back to 100%  :-)

--
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 does one configure Plain host domain url to run web app?

2007-03-13 Thread Hassan Schroeder

On 3/13/07, John Moore <[EMAIL PROTECTED]> wrote:


Problem with this an your solution is that is it messy..


Front-ending Tomcat with Apache is messy :-)

If you *must* use Apache for whatever reason, you'd be better off
using mod_proxy_ajp in conjunction with mod_rewrite to handle this
configuration.

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: Could filter redirect the request from one servlet to another servlet ?

2007-03-13 Thread Hassan Schroeder

On 3/13/07, David Delbecq <[EMAIL PROTECTED]> wrote:


You could do an internal redirect (request -> requestDispatcher ->
forward), but it would short circuit the filter chain, some important
filter might not be executed..


which presumably one knows when one's developing the app :-)

Just to reiterate David's point: put your forwarding filter /last/ in the
chain, and it'll be fine; I've done this in the past with no problems.

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 does one configure Plain host domain url to run web app?

2007-03-13 Thread Hassan Schroeder

On 3/13/07, John Moore <[EMAIL PROTECTED]> wrote:


> Front-ending Tomcat with Apache is messy :-)

Really..   Why.. ??


By which I meant, httpd is an extraneous complication, unless you
really need to have something like PHP or other service outside of
Tomcat. Do you?

If that's the case, mod_proxy_ajp is far simpler to configure than mod_jk.
But if not, simplify your life :-)

--
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: common JSTL tagging pattern is a problem for Tomcat

2007-03-20 Thread Hassan Schroeder

On 3/20/07, Pat Willard <[EMAIL PROTECTED]> wrote:


My JSP begins as follows:




All attempts using a typical JSTL tagging sounded by 

Uh, that's the way XML works -- you can't nest tags like that. But

 First Name: 

Re: A disk directory context without cache

2007-03-21 Thread Hassan Schroeder

On 3/21/07, Artur Rataj <[EMAIL PROTECTED]> wrote:

 it all gives
404 when trying

http:///disk


Do you have a valid welcome file, or are you specifically trying a file
that you *know* is there? e.g. either

 http:///disk/index.jsp
or
 http:///disk/foo.html

Directory listing isn't on by default; if you want it, you'll need to make
that change in web.xml.

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: Who do I have to pay (and how much) to...

2007-03-21 Thread Hassan Schroeder

On 3/21/07, Matthew <[EMAIL PROTECTED]> wrote:


Here's the set up I imagine (a fixed size font may be needed to view the
directory structures below)...

In server.xml...








This is just not that difficult. Specify an appBase for each host, e.g.




Now in $CATALINA_HOME/webapps/foo put your domain1.war
renamed to ROOT.war and in $CATALINA_HOME/webapps/bar
put domain2.war, likewise renamed to ROOT.war

Restart. Done.
--
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: Subdomains and Tomcat...

2007-03-22 Thread Hassan Schroeder

On 3/22/07, Piyush Jamkhandi <[EMAIL PROTECTED]> wrote:


 Can someone point me to how I can setup a subdomain? For example if I have
a domain www.domain.com  I need to create a second server for
blog.domain.com.


"domain.com" is a domain; www.domain.com is a host name, as is
blog.domain.com. So yes, you set these each up as virtual 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: Launching Tomcat at boot

2007-03-25 Thread Hassan Schroeder

On 3/25/07, dimitryous r. <[EMAIL PROTECTED]> wrote:


My start_tomcat contain the following code:



export JAVA_HOME=/usr


Well, right off the bat that line is useless :-)  It needs to point to your
installation of Java. Fix that and make sure the script starts Tomcat
when run from the command line first...

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: Launching Tomcat at boot

2007-03-25 Thread Hassan Schroeder

On 3/25/07, David Harrison <[EMAIL PROTECTED]> wrote:


>> export JAVA_HOME=/usr



No the JAVA_HOME directive is correct for OSX.

This article maybe worth reading, it covers setting Tomcat to load on
boot in OSX.
It appears to be written for 10.3 but the theory should hold true for
10.4:


??? The article shows this line in the example startup script

 export JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Home

and here's the JAVA_HOME variable from the PowerBook (OS X,
10.4.9) that I'm sending this from:

 /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0

So /if it were me/ I'd change that line in the OP's script :-)

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: Launching Tomcat at boot

2007-03-25 Thread Hassan Schroeder

On 3/25/07, David Harrison <[EMAIL PROTECTED]> wrote:


Either way works but Apple seems to promote the JAVA_HOME=/usr
alternative:


Um, an article citing Tomcat *4.0.1* as "the latest"? OK

Let's just say: my startup script works, the OP's doesn't. You're more
than welcome to adhere to the approach of your choice. :-)

--
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: Paths in CSS files

2007-03-27 Thread Hassan Schroeder

On 3/27/07, Mike Quilleash <[EMAIL PROTECTED]> wrote:


I have a question about accessing resources from within CSS files,



Particularly the url "/image/box.png".  Potentially my Tomcat web
application may be run with a context path so "/image/" becomes
"/contextpath/image" and all the CSS breaks.  Is there a way round this?


background:url(${pageContext.request.contextPath}/image/box.png)
no-repeat 100% 0;

Parse those files as JSPs and the above will take care of it :-)

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: Is it possible to have more than one submit button in a JSP file?

2007-03-28 Thread Hassan Schroeder

On 3/28/07, Teh Noranis Mohd Aris <[EMAIL PROTECTED]> wrote:


I would like my system to have several submit buttons


This is a basic HTML question, nothing to do with JSP.

Yes, a form in an HTML document can have multiple submit buttons;
reading the appropriate recommendation is, uh, recommended :-)

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: Is it possible to have more than one submit button in a JSP file?

2007-03-28 Thread Hassan Schroeder

On 3/28/07, Teh Noranis Mohd Aris <[EMAIL PROTECTED]> wrote:


 Maybe my question is not that clear. What I mean, is that there are
2 buttons that read data from the server and write data to the server
using one textarea.


OK, so? It's basic webapp stuff. Is there an actual technical question
here /about Tomcat/?

--
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: accessing object created in servlet from jsp

2007-03-30 Thread Hassan Schroeder

On 3/30/07, Mark <[EMAIL PROTECTED]> wrote:


I try to send an object from servlet to jsp



<%if (wa == null) wa = "blank";%>



But it doesn't work :( "blank" always get displayed, which means I'm
not getting the object from request in jsp.


Or the object really is null :-)

Does it show up if you put it in the session instead?

--
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: Filter class not found problem

2007-04-04 Thread Hassan Schroeder

On 4/4/07, Frank W. Zammetti <[EMAIL PROTECTED]> wrote:


As per my post last night, I discovered that the problem starts in
6.0.10...


FWIW, I just installed 6.0.10 and dumped in a webapp of mine that
uses a Filter as a front controller, and it works fine.

I have both JAVA_HOME and JRE_HOME defined for convenience (so I
can switch as I test/upgrade versions); right now it's Java  1.6.0-b105
as

echo $JAVA_HOME

/usr/local/jdk1.6.0

echo $JRE_HOME

/usr/local/jdk1.6.0/jre

So I'd say it's not a problem intrinsic to /all/ Filters...

--
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 redirect to stub page when app unavailable?

2007-04-05 Thread Hassan Schroeder

On 4/4/07, Darren Kukulka <[EMAIL PROTECTED]> wrote:


I'm trying to formulate a clever method of providing a stub page, 'under
maintenance' if you will, for when we are building a new version of a
Tomcat served application : i.e. when Tomcat is offline -


I haven't used mod_jk for a long time, but I'm pretty sure you'll get a
503 status generated if it can't reach Tomcat.

Just customize the Apache 503 error page to taste...

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 hiding director

2007-04-05 Thread Hassan Schroeder

On 4/4/07, Hoa Doan <[EMAIL PROTECTED]> wrote:

Is there a way to hid some directory from user access?


Read the servlet spec section on security,  and configure your app's
web.xml appropriately. No other software 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: Tomcat documentation suggestion - for installs and config, please also link to this web page.

2007-04-06 Thread Hassan Schroeder

On 4/6/07, Anil Philip <[EMAIL PROTECTED]> wrote:


I was trying to install and run Tomcat 6, but could
not proceed because the build.xml in the documentation
over here was broken due to the new directory
structure.


It's perfectly possible (and typical) to "install and run" Tomcat without
any reference to that build.xml file, so if you're having problems, that
probably isn't one of them. :-)

OTOH, if it's out of date, creating a patched version would be a good
contribution -- better than pointing to some third-party site...

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: Tomcat documentation suggestion - for installs and config, please also link to this web page.

2007-04-07 Thread Hassan Schroeder

On 4/7/07, Anil Philip <[EMAIL PROTECTED]> wrote:

It is possible to install, but not to follow the
development processes in the tomcat page.
I am a Tomcat newbie. Perhaps you can create the
patched version?


OK, here's a patch file -- totally untested, since I've never used
this build.xml, and don't have the time right now to dig into it any
further.

Maybe you can test the patch and tell us if it works :-)

(And if not, what /specific/ problem(s) you're seeing.)
-
***
*** 218,235 
 -->

 
! 
! 
   
 
- 
-   
- 
- 
- 
-   
- 
-
   


--- 218,226 
 -->

 
! 
   
 
   

-----

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: assistance with logon error

2007-04-09 Thread Hassan Schroeder

On 4/9/07, Steve Ingraham <[EMAIL PROTECTED]> wrote:


I have been searching for any configuration files in our web application
that would have the specific line directing to the "now incorrect" DC.
Can anyone provide me with information on where this configuration file
may reside?  What its name, location, path could be?  Is there a
standard location in a Tomcat environment where this type of
configuration file may be?


Chances are it's either in an XML file -- /WEB-INF/web.xml would be
the first place to look -- or in a "properties" file, typically found under
/WEB-INF/classes/ as e.g., foo.properties.

But I would think `find` and `grep` would be your friends here :-)

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: assistance with logon error

2007-04-09 Thread Hassan Schroeder

On 4/9/07, Steve Ingraham <[EMAIL PROTECTED]> wrote:


There are at least 4 or 5 different "web.xml" files in various locations
on this server.  I have looked through most all of them to this point.
Is there something specific in the content of the file I should be
looking for that would be directing the application to use the specific
server DC for authentication?


See below --


But if I do not know what I am looking for to 'find' or 'grep' how can I
use these?


I know zero about Windows Domain Controllers, but surely there's
a way to uniquely identify one -- name, IP, something. So you'd think
that that would have to be in the config file, 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: assistance with logon error

2007-04-09 Thread Hassan Schroeder

On 4/9/07, Steve Ingraham <[EMAIL PROTECTED]> wrote:


Yes, that is true.  I am looking in every file I can find for the name
(it is 'occadb' by the way) for that server.



find -type f -print0 | xargs -r0 grep -F 'occadb'


Given the case-insensitive nature of Windows, you might make that
grep -iF in case it's in some file as OCCADB. :-)

Worst case, you'll have to dig into the source...

--
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: [Fwd: Can't run jsp pages on tomcat 6.0.10]

2007-04-09 Thread Hassan Schroeder

On 4/9/07, Rui Monteiro <[EMAIL PROTECTED]> wrote:

Nobody says nothing so i admit it it's something new as i feared. And
probably nobody is using tomcat 6 (wise people).


Hardly :-)


Am i the only one who thinks the migration between tomcat versions is
too much of a headache?


Possibly -- I switched from 5.5.x/Java 5 to 6.0.x/Java 6 by changing the
batch file I use to set CATALINA_HOME and JAVA_HOME, and none of my
apps complained in the slightest.

Can you post a simple WAR file showing the problem you're seeing?

--
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: [Fwd: Re: [Fwd: Can't run jsp pages on tomcat 6.0.10]]

2007-04-09 Thread Hassan Schroeder

On 4/9/07, Rui Monteiro <[EMAIL PROTECTED]> wrote:

Ok that wasn't exactly true. The examples which work ok are only the
servlets examples (and by the way a pure zk application uses only
servlets thats why the other app goes ok too).


If I were you, I'd reinstall Tomcat and test the examples and simple
JSPs to confirm that everything works properly for you, as it does for
pretty much everyone else. :-)

Then try adding in this "zk application" -- that seems to be a single
obvious differentiating factor...

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: Cannot open apache

2007-04-10 Thread Hassan Schroeder

On 4/10/07, gokal <[EMAIL PROTECTED]> wrote:


Since the day I pressed Ctrl+C, I cannot see the Apache webpage. I type
startup.bat and when I goto http://localhost:8080 , I get PAGE Cannot be
displayed.


1) have you looked at the logs??

2) open a command window; increase the screen buffer and window
   sizes so you can actually see something in it :-)

   Then type `catalina.bat run` -- the window will stay open while
   Tomcat starts, and you'll be able to see any error messages.

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 hide Tomcat serverversion information?

2007-04-10 Thread Hassan Schroeder

On 4/10/07, Rashmi Rubdi <[EMAIL PROTECTED]> wrote:


Also, the server option didn't work on Tomcat 6.0.x


FWIW, I just tried it on my 6.0.9 instance and LiveHTTPHeaders shows:

Server: foo/bar


After a restart, of course...

--
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 hide Tomcat serverversion information?

2007-04-10 Thread Hassan Schroeder

On 4/10/07, Rashmi Rubdi <[EMAIL PROTECTED]> wrote:


seeing the ServerName/Version on a default 404 page.


Ah, yes-- the default 404 shows 'Apache Tomcat/6.0.9' in the footer.
Another case for configuring custom error pages for all your apps :-)

--
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: Upgrading Tomcat

2007-04-11 Thread Hassan Schroeder

On 4/11/07, Laura McCord <[EMAIL PROTECTED]> wrote:

Are there any instructions available on how to upgrade a Tomcat version?


If by "upgrade" you mean "overwrite an existing installation" -- I'd
suggest you don't really want to do that :-)


I have Tomcat 5.0.28 installed and I want to upgrade to Tomcat 5.5.23


Untar to a new directory, configure and test running with a different
Connector port setting(s). Then going live is a matter of flipping the
settings and restarting.

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: Upgrading Tomcat

2007-04-11 Thread Hassan Schroeder

On 4/11/07, Laura McCord <[EMAIL PROTECTED]> wrote:

So, basically I have to setup a new tomcat instance and move all the
webapps over to the new install?


Well, I upgrade regularly, so I keep my appBase(s) set to directories
outside of the Tomcat installations. That way I can toggle test installs
on and off easily, and no apps need to be moved or copied.

With all individual apps configured via META-INF/context.xml, only the
relevant parts of server.xml need to be copied.

Once you get set up properly, moving to a new version becomes a
trivial exercise. :-)

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: Security question - starting tomcat as non-root user

2007-04-11 Thread Hassan Schroeder

On 4/11/07, Neil B. Cohen <[EMAIL PROTECTED]> wrote:


Situation - I am installing tomcat and running it on port 8080. However,
it is currently being started by the root user and I need to change
that.

If I just run the startup script as user 'foo', I get errors because it
can't read various config files in the conf directory, can't write to
the logs directory etc.


Because having once run as root, all directories and files /created by/
Tomcat are owned by root. If you reinstalled and initially started it as
user 'foo', everything would be owned by foo.

So either reinstall, or change ownership of everything to 'foo'.

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: virtual directory

2007-04-11 Thread Hassan Schroeder

On 4/11/07, Sylvain Roche <[EMAIL PROTECTED]> wrote:


I took the images example to explain and simplify the problem, but


Regardless, I don't understand what you're trying to do --

do you want to have e.g.
   example.com/foo/images
   example.com/bar/images
where 'images' points to the same content?

If so, you could handle that via symlinks. If it's something else, maybe
you can provide a different 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: virtual directory

2007-04-11 Thread Hassan Schroeder

On 4/11/07, Sylvain Roche <[EMAIL PROTECTED]> wrote:

The symlink solution could work, except that it is not what I want to
do. The production application is hosted on linux servers, but we
also have to deal with the developpers' computers, which runs windows


That's fixable :-)


What I need basically il to have a subdirectory of my webapp located
somewhere else on my disk


Given that webapps are supposed to be self-contained, I'm not
surprised Tomcat doesn't provide such a facility...


Actually on oc4j


..nor am I surprised that oc4j does, but let's not go there :-)

If it were me, I'd consider just using your build system to make copies
of those directories, in the short term at least.

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: Tomcat 5.5.23 Question

2007-04-11 Thread Hassan Schroeder

On 4/11/07, James Reinertson <[EMAIL PROTECTED]> wrote:

All right. So then I have two questions.

1. Is it possible to have two JRE versions (1.4.x and 1.6.x) installed
on the system running Tomcat 5.5 and set Tomcat to use JRE 1.4?


Of course. $JAVA_HOME, $JRE_HOME - set them as you like.


2. Is it possible to set Tomcat 5.5 to use JDK 1.4 for compiling JSP
instead of the Tomcat 5.5 built in compiler?


google "tomcat java compiler" -- see first result :-)

HTH,
--
Hassan Schroeder  [EMAIL PROTECTED]

-
To start a new topic, e-mail: [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Problem reading the Accept-Encoding header from a request

2007-04-14 Thread Hassan Schroeder

On 4/14/07, Christian Hvitved <[EMAIL PROTECTED]> wrote:


It was my firewall



Another thing is, that I think this is a big problem if many firewalls make
it impossible to compress responses using the accept-encoding header.


Can you clarify what kind of "firewall" you're talking about? Desktop
software on your Windows PC, dedicated hardware firewall, other?

And in any case, who is the vendor?

--
Hassan Schroeder  [EMAIL PROTECTED]

-
To start a new topic, e-mail: [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: will 5.5 war run on 6.x tomcat

2007-04-16 Thread Hassan Schroeder

On 4/16/07, Rashmi Rubdi <[EMAIL PROTECTED]> wrote:


Tomcat 6.x implements Servlet 2.5/JSP 2.1 but Tomcat 5.5.x implements
Servlet 2.4/JSP 2.0 spec according to the chart shown here:
http://tomcat.apache.org/whichversion.html


Tomcat 6 *adds* support for 2.5, which doesn't mean that it doesn't
still support /previous/ versions of the Servlet Spec...


Are are using EL (Expression Language) in your application's JSP
files? Then is your project's web.xml has Servlet 2.4 schema URIs in
the web-app node? If it does, then those URIs need to change to
Servlet 2.5 schema URIs.


My unchanged 2.4 apps all run fine on 6.0.x.

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: recognise tomcat finished starting up

2007-04-16 Thread Hassan Schroeder

On 4/16/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:


So I'm looking for a way to detect if tomcat's startup has finished...


Seems like a chicken-and-egg problem -- Tomcat's ready when it'll
respond to your test :-)

Why don't you just incorporate a loop[sleep]-on-fail in the first test?

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: help - ssl on tomcat

2007-04-16 Thread Hassan Schroeder

On 4/16/07, Susan Teague Rector <[EMAIL PROTECTED]> wrote:


I have Tomcat 5.5 loaded on Linux Redhat. I followed these directions
explicitly: http://tomcat.apache.org/tomcat-5.0-doc/ssl-howto.html


Uh, you should use the documentation for the version that you're
actually running, eh? :-)
<http://tomcat.apache.org/tomcat-5.5-doc/ssl-howto.html>


When I tried to navigate to https://myserver:443


And you should only need to use 'https://myserver/' -- the port will
default to the proper one.

In any case, you should look in your logs at the startup messages;
if there's a problem with the SSL connector, it should show up there
before you even try to access it.

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: Installing APR on Fedora

2007-08-15 Thread Hassan Schroeder
On 8/15/07, Ole Ersoy <[EMAIL PROTECTED]> wrote:

> Then I try to compile like this:
>
> [EMAIL PROTECTED] native]# ./configure && make && make install 
> --with-apr=/usr/lib/

? Shouldn't you run ./configure --with-apr=/usr/lib && make...

Off the top of my head... :-)

-- 
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: Installing APR on Fedora

2007-08-15 Thread Hassan Schroeder
On 8/15/07, Ole Ersoy <[EMAIL PROTECTED]> wrote:

> [EMAIL PROTECTED] native]# ./configure --with-apr=/usr/lib

> checking for APR... configure: error: the --with-apr parameter is incorrect. 
> It must specify an install prefix, a build directory, or an apr-config file.
>
> I think I liked it better before :-)

? But before, configure wasn't seeing your --with-apr argument
at all; now it is, but it's wrong. :-)

I just tried it on my local SuSE system where the APR header (.h)
files are in /usr/local/httpd-2.2.4/include using
  --with-apr=/usr/local/httpd-2.2.4
and it cranked right through...

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: Installing APR on Fedora

2007-08-15 Thread Hassan Schroeder
On 8/15/07, Ole Ersoy <[EMAIL PROTECTED]> wrote:

> I have a lot more progress now!  I get the following (The only important part 
> is the bottom i think):
>
> [EMAIL PROTECTED] native]# ./configure 
> --with-apr=/home/ole/rpmbuild/BUILD/apr-1.2.8/
...
> libtool: install: error: relink `libtcnative-1.la' with the above command 
> before installing it
> make: *** [install] Error 1
>
> Any idea what this means?

I'd suggest re-running this with a specific prefix to avoid potential
conflict with anything currently installed, e.g.

./configure --prefix=/usr/local/apr
--with-apr=/home/ole/rpmbuild/BUILD/apr-1.2.8/

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: JDBC driver of class '' for connect URL 'null' in Tomcat 5.5.12

2007-08-16 Thread Hassan Schroeder
On 8/16/07, Len Popp <[EMAIL PROTECTED]> wrote:

> You're right that putting server-specific info in context.xml in the
> .war is no good when the app could be installed on different servers.

Isn't that what build.properties files are for? :-)

-- 
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 5.0.19 and EL expressions allowed

2007-08-16 Thread Hassan Schroeder
On 8/6/07, Dimitris Mouchritsas <[EMAIL PROTECTED]> wrote:

> 
>   
> 
>   
>   
> 
>   
> 

Maybe just something like:



? 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: JDBC driver of class '' for connect URL 'null' in Tomcat 5.5.12

2007-08-16 Thread Hassan Schroeder
On 8/16/07, Len Popp <[EMAIL PROTECTED]> wrote:
> How do you use a build.properties file to define a JNDI resource? Or
> do you create JDBC connections a different way?

Not sure I understand the question -- we're talking about putting
a Resource element in META-INF/context.xml, right? So the details
of that element can be configured via a properties file, 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: JDBC driver of class '' for connect URL 'null' in Tomcat 5.5.12

2007-08-16 Thread Hassan Schroeder
On 8/16/07, Christopher Schultz <[EMAIL PROTECTED]> wrote:

> They're all crap solutions when nobody wants to do their job.

heh -- indeed.

And how about we add the "it depends" corollary -- they're all
crap solutions for /some/ specific environment(s)  :-)

-- 
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 driver of class '' for connect URL 'null' in Tomcat 5.5.12

2007-08-16 Thread Hassan Schroeder
On 8/16/07, Len Popp <[EMAIL PROTECTED]> wrote:
> I don't get it. Are you assuming that the programmer would put the
> JDBC server info in a build.properties file that is used at compile
> time? That doesn't work unless the programmer knows all the servers
> the app will eventually be deployed on - which isn't always the case
> for me.

Interesting -- I've never been in a situation where I *didn't*
know all the gory deployment details. :-)

But the question of who *maintains* the build.properties file
is completely orthogonal to the discussion of whether it's an
appropriate methodology, I'd say.

-- 
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 in Tomcat Installation.

2007-08-17 Thread Hassan Schroeder
On 8/17/07, David Delbecq <[EMAIL PROTECTED]> wrote:

> 2) download a more recent tomcat (5.0.28 is 3 years old release)

I can confirm that the jsvc packaged with 5.5.23 configures and
builds on a x86_64 SuSE 10.0 system.

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 -404 resources not found

2007-08-18 Thread Hassan Schroeder
On 8/18/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:

> I just installed TomCat (6 .*.) on a Windows XP server:
>
>  1. I setup the system variables Java_Home to my JDK (Not JDK Bin)

it''s JAVA_HOME., not Java_Home -- case sensitive

Does the base Tomcat install work? Welcome page, examples, etc.?

>  2.  I edited my Context.xml file second tag line to  reloadable="true">

it's context.xml, not Context.xml -- case sensitive -- and what do you mean
by "second tag line"?  a context.xml file should contain  as the
root element.

>  3. And I commented out some lines Web.xml files (mapping,invoking)

It's 'web.xml', not Web.xml -- and is this in your webapp or some other?

>  When I run TOMCat from the command line, it loads properly with no problem, 
> but when I open up Any browser (firefox, internet explorer)  I get an error 
> -404 resources not found.

And you're sure you don't have a firewall preventing access to the
port Tomcat is using?

-- 
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: I'm in a mess with Tomcat 5.5

2007-08-18 Thread Hassan Schroeder
On 8/18/07, jeusdi <[EMAIL PROTECTED]> wrote:
>
> I've installed Tomcat 5.5 into my Ubuntu + sun-java-1.5, tomcat5.5-webapps
> and tomcat5.5-admin.
>
> I'm in a mess because the structure of directories has changed.
>For example:
>*tomcat5.5-webapps package installs

Stop right there :-)  Don't waste your time on this "packaged" stuff.

Use whatever package manager is involved to de-install it totally,
and then download a tar file version from the Tomcat web site.

Untar it in /usr/local or someplace, and be happy :-)

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:

2007-08-29 Thread Hassan Schroeder
On 8/29/07, Dario Hernan <[EMAIL PROTECTED]> wrote:
> it's highly recommended to use a real tomcat, but if you use a package
> out of distribution you lost the updates and the support of redhat.

"updates"? -- how tough is it to download and untar a new version?
You still have to test with your apps before going live.

And if keeping RedHat support is critical -- well, why didn't they solve
the OP's problem to start with?  :-)

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

2007-08-29 Thread Hassan Schroeder
On 8/29/07, Dario Hernan <[EMAIL PROTECTED]> wrote:
> it's true! but if you client pay for a license and support, you cann't
> do so much!

I'm not sure what you mean by that. I have one RH ES server running
production that has auto-update -- but that only does basic system
stuff that I don't care particularly about messing with.

Anything that directly involves the web apps -- JDK, Tomcat, MySQL,
and so on -- gets installed and updated by me.

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

2007-08-29 Thread Hassan Schroeder
On 8/29/07, Dario Hernan <[EMAIL PROTECTED]> wrote:
> but, when you support a lot of servers in different clients, and in
> different cities?

Yes, as a matter of fact, that *is* what I do.

And you seem to be overlooking the fact that the "packaged" stuff
*simply doesn't work* -- so it's not much of an option  :-)

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: full path of 404 file

2007-09-01 Thread Hassan Schroeder
On 9/1/07, Peter Boughton <[EMAIL PROTECTED]> wrote:

> How do I find the full filename Tomcat is looking for when producing the
> 404?

You could turn on access logging, or you could set up a custom
404 page to return whatever you think pertinent.

Of course, if the system doesn't find your custom 404, you're back
to access logging, so ... :-)

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: full path of 404 file

2007-09-01 Thread Hassan Schroeder
On 9/1/07, Peter Boughton <[EMAIL PROTECTED]> wrote:
> Thanks for the suggestion. I tried access logging, but it's only listing the
> "/index.jsp", not the full path.

Uh, then that *is* the full path; sounds like you need to double-check
your Tomcat appBase/docBase/etc. configuration...

-- 
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: full path of 404 file

2007-09-01 Thread Hassan Schroeder
On 9/1/07, Peter Boughton <[EMAIL PROTECTED]> wrote:
> I mean full system path. (eg: /usr/local/jakarta/tomcat/webapps/index.jsp or
> /home/user/domain/public_html/index.jsp or whatever)
> As far as I can tell, the appBase and docBase are correctly pointing to the
> webroot dir, but cPanel/WHM auto-configured server.xml/etc so it could be
> doing anything.

If the appBase and docBase are set properly, you know where your
files are  :-)  but anything done by some third-party control panel --
I'd be suspicious, anyway.

Did you look in your catalina.out  for startup errors or warnings?

-- 
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: HTTP method GET is not supported by this URL

2007-09-01 Thread Hassan Schroeder
On 9/1/07, Peter Boughton <[EMAIL PROTECTED]> wrote:

> Trying to load index.jsp (or any jsp file, even if it doesn't exist) results
> in the following:
> HTTP Status 405 - HTTP method GET is not supported by this URL

> Anyone got any suggestions on how to fix it?

It sounds like your install is totally hosed.

If it were me, I'd reinstall from scratch, using a fresh tar file, and see
that it worked out of the box (ROOT/index.jsp, examples, etc.).

Then try deploying your own app(s).

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: Please help...

2007-09-01 Thread Hassan Schroeder
On 9/1/07, Brian Munroe <[EMAIL PROTECTED]> wrote:

> "For Tomcat 6

> You mention that it is located it $CATALINA_HOME/lib [sic] - which
> I'll assume is a typo, but it leads to ambiguity - did you mean
> common/lib or shared/lib?  Definitely move it to common/lib.

If you're talking about TC6, there is no common/lib or shared/lib;
$CATALINA_HOME/lib is correct...

-- 
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: Please help...

2007-09-02 Thread Hassan Schroeder
On 9/1/07, Brian Munroe <[EMAIL PROTECTED]> wrote:

> Ok, lend me a hand here, besides the incorrect statement about
> common/lib, does everything else look fine?

The only discrepancy from my own config is that per the examples
in the JNDI config notes
<http://tomcat.apache.org/tomcat-6.0-doc/jndi-datasource-examples-howto.html>
I use 'auth="Container".

To be honest, I can't find any other documentation on that -- what
alternative values might be, or their effect. And I just gave it a quick
try with no setting and LambdaProbe's data sources page shows a
blank for "Auth" -- but accessing that resource still works.

Perhaps someone else can shed some light on this.

But otherwise, your suggested config looks OK to me :-)

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: full path of 404 file

2007-09-02 Thread Hassan Schroeder
On 9/2/07, Peter Boughton <[EMAIL PROTECTED]> wrote:

> I don't have a WEB-INF directory created yet - it does get auto-created,
> right?

No.

> Anyway, here's /usr/local/jakarta/tomcat/conf/web.xml

You shouldn't have to touch this at all, and I certainly wouldn't make
any changes there until you've got your basic config working.

> ... I should probably say that I'm doing this via mod_jk from Apache,

Yes, you probably should :-) and you absolutely should get your
webapp working properly through direct access first.

It will simplify your debugging 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: Please help...

2007-09-02 Thread Hassan Schroeder
On 9/2/07, Caldarale, Charles R <[EMAIL PROTECTED]> wrote:

> The auth attribute is the equivalent of  element inside a
> web.xml  setting, as defined in the servlet spec.  The
> valid values are Application or Container.

OK, in a resource-ref, res-auth is a mandatory element. What does
that imply about leaving it out of a Resource in a Tomcat config?

What's the default?

-- 
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: Please help...

2007-09-02 Thread Hassan Schroeder
On 9/2/07, Caldarale, Charles R <[EMAIL PROTECTED]> wrote:

> I take it you've noticed there's not a whole lot of documentation on
> ...

Oh, yeah, I've noticed. :-)

> Looking at the code, the default is indeed Container, which would be the
> typical usage.

Thanks for the clarification!

-- 
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: a problem of tomcat5 start

2007-09-03 Thread Hassan Schroeder
On 9/3/07, inputx <[EMAIL PROTECTED]> wrote:
>
> in opensuse10.2, i use command "service tomcat5 start" to start tomcat,
> screen display "done" but i can't access http://lcalhost:8080

Check your JVM with `java -version`; if it's the Gnu version, download
a working JVM from java.sun.com and set your PATH appropriately.

If you're using a SuSE-packaged version of Tomcat, get rid of it and
install one downloaded from tomcat.apache.org.

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: Problems with SSL-enabled Tomcat 5.5

2007-09-03 Thread Hassan Schroeder
On 9/3/07, Werner Schalk <[EMAIL PROTECTED]> wrote:

> ... what I ended up doing was buying a new certificate

Your CA wouldn't let you submit a new CSR and re-issue the cert??
That's surprising.

-- 
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: mapping directory in Tomcat?

2007-09-05 Thread Hassan Schroeder
On 9/5/07, Angelo Chen <[EMAIL PROTECTED]> wrote:

> My server runs only tomcat 5.5, and my app needs to copy some jpeg files to
> a temporary directory so that  the generated page can refer to them like:
> http://mydomain.com/temp/J12345.jpg";, now how to map a directory
> in the file system to http:/mydomain.com/temp? Thanks.

You could use a symlink, or you could use a servlet mapped to /temp/*

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 6 application intercommunication

2007-09-05 Thread Hassan Schroeder
On 9/5/07, Angel Sotirov <[EMAIL PROTECTED]> wrote:

> Is there a way to find the FQDN of the current virtual server

How about ServletRequest.getServerName() ? :-)

-- 
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: mapping directory in Tomcat?

2007-09-05 Thread Hassan Schroeder
On 9/5/07, Angelo Chen <[EMAIL PROTECTED]> wrote:

> The servlet mapped directory sounds interesting, can you give me some more
> info about that?

Not much to say; your servlet would take the pathInfo part of the
URL and read that image out of the filesystem.

The path to your external temp directory could be hardcoded in the
servlet, set in web.xml, or read from a properties file (my pref).

Pretty straightforward...

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: Different sessions between JSP and Servlets...

2007-09-05 Thread Hassan Schroeder
On 9/5/07, Mike Cronin <[EMAIL PROTECTED]> wrote:

> $CATLINA-HOME\webapps\a_subfolder\my_root\

> Within my_root there are a number of subfolders that contain various
> applications i.e. login, admin, reports and my WEB-INF.

1) defining Contexts within server.xml is discouraged,
2) appBase and docBase must not be the same,
3) so,  if you want to define your appBase as this:



:: create a META-INF/context.xml file within your Context with
 



NOTE: no path attribute and no docBase attribute should be used
in this case.

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: Different sessions between JSP and Servlets...

2007-09-05 Thread Hassan Schroeder
On 9/5/07, Mike Cronin <[EMAIL PROTECTED]> wrote:

> I definitely want this set up correctly, and I do intend to move the
>  elements out of the server.xml, but I have not been able to
> successfully do so as none of the applications want to load from the
> context.xml.

That's suspicious in and of itself, but if I were you I'd start with a
clean install and make sure it works; then replace the default
Context in webapps (the directory named ROOT) with your own.

-- 
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: Compatibility of Tomcat 6.0 on Redhat Linux 3.0 ES

2007-09-06 Thread Hassan Schroeder
On 9/6/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Has anyone installed Tomcat 6.0.x on RedHat Linux ES 3.0 (Linux kernel
> 2.4.2)? Is this a compatible configuration?

Tomcat is *Java* -- if you have a JVM that works on your platform,
you're set. :-)

But for the record, yes, as it happens I have an ES3/2.4.2 box with
TC 6 on it...

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: Compatibility of Tomcat 6.0 on Redhat Linux 3.0 ES

2007-09-06 Thread Hassan Schroeder
On 9/6/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Does it require additional configuration?

No.

-- 
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 tomcat welcome file one struts action

2007-09-09 Thread Hassan Schroeder
On 9/9/07, Miren Urkixo <[EMAIL PROTECTED]> wrote:

> And into the web.xml i have:
>
> 
>   /Index.do
> 

I believe that should be "index.do" rather than "/index.do".

(And presumably not starting with an upper-case "I"...)

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: beginer question abt JSP with Tomcat

2007-09-11 Thread Hassan Schroeder
On 9/11/07, minky arora <[EMAIL PROTECTED]> wrote:

> I am not able to run the examples/dates/date.jsp files and the like.

? Does Tomcat start? Can you see the default welcome page in your
browser? If not, what is in the logs?

If so, what do you mean by "not able to run ..."? Symptom(s)? Log
output?

-- 
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: beginer question abt JSP with Tomcat

2007-09-11 Thread Hassan Schroeder
On 9/11/07, minky arora <[EMAIL PROTECTED]> wrote:
> Yes I can see the welcome page.HOWEVERR If i run the date.jsp or any
> other exapmles provided by tomcat then I get,
>
> ype Status report
>
> message /tomcat-docs/config/context.html

That's not a JSP page, eh? Have you confirmed that the context(s)
involved are actually there?

And have you looked at the log files yet?

-- 
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: beginer question abt JSP with Tomcat

2007-09-11 Thread Hassan Schroeder
On 9/11/07, minky arora <[EMAIL PROTECTED]> wrote:
> sorry the files are here.

You can't send attachments to the list. Stop TC, delete your logs,
restart and go to one page to generate the error; paste the result
into your mail.

> > Sorry I am really confused as to how to connect JAVA and tomcat
> > together.Currently my tomcat folder is inside JAVA Directory which is
> > in my home dir,

?? On my Mac  (OS X.4.10)  $JAVA_HOME is:

/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0

:: so I'm not at all sure what you're trying to describe here...

But I have no problem running TC by simply setting JAVA_HOME and
CATALINA_HOME, wherever the latter may be located.

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



<    1   2   3   4   5   6   >