How to? debug large session size? drill down and tools / over 400K is too be for replication

2007-10-16 Thread hanasaki jiji
users@tomcat.apache.org

We have an application that has a pretty large session size ( 400K).
This is causing issues for scalability and makes session replication
for fail over quite impractical.

What can be used to drill down live and generate a runtime report
(perhaps a graph too) showing what http session attributes are the
memory hog?  We are looking to see not just the attribute that is the
issue but perhaps the aggregate (or aggregate of aggregate) of the
session attributes and their size in memory.

Thanks!

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



Re: How to? debug large session size? drill down and tools / over 400K is too be for replication

2007-10-16 Thread hanasaki jiji
I should have mentioned we are using websphere ... looks like there is
no support
http://forums.yourkit.com/viewtopic.php?t=216highlight=ibm

Other thoughts?

On 10/16/07, Milanez, Marcus [EMAIL PROTECTED] wrote:
 We use Lambda Probe

 http://www.lambdaprobe.org

 here


 -Mensagem original-
 De: hanasaki jiji [mailto:[EMAIL PROTECTED]
 Enviada em: terça-feira, 16 de outubro de 2007 15:53
 Para: users@tomcat.apache.org
 Assunto: How to? debug large session size? drill down and tools / over 400K 
 is too be for replication

 users@tomcat.apache.org

 We have an application that has a pretty large session size ( 400K).
 This is causing issues for scalability and makes session replication for fail 
 over quite impractical.

 What can be used to drill down live and generate a runtime report (perhaps a 
 graph too) showing what http session attributes are the memory hog?  We are 
 looking to see not just the attribute that is the issue but perhaps the 
 aggregate (or aggregate of aggregate) of the session attributes and their 
 size in memory.

 Thanks!

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


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



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



Re: How to? debug large session size? drill down and tools / over 400K is too be for replication

2007-10-16 Thread hanasaki jiji
We run across tomcat, websphere, BEA and currently are only working in
websphere.  Others to follow.

On 10/16/07, hanasaki jiji [EMAIL PROTECTED] wrote:
 I should have mentioned we are using websphere ... looks like there is
 no support
 http://forums.yourkit.com/viewtopic.php?t=216highlight=ibm

 Other thoughts?

 On 10/16/07, Milanez, Marcus [EMAIL PROTECTED] wrote:
  We use Lambda Probe
 
  http://www.lambdaprobe.org
 
  here
 
 
  -Mensagem original-
  De: hanasaki jiji [mailto:[EMAIL PROTECTED]
  Enviada em: terça-feira, 16 de outubro de 2007 15:53
  Para: users@tomcat.apache.org
  Assunto: How to? debug large session size? drill down and tools / over 400K 
  is too be for replication
 
  users@tomcat.apache.org
 
  We have an application that has a pretty large session size ( 400K).
  This is causing issues for scalability and makes session replication for 
  fail over quite impractical.
 
  What can be used to drill down live and generate a runtime report (perhaps 
  a graph too) showing what http session attributes are the memory hog?  We 
  are looking to see not just the attribute that is the issue but perhaps the 
  aggregate (or aggregate of aggregate) of the session attributes and their 
  size in memory.
 
  Thanks!
 
  -
  To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, 
  e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
  -
  To start a new topic, e-mail: users@tomcat.apache.org
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


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



Re: Testing Tomcat - HELP

2007-08-09 Thread hanasaki
telnet to the port its running on or hit it with the browser.

Dean Lonsdale wrote:
 
 Does anyone know how to verify whether Tomcat is operational using a
 browser or other wise !!!
 
 Help appreciated ...many thanks
 
 
 
 
 Regards / Cordialement / Mit freundlichen Grüßen
 
 -- 
 IBM   *Dean Lonsdale* _Dean Lonsdale/UK/IBM_ 
 mailto:Dean
 Lonsdale/UK/IBM  [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
   Systems Architect
 IBM Systems  Technology Group
 Senior Accredited IT Specialist
 Tivoli Certified Consultant
 
 IBM UK Ltd, Washway Road, Manchester  Ext: 07834 252463
 Mobex: 264328 +44 (0)1253 731299
 View the Systems Group website at
 http://w3-03.ibm.com/systemstechnology/index.html
 
 
 
 
 
 
 
 /
 /
 
 /Unless stated otherwise above:
 IBM United Kingdom Limited - Registered in England and Wales with number
 741598.
 Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU/
 
 
 
 
 
 

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



Re: Recovery from OutOfMemoryError?

2007-07-31 Thread hanasaki
1. you may have a memory leak in your code... do some profiling
2. check out abandoned sessions that are due to expire perhaps you can
lower the session timeout and that will make some memory available earlier.

Craig Berry wrote:
 Our Tomcat-based app suffers from occasional OutOfMemoryErrors.  We have
 found that we need to manually restart Tomcat when these happen;
 frequently the Tomcat process appears to be working after the error, but
 is actually crippled in one way or another by the loss of some key
 thread.
 
  
 
 We would very much like to trigger an automated Tomcat restart when an
 OOME occurs.  Does anyone have suggestions on the cleanest, safest way
 to arrange this?  (We're running Tomcat as a normal process under Linux,
 if that matters.)
 
  
 

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



Re: kerberos,JAAS, and container managed security

2007-07-28 Thread hanasaki
Take a look at CAS.  It has the added value of:
- keeps passwords away from your container and its applications
- gives SSO !
- integrates well behind apache for a balancer and other mod_*
- works with other languages
- existing application integration

I have used it with success and replaced an expensive commercial
proprietary application for SSO with it.

http://www.ja-sig.org/products/cas/

email me off line if you need a hand with this.

- [EMAIL PROTECTED]

joe bob wrote:
 Hi,
 I would like to use kerberos in conjunction with container managed
 security. I have configured a JAASRealm with Sun's kerberos LoginModule and
 a basic scenario works fine. I.e, if a user accesses a protected URL, he is
 challenged with a login screen. The user/password he enters is validated
 against the kerberos system correctly.
 
 We now have a requirement to honor kerberos password policies, for example
 the mandatory-password-change flag. When set, the user gets a valid
 ticket
 but all he can do is change his password. I tried doing this via my
 standard
 configuration and the kerberos LoginModule throws an exception indicating
 the user must change his password but the tomcat form authentication logic
 seems to treat this as an invalid login and just redirects the user to the
 error page with no way for the application to differentiate this situation.
 
 Is it possible to honor kerberos password policies using JAAS and container
 managed security? I have looked through the source and the answer appears
 no. JAASRealm seems to catch various exceptions (e.g.
 AccountExpiredException) but in the end just returns null to
 FormAuthenticator as the authenticate() signature does not allow any
 checked
 exceptions to be thrown and the FormAuthenticator implementation doesn't
 seem to anticipate any runtime exceptions from this method.
 
 I would much prefer to use container managed security for the usual reasons
 but also to get (clustered) SSO support. Does anyone see something I missed
 or have any ideas? Can I use the standard SSO valve with application
 managed
 security somehow? Seems doubtful.
 
 Thanks.
 Kireet [EMAIL PROTECTED]
 

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



libs in a maven repository for embedded?

2007-07-17 Thread hanasaki
I looked around but have not found any maven repository that has the
tomcat jars / build that can be used when building a java application
that embeds tomcat... Anything out there?

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



Re: Cannot send mail from servlet

2007-07-17 Thread hanasaki
Running in tomcat 6.x?

Any chance there is a jndi and smtp config setup in tomcat that is
messing with this?  Post the code for the sendMail method and any custom
code it calls.

review your web.xml and tomcat configurations for smtp related stuff.

David Smith wrote:
 Seems to me the important part of this is the sendMail method.  Could
 you post that?
 
 --David
 
 Fabio Rossi wrote:
 Hi. I'll try to explain my problem, that is about sending an email
 with JavaMail API from a servlet. Anyway, it seems to be a more
 general problem i'm having with servlet. I'm using Tomcat 5.0. I've a
 servlet that process a request, writes to a database some info and
 then send a email with a summary to the user.

 In the method sendMail() i send the email. I test the method in
 isolation and it works fine. I can connect to my local smtp server and
 send the email...
 Here's the code:

 do some stuff.and send the email

 logInfo(Sending summary email);
 sendMail(summary.toString(),clientEmail);
 response.setStatus(HttpServletResponse.SC_OK);
 logInfo(Email sent);
 }catch(Exception e){
 logError(Error sending summary mail to address:
 +clientEmail,e);
 e.printStackTrace();
 }
 }

 No exceptions are throwed...but it seems that the servlet doesn't
 wait for the method. When i test the method in isolation, it takes
 some seconds before the mail is sent, and in the smtp local server
 application i can see that a connection has been established.
 If i call the same code (the sendMail method) from the servlet i get
 Email Sent log messagge immediately and the servlet exit..like if
 the message was sent. But nothing has happened (no connection is
 established with the local smtp server) and no exception is thrown..


 Anyone can help me?


-

 -
 L'email della prossima generazione? Puoi averla con la nuova Yahoo! Mail
   
 
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

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



Re: Help required setting up smtp server

2007-07-17 Thread hanasaki
Your configuration will look for the hostname mailhost in the dns
domain of the same machine that the server runs on...  If this is a unix
box with a /etc/hosts of:
127.0.0.1 localhost mailhost
it would explain this behavor.

Try changing the mailhost in the config file to smtpabcd and see if
the error remains the same.  If so, the config is not coming from where
you think it is :)

Propes, Barry L wrote:
 could it be your provider or network is blocking port 25 connections through 
 apps other than the standard email app used? i.e. your company might block 
 port 25 if not being accessed by LotusMail or Outlook.
 
 -Original Message-
 From: Mike Peremsky [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, July 04, 2007 11:28 AM
 To: users@tomcat.apache.org
 Subject: Help required setting up smtp server
 
 
 I followed the example in the Tomcat JNDI docs on setting up and sending an 
 email (C:\apache-tomcat-5.5.23\webapps\tomcat-docs\jndi-resources-howto.html) 
 but am still receiving a javax.mail.MessagingException: Could not connect to 
 SMTPhost: localhost, port: 25


   The strange thing is that I set the mail.smtp.host=mailhost in the 
 resource definition.
 
  
 -
 Food fight? Enjoy some healthy debate
 in the Yahoo! Answers Food  Drink QA.
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

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



Re: Read and write inside WEB-INF

2007-07-15 Thread hanasaki
Confirmed.  A real pain in the bum... I do not let my folks use unpacked
WARs.  There were once a bunch of guys that put custom log files in the
unpacked WAR directory... shame shame.

David Smith wrote:
 Only works for unpacked web applications.  If you attempt getRealPath
 from inside a packed war file it will return null.
 
 --David
 
 
 hanasaki wrote:
 Hmmm does this work for packed WAR's or only Unpacked... ?

 Jacob Rhoden wrote:
  
 Much Appreciated! Thanks.

 Edoardo Panfili wrote:

 Jacob Rhoden ha scritto:
  
  what is the correct way to find the location of your WEB-INF
 directory (or your apps directory for that matter).

 
 try with
 String x = this.getServletContext().getRealPath(WEB-INF);
   
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

 

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

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

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



Re: Read and write inside WEB-INF

2007-07-14 Thread hanasaki
Hmmm does this work for packed WAR's or only Unpacked... ?

Jacob Rhoden wrote:
 Much Appreciated! Thanks.
 
 Edoardo Panfili wrote:
 Jacob Rhoden ha scritto:
  what is the correct way to find the location of your WEB-INF
 directory (or your apps directory for that matter).

 try with
 String x = this.getServletContext().getRealPath(WEB-INF);
 
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

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



Re: Tomcat Version problem

2007-07-05 Thread hanasaki
Did you per-complile the JPS's? - don't - in this case
Ensure the jsp version you coded against is the same as that supported
by the hosting company.

Jon Wingfield wrote:
 You are using jdk1.5 features (autoboxing, for example ) in your JSP pages.
 Early versions of the 5.5 tree bundled a jsp compiler (JDT) which didn't
 support these new language features.
 Later versions bundled an updated version of the compiler...
 For deploying on 5.5.9 just get rid of your autoboxing:
 
 int thing = 4;
 request.setAttribute(stuff, new Integer(thing));
 
 instead of
 
 request.setAttribute(stuff, thing);
 
 Regards,
 
 Jon
 
 Girish Havaldar wrote:
 On 05/07/07, Girish Havaldar [EMAIL PROTECTED] wrote:
 Hi,

 we have an application developed using the following components as
 listed
 below

 mysql 5.0.27
 jdk 1.5.0_06
 jre  1.5.0_06
 tomcat5.5.20
 Apache   2
 phpMyAdmin   2.9.2
 Servlets  2.3
 JSP1.2

  Our application is showing errors when deployed on tomcat 5.5.9(the
 Hosting company is using Tomcat 5.5.9.)
 ERROR:
 type Exception report

 message

 description The server encountered an internal error () that prevented it
 from fulfilling this request.

 exception

 org.apache.jasper.JasperException: Unable to compile class for JSP

 An error occurred at line: 67 in the jsp file: /classification.jsp
 Generated servlet error:
 Type mismatch: cannot convert from Integer to int

 An error occurred at line: 67 in the jsp file: /classification.jsp
 Generated servlet error:
 The method add(int, Object) in the type ArrayList is not applicable
 for the
 arguments (int)

 An error occurred at line: 226 in the jsp file: /classification.jsp
 Generated servlet error:
 The method setAttribute(String, Object) in the type ServletRequest is not
 applicable for the arguments (String, int)

 An error occurred at line: 263 in the jsp file: /classification.jsp
 Generated servlet error:
 The method setAttribute(String, Object) in the type ServletRequest is not
 applicable for the arguments (String, int)


org.apache.jasper.compiler.DefaultErrorHandler.javacError(
 DefaultErrorHandler.java:84)
org.apache.jasper.compiler.ErrorDispatcher.javacError(
 ErrorDispatcher.java:328)
org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java
 :397)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:288)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)
org.apache.jasper.JspCompilationContext.compile(
 JspCompilationContext.java:556)
org.apache.jasper.servlet.JspServletWrapper.service(
 JspServletWrapper.java:293)
   
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

 note The full stack trace of the root cause is available in the Apache
 Tomcat/5.5.9 logs.


  so what is the solution.
 Also plz send me info abt hosting comapny who can support the above
 specification.


 Thank you,

 Girish S.Havaldar.


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

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



Re: Tomcat Version problem

2007-07-05 Thread hanasaki
What do you mean v r?  Please do not post shortcut English ;)

When you get things working... Please post the solution to the problem
so we can all learn.

Girish Havaldar wrote:
 Thnks for the resplone, now v r doing that only
 
 GS.
 
 On 06/07/07, hanasaki [EMAIL PROTECTED] wrote:
 Did you per-complile the JPS's? - don't - in this case
 Ensure the jsp version you coded against is the same as that supported
 by the hosting company.

 Jon Wingfield wrote:
  You are using jdk1.5 features (autoboxing, for example ) in your JSP
 pages.
  Early versions of the 5.5 tree bundled a jsp compiler (JDT) which
 didn't
  support these new language features.
  Later versions bundled an updated version of the compiler...
  For deploying on 5.5.9 just get rid of your autoboxing:
 
  int thing = 4;
  request.setAttribute(stuff, new Integer(thing));
 
  instead of
 
  request.setAttribute(stuff, thing);
 
  Regards,
 
  Jon
 
  Girish Havaldar wrote:
  On 05/07/07, Girish Havaldar [EMAIL PROTECTED] wrote:
  Hi,
 
  we have an application developed using the following components as
  listed
  below
 
  mysql 5.0.27
  jdk 1.5.0_06
  jre  1.5.0_06
  tomcat5.5.20
  Apache   2
  phpMyAdmin   2.9.2
  Servlets  2.3
  JSP1.2
 
   Our application is showing errors when deployed on tomcat 5.5.9(the
  Hosting company is using Tomcat 5.5.9.)
  ERROR:
  type Exception report
 
  message
 
  description The server encountered an internal error () that
 prevented it
  from fulfilling this request.
 
  exception
 
  org.apache.jasper.JasperException: Unable to compile class for JSP
 
  An error occurred at line: 67 in the jsp file: /classification.jsp
  Generated servlet error:
  Type mismatch: cannot convert from Integer to int
 
  An error occurred at line: 67 in the jsp file: /classification.jsp
  Generated servlet error:
  The method add(int, Object) in the type ArrayList is not applicable
  for the
  arguments (int)
 
  An error occurred at line: 226 in the jsp file: /classification.jsp
  Generated servlet error:
  The method setAttribute(String, Object) in the type ServletRequest
 is not
  applicable for the arguments (String, int)
 
  An error occurred at line: 263 in the jsp file: /classification.jsp
  Generated servlet error:
  The method setAttribute(String, Object) in the type ServletRequest
 is not
  applicable for the arguments (String, int)
 
 
 org.apache.jasper.compiler.DefaultErrorHandler.javacError(
  DefaultErrorHandler.java:84)
 org.apache.jasper.compiler.ErrorDispatcher.javacError(
  ErrorDispatcher.java:328)

 org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java
  :397)
 org.apache.jasper.compiler.Compiler.compile(Compiler.java:288)
 org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
 org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)
 org.apache.jasper.JspCompilationContext.compile(
  JspCompilationContext.java:556)
 org.apache.jasper.servlet.JspServletWrapper.service(
  JspServletWrapper.java:293)
 
 
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
 javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 
  note The full stack trace of the root cause is available in the Apache
  Tomcat/5.5.9 logs.
 
 
   so what is the solution.
  Also plz send me info abt hosting comapny who can support the above
  specification.
 
 
  Thank you,
 
  Girish S.Havaldar.
 
 
 
 
 
  -
  To start a new topic, e-mail: users@tomcat.apache.org
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 

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


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

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



ROOT.xml fails to install context (tomcat 6.0.14)

2007-06-11 Thread hanasaki
I have an unpacked WAR at the docBase  in the below ROOT.xml
ROOT.xml is in:
./conf/Catalina/localhost/ROOT.xml

** The issue is that host doesnt seem to be found...  tomcat links
like http://localhost:8080/examples work fine.


== telnet to the server / by hand ==
telnet localhost 8080
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
GET /index.html HTTP/1.0

HTTP/1.1 400 No Host matches server name localhost
Server: Apache-Coyote/1.1
Date: Mon, 11 Jun 2007 17:34:30 GMT
Connection: close

Connection closed by foreign host.

==  java version ==
java -version
java version 1.6.0
Java(TM) SE Runtime Environment (build 1.6.0-b105)
Java HotSpot(TM) Client VM (build 1.6.0-b105, mixed mode, sharing)


== ROOT.xml == Context
cookies=true
crossContext=false
debug=0
docBase=/project
!--
docBase=${catalina.home}/ROOT
--
path=/app1
privileged=false
reloadable=true


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



Re: ROOT.xml fails to install context (tomcat 6.0.13)

2007-06-11 Thread hanasaki
oops.. had the wrong server version (it is 6.0.13) not .14

hanasaki wrote:
 I have an unpacked WAR at the docBase  in the below ROOT.xml
 ROOT.xml is in:
   ./conf/Catalina/localhost/ROOT.xml
 
 ** The issue is that host doesnt seem to be found...  tomcat links
 like http://localhost:8080/examples work fine.
 
 
 == telnet to the server / by hand ==
 telnet localhost 8080
 Trying 127.0.0.1...
 Connected to localhost.
 Escape character is '^]'.
 GET /index.html HTTP/1.0
 
 HTTP/1.1 400 No Host matches server name localhost
 Server: Apache-Coyote/1.1
 Date: Mon, 11 Jun 2007 17:34:30 GMT
 Connection: close
 
 Connection closed by foreign host.
 
 ==  java version ==
 java -version
 java version 1.6.0
 Java(TM) SE Runtime Environment (build 1.6.0-b105)
 Java HotSpot(TM) Client VM (build 1.6.0-b105, mixed mode, sharing)
 
 
 == ROOT.xml == Context
 cookies=true
 crossContext=false
 debug=0
 docBase=/project
 !--
 docBase=${catalina.home}/ROOT
 --
 path=/app1
 privileged=false
 reloadable=true
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

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



controling resource and cpu hogging

2006-12-30 Thread hanasaki
We have several domains that each have several WAR files deployed.  How
can misbehaving deployed WAR's be identified and 1. killed off (maybe an
issue if they hold onto threads or instance references when undeploy or
stop is called) 2. be controlled (ie: throttle/cap a specific domain
and/or WAR deployment in CPU consumption).

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



servlet.jar - where is it from?

2005-12-19 Thread hanasaki
Hello,

I notice Sun no longer has the Servlet.jar available for download off
the java.sun.com website.

Where does the Tomcat 5 Servlet.jar come from?

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



how are relative pages/images retrieved?

2005-12-19 Thread hanasaki
How are relative resources found?

ex:
the page
http://localhost/a/b/c
has an href to
../images/image1.gif

how is it that the websever knows to convert this into
http://localhost/a/b/images.gif




This seems to imply some sort of state in the server but this cannot be
the case because it works in apache, tomcat and all webservers even if
noone is logged in and thus has a session that could keep track of the
last page served.

thanks

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