RE: Redirect from root context to other context

2004-03-16 Thread rsequeira

I bet you already know this, but nevertheless: ROOT is a keyword for "/".
The URLs are http://domainname/contextname. In the case of ROOT, you don't
have a contextname in the URL. Setting the attribute of the context
"reloadable=true" helps in case you want your changes to reflect without
restarting tomcat.

Thanks,
RS


   
   
  "Luc Foisy"  
   
  <[EMAIL PROTECTED]To:   "Tomcat Users List"  
 
  -magic.com>  <[EMAIL PROTECTED]> 
  
  cc:  
   
  03/16/2004 10:55 AM Subject:  RE: Redirect from root 
context to other context   
  Please respond to
   
  "Tomcat Users List"  
   
   
   
   
   




I had configured the ROOT context to have a path of /ROOT when it should be
nothing.
I still can't get the context to load without restarting the whole tomcat
server (I wont).
I can get the context to load on a secondary server with a tomcat restart..

-Original Message-
From: Luc Foisy
Sent: Tuesday, March 16, 2004 11:06 AM
To: Tomcat Users List
Subject: RE: Redirect from root context to other context


We had originally removed the /ROOT context. I put it back in place with
the administrator context. It has saved to the server.xml file. When I
browse to the site, it reports HTTP 500 - No context loaded If I add
webaddress/ROOT it returns report HTTP 503 - Servlet jsp is currently
unavailable

1. Will the /ROOT context work right after tomcat is restarted?

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 16, 2004 10:54 AM
To: Tomcat Users List
Subject: RE: Redirect from root context to other context



Hi,

>What is required to redirect the root context to another context, with
a
>relative path name rather than an absolute path name?
>can I just response.sendRedirect("/webapps/othercontext/");
>Or is there additional configuration

No additional configuration, just response.sendRedirect.  You don't want
the /webapps, just /othercontext/whatever.

Yoav Shapira



This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential,
proprietary and/or privileged.  This e-mail is intended only for the
individual(s) to whom it is addressed, and may not be saved, copied,
printed, disclosed or used by anyone else.  If you are not the(an) intended
recipient, please immediately delete this e-mail from your computer system
and notify the sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






This transmission is intended to be strictly confidential. If you are not
the intended recipient of this message, you may not disclose, print, copy
or disseminate this information. If you have received this in error, please
reply and notify the sender (only) and delete the message. Unauthorized
interception of this e-mail is a violation of federal criminal law.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Using tomcat to serve PDF files

2004-03-05 Thread rsequeira

Tomcat should be doing that out-of-the-box currently:
See "Default MIME Type Mappings" under conf/web.xml.

Also on a side note:
http://www.onjava.com/pub/a/onjava/2003/06/18/dynamic_files.html

Thanks,
RS


   
   
  "Peter Guyatt"   
   
  <[EMAIL PROTECTED]To:   "Tomcat Users List"  
 
  logies.com>  <[EMAIL PROTECTED]> 
  
  cc:  
   
  03/05/2004 10:07 AM Subject:  Using tomcat to serve 
PDF files   
  Please respond to
   
  "Tomcat Users List"  
   
   
   
   
   




Hi,

 I was hoping that someone would be able to point me in the
direction of an
example for using tomcat to serve PDF files.

Thanks

Pete


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






This transmission is intended to be strictly confidential. If you are not
the intended recipient of this message, you may not disclose, print, copy
or disseminate this information. If you have received this in error, please
reply and notify the sender (only) and delete the message. Unauthorized
interception of this e-mail is a violation of federal criminal law.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Virtual Hosts with Apache and Tomcat

2004-03-02 Thread rsequeira

With due respect to everyone's opinion on this thread, I really appreciate
it if this topic was taken offline. I think other than filling up people's
mailbox, I don't seem to see any technical knowledge being shared.
Just my 2 cents.

Thanks,
RS


   
   
  Christopher Schultz  
   
  <[EMAIL PROTECTED]To:   Tomcat Users List
 
  omcast.net>  <[EMAIL PROTECTED]> 
  
  cc:  
   
  03/02/2004 10:42 AM Subject:  Re: Virtual Hosts with 
Apache and Tomcat  
  Please respond to
   
  "Tomcat Users List"  
   
   
   
   
   




Kennan,

> I can agree partially to yours. But if you see him, he doesn't know about
> the impact of JVM and tuning parameters, as he mentioned in his email. Do
> you expect him to take a lead in fixing that? I have seen the projects
> losing its focus by the nature of peoples deviating to get their
interests
> fulfilled.

This is not a 'special' interest. This is a legitimate resource leak
that he wants them to fix. He can demonstrate the leak. That's all
that's necessary on his part. The rest is up to the developers. I'm not
suggesting that he fix the problem. Only to demonstrate it and get the
developers to fix the problem.

> I would appreciate, if the developer and sysadmin working together in
this
> problem (i doubt verymuch as sysadmin involvment, all he can do is give
> "top" or "sar" reports). Sysadmin has much knowledge in configuring
servers,
> architect the infrastructure, manage the network, backups etc.

Yes, but *this* sysadmin also has enpirical data that demonstrates the
resource leak. Forget sar and top. How about "the app locks up". That
should be motivating enough.

> I never seen any sysadmin trying to fine tune any Application Servers.

Actually, the sysadmin is the /perfect/ person to fine-tune app servers.
Most devs don't know jack about the app server they use. That's why they
deploy onto app servers with standard interfaces and services (Servlet
and JSP spec). The deployment and admin folks are the ones who should
know how to configure the app servers.

> If
> that is the case, then the project sucess will be in stake. Everyone has
to
> do their own roles. If I would be the sysadmin, then i would tell the
> developers to go these newsgroups. Dont you think that most of developers
> resolve their issues by newsgroups and websites for their problems.

Here's the problem: the devs refuse to admit there's a problem. They
won't go to the newsgroups to ask about a problem that they don't
believe exists. That's why the sysadmin is here. He wanted to get some
information on how to prove that there's a leak. He's gotton that
information. Let's wait for the devs to visit the group, now ;)

> He clearly mentioned that the developeers raised that questions and
trying
> to get the verification from the newsgroups. Dont you think that is the
part
> of communication gap between the developers and him. If he is very keen,
why
> not one of the developers responding his thread and get the issues fixed
for
> the project.

I think the problem is that the devs think the sysadmin is foolish and
wrong about the resource leak. Now that he can demonstrate the leak,
they will take him more seriously.

I believe that we have helped in this situation, and that the devs will
now address the problem instead of sticking their heads in the sand.

-chris
(See attached file: signature.asc)




This transmission is intended to be strictly confidential. If you are not
the intended recipient of this message, you may not disclose, print, copy
or disseminate this information. If you have received this in error, please
reply and notify the sender (only) and delete the message. Unauthorized
interception of this e-mail is a violation of federal criminal law.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: Tomcat heap vs. java.exe

2004-02-27 Thread rsequeira

If I were you, I'd load test your site first before going to production. As
you pointed out, you cannot afford to stop your production server or hang
it with OutOfMemory errors.
You can get jvm dumps on windows by turning on the -verbosegc. This will
dump out stack traces repeatedly without exiting the JVM.

Thanks,
RS


   
  
  Asim Alp 
  
  <[EMAIL PROTECTED]To:   "Tomcat Users List"  
 
  tworks.net> <[EMAIL PROTECTED]>  
 
 cc:   
  
  02/27/2004 04:31 PMSubject:  Re: Tomcat heap vs. 
java.exe  
  Please respond to
  
  "Tomcat Users List"  
  
   
  
   
  




kill doesn't work on Windows.  Besides, I can't afford to stop the
server right now.  Many of our customers are using currently using the
websites.

Any idea why JVM would run out of memory?  I thought GC would clean up
the memory at a certain ratio.

Asim Alp
Educational Networks
55 Broad Street, 10th Floor
New York, NY 10004
www.educationalnetworks.net

Tel: +1 (212) 269-0200
Fax: +1 (212) 269-1446
On Feb 27, 2004, at 5:27 PM, [EMAIL PROTECTED] wrote:

>
> oops!
> kill -3 
>
> RS
>
>
>
>   [EMAIL PROTECTED]
>   tric.com To:   "Tomcat Users
> List"
>
> <[EMAIL PROTECTED]>
>   02/27/2004 04:26 cc:
>   PM   Subject:  Re: Tomcat
> heap vs. java.exe
>   Please respond to
>   "Tomcat Users
>   List"
>
>
>
>
>
>
>
> kill -a 
>
>
> Thanks,
> RS
>
>
>
>   Asim Alp
>
>   <[EMAIL PROTECTED]To:   "Tomcat
> Users List"
>   tworks.net>
> <[EMAIL PROTECTED]>
>  cc:
>
>   02/27/2004 04:21 PMSubject:  Re:
> Tomcat
> heap vs. java.exe
>   Please respond to
>
>   "Tomcat Users List"
>
>
>
>
>
>
>
> How can I take a thread dump?
>
> Asim Alp
> Educational Networks
> 55 Broad Street, 10th Floor
> New York, NY 10004
> www.educationalnetworks.net
>
> Tel: +1 (212) 269-0200
> Fax: +1 (212) 269-1446
> On Feb 27, 2004, at 5:16 PM, [EMAIL PROTECTED] wrote:
>
>>
>> OutOfMemory errors sometimes show up when the java vm runs low on
>> memory.
>> Since you have increased the heap size, could you take a thread dump
>> to see
>> if there are any CPU burning threads or any threads waiting on a
>> resource?
>>
>> Thanks,
>> RS
>>
>>
>>
>>   Asim Alp
>>   <[EMAIL PROTECTED]To:   "Tomcat
>> Users List"
>>   tworks.net>
>> <[EMAIL PROTECTED]>
>>  cc:
>>   02/27/2004 04:14 PMSubject:  Re:
>> Tomcat heap vs. java.exe
>>   Please respond to
>>   "Tomcat Users List"
>>
>>
>>
>>
>>
>>
>> Our sites have just went down for a couple of minutes.  I solved the
>> problem by restarting Tomcat.  At the time of the crash, java.exe was
>> about 345MB.  I'm running tomcat with the -Xms128m -Xmx256m options.
>> Our server has 1GB physical ram.
>>
>> On the Tomcat logs, it reads:
>>
>> 2004-02-27 16:58:55 ApplicationDispatcher[/jsp-apps] Servlet.service()
>> for servlet jsp threw exception
>> java.lang.OutOfMemoryError
>>
>> 2004-02-27 16:58:55 StandardWrapperValve[jsp]: Servlet.service() for
>> servlet jsp threw exception
>> java.lang.OutOfMemoryError
>>
>> Do you have any idea why this might have happened?  Also, how can we
>> avoid such problems in the future?
>>
>> Asim Alp
>> Educational Networks
>> 55 Broad Street, 10th Floor
>> New York, NY 10004
>> www.educationalnetworks.net
>>
>> Tel: +1 (212) 269-0200
>> Fax: +1 (212) 269-1446
>> On Feb 27, 2004, at 11:39 AM, Kannan Sundararajan wrote:
>>
>>> Yes, it goes along with subject called Garbage collection and tuning.
>>> This
>>> area is a huge, sometimes very quick to tune, and sometimes gives a
>>> nightmare to tune those properties. The nature of this subject grows
>>> based
>>> on your application, 

Re: Tomcat heap vs. java.exe

2004-02-27 Thread rsequeira

oops!
kill -3 

RS


   

  [EMAIL PROTECTED]

  tric.com To:   "Tomcat Users List"   

<[EMAIL PROTECTED]>
   
  02/27/2004 04:26 cc: 

  PM   Subject:  Re: Tomcat heap vs. java.exe  

  Please respond to

  "Tomcat Users

  List"

   

   






kill -a 


Thanks,
RS



  Asim Alp

  <[EMAIL PROTECTED]To:   "Tomcat
Users List"
  tworks.net>
<[EMAIL PROTECTED]>
 cc:

  02/27/2004 04:21 PMSubject:  Re: Tomcat
heap vs. java.exe
  Please respond to

  "Tomcat Users List"







How can I take a thread dump?

Asim Alp
Educational Networks
55 Broad Street, 10th Floor
New York, NY 10004
www.educationalnetworks.net

Tel: +1 (212) 269-0200
Fax: +1 (212) 269-1446
On Feb 27, 2004, at 5:16 PM, [EMAIL PROTECTED] wrote:

>
> OutOfMemory errors sometimes show up when the java vm runs low on
> memory.
> Since you have increased the heap size, could you take a thread dump
> to see
> if there are any CPU burning threads or any threads waiting on a
> resource?
>
> Thanks,
> RS
>
>
>
>   Asim Alp
>   <[EMAIL PROTECTED]To:   "Tomcat
> Users List"
>   tworks.net>
> <[EMAIL PROTECTED]>
>  cc:
>   02/27/2004 04:14 PMSubject:  Re:
> Tomcat heap vs. java.exe
>   Please respond to
>   "Tomcat Users List"
>
>
>
>
>
>
> Our sites have just went down for a couple of minutes.  I solved the
> problem by restarting Tomcat.  At the time of the crash, java.exe was
> about 345MB.  I'm running tomcat with the -Xms128m -Xmx256m options.
> Our server has 1GB physical ram.
>
> On the Tomcat logs, it reads:
>
> 2004-02-27 16:58:55 ApplicationDispatcher[/jsp-apps] Servlet.service()
> for servlet jsp threw exception
> java.lang.OutOfMemoryError
>
> 2004-02-27 16:58:55 StandardWrapperValve[jsp]: Servlet.service() for
> servlet jsp threw exception
> java.lang.OutOfMemoryError
>
> Do you have any idea why this might have happened?  Also, how can we
> avoid such problems in the future?
>
> Asim Alp
> Educational Networks
> 55 Broad Street, 10th Floor
> New York, NY 10004
> www.educationalnetworks.net
>
> Tel: +1 (212) 269-0200
> Fax: +1 (212) 269-1446
> On Feb 27, 2004, at 11:39 AM, Kannan Sundararajan wrote:
>
>> Yes, it goes along with subject called Garbage collection and tuning.
>> This
>> area is a huge, sometimes very quick to tune, and sometimes gives a
>> nightmare to tune those properties. The nature of this subject grows
>> based
>> on your application, servers and expectations from user end.
>>
>> -Original Message-
>> From: Asim Alp [mailto:[EMAIL PROTECTED]
>> Sent: Friday, February 27, 2004 11:25 AM
>> To: [EMAIL PROTECTED]
>> Subject: Tomcat heap vs. java.exe
>>
>>
>> I have a quick question.  When I run Tomcat 5.0.18, my java.exe starts
>> with ~65MB.  Then as my websites get hits, java.exe starts increasing.
>> I run tomcat with the -Xms128m -Xmx256m options.  So the startup heap
>> size of tomcat is 128MB.  After my first start, I usually have around
>> 80 MB free memory for Tomcat.
>>
>> My question is, why is the startup java.exe size is smaller than my
>> total heap size?  Does the size of java.exe grow as the heap starts
>> being used.  I would expect java.exe to be at least 128 MB (plus the
>> JVM memory) since that is how much is allocated.
>>
>> Thanks,
>>
>> Asim
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>
>
>
>
>
> This transmission is intended to be strictly confidential. If y

Re: Tomcat heap vs. java.exe

2004-02-27 Thread rsequeira

kill -a 


Thanks,
RS


   
  
  Asim Alp 
  
  <[EMAIL PROTECTED]To:   "Tomcat Users List"  
 
  tworks.net> <[EMAIL PROTECTED]>  
 
 cc:   
  
  02/27/2004 04:21 PMSubject:  Re: Tomcat heap vs. 
java.exe  
  Please respond to
  
  "Tomcat Users List"  
  
   
  
   
  




How can I take a thread dump?

Asim Alp
Educational Networks
55 Broad Street, 10th Floor
New York, NY 10004
www.educationalnetworks.net

Tel: +1 (212) 269-0200
Fax: +1 (212) 269-1446
On Feb 27, 2004, at 5:16 PM, [EMAIL PROTECTED] wrote:

>
> OutOfMemory errors sometimes show up when the java vm runs low on
> memory.
> Since you have increased the heap size, could you take a thread dump
> to see
> if there are any CPU burning threads or any threads waiting on a
> resource?
>
> Thanks,
> RS
>
>
>
>   Asim Alp
>   <[EMAIL PROTECTED]To:   "Tomcat
> Users List"
>   tworks.net>
> <[EMAIL PROTECTED]>
>  cc:
>   02/27/2004 04:14 PMSubject:  Re:
> Tomcat heap vs. java.exe
>   Please respond to
>   "Tomcat Users List"
>
>
>
>
>
>
> Our sites have just went down for a couple of minutes.  I solved the
> problem by restarting Tomcat.  At the time of the crash, java.exe was
> about 345MB.  I'm running tomcat with the -Xms128m -Xmx256m options.
> Our server has 1GB physical ram.
>
> On the Tomcat logs, it reads:
>
> 2004-02-27 16:58:55 ApplicationDispatcher[/jsp-apps] Servlet.service()
> for servlet jsp threw exception
> java.lang.OutOfMemoryError
>
> 2004-02-27 16:58:55 StandardWrapperValve[jsp]: Servlet.service() for
> servlet jsp threw exception
> java.lang.OutOfMemoryError
>
> Do you have any idea why this might have happened?  Also, how can we
> avoid such problems in the future?
>
> Asim Alp
> Educational Networks
> 55 Broad Street, 10th Floor
> New York, NY 10004
> www.educationalnetworks.net
>
> Tel: +1 (212) 269-0200
> Fax: +1 (212) 269-1446
> On Feb 27, 2004, at 11:39 AM, Kannan Sundararajan wrote:
>
>> Yes, it goes along with subject called Garbage collection and tuning.
>> This
>> area is a huge, sometimes very quick to tune, and sometimes gives a
>> nightmare to tune those properties. The nature of this subject grows
>> based
>> on your application, servers and expectations from user end.
>>
>> -Original Message-
>> From: Asim Alp [mailto:[EMAIL PROTECTED]
>> Sent: Friday, February 27, 2004 11:25 AM
>> To: [EMAIL PROTECTED]
>> Subject: Tomcat heap vs. java.exe
>>
>>
>> I have a quick question.  When I run Tomcat 5.0.18, my java.exe starts
>> with ~65MB.  Then as my websites get hits, java.exe starts increasing.
>> I run tomcat with the -Xms128m -Xmx256m options.  So the startup heap
>> size of tomcat is 128MB.  After my first start, I usually have around
>> 80 MB free memory for Tomcat.
>>
>> My question is, why is the startup java.exe size is smaller than my
>> total heap size?  Does the size of java.exe grow as the heap starts
>> being used.  I would expect java.exe to be at least 128 MB (plus the
>> JVM memory) since that is how much is allocated.
>>
>> Thanks,
>>
>> Asim
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>
>
>
>
>
> This transmission is intended to be strictly confidential. If you are
> not
> the intended recipient of this message, you may not disclose, print,
> copy
> or disseminate this information. If you have received this in error,
> please
> reply and notify the sender (only) and delete the message. Unauthorized
> interception of this e-mail is a violation of federal criminal law.
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PR

Re: Tomcat heap vs. java.exe

2004-02-27 Thread rsequeira

OutOfMemory errors sometimes show up when the java vm runs low on memory.
Since you have increased the heap size, could you take a thread dump to see
if there are any CPU burning threads or any threads waiting on a resource?

Thanks,
RS


   
  
  Asim Alp 
  
  <[EMAIL PROTECTED]To:   "Tomcat Users List"  
 
  tworks.net> <[EMAIL PROTECTED]>  
 
 cc:   
  
  02/27/2004 04:14 PMSubject:  Re: Tomcat heap vs. 
java.exe  
  Please respond to
  
  "Tomcat Users List"  
  
   
  
   
  




Our sites have just went down for a couple of minutes.  I solved the
problem by restarting Tomcat.  At the time of the crash, java.exe was
about 345MB.  I'm running tomcat with the -Xms128m -Xmx256m options.
Our server has 1GB physical ram.

On the Tomcat logs, it reads:

2004-02-27 16:58:55 ApplicationDispatcher[/jsp-apps] Servlet.service()
for servlet jsp threw exception
java.lang.OutOfMemoryError

2004-02-27 16:58:55 StandardWrapperValve[jsp]: Servlet.service() for
servlet jsp threw exception
java.lang.OutOfMemoryError

Do you have any idea why this might have happened?  Also, how can we
avoid such problems in the future?

Asim Alp
Educational Networks
55 Broad Street, 10th Floor
New York, NY 10004
www.educationalnetworks.net

Tel: +1 (212) 269-0200
Fax: +1 (212) 269-1446
On Feb 27, 2004, at 11:39 AM, Kannan Sundararajan wrote:

> Yes, it goes along with subject called Garbage collection and tuning.
> This
> area is a huge, sometimes very quick to tune, and sometimes gives a
> nightmare to tune those properties. The nature of this subject grows
> based
> on your application, servers and expectations from user end.
>
> -Original Message-
> From: Asim Alp [mailto:[EMAIL PROTECTED]
> Sent: Friday, February 27, 2004 11:25 AM
> To: [EMAIL PROTECTED]
> Subject: Tomcat heap vs. java.exe
>
>
> I have a quick question.  When I run Tomcat 5.0.18, my java.exe starts
> with ~65MB.  Then as my websites get hits, java.exe starts increasing.
> I run tomcat with the -Xms128m -Xmx256m options.  So the startup heap
> size of tomcat is 128MB.  After my first start, I usually have around
> 80 MB free memory for Tomcat.
>
> My question is, why is the startup java.exe size is smaller than my
> total heap size?  Does the size of java.exe grow as the heap starts
> being used.  I would expect java.exe to be at least 128 MB (plus the
> JVM memory) since that is how much is allocated.
>
> Thanks,
>
> Asim
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>





This transmission is intended to be strictly confidential. If you are not
the intended recipient of this message, you may not disclose, print, copy
or disseminate this information. If you have received this in error, please
reply and notify the sender (only) and delete the message. Unauthorized
interception of this e-mail is a violation of federal criminal law.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Problems running JSPs

2004-02-27 Thread rsequeira

Have you added the jar that contains the num.NumberGuessBean under the
examples/WEB-INF/lib
Or add the num.NumberGuessBean to the examples/WEB-INF/classes


RS


   

  Vijay Kandy  

  <[EMAIL PROTECTED]To:   'Tomcat Users List'  
 
  com>  <[EMAIL PROTECTED]>
   
   cc: 

  02/27/2004 10:57 Subject:  Problems running JSPs 

  AM   

  Please respond to

  "Tomcat Users

  List"

   

   





Hello All,

I am having trouble running JSPs in examples context (that with Tomcat).
Below is my stack trace:

org.apache.jasper.JasperException: Unable to compile class for
JSP/var/tomcat/work/Standalone/localhost/examples/_0002fjsp_0002fnum_0002fnu

mguess_0002ejspnumguess_jsp_0.java:15: Class num.NumberGuessBean not found
in import.
import num.NumberGuessBean;
   ^
1 error

 at org.apache.jasper.compiler.Compiler.compile(Compiler.java)
 at
org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java)
 at
org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java)

I thought it was something to do with classpath and set JAVA_HOME,
CATALINA_HOME and even added all the jars in the classpath. Also, I
followed
some suggestions found in the archives including setting _RUN atributes,
upgraded from Tomcat 4.1.24, 4.1.27, 4.1.30

Please let me know if there is ANYTHING else that I can do.

The environment is Red hat linux 2.4.3-6smp #1, PII, JDK 1.3.1

Thank you,
Vijay Kandy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






This transmission is intended to be strictly confidential. If you are not
the intended recipient of this message, you may not disclose, print, copy
or disseminate this information. If you have received this in error, please
reply and notify the sender (only) and delete the message. Unauthorized
interception of this e-mail is a violation of federal criminal law.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Mapping URLs to directories outside of a webapp.

2004-02-19 Thread rsequeira

If you are using Apache, you could use the Alias directive.

RS


   

  Ben Souther  

  <[EMAIL PROTECTED]To:   "Tomcat Users List"  
 
  om>   <[EMAIL PROTECTED]>
   
   cc: 

  02/19/2004 09:09 Subject:  Mapping URLs to directories 
outside of a webapp.  
  AM   

  Please respond to

  "Tomcat Users

  List"

   

   





Is it possible to map a URL to a directory outside of a webapps's context?

Our app has one directory that our customers use to store and display their

own static webpages.  It would be useful to us to be able to keep that
directory outside of the webapp's dir structure.  Sort of a 'virtual
directory'  within a webapp.

This would allow users to upgrade our app by simply deleting the exiting
war
and redeploying with the newer version. They wouldn't have to worry about
mobving thier pages out and then back in after the re-deploy.

We have customers running both *nix and windows so we can't rely on
symlinks
for this.

Thank you
--
Ben Souther
F.W. Davison & Company, Inc.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






This transmission is intended to be strictly confidential. If you are not
the intended recipient of this message, you may not disclose, print, copy
or disseminate this information. If you have received this in error, please
reply and notify the sender (only) and delete the message. Unauthorized
interception of this e-mail is a violation of federal criminal law.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Virtual server on Tomcat 3.3

2003-10-27 Thread rsequeira

Actually for TC 3.3, it would help you to read:
http://jakarta.apache.org/tomcat/tomcat-3.3-doc/tomcat-ug.html#standard_contexts



RS


   

  "Lars Ballieu

  Christensen" To:   "'Tomcat Users List'" 

  <[EMAIL PROTECTED]>   <[EMAIL PROTECTED]>
   
   cc: 

  10/27/2003 11:36 Subject:  RE: Virtual server on Tomcat 
3.3  
  AM   

  Please respond to

  "Tomcat Users

  List"

   

   





Hi RS

I'm just not sure that will do the job. I need to be able to distinguish
between, say, www.abc.com and www.xyz.com

Thanks for your help.

Lars

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 27. oktober 2003 18:33
To: Tomcat Users List
Subject: Re: Virtual server on Tomcat 3.3



Use the Host element

   
   
   



RS





  "Lars Ballieu

  Christensen" To:   "'Tomcat Users
List'"
  <[EMAIL PROTECTED]>
<[EMAIL PROTECTED]>
   cc:

  10/27/2003 11:30 Subject:  Virtual server on
Tomcat 3.3
  AM

  Please respond to

  "Tomcat Users

  List"










Hi list

I need to host a number of web domains on my Tomcat 3.3 server, and would
appreciate if some could point me to a description of what I need to add to

the server.xml file in order to create virtual servers. Any help is greatly
appreciated.

Kind regards

Lars



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






This transmission is intended to be strictly confidential. If you are not
the intended recipient of this message, you may not disclose, print, copy
or
disseminate this information. If you have received this in error, please
reply and notify the sender (only) and delete the message. Unauthorized
interception of this e-mail is a violation of federal criminal law.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






This transmission is intended to be strictly confidential. If you are not
the intended recipient of this message, you may not disclose, print, copy
or disseminate this information. If you have received this in error, please
reply and notify the sender (only) and delete the message. Unauthorized
interception of this e-mail is a violation of federal criminal law.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Virtual server on Tomcat 3.3

2003-10-27 Thread rsequeira

Use the Host element

   
   
   



RS



   

  "Lars Ballieu

  Christensen" To:   "'Tomcat Users List'" 

  <[EMAIL PROTECTED]>   <[EMAIL PROTECTED]>
   
   cc: 

  10/27/2003 11:30 Subject:  Virtual server on Tomcat 3.3  

  AM   

  Please respond to

  "Tomcat Users

  List"

   

   






Hi list

I need to host a number of web domains on my Tomcat 3.3 server, and would
appreciate if some could point me to a description of what I need to add to

the server.xml file in order to create virtual servers. Any help is greatly
appreciated.

Kind regards

Lars



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






This transmission is intended to be strictly confidential. If you are not
the intended recipient of this message, you may not disclose, print, copy
or disseminate this information. If you have received this in error, please
reply and notify the sender (only) and delete the message. Unauthorized
interception of this e-mail is a violation of federal criminal law.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tag problem

2003-09-22 Thread rsequeira

I don't believe the SERVLET tag is supported in Tomcat. I know it was
supported in JRun. But you could write a jsp and then from the jsp call the
servlet you desire

Thanks,
RS



   

  "Jay Doggett"

  <[EMAIL PROTECTED]To:   "Tomcat Users List"  
 
  t.net><[EMAIL PROTECTED]>
   
   cc: 

  09/22/2003 03:51 Subject:   Tag problem 

  PM   

  Please respond to

  "Tomcat Users

  List"

   

   





Hello everyone!

 I have these lines in a very simple html page, intending to
invoke my servlet and pass some params to it:





Can anyone tell me why the servlet is never getting called?

Thanks
Jay


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






This transmission is intended to be strictly confidential. If you are not
the intended recipient of this message, you may not disclose, print, copy
or disseminate this information. If you have received this in error, please
reply and notify the sender (only) and delete the message. Unauthorized
interception of this e-mail is a violation of federal criminal law.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: calling methods

2003-07-18 Thread RSEQUEIRA

Move this method out to a java class and then just instantiate this class
(and then access the method) from both servlets.


RS


   

  "Ben Austin" 

  <[EMAIL PROTECTED]To:   [EMAIL PROTECTED]

  otmail.com>  cc: 

   Subject:  calling methods   

  07/18/03 03:44 PM

  Please respond to

  "Tomcat Users List"  

   

   





I have a method (myMethod) in a servlet (servletA). I want to use myMethod
in servletB. I could just copy myMethod into servletB, but then I would
have
to update both copies of my Method whenever I wanted to change something.
Is
there a way to call myMethod in servletA from servletB?

_
Add photos to your messages with MSN 8. Get 2 months FREE*.
http://join.msn.com/?page=features/featuredemail


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






This transmission is intended to be strictly confidential. If you are not
the intended recipient of this message, you may not disclose, print, copy
or disseminate this information. If you have received this in error, please
reply and notify the sender (only) and delete the message. Unauthorized
interception of this e-mail is a violation of federal criminal law.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: HELP, PLEASE! Tomcat creates too many threads!

2003-01-07 Thread rsequeira


You ought to look into the cause of this problem by running a combination
of ps, top, etc commands and getting a thread dump by killing the threads.
Generally it turns out that some application/servlet is the cause of
runaway threads. It would be a good idea to look into the bug
database/forums on the sun java site for JSDK1.4/Linux issues. I know
JSDK1.3.x/Linux had a couple of issues with regards to sockets.

RS



   

  "Venkat Reddy

  Valluri" To:   "Tomcat Users List"   

 

  le.com>  cc: 

   Subject:  RE: HELP, PLEASE! Tomcat 
creates too many 
  01/07/03 08:31 AM threads!   

  Please respond to

  "Tomcat Users

  List"

   

   





Can you try with IBM JVM, as it works well on linux in cae of performance
as well as memory usage


-Original Message-
From:Denise Mangano [mailto:[EMAIL PROTECTED]]
Sent:Tue 1/7/2003 9:31 AM
To:  'Tomcat Users List'
Cc:
Subject:   RE: HELP, PLEASE! Tomcat creates too many threads!
I am curious about the same thing.  My app isn't fully up and operational
yet so I do not know for sure if I suffer from the same problem, but I have
noticed that while doing some testing new threads are getting started, and
it usually takes a restart to get rid of them.

I've seen this question posted a few times, but haven't noticed any
'resolution' or possible solutions.  Can anyone recommend things to check
for, settings to make, or perhaps any documentation on the issue?

Is it possible that this could be a JSDK 1.4 issue?  It's the only common
link I've noticed between my set up and other posters with this problem.

Thanks :)

Denise Mangano
Help Desk Analyst
Complus Data Innovations, Inc.


-Original Message-
From: Wagner José Queiroz de Santana
[mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 07, 2003 6:47 AM
To: [EMAIL PROTECTED]
Subject: HELP, PLEASE! Tomcat creates too many threads!



Hello all,

Im running Apache and Tomcat in  a Linux machine, after a couple days
and several accesses to my applications, Tomcat creates several
threads/processes that stay sleeping, as you can see at the end of this
e-mail.
Im using Tomcat 4.0.4, Apache 1.3.26 with mod_webapp, and Java
1.4.0_01.
If I don't restart my tomcat, it will exceed the maximum number of
processes the user can execute and it will block, turning my applications
offline.
Is there any solution to this problem? How is it possible to avoid the
creation of so many processes?

I really appreciate any help you can give me.

These lines are only a few ones I get when I run the ps -elf command:

040 S root 13849  8678  0  60   0- 58223 tcp_re Jan06 ?
00:00:00 /usr/local/j2sdk1.4.0_01/bin/java
-Djava.endorsed.dirs=/usr/local/jakarta-tomcat
040 S root 13850  8678  0  60   0- 58223 tcp_re Jan06 ?
00:00:00 /usr/local/j2sdk1.4.0_01/bin/java
-Djava.endorsed.dirs=/usr/local/jakarta-tomcat
040 S root 19616  8678  0  60   0- 58223 tcp_re Jan06 ?
00:00:00 /usr/local/j2sdk1.4.0_01/bin/java
-Djava.endorsed.dirs=/usr/local/jakarta-tomcat
040 S root 19619  8678  0  60   0- 58223 tcp_re Jan06 ?
00:00:00 /usr/local/j2sdk1.4.0_01/bin/java
-Djava.endorsed.dirs=/usr/local/jakarta-tomcat
040 S root 19628  8678  0  60   0- 58223 tcp_re Jan06 ?
00:00:00 /usr/local/j2sdk1.4.0_01/bin/java
-Djava.endorsed.dirs=/usr/local/jakarta-tomcat
040 S root 26732  8678  0  60   0- 58223 tcp_re Jan06 ?
00:00:00 /usr/local/j2sdk1.4.0_01/bin/java
-Djava.endorsed.dirs=/usr/local/jakarta-tomcat
040 S root 26754  8678  0  60   0- 58223 tcp_re Jan06 ?
00:00:00 /usr/local/j2sdk1.4.0_01/bin/java
-Djava.endorsed.dirs=/usr/local/jakarta-tomcat
040 S root 31033  8678  0  60   0- 58223 tcp_re Jan06 ?
00:00:00 /usr/local/j2sdk1.4.0_01/bin/java
-Djava.endorsed.dirs=/usr/local/jakarta-tomcat
040 S root  4677  8678  0  60   0- 58223 tcp_re Jan06 ?
00:00:00 /usr/local/j2sdk1.4.0_01/bin/java
-Djava.endorsed.dirs=/usr/local/jakarta-tomcat

Re: Tomcat Crash

2003-01-03 Thread rsequeira

Did you look at the logs. And when you say crashed, does it mean it stops
serving requests or does it shutdown?
If you provide some log output, folks out here could shed some light.

RS



   

  "Dheeraj Anand"  


  akriti.com>  cc: 

   Subject:  Tomcat Crash  

  01/03/03 05:44 AM

  Please respond to

  "Tomcat Users

  List"

   

   





Hi All,

I am running tomcat 3.2.4 and jdk 1.3 on windows advanced server 2000. My
tomcat is suddenly getting crashed. What could be the reasons and how to
fix
this?

I would like to highlight that we are also running a console based java
application that is communicating to com port using Modem AT commands.

Regards,
Dheeraj


--
To unsubscribe, e-mail:   <
mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <
mailto:[EMAIL PROTECTED]>






This transmission is intended to be strictly confidential. If you are not
the intended recipient of this message, you may not disclose, print, copy
or disseminate this information. If you have received this in error, please
reply and notify the sender (only) and delete the message. Unauthorized
interception of this e-mail is a violation of federal criminal law.



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Virtual Hosting with Tomcat

2002-12-30 Thread rsequeira

Virtual hosting in Tomcat can be achieved using the Host element (see
server.xml). Also for this to work, the host name must be registered in the
DNS server.
See http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/host.html for
details.
Also see Host name Aliases (referred in the above doc).

RS



   

  "Mike Rixford"   

 <[EMAIL PROTECTED]>   

   cc: 

  12/30/02 11:30 AMSubject:  Virtual Hosting with Tomcat   

  Please respond to

  "Tomcat Users

  List"

   

   





Hi there,

I need to setup virtual hosting with Tomcat.  We are not running the
full Apache server, just Tomcat and its web piece.  Can this be done?
Everything I have found so far refers to Apache not Tomcat on its own.

Any help would be greatly appreciated.

Thanks,

Mike

--
To unsubscribe, e-mail:   <
mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <
mailto:[EMAIL PROTECTED]>






This transmission is intended to be strictly confidential. If you are not
the intended recipient of this message, you may not disclose, print, copy
or disseminate this information. If you have received this in error, please
reply and notify the sender (only) and delete the message. Unauthorized
interception of this e-mail is a violation of federal criminal law.



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




jvm_bind exception - port 8080 - Address in use

2002-12-13 Thread rsequeira
This is slightly off-topic (related to JBoss, but involves Tomcat)

Environment: Win NT, JBoss 3.0.4 with Tomcat 4.1.12, JDK1.3.1

I unzipped jboss-3.0.4_tomcat-4.1.12 and tried to run(.bat) JBoss. But
I get an exception saying embedded Tomcat couldn't bind to 8080 (address
already in use). So I checked using netstat and there was no service
listening on port 8080.
Also to be doubly sure that there wasn't anything listening on port 8080, I
started Tomcat by going to jboss-3.0.4_tomcat-4.1.12\tomcat-4.1.x\bin
and typing "catalina run". This time tomcat started up fine on port 8080.

Am I missing something fundamental here?

Log snippet:
---
08:41:46,750 INFO  [EmbeddedCatalinaService41] Creating
08:41:46,750 INFO  [EmbeddedCatalinaService41] Created
08:41:46,750 INFO  [EmbeddedCatalinaService41] Starting
08:41:47,828 INFO  [STDOUT] Apache Tomcat/4.1.12-LE-jdk14
08:41:47,860 INFO  [Engine] HttpConnector Opening server socket on all host
IP a
ddresses
08:41:47,875 ERROR [Engine] HttpConnector httpConnector, io problem:
java.net.BindException: Address in use: JVM_Bind:8080
at
org.apache.catalina.connector.http.HttpConnector.open(HttpConnector.j
ava:980)
at
org.apache.catalina.connector.http.HttpConnector.initialize(HttpConne
ctor.java:1187)
at org.apache.catalina.startup.Embedded.start(Embedded.java:999)
at
org.jboss.web.catalina.EmbeddedCatalinaService41.startService(Embedde
dCatalinaService41.java:254)
at
org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:1
65)
...


08:41:47,875 ERROR [EmbeddedCatalinaService41] Starting failed
LifecycleException:  null.open:  java.net.BindException: Address in use:
JVM_Bin
d:8080
at
org.apache.catalina.connector.http.HttpConnector.initialize(HttpConne
ctor.java:1209)
at org.apache.catalina.startup.Embedded.start(Embedded.java:999)
at
org.jboss.web.catalina.EmbeddedCatalinaService41.startService(Embedde
dCatalinaService41.java:254)
at
org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:1
65)


A little more informationif I change the port to 80 (by updating
tomcat41-service.xml and other associated configuration files), Tomcat
starts up fine with JBoss.

Also, not being a networking guy, any idea why does output (by jboss when
starting)
say 0.0.0.0 instead of the ip address of my machine.
For example:
---
08:41:41,719 INFO  [OILServerILService] JBossMQ OIL service available at :
0.0.0
.0/0.0.0.0:8090



Thanks in advance,
RS


This transmission is intended to be strictly confidential. If you are not
the intended recipient of this message, you may not disclose, print, copy
or disseminate this information. If you have received this in error, please
reply and notify the sender (only) and delete the message. Unauthorized
interception of this e-mail is a violation of federal criminal law.



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: urgent !!!!problem with availability of port !

2002-12-11 Thread rsequeira

You can change it to whatever you wish as long as it doesn't conflict with
any other. The default port for HTTP is 80. But Tomcat by default (if no
changes have been made to server.xml) listens on port 8080. Use netstat -an
(and grep for LISTEN if you are on a Unix box). This will tell you which
ports are in use. Then pick a number (>1024) which doesn't match any
returned by the previous command. Edit server.xml. And you are ready to go.

RS




   

  neha shah

 cc: 

   Subject:  urgent problem with 
availability of port !
  12/11/02 09:29 AM

  Please respond to

  "Tomcat Users

  List"

   

   






Hello sir/mam ,

the port 8080 that si default for tomcat cani change it to some other port
no as it is never free on my school server for that where all do i ahev to
amke changes .

PLs can u reply asap as i have my demo today and post 8080 is in use .

reagrds

neha



-
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now




This transmission is intended to be strictly confidential. If you are not
the intended recipient of this message, you may not disclose, print, copy
or disseminate this information. If you have received this in error, please
reply and notify the sender (only) and delete the message. Unauthorized
interception of this e-mail is a violation of federal criminal law.



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Thread dump

2002-12-06 Thread rsequeira

You could use Thread.enumerate(Thread [] ) and then do a Thread.dumpStack()
on each thread in your code. I can't provide any definite answers on how to
get a thread dump right from the moment Tomcat starts, but I suppose you
could modify Tomcat code (call the about the methods in your code) to do
this.

RS



   

  "Manavendra  

  Gupta"   To:   "Tomcat Users List"   

  <[EMAIL PROTECTED]>  <[EMAIL PROTECTED]>   

   cc: 

  12/06/02 10:01 AMSubject:  RE: Thread dump   

  Please respond to

  "Tomcat Users

  List"

   

   





Beg your pardon? would that not actually kill the process, rather than
displaying the thread dump?

And what if one wants to see the thread dump right from the moment tomcat
starts up?

Thanks,
manav.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 06, 2002 9:18 PM
To: Tomcat Users List
Subject: Re: Thread dump



kill -3 

RS



  "Manavendra
  Gupta"   To:   "Tomcat Users
List"
  <[EMAIL PROTECTED]>
<[EMAIL PROTECTED]>
   cc:
  12/06/02 09:53 AMSubject:  Thread dump
  Please respond to
  "Tomcat Users
  List"






I have tomcat 4.1 running on Linux. How do i see the thread dump? The
startup.sh on linux just starts it in the background, while i could use
startup.bat on windows and get the thread dump.

thanks,
manav.


--
To unsubscribe, e-mail:   <
mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <
mailto:[EMAIL PROTECTED]>







--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:   <
mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <
mailto:[EMAIL PROTECTED]>







--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Thread dump

2002-12-06 Thread rsequeira

kill -3 

RS


   

  "Manavendra  

  Gupta"   To:   "Tomcat Users List"   

  <[EMAIL PROTECTED]>  <[EMAIL PROTECTED]>   

   cc: 

  12/06/02 09:53 AMSubject:  Thread dump   

  Please respond to

  "Tomcat Users

  List"

   

   





I have tomcat 4.1 running on Linux. How do i see the thread dump? The
startup.sh on linux just starts it in the background, while i could use
startup.bat on windows and get the thread dump.

thanks,
manav.


--
To unsubscribe, e-mail:   <
mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <
mailto:[EMAIL PROTECTED]>







--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: migration from jrun to tomcat

2002-12-02 Thread rsequeira

The error message implies that the session-timeout element is missing in
the web.xml file.

SEVERE: Parse Error at line 137 column -1: Element type "session-timeout"
is not
 declared.
org.xml.sax.SAXParseException: Element type "session-timeout" is not
declared.


See $TOMCAT_HOME/conf/web.xml file. To be more specific look under the
"Default Session Configuration" section. If it isn't present, then you may
need to add the following lines just after the servlet mapping section.

  
30
  

RS




   

  Shyama Gavulla   

  <[EMAIL PROTECTED]To:   <[EMAIL PROTECTED]>   

  u>   cc: 

   Subject:  Re: migration from jrun to 
tomcat 
  12/02/02 11:13 AM

   

   





Hello Sir,
Operatin system is windows XP home edition
tomcat version is 4.1.12


This is the brief error output

at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:411
)
at
org.apache.catalina.startup.HostConfig.start(HostConfig.java:879)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java
:368)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
eSupport.java:166)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1196)

at
org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)

at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347
)
at
org.apache.catalina.core.StandardService.start(StandardService.java:4
97)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:218
9)
at org.apache.catalina.startup.Catalina.start(Catalina.java:510)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
Dec 2, 2002 12:11:40 PM org.apache.commons.digester.Digester error
SEVERE: Parse Error at line 137 column -1: Element type "session-timeout"
is not
 declared.
org.xml.sax.SAXParseException: Element type "session-timeout" is not
declared.
at org.apache.crimson.parser.Parser2.error(Parser2.java:3160)
at
org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1322)
at org.apache.crimson.parser.Parser2.content(Parser2.java:1779)
at
org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1507)
at org.apache.crimson.parser.Parser2.content(Parser2.java:1779)
at
org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1507)
at
org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:500)
at org.apache.crimson.parser.Parser2.parse(Parser2.java:305)
at
org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442)

at org.apache.commons.digester.Digester.parse(Digester.java:1495)
at
org.apache.catalina.startup.ContextConfig.applicationConfig(ContextCo
nfig.java:282)
at
org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:63
9)
at
org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfi
g.java:243)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
eSupport.java:166)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3
493)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase


On Mon, 2 Dec 2002 [EMAIL PROTECTED] wrote:

>
> It would help to provide more details such as the Tomcat version,
operating
> system, brief error log output, etc. Also I believe you meant "WEB-INF"
> instead of "web-inf".
>
> RS
>
>
>
>
>   Shyama Gavulla
>   <[EMAIL PROTECTED]To:
<[EMAIL PROTECTED]>
>   u>   cc:
>Subject:  Re: migration
from jrun to tomcat
>   12/02/

Re: Help with jsp:includes

2002-12-02 Thread rsequeira

1000+ includes in a single page isn't a good idea IMHO. And using
jsp:include for all 1000+ includes just aggravates the situation. It would
be a good idea to minimize the number of includes by maybe clubbing a few
together into one file. Also if looking at static includes as opposed to
dynamic (jsp:include) will help performance. A jsp:include tag includes a
file at request time as opposed to a static (<@ inlcude) tag which
includes a file at compile time.

RS



   

  "John Trollinger"


  ers.com> cc: 

   Subject:  Help with jsp:includes

  12/02/02 09:39 AM

  Please respond to

  "Tomcat Users

  List"

   

   





I have pages that have the posibility of having 1000+ jsp:include
statements in them.  These pages take long times to load because of all
the requests going to the server.  Is there a way I can call the classes
directly instead of going through a request to the server?


Thanks,

John


--
To unsubscribe, e-mail:   <
mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <
mailto:[EMAIL PROTECTED]>







--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: migration from jrun to tomcat

2002-12-02 Thread rsequeira

Tomcat follows the web app standard. If your applications on JRun are set
up in a similar fashion, migration should be a breeze and would probably
entail just modifying the Tomcat configuration files (server.xml, web.xml).
Read the docs closely and you should be in good shape.
A point of concern would be if your servlets are called using the servlet
tag. Since the servlet tag is proprietary to JRun and isn't a standard, you
could get around it by using jsp:include

RS




   

  Shyama Gavulla   

  <[EMAIL PROTECTED]To:   Tomcat Users List 

  u><[EMAIL PROTECTED]>   

   cc: 

  12/02/02 10:07 AMSubject:  migration from jrun to tomcat 

  Please respond to

  "Tomcat Users

  List"

   

   





Hi All,

I am new user to tomcat. I have my application in Jrun. I want to mirate
to tomcat . It would be really helpful if anyone can tell me the necessary
steps needed for the migration. It would be of great help .

shyam



--
To unsubscribe, e-mail:   <
mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <
mailto:[EMAIL PROTECTED]>







--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Does Tomcat 3.2.4 use a thread pool by default

2002-10-09 Thread rsequeira


Does Tomcat 3.2.4 use a thread pool by default? If I'm not mistaken, it
does according to the documentation (
http://jakarta.apache.org/tomcat/tomcat-3.2-doc/uguide/tomcat_ug.html).
Could someone please confirm this. I think it does using the
PoolTcpConnector class. I believe even if you do not explicitly specify
max_threads, max_spare_threads, min_spare_threads it uses the default that
is specified in the documentation. I wanted someone to confirm this.
We are having problems with our website.The CPU and load on the machine
keeps increasing and never comes down unless we restart Tomcat.
 We use JDK1.3.1, Apache, Tomcat 3.2.4, Linux 7.2.

Thanks in advance,
RS




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Can someone PLEASE tell me why tomcat uses so much CPU???

2002-09-30 Thread rsequeira


I'm no Linux guru. But did you try running Tomcat with the classic JVM?
With "-client", "-server" or "-hotspot" I think there are many process that
are started. And if your code opens underlying sockets, etc, it takes more
processes which I believe remain hanging. If you run Tomcat with "
-classic", only one JVM is started.
Hope this helps. Note that JDK 1.4.x doesn't support the "-classic".

RS



   

  "Brandon Cruz"   

  <[EMAIL PROTECTED]To:   "Tomcat Users List"   

  > <[EMAIL PROTECTED]>   

   cc: 

  09/30/02 04:09 PMSubject:  RE: Can someone PLEASE tell 
me why tomcat uses so 
  Please respond to much CPU???

  "Tomcat Users

  List"

   

   





Mike,

Thanks for answering.

I'm using Sun's JDK 1.3.1_01.

We have been running this in production for over year and I think we have
always had the problem.  Since 3.2.4 requires restart whenever a web
application is changed, it used to just get restarted often enough so that
nobody ever noticed.  There are enough people using the application now
that
it is becoming more and more noticable.  I'm afraid that we are getting
close to a point where it will be necessary to restart tomcat every day.
It
also slowly increases the amount of RAM it uses, but that's a whole
different story and I just want to find out one answer at a time.

Has anyone else experienced this and found a resolution to the problem?  I
have seen many posts but no answers...



-Original Message-
From: Mike Jackson [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 30, 2002 3:45 PM
To: Tomcat Users List; [EMAIL PROTECTED]
Subject: RE: Can someone PLEASE tell me why tomcat uses so much CPU???


What jdk are you using?  I use suse 8, tomcat 3.3.x, apache 1.3.x, mod_jk,
etc
with IBM's 1.3 jdk and don't experience anything like that.

--mikej
-=-
mike jackson
[EMAIL PROTECTED]

> -Original Message-
> From: Brandon Cruz [mailto:[EMAIL PROTECTED]]
> Sent: Monday, September 30, 2002 1:57 PM
> To: Tomcat Users List
> Subject: Can someone PLEASE tell me why tomcat uses so much CPU???
>
>
> Hi,
>
> I am using tomcat 3.2.4, mod_jk, apache 1.3.x, linux redhat 7.1.  The
java
> processes slowly take more and more CPU power.  After about a day, java
is
> taking 15% CPU, after two days, about 30% of a 1GHZ CPU, etc.  If
> I leave it
> running for more than three or four days, everything is VERY slow.  Does
> anyone know why this happens and if it is normal?
>
> I have not been able to find an answer to this anywhere!
>
> Brandon
>
>
> --
> To unsubscribe, e-mail:

For additional commands, e-mail:





--
To unsubscribe, e-mail:

For additional commands, e-mail:




--
To unsubscribe, e-mail:   <
mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <
mailto:[EMAIL PROTECTED]>







--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Setup a context for Tomcat 4.0.3

2002-09-20 Thread rsequeira


You could update the "appBase" attribute to point to a different directory
than "webapps". Or you could specify the absolute path in the "docBase"
attribute of the Context element to override the "appBase". This way you
could have a context outside of webapps. Also read up on auto-deploying of
web applications.
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/host.html#Automatic%20Application%20Deployment

That is you could just drop a war file in the "webapps" directory or any
other appBase directory and Tomcat will auto-deploy the web app without you
creating a Context entry in server.xml.

RS




   

  "Chiming Huang"  

  <[EMAIL PROTECTED]To:   
<[EMAIL PROTECTED]>  
  m>   cc: 

   Subject:  Setup a context for Tomcat 
4.0.3  
  09/19/02 03:19 PM

  Please respond to

  "Tomcat Users

  List"

   

   





Hi,

I would like to put my webapp out side of ~\tomcat\webapps directory.  I
know I need to setup a context in the ~\tomcat\conf\server.xml to point to
my webapp directory.  And it is working fine.

Base on the environment stated above, my question is: Is there a way to
configure Tomcat so that I don't need to modify the
~/tomcat\conf\server.xml to add a context for my app?

Thanks.
Chiming






--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Re[2]: Context path

2002-09-20 Thread rsequeira


Since the request object isn't available in the init(), adding an init
param with the context name would help.

RS



   

  "Andreas Probst" 

  <[EMAIL PROTECTED]To:   "Tomcat Users List"   

  > <[EMAIL PROTECTED]>   

   cc: 

  09/20/02 09:12 AMSubject:  Re: Re[2]: Context path   

  Please respond to

  "Tomcat Users

  List"

   

   





Thank you RS and Jake,

I know there is the possibility of init parameters. Because one
has to edit them manually I would prefer another more dynamic
way of getting the context path. Isn't there another
possibility?

Andreas



>
> Jake, you are correct. Guess I was high on dope, huh :-) But I
> suppose one could still use the environment entry technique for
> "root" contexts. Thanks
>
> RS
>
>
> Hello rsequeira,
>
> I think you are mistaking getServletContext with
> getRealPath("/"). The servlet context object is too important to
> *ever* return null.  It is only file system operations that will
> not work when the context is deployed in a .war file.
>
> Jake
>
> Thursday, September 19, 2002, 1:29:21 PM, you wrote:
>
>
> rtc> Place an environment entry in the web.xml. This way you can
> access this rtc> parameter anywhere, anytime. Don't depend on
> getContext or rtc> getServletContext methods. If you had a war
> file, a getServletContext rtc> returns null.
>
> rtc> RS
>

>
> rtc> Hi all,
>
> rtc> I need to know the context path of my web app. If I have a
>
> rtc> HttpServletRequest req, I can get
> rtc> String contextPath = req.getContextPath();
>
> rtc> Now, what can I do within init()? I havn't got a
> rtc> HttpServletRequest there. How do I get the context path?
>
> rtc> Thanks in advance.
>
> rtc> Andreas
>


--
To unsubscribe, e-mail:   <
mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <
mailto:[EMAIL PROTECTED]>







--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




Re: Directory Listing

2002-09-20 Thread rsequeira


See the Directory element in httpd.conf. The "Indexes" option dictates
whether or not the directory is listed.
To suppress directory listings,
  Declare a Directory element for that folder in httpd.conf. Don't add
the "Indexes" option.

RS



   

  "Ravindra K. 

  Bhat"To:   Tomcat Users List 

  <[EMAIL PROTECTED] <[EMAIL PROTECTED]>   

  .EDU>cc: 

   Subject:  Re: Directory Listing 

  09/20/02 11:30 AM

  Please respond to

  "Tomcat Users

  List"

   

   





Hi Dan,

Thanks.  How do I avoid lisitng the directories via apache. I am still
able to view the directory lisitng if I use apache access to get in..

thanks
Ravi

On Fri, 20 Sep 2002, Dan Lipofsky wrote:

> In server.xml set suppress="true" for StaticInterceptor like below
>
> className="org.apache.tomcat.request.StaticInterceptor"
>debug="0" suppress="true" />
>
> - Dan
>
> > How do I avoid listing the directory files when users type the url in
> > tomcat 3.2.4?
> > Thanks
>
>
>
> --
> To unsubscribe, e-mail:   <
mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <
mailto:[EMAIL PROTECTED]>
>
>


--
To unsubscribe, e-mail:   <
mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <
mailto:[EMAIL PROTECTED]>







--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Re[2]: Context path

2002-09-20 Thread rsequeira


Jake, you are correct. Guess I was high on dope, huh :-) But I suppose one
could still use the environment entry technique for "root" contexts.
Thanks

RS



   

  Jacob Kjome  

  <[EMAIL PROTECTED]>  To:   "Tomcat Users List"   

<[EMAIL PROTECTED]>   

  09/19/02 05:29 PMcc: 

  Please respond toSubject:  Re[2]: Context path   

  "Tomcat Users

  List"

   

   





Hello rsequeira,

I think you are mistaking getServletContext with getRealPath("/").
The servlet context object is too important to *ever* return null.  It
is only file system operations that will not work when the context is
deployed in a .war file.

Jake

Thursday, September 19, 2002, 1:29:21 PM, you wrote:


rtc> Place an environment entry in the web.xml. This way you can access
this
rtc> parameter anywhere, anytime. Don't depend on getContext or
rtc> getServletContext methods. If you had a war file, a getServletContext
rtc> returns null.

rtc> RS




rtc>   "Andreas Probst"

rtc>  bst.de>
<[EMAIL PROTECTED]>
rtc>cc:

rtc>   09/19/02 07:23 AMSubject:  Context path

rtc>   Please respond to

rtc>   "Tomcat Users

rtc>   List"







rtc> Hi all,

rtc> I need to know the context path of my web app. If I have a

rtc> HttpServletRequest req, I can get
rtc> String contextPath = req.getContextPath();

rtc> Now, what can I do within init()? I havn't got a
rtc> HttpServletRequest there. How do I get the context path?

rtc> Thanks in advance.

rtc> Andreas


rtc> --
rtc> To unsubscribe, e-mail:   <
rtc> mailto:[EMAIL PROTECTED]>
rtc> For additional commands, e-mail: <
rtc> mailto:[EMAIL PROTECTED]>







rtc> --
rtc> To unsubscribe, e-mail:   <
mailto:[EMAIL PROTECTED]>
rtc> For additional commands, e-mail: <
mailto:[EMAIL PROTECTED]>



--
Best regards,
 Jacobmailto:[EMAIL PROTECTED]


--
To unsubscribe, e-mail:   <
mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <
mailto:[EMAIL PROTECTED]>







--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




Re: Context path

2002-09-19 Thread rsequeira


Place an environment entry in the web.xml. This way you can access this
parameter anywhere, anytime. Don't depend on getContext or
getServletContext methods. If you had a war file, a getServletContext
returns null.

RS



   

  "Andreas Probst" 

 <[EMAIL PROTECTED]>   

   cc: 

  09/19/02 07:23 AMSubject:  Context path  

  Please respond to

  "Tomcat Users

  List"

   

   





Hi all,

I need to know the context path of my web app. If I have a

HttpServletRequest req, I can get
String contextPath = req.getContextPath();

Now, what can I do within init()? I havn't got a
HttpServletRequest there. How do I get the context path?

Thanks in advance.

Andreas


--
To unsubscribe, e-mail:   <
mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <
mailto:[EMAIL PROTECTED]>







--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: jsp:forward to a different context

2002-09-18 Thread rsequeira


Say you wish to forward from Context "A" to Context "B". You need to do two
things:

1) Turn the crossContext attribute to "true" in server.xml

2) In your code:
<%
   ServletContext ctxB = application.getContext("/B");
   RequestDispatcher rdB = ctxB.getRequestDispatcher
("

RS



   

  William Wragg

  <[EMAIL PROTECTED]>   

   cc: 

  09/18/02 09:14 AMSubject:  jsp:forward to a different 
context
  Please respond to

  "Tomcat Users

  List"

   

   





Hi,

Is there any way to forward to a different context(webapp) from within a
JSP?

I am running Tomcat 4.0.4

Regards,

Wm.

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.389 / Virus Database: 220 - Release Date: 16/09/2002

--
To unsubscribe, e-mail:   <
mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <
mailto:[EMAIL PROTECTED]>





--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Reloading .jsp-Pages

2002-09-18 Thread RSEQUEIRA


Another thing I forgot to mention:
There may be issues with auto-reload with a particular release. I think you
use Tomcat 4.0.2. Check the release notes for that version. Also for the
latest version which I believe is Tomcat 4.1.10.

RS



   

  RSEQUEIRA@TRANSEN

  TRIC.COM To:   "Tomcat Users List"   

<[EMAIL PROTECTED]>   

  09/18/02 09:02 AMcc: 

  Please respond toSubject:  Re: Reloading .jsp-Pages  

  "Tomcat Users

  List"

   

   






reloadble="true" attribute is used to auto-reload jsp pages when they have
changed. But you have to remember a  key point when you are including a jsp
in another jsp page:
If you use the "<%@ include %>" directive to include , remember that the
include happens at compile time rather than request time. So if the
included jsp has changed, but the including jsp hasn't, then your changes
won't be visible. SO in this case4, it would be better to use the
"".

Moral of story: reloadable attribute isn't a cure-all. You may need to use


My 2 cents.

RS




  "Dominik

  Jednoralski" To:   "Tomcat User Help"

  
  gn.de>   cc:

   Subject:  Reloading
.jsp-Pages
  09/17/02 07:28 AM

  Please respond to

  "Tomcat Users

  List"







Hey,

I'm using tomcat 4.0.1 / windows. I've a problem with reloading my
jsp-pages.
tomcat simply ignores the changes I've made to them. I added the following
contexts
in the server.xml-file:


and


Anyway, they're still in the servers cache and aren't reloaded after an
update.

Does anyone of you smart guys know how to tell tomcat to always recomlpile
the jsp-files and
-includes in the MyWebApp-Directory? Thank you...


Dominik Jednoralski


--
To unsubscribe, e-mail:   <
mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <
mailto:[EMAIL PROTECTED]>







--
To unsubscribe, e-mail:   <
mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <
mailto:[EMAIL PROTECTED]>







--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




Re: Reloading .jsp-Pages

2002-09-18 Thread RSEQUEIRA


reloadble="true" attribute is used to auto-reload jsp pages when they have
changed. But you have to remember a  key point when you are including a jsp
in another jsp page:
If you use the "<%@ include %>" directive to include , remember that the
include happens at compile time rather than request time. So if the
included jsp has changed, but the including jsp hasn't, then your changes
won't be visible. SO in this case4, it would be better to use the
"".

Moral of story: reloadable attribute isn't a cure-all. You may need to use


My 2 cents.

RS



   

  "Dominik 

  Jednoralski" To:   "Tomcat User Help"

 

  gn.de>   cc: 

   Subject:  Reloading .jsp-Pages  

  09/17/02 07:28 AM

  Please respond to

  "Tomcat Users

  List"

   

   





Hey,

I'm using tomcat 4.0.1 / windows. I've a problem with reloading my
jsp-pages.
tomcat simply ignores the changes I've made to them. I added the following
contexts
in the server.xml-file:


and


Anyway, they're still in the servers cache and aren't reloaded after an
update.

Does anyone of you smart guys know how to tell tomcat to always recomlpile
the jsp-files and
-includes in the MyWebApp-Directory? Thank you...


Dominik Jednoralski


--
To unsubscribe, e-mail:   <
mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <
mailto:[EMAIL PROTECTED]>







--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: jsp:include

2002-09-18 Thread RSEQUEIRA


Make the crossContext attribute "true" in server.xml.

RS


   

  Georges Roux 

  cc: 

   Subject:  jsp:include   

  09/17/02 05:31 PM

  Please respond to

  "Tomcat Users

  List"

   

   





Hi evrerybody,

How include file result who are not in the same context.

I use cocoon who are not in the same context
like 
and I want to include this precious result. is that possible?
an idea?

Please, thanks for advance.
Georges

--
"Software is like sex it's better when it's free.", Linus Torvalds
- -
  o' \,=./ `o
 (o o)
+=oo0==(_)==0oo===+
|   .-.   |
|  Georges Roux /v\ TUX   |
|  URL : georgesroux.dyndns.org// \\POWERED   |
|  email : [EMAIL PROTECTED]  /(   )\
|
|   ^ ^   |
+=+



--
To unsubscribe, e-mail:   <
mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <
mailto:[EMAIL PROTECTED]>







--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: JSP Include error

2002-09-17 Thread RSEQUEIRA


The IllegalStateException is being raised due to either of the following
reasons:
1) The included program (jsp or servlet) is attempting to set a response
header after the body of the response is sent or is being sent. Check that
you aren't setting any headers in the included jsp/servlet
2) If the included program is a servlet, it is using
response.getOutputStream() instead of response.getWriter()

RS



   

  Erick Todd   

  <[EMAIL PROTECTED]>   

   cc: 

  09/17/02 10:28 AMSubject:  Re: JSP Include error 

  Please respond to

  "Tomcat Users

  List"

   

   





This isn't a SSI include.  It is a jsp include native to the jsp
specification?  I did enable SSI just for kicks, but it doesn't change
anything.

Anyone??  I am really frustrated.  What do I need to do to get rid of
the Illegal State Exception on a jsp:include?

I include on the first line, later, nested includes, none of them work.

HELP!!

On Mon, 2002-09-16 at 21:40, Robert L Sowders wrote:
> Did you follow directions?
> http://jakarta.apache.org/tomcat/tomcat-4.1-doc/ssi-howto.html
>
> rls
>
>
>
>
> Erick Todd <[EMAIL PROTECTED]>
> 09/16/2002 01:30 PM
> Please respond to "Tomcat Users List"
>
>
> To: Tomcat Users List <[EMAIL PROTECTED]>
> cc:
> Subject:JSP Include error
>
> Anyone had any problems with doing a  ??
>
> It justs throws an unknown error, not even to the screen.
>
> Anything I do with an jsp:include doesn't work.
>
> Ideas??
>
>
>
>
> --
> To unsubscribe, e-mail:   <
mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <
mailto:[EMAIL PROTECTED]>
>
>
>
>
>
> --
> To unsubscribe, e-mail:   <
mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <
mailto:[EMAIL PROTECTED]>
>



--
To unsubscribe, e-mail:   <
mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <
mailto:[EMAIL PROTECTED]>







--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: line feeds in response

2002-09-09 Thread RSEQUEIRA


I had a similar problem a couple of days ago. I had to remove the <@ page
directive > at the start of the jsp page for this to work. That is for the
3 junk chars to stop showing up. I didn't have time to figure out why this
happens. We were migrating from JRun to Tomcat. From servletx to jsps.
I don't know what parser you use. I use xerces to parse the document. And
it works fine w/ or w/o the 3 chars. I convert XML to HTML, etc. But if you
have a homegrown parser (that uses some publicly available parser
underneath), you might need to start looking for the xml start tag (). One of our developers who was parsing the xml discovered
that the xml he was getting contained those 3 chars. I suppose he was
reading char-by-char instead of looking for the starting xml tag. Note, IE
doesn't care about the 3 chars. It's displays the xml document w/ or w/o
the 3 chars.
Hope this helps.

RS



   

  "Alexander Stage"

  <[EMAIL PROTECTED]> To:   "Tomcat Users List"   

<[EMAIL PROTECTED]>   

  09/09/02 10:43 AMcc: 

  Please respond toSubject:  line feeds in response

  "Tomcat Users

  List"

   

   





Hi all,

got the following problem:

I'm generating xml with jsps. Before I write out any response, I'm using
out.clearBuffer() to
clear anything from the output buffer in order not to write out new lines
etc.
However, this doesn't seem to work. I always get 3 line feeds before the
xml
starts, which
causes most parsers to fail parsing that xml.
I was wondering wether this is caused by the dispatcher mechanism I'm
using:

RequestDispatcher dispatcher = request.getRequestDispatcher(jspUrl);
dispatcher.forward(request,response);

since the resulting servlet code for the jsp begins output without any line
feeds, so this problem can't have it's origin the jsp. The generated source
code is:

// begin [file="/includeHeader.jsp";from=(0,2);to=(0,15)]
   out.clearBuffer();
// end
// HTML // begin [file="/includeHeader.jsp";from=(0,17);to=(1,0)]
   out.write("\n");

I tried to use also the clear() method in the out object, also reset(),
resetBuffer() in HttpServletResponse,
with the same results. The line feeds are always outputted before the "
\n" String.

I'm running jakarta-tomcat-4.0.4-LE-jdk14 on nt 4.0.

Any help would be really, really appreciated.

Thanks

Alex



--
To unsubscribe, e-mail:   <
mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <
mailto:[EMAIL PROTECTED]>







--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Can't find resource for bundle java.util.PropertyResourceBundle exception

2002-09-03 Thread rsequeira


Anyone has an idea what could be the cause of the following exception:
Can't find resource for bundle java.util.PropertyResourceBundle, key
dispatcher.includeException

It arises when I run a jsp.

Thanks
RS



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: web.xml question

2002-08-22 Thread rsequeira


Tomcat is programmed to look for the dtd in the
$CATALINA_HOME/common/lib/servlet.jar. This is how you can run Tomcat
offline w/o facing any problems :-)

Rosh


   

  "Dinesh  

  Khetarpal"   To:   
<[EMAIL PROTECTED]>  
  Subject:  web.xml question  

   

  08/22/02 09:39 AM

  Please respond to

  "Tomcat Users

  List"

   

   





http://java.sun.com/dtd/web-app_2_2.dtd>
http://java.sun.com/dtd/web-app_2_2.dtd";>
we put in the web.xml file and ship the application assuming everybody
has internet connection, what is the preferred way when customers don't
have internet connection.

Dinesh






--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: com.orielly.servlet File Upload package

2002-08-21 Thread rsequeira


It would be also advisable to look at web mail applications and see how
they program the File Upload bit. Hotmail is a good example.  Infact it
does something very similar to what John pointed out.

RS


   

  "Turner, John"   

  <[EMAIL PROTECTED]>To:   'Tomcat Users List'   

<[EMAIL PROTECTED]>   

  08/21/02 12:17 PMcc: 

  Please respond toSubject:  RE: com.orielly.servlet File 
Upload package   
  "Tomcat Users

  List"

   

   






Sounds to me like you're making this out to be more difficult than it is.

The standard flow is for a user to upload one file, and when the file
upload
is complete, you merely redirect back to the file upload page and ask if
the
user has another file to upload.  Uploading multiple files all at once
doesn't really gain anything in time saved, nor is the code any more
efficient.

By redirecting to the file upload page after an upload, you can also place
confirmation messages there for the previous uploads, and even give them a
nifty little interface where they can see a list of files that they have
uploaded.

John Turner
[EMAIL PROTECTED]

-Original Message-
From: Raju Lokhande [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 21, 2002 1:10 PM
To: [EMAIL PROTECTED]
Subject: Re: com.orielly.servlet File Upload package


You are right. I needed more fields on the html form to enter more than one
file name. That means I have to pre-set the number of files in my html
form.
Is there a more user-friendly interface available which works with this
package?
I know there are commercially available software which do the FileUpload
job, but am looking for an open-source free-ware.
Raju Lokhande

>>> [EMAIL PROTECTED] 08/21/02 12:40PM >>>
How many  fields did you put in your form? It's my
understanding that you need one for each file that you want to upload. I'm
not sure where filename seperators comes into this..

Regards,
Chetan Sarva

- Original Message -
From: "Raju Lokhande" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, August 21, 2002 12:13 PM
Subject: com.orielly.servlet File Upload package


> Hello everybody,
>  I loaded this package and the tester class in tomcat4. I used test html
file supplied in the Jason Hunter's servlet book.
> I ran this in my local machine and it worked fine for one file.
> When I entered two file names separated by a space for example: c:\abc
c:\def, the servlet call uploaded the last file - in this case c:\def.
>  This package is supposed to work for multiple files.
> Does anybody know what is the file-name separator for this app?
> Thanks
> Raju Lokhande
>
>
>
>
> *
> This message, together with any attachments, is intended only
> for the use of the individual or entity to which it is addressed. It
> may contain information that is confidential and prohibited from
> disclosure.  If you are not the intended recipient, you are
> hereby notified that any dissemination or copying of this
> message or any attachment is strictly prohibited. If you have
> received this message in error, please notify the original sender
> immediately by telephone or by return e-mail and delete this
> message along with any attachments, from your computer.
> Thank you.
> *
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:



--
To unsubscribe, e-mail:

For additional commands, e-mail:





*
This message, together with any attachments, is intended only
for the use of the individual or entity to which it is addressed. It
may contain information that is confidential and prohibited from
disclosure.  If you are not the intended recipient, you are
hereby notified that any dissemination or copying of this
message or any attachment is strictly prohibited. If you have
received this message in error, please notify the original sender
immediately by telephone or by return e-mail and delet

RE: OFF-TOPIC: Pointers to CallableStatement docs?

2002-08-19 Thread rsequeira


Is "my_parameter" a variable or is that like a placeholder in the email for
"pwdvalid", etc?

I enabled debug logging on the driver, and I get messages that say
"parameter my_parameter not registers as output" or "not registered as
input", even when they are, and regardless of ...


Your code looks allright. Could you write a simple proc, something like the
example I detailed below. And then call it from java.

RS


   

  "Turner, John"   

  <[EMAIL PROTECTED]>To:   'Tomcat Users List'   

<[EMAIL PROTECTED]>   

  08/19/02 01:26 PMcc: 

  Please respond toSubject:  RE: OFF-TOPIC: Pointers to 
CallableStatement  
  "Tomcat Users docs?  

  List"

   

   






Thanks!  I've set up my code as you've described, but no luck.  For
example,
here is the relevant portion of the stored procedure declaring the
parameters (forgive me, I don't work with stored procedures that often, so
this may not be the right portion of the procedure to focus on):

 @userid_in varchar(8),
 @password_in varchar(8),
 @ip_addr varchar(15),
 @http_referer varchar(80),
 @http_user_agent varchar(80),
 @pwdvalid bit OUTPUT,
 @userenabled bit OUTPUT,
 @graceexceeded bit OUTPUT,
 @adminuser char(1) OUTPUT,
 @title varchar(4) OUTPUT

My code looks like this:

// prepare the stored procedure statement
try {
cstmt = sConn.prepareCall("{? = call
sp_validate_pwd(?,?,?,?,?,?,?,?,?,?)}");
} catch (SQLException sqle) {
sqle.printStackTrace();
}

// set the input parameters
try {
cstmt.setString(2, strUserID);
cstmt.setString(3, strPassword);
cstmt.setString(4, strRemoteAddress);
cstmt.setString(5, strReferURL);
cstmt.setString(6, strHTTPUserAgent);
} catch (Exception e) {
e.printStackTrace();
}

// register the output parameters for the stored procedure
try {
cstmt.registerOutParameter(1, Types.INTEGER);
cstmt.registerOutParameter(7, Types.BIT);
cstmt.registerOutParameter(8, Types.BIT);
cstmt.registerOutParameter(9, Types.BIT);
cstmt.registerOutParameter(10, Types.CHAR);
cstmt.registerOutParameter(11, Types.VARCHAR);
} catch (Exception e) {
e.printStackTrace();
}

// execute the stored procedure
try {
cstmt.execute();
} catch (SQLException sqle) {
sqle.printStackTrace();
}

// grab the results from the stored procedure call
try {
spReturnStatus = cstmt.getInt(1);
isValid = cstmt.getBoolean(7);
isEnabled = cstmt.getBoolean(8);
isExceeded = cstmt.getBoolean(9);
strAdmin = cstmt.getString(10);
strTitle = cstmt.getString(11);
} catch (SQLException sqle) {
sqle.printStackTrace();
}

cstmt = null;

I've tried different calls, putting the output parameters first (2-6) and
the inputs last (7-11), I've tried no return value, putting that return
value at the end (#11), etc. with no luck.  All of the variables in the
setString() methods are set before calling setString().  Am I at least on
the right track with the code shown above?  Or have I completely missed it?

Thanks again for replying!

John Turner


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 19, 2002 2:14 PM
To: Tomcat Users List
Subject: RE: OFF-TOPIC: Pointers to CallableStatement docs?



It's been sometime since I used JDBC and SQL Server. But here are a few
points to note:
1) Your first "?" is the return status. It should be registered as an OUT
parameter.
2) Remember to use the right JDBC type when registering the OUT parameters.
This is of utmost importance.
3) All ouput parameters should be registered before the call to the stored
proc is made.
4) cstmt.setXXX(, )
5) cstmt.getXXX()
6) If your stored procedure is returning any result set, retrieve all the

RE: OFF-TOPIC: Pointers to CallableStatement docs?

2002-08-19 Thread rsequeira


It's been sometime since I used JDBC and SQL Server. But here are a few
points to note:
1) Your first "?" is the return status. It should be registered as an OUT
parameter.
2) Remember to use the right JDBC type when registering the OUT parameters.
This is of utmost importance.
3) All ouput parameters should be registered before the call to the stored
proc is made.
4) cstmt.setXXX(, )
5) cstmt.getXXX()
6) If your stored procedure is returning any result set, retrieve all the
results before retrieving the OUT parameters. To make sure all the results
have been retrieved, use the getMoreResults method.

An example:
--
TestAdd proc adds two numbers.
It returns a status of 1 is the any one of the input parameters is less
than 0.
It returns a status of 0 if the add worked and it also returns a result of
the addition.

Stored proc:
-
create procedure TestAdd @param1 int, @param2 int, @param3 int output as
begin
  if @param1 < 0 and @param2 <0
  begin
return 1
  end
  else begin
select @param3 = @param1 + @param2
return 0
  end
end

Java code:

CallableStatement cstmttmt = con.prepareCall("{? = call TestAdd(?, ?, ?)}"
);
cstmt.registerOutParameter(1, Types.INTEGER);
cstmt.setInt(2, 10);
cstmt.setInt(3, 20);
cstmt.registerOutParameter(4, Types.INTEGER);
cstmt.execute();
System.out.println("status : " + cstmt.getInt(1));
System.out.println("value after adding 10 and 20 : " + cstmt.getInt(4));


Hope this helps.
RS



   

  "Turner, John"   

  <[EMAIL PROTECTED]>To:   'Tomcat Users List'   

<[EMAIL PROTECTED]>   

  08/19/02 11:53 AMcc: 

  Please respond toSubject:  RE: OFF-TOPIC: Pointers to 
CallableStatement  
  "Tomcat Users docs?  

  List"

   

   






Right.  My setup looks like this:

cstmt = sConn.prepareCall("{? = call
sp_validate_pwd(?,?,?,?,?,?,?,?,?,?)}");

Basically, there are 5 inputs (username, password, IP address, browser
type,
and referer) and I'm supposed to get a return status back (bad or good) and
5 outputs: 3 booleans and 2 strings (isValid, isExceeded, isEnabled, name,
and title).

I've tried everything I can think of...only having 6 question marks, having
all 11, only using 5, etc. to no avail.  I enabled debug logging on the
driver, and I get messages that say "parameter my_parameter not registers
as
output" or "not registered as input", even when they are, and regardless of
how I use the set*() and registerOutParameter() methods.  Very confusing.

I'd love to find a complete stored procedures How-To somewhere that
addresses complex stored procedures instead of the basic tutorials that do
simple math or just insert a row.

Thanks for the reply.

John

-Original Message-
From: Wagoner, Mark [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 19, 2002 12:31 PM
To: 'Tomcat Users List'
Subject: RE: OFF-TOPIC: Pointers to CallableStatement docs?


When you say it returns a status, do you mean it is a function (I work
primarily with Oracle, so if this does not apply to MS I apologize)?

If so, you need to make the call something like:

CallableStatement stmt = conn.prepareCall("{call ? = proc(?,?, ... )}");


-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 19, 2002 12:18 PM
To: '[EMAIL PROTECTED]'
Subject: OFF-TOPIC: Pointers to CallableStatement docs?



Hello -

I think there is a java-user list, or even a jdbc-interest list, but I'd
rather not subscribe when all I need is one quick pointer, so I am hoping
someone on this list can get me started.

I'm having quite a bit of difficulty working with stored procedures in my
classes and servlets.  The database is MS SQL Server 2000.  I've read every
single doc I can find, both at Sun, through Google, and even through the
driver vendor's documentation.  I even scammed some code from a JDBC 3.0
book (the only one I could find) at Border's, with still no luck.

Can anyone point me to a resource that explains how to setup stored
procedures in a CallableStatement correctly?  I understand about
registering
the output parameters and setting the input types, and I understand that
the
parameters in a CallableStatement are num

Re: Calling a servlet from a jsps page

2002-08-16 Thread rsequeira


Then the following line

in a jsp file (say file1.jsp) that is located under "rajapp" and accessed
using http://my-local-host-name/rajapp/file1.jsp should work.

If you can't get this to work, include the jsp file here and the log output
as well. What exception/error do you see on the browser?

RS




   

  "Raju Lokhande"  

  <[EMAIL PROTECTED]To:   
<[EMAIL PROTECTED]>  
  lth.net> cc: 

   Subject:  Re: Calling a servlet from a 
jsps page
  08/16/02 02:52 PM

  Please respond to

  "Tomcat Users

  List"

   

   





Yes, I can run my servlet in IE as
http://my-local-host-name/rajapp/servlet/mypkg.CurrentTime and the browser
shows the expected output which is current time.
Raju Lokhande


>>> [EMAIL PROTECTED] 08/16/02 02:55PM >>>

Oops! I missed the word "classes". Sorry about that. But heck, you got it
right.
Can you run your servlet as
http://my-local-host-name/rajapp/servlet/mypkg.CurrentTime
What error do you get on the browser? Check you logs file for
exceptions/errors.

RS




  "Raju Lokhande"

  <[EMAIL PROTECTED]To:
<[EMAIL PROTECTED]>
  lth.net> cc:

   Subject:  Re: Calling a
servlet from a jsps page
  08/16/02 01:43 PM

  Please respond to

  "Tomcat Users

  List"







My class is under c:
\jakarta-tomcat\4.0.3\webapps\rajapp\WEB-INF\classes\mypkg
I tried both of your suggestions

or

Any idea what is happening here?
Thanks
Raju Lokhande

>>> [EMAIL PROTECTED] 08/16/02 02:11PM >>>

Assuming "rajapp" is your context, your  statement will be:

or


Ofcourse make sure your class is under
"/rajapp/WEB-INF/mypkg"

RS





  "Raju Lokhande"

  <[EMAIL PROTECTED]To:
<[EMAIL PROTECTED]>
  lth.net> cc:

   Subject:  Calling a servlet
from a jsps page
  08/16/02 01:05 PM

  Please respond to

  "Tomcat Users

  List"







Greetings everyone,
 I have a .jsps page as follows:
===Begin==

Times!

The current time here is:




=End=
My application web.xml entries are as follows
===Begin==

 CurrentTime 
 mypkg.CurrentTime 



 CurrentTime 
 /CurrentTime 

==End
I invoke this page as http://my-local-host-name/rajapp/times.jsps
I get no output from the servlet.
The Servlet class compiled fine. I followed the advice from my searches in
the archives for this list server.
Any idea about what is wrong here. I am using jakarta-tomcat-4.0.3 on
Win2000.
Thanks in advance
Raju Lokhande




*
This message, together with any attachments, is intended only
for the use of the individual or entity to which it is addressed. It
may contain information that is confidential and prohibited from
disclosure.  If you are not the intended recipient, you are
hereby notified that any dissemination or copying of this
message or any attachment is strictly prohibited. If you have
received this message in error, please notify the original sender
immediately by telephone or by return e-mail and delete this
message along with any attachments, from your computer.
Thank you.
*


--
To unsubscribe, e-mail:   <
mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <
mailto:[EMAIL PROTECTED]>







--
To unsubscribe, e-mail:   <
mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <
mailto:[EMAIL PROTECTED]>




*
This message, together with any attachments, is intended only
for the use of the individual or entity to

Re: Calling a servlet from a jsps page

2002-08-16 Thread rsequeira


Oops! I missed the word "classes". Sorry about that. But heck, you got it
right.
Can you run your servlet as
http://my-local-host-name/rajapp/servlet/mypkg.CurrentTime
What error do you get on the browser? Check you logs file for
exceptions/errors.

RS



   

  "Raju Lokhande"  

  <[EMAIL PROTECTED]To:   
<[EMAIL PROTECTED]>  
  lth.net> cc: 

   Subject:  Re: Calling a servlet from a 
jsps page
  08/16/02 01:43 PM

  Please respond to

  "Tomcat Users

  List"

   

   





My class is under c:
\jakarta-tomcat\4.0.3\webapps\rajapp\WEB-INF\classes\mypkg
I tried both of your suggestions

or

Any idea what is happening here?
Thanks
Raju Lokhande

>>> [EMAIL PROTECTED] 08/16/02 02:11PM >>>

Assuming "rajapp" is your context, your  statement will be:

or


Ofcourse make sure your class is under
"/rajapp/WEB-INF/mypkg"

RS





  "Raju Lokhande"

  <[EMAIL PROTECTED]To:
<[EMAIL PROTECTED]>
  lth.net> cc:

   Subject:  Calling a servlet
from a jsps page
  08/16/02 01:05 PM

  Please respond to

  "Tomcat Users

  List"







Greetings everyone,
 I have a .jsps page as follows:
===Begin==

Times!

The current time here is:




=End=
My application web.xml entries are as follows
===Begin==

 CurrentTime 
 mypkg.CurrentTime 



 CurrentTime 
 /CurrentTime 

==End
I invoke this page as http://my-local-host-name/rajapp/times.jsps
I get no output from the servlet.
The Servlet class compiled fine. I followed the advice from my searches in
the archives for this list server.
Any idea about what is wrong here. I am using jakarta-tomcat-4.0.3 on
Win2000.
Thanks in advance
Raju Lokhande




*
This message, together with any attachments, is intended only
for the use of the individual or entity to which it is addressed. It
may contain information that is confidential and prohibited from
disclosure.  If you are not the intended recipient, you are
hereby notified that any dissemination or copying of this
message or any attachment is strictly prohibited. If you have
received this message in error, please notify the original sender
immediately by telephone or by return e-mail and delete this
message along with any attachments, from your computer.
Thank you.
*


--
To unsubscribe, e-mail:   <
mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <
mailto:[EMAIL PROTECTED]>







--
To unsubscribe, e-mail:   <
mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <
mailto:[EMAIL PROTECTED]>




*
This message, together with any attachments, is intended only
for the use of the individual or entity to which it is addressed. It
may contain information that is confidential and prohibited from
disclosure.  If you are not the intended recipient, you are
hereby notified that any dissemination or copying of this
message or any attachment is strictly prohibited. If you have
received this message in error, please notify the original sender
immediately by telephone or by return e-mail and delete this
message along with any attachments, from your computer.
Thank you.
*


--
To unsubscribe, e-mail:   <
mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <
mailto:[EMAIL PROTECTED]>







--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Calling a servlet from a jsps page

2002-08-16 Thread rsequeira


Assuming "rajapp" is your context, your  statement will be:

or


Ofcourse make sure your class is under
"/rajapp/WEB-INF/mypkg"

RS




   

  "Raju Lokhande"  

  <[EMAIL PROTECTED]To:   
<[EMAIL PROTECTED]>  
  lth.net> cc: 

   Subject:  Calling a servlet from a jsps 
page
  08/16/02 01:05 PM

  Please respond to

  "Tomcat Users

  List"

   

   





Greetings everyone,
 I have a .jsps page as follows:
===Begin==

Times!

The current time here is:




=End=
My application web.xml entries are as follows
===Begin==

 CurrentTime 
 mypkg.CurrentTime 



 CurrentTime 
 /CurrentTime 

==End
I invoke this page as http://my-local-host-name/rajapp/times.jsps
I get no output from the servlet.
The Servlet class compiled fine. I followed the advice from my searches in
the archives for this list server.
Any idea about what is wrong here. I am using jakarta-tomcat-4.0.3 on
Win2000.
Thanks in advance
Raju Lokhande




*
This message, together with any attachments, is intended only
for the use of the individual or entity to which it is addressed. It
may contain information that is confidential and prohibited from
disclosure.  If you are not the intended recipient, you are
hereby notified that any dissemination or copying of this
message or any attachment is strictly prohibited. If you have
received this message in error, please notify the original sender
immediately by telephone or by return e-mail and delete this
message along with any attachments, from your computer.
Thank you.
*


--
To unsubscribe, e-mail:   <
mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <
mailto:[EMAIL PROTECTED]>







--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: .shtml with 4.0.4

2002-08-13 Thread rsequeira


You could create another Context which points to the Apache directory. But
IMHO, it would be advisable to put all your files in one directory.

RS



   

  MadBit   

   <[EMAIL PROTECTED]>   

   cc: 

  08/13/02 02:23 PMSubject:  Re: .shtml with 4.0.4 

  Please respond to

  "Tomcat Users

  List"

   

   






Thanks for you efforts,
adding the context entry now works in the tomcat application
directory, but
I use Apache like web server, and the pages are allocated on the
/webprg/apache/htdocs directory, and in this case not works yet.

I have a lot of old .shtml pages that would need to use (they were
running on JRun 2.x), and there must be some method to parse the .jsp or
.shtml pages located on the apache.

Thanks,

[EMAIL PROTECTED] wrote:

>Let's start all over.
>First make a few assumptions:
>Your web-application directory is: /webprg/tomcat/webapps/ROOT/
>Therefore your classes will go under:
>/webprg/tomcat/webapps/ROOT/WEB-INF/classes/test/HelloWorld.class
>(note: WEB-INF needs to be in upper-case)
>1) Create a file hello.jsp (that has the ="test.HelloWorld" flush="true"/> statement).
>Save this hello.jsp file under "/webprg/tomcat/webapps/ROOT/"
>2) Your DocumentRoot in http.conf should be:
>   DocumentRoot /webprg/tomcat/webapp/ROOT/
>3) Your Context entry in server.xml should be:
>
>4) Stop and restart Tomcat
>5) Acccess hello.jsp using the URL:
>  http://localhost/hello.jsp
>
>RS
>
>
>
>

>  MadBit

>.com>
<[EMAIL PROTECTED]>
>   cc:

>  08/13/02 04:56 AMSubject:  Re: .shtml with
4.0.4
>  Please respond to

>  "Tomcat Users

>  List"

>

>

>
>
>
>
> Well, I have an application on the apache directory:
>
>/webprg/apache/htdocs/test
>
>An example .shtml would be:
>
>
>Testing shtml
>
>Testing:
>
>
>
>
>
>I transform to .jsps (or .jhtml i saw on a previus msg on this list)
>
>
>Testing shtml
>
>Testing:
>
>
>
>
>
>My tomcat 4.0.4 (i tested on 4.1.8 beta too) is on
>/webprg/tomcat/
>
>y put the servlets on
>/webprg/tomcat/webapp/ROOT/Web-inf/classes/test/HelloWorld.class
>
>If I call from the browser "http://localhost/servlet/test.HelloWorld";
>the servlet works fine. If I call the .shtml,
>"http://localhost/test/hello.shtml";, the static part appears and the
>browser remains in awaintg data state.
>
>
>This are the changes on tomcat's web.xml I made:
>
>- Enabled de ssi servlet.
>- Enabled .shtml mapping to ssi servlet
>
>On server.xml I'm using the  ajp 1.3 connector on 8009.
>
>port="8009" minProcessors="5" maxProcessors="75"
>acceptCount="10" debug="0"/>
>
>
>
>This is the workers.properties:
>
>workers.tomcat_home=/webprg/tomcat
>workers.java_home=/java/jdk1.4.0_01
>ps=/
>worker.list=ajp12, ajp13
>
>worker.ajp13.port=8009
>worker.ajp13.host=localhost
>worker.ajp13.type=ajp13
>
>---
>Changes made on httpd.conf:
>DocumentRoot C:/webprg/Apache/htdocs
>
>AddType text/html .shtml
>AddHandler server-parsed .shtml
>
>LoadModule jk_module modules/mod_jk.dll
>Addmodule mod_jk.c
>
>JkWorkersFile /webprg/tomcat/conf/jk/workers.properties
>JkLogFile /webprg/apache/logs/mod_jk.log
>JkLogLevel info
>
>
>JkMount /*.jsp ajp13
>JkMount /servlet/* ajp13
>JkMount /*.shtml ajp13
>
> On the logs seems to do nothing but on tomcat-apache server log:
>
>2002-08-13 11:45:52 [org.apache.catalina.connector.warp.WarpConnector]
>Error accepting requests
>java.net.SocketException: socket closed
> at java.net.PlainSocketImpl.socketAccept(Native Method)
> at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:343)
> at java.net.ServerSocket.implAccept(ServerSocket.java:438)
> at java.net.ServerSocket.accept(ServerSocket.java:409)
> at
>org.apache.catalina.connector.warp.WarpConnector.run(WarpConnector.java:590)
>
> at java.lang.Thread.run(Thread.java:536)
>
>On the tomcat's localhost_log:
>
>2002-08-13 11:46:24 StandardHost[localhost]: 

Re: tomcat4.0.4 and Servlet Specification 2.3 and JSp1.2

2002-08-13 Thread rsequeira


I don't think the flush= false is supported as yet.

RS



   

  Ashish Kulkarni  

   <[EMAIL PROTECTED]>   

   cc: 

  08/13/02 12:25 PMSubject:  tomcat4.0.4 and Servlet 
Specification 2.3 and 
  Please respond to JSp1.2 

  "Tomcat Users

  List"

   

   





Does tomcat4.0.4 follow servlet specifications 2.3 and
jsp 1.2 if yes then can some one explain the following
as per these specification
 
 <% if (someCondition) { %>
   
 <% } %>

 the above code will give error, but if u make the
 flush value="false", it must work, and not give
 error.???
 but when i tried it in jsp it gives my illleagal
 state
 error, saying cannot forward after sumbitting
 response.
 Ashish



__
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com

--
To unsubscribe, e-mail:   <
mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <
mailto:[EMAIL PROTECTED]>







--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: .shtml with 4.0.4

2002-08-13 Thread rsequeira


Let's start all over.
First make a few assumptions:
Your web-application directory is: /webprg/tomcat/webapps/ROOT/
Therefore your classes will go under:
/webprg/tomcat/webapps/ROOT/WEB-INF/classes/test/HelloWorld.class
(note: WEB-INF needs to be in upper-case)
1) Create a file hello.jsp (that has the  statement).
Save this hello.jsp file under "/webprg/tomcat/webapps/ROOT/"
2) Your DocumentRoot in http.conf should be:
   DocumentRoot /webprg/tomcat/webapp/ROOT/
3) Your Context entry in server.xml should be:

4) Stop and restart Tomcat
5) Acccess hello.jsp using the URL:
  http://localhost/hello.jsp

RS



   

  MadBit   

   <[EMAIL PROTECTED]>   

   cc: 

  08/13/02 04:56 AMSubject:  Re: .shtml with 4.0.4 

  Please respond to

  "Tomcat Users

  List"

   

   





 Well, I have an application on the apache directory:

/webprg/apache/htdocs/test

An example .shtml would be:


Testing shtml

Testing:





I transform to .jsps (or .jhtml i saw on a previus msg on this list)


Testing shtml

Testing:





My tomcat 4.0.4 (i tested on 4.1.8 beta too) is on
/webprg/tomcat/

y put the servlets on
/webprg/tomcat/webapp/ROOT/Web-inf/classes/test/HelloWorld.class

If I call from the browser "http://localhost/servlet/test.HelloWorld";
the servlet works fine. If I call the .shtml,
"http://localhost/test/hello.shtml";, the static part appears and the
browser remains in awaintg data state.


This are the changes on tomcat's web.xml I made:

- Enabled de ssi servlet.
- Enabled .shtml mapping to ssi servlet

On server.xml I'm using the  ajp 1.3 connector on 8009.





This is the workers.properties:

workers.tomcat_home=/webprg/tomcat
workers.java_home=/java/jdk1.4.0_01
ps=/
worker.list=ajp12, ajp13

worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13

---
Changes made on httpd.conf:
DocumentRoot C:/webprg/Apache/htdocs

AddType text/html .shtml
AddHandler server-parsed .shtml

LoadModule jk_module modules/mod_jk.dll
Addmodule mod_jk.c

JkWorkersFile /webprg/tomcat/conf/jk/workers.properties
JkLogFile /webprg/apache/logs/mod_jk.log
JkLogLevel info


JkMount /*.jsp ajp13
JkMount /servlet/* ajp13
JkMount /*.shtml ajp13

 On the logs seems to do nothing but on tomcat-apache server log:

2002-08-13 11:45:52 [org.apache.catalina.connector.warp.WarpConnector]
Error accepting requests
java.net.SocketException: socket closed
 at java.net.PlainSocketImpl.socketAccept(Native Method)
 at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:343)
 at java.net.ServerSocket.implAccept(ServerSocket.java:438)
 at java.net.ServerSocket.accept(ServerSocket.java:409)
 at
org.apache.catalina.connector.warp.WarpConnector.run(WarpConnector.java:590)

 at java.lang.Thread.run(Thread.java:536)

On the tomcat's localhost_log:

2002-08-13 11:46:24 StandardHost[localhost]: Installing web application
at context path /webdav from URL file:C:\webprg\tomcat\webapps\webdav
2002-08-13 11:46:24 WebappLoader[/webdav]: Deploying class repositories
to work directory C:\webprg\tomcat\work\Standalone\localhost\webdav
2002-08-13 11:46:24 StandardManager[/webdav]: Seeding random number
generator class java.security.SecureRandom
2002-08-13 11:46:24 StandardManager[/webdav]: Seeding of random number
generator has been completed
2002-08-13 11:46:24 ContextConfig[/webdav]: Added certificates ->
request attribute Valve
2002-08-13 11:46:24 StandardWrapper[/webdav:default]: Loading container
servlet default
2002-08-13 11:46:24 default: init
2002-08-13 11:46:24 StandardWrapper[/webdav:invoker]: Loading container
servlet invoker
2002-08-13 11:46:24 invoker: init
2002-08-13 11:46:24 jsp: init
2002-08-13 11:46:24 StandardWrapper[/webdav:ssi]: Loading container
servlet ssi
2002-08-13 11:46:24 ssi: init

No messages on mod_jk.log.


[EMAIL PROTECTED] escribió::

 >Well can't pin-point the problem since you haven't provided any clues.
What
 >do the DocumentRoot, Context, and JkMount statements say? How about
 >displaying the directory structure of where the jsps and shtml files are
 >located.
 >How about dis

Re: .shtml with 4.0.4

2002-08-12 Thread rsequeira


Well can't pin-point the problem since you haven't provided any clues. What
do the DocumentRoot, Context, and JkMount statements say? How about
displaying the directory structure of where the jsps and shtml files are
located.
How about displaying the appropriate portions of the log in here. Might
help in quickly resolving your problem.

RS



   

  MadBit   

   <[EMAIL PROTECTED]>   

   cc: 

  08/12/02 05:07 PMSubject:  Re: .shtml with 4.0.4 

  Please respond to

  "Tomcat Users

  List"

   

   






 Any changes to httpd.conf or web.xml files? I have a 404 from
tomcat. The pages are located on apache.

[EMAIL PROTECTED] escribió::

 >First the  isn't supported by Tomcat. It
isn't a
 >standard tag i.e. it isn't defined in the servlet specs. You should use
 > instead. Convert  the .shtml files (be careful if you
have
 >SSI includes or CGI processing in the shtml files) that contain the
 > tags to .jsps.
 >And then replace the
 >
 >with
 >
 >
 >
 >RS
 >
 >
 >
 >
 >

 >  MadBit

 >.com>cc:

 >   Subject:  .shtml with
4.0.4
 >  08/12/02 04:45 AM

 >  Please respond to

 >  "Tomcat Users

 >  List"

 >

 >

 >
 >
 >
 >
 >
 >Hello.
 >
 >I'm using Tomcat 4.0.4 with Apache 1.3.26 on Windows 2000.
 >
 >I want to use .shtml pages. In tomcat I enabled de SSI servlet and
 >mapping on web.xml,
 >and on Apache I enabled the AJP connector and enabled .shtml processing:
 >
 >
 >
 >>LoadModule jk_module modules/mod_jk.dll
 >>Addmodule mod_jk.c
 >>
 >>JkWorkersFile /webprg/tomcat/conf/jk/workers.properties
 >>JkLogFile /webprg/apache/logs/mod_jk.log
 >>JkLogLevel info
 >>
 >>
 >
 >
 >
 >AddType text/html .shtml
 >AddHandler server-parsed .shtml
 >
 >...
 >JkMount /*.jsp ajp13
 >JkMount /servlet/* ajp13
 >JkMOunt /*.shtml ajp13
 >
 >On a .shtml page I have a 
 >call. The called Class it's working fine calling directely via
 >'localhost/servlet/classpath.Class' URL but with the .shtml the Class
 >seems not to be called and the browser never end to load the page,
 >always it's on awaiting data state.
 >
 >Anyone can help me?
 >
 >   Thanks
 >
 >
 >Rogelio Herranz
 >[EMAIL PROTECTED]
 >
 >
 >
 >--
 >To unsubscribe, e-mail:   <
 >mailto:[EMAIL PROTECTED]>
 >For additional commands, e-mail: <
 >mailto:[EMAIL PROTECTED]>
 >
 >
 >
 >
 >
 >
 >
 >--
 >To unsubscribe, e-mail:

 >For additional commands, e-mail:

 >
 >
 >
 >






--
To unsubscribe, e-mail:   <
mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <
mailto:[EMAIL PROTECTED]>







--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: automatically serve index.jsp

2002-08-12 Thread rsequeira


Add "index.jsp" in the "DirectoryIndex" statement of Apache. Also check
your JkMount statements. Apache needs to forward all jsps to Tomcat.

RS



   
 
  "Michael Remijan"
 
  <[EMAIL PROTECTED]>  
 
cc:
 
  08/12/02 02:03 PM Subject:  RE: automatically serve 
index.jsp 
  Please respond to
 
  "Tomcat Users
 
  List"
 
   
 
   
 




...

Nope, that does work either.  I've been using tomcat for a while so I've
already tried the most of those kinds of things.

It looks to me like the mappings in the workers2.properties file is looked
at first.  If a matching is found, it is forwarded to tomcat.  If not, it
goes to apache.  Since I have directory browsing for that directory off and
no index.html I get apache's standard error message for not being able to
see that file.  What I want apache to do is translate
http://localhost/diary/ into http://localhost/diary/index.jsp.  can I do
this with a redirect?




-Original Message-
From: Subir Sengupta [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 12, 2002 1:24 PM
To: 'Tomcat Users List'
Subject: RE: automatically serve index.jsp


Put this in your web.xml

  
index.jsp
  

Subir

-Original Message-
From: Michael Remijan [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 12, 2002 11:02 AM
To: Tomcat Users List
Subject: RE: automatically serve index.jsp


...

having this snippet workers2.properties also works

- workers2.properties (snippet) ---
 [uri:/diary/]
 info=Map the whole webapp
---




-Original Message-
From: Steve Prior [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 12, 2002 12:53 PM
To: Tomcat Users List
Subject: Re: automatically serve index.jsp


You're a little ahead of me in doing this, but did you try adding
index.jsp to a DirectoryIndex directive in Apache?

This was very obious to do in Apache 1.3, not sure as obvious in 2.0.

Steve

Michael Remijan wrote:
> hi all,
>
> I'm currently working on Apache 2.0.39 <-> tomcat-4.1.8 with mod_jk2 and
jdk1.4.0_01.  I've posted previously about apache giving a directory
listing
instead of returning index.jsp.  The only way I've been able to get around
this problem is editing the workers2.properties file to include a mapping
to
the whole webapp...
>
>
> - workers2.properties (snippet)
---
> [uri:/diary/*]
> info=Map the whole webapp
>
---
>
>
>
> I have an alias and directory in httpd.conf set up as follows
>
> - httpd.conf (snippet)

> ##
> ## diary webapp
> ##
> Alias /diary "C:/apps/Tomcat/jakarta-tomcat-4.1.8-LE-jdk14/webapps/diary"
>
> 
> Options FollowSymLinks MultiViews IncludesNoExec
> AddOutputFilter Includes html htm gif jpeg jpg
> AllowOverride None
> Order allow,deny
> Allow from all
> 
>


>
>
> The question I have is, because of mapping the whole webapp in the
workers2.properties file, will that basically override apache serving
static
content?  I assuming it would  but I don't have the time to go digging
around in the connector's source.
>
>
> thanks,
> 
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:



--
To unsubscribe, e-mail:

For additional commands, e-mail:





--
To unsubscribe, e-mail:

For additional commands, e-mail:





--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   <
mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <
mailto:[EMAIL PROTECTED]>




--
To unsubscribe, e-mail:   <
mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <
mailto:[EMAIL PROTECTED]>







--
To unsubscribe, e-mail:   
For

Re: .shtml with 4.0.4

2002-08-12 Thread rsequeira


First the  isn't supported by Tomcat. It isn't a
standard tag i.e. it isn't defined in the servlet specs. You should use
 instead. Convert  the .shtml files (be careful if you have
SSI includes or CGI processing in the shtml files) that contain the
 tags to .jsps.
And then replace the

with



RS




   

  MadBit   

  cc: 

   Subject:  .shtml with 4.0.4 

  08/12/02 04:45 AM

  Please respond to

  "Tomcat Users

  List"

   

   






Hello.

I'm using Tomcat 4.0.4 with Apache 1.3.26 on Windows 2000.

I want to use .shtml pages. In tomcat I enabled de SSI servlet and
mapping on web.xml,
and on Apache I enabled the AJP connector and enabled .shtml processing:

>
> LoadModule jk_module modules/mod_jk.dll
> Addmodule mod_jk.c
>
> JkWorkersFile /webprg/tomcat/conf/jk/workers.properties
> JkLogFile /webprg/apache/logs/mod_jk.log
> JkLogLevel info



AddType text/html .shtml
AddHandler server-parsed .shtml

...
JkMount /*.jsp ajp13
JkMount /servlet/* ajp13
JkMOunt /*.shtml ajp13

On a .shtml page I have a 
call. The called Class it's working fine calling directely via
'localhost/servlet/classpath.Class' URL but with the .shtml the Class
seems not to be called and the browser never end to load the page,
always it's on awaiting data state.

Anyone can help me?

   Thanks


Rogelio Herranz
[EMAIL PROTECTED]



--
To unsubscribe, e-mail:   <
mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <
mailto:[EMAIL PROTECTED]>







--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Apache-tomcat integration

2002-08-03 Thread rsequeira


AJP is configured in   . But you could
move this Connector element to Tomcat-Apache. Also remember to disable the
Warp connector under Tomcat-Apache. Have you configured Apache to send
requests containing examples to Tomcat? You might need something like this:
JkMount /examples/*.jsp ajp13
JkMount /examples/servlet/* ajp13

RS



   

  Thomas Cherry

  <[EMAIL PROTECTED]>To:   "Tomcat Users List"   

<[EMAIL PROTECTED]>   

  08/03/02 08:55 AMcc: 

  Please respond toSubject:  Apache-tomcat integration 

  "Tomcat Users

  List"

   

   





I am almost done configuring my site, but I have just a few more
question (for now).  I am using ajp13 to connect tomcat 4 with apache
1.3.  Apache is running on port 81 and I want to know if have to do
anything different when configuring server.xml  as a result of my web
site running on the non-standard port.

Also, in my   tag block, there is no
mention of ajp.  Is this ok?

Last, here is a few lines from my apache log:
[Sat Aug  3 09:21:36 2002] [notice] Apache-AdvancedExtranetServer/1.3.22
(Mandrake Linux/1.1mdk) mod_jk mod_perl/1.26 configured --
  resuming normal operations
[Sat Aug  3 09:21:36 2002] [notice] Accept mutex: sysvsem (Default:
sysvsem)
[Sat Aug  3 09:21:40 2002] [error] [client 192.168.1.1] File does not
exist: /var/www/html/examples/jsp/dates/date.jsp

I assume that this means that apache is loading mod_jk, but why can it
not find the examples directory?


--
To unsubscribe, e-mail:   <
mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <
mailto:[EMAIL PROTECTED]>







--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Tomcat in a multiuser webhost environment

2002-08-03 Thread rsequeira


Answers are intermixed.



   

  Hans Kaiser  

  <[EMAIL PROTECTED]> To:   "Tomcat Users List"   

<[EMAIL PROTECTED]>   

  08/03/02 09:52 AMcc: 

  Please respond toSubject:  Re: Tomcat in a multiuser 
webhost environment 
  "Tomcat Users

  List"

   

   





Hi,

nobody knows how to solve it, or is it too simple for an answer?

best regards,
Hans

> Hello all!
>
> Is this list a closed one? I tried to post a message to the list, without
> being subscribed, but that failed (I think so, I couldn´t see the mail on
> the
> archives)
>
> I will go on directly to my problems:
> I am running an Apache 1.3.x and I have all my virtual hosts under
> /home/web/host[anyhostnaming]
> Now I need a servlet and a JSP Engine, therefore I want to use the Tomcat
> 4.x. But my users should be able to define their own contexts for the
> tomcat.
> So my questions are:
> - how to configure the apache and tomcat to forward all JSP and servlet
> request from apache to tomcat.
You could use mod_webapp or mod_jk. mod_jk gives you more control over what
Apache forwards to Tomcat. mod_webapp will forward everything under a
particular directory to Tomcat. With mod_jk you could direct Apache to
forward requests with certain url patterns to Tomcat. Generally "/servlet/"
and "*.jsp".

> - how should I setup tomcat to make it possible, that only a defined list
> of
> users are able to use jsp/servlet?
If you are using Apache as the webserver, then you could do this easily by
telling Apache to forward only certain requests to Tomcat. Using mod_jk as
a connector would help in this case.

> - how to setup tomcat or must I setup the apache (if forwarding the
> servlet/jsp request from apache to tomcat), that users are able to define
> their own
> contexts? Is it a security problem? I thought about something like a
> distributed web.xml in a defined location in the users home dirs.
Allowing users to create their own contexts, which amounts to modifying the
server.xml file, isn't a good idea. You wouldn't want user stepping on each
other's toes as well as violating the security of your system. I'd suggest
you seek alternate methods.
One way is to use the Listener class UserConfig. Assuming that every user
has a home directory, Tomcat will be able to map a request starting with a
"~" and a username to a directory, usually "public_html", under the user's
home directory. See
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/host.html for
further details.
I think with Tomcat 4.1.7, you can seperate the Context entries from the
main server.xml file. I haven't used Tomcat 4.1.7. But I think you could
define Contexts in some other file. And then add that file to the webapps
directory. This way you could seperate Contexts for each user which
probably gives you finer control. User's could define their own Contexts
and then forward them to you to add the files to the webapps directory.

> - Is it possible to limit the maximum used resources (load, memory )
> of
> tomcat?  Or even better per user basis?
I don't think you could limit the amount of resources on a per user basis.
At the serer level, I guess you could specify the stack and heap size when
Tomcat starts.

>
> many thanks,
> and best regards,
> Hans
>
> --
> GMX - Die Kommunikationsplattform im Internet.
> http://www.gmx.net
>
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>

--
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net


--
To unsubscribe, e-mail:   <
mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <
mailto:[EMAIL PROTECTED]>







--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: how to deny directory listing

2002-08-03 Thread rsequeira


There are various ways to deny directory listing.

Valid for both Tomcat 3.x and Tomcat 4.x.x:
You could add a welcome file to your web.xml. Something like this:

index.html
  
See conf/web.xml for further information.

Valid for Tomcat 3.x only:
Look for the "StaticInterceptor" defn. in your server.xml. Set the supress
property to "true" when no welcome file is present.

Valid for Tomcat 4.x.x+:
Edit the init-param "listings" for the default servlet. Change the param
value to "false".

RS




   

  "Serdar BOZDAÐ"  

  
  thome.net>   cc: 

   Subject:  how to deny directory listing 

  08/03/02 06:24 AM

  Please respond to

  "Tomcat Users

  List"

   

   





hi,
I want to deny users to see the content of a folder under webapps\ROOT.

What should I do?

Thanks,

Serdar






--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: adding a virtual directory

2002-08-02 Thread rsequeira


You could define a servlet that takes care of this for you. And add that
mapping to the $CATALINA_HOME/conf/web.xml file. The
org.apache.jasper.servlet.JspServlet does something like this. It looks for
a *.jsp in the URL. See $CATALINA_HOME/conf/web.xml and source code for
org.apache.jasper.servlet.JspServlet for more details

RS




   

  "Rutledge, Aaron"

   <[EMAIL PROTECTED]>   

   cc: 

  08/02/02 05:04 PMSubject:  RE: adding a virtual 
directory
  Please respond to

  "Tomcat Users

  List"

   

   





The goal is to get that mapped drive into the context of my web-app.
Regardless of wether the folder is on or off the server--how do I map a
virtual folder from web.xml.  Is it possible?  I want everything with a
certain URL pattern to request content from a folder that is not in the
usual place.  Thanks!  Aaron


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 02, 2002 3:55 PM
To: Tomcat Users List
Subject: Re: adding a virtual directory



Assuming you are using Windows OS, you could map a drive on the source
machine pointing to the shared destination directory. Ofcourse you could
run into a few problems if  "my_ap" is the Context and "my_dir" isn't
under
"my_ap".

RS





  "Rutledge, Aaron"

  
<[EMAIL PROTECTED]>
   cc:

  08/02/02 04:49 PMSubject:  adding a
virtual directory
  Please respond to

  "Tomcat Users

  List"









I'm sorry for this very basic question, but I can't find an answer
anywhere.

Within my web application I would like to map everything requested from
one directory (such as http://my.com/my_ap/my_dir) to another directory
located on another server (mapped like
\\Server_name\directory\my_static_content).  Can I do this from my
application's web.xml or only by specifying a virtual directory in
server.xml?  I would rather keep everything self-contained so that I can
deploy it on other servers without modifying the server.xml on each
machine deployed.  Surely there is a way to do this?  Any help would be
greatly appreciated! Regards, Aaron



--
To unsubscribe, e-mail:   <
mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <
mailto:[EMAIL PROTECTED]>







--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:   <
mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <
mailto:[EMAIL PROTECTED]>







--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: mod_webapp or perhaps apache question

2002-08-02 Thread rsequeira


Maybe it's just me or maybe it's Friday. But I'm sorry, I'm a little
confused. What is "_"? Is that some directory you defined or is that
something you just put in your email. "_" generally is used when you define
a Root context and wish to access your site as http://domain-name/
Let's try once again. Since "webmail" is a php application, it will be
handled by Apache. You would create an Alias for "webmail" if it isn't
under your DocumentRoot. And you have jsps and servlets under "qvdintra"
which will go to Tomcat as directed by your WebAppDeploy statement. You
would access your servlets with under qvdintra by prefixing the className
(or url-mapping. see web.xml) with "servlet/"

RS





   

  Markus Bengts

  <[EMAIL PROTECTED]To:   Tomcat Users List 

  p.fi> <[EMAIL PROTECTED]>   

   cc: 

  08/02/02 04:48 PMSubject:  Re: mod_webapp or perhaps 
apache question 
  Please respond to

  "Tomcat Users

  List"

   

   





On Fri, 2 Aug 2002 [EMAIL PROTECTED] wrote:


> If "webmail" isn't a directory under "qvdintra", then I don't see a
> problem.

webmail is not under qvdintra. It is possible to use it like this with
"servlet/" or "_/" or some other extra string in the url-path to every
servlet. I just don't want to have something extra in the path to
servlets.


> On Fri, 2 Aug 2002 [EMAIL PROTECTED] wrote:
>
> >
> > What's the directory layout? Is "qvdintra" a directory?
>
> > The WebAppDeploy syntax is:
> >
> > WebAppDeploy   
>
> qvdintra is an application name which is the same as the directory
present
> under my "webapps" directory. The connection works fine. My problem is
> that the webmail should be served by apache and everything else by
tomcat.
>
> I want to have:
>
>  WebAppDeploy qvdintra defConn
/
>
> But still I need to have apache serving urls that have /webmail in the
> beginning of the path. (The webmail application is written in php.)
>
>
> > In my apache conf I have these lines for a virtual host:
> >
> > #
> > Alias /webmail /home/qvd/www/webmail
> > # Tomcat configurations
> > 
> > WebAppDeploy qvdintra   defConn /_
> > 
> >
> > I don't want to have "_/" in my servlet urls, but if I remove '_' my
> > webmail stops working. I want to send everything else to tomcat except
> for
> > urls with "/webmail" in the beginning of the path.
> >
> > Can anyone help me with this configuration? I thought the alias before
> the
> > WebAppDeploy would help, but it seems that order doesn't matter here.
> >
>
>Markus


--
To unsubscribe, e-mail:   <
mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <
mailto:[EMAIL PROTECTED]>







--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: adding a virtual directory

2002-08-02 Thread rsequeira


Assuming you are using Windows OS, you could map a drive on the source
machine pointing to the shared destination directory. Ofcourse you could
run into a few problems if  "my_ap" is the Context and "my_dir" isn't under
"my_ap".

RS



   

  "Rutledge, Aaron"

   <[EMAIL PROTECTED]>   

   cc: 

  08/02/02 04:49 PMSubject:  adding a virtual directory

  Please respond to

  "Tomcat Users

  List"

   

   





I'm sorry for this very basic question, but I can't find an answer
anywhere.

Within my web application I would like to map everything requested from
one directory (such as http://my.com/my_ap/my_dir) to another directory
located on another server (mapped like
\\Server_name\directory\my_static_content).  Can I do this from my
application's web.xml or only by specifying a virtual directory in
server.xml?  I would rather keep everything self-contained so that I can
deploy it on other servers without modifying the server.xml on each
machine deployed.  Surely there is a way to do this?  Any help would be
greatly appreciated! Regards, Aaron



--
To unsubscribe, e-mail:   <
mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <
mailto:[EMAIL PROTECTED]>







--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: mod_webapp or perhaps apache question

2002-08-02 Thread rsequeira


Is "webmail" a directory under "qvdintra"? If it is, then you are better
off using mod_jk as a connector rather than mod_webapp. With mod_jk you
have better control over the what is being passed to Tomcat. You could pass
only *.jsp and everything that has /servlet. With mod_webapp everything
under the  (in your case, qvdintra) would be passed
to Tomcat. OR you could move webmail outside the qvdintra directory, if you
still wish to stick with mod_webapp.
If "webmail" isn't a directory under "qvdintra", then I don't see a
problem.

RS


   

  Markus Bengts

  <[EMAIL PROTECTED]To:   Tomcat Users List 

  p.fi> <[EMAIL PROTECTED]>   

   cc: 

  08/02/02 04:25 PMSubject:  Re: mod_webapp or perhaps 
apache question 
  Please respond to

  "Tomcat Users

  List"

   

   





On Fri, 2 Aug 2002 [EMAIL PROTECTED] wrote:

>
> What's the directory layout? Is "qvdintra" a directory?

> The WebAppDeploy syntax is:
>
> WebAppDeploy   

qvdintra is an application name which is the same as the directory present
under my "webapps" directory. The connection works fine. My problem is
that the webmail should be served by apache and everything else by tomcat.

I want to have:

 WebAppDeploy qvdintra defConn   /

But still I need to have apache serving urls that have /webmail in the
beginning of the path. (The webmail application is written in php.)


> In my apache conf I have these lines for a virtual host:
>
> #
> Alias /webmail /home/qvd/www/webmail
> # Tomcat configurations
> 
> WebAppDeploy qvdintra   defConn /_
> 
>
> I don't want to have "_/" in my servlet urls, but if I remove '_' my
> webmail stops working. I want to send everything else to tomcat except
for
> urls with "/webmail" in the beginning of the path.
>
> Can anyone help me with this configuration? I thought the alias before
the
> WebAppDeploy would help, but it seems that order doesn't matter here.
>

   Markus



--
To unsubscribe, e-mail:   <
mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <
mailto:[EMAIL PROTECTED]>







--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: mod_webapp or perhaps apache question

2002-08-02 Thread rsequeira


What's the directory layout? Is "qvdintra" a directory? It would be a good
idea to send the directory layout. This way someone could give you an
informed answer

FYI:-
The WebAppDeploy syntax is:

WebAppDeploy   
where,
application_name - the directory present under your "webapps" directory
connection_name - the name declared in your WebAppConnection statement
url_path - the url path where the application will be deployed i.e. the URL
you enter in your browser to access this webapplication.

Alias:
Alias allows files to be stored in the filesystem other than under
DocumentRoot.

RS



   

  Markus Bengts

  <[EMAIL PROTECTED]To:   
[EMAIL PROTECTED]
  p.fi>cc: 

   Subject:  mod_webapp or perhaps apache 
question 
  08/02/02 03:20 PM

  Please respond to

  "Tomcat Users

  List"

   

   






Hello,

In my apache conf I have these lines for a virtual host:

#
Alias /webmail /home/qvd/www/webmail
# Tomcat configurations

WebAppDeploy qvdintra   defConn /_


I don't want to have "_/" in my servlet urls, but if I remove '_' my
webmail stops working. I want to send everything else to tomcat except for
urls with "/webmail" in the beginning of the path.

Can anyone help me with this configuration? I thought the alias before the
WebAppDeploy would help, but it seems that order doesn't matter here.


  Markus


--
To unsubscribe, e-mail:   <
mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <
mailto:[EMAIL PROTECTED]>







--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Does Tomcat 4.0.3 work on Windows98

2002-08-02 Thread rsequeira


Yes it does :-)

RS



   

  Steve

  <[EMAIL PROTECTED]To:   
[EMAIL PROTECTED]
  m>   cc: 

   Subject:  Does Tomcat 4.0.3 work on 
Windows98   
  08/02/02 01:53 PM

  Please respond to

  "Tomcat Users

  List"

   

   





Hi Everyone,

I have a very quick question.

Does anyone know if Tomcat 4.0.3 works on Windows 98?

Thank you!!!

__
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com

--
To unsubscribe, e-mail:   <
mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <
mailto:[EMAIL PROTECTED]>







--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: warp / jdbc problem

2002-08-01 Thread rsequeira


You haven't configured you JDBC realm in the Warp connector section. My
guess is thaat you have it configured for the Tomcat-Standalone. You will
need to replicate the configuration in the Tomcat-Apache section too.

RS



   

  "Rob King"   

  <[EMAIL PROTECTED]>   To:   
<[EMAIL PROTECTED]>  
   cc: 

  08/01/02 04:38 PMSubject:  warp / jdbc problem   

  Please respond to

  "Tomcat Users

  List"

   

   





Hi,
I'm having problems connecting to mysql from tomcat when (only when) going
via the warp connector. (with roller in this example - I'm assuming it's
not
app specific)
I point a browser to http://localhost:8080/roller/ and everything works -
db
access no problem.
I point a browser to http://localhost/roller/ and I see the webapp html no
problem, but I get the exception below whenever it tries to hit mysql.
thanks in advance for any help on this (chunks of httpd.conf/server.xml &
versions at the bottom if they can aid diagnosis)
rob.

Catalina.start: LifecycleException:  Exception opening database connection:
java.sql.SQLException
LifecycleException:  Exception opening database connection:
java.sql.SQLException
at org.apache.catalina.realm.JDBCRealm.start(JDBCRealm.java:681)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1173)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
at
org.apache.catalina.core.StandardService.start(StandardService.java:497)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2185)
at org.apache.catalina.startup.Catalina.start(Catalina.java:510)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39

)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl

.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
- Root Cause -
java.sql.SQLException
at org.apache.catalina.realm.JDBCRealm.open(JDBCRealm.java:606)
at org.apache.catalina.realm.JDBCRealm.start(JDBCRealm.java:679)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1173)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
at
org.apache.catalina.core.StandardService.start(StandardService.java:497)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2185)
at org.apache.catalina.startup.Catalina.start(Catalina.java:510)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39

)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl

.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
Stopping service Tomcat-Standalone
Stopping service Tomcat-Apache
Catalina.stop: LifecycleException:  Not started
LifecycleException:  Not started
at org.apache.catalina.connector.warp.WarpConnector.stop(Unknown
Source)
at
org.apache.catalina.core.StandardService.stop(StandardService.java:546)
at
org.apache.catalina.core.StandardServer.stop(StandardServer.java:2220)
at org.apache.catalina.startup.Catalina.start(Catalina.java:541)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39

)
at
sun.reflect.Delega

Re: AW: Apache-tomcat integration

2002-08-01 Thread rsequeira


Yes you can define two connectors as long as they are listening on
different ports. I have both the AJP as well the the WARP connector
enabled.

RS


   
  
  "Ralph Einfeldt" 
  
   <[EMAIL PROTECTED]> 
  
 cc:   
  
  08/01/02 10:21 AM  Subject:  AW: Apache-tomcat 
integration 
  Please respond to
  
  "Tomcat Users List"  
  
   
  
   
  




I think you can define more than one connector
in server.xml (but I havn't tried it).

But i tend to strip the configuration down to
the minimal set, so it's easier to find problems.
Especially if you search an error every error
message and config entry that doesn't exist is
one cause less for confusion.

Ralph Einfeldt
Uptime Internet Solution Center GmbH
Hamburg, Germany
Hosting, Content Management, Java Consulting
http://www.uptime-isc.de

> -Ursprüngliche Nachricht-
> Von: Turner, John [mailto:[EMAIL PROTECTED]]
> Gesendet: Donnerstag, 1. August 2002 17:01
> An: 'Tomcat Users List'
> Betreff: RE: Apache-tomcat integration
>
>
>
> I'm using mod_jk in my setup, and I didn't disable the WARP
> connector.  It's still enabled, and everything seems to be working.
Can only
> one connector
> be defined at a time in server.xml?
>
> John Turner
> [EMAIL PROTECTED]
>
>
> -Original Message-
> From: Ralph Einfeldt [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, August 01, 2002 10:48 AM
> To: Tomcat Users List
> Subject: AW: Apache-tomcat integration
>
>
> The fir error message comes because you didn't disable
> the warp connector.
>
> If 8080 doesn't responds it because it uses port 8180.
> (See the log message for the HttpConnector)
>
> If all is running you should diable the HttpConnector.
>
> Ralph Einfeldt
> Uptime Internet Solution Center GmbH
> Hamburg, Germany
> Hosting, Content Management, Java Consulting
> http://www.uptime-isc.de
>
> > -Ursprüngliche Nachricht-
> > Von: Thomas Cherry [mailto:[EMAIL PROTECTED]]
> > Gesendet: Donnerstag, 1. August 2002 16:28
> > An: [EMAIL PROTECTED]
> > Betreff: Re: Apache-tomcat integration
> >
> >
> > Apache runs just fine and I find it on the port I expect
> > however tomcat does not run as I expect.
> > http://my.host.com:8080/examples dose not respond.
> > Apache_log..txt:
> > 2002-07-31 17:21:06
> > [org.apache.catalina.connector.warp.WarpConnector] Error
> > accepting requests
> > java.net.SocketException: Socket closed
> > at java.net.PlainSocketImpl.socketAccept(Native Method)
> > at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:343)
> > at java.net.ServerSocket.implAccept(ServerSocket.java:438)
> > at java.net.ServerSocket.accept(ServerSocket.java:409)
> > at
> 
> > 2002-07-31 17:23:16 HttpConnector Opening server socket on
> all host IP
> > addresses
> > 2002-07-31 17:23:28 HttpConnector[8180] Starting background thread
> > 2002-07-31 17:23:28 HttpProcessor[8180][0] Starting
> background thread
> 
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
> --
> To unsubscribe, e-mail:

For additional commands, e-mail:




--
To unsubscribe, e-mail:   <
mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <
mailto:[EMAIL PROTECTED]>







--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Tomcat Root Context

2002-07-31 Thread rsequeira


The Context entry is correct. Hope you are using the same case in the URL
as defined in the Context entry (newfolder is in lowercase in the Context).
You could change the debug value to something greater than 0 to generate
more logging. Check you logs to see if the newfolder webapplication is
deployed.

RS



   

  "Beau Hebert"

  <[EMAIL PROTECTED]To:   
<[EMAIL PROTECTED]>  
  om>  cc: 

   Subject:  Tomcat Root Context   

  07/31/02 10:39 AM

  Please respond to

  "Tomcat Users

  List"

   

   





Hi-

I have recently managed to to configure Tomcat 4.0.4 and and Apache
2.0.39 to work together properly on Win2k. I am able to view and execute
the Tomcat example files (localhost/examples) through Apache without a
problem. However, once I place a new folder in Tomcat/webapps, edit the
Context path accordingly in server.xml, restart Tomcat and try to view
the application in my browser (e.g. localhost/newfolder), I receive a
404 error. My server.xml Context path entry looks like this:



 

Am I missing something? Thanks in advance.

Beau






--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: exploding WAR file via ant

2002-07-29 Thread rsequeira


What about the attribute "unpackWARs=true"

RS



   

  "Chris Ruegger"  

 <[EMAIL PROTECTED]>   

   cc: 

  07/29/02 03:47 PMSubject:  exploding WAR file via ant

  Please respond to

  "Tomcat Users

  List"

   

   





Does anyone have an ANT build.xml snippet
that will expland a WAR file foo.war to the
Tomcat webapps directory? We have to
explode the WAR file so that Apache
can find the static files.
Thanks,
Chris







--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Help: Installing Tomcat 4.0.4

2002-07-29 Thread rsequeira


JAVA_HOME is set incorrectly. It should be:
JAVA_HOME=c:\jdk1.3.1_03

RS



   

  Manisha_Toor@Dell

  .com To:   
[EMAIL PROTECTED]
   cc: 

  07/29/02 01:46 AMSubject:  Help: Installing Tomcat 4.0.4 

  Please respond to

  "Tomcat Users

  List"

   

   





Hi,

I am new to Jsp and Java stuff.  I installed Tomcat 4.0.4 following
instructions http://jakarta.apache.org/tomcat/tomcat-4.0-doc/RUNNING.txt

When I try to startup tomcat, I get the following:
C:\jakarta-tomcat-4.0.4\bin>startup
The JAVA_HOME environment variable is not defined correctly
This environment variable is needed to run this program
The system cannot find the batch label specified - end
Using CATALINA_BASE:   ..
Using CATALINA_HOME:   ..
Using CATALINA_TMPDIR: ..\temp
Using JAVA_HOME:   c:\jdk1.3.1_03\bin;
The system cannot find the file -Djava.endorsed.dirs=.

I have tried setting up environment variables for JAVA_HOME and
CATALINA_HOME but still get same error.
Please help.  Thanks in advance.

Manisha





--
To unsubscribe, e-mail:   <
mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <
mailto:[EMAIL PROTECTED]>







--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: /*.jsp only invoked when run from localhost

2002-07-26 Thread rsequeira


The virtual host entry in the mod_jk says "ServerName localhost". You
should change that to the domain-name (like www.shannonscott.com).

RS




"Shannon Scott" <[EMAIL PROTECTED]> on 07/26/2002 11:10:26 AM

Please respond to "Tomcat Users List" <[EMAIL PROTECTED]>

To:"Tomcat Users List" <[EMAIL PROTECTED]>
cc:

Subject:Re: /*.jsp only invoked when run from localhost

John,
>I am not using any VirtualHost containers... although I noticed some
removed
>comments in that part of httpd.conf that reference ssl.

Actually these removed comments are below the  tag.

Sorry about the confusion.
Shannon

- Original Message -
From: "Turner, John" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Friday, July 26, 2002 11:16 AM
Subject: RE: /*.jsp only invoked when run from localhost


>
> Does "machine_name" match entries for that resource in httpd.conf?  If
you
> have VirtualHost containers in httpd.conf, do those containers have
JkMount
> directives?
>
> -Original Message-
> From: Shannon Scott [mailto:[EMAIL PROTECTED]]
> Sent: Friday, July 26, 2002 11:15 AM
> To: Tomcat Users List
> Subject: Re: /*.jsp only invoked when run from localhost
>
>
> John,
> Thank you for your help.
>
> I copied the contents between  and , then I changed all
> references to "localhost" within the newly copied text to "machine_name".
> My issue still persists.
>
> Thanks Again.
> Shannon
>
>
> - Original Message -
> From: "Turner, John" <[EMAIL PROTECTED]>
> To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
> Sent: Friday, July 26, 2002 10:55 AM
> Subject: RE: /*.jsp only invoked when run from localhost
>
>
> >
> > In server.xml, you should have a Host container with a name of
> "localhost".
> > Do you have a Host container for the hostname you are using other than
> > "localhost"?
> >
> > John Turner
> > [EMAIL PROTECTED]
> >
> >
> > -Original Message-
> > From: Shannon Scott [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, July 26, 2002 10:54 AM
> > To: Tomcat Users List
> > Subject: /*.jsp only invoked when run from localhost
> >
> >
> > Hello,
> > We are building an application using Tomcat 4.0.2 and Apache 1.3.20 (
> mod_jk
> > APJ13 ) on RedHat Linux 7.2.
> > When the jsp pages are accessed from the localhost ( Webserver with
apache
> > and Tomcat ) everything works fine, but when we try to use another
machine
> > on the local network, it does not invoke Tomcat, and the jsp is printed
to
> > the browser.
> >
> > All html is served up well.
> >
> > I have set the ServerName = local.IP.address
> > in the httpd.conf.
> >
> > Any Help or Advice is Greatly Appreciated.
> > Thank You
> > Shannon
> >
> >
> >
> > --
> > To unsubscribe, e-mail:
> 
> > For additional commands, e-mail:
> 
> >
> >
>
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>
>


--
To unsubscribe, e-mail:   <
mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <
mailto:[EMAIL PROTECTED]>










--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Replacement of IIS

2002-07-24 Thread rsequeira


Few things you need to keep in mind if you do decide to migrate from IIS to
Tomcat.
1) With Tomcat, you will not be able to serve .asp pages. You will need to
convert them to jsps.
2) Frontpage cannot connect to Tomcat as IIS does. But you will be able to
use the editing capabilities of FrontPage. You could still edit HTML pages.
3) Although Tomcat could be used standalone, it would be a good idea to use
Apache as a webserver to serve static pages (using mod_jk), and let Tomcat
handle the dynamic (jsp) pages. mod_jk has load-balancing capabilities as
well. 4) Or you could still use IIS as the webserver (this way you don't
loose the asp functionality). And let Tomcat handle the jsps (and servlet).
You could an ISAPI dll to connect IIS and Tomcat. See
http://jakarta.tomcat.org for more details


RS





Fernando Crowley <[EMAIL PROTECTED]> on 07/23/2002 11:53:20 AM

Please respond to "Tomcat Users List" <[EMAIL PROTECTED]>

To:"'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
cc:"'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>

Subject:Replacement of IIS

Hello all, we are looking for other means on replacing IIS on our servers.
We do have a web editor called FrontPage to edit our web sites from
Microsoft. Is it possible to use Tomcat as a replacement for IIS and still
use FrontPage on editing our website. Is it then possible to use FrontPage
with tomcat or do we have to also find other means for compatibility.

Appreciate your cooperation.


Fernando Crowley
Mobius Management Systems
Product Support Tech


--
To unsubscribe, e-mail:   <
mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <
mailto:[EMAIL PROTECTED]>










--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Change JDK version for tomcat4.0.4

2002-07-24 Thread rsequeira


set JAVA_HOME to point to new JDK install directory.

RS




Ashish Kulkarni <[EMAIL PROTECTED]> on 07/24/2002 02:58:11 PM

Please respond to "Tomcat Users List" <[EMAIL PROTECTED]>

To:Tomcat Users List <[EMAIL PROTECTED]>
cc:

Subject:Change JDK version for tomcat4.0.4

Hi,

I am running tomcat4.0.4 on my windows 2000 server,
I had jdk1.3.1 when i installed it and is running
fine, but now i want to use jdk1.4.1 , so how can i
upgrade tomcat to use jdk1.4 instead of jdk1.3.1
without installing it again

Ashish

__
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com

--
To unsubscribe, e-mail:   <
mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <
mailto:[EMAIL PROTECTED]>










--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Re[4]: Apache Authentication

2002-07-24 Thread rsequeira


Yeah, it'd would be a good idea to store the authentication information -
userid/pwd - in one place. And then use LDAP or JNDI. If you store the info
in the database, only Tomcat would be able to access it (unless you use
LDAP - maybe Apache has a LDAP module). Also I'd suggest either Tomcat or
Apache handle the authetication, not both. This way you won't have
nightmares later :-)
Again, these are just suggestions, you make the call depending on your
requirements.

RS






Jacob Kjome <[EMAIL PROTECTED]> on 07/24/2002 11:19:18 AM

Please respond to "Tomcat Users List" <[EMAIL PROTECTED]>

To:"Tomcat Users List" <[EMAIL PROTECTED]>
cc:

Subject:Re[4]: Apache Authentication

Hello rsequeira,

Good point.

However, that means you have to keep your user authentication info in
two different places...unless you are pulling the info a single source
such as JNDI or JDBC for both Apache and Tomcat.  Also, in that case,
the structure of the JNDI and JDBC entries for both Apache and Tomcat
have to be pretty close to identical.  Notice the issues brought up by
users unhappy with how SingleSignOn work with Tomcat and how the
structure of the database forced by Tomcat's implementation doesn't
quite meet their needs.

Jake

Wednesday, July 24, 2002, 10:50:48 AM, you wrote:


rtc> Just a thought, might not be true (since I haven't checked this
behaviour).
rtc>  When you go through Apache (and if Apache has BASIC authentication
setup),
rtc> the Apache authentication will take precedence. Once you have entered
the
rtc> userid/password in the authentication dialog box, the browser will
from
rtc> then on keep sending the Authentication header (Base64 encoded
userid/pwd)
rtc> to the webserver. So if Tomcat has a BASIC authentication setup too,
then
rtc> it will not send a 401 response code since the browser has sent the
rtc> Authentication header (ofcourse the userid/pwd for both Apache and
Tomcat
rtc> should be the same. Else Tomcat will send a 401 response code).

rtc> RS





rtc> Jacob Kjome <[EMAIL PROTECTED]> on 07/24/2002 10:41:58 AM

rtc> Please respond to "Tomcat Users List" <[EMAIL PROTECTED]>

rtc> To:"Tomcat Users List" <[EMAIL PROTECTED]>
rtc> cc:

rtc> Subject:Re[2]: Apache Authentication

rtc> Hello Kevin,

rtc> That's a question for the developers.  I don't think it is possible,
rtc> actually.  I think if you set your BASIC auth up in the web.xml and in
rtc> Apache, then you get the case where, when you go through Apache on
rtc> port 80, you get prompted for username/password by Apache and then
rtc> again by Tomcat.  However, in this setup, if you went to port 8080,
rtc> directly to Tomcat, then it would work fine.

rtc> So, you kind of need to make a choice as to whether to disable the
rtc> authentication set in web.xml and just use Apache or just let Apache
rtc> forward the request without asking for authentication and let Tomcat
rtc> deal with that.

rtc> It sure seems like a better solution ought to be possible.

rtc> Jake

rtc> Monday, July 22, 2002, 1:11:15 PM, you wrote:

KA>> OK,
KA>> So what if I want in one application to use Tomcat Authentication
rtc> and in
KA>> the other use Apache's Authentication. Is that possible??

KA>> Thanks,
KA>> Kevin

KA>> Kevin Andryc
KA>> Web Systems Engineer
KA>> MISER
KA>> http://www.umass.edu/miser/
KA>> Phone: (413)-545-3460
KA>> [EMAIL PROTECTED]



KA>> -Original Message-
KA>> From: Jacob Kjome [mailto:[EMAIL PROTECTED]]
KA>> Sent: Monday, July 22, 2002 02:07 PM
KA>> To: Tomcat Users List
KA>> Subject: Re: Apache Authentication

KA>> Hello Kevin,

KA>> You need to add tomcatAuthentication="false" to your jk connector
KA>> definition in server.xml.

KA>> >port="8009" minProcessors="5" maxProcessors="75"
KA>>acceptCount="10" debug="0" tomcatAuthentication
="false"/>>

KA>> Note that tomcatAuthentication does not seem to be implemented
KA>> properly in Coyote.  For instace, the analog to the above connection
KA>> for Coyote would be the following which currently doesn't work
KA>> (getRemoteUser() returns null):

KA>> >port="8009" minProcessors="5" maxProcessors="75"
KA>>enableLookups="true" redirectPort="8443"
KA>>acceptCount="10" debug="0" connectionTimeout="2"
KA>>useURIValidationHack="false" tomcatAuthentication
rtc> ="false"

KA>> protocolHandlerClassName="or

Re: Re[2]: Apache Authentication

2002-07-24 Thread rsequeira


Just a thought, might not be true (since I haven't checked this behaviour).
 When you go through Apache (and if Apache has BASIC authentication setup),
the Apache authentication will take precedence. Once you have entered the
userid/password in the authentication dialog box, the browser will from
then on keep sending the Authentication header (Base64 encoded userid/pwd)
to the webserver. So if Tomcat has a BASIC authentication setup too, then
it will not send a 401 response code since the browser has sent the
Authentication header (ofcourse the userid/pwd for both Apache and Tomcat
should be the same. Else Tomcat will send a 401 response code).

RS





Jacob Kjome <[EMAIL PROTECTED]> on 07/24/2002 10:41:58 AM

Please respond to "Tomcat Users List" <[EMAIL PROTECTED]>

To:"Tomcat Users List" <[EMAIL PROTECTED]>
cc:

Subject:Re[2]: Apache Authentication

Hello Kevin,

That's a question for the developers.  I don't think it is possible,
actually.  I think if you set your BASIC auth up in the web.xml and in
Apache, then you get the case where, when you go through Apache on
port 80, you get prompted for username/password by Apache and then
again by Tomcat.  However, in this setup, if you went to port 8080,
directly to Tomcat, then it would work fine.

So, you kind of need to make a choice as to whether to disable the
authentication set in web.xml and just use Apache or just let Apache
forward the request without asking for authentication and let Tomcat
deal with that.

It sure seems like a better solution ought to be possible.

Jake

Monday, July 22, 2002, 1:11:15 PM, you wrote:

KA> OK,
KA> So what if I want in one application to use Tomcat Authentication
and in
KA> the other use Apache's Authentication. Is that possible??

KA> Thanks,
KA> Kevin

KA> Kevin Andryc
KA> Web Systems Engineer
KA> MISER
KA> http://www.umass.edu/miser/
KA> Phone: (413)-545-3460
KA> [EMAIL PROTECTED]



KA> -Original Message-
KA> From: Jacob Kjome [mailto:[EMAIL PROTECTED]]
KA> Sent: Monday, July 22, 2002 02:07 PM
KA> To: Tomcat Users List
KA> Subject: Re: Apache Authentication

KA> Hello Kevin,

KA> You need to add tomcatAuthentication="false" to your jk connector
KA> definition in server.xml.

KA> port="8009" minProcessors="5" maxProcessors="75"
KA>acceptCount="10" debug="0" tomcatAuthentication
="false"/>

KA> Note that tomcatAuthentication does not seem to be implemented
KA> properly in Coyote.  For instace, the analog to the above connection
KA> for Coyote would be the following which currently doesn't work
KA> (getRemoteUser() returns null):

KA> port="8009" minProcessors="5" maxProcessors="75"
KA>enableLookups="true" redirectPort="8443"
KA>acceptCount="10" debug="0" connectionTimeout="2"
KA>useURIValidationHack="false" tomcatAuthentication
="false"

KA> protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler"/>

KA> Let me qualify that. It doesn't work when using mod_jk.  I haven't
KA> gotten thing to work using mod_jk2, so it may work in that case, but
KA> it should work in both.


KA> To Tomcat Developers...

KA> Is there another way that Coyote implemented to grab the auth info
KA> from Apache?


KA> Jake


KA> Monday, July 22, 2002, 12:55:31 PM, you wrote:

KA>> I just converted over from Tomcat 3.2.X to Tomcat 4.0.4 on Linux using
KA>> Apache 1.3.26. In the Apache httpd.conf file, we have an Alias that
KA> points
KA>> to a directory that uses Apache's authentication. In Tomcat 3.2.X, I
KA> used
KA>> mod_jserv which integrated well and I could get the remote user and
use
KA>> Apache to authenticate. I was wondering how I could use mod_jk to do
the
KA>> same. Right now, when I do a getRemoteUser() it returns null.

KA>> Thanks,
KA>> Kevin

KA>> Kevin Andryc
KA>> Web Systems Engineer
KA>> MISER
KA>> http://www.umass.edu/miser/
KA>> Phone: (413)-545-3460
KA>> [EMAIL PROTECTED]





KA>> --
KA>> To unsubscribe, e-mail:
KA> 
KA>> For additional commands, e-mail:
KA> 



KA> --
KA> Best regards,
KA>  Jacobmailto:[EMAIL PROTECTED]


KA> --
KA> To unsubscribe, e-mail:
KA> 
KA> For additional commands, e-mail:
KA> 


KA> --
KA> To unsubscribe, e-mail:   <
mailto:[EMAIL PROTECTED]>
KA> For additional commands, e-mail: <
mailto:[EMAIL PROTECTED]>



--
Best regards,
 Jacobmailto:[EMAIL PROTECTED]


--
To unsubscribe, e-mail:   <
mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <
mailto:[EMAIL PROTECTED]>










--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Run class on jsp

2002-07-22 Thread rsequeira


Use the jsp:include directive. Something like this:


RS





Mario Henley Becerril Geldis <[EMAIL PROTECTED]> on 07/22/2002 10:21:45 AM

Please respond to "Tomcat Users List" <[EMAIL PROTECTED]>

To:[EMAIL PROTECTED]
cc:

Subject:Run class on jsp



  I am a beginner on JSP enviroment..

  I have a class file, this connect a Oracle database, and query to single
table...now i want run this class on a jsp page...how i do it..??

  my code:

  import java.sql.*;

import java.io.*;

import java.util.Date;

class JdbcTest

{

  public static void main (String args [])

  throws SQLException, IOException

  {
System.out.println ("Loading Oracle driver");

try

{

  Class.forName ("oracle.jdbc.driver.OracleDriver");

}

catch (/*ClassNotFound*/ Exception e)

{

  System.out.println ("Could not load the driver");

  e.printStackTrace ();

 }

System.out.println ("Connecting to the remote database");

 Connection conn = DriverManager.getConnection
("jdbc:oracle:thin:@(DESCRIPT
ION =(ADDRESS_LIST =(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.3.4)(PORT =
1521)
))(CONNECT_DATA =(SERVICE_NAME = votoedos)(SRVR =
DEDICATED)))","scott","enie");

System.out.println ("OK");
Statement stmt = conn.createStatement ();

// Query the employee names

ResultSet rset = stmt.executeQuery ("SELECT dttofed From
TDFDF97_NL");

while (rset.next ())

  {

// Print the name out

System.out.println (rset.getString (1));

  }
  }

}






--
To unsubscribe, e-mail:   <
mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <
mailto:[EMAIL PROTECTED]>










--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: tomcat 4.0 and IIS - troubleshoot configuration

2002-07-16 Thread rsequeira


Do you have the warp connector enabled too? The log file indicates a
problem with the Warp connector. It doesn't show anything about the AJP13
connector.

RS





"Diana McLean" <[EMAIL PROTECTED]> on 07/16/2002 02:20:11 PM

Please respond to "Tomcat Users List" <[EMAIL PROTECTED]>

To:"Tomcat Users List" <[EMAIL PROTECTED]>
cc:

Subject:RE: tomcat 4.0 and IIS - troubleshoot configuration

How shall I set the log_level registry?

here is the local_access_log.
 - - [16/Jul/2002:15:11:45 -0500] "GET /testfolder/Test.jsp HTTP/1.1" 200
537
 - - [16/Jul/2002:15:11:53 -0500] "GET /testfolder/servlet/Test HTTP/1.1"
200 209

here is the apache log file( I am using the ajp13 connector):

2002-07-16 15:10:15 [org.apache.catalina.connector.warp.WarpConnector]
Error accepting requests
java.net.SocketException: socket closed
 at java.net.PlainSocketImpl.socketAccept(Native Method)
 at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:343)
 at java.net.ServerSocket.implAccept(ServerSocket.java:438)
 at java.net.ServerSocket.accept(ServerSocket.java:409)
 at
org.apache.catalina.connector.warp.WarpConnector.run(WarpConnector.java:590)

 at java.lang.Thread.run(Thread.java:536)

Computer has
 Windows 2000
 jdk1.4
 isapi_redirector.dll  5/04/02 237 kb

There is a zip file from this site:

http://members.ozemail.com.au/~lampante/howto/tomcat/iisnt/index.html#4


Thanks again,

Diana
-Original Message-
From: Andrew Conrad [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 16, 2002 1:51 PM
To: 'Tomcat Users List'
Subject: RE: tomcat 4.0 and IIS - troubleshoot configuration


Diana,

Your best bet is to delete your log files, set the log_level registry
key to "debug" and restart IIS.  Test one of your directories then post
your log file for the redirector to the mailing list.  At this point,
I'm sure most of us need more info before we can offer any helpful
information.

Also, post the size and date of your redirector, where you got it, your
OS, JDK and any other helpful background info.


- Andrew

> -Original Message-
> From: Diana McLean [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 16, 2002 1:32 PM
> To: Tomcat Users List
> Subject: RE: tomcat 4.0 and IIS - troubleshoot configuration
>
>
> Thanks Andrew.
>
> Yes, I have set up a virtual directory called jakarta that
> has the isapi_redirector.dll under it. The file is physically
> located in the CATALINA_HOME/bin directory.
>
> Diana
>
> -Original Message-
> From: Andrew Conrad [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 16, 2002 1:24 PM
> To: 'Tomcat Users List'
> Subject: RE: tomcat 4.0 and IIS - troubleshoot configuration
>
>
> Diana,
>
> Do you have a virtual directory in your website pointing to
> the directory of your isapi_redirector.dll?
>
> Specifically, if your extension_uri registry entry equals
> "/jakarta/isapi_redirector.dll", then you need to have a
> virtual directory called "jakarta" and it should point to the
> folder that contains isapi_redirector.dll.
>
> Hope this helps.
>
> If you need some more pointers, try this step by step web-page
>
> http://www.getnet.net/~rbarr/TomcatOnIIS/default.htm
>
> - Andrew
>
> > -Original Message-
> > From: Diana McLean [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, July 16, 2002 12:23 PM
> > To: Tomcat Users List
> > Subject: RE: tomcat 4.0 and IIS - troubleshoot configuration
> >
> >
> > Yes, I can access both JSP and Servlets using port 8080.
> >
> > > http://localhost:8080/testfolder/Test.jspworks
> > > http://localhost/testfolder/Test.jsp works
> > >
> > >
> > > http://localhost:8080/testfolder/servlet/TestServlet
> > does not work
> > > http://localhost/testfolder/servlet/TestServlet
> > does not work
> > >
> > > The Green arrow is up.
> >
> >
> > This is the uriworkermap.properties file:
> > #
> > # Default worker to be used through our mappings
> > #
> > default.worker=ajp13
> >
> > /*.jsp=$(default.worker)
> > /servlet/*=$(default.worker)
> >
> > #
> > # Sites to be redirected to Tomcat
> > #
> >
> > /testfolder=$(default.worker)
> > /testfolder/*=$(default.worker)
> >
> > Thanks,
> > Diana
> > -Original Message-
> > From: Sexton, George [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, July 15, 2002 7:04 PM
> > To: Tomcat Users List
> > Subject: RE: tomcat 4.0 and IIS - troubleshoot configuration
> >
> >
> > Are you running Tomcat as a service? If so, can you connect
> > directly to it through the http connector running on port 8080?
> >
> > -Original Message-
> > From: Diana McLean [mailto:[EMAIL PROTECTED]]
> > Sent: 15 July, 2002 3:06 PM
> > To: [EMAIL PROTECTED]
> > Subject: tomcat 4.0 and IIS - troubleshoot configuration
> >
> >
> > Does anyone have any suggestions as to what to look for to
> > determine why the tomcat 4.0 installation is not working with
> > IIS 5.0? They work fine separately.
> >
> > Thanks,
> >
> > Dian

RE: tomcat 4.0 and IIS - troubleshoot configuration

2002-07-16 Thread rsequeira


Is that a typo? You said

Yes, I can access both JSP and Servlets using port 8080.
> http://localhost:8080/testfolder/Test.jspworks
> http://localhost/testfolder/Test.jsp   works
>
>
> http://localhost:8080/testfolder/servlet/TestServlet does not
work


The above implies that the servlets don't work either on Tomcat.
Assuming the above is a typo, are there some logs on whether your request
is reaching Tomcat or not? Also check the following:
1)The "jakarta" virtual directory (the physical path is the place when the
ISAPI dll is stored) has execute permission.
2) You've added a "testfolder" virtual directory using IIS.

If the above isn't a typo, then you need to check your Context
configuration in server.xml (There should be a Context entry for
"testfolder")

RS





"Diana McLean" <[EMAIL PROTECTED]> on 07/16/2002 11:23:27 AM

Please respond to "Tomcat Users List" <[EMAIL PROTECTED]>

To:"Tomcat Users List" <[EMAIL PROTECTED]>
cc:

Subject:RE: tomcat 4.0 and IIS - troubleshoot configuration

Yes, I can access both JSP and Servlets using port 8080.

> http://localhost:8080/testfolder/Test.jspworks
> http://localhost/testfolder/Test.jsp   works
>
>
> http://localhost:8080/testfolder/servlet/TestServlet does not
work
> http://localhost/testfolder/servlet/TestServlet
does not work
>
> The Green arrow is up.


This is the uriworkermap.properties file:
#
# Default worker to be used through our mappings
#
default.worker=ajp13

/*.jsp=$(default.worker)
/servlet/*=$(default.worker)

#
# Sites to be redirected to Tomcat
#

/testfolder=$(default.worker)
/testfolder/*=$(default.worker)

Thanks,
Diana
-Original Message-
From: Sexton, George [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 15, 2002 7:04 PM
To: Tomcat Users List
Subject: RE: tomcat 4.0 and IIS - troubleshoot configuration


Are you running Tomcat as a service? If so, can you connect directly to it
through the http connector running on port 8080?

-Original Message-
From: Diana McLean [mailto:[EMAIL PROTECTED]]
Sent: 15 July, 2002 3:06 PM
To: [EMAIL PROTECTED]
Subject: tomcat 4.0 and IIS - troubleshoot configuration


Does anyone have any suggestions as to what to look for to determine why
the
tomcat 4.0 installation is not working with IIS 5.0? They work fine
separately.

Thanks,

Diana

--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:   <
mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <
mailto:[EMAIL PROTECTED]>


--
To unsubscribe, e-mail:   <
mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <
mailto:[EMAIL PROTECTED]>










--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: download file

2002-07-16 Thread rsequeira


Did you set the mime-type set in the web.xml?

  
xls
application/vnd.ms-excel
  

RS





jakarta-tom on 07/16/2002 09:10:03 AM

Please respond to "Tomcat Users List" <[EMAIL PROTECTED]>

To:[EMAIL PROTECTED]
cc:

Subject:download file

Subject: download file
From: "J. Jason Zhou" <[EMAIL PROTECTED]>
 ===
I have both Tomcat and IIS running on two machines. But when I download a
file (abc.xls) from Tomcat, the browser loads the binary content without
prompting uisng the save/open dialog while IIS did prompt before the
download.

http://machine/myapp/abc.xls

Can anybody tell me why?

--
Best Regards,

J. Jason Zhou
Business Intelligence Platform Division (BIP), R & D,
SAS Institute, 100 SAS Campus Dr.
Cary, North Carolina 27513-8617
Voice: 919-531-0568(O)
Email: [EMAIL PROTECTED]



--
To unsubscribe, e-mail:   <
mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <
mailto:[EMAIL PROTECTED]>










--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: WAR archive

2002-07-16 Thread rsequeira


Yes. You need to change the "appBase" attribute of the Host element.

RS





Tarik Mokhtari <[EMAIL PROTECTED]> on 07/16/2002 07:44:50 AM

Please respond to "Tomcat Users List" <[EMAIL PROTECTED]>

To:[EMAIL PROTECTED]
cc:

Subject:WAR archive

Hi,

is it possible to put WAR archives in a different folder than /webapps ?

Tarik


--
To unsubscribe, e-mail:   <
mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <
mailto:[EMAIL PROTECTED]>










--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: What can cause a clean Tomcat shutdown?

2002-07-15 Thread rsequeira


Well hope you don't have some kind of cron job that periodically shuts
Tomcat down.

RS





"Attila Szegedi" <[EMAIL PROTECTED]> on 07/15/2002 03:24:51 PM

Please respond to "Tomcat Users List" <[EMAIL PROTECTED]>

To:"Tomcat Users List" <[EMAIL PROTECTED]>
cc:

Subject:Re: What can cause a clean Tomcat shutdown?

Well yes, that's what puzzles us as well - it performs a clean shutdown
without anyone running "tomcat.sh stop". Also, the 8007 port is blocked by
a
firewall so it can't receive it from afar (and wouldn't react to a
non-localhost stop command anyway...).

Attila.

- Original Message -
From: <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Monday, July 15, 2002 5:32 PM
Subject: Re: What can cause a clean Tomcat shutdown?


>
> I think I spoke a little too quicky earlier. Sorry. I believe
System.exit()
> doesn't unload the web applications. Presently I can't think of any other
> way for a clean Tomcat shutdown.
>
> RS
>
>
>
>
>
> [EMAIL PROTECTED] on 07/15/2002 09:38:54 AM
>
> Please respond to "Tomcat Users List" <[EMAIL PROTECTED]>
>
> To:"Tomcat Users List" <[EMAIL PROTECTED]>
> cc:
>
> Subject:Re: What can cause a clean Tomcat shutdown?
>
>
> What about System.exit() in a servlet?
>
> RS
>
>
>
>
>
> "Attila Szegedi" <[EMAIL PROTECTED]> on 07/15/2002 08:51:20 AM
>
> Please respond to "Tomcat Users List" <[EMAIL PROTECTED]>
>
> To:"Tomcat Users List" <[EMAIL PROTECTED]>
> cc:
>
> Subject:What can cause a clean Tomcat shutdown?
>
> Guys, I'm asking this question again in hope someone notices this time:
>
> Except for the stop command sent to the Ajp12 connector, is there another
> event that will cause a Tomcat 3.3.1 to shut down cleanly?
>
> We experience sporadic "spontaneous" clean shutdowns of Tomcat 3.3.1 and
> have no idea what causes them. We know these are normal shutdowns since
the
> servlet log shows the contexts are being unloaded and servlets' destroy()
> methods are being called - just as if someone has issued a "tomcat.sh
stop"
> (before you ask: nobody does).
>
> Any clues appreciated.
> Cheers,
>   Attila.
>
> --
> Attila Szegedi
> home: http://www.szegedi.org
>
>
> --
> To unsubscribe, e-mail:   <
> mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <
> mailto:[EMAIL PROTECTED]>
>
>
>
>
>
>
>
>
>
>
> --
> To unsubscribe, e-mail:   <
> mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <
> mailto:[EMAIL PROTECTED]>
>
>
>
>
>
>
>
>
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>
>
>
>


--
To unsubscribe, e-mail:   <
mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <
mailto:[EMAIL PROTECTED]>










--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: What can cause a clean Tomcat shutdown?

2002-07-15 Thread rsequeira


I think I spoke a little too quicky earlier. Sorry. I believe System.exit()
doesn't unload the web applications. Presently I can't think of any other
way for a clean Tomcat shutdown.

RS





[EMAIL PROTECTED] on 07/15/2002 09:38:54 AM

Please respond to "Tomcat Users List" <[EMAIL PROTECTED]>

To:"Tomcat Users List" <[EMAIL PROTECTED]>
cc:

Subject:Re: What can cause a clean Tomcat shutdown?


What about System.exit() in a servlet?

RS





"Attila Szegedi" <[EMAIL PROTECTED]> on 07/15/2002 08:51:20 AM

Please respond to "Tomcat Users List" <[EMAIL PROTECTED]>

To:"Tomcat Users List" <[EMAIL PROTECTED]>
cc:

Subject:What can cause a clean Tomcat shutdown?

Guys, I'm asking this question again in hope someone notices this time:

Except for the stop command sent to the Ajp12 connector, is there another
event that will cause a Tomcat 3.3.1 to shut down cleanly?

We experience sporadic "spontaneous" clean shutdowns of Tomcat 3.3.1 and
have no idea what causes them. We know these are normal shutdowns since the
servlet log shows the contexts are being unloaded and servlets' destroy()
methods are being called - just as if someone has issued a "tomcat.sh stop"
(before you ask: nobody does).

Any clues appreciated.
Cheers,
  Attila.

--
Attila Szegedi
home: http://www.szegedi.org


--
To unsubscribe, e-mail:   <
mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <
mailto:[EMAIL PROTECTED]>










--
To unsubscribe, e-mail:   <
mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <
mailto:[EMAIL PROTECTED]>










--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: What can cause a clean Tomcat shutdown?

2002-07-15 Thread rsequeira


What about System.exit() in a servlet?

RS





"Attila Szegedi" <[EMAIL PROTECTED]> on 07/15/2002 08:51:20 AM

Please respond to "Tomcat Users List" <[EMAIL PROTECTED]>

To:"Tomcat Users List" <[EMAIL PROTECTED]>
cc:

Subject:What can cause a clean Tomcat shutdown?

Guys, I'm asking this question again in hope someone notices this time:

Except for the stop command sent to the Ajp12 connector, is there another
event that will cause a Tomcat 3.3.1 to shut down cleanly?

We experience sporadic "spontaneous" clean shutdowns of Tomcat 3.3.1 and
have no idea what causes them. We know these are normal shutdowns since the
servlet log shows the contexts are being unloaded and servlets' destroy()
methods are being called - just as if someone has issued a "tomcat.sh stop"
(before you ask: nobody does).

Any clues appreciated.
Cheers,
  Attila.

--
Attila Szegedi
home: http://www.szegedi.org


--
To unsubscribe, e-mail:   <
mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <
mailto:[EMAIL PROTECTED]>










--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Offtopic - JBoss vs JOnAS

2002-07-12 Thread rsequeira


Thanks
RS




"Joseph E. Savard" <[EMAIL PROTECTED]> on 07/12/2002 03:46:54 PM

Please respond to "Tomcat Users List" <[EMAIL PROTECTED]>

To:"Tomcat Users List" <[EMAIL PROTECTED]>
cc:

Subject:Re: Offtopic - JBoss vs JOnAS

The new version of JBOSS has Tomcat in its distribution.

JBOSS is further along then JOnAS.

My preference is JBOSS...

Yes, I have installed JBOSS and integrated Tomcat..

and I am working with the NEW distribution.

JOnAS never drew enough of my interest to attempt this integration.  I am
sure it can be done.


- Original Message -
From: <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Friday, July 12, 2002 3:37 PM
Subject: Offtopic - JBoss vs JOnAS


>
> I know I should probably research this on my own. But I bet there is some
> real world experience here on this list with regards to JBoss and JOnAS.
>
> My questions:
> Anyone here used either or both and could tell me which is better?
> Also I do know both JBoss and JOnAS come with Tomcat integrated. But I
was
> wondering if anyone installed JBoss (or JOnAS) seperately and then
> integrated Tomcat?
>
> I would appreciate any advice.
>
> Thanks
> RS
>
>
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>
>


--
To unsubscribe, e-mail:   <
mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <
mailto:[EMAIL PROTECTED]>










--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Offtopic - JBoss vs JOnAS

2002-07-12 Thread rsequeira


I know I should probably research this on my own. But I bet there is some
real world experience here on this list with regards to JBoss and JOnAS.

My questions:
Anyone here used either or both and could tell me which is better?
Also I do know both JBoss and JOnAS come with Tomcat integrated. But I was
wondering if anyone installed JBoss (or JOnAS) seperately and then
integrated Tomcat?

I would appreciate any advice.

Thanks
RS




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Directory Index

2002-07-12 Thread rsequeira


See  in the web.xml.

RS




[EMAIL PROTECTED] on 07/12/2002 03:07:22 PM

Please respond to "Tomcat Users List" <[EMAIL PROTECTED]>

To:
cc:

Subject:Directory Index

I know that in Tomcat I can map servlets to the path "/" and that in Apache
I can set certain files to be "directory indexes"; however, I do not know
how to map a JSP to the path "/". Can anyone help? How do I map JSPs to the
path "/" or set them as "directory indexes"?

Thanks,

Jack

--
To unsubscribe, e-mail:   <
mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <
mailto:[EMAIL PROTECTED]>










--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Error - Please Help

2002-07-12 Thread rsequeira


You could either copy the tools.jar from JAVA_HOME/lib to
CATALINA_HOME/common/lib (or create symbolic link if you are using some
flavor of Unix). This will resolve the problem of your jsps not compiling.
This is the error that you been getting.

RS






"Sunit Munjal" <[EMAIL PROTECTED]> on 07/12/2002 09:06:35 AM

Please respond to "Tomcat Users List" <[EMAIL PROTECTED]>

To:"Tomcat Users List" <[EMAIL PROTECTED]>
cc:

Subject:RE: Error - Please Help


I just installed the SDK for all languages and it still doesn't work.
Reynir mentioned something about putting the tools.jar into my tomcats
classpath.  What does  that mean.  Just copying and pasting the file in
tomcat/common/lib/ directory or does it involve changing/adding a path
somewhere.

Thanks.


 Message History



From:  Reynir Hübner <[EMAIL PROTECTED]> on 07/12/2002 01:15 PM GMT

Please respond to "Tomcat Users List" <[EMAIL PROTECTED]>

To:"Tomcat Users List" <[EMAIL PROTECTED]>
cc:
Subject:RE: Error - Please Help


put tools.jar from your jsdk into tomcats classpath (for example into
tomcat/common/lib/ )
that should fix it

-reynir

> -Original Message-
> From: Sunit Munjal [mailto:[EMAIL PROTECTED]]
> Sent: 12. júlí 2002 13:18
> To: [EMAIL PROTECTED]
> Subject: Error - Please Help
>
>
> Hi,
> I just installed Tomcat and setup JDK, but can't see any
> thing.  I always get an error.  I was trying the same thing
> in WebLogic before, but had an error over there.  I can view
> the index.html page fine on my local host, but when I try to
> view a JSP page.  I ge the following error:
> The server encountered an internal error (Internal Server
> Error) that prevented it from fulfilling this request.
> javax.servlet.ServletException: sun/tools/javac/Main
>   at
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:481)
>   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>   at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilt
> er(ApplicationFilterChain.java:247)
>   at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(Appli
> cationFilterChain.java:193)
>   at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardW
> rapperValve.java:243)
>   at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> ipeline.java:566)
>   at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
> ine.java:472)
>   at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>   at
> org.apache.catalina.core.StandardContextValve.invoke(StandardC
> ontextValve.java:190)
>   at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> ipeline.java:566)
>   at
> org.apache.catalina.valves.CertificatesValve.invoke(Certificat
> esValve.java:246)
>   at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> ipeline.java:564)
>   at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
> ine.java:472)
>   at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>   at
> org.apache.catalina.core.StandardContext.invoke(StandardContex
> t.java:2347)
>   at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHost
> Valve.java:180)
>   at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> ipeline.java:566)
>   at
> org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDi
> spatcherValve.java:170)
>   at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> ipeline.java:564)
>   at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReport
> Valve.java:170)
>   at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> ipeline.java:564)
>   at
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValv
> e.java:468)
>   at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> ipeline.java:564)
>   at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
> ine.java:472)
>   at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>   at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEn
> gineValve.java:174)
>   at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> ipeline.java:566)
>   at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
> ine.java:472)
>   at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>   at
> org.apache.catalina.connector.http.HttpProcessor.process(HttpP
> rocessor.java:1027)
>   at
> org.apache.catalina.connector.http.HttpProcessor.run(HttpProce
> ssor.java:1125)
>   at java.lang.Thread.run(Unknown Source)
>
>
> root cause
>
> java.lang.NoClassDefFoundError: sun/tools/javac/Main
>   at
> org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaComp
> iler.java:136)
>   at
> org.apache.jasper.compiler.C

Re: Classes in WEB-INF/classes not visible to JSP pages

2002-07-12 Thread rsequeira


I don't use JDK1.4. But if you get an error while importing classes without
a package name, it may be a bug. And if you can confirm that you should
probably file it with Sun. As for you packaging your classes, any specific
reason for you to package you classes in org.apache.jsp? I think what Larry
meant was you create you own package name.

RS





Vel <[EMAIL PROTECTED]> on 07/12/2002 05:40:14 AM

Please respond to "Tomcat Users List" <[EMAIL PROTECTED]>

To:Tomcat Users List <[EMAIL PROTECTED]>
cc:

Subject:Re: Classes in WEB-INF/classes not visible to JSP pages

Hi Larry and RS,

Thanks for your feedback.

I did try importing the unpackaged classes, but with jdk 1.4 it gives an
error that '.' is not found in the import statement, meaning i have to
package.

I will do it hereafter, but for my older applications i can not use
4.x.x and should be satisfied with 3.x.x and jdk 1.3, sad.

May i know the reason behind packaging the jsps into org.apchae.jsp?, if
it isn't there it would be cool!

Thanks again
vel


[EMAIL PROTECTED] wrote:

>With Tomcat 4.x.x, you need import unpackged classes as well.
>
>RS
>
>
>
>
>
>"Larry Meadors" <[EMAIL PROTECTED]> on 07/11/2002 09:36:05 AM
>
>Please respond to "Tomcat Users List" <[EMAIL PROTECTED]>
>
>To:<[EMAIL PROTECTED]>
>cc:
>
>Subject:Re: Classes in WEB-INF/classes not visible to JSP pages
>
>I do not know if I would consider this a bug. There was a related post
>just yesterday. If I understood it correctly, esentially, your jsp gets
>compiled as being in the org.apache.jsp package. Unless you explicitly
>import your unpackaged classes, they are expected to be in the
>org.apache.jsp package as well.
>
>Drink the Kool-Aid...package your classes.
>
>Larry
>
[EMAIL PROTECTED] >>>

>I could not compile jsp pages which handle classes found in
>WEB-INF/classes directory, 'class not found'. The classes are not
>packaged but when packaged, the jsp pages works fine. The thing is, it
>adds org.apache.jsp package to the class name?
>
>
>--
>To unsubscribe, e-mail:   <
>mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail: <
>mailto:[EMAIL PROTECTED]>
>
>
>
>
>
>
>
>
>
>
>--
>To unsubscribe, e-mail:   <
mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail: <
mailto:[EMAIL PROTECTED]>
>
>
>.
>



--
To unsubscribe, e-mail:   <
mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <
mailto:[EMAIL PROTECTED]>










--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Where is WARP connector

2002-07-11 Thread rsequeira


mod_webapp is the module that implements WARP.

RS





"Nance, Michael" <[EMAIL PROTECTED]> on 07/11/2002 10:10:29 AM

Please respond to "Tomcat Users List" <[EMAIL PROTECTED]>

To:'Tomcat Users List' <[EMAIL PROTECTED]>
cc:

Subject:RE: Where is WARP connector

John,
Thanks for the response.  But this is where I am getting lost.
2 questions:
Is webapp basically Warp  (My boss is asking for Warp - why I don't know)

And unless I am missing it I don't see a link to download the connector

Thanks
Mike

-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 11, 2002 7:59 AM
To: 'Tomcat Users List'
Subject: RE: Where is WARP connector



http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/index.html

The available connectors are listed on the left-hand side.

"Better" is relative, it depends on what you are doing.  The consensus at
the moment seems to be that mod_jk is the best connector for mixed sites
using apache and tomcat (static and dynamic content).  If you are using
tomcat stand-alone, than the other connectors may be better choices
(mod_webapp, mod_jk2, etc).

John Turner
[EMAIL PROTECTED]


-Original Message-
From: Nance, Michael [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 11, 2002 10:53 AM
To: '[EMAIL PROTECTED]'
Subject: Where is WARP connector


Sorry if this is covered in a FAQ but I searched and  could not find
anything

Where can I download a copy of the Warp connector for Unix  or is coyote a
better replacement ?
If so is it a release version or is there a better version that has been
released?

Thanks in advance

--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   <
mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <
mailto:[EMAIL PROTECTED]>










--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Classes in WEB-INF/classes not visible to JSP pages

2002-07-11 Thread rsequeira


With Tomcat 4.x.x, you need import unpackged classes as well.

RS





"Larry Meadors" <[EMAIL PROTECTED]> on 07/11/2002 09:36:05 AM

Please respond to "Tomcat Users List" <[EMAIL PROTECTED]>

To:<[EMAIL PROTECTED]>
cc:

Subject:Re: Classes in WEB-INF/classes not visible to JSP pages

I do not know if I would consider this a bug. There was a related post
just yesterday. If I understood it correctly, esentially, your jsp gets
compiled as being in the org.apache.jsp package. Unless you explicitly
import your unpackaged classes, they are expected to be in the
org.apache.jsp package as well.

Drink the Kool-Aid...package your classes.

Larry

>>> [EMAIL PROTECTED] >>>
I could not compile jsp pages which handle classes found in
WEB-INF/classes directory, 'class not found'. The classes are not
packaged but when packaged, the jsp pages works fine. The thing is, it
adds org.apache.jsp package to the class name?


--
To unsubscribe, e-mail:   <
mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <
mailto:[EMAIL PROTECTED]>










--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Extra folders in tomcat/work

2002-07-11 Thread rsequeira


Note the way you have configured the path attribute in the Context element.

   


Tomcat uses this "path" attribute to create the folders. For the "" path,
it creates a "_" folder. The other two folders (site1 & site2) are created
because they happened to exist under your webapps (see auto deployment of
web application). Now the compiled jsp's go under "_" because the "path"
attribute dictates it. This is also how you access your website - http://
site1.myserver.com and http://site2.myserver.com

As an experiment, change the path to some other name say "rich" and you'll
have a rich folder instead of "_". Also the access URL will change to
http://site1.myserver.com/rich

RS









"Richard Haber" <[EMAIL PROTECTED]> on 07/11/2002 08:57:39 AM

Please respond to "Tomcat Users List" <[EMAIL PROTECTED]>

To:"'Tomcat Users List'" <[EMAIL PROTECTED]>
cc:

Subject:Extra folders in tomcat/work

Greetings gurus

I have tomcat 4.0.3 connected to apache 2.0.36 using mod-jk.  There are
2 Virtual Hosts, site1 and site2, configured in server.xml:


...
   

And


...
   

In my webapps folder are two folders: site1 and site2.

When tomcat starts, it creates two folders in /work: site1.myserver.com
and site2.myserver.com
But in each of these it creates a site1 folder and site2 folder as well
as the '_' folder where all of the compiled .jsp's go.  Nothing goes in
the site1 folder and site2 folder.

I am wondering what is wrong with my configuration that causes this.
Otherwise, the sites work as expected.

Thanks in advance,

Richard Haber



--
To unsubscribe, e-mail:   <
mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <
mailto:[EMAIL PROTECTED]>










--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Beans in packages vs beans not in packages

2002-07-10 Thread rsequeira


you need to import it using the import statement.
<% import  %>

RS




"Ron Day" <[EMAIL PROTECTED]> on 07/10/2002 05:20:27 PM

Please respond to "Tomcat Users List" <[EMAIL PROTECTED]>

To:<[EMAIL PROTECTED]>
cc:

Subject:Beans in packages vs beans not in packages

Hi,

When I run a webapp with a bean in a package -- say "com.form", everything
works fine. But when I try to run a bean that is not in a package I always
get class not found error.

1)I am using usebean in both cases, one has class name, one has full
package
name.
2)Bean has package name in one but no in the other.
3)Bean is in class directory at top level for no package, and in correct
package directory structure for package.

There are no other changes, except to recompile bean, and restart tomcat.

Any help appreciated.

ron




--
To unsubscribe, e-mail:   <
mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <
mailto:[EMAIL PROTECTED]>










--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Servlet problem...

2002-07-09 Thread rsequeira


You need to edit your classpath. You need to specify the drive name when
the servlet.jar is located. See "tomcat\common\lib\servlet.jar;"


CLASSPATH=.;C:\ServletDevel;tomcat\common\lib\servlet.jar;C:
\javamail-1.2\ma
il.jar;C:\jaf-1.0.1\activation.jar


RS





"Mike Neder" <[EMAIL PROTECTED]> on 07/09/2002 10:03:09 AM

Please respond to "Tomcat Users List" <[EMAIL PROTECTED]>

To:"Tomcat Users List" <[EMAIL PROTECTED]>
cc:

Subject:Servlet problem...

Hi everybody,  I have a servlet problem.  I installed Tomcat and the JSP
pages are working fine.  But I have a problem compiling servlets.

I put HelloServlet.java in C:\ServletDevel

and my
CLASSPATH=.;C:\ServletDevel;tomcat\common\lib\servlet.jar;C:
\javamail-1.2\ma
il.jar;C:\jaf-1.0.1\activation.jar

AndI get these errors:

C:\ServletDevel\HelloServlet.java:2: package javax.servlet does not exist
import javax.servlet.*;
^
C:\ServletDevel\HelloServlet.java:3: package javax.servlet.http does not
exist
import javax.servlet.http.*;

what could be the problem???

Thank you in advance,
Michael



--
To unsubscribe, e-mail:   <
mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <
mailto:[EMAIL PROTECTED]>










--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: tomcat 4.03 configuration with IIS 5.0

2002-07-09 Thread rsequeira


It seems like you upgraded your JDK to a latest version. And Tomcat seems
to use an earlier version. You probably need to copy tools.jar to the
CATALINA_HOME\common\lib directory or re-install Tomcat so that it uses the
right JDK version.
The asp files could co-exist with the jsps. All you need to do is probably
make the sub-directory under "webapps" a virtual directory. IIS (via
isapi_redirect.dll and uriworkermap.properties) will be intelligent enough
to redirect all jsp requests to Tomcat and IIS will handle the static and
asp content. You could use "Inetpub" as your base directory too, instead of
"webapps".

RS





"Diana McLean" <[EMAIL PROTECTED]> on 07/09/2002 09:30:57 AM

Please respond to "Tomcat Users List" <[EMAIL PROTECTED]>

To:<[EMAIL PROTECTED]>
cc:

Subject:tomcat 4.03 configuration with IIS 5.0

I followed the instructions for configuring tomcat to run with IIS but have
a few questions:

- how do I confirm that the configuration works? I already have the green
arrow up. I am now getting the " javax.servlet.ServletException:
sun/tools/javac/Main (Unsupported major.minor version 48.0) " which was not
a problem previously.

- how do I setup/revise the web project that uses asp and jsp, servlets? I
have the virtual directory for tomcat in IIS with the isapi_redirect.dll.
Does this mean  I keep the jsp and servlets in the webapps directory as
usual or that I need to move it under Inetpub? There appears to be no
explanation as to how this works.

I searched everywhere and there appears to be no directions on how to setup
a project  that includes both technologies once the configuration is
complete.

thanks


--
To unsubscribe, e-mail:   <
mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <
mailto:[EMAIL PROTECTED]>










--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: restarting tomcat without restarting ;)

2002-07-09 Thread rsequeira


Set the reloadable attribute of the Context element in your server.xml to
true

RS





jakarta-tom on 07/09/2002 09:40:02 AM

Please respond to "Tomcat Users List" <[EMAIL PROTECTED]>

To:[EMAIL PROTECTED]
cc:

Subject:restarting tomcat without restarting ;)

Subject: restarting tomcat without restarting ;)
From: "David Chu" <[EMAIL PROTECTED]>
 ===
Hello, I remember reading there was a way to force Tomcat 4.0 to use new
versions of modified servlets w/o restarting the server, but I glossed over
the details.  I think it was just accessing some URL.  Is there any such
thing or am I confused?  Thanks!


--
-david

--
David C. Chu
America Online
Network Tools Intern
--



--
To unsubscribe, e-mail:   <
mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <
mailto:[EMAIL PROTECTED]>










--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: cannot run tomcat 4.0.4 jsp examples

2002-07-09 Thread rsequeira


You probably have a stale copy of jasper-compiler.jar. I'd suggest
installing the latest Tomcat (I think it's 4.1.7).

RS





"Sylvain Pivette" <[EMAIL PROTECTED]> on 07/09/2002 10:10:15 AM

Please respond to "Tomcat Users List" <[EMAIL PROTECTED]>

To:<[EMAIL PROTECTED]>
cc:

Subject:cannot run tomcat 4.0.4 jsp examples

I cannot run Tomcat 4.0.4 jsp examples but servlet examples work fine !
(NT4, Apache 1.3.26, Jdk 1.3)
>...
>root cause
>java.lang.NoSuchMethodError
> at
org.apache.jasper.compiler.TldLocationsCache.processJars(TldLocationsCache.j

ava:202)
> at
org.apache.jasper.compiler.TldLocationsCache.(TldLocationsCache.java:139)
> at
org.apache.jasper.EmbededServletOptions.(EmbededServletOptions.java:350)
>...
First I removed Tomcat 3.2.1 and install Tomcat 4.04.My problem appeared so
I searched Google, mail archive and faqs but did not find the answer. I
also
tried to re-install from a diffrent source, still not work. I know it is a
newbie question but I do not find the solution.

Thanks,

Sylvain (french).


--
To unsubscribe, e-mail:   <
mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <
mailto:[EMAIL PROTECTED]>










--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: customised error pages rather than tomcats error pages

2002-07-09 Thread rsequeira


Add an error-page directive to your web-application's web.xml file:


  404
  /error.html


Please see the "Deployment Descriptor" section of the servlet specs for
more information.

RS





[EMAIL PROTECTED] on 07/09/2002 09:16:52 AM

Please respond to "Tomcat Users List" <[EMAIL PROTECTED]>

To:[EMAIL PROTECTED]
cc:

Subject:customised error pages rather than tomcats error pages

Hi

I would like to know how can I set tomcat to output my own custom error
pages
when i get error 403, 404, 500 and so on rather than tomcats error pages.

Thanxs

--
To unsubscribe, e-mail:   <
mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <
mailto:[EMAIL PROTECTED]>










--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Virtual site

2002-07-02 Thread rsequeira


You need Host and Context elements for each domain. Something like this:







  



RS






"eric aboudaram" <[EMAIL PROTECTED]> on 07/02/2002 12:00:34 PM

Please respond to "Tomcat Users List" <[EMAIL PROTECTED]>

To:"tomcat user List" <[EMAIL PROTECTED]>
cc:

Subject:Virtual site

I try, but i don't found doc for virtual domain under tomcat 4.0.3 on
windows 2k

if someone can help me, it ll be great

i search news for

www.site.com go to directory webapps\site
and
www.site2.com go to directory webapps\site2

i don't want to do http://localhost/site for webapps\site

i know , i ve already this 2 domain name www.site.com  & www.site2.com

so how do that

thanks


---
Ce message Envoi est certifié sans virus connu.
Protégé par l'antivirus AVG Deluxe.
Version: 6.0.373 / Base de données virus: 208 - Date: 01/07/2002









--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: customized page on a HTTP 401 error

2002-07-01 Thread rsequeira


You will need to intercept the 401 response by the server. You could do
this using Valves, I suppose. I haven't done this (it has been on my to-do
list for some time now). Download the source code. Have a look at
org.apache.catalina.Valve.

RS






[EMAIL PROTECTED] on 07/01/2002 04:12:20 AM

Please respond to "Tomcat Users List" <[EMAIL PROTECTED]>

To:[EMAIL PROTECTED]
cc:

Subject:customized page on a HTTP 401 error

Hello,

How can I set a customized page on a HTTP 401 error (authentication) -
after unsuccessful authentication?

If I try to set it using  users never receive the
authentication form... They only get this customized error page.

Thank you very much and have a very good day!

Andre POWROZNIK

 DISCLAIMER 
"This e-mail and any attachments thereto may contain information
which is confidential and/or protected by intellectual property
rights and are intended for the sole use of the recipient(s) named above.
Any use of the information contained herein (including, but not limited to,

total or partial reproduction, communication or distribution in any form)
by persons other than the designated recipient(s) is prohibited.
If you have received this e-mail in error, please notify the sender either
by telephone or by e-mail and delete the material from any computer.
Thank you for your cooperation."


--
To unsubscribe, e-mail:   <
mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <
mailto:[EMAIL PROTECTED]>










--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Authentication

2002-06-25 Thread rsequeira


There's DIGEST method. But I've never implemented that. So I cannot speak
much about that. In addition, I suppose the browsers need to support the
DIGEST method too.

RS





"Mike Hulse" <[EMAIL PROTECTED]> on 06/25/2002 02:04:14 PM

Please respond to "Tomcat Users List" <[EMAIL PROTECTED]>

To:"Tomcat Users List" <[EMAIL PROTECTED]>
cc:

Subject:Re: Authentication

Thanks that worked good.  Just one other question.  Do you know
any other   other than BASIC and FORM or where
there is greater detail of the values allowed?


-Original Message-
From: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
To: Tomcat Users List <[EMAIL PROTECTED]>
Date: Tuesday, June 25, 2002 1:21 PM
Subject: Re: Authentication


>
>See your   and  tags in your
>webapplications web.xml file and TC\conf\tomcat-users.xml file.
>
>RS
>
>
>
>
>
>
>
>"Mike Hulse" <[EMAIL PROTECTED]> on 06/25/2002 12:07:56 PM
>
>Please respond to "Tomcat Users List" <[EMAIL PROTECTED]>
>
>To:"Tomcat Users List" <[EMAIL PROTECTED]>
>cc:
>
>Subject:Authentication
>
>Is there some kind of smiple authentication in tomcat 4.0.4 that is
similar
>
>to the Apache authentication:
>
>
>   AuthName machineID
>   AuthType Basic
>   PasswdFile %%SYSTEM%%
>   GroupFile /www/groupFile.txt
>   require group Mygroup
>   Order allow,deny
>   Allow from all
>
>
>If not how would you secure one jsp or one servlet without adding code to
>to the servlet or jsp?   If that's possible.
>
>Thanks for any advice,
>
>Mike
>
>
>
>--
>To unsubscribe, e-mail:   <
>mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail: <
>mailto:[EMAIL PROTECTED]>
>
>
>
>
>
>
>
>
>
>
>--
>To unsubscribe, e-mail:   <
mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail: <
mailto:[EMAIL PROTECTED]>
>


--
To unsubscribe, e-mail:   <
mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <
mailto:[EMAIL PROTECTED]>










--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Authentication

2002-06-25 Thread rsequeira


See your   and  tags in your
webapplications web.xml file and TC\conf\tomcat-users.xml file.

RS







"Mike Hulse" <[EMAIL PROTECTED]> on 06/25/2002 12:07:56 PM

Please respond to "Tomcat Users List" <[EMAIL PROTECTED]>

To:"Tomcat Users List" <[EMAIL PROTECTED]>
cc:

Subject:Authentication

Is there some kind of smiple authentication in tomcat 4.0.4 that is similar

to the Apache authentication:


   AuthName machineID
   AuthType Basic
   PasswdFile %%SYSTEM%%
   GroupFile /www/groupFile.txt
   require group Mygroup
   Order allow,deny
   Allow from all


If not how would you secure one jsp or one servlet without adding code to
to the servlet or jsp?   If that's possible.

Thanks for any advice,

Mike



--
To unsubscribe, e-mail:   <
mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <
mailto:[EMAIL PROTECTED]>










--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: R: how do I set up a information distribution list

2002-06-25 Thread rsequeira


Thanks for the tip. I'll make a note of that. I was hoping someone had some
experience in setting up a mailing list. Will the person who setup this
list please step forward :-)

Thanks
RS




Alessio Fiore <[EMAIL PROTECTED]> on 06/25/2002 09:16:51 AM

Please respond to "Tomcat Users List" <[EMAIL PROTECTED]>

To:"'Tomcat Users List'" <[EMAIL PROTECTED]>
cc:

Subject:R: how do I set up a information distribution list

Hi, I've a suggestion: to make easy for the account manager to fill the
body
with right tags without remembering them, you could use in your HTML page a
textarea with some buttons that, in their "onClick" event manager, call a
JavaScript function that appends the tag string to the area-field value.


-Messaggio originale-
Da: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Inviato: martedì 25 giugno 2002 15.59
A: Tomcat Users List
Oggetto: how do I set up a information distribution list



Has anyone used Apache James? I have a bunch of email address that I need
to send emails, regularly. Something like a mailing list. More specifically
a one way mailing list (or information dissemination list). The email
should be customized with the person's name, etc. The person's details
could either be stored in a database (or in an excel spreadsheet). I
suppose I'd need to write an application to support the customized email.
Or maybe not if someone has better ideas. Please remember the email text
could change for every newsletter.

 I think I've a general idea (let me know if this is how it should be
   done):

An account manager uses a webpage to write up the body. And uses home-grown
   tags at certain places in the body (such as , where the
   recepient's name ought to appear). This goes to the webserver which
   parses the email, queries the DB, plugs in the required info, and
   then sends out the email to the bunch of email address. Ofcourse,
   the marketing dept, or whoever writes up the emails ought to know
   the tag names.

Has anyone done this? If someone could provide some tips or point me in the
   right direction, I'd appreciate it.

Thanks

RS



--
To unsubscribe, e-mail:

For additional commands, e-mail:




- Disclaimer -
This email and any attachments thereto may contain information which is
confidential and/or protected by intellectual property rights and are
intended for the sole use of the recipient(s) named above. Any use of the
information contained herein (including, but not limited to, total or
partial reproduction, communication or distribution in any form) or the
taking of any action in reliance on the contents, by persons other than the
designated recipient(s) is strictly prohibited.

If you have received this email in error, please notify the sender either
by
telephone or by email and delete the material from any computer.

Thank you for your cooperation.



--
To unsubscribe, e-mail:   <
mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <
mailto:[EMAIL PROTECTED]>










--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




how do I set up a information distribution list

2002-06-25 Thread rsequeira


Has anyone used Apache James? I have a bunch of email address that I need
to send emails, regularly. Something like a mailing list. More specifically
a one way mailing list (or information dissemination list). The email
should be customized with the person's name, etc. The person's details
could either be stored in a database (or in an excel spreadsheet). I
suppose I'd need to write an application to support the customized email.
Or maybe not if someone has better ideas. Please remember the email text
could change for every newsletter.

 I think I've a general idea (let me know if this is how it should be
   done):

An account manager uses a webpage to write up the body. And uses home-grown
   tags at certain places in the body (such as , where the
   recepient's name ought to appear). This goes to the webserver which
   parses the email, queries the DB, plugs in the required info, and
   then sends out the email to the bunch of email address. Ofcourse,
   the marketing dept, or whoever writes up the emails ought to know
   the tag names.

Has anyone done this? If someone could provide some tips or point me in the
   right direction, I'd appreciate it.

Thanks

RS



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: We need some help...

2002-06-21 Thread rsequeira


If you detail the problem here, someone might be able to help.
RS





"Noyce, Ben W." <[EMAIL PROTECTED]> on 06/21/2002 04:02:18 PM

Please respond to "Tomcat Users List" <[EMAIL PROTECTED]>

To:"Tomcat Users List" <[EMAIL PROTECTED]>
cc:

Subject:We need some help...

We have an Apache 1.3/Tomcat 4/SSL problem that just won't quit.  Does
anyone out there know an expert consultant on this topic that would be
willing to fly to Denver, CO (USA) and spend some time
debugging/configuring this problem?

Thanks in advance.

BWN










--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Can't run JSP Samples on new Tomcat 4.0.3 install

2002-06-14 Thread rsequeira


tools.jar. Sorry! Slip of the finger :-)

RS




[EMAIL PROTECTED] on 06/14/2002 05:08:09 PM

Please respond to "Tomcat Users List" <[EMAIL PROTECTED]>

To:"Tomcat Users List" <[EMAIL PROTECTED]>
cc:

Subject:Re: Can't run JSP Samples on new Tomcat 4.0.3 install


This has been discussed quite a few times :-) The solution is to either
copy the tool.jar under JAVA_HOME/lib to CATALINA_HOME\common\lib or add it
to the classpath.

RS





"Bernard Landman" <[EMAIL PROTECTED]> on 06/14/2002 03:54:16 PM

Please respond to "Tomcat Users List" <[EMAIL PROTECTED]>

To:"[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
cc:

Subject:Can't run JSP Samples on new Tomcat 4.0.3 install


Folks,

I installed Tomcat 4.0.3 yesterday on an RS/6000 box running AIX 4.3.3;
there is
an IBM HTTP Server already running on the box (it is Version 1.3.19 of IHS,
and is based on the Apache HTTP Server - presumably V1.3). I ran into some
port
conflicts when I tried to start tomcat so I "added" 1 to all the port
numbers
in the conf file and then tomcat appeared to start and stop correctly.

I next tried to exercise the servlet and JSP samples and I found that all
the
servlet samples worked fine but none of the JSP samples worked at all. Each
JSP
sample produced an output similar to the following:


===

Apache Tomcat/4.0.3 - HTTP Status 500 - Internal Server Error





TYPE Exception report

MESSAGE Internal Server Error

DESCRIPTION The server encountered an internal error (Internal Server
Error) that
prevented it from fulfilling this request.

EXCEPTION

javax.servlet.ServletException: sun/tools/javac/Main
  at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:485)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
  at org.apache.catalina.core.ApplicationFilterChain.
internalDoFilter(ApplicationFilterChain.java:247)
  at org.apache.catalina.core.ApplicationFilterChain.
doFilter(ApplicationFilterChain.java:193)
.
.
  at org.apache.catalina.connector.http.HttpProcessor.
process(HttpProcessor.java(Compiled Code))
  at org.apache.catalina.connector.http.HttpProcessor.
run(HttpProcessor.java(Compiled Code))
  at java.lang.Thread.run(Thread.java:498)


ROOT CAUSE

java.lang.NoClassDefFoundError: sun/tools/javac/Main
  at org.apache.jasper.compiler.SunJavaCompiler.
compile(SunJavaCompiler.java(Compiled Code))
  at org.apache.jasper.compiler.Compiler.compile(Compiler.java(Compiled
Code))
  at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:552)
.
.
  at org.apache.catalina.connector.http.HttpProcessor.
process(HttpProcessor.java(Compiled Code))
  at org.apache.catalina.connector.http.HttpProcessor.
run(HttpProcessor.java(Compiled Code))
  at java.lang.Thread.run(Thread.java:498)

===


Since I am not yet a member of the illuminati, I cannot qickly determine
what
I failed to install or configure properly - and so any help would be
appreciated.
Incidentally there was a similar problem reported on 06/12 by pasiar at 13:
50:43;
in that case it was on a Linux box and an HTTP 404 was emitted.

Thanks in advance.

Bernie Landman








--
To unsubscribe, e-mail:   <
mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <
mailto:[EMAIL PROTECTED]>










--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Can't run JSP Samples on new Tomcat 4.0.3 install

2002-06-14 Thread rsequeira


This has been discussed quite a few times :-) The solution is to either
copy the tool.jar under JAVA_HOME/lib to CATALINA_HOME\common\lib or add it
to the classpath.

RS





"Bernard Landman" <[EMAIL PROTECTED]> on 06/14/2002 03:54:16 PM

Please respond to "Tomcat Users List" <[EMAIL PROTECTED]>

To:"[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
cc:

Subject:Can't run JSP Samples on new Tomcat 4.0.3 install


Folks,

I installed Tomcat 4.0.3 yesterday on an RS/6000 box running AIX 4.3.3;
there is
an IBM HTTP Server already running on the box (it is Version 1.3.19 of IHS,
and is based on the Apache HTTP Server - presumably V1.3). I ran into some
port
conflicts when I tried to start tomcat so I "added" 1 to all the port
numbers
in the conf file and then tomcat appeared to start and stop correctly.

I next tried to exercise the servlet and JSP samples and I found that all
the
servlet samples worked fine but none of the JSP samples worked at all. Each
JSP
sample produced an output similar to the following:


===

Apache Tomcat/4.0.3 - HTTP Status 500 - Internal Server Error




TYPE Exception report

MESSAGE Internal Server Error

DESCRIPTION The server encountered an internal error (Internal Server
Error) that
prevented it from fulfilling this request.

EXCEPTION

javax.servlet.ServletException: sun/tools/javac/Main
  at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:485)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
  at org.apache.catalina.core.ApplicationFilterChain.
internalDoFilter(ApplicationFilterChain.java:247)
  at org.apache.catalina.core.ApplicationFilterChain.
doFilter(ApplicationFilterChain.java:193)
.
.
  at org.apache.catalina.connector.http.HttpProcessor.
process(HttpProcessor.java(Compiled Code))
  at org.apache.catalina.connector.http.HttpProcessor.
run(HttpProcessor.java(Compiled Code))
  at java.lang.Thread.run(Thread.java:498)


ROOT CAUSE

java.lang.NoClassDefFoundError: sun/tools/javac/Main
  at org.apache.jasper.compiler.SunJavaCompiler.
compile(SunJavaCompiler.java(Compiled Code))
  at org.apache.jasper.compiler.Compiler.compile(Compiler.java(Compiled
Code))
  at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:552)
.
.
  at org.apache.catalina.connector.http.HttpProcessor.
process(HttpProcessor.java(Compiled Code))
  at org.apache.catalina.connector.http.HttpProcessor.
run(HttpProcessor.java(Compiled Code))
  at java.lang.Thread.run(Thread.java:498)

===


Since I am not yet a member of the illuminati, I cannot qickly determine
what
I failed to install or configure properly - and so any help would be
appreciated.
Incidentally there was a similar problem reported on 06/12 by pasiar at 13:
50:43;
in that case it was on a Linux box and an HTTP 404 was emitted.

Thanks in advance.

Bernie Landman








--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




  1   2   3   4   >