Download file Problem - 404 error

2006-01-30 Thread DEEPA M N
  Hi 
  I m using Jdk1.5 and Tomcat 5.0.28 for my proj. I have written a code which 
can download a file from the server. The code is compiling properly. I pasted 
the .class file in the webapps/DownloadFile/WEB-INF/classes/  
  Also i hav written web.xml in the WEB-INF folder. 
  After running a appln, i get 404 Resource not found error.
   
  Before i hav worked on servlet and tomcat, i was not getting such issues 
before. But now i m facing such type of issues, i need to solve it as early as 
possible. Here is a web.xml lines:
   
  ?xml version=1.0 encoding=ISO-8859-1?
  !DOCTYPE web-app
PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
http://java.sun.com/dtd/web-app_2_3.dtd;
  web-app
  display-nameTomcat Documentation/display-name
  description
 Tomcat Documentation.
  /description
  
servlet
servlet-nameDownloadFiles/servlet-name
servlet-classDownloadFiles/servlet-class
/servlet
  
 servlet-mapping
servlet-nameDownloadFiles/servlet-name
url-pattern/servlet/DownloadFiles/url-pattern
/servlet-mapping
/web-app
   
  Pls do let me know how can i solve this prob.
  I always appreciate ur help.
  Thanks in advance.
   
  Deepa



-
 Jiyo cricket on Yahoo! India cricket

Re: Download file Problem - 404 error

2006-01-30 Thread Bob Hall
--- DEEPA M N [EMAIL PROTECTED] wrote:

   Hi 
   I m using Jdk1.5 and Tomcat 5.0.28 for my proj. I
 have written a code which can download a file from
 the server. The code is compiling properly. I pasted
 the .class file in the
 webapps/DownloadFile/WEB-INF/classes/  
   Also i hav written web.xml in the WEB-INF folder. 
   After running a appln, i get 404 Resource not
 found error.

   Before i hav worked on servlet and tomcat, i was
 not getting such issues before. But now i m facing
 such type of issues, i need to solve it as early as
 possible. Here is a web.xml lines:

   ?xml version=1.0 encoding=ISO-8859-1?
   !DOCTYPE web-app
 PUBLIC -//Sun Microsystems, Inc.//DTD Web
 Application 2.3//EN
 http://java.sun.com/dtd/web-app_2_3.dtd;
   web-app
   display-nameTomcat Documentation/display-name
   description
  Tomcat Documentation.
   /description
   
 servlet
 servlet-nameDownloadFiles/servlet-name
 servlet-classDownloadFiles/servlet-class
 /servlet
   
  servlet-mapping
 servlet-nameDownloadFiles/servlet-name

 url-pattern/servlet/DownloadFiles/url-pattern
 /servlet-mapping
 /web-app

   Pls do let me know how can i solve this prob.
   I always appreciate ur help.
   Thanks in advance.

   Deepa

Deepa,

Your servlet must be in a package to work with Java
1.4
and greater.

After placing DownloadFiles in a package:
(com.deepa.servlet)

servlet
  servlet-nameDownloadFiles/servlet-name
 
servlet-classcom.deepa.servlet.DownloadFiles/servlet-class
/servlet

- Bob

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



Re: From Java to C#, ASP.NET [Off Topic]

2006-01-30 Thread Endre Stølsvik
On Sun, 29 Jan 2006, Leon Rosenberg wrote:

| On 1/29/06, David Tonhofer, m-plify S.A. [EMAIL PROTECTED] wrote:
|  Another 2c: When doing Java, you may want to stay clear of J2EE. I have
|  heard it's the Wooly Mammoth framework and I have so far worked happily
|  without it. I recommend a look at Bruce Tate's pamphlet here:
| 
|  http://www.oreilly.com/catalog/bfljava/
| 
| 
| Stay clear of J2EE? Not really possible, especially with your book
| recommendation, hibernate and spring are heavily J2EE based. Or did
| you mean EJB?

How are they J2EE based?

Regards,
Endre.

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



Re: Download file Problem - 404 error

2006-01-30 Thread DEEPA M N
  

Hi 
  Thank u, I did as u mentioned. But wen i run the appln now, i m getting this 
error.
   
  Http status 500:
  type Exception report
  message 
  description The server encountered an internal error () that prevented it 
from fulfilling this request.
  exception 
   
  javax.servlet.ServletException: Error allocating a servlet instance
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
 org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
 org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
 org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
 java.lang.Thread.run(Thread.java:595)
   
root cause 
java.lang.NoClassDefFoundError: com/deepa/servlet/DownloadFiles (wrong name: 
DownloadFiles)   java.lang.ClassLoader.defineClass1(Native Method)   
java.lang.ClassLoader.defineClass(ClassLoader.java:620)   
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)   
org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1634)
   
org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:860)
   
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1307)
   
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1189)
   
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)   
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)   
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)   
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
  
 org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)   
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
   java.lang.Thread.run(Thread.java:595)  

Pls let me know y i m getting like this.

Thanks in advance

Deepa





-
 Jiyo cricket on Yahoo! India cricket

Re: Download file Problem - 404 error

2006-01-30 Thread DEEPA M N


Hi Anto Paul,
   
  Ya I extended HttpServlet method and also service() method.
  I also tried wit packages, but also i m getting some sort of error.
  Pls help me.
   
  I greatly welcome ur help.
  Thank u
  Deepa


-
 Jiyo cricket on Yahoo! India cricket

Re: Download file Problem - 404 error

2006-01-30 Thread vineesh kumar
deepa,
  plz send ur web.xml and server.xml on each change.so that we can hav
a look on that and understand the problem
regards
  vineesh

On 1/30/06, DEEPA M N [EMAIL PROTECTED] wrote:


 Hi Anto Paul,

   Ya I extended HttpServlet method and also service() method.
   I also tried wit packages, but also i m getting some sort of error.
   Pls help me.

   I greatly welcome ur help.
   Thank u
   Deepa


 -
  Jiyo cricket on Yahoo! India cricket


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



Re: Download file Problem - 404 error

2006-01-30 Thread vineesh kumar
Deepa,
  plz check the following things
 is ur class is public?
 whether the class name is  DownloadFiles.class itself?
 also check the access permissions of the class and tomcat
directory if ur on a X'nix machine

On 1/30/06, vineesh kumar [EMAIL PROTECTED] wrote:
 deepa,
   plz send ur web.xml and server.xml on each change.so that we can hav
 a look on that and understand the problem
 regards
   vineesh

 On 1/30/06, DEEPA M N [EMAIL PROTECTED] wrote:
 
 
  Hi Anto Paul,
 
Ya I extended HttpServlet method and also service() method.
I also tried wit packages, but also i m getting some sort of error.
Pls help me.
 
I greatly welcome ur help.
Thank u
Deepa
 
 
  -
   Jiyo cricket on Yahoo! India cricket
 


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



Re: Authentication crisis

2006-01-30 Thread Luis Gervaso
the real problem is that we can't do anything before or after authentication

using a filter solve this problem with url pattern j_securty_check

but this is avoided because this authentication method must be equal basic
authentication?

this makes real authentication scenarios where we need create user session
with application data an autentic hell, adventages with container-based
applications turn back 0 and we need implements a custom authenticator, what
i see: i real subproject because security concerns is very important

ok, this is code of application, but the tomcat architecture avoid us (the
application programmers use the api of authentication in order to use these
type of methods) because of these jar are in server/lib folder

how you can see I'm very frustrated with this,

ok this is J2EE?

this is simple?

kindest regards



2006/1/30, Luis Gervaso [EMAIL PROTECTED]:

 yes there is an entry in web.xml - security-constraint

 and the user is authenticated using doPost() method of LoginServlet

 regards

 2006/1/30, deepak  [EMAIL PROTECTED]:
 
  It seems that the request.getUserPrincipal() will return non-null value
  only
  when you request the protected resource secured by security-constraint
   in
  web.xml even if the user sent the request has been authenticated.
 
  - Original Message -
  From: Luis Gervaso  [EMAIL PROTECTED]
  To: Struts Users Mailing List user@struts.apache.org; Tomcat Users
  List  users@tomcat.apache.org
  Sent: Saturday, January 28, 2006 2:18 AM
  Subject: Authentication crisis
 
 
  Hello
 
  I need how to put subject information returned of lc.login() in webapp
  context
  int order to invoke getUserPrincipal and not retur null
 
  LoginServlet.java
 
  protected void doPost(HttpServletRequest req, HttpServletResponse res)
  throws ServletException, IOException {
 
  String username = req.getParameter(j_username);
  String password = req.getParameter(j_password);
  String host  = req.getHeader(Host);
  MyCallbackHandler cbh = new
  MyCallbackHandler(username,password,host);
  try {
  LoginContext lc = new LoginContext(websecure,cbh);
  lc.login();
  Subject s = lc.getSubject();
   log.info(s.getPrincipals().toString());
  ses.setAttribute(authcs.subject,lc.getSubject());
  //log.info(req.getUserPrincipal().getName());
  RequestDispatcher rd = req.getRequestDispatcher (test.jsp
  );
  rd.forward(req,res);
 
  } catch (LoginException e) {
  e.printStackTrace();
  //log.warning(e.getMessage());
  }
  }
 
 
  source: test.jsp
  %
  out.println(User:  + request.getParameter(user) + br);
  out.println(Pass (clear):  + request.getParameter(pass) +
  br);
  out.println(User Principal:  + request.getUserPrincipal() +
  br);
  out.println(Remote User:  + request.getRemoteUser());
  %
 
  output : test.jsp
  User: null
  Pass (clear): null
  User Principal: null
  Remote User: null
 
  --
  Un saludo
 
 
  --DISCLAIMER--
  This message is for the named person's use only. It may contain
  confidential, proprietary or legally privileged information. No
  confidentiality or privilege is waived or lost by any mistransmission.
 
  If you receive this message in error, please immediately delete it and
  all copies of it from your system, destroy any hard copies of it and
  notify the sender. You must not, directly or indirectly, use, disclose,
  distribute, print, or copy any part of this message if you are not the
  intended recipient.
 
  Lisle Technology Partners Pvt. Ltd. and any of its subsidiaries each
  reserve the right to monitor all e-mail communications through its
  networks.
 
  Any views expressed in this message are those of the
  individual sender, except where the message states otherwise and the
  sender is authorized to state them to be the views of any such entity.
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


 --
 Un saludo




--
Un saludo


non US-ASCII query parameters

2006-01-30 Thread David Delbecq
Hello
i experienced a problem using tomcat-5.5.7
It does not understand non us-ascii query parameter.
It seems it does decode all %XX as an index in US-ASCII table.
How can i change it? I want tomcat to decode it as either ISO-8859-1 either 
UTF-8 (any of those are ok, but obviously us-assci is not because of 
accentuated characters in request).

Thanks for help.

-- 
David Delbecq
Royal Meteorological Institute of Belgium

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



RE: non US-ASCII query parameters

2006-01-30 Thread Tim Lucia
Are you using the request dumper valve?  This will cause decoding problems,
as describe here: http://tomcat.apache.org/tomcat-5.5-doc/config/valve.html

The Request Dumper Valve is a useful tool in debugging interactions with
a client application (or browser) that is sending HTTP requests to your
Tomcat-based server. When configured, it causes details about each request
processed by its associated Engine, Host, or Context to be logged to the
Logger that corresponds to that container.

WARNING: Using this valve has side-effects. The output from this valve
includes any parameters included with the request. The parameters will be
decoded using the default platform encoding. Any subsequent calls to
request.setCharacterEncoding() within the web application will have no
effect.



Tim

-Original Message-
From: David Delbecq [mailto:[EMAIL PROTECTED] 
Sent: Monday, January 30, 2006 6:19 AM
To: Tomcat Users List
Subject: non US-ASCII query parameters


Hello
i experienced a problem using tomcat-5.5.7
It does not understand non us-ascii query parameter.
It seems it does decode all %XX as an index in US-ASCII table. How can i
change it? I want tomcat to decode it as either ISO-8859-1 either 
UTF-8 (any of those are ok, but obviously us-assci is not because of 
accentuated characters in request).

Thanks for help.

-- 
David Delbecq
Royal Meteorological Institute of Belgium

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



Re: non US-ASCII query parameters

2006-01-30 Thread David Delbecq
Le Lundi 30 Janvier 2006 12:54, Tim Lucia a écrit :
 Are you using the request dumper valve?  This will cause decoding problems,
 as describe here: http://tomcat.apache.org/tomcat-5.5-doc/config/valve.html
 
 The Request Dumper Valve is a useful tool in debugging interactions with
 a client application (or browser) that is sending HTTP requests to your
 Tomcat-based server. When configured, it causes details about each request
 processed by its associated Engine, Host, or Context to be logged to the
 Logger that corresponds to that container.
 
 WARNING: Using this valve has side-effects. The output from this valve
 includes any parameters included with the request. The parameters will be
 decoded using the default platform encoding. Any subsequent calls to
 request.setCharacterEncoding() within the web application will have no
 effect.
 
 
 
 Tim
 

No, am not.
Also, i set the URI Encoding to utf-8 in connector but with no success. 
Strangely, setting URI Encoding works on linux developper station but not on 
production environment.
Both are using the same .jsp. 

However we have 2 access_log valves running on production, which we don't have 
in test environment.
But as those two valves are not supposed to decode the parameter, it shouldn't 
influence decoding process (they only check headers)

 -Original Message-
 From: David Delbecq [mailto:[EMAIL PROTECTED] 
 Sent: Monday, January 30, 2006 6:19 AM
 To: Tomcat Users List
 Subject: non US-ASCII query parameters
 
 
 Hello
 i experienced a problem using tomcat-5.5.7
 It does not understand non us-ascii query parameter.
 It seems it does decode all %XX as an index in US-ASCII table. How can i
 change it? I want tomcat to decode it as either ISO-8859-1 either 
 UTF-8 (any of those are ok, but obviously us-assci is not because of 
 accentuated characters in request).
 
 Thanks for help.
 

-- 
David Delbecq
Royal Meteorological Institute of Belgium

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



Re: Download file Problem - 404 error

2006-01-30 Thread Petr Hadraba
Deepa,

The java.lang.NoClassDefFoundError: com/deepa/servlet/DownloadFiles
(wrong name: DownloadFiles) error message means that you have class
DownloadFiles in the package directory structure
com.deepa.servlet.DownloadFiles, but you ommit the package directive
in the source code, OR you have correct package directive, but the
.class file place is wrong.

The ClassLoader methods check, if the directory structure matches the
full class name (with the package).

Have a nice time

PETR


On 1/30/06, DEEPA M N [EMAIL PROTECTED] wrote:


 Hi
   Thank u, I did as u mentioned. But wen i run the appln now, i m getting 
 this error.

   Http status 500:
   type Exception report
   message
   description The server encountered an internal error () that prevented it 
 from fulfilling this request.
   exception

   javax.servlet.ServletException: Error allocating a servlet instance
  org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
  org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
  org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
  
 org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
  org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
  
 org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
  java.lang.Thread.run(Thread.java:595)

 root cause
 java.lang.NoClassDefFoundError: com/deepa/servlet/DownloadFiles (wrong name: 
 DownloadFiles)   java.lang.ClassLoader.defineClass1(Native Method)   
 java.lang.ClassLoader.defineClass(ClassLoader.java:620)   
 java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)   
 org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1634)

 org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:860)

 org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1307)

 org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1189)

 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118) 
   org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)   
 org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)   
 org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
  org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)   
 org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
java.lang.Thread.run(Thread.java:595)

 Pls let me know y i m getting like this.

 Thanks in advance

 Deepa





 -
  Jiyo cricket on Yahoo! India cricket



Re: non US-ASCII query parameters

2006-01-30 Thread David Delbecq
Ok, found out. Tomcat needed a restart after changing the value of URI 
Encoding in connector.

Le Lundi 30 Janvier 2006 13:09, David Delbecq a écrit :
 Le Lundi 30 Janvier 2006 12:54, Tim Lucia a écrit :
  Are you using the request dumper valve?  This will cause decoding problems,
  as describe here: http://tomcat.apache.org/tomcat-5.5-doc/config/valve.html
  
  The Request Dumper Valve is a useful tool in debugging interactions with
  a client application (or browser) that is sending HTTP requests to your
  Tomcat-based server. When configured, it causes details about each request
  processed by its associated Engine, Host, or Context to be logged to the
  Logger that corresponds to that container.
  
  WARNING: Using this valve has side-effects. The output from this valve
  includes any parameters included with the request. The parameters will be
  decoded using the default platform encoding. Any subsequent calls to
  request.setCharacterEncoding() within the web application will have no
  effect.
  
  
  
  Tim
  
 
 No, am not.
 Also, i set the URI Encoding to utf-8 in connector but with no success. 
 Strangely, setting URI Encoding works on linux developper station but not on 
 production environment.
 Both are using the same .jsp. 
 
 However we have 2 access_log valves running on production, which we don't 
 have in test environment.
 But as those two valves are not supposed to decode the parameter, it 
 shouldn't influence decoding process (they only check headers)
 
  -Original Message-
  From: David Delbecq [mailto:[EMAIL PROTECTED] 
  Sent: Monday, January 30, 2006 6:19 AM
  To: Tomcat Users List
  Subject: non US-ASCII query parameters
  
  
  Hello
  i experienced a problem using tomcat-5.5.7
  It does not understand non us-ascii query parameter.
  It seems it does decode all %XX as an index in US-ASCII table. How can i
  change it? I want tomcat to decode it as either ISO-8859-1 either 
  UTF-8 (any of those are ok, but obviously us-assci is not because of 
  accentuated characters in request).
  
  Thanks for help.
  
 

-- 
David Delbecq
Royal Meteorological Institute of Belgium

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



Re: From Java to C#, ASP.NET [Off Topic]

2006-01-30 Thread Leon Rosenberg
On 1/30/06, Endre Stølsvik [EMAIL PROTECTED] wrote:
 On Sun, 29 Jan 2006, Leon Rosenberg wrote:

 | On 1/29/06, David Tonhofer, m-plify S.A. [EMAIL PROTECTED] wrote:
 |  Another 2c: When doing Java, you may want to stay clear of J2EE. I have
 |  heard it's the Wooly Mammoth framework and I have so far worked happily
 |  without it. I recommend a look at Bruce Tate's pamphlet here:
 | 
 |  http://www.oreilly.com/catalog/bfljava/
 | 
 |
 | Stay clear of J2EE? Not really possible, especially with your book
 | recommendation, hibernate and spring are heavily J2EE based. Or did
 | you mean EJB?

 How are they J2EE based?


JDBC is part of J2EE. JTA is part of J2EE. Servlets are part of J2EE.
And spring states itself as:

Welcome to the home of the Spring Framework.  As the leading
full-stack Java/J2EE application framework, Spring delivers
significant benefits for many projects, reducing development effort
and costs while improving test coverage and quality.


 Regards,
 Endre.


Leon

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



FW: Connector problem

2006-01-30 Thread Earnie Dyke
Greetings all,
 
We have the following AJP connector configuration:
 
!-- A AJP 1.3 Connector on port 8009 --
Connector port=8009 address=${jboss.bind.address}
enableLookups=false redirectPort=8443 debug=6
protocol=AJP/1.3 scheme=https isSecure=true/
 
I expected that when my application does a request.getScheme() I will get back 
HTTPS but I am not, I get HTTP. Do I not understand the purpose of scheme=?
 
The problem we are trying to solve is this:
 
1. Loadbalancer receives HTTPS request, terminates SSL and forwards HTTP 
request to IIS server
2. IIS Server, using ISAPI Redirector, forwards request to JBoss/AJP Connector
3. When a Struts action is configured as a redirect the url returned to the 
browser is HTTP not HTTPS.
 
Any help solving this would be greatly appreciated.
 
Earnie!
Earnest Dyke 
IS Technical Designer 
The Virginia Retirement System 
Richmond, Va 
804-649-8059 ext 359 



Re: From Java to C#, ASP.NET [Off Topic]

2006-01-30 Thread Jess Holle

Leon Rosenberg wrote:

On 1/30/06, Endre Stølsvik [EMAIL PROTECTED] wrote:
  

On Sun, 29 Jan 2006, Leon Rosenberg wrote:

| On 1/29/06, David Tonhofer, m-plify S.A. [EMAIL PROTECTED] wrote:
|  Another 2c: When doing Java, you may want to stay clear of J2EE. I have
|  heard it's the Wooly Mammoth framework and I have so far worked happily
|  without it. I recommend a look at Bruce Tate's pamphlet here:
| 
|  http://www.oreilly.com/catalog/bfljava/
| 
|
| Stay clear of J2EE? Not really possible, especially with your book
| recommendation, hibernate and spring are heavily J2EE based. Or did
| you mean EJB?

How are they J2EE based?


JDBC is part of J2EE. JTA is part of J2EE. Servlets are part of J2EE.
And spring states itself as:

Welcome to the home of the Spring Framework.  As the leading
full-stack Java/J2EE application framework, Spring delivers
significant benefits for many projects, reducing development effort
and costs while improving test coverage and quality.
  
Some app server marketeers would have you believe that J2EE == EJB and 
Sun has not been too vocal about correcting this.


The fact is that EJBs are just the most complex piece of J2EE.  App 
server vendors love to get you all wrapped up in them because unlike 
most everything else in J2EE you need a full blown app server to do 
them, so you have to choose one of them once you place EJBs in your 
solution.  Given that they're the most complex, they're also a piece 
that some, if not many, folk truly don't need -- and a piece that has 
taken until J2EE 5 to get right (e.g. usable) in the spec (assuming it 
is finally right there).


--
Jess Holle

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



RE: tomcat 5.5.15 - does JULI required a host tag defined realm?

2006-01-30 Thread Raymond, Craig (US SSA)
Remy, Boris,
I have downloaded and built to the latest nightly build, and the logging
is working correctly.

Thanks, Craig.


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



How do I find if something is an isapi_redirect.dll bug?

2006-01-30 Thread David Thielen
Hi;

 

According to Microsoft tech support, the fact that a request for a .faces
file is not showing up in the IIS log is probably a bug in the isapi filter.
How can I determine if this is the problem - and if so, how can I get it
fixed?

 

Thanks - dave

 

 

David Thielen

www.windwardreports.com

303-499-2544

 



RE: From Java to C#, ASP.NET [Off Topic]

2006-01-30 Thread Tim Lucia
Hibernate is not J2EE based.  It just so happens it provides a EJB-free
solution to a servlet container environment.  Hibernate does not require
J2EE. 

Tim

-Original Message-
From: Leon Rosenberg [mailto:[EMAIL PROTECTED] 
Sent: Monday, January 30, 2006 8:04 AM
To: Tomcat Users List
Subject: Re: From Java to C#, ASP.NET [Off Topic]

On 1/30/06, Endre Stølsvik [EMAIL PROTECTED] wrote:
 On Sun, 29 Jan 2006, Leon Rosenberg wrote:

 | On 1/29/06, David Tonhofer, m-plify S.A. [EMAIL PROTECTED] wrote:
 |  Another 2c: When doing Java, you may want to stay clear of J2EE. I 
 |  have heard it's the Wooly Mammoth framework and I have so far 
 |  worked happily without it. I recommend a look at Bruce Tate's pamphlet
here:
 | 
 |  http://www.oreilly.com/catalog/bfljava/
 | 
 |
 | Stay clear of J2EE? Not really possible, especially with your book 
 | recommendation, hibernate and spring are heavily J2EE based. Or did 
 | you mean EJB?

 How are they J2EE based?


JDBC is part of J2EE. JTA is part of J2EE. Servlets are part of J2EE.
And spring states itself as:

Welcome to the home of the Spring Framework.  As the leading full-stack
Java/J2EE application framework, Spring delivers significant benefits for
many projects, reducing development effort and costs while improving test
coverage and quality.


 Regards,
 Endre.


Leon

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



Where is the latest isapi_redirect.dll documentation?

2006-01-30 Thread David Thielen
Hi;

 

Where is the latest version of isapi_redirect.dll and the documentation for
it? I've found several plaves on the jakarta site but the all seem to be out
of date and have dead links.

 

Thanks - dave

 

 

David Thielen

www.windwardreports.com

303-499-2544

 



RE: Re: APR Connector Shutdown Problem

2006-01-30 Thread Fenlason, Josh
Is there no intent to fix this issue?  Where would I need to make that
patch?  Thanks.
,
Josh.

 -Original Message-
 From: news [mailto:[EMAIL PROTECTED] On Behalf Of Bill Barker
 Sent: Friday, January 27, 2006 8:59 PM
 To: users@tomcat.apache.org
 Subject: Re: APR Connector Shutdown Problem
 
 
 Yeah, the difference is that Httpd calls:
   apr_socket_opt_set(s, APR_SO_REUSEADDR, one);
 on the Socket before binding it.  That allows it to bind even 
 though there 
 are still half-closed sockets on systems like Solaris.
 
 About the only work-around is to hack the tcnative code, and 
 recompile it.
 
 Fenlason, Josh [EMAIL PROTECTED] wrote in message 
 news:[EMAIL PROTECTED]
 I added the Listener you mentioned to server.xml, but I'm 
 still seeing the issue.  The problem is happening when run 
 the shutdown.sh.  I can understand if things aren't all clean 
 and tidy if Tomcat crashed, but you shouldn't have to wait 4 
 minutes to restart Tomcat after a planned shutdown.  Apache 
 doesn't work like that.  Any other suggestions on how to get 
 this to shutdown properly?  Thanks in advance. , Josh.
 
  -Original Message-
  From: Mladen Turk [mailto:[EMAIL PROTECTED]
  Sent: Friday, January 27, 2006 1:24 AM
  To: Tomcat Users List
  Subject: Re: APR Connector Shutdown Problem
 
 
  Fenlason, Josh wrote:
   I'm running into a problem with the APR connector not 
 shutting down 
   properly.  Tomcat runs fine and there are no errors on
  shutdown, but if
   I shut Tomcat down and start it up again I get a socket 
 bind failed 
   error in the catalina log (attached).  I have to wait for several 
   minutes between shutdown and startup for Tomcat to be able
  to startup
   correctly.  If I run Tomcat without the APR connector, I
  don't have this
   issue.  This does not occur on Windows, but does on 
 Solaris and AIX. 
   Has anyone else seen this? One thing I noticed is that the first 
   thing logged on
  shutdown is an
   AjpAprProtocol pause entry, but there is no shutdown,
  stop or destroy.
   Is there any chance the APR connector is just getting
  paused and nothing
   is actually stopping it?
   Any help would be greatly appreciated.  Thanks in advance.
 
 
  I suppose you have:
  Listener 
 className=org.apache.catalina.core.AprLifecycleListener / 
  in your server.xml
 
  But of course it doesn't guarantee it will be executed in 
 all cases, 
  if the JVM crashes for example. On Solaris it can take up 
 to 4 minutes 
  until the OS recycles the zombie socket.
  You can use:
  ndd -set /dev/tcp tcp_time_wait_interval 6
  To lower that value.
 
  APR does not try to fool the OS like JVM, but rather behaves like 
  Apache httpd.
 
  Regards,
  Mladen.
 
 
 
  
 -
  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]



Re: From Java to C#, ASP.NET [Off Topic]

2006-01-30 Thread Duong BaTien
On Mon, 2006-01-30 at 07:32 -0600, Jess Holle wrote:
 Leon Rosenberg wrote:
  On 1/30/06, Endre Stølsvik [EMAIL PROTECTED] wrote:

  On Sun, 29 Jan 2006, Leon Rosenberg wrote:
 
  | On 1/29/06, David Tonhofer, m-plify S.A. [EMAIL PROTECTED] wrote:
  |  Another 2c: When doing Java, you may want to stay clear of J2EE. I have
  |  heard it's the Wooly Mammoth framework and I have so far worked happily
  |  without it. I recommend a look at Bruce Tate's pamphlet here:
  | 
  |  http://www.oreilly.com/catalog/bfljava/
  | 
  |
  | Stay clear of J2EE? Not really possible, especially with your book
  | recommendation, hibernate and spring are heavily J2EE based. Or did
  | you mean EJB?
 
  How are they J2EE based?
  
  JDBC is part of J2EE. JTA is part of J2EE. Servlets are part of J2EE.
  And spring states itself as:
 
  Welcome to the home of the Spring Framework.  As the leading
  full-stack Java/J2EE application framework, Spring delivers
  significant benefits for many projects, reducing development effort
  and costs while improving test coverage and quality.

 Some app server marketeers would have you believe that J2EE == EJB and 
 Sun has not been too vocal about correcting this.
 
 The fact is that EJBs are just the most complex piece of J2EE.  App 
 server vendors love to get you all wrapped up in them because unlike 
 most everything else in J2EE you need a full blown app server to do 
 them, so you have to choose one of them once you place EJBs in your 
 solution.  Given that they're the most complex, they're also a piece 
 that some, if not many, folk truly don't need -- and a piece that has 
 taken until J2EE 5 to get right (e.g. usable) in the spec (assuming it 
 is finally right there).
 
This will be changed very soon with Ejb3 and the Ejb3 container can be
embedded. With a careful planning, we can develop with POJO, and then
add annotations for using Ejb3 persistence framework. To make this
distinction, some vendors start to use JEE (instead of J2EE) to stand
for your selected embedded libraries. Now we can mix and match different
services from different vendors. I see this is the real strength of Java
thanks to standards and open sources.

BaTien

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



Re: From Java to C#, ASP.NET [Off Topic]

2006-01-30 Thread Jess Holle

Tim Lucia wrote:

Hibernate is not J2EE based.  It just so happens it provides a EJB-free
solution to a servlet container environment.  Hibernate does not require
J2EE.
  

Nice terminology quandry that the app server marketeers have dug for us.

They've painted a world of J2EE == EJB and J2EE == the only (good) 
way to do Java in the enterprise and transitively EJB == the only 
(good) way to do Java in the enterprise.


Certainly and unquestionably one of the first two equalities is patently 
incorrect.  I'd argue that the first is incorrect and that J2EE implies 
use of Java and any Java enterprise APIs that are appropriate for the 
problem.  If somehow, none were appropriate (doubtful if one considers 
JDBC as both a J2SE and J2EE technology), then I'd still consider that J2EE.


The problem is that by creating a clear lie in their definitions, app 
server marketeers have left the Java industry in a silly quandry.  This 
affects things ranging from surveys of developers asking Which of the 
following do you use? (a) J2EE, (b) .NET, ... where developers may say 
no, I don't use J2EE as I don't use EJBs to a silly stigma against 
things like Hibernate both when they claim they're J2EE based (for 
having too much to do with EJB and app server complexity) and when 
they're not (for not being standards based).


A fine hole dug by the marketeers...

--
Jess Holle

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



Need tomcat build for Fedora 3 on x86

2006-01-30 Thread Ralph.Grothe
Hi Tomcat List Subscribers,

I need to install a recent Tomcat on a Fedora 3 Linux server as a
Heartbeat application.

I didn't manage the vanilla Tomcat installation (should you be
interested to know why read below)

Therefore I would like to ask you the Tomcat Gurus,
how to do a Tomcat build and installation from the Java sources
(into x86 bytecode?).

When I run Ant on the provided build.xml Makefile from the
tarball 
like mentioned in the quick install summary for Tomcat
on another building host that can access the SV repository via an
HTTP proxy I get the following:


# ant
Buildfile: build.xml

check.source:

get.source:

build:

proxyflags:

download:
 [copy] Copying 1 file to
/usr/local/src/apache-tomcat-5.5.15-src
 [copy] Copying 1 file to /usr/share/java

setproxy:

testexist:
 [echo] Testing  for
/usr/share/java/commons-beanutils-1.7.0/commons-beanutils.jar

downloadgz:
  [get] Getting:
http://archive.apache.org/dist/jakarta/commons/beanutils/binaries
/commons-beanuti
ls-1.7.0.tar.gz
  [get] Error getting
http://archive.apache.org/dist/jakarta/commons/beanutils/binaries
/commons-be
anutils-1.7.0.tar.gz to /usr/share/java/file.tar.gz

BUILD FAILED
/usr/local/src/apache-tomcat-5.5.15-src/build.xml:48: The
following error occurred while executing this line:
/usr/local/src/apache-tomcat-5.5.15-src/build/build.xml:1834: The
following error occurred while executing this line:
/usr/local/src/apache-tomcat-5.5.15-src/build/build.xml:1962:
java.net.ConnectException: Connection timed out

Total time: 3 minutes 9 seconds




What I don't understand is why I need to check out the Tomcat
sources from a Subversion repository
at all where I already have downloaded the whole tarball?
What on earth did they cram into the 20 MB and over 3000 files
then if not the Tomcat Java code?

# gzip -l /opt/iso/tomcat/apache-tomcat-5.5.15-src.tar.gz 
 compresseduncompressed  ratio uncompressed_name
402563922261760  81.9%
/opt/iso/tomcat/apache-tomcat-5.5.15-src.tar
 
# tar ztf /opt/iso/tomcat/apache-tomcat-5.5.15-src.tar.gz |wc -l
3024


Sorry, I know how to fiddle with ordinary Makefiles
but have no notion of Ant.
Could I surround say the checkout target block in the build.xml
by !-- ... -- comment markers
just to skip this step?
How can Ant be invoked for certain install targets?


I've configured my SV client to use that proxy of ours,
and at least can I list some stuff from the main apache
repository


# svn ls http://svn.apache.org/repos/asf/
ant/
apr/
avalon/
beehive/
cocoon/
commons/
db/
directory/
excalibur/
forrest/
geronimo/
gump/
httpd/
ibatis/
incubator/
infrastructure/
jakarta/
james/
jcp/
lenya/
logging/
lucene/
maven/
myfaces/
perl/
planet/
portals/
spamassassin/
struts/
tcl/
tomcat/
webservices/
xalan/
xerces/
xml/
xmlbeans/
xmlgraphics/




Summary of an installation nightmare:

We already installed the ordinary Apache webserver from the
prebuilt Fedora RPMs
on an LVM LV whose VG was set up a DRBD device whose PV in turn
is a RAID 1 meta device
that consists of two equally partitioned SCSI disk marked as
autoraid (fd).
Pretty convoluted device stacking, isn't it?
But we need to make the apps ha with synced filesystem (ext3)
accross a dedicated private DRBD lan.
Since a webserver usually only produces logfiles (no WebDAV) this
seems like overkill,
but for customer access_logs are vital.

Heartbeat together with DRBD works perfectly for the webserver so
far.

This of course has nothing to do with Tomcat
but what makes things pretty nasty is that the cluster is in a
DMZ.
That's why we did only a minimalistic installation, 
naturally dismissing all fancy GUI or X and other redundant
stuff.

Life could have been that simple if the customer hadn't out of
the blue insisted on a Tomcat
installation.
Did I mention that I loathe GUIs? 
(and consequently most of Java stuff, why is no one writing Java
apps that are content with a CLI alone?)

First I tried installing Tomcat from the distributed Fedora 3
RPMs and was hit by a thousands of unfulfilled dependencies.
Then I downloaded a JDK from SUN, as well as Ant and what I
thought to be the Tomcat sources from
tomcat.apache.org (or was it Jarkata? Those Java Folks come up
with something new every week it seems)
 
When I tried to run the self-extracting-installing JDK bundle it
moaned that it couldn't start a GUI.
It said that it had a special -console switch for subborn
GUI-agnostic morons like me,
but when I applied it it pretended to not know this option.
(needles to sai that --console or -c or -C didn't help either)
Ah, yes there was another -silent option that at least produced
no further error messages 
but besides nothing else useful at all.

The firewall to the intranet drops any X highports.
Tunnelling via SSH (-X) also doesn't work since it's a oneway
into the DMZ.

Ok, next I tried installing that damned X to please the installer
which nearly drove me insane.
The RedHat Fedora package management 

RE: From Java to C#, ASP.NET [Off Topic]

2006-01-30 Thread Peter Crowther
 From: Jess Holle [mailto:[EMAIL PROTECTED] 
 Nice terminology quandry that the app server marketeers have 
 dug for us.
 
 They've painted a world of J2EE == EJB and J2EE == the only (good) 
 way to do Java in the enterprise and transitively EJB == the only 
 (good) way to do Java in the enterprise.

EJB implies J2EE, but the reverse implication does not hold.  That
recognition is enough to defeat the marketing spin.

- Peter

P.S. So far to day, I've spent about half the day developing in C# and
ASP.Net, and the other half developing in Java and JSP.  I find them
about as productive as each other, and neither as productive as one
would ideally like.

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



switch off tomcat version

2006-01-30 Thread Edward Quick

Hi,

I have a Tomcat set up in production, but when it errors with a 404 or 500, 
it reveals its version number at the bottom of the page. Is there any way to 
disable this?


Thanks,

Ed.



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



Re: Need tomcat build for Fedora 3 on x86

2006-01-30 Thread David Delbecq
Le Lundi 30 Janvier 2006 16:05, [EMAIL PROTECTED] a écrit :
 Hi Tomcat List Subscribers,
 
 I need to install a recent Tomcat on a Fedora 3 Linux server as a
 Heartbeat application.
 
 I didn't manage the vanilla Tomcat installation (should you be
 interested to know why read below)


download 
http://apache.be.proserve.nl/tomcat/tomcat-5/v5.5.15/bin/apache-tomcat-5.5.15.tar.gz
or go to tomcat website: download 5.x, Binary distribution, core (you might 
also be interested in the 'administration web application' which is a 
webapplication to manager tomcat configuration
tar -xvzf apache-tomcat-5.5.15.tar.gz
cd to tomcat dir
set JDK_HOME env variable to where you installed sun jdk (1.5 recommanded)
run bin/startup.sh
that's all, tomcat is running with output in logs/catalina.out


-- 
David Delbecq
Royal Meteorological Institute of Belgium

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



RE: Need tomcat build for Fedora 3 on x86

2006-01-30 Thread Ralph.Grothe
Hi Chuck,

thanks for the quick response.

Sorry for my misapprehension of the essence of a JVM and the so
called bytecode.
But in reality I have so far never seen such a thing as a Java
build once, run everywhere come true.
That's the reason for my silly question about some x86 bytecode.

Ok, I went again to the apache site and selected the binary core
of 5.5.15 from this URI
(my previous mistake was to have gone for the sources which must
have led me to the dubious subversion repository)

http://tomcat.apache.org/download-55.cgi

I hope the core stuff will suffice?

Will it be executable by my Java interpreter?

# java -version
java version 1.5.0_06
Java(TM) 2 Runtime Environment, Standard Edition (build
1.5.0_06-b05)
Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode,
sharing)


Do I simply have to untar the tarball into the Apache
DocumentRoot?
But I thought Tomcat was a Servlet Engine in its own right,
not needing to be piggy-backed on an Apache webserver?
So the startup.sh after some environment fiddling in server.xml
(or elsewhere)
should start that beast?

# tar ztf /opt/iso/tomcat/apache-tomcat-5.5.15.tar.gz |head
apache-tomcat-5.5.15/bin/catalina.sh
apache-tomcat-5.5.15/bin/digest.sh
apache-tomcat-5.5.15/bin/setclasspath.sh
apache-tomcat-5.5.15/bin/shutdown.sh
apache-tomcat-5.5.15/bin/startup.sh
apache-tomcat-5.5.15/bin/tool-wrapper.sh
apache-tomcat-5.5.15/conf/
apache-tomcat-5.5.15/conf/Catalina/
apache-tomcat-5.5.15/conf/Catalina/localhost/
apache-tomcat-5.5.15/conf/Catalina/localhost/host-manager.xml


 -Original Message-
 From: Caldarale, Charles R [mailto:[EMAIL PROTECTED]
 Sent: Monday, January 30, 2006 4:20 PM
 To: Tomcat Users List
 Subject: RE: Need tomcat build for Fedora 3 on x86
 
 
  From: [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED] 
  Subject: Need tomcat build for Fedora 3 on x86
  
  I didn't manage the vanilla Tomcat installation (should you
be
  interested to know why read below)
 
 Except that wasn't a vanilla Tomcat installation you 
 attempted, since
 it came from 3rd party, not a real Tomcat download.
 
  Therefore I would like to ask you the Tomcat Gurus,
  how to do a Tomcat build and installation from the Java
sources
  (into x86 bytecode?).
 
 You don't need to build Tomcat (other than the optional APR
connector)
 for any platform.  It's pure Java (except for APR), so the 
 binaries can
 be installed on any system that has a 1.4 or 1.5 JRE.  There's
no such
 thing as x86 bytecode - all .class files use Java bytecodes
and the
 JIT compilers built into every JVM turn those into native
instructions
 at run-time.
 
 Get the JRE from Sun, get Tomcat from apache.org, set
 -Djava.awt.headless=TRUE, and have at it.  No builds required.
 
  - Chuck
 
 
 THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE 
 PROPRIETARY
 MATERIAL and is thus for use only by the intended recipient. If
you
 received this in error, please contact the sender and delete 
 the e-mail
 and its attachments from all computers.
 

-

 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]



408 errors

2006-01-30 Thread scott soward
I have been searching for info about this error beyond
just the api and I have been unable to find much. Does
anyone have any suggestions on resolving this error,
or locations of documentation? I am using realms with
Tomcat 5.0.28 and get 408 errors on some client side
computers as they login. The problem seems isolated
enough to conclude that it may be specific to the
clients browser. However, I still need to figure what
they can do to avoid getting this error.
Thanks, 
Scott

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



RE: Need tomcat build for Fedora 3 on x86

2006-01-30 Thread Caldarale, Charles R
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] 
 Subject: RE: Need tomcat build for Fedora 3 on x86
 
 But in reality I have so far never seen such a thing as a Java
 build once, run everywhere come true.

Actually, I've never seen it fail, for pure Java, headless-compatible
programs.

 I hope the core stuff will suffice?

It should.  You might also want the admin package, since that's useful
for poking around inside Tomcat, but it's certainly not required.

 Will it be executable by my Java interpreter?
 java version 1.5.0_06

Yes.
 
 Do I simply have to untar the tarball into the Apache
 DocumentRoot?

You can put it wherever is appropriate for your environment.  You must
use a GNU-compatible untar program.

 But I thought Tomcat was a Servlet Engine in its own right,
 not needing to be piggy-backed on an Apache webserver?

That is correct.  You do not need to front-end Tomcat with httpd, unless
there are specific features of httpd that you want to use (e.g., load
balancing across multiple Tomcat instances).

 So the startup.sh after some environment fiddling in server.xml
 (or elsewhere) should start that beast?

Yes.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

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



Re: From Java to C#, ASP.NET [Off Topic]

2006-01-30 Thread Hans Sowa
Hi all

I want to mentioned that it is not important which API is used from JAVA to
say that your application is a J2EE application or not. The only two thinks
which count are 1) it is written in java (of course) and 2) it is a
distributed application.

The API itsels like EJB, JNDI, JDBC, Java Servlets, hibernate, spring, etc
is just to support the developer to develop a J2EE(distributed system) or
other application and not to prove that this is a J2EE application or not.

best regards
Hans

2006/1/30, Peter Crowther [EMAIL PROTECTED]:

  From: Jess Holle [mailto:[EMAIL PROTECTED]
  Nice terminology quandry that the app server marketeers have
  dug for us.
 
  They've painted a world of J2EE == EJB and J2EE == the only (good)
  way to do Java in the enterprise and transitively EJB == the only
  (good) way to do Java in the enterprise.

 EJB implies J2EE, but the reverse implication does not hold.  That
 recognition is enough to defeat the marketing spin.

 - Peter

 P.S. So far to day, I've spent about half the day developing in C# and
 ASP.Net, and the other half developing in Java and JSP.  I find them
 about as productive as each other, and neither as productive as one
 would ideally like.

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




--
mfg Hans Sowa
mailto:[EMAIL PROTECTED]


AJP13 Connector question

2006-01-30 Thread Dieter Schicker

Hi,

I'm new to this list so please point me to the right address if this is 
off-topic here. Thanks.


I got a question concerning the ajp13 connector (I run Apache 2.0.54 and 
Tomcat 5.0 with mod_jk2).


I want requests to (Apache) http://server/edu/fedora/search* to be 
mapped to (Tomcat) http://anotherserver:8082/fedora/search.


I already defined a mapping in my configuration, but my problem is that 
the requests get forwarded to http://another:8082/_edu_/fedora/search 
and produce a ...not found... error in Tomcat.


= My question is: How can I get rid of the edu?

I also attached my apache configuration snippet and my workers2.properties.

Many thanks in advance
Didi

workers2.properties:
#
# workers.properties
# by didi, 2006-01-19

[config:]
file=/etc/apache2/workers2.properties
debug=0
debugEnv=0

[uriMap:]
info=Maps the requests. Options: debug
debug=0

# Alternate file logger
[logger.file:0]
level=DEBUG
file=/var/log/apache2/jk2.log

[shm:]
info=Scoreboard. Required for reconfiguration and status with multiprocess
servers

file=/var/log/apache2/jk2.shm
size=100
debug=0
disabled=0

[lb:loadbalancer]
info=Fake loadbalancer fuer Tomcat gams connector
debug = 0

[lb:loadbalancer2]
info=Fake loadbalancer fuer Tomcat edu connector
debug = 0

[channel.socket:143.50.30.45:8009]
info=Fedora Gams Tomcat instance
debug = 1
tomcatId=tomcat
group=loadbalancer

[channel.socket:143.50.30.45:8010]
info=Fedora Edu Tomcat instance
debug = 1
tomcatId=tomcat
group=loadbalancer2

apache-configuration:

  Location /edu/fedora
 JkUriSet group loadbalancer2
   /Location
   Location /edu/fedora/*
 JkUriSet group loadbalancer2
   /Location
   Location /images/*
 JkUriSet group loadbalancer2
   /Location



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



RE: From Java to C#, ASP.NET [Off Topic]

2006-01-30 Thread Caldarale, Charles R
 From: Hans Sowa [mailto:[EMAIL PROTECTED] 
 Subject: Re: From Java to C#, ASP.NET [Off Topic]
 
 I want to mentioned that it is not important which API is 
 used from JAVA to say that your application is a J2EE 
 application or not. The only two thinks which count are 
 1) it is written in java (of course) and 2) it is a
 distributed application.

 That doesn't jibe with any use of the term distributable that I'm
familiar with; perhaps you're using it in an unusual sense?

J2EE is a large defined set of APIs and behaviors, so I think it is, in
fact, the use of those APIs that determines whether or not a given
application is J2EE-based or not.  The question is somewhat moot, since
it's difficult not to use J2EE in some fashion in anything but trivial
applications.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

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



Re: From Java to C#, ASP.NET [Off Topic]

2006-01-30 Thread Leon Rosenberg
On 1/30/06, Tim Lucia [EMAIL PROTECTED] wrote:
 Hibernate is not J2EE based.  It just so happens it provides a EJB-free
 solution to a servlet container environment.  Hibernate does not require
 J2EE.

I think hibernate supports JTA and JDBC? Ok, JDBC isn't J2EE since 3.0
but was before. (Actually it should become J2EE in 4.0, but this was
changed).
But JTA is J2EE as well as JMX, isn't it?

 Tim
Leon.

But actually it doesn't play a role..., just another crutch to keep
relational databases in business :-)

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



RE: From Java to C#, ASP.NET [Off Topic]

2006-01-30 Thread Tim Lucia
You support my point.  Hibernate is a JDBC-based, JTA-aware,
object-relational-mapping framework for Java.  I say JTA-aware because you
are not required to use JTA for transactions just because you use Hibernate
(you can, but you are not required to.)  It is perfectly valid and
reasonable to write a Java application (desktop) which uses Hibernate,
and/or JDBC, without touching any J2EE APIs.  A SQL database browsing tool
(http://squirrel-sql.sourceforge.net/ comes immediately to mind) is a
perfect example of such an application.

Tim

-Original Message-
From: Leon Rosenberg [mailto:[EMAIL PROTECTED] 
Sent: Monday, January 30, 2006 12:18 PM
To: Tomcat Users List
Subject: Re: From Java to C#, ASP.NET [Off Topic]

On 1/30/06, Tim Lucia [EMAIL PROTECTED] wrote:
 Hibernate is not J2EE based.  It just so happens it provides a 
 EJB-free solution to a servlet container environment.  Hibernate does 
 not require J2EE.

I think hibernate supports JTA and JDBC? Ok, JDBC isn't J2EE since 3.0 but
was before. (Actually it should become J2EE in 4.0, but this was changed).
But JTA is J2EE as well as JMX, isn't it?

 Tim
Leon.

But actually it doesn't play a role..., just another crutch to keep
relational databases in business :-)

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



[ANN] TomcatProbe 1.0.8b is available to download

2006-01-30 Thread Vlad.Ilyschenko
Fellow Tomcat users,

I am pleased to announce version 1.0.8b of TomcatProbe. This release
features support for Oracle datasources, new session attribute browser
view, user interface improvements and bug fixes.

Full release note can be found here:
http://www.tomcatprobe.org/d/latest.shtml

The official home page of Tomcat probe is http://www.tomcatprobe.org

Live demo site: http://www.tomcatprobelive.com (u:demo, p:demo)

I have also created a little how-to on Oracle datasource configuration
for Tomcat just because I have had hard time working it out.
http://www.tomcatprobe.org/d/oracle.shtml

Any questions please do ask!




The information contained in this email message may be confidential. If you are 
not the intended recipient, any use, interference with, disclosure or copying 
of this material is unauthorised and prohibited. Although this message and any 
attachments are believed to be free of viruses, no responsibility is accepted 
by Informa for any loss or damage arising in any way from receipt or use 
thereof.  Messages to and from the company are monitored for operational 
reasons and in accordance with lawful business practices. 
If you have received this message in error, please notify us by return and 
delete the message and any attachments.  Further enquiries/returns can be sent 
to [EMAIL PROTECTED]


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



RE: OutOfMemoryError - how to increase heap size

2006-01-30 Thread Stracchino, Peri
Not sure about when using init.d and/or running from netbeans, but
generaly you need to use the catalina.bat file if starting tomcat from
the startup.bat (add the line 'set CATALINA_OPTS=-msxxxm -mm' where
xxx represents the minimum and maximum values you want) or, if you are
running it as a windows service, use the Configure Tomcat interface
(right click on your tomcat icon or go to your start menu) and go to the
java  tab, then set the initial and maximum memory fields. 

-Original Message-
From: Aparna Ramakrishnan [mailto:[EMAIL PROTECTED] 
Sent: 30 January 2006 15:15
To: tomcat list
Subject: OutOfMemoryError - how to increase heap size

Hello,
I use a Asterisk-JAVA API program which on a random basis, calls a
Servlet, using Tomcat5, in order to set forwarding of calls through an
Asterisk PBX Server. Two threads run throughout the program, where one
is an endless thread. I use JDBC onnection with MySql.
  
An hour after the program has been run, it gives an OutOfMemoryError -
and hence the servlet is not called and hence CallForwarding is not set.
But again randomly, it works but at other times sends an
OutOfMemoryError. 

  On the start of the program, I check the 

Runtime.getRuntime().totalMemory() -- arnd 1.9 MB
Runtime.getRuntime().maxMemory() -- arnd 64 MB
Runtime.getRuntime().freeMemory() -- arnd 1.4MB

After the totalMemory reaches 64 MB, and freeMemory is less than 34556
bytes, the java.lang.OutOfMemoryError is thrown. 
Since I am completely new to both JAVA and tomcat, I would like to know
how I need to proceed. I believe I must increase the maxMemory -- but
how and where? 

  I start Tomcat5 using /etc/init.d/tomcat5 start . 
I run the JAVA program using Netbeans IDE 4.1 and not via command line.
  I read somewhere that the option -Xms128m -Xmx256m should be set for
JAVA_OPTS environment variable in the startup script used to starting
tomcat. But I dont seem to understand where I can add this value in
/etc/init.d/tomcat5 file.

Kindly guide me further. Any help appreciated.
Thanks in advance
Aparna 
   


-
Do you Yahoo!?
 With a free 1 GB, there's more in store with Yahoo! Mail.

**
 
Experience the British Library online at www.bl.uk
 
Help the British Library conserve the world's knowledge. Adopt a Book. 
www.bl.uk/adoptabook
 
The Library's St Pancras site is WiFI - enabled
 
**
 
The information contained in this e-mail is confidential and may be legally 
privileged. It is intended for the addressee(s) only. If you are not the 
intended recipient, please delete this e-mail and notify the [EMAIL PROTECTED] 
: The contents of this e-mail must not be disclosed or copied without the 
sender's consent. 
 
The statements and opinions expressed in this message are those of the author 
and do not necessarily reflect those of the British Library. The British 
Library does not take any responsibility for the views of the author. 
 
**

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



RE: OutOfMemoryError - how to increase heap size

2006-01-30 Thread Stracchino, Peri
But also if it is taking an hour before you run out of memory then it
sounds as if you may have a memory leak - there is a profiler plugin
available for netbeans 4.1 which is quite handy for tracing these - I
don't think its on the netbeans  update centre but you should find it if
you search on the net. Its free.

-Original Message-
From: Stracchino, Peri 
Sent: 30 January 2006 17:55
To: Tomcat Users List; [EMAIL PROTECTED]
Subject: RE: OutOfMemoryError - how to increase heap size

Not sure about when using init.d and/or running from netbeans, but
generaly you need to use the catalina.bat file if starting tomcat from
the startup.bat (add the line 'set CATALINA_OPTS=-msxxxm -mm' where
xxx represents the minimum and maximum values you want) or, if you are
running it as a windows service, use the Configure Tomcat interface
(right click on your tomcat icon or go to your start menu) and go to the
java  tab, then set the initial and maximum memory fields. 

-Original Message-
From: Aparna Ramakrishnan [mailto:[EMAIL PROTECTED]
Sent: 30 January 2006 15:15
To: tomcat list
Subject: OutOfMemoryError - how to increase heap size

Hello,
I use a Asterisk-JAVA API program which on a random basis, calls a
Servlet, using Tomcat5, in order to set forwarding of calls through an
Asterisk PBX Server. Two threads run throughout the program, where one
is an endless thread. I use JDBC onnection with MySql.
  
An hour after the program has been run, it gives an OutOfMemoryError -
and hence the servlet is not called and hence CallForwarding is not set.
But again randomly, it works but at other times sends an
OutOfMemoryError. 

  On the start of the program, I check the 

Runtime.getRuntime().totalMemory() -- arnd 1.9 MB
Runtime.getRuntime().maxMemory() -- arnd 64 MB
Runtime.getRuntime().freeMemory() -- arnd 1.4MB

After the totalMemory reaches 64 MB, and freeMemory is less than 34556
bytes, the java.lang.OutOfMemoryError is thrown. 
Since I am completely new to both JAVA and tomcat, I would like to know
how I need to proceed. I believe I must increase the maxMemory -- but
how and where? 

  I start Tomcat5 using /etc/init.d/tomcat5 start . 
I run the JAVA program using Netbeans IDE 4.1 and not via command line.
  I read somewhere that the option -Xms128m -Xmx256m should be set for
JAVA_OPTS environment variable in the startup script used to starting
tomcat. But I dont seem to understand where I can add this value in
/etc/init.d/tomcat5 file.

Kindly guide me further. Any help appreciated.
Thanks in advance
Aparna 
   


-
Do you Yahoo!?
 With a free 1 GB, there's more in store with Yahoo! Mail.


**
 
Experience the British Library online at www.bl.uk
 
Help the British Library conserve the world's knowledge. Adopt a Book.
www.bl.uk/adoptabook
 
The Library's St Pancras site is WiFI - enabled
 

**
 
The information contained in this e-mail is confidential and may be
legally privileged. It is intended for the addressee(s) only. If you are
not the intended recipient, please delete this e-mail and notify the
[EMAIL PROTECTED] : The contents of this e-mail must not be disclosed or
copied without the sender's consent. 
 
The statements and opinions expressed in this message are those of the
author and do not necessarily reflect those of the British Library. The
British Library does not take any responsibility for the views of the
author. 
 

**

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



Using JRE 1.5.0_06 causes app to use Tomcat tmp dir?

2006-01-30 Thread Bob_Savard

Hi.

I've got a Tomcat 5.5.9 app which takes uploaded files and puts them into a
directory according to this formula: app's root dir + /photos.
So the dir in my case is c:\tomcat\webapps\ROOT\photos\.

However, I've just noticed that the whole ROOT context directory gets
copied to Tomcat's temp dir and the code is run from there.  So calling
getServletContext().getRealPath(/) in a servlet results in this:
c:\tomcat\temp\0-ROOT\.
So when the files get uploaded, they get put into
c:\tomcat\temp\0-ROOT\photos\ instead of
c:\tomcat\webapps\ROOT\photos\.  And because it's a temp dir, when I shut
down Tomcat, it all gets deleted(except for the WEB-INF dir), so I lose the
uploaded content!  Even more strange is that it seems to be random whether
Tomcat clears the temp dir when I stop Tomcat.

I know this didn't happen before, and they only thing that changed was the
JRE version I've been using.  So I'm wondering if anyone else has seen this
behavior and can explain if it is JRE version related.
Right now, the only work-around I've got is to replace the formula that
builds the upload dir using something like 'get
System.getenv(CATALINA_HOME)+/ROOT/photos', but I'd rather not have to
do that.

Thanks in advance for any pointers.
-B


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



Re: Broken Architecture documentation pdf on tomcat.apache.org

2006-01-30 Thread Mark Thomas
Fred K wrote:
 Hi:
 
 When I look at the Architecture documentation pdf, I see only blank pages in
 the pdf files linked under Tomcat Architecture.
 These pdfs, are broken on tomcat.apache.org and when I build Tomcat
 5.5.12from source (Linux/Solaris).
 
 Bugzilla says it is fixed in September,
 http://issues.apache.org/bugzilla/show_bug.cgi?id=36574

It was. There has been further releases since then. My bet is the
release manager's build process is messing with these files. I'll move
this to the dev list and get it fixed.

Cheers,

Mark


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



Re: From Java to C#, ASP.NET [Off Topic]

2006-01-30 Thread Wade Chandler
--- Leon Rosenberg [EMAIL PROTECTED]
wrote:

 On 1/30/06, Tim Lucia [EMAIL PROTECTED] wrote:
  Hibernate is not J2EE based.  It just so happens
 it provides a EJB-free
  solution to a servlet container environment. 
 Hibernate does not require
  J2EE.
 
 I think hibernate supports JTA and JDBC? Ok, JDBC
 isn't J2EE since 3.0
 but was before. (Actually it should become J2EE in
 4.0, but this was
 changed).
 But JTA is J2EE as well as JMX, isn't it?
 
  Tim
 Leon.
 
 But actually it doesn't play a role..., just another
 crutch to keep
 relational databases in business :-)
 
 
Actually JDBC isn't J2EE at all.  XA transaction stuff
is J2EE.  XA can apply to a database or other
transaction types as well completely unrelated to a
database.  JDBC is a standard J2SE API.  See:
http://java.sun.com/j2se/1.5.0/docs/api/

JDBC has been in the standard edition since 1.0 or
1.1.

Everything in the docs here are standard java as of
1.5.  See the 1.4.2 docs for pre 5.0 and obviously
other versions to get pre version information for the
version you look at.  Thus, everything in this set of
documentation is standard or J2SE and is not J2EE. 
For the list of APIs which is only J2EE (thoughmany if
not most or all are available as separate API
libraries from either Sun, Apache, or some other
offering) see (this is 1.4):
http://java.sun.com/j2ee/1.4/docs/api/index.html

For a list of J2EE standards/specifications and future
ones see:
http://www.jcp.org
and sort by technologies.

and see:
http://java.sun.com/j2ee/1.4/docs/index.html#specs

Just want everyone to be clear what APIs are really
J2EE and which ones are not before we discuss it.  It
seems to much misinformation gets out accidentally. 
The best source is to read the JSRs at the JCP.  Then
see a company such as Sun which lists all of the
specifications for an easier view of the list.  Doing
that you can also see some applications and
implementations which use the specifications.

You can certainly create more than a trivial
application completely skipping J2EE altogetherit
just helps with some types of applications.  For
instance, you can take an implementation of a certain
specification such as web applications and servlets. 
Create a servlet based web application and merely
touch an API and specification not the complete J2EE
stack and really don't have to call it J2EE if you
don't want.  Refer to it as it's JSR or say Servlet
Spec 2.2, 2.3, or 2.4...pick one).  Take Tomcat web
applications for instance.  You can reuse the Tomcat
APIs to create a web application linking to the
servlet.jar available from a distribution without ever
downloading J2EE and linking to it.

I believe what we see more of is the marketing hype
and FUD confuses the use cases for many people and
recruiters and human resource departments at
organizations make it even more confusing for some
others by the fact they don't know what their
organization needs and all they know is what is on
paper and then they try to talk about things like they
know what they are talking about.  That doesn't change
the fact that one can create their own version of an
API to match a certain specification then use that for
linking and building to deploy to another system which
supports many APIs and specifications including the
one you may have targeted.  So, just to be clear.  Not
all the APIs and specifications of J2EE have to be
used to have a compliant application nor does a
developer have to install J2EE to create a J2EE
compliant application, they merely have to link to a
set of interfaces matching a subset of J2EE for any
given requirement, and sometimes this means it's
easier to just download J2EE and get it all.

I love software and programming :-D,

Wade

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



is there any way to monitor application server when it is working ?

2006-01-30 Thread Legolas Woodland

thank you for reading my post

is there any application that help monitor an application server when it 
is working ?

for example , total active sessions , Connections , ...
i need this application to monitor my tomcat and sun application server 
, but if there is no application that help monitor both of them , then i 
will be happy to monitor at least one of them (TOMCAT)



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



Tuning Tomcat , i need some advice

2006-01-30 Thread Legolas Woodland

Hi
Thank you for reading my post.
I have an application which will handle about 30 hit per second with 
Tomcat 5.5.* (* wil be one of 15 or 12)
Now i need some advice about tuning tomcat to perform the best under 
this condition

I read something so far , things like :

use Java server mode
increase the heap

Where i can find more reference and how to(s) or step by step manual to 
tune tomcat.
in condition that we have  30 hit/sec ,how much large connection pool 
should be ?

is there some refrences about tuning connection pool?

Thank you


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



Tomcat 5.5.15 use a native library to improve performace , i have some question about it

2006-01-30 Thread Legolas Woodland
Tomcat 5.5.15 use a native library to improve performace , i have some 
question about it

Thank you for reading my post.
today i installed a newer version of tomcat (5.5.15 ) before this i used 
5.5.12
but when i was installing 5.5.15 , it asks about downloading a native 
library to improve performace.

now i just want to know ,
1-how much improvement it brings to tomcat under heavy load
2-how tomcat use it ? what else change in installation when we select to 
use native library
3-in tomcat start-up application under start up tab ,there is a DropDown 
box which asks about mode that tomcat will run

there are two modes ,1-JVM , -JAVA
is it true that
when we select JVM it uses JRE to run tomcat
When we use java it uses JDK to run tomcat ?


Thank you

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



RE: Tuning Tomcat , i need some advice

2006-01-30 Thread George Sexton
Database interaction is by far the major issue. In my application, a page
with no db interaction runs in something like 80ms, while a page with DB
interaction takes something like 350-400ms. There's no silver bullet to
tuning tomcat applications, and most of the advice you'll get here won't
make any difference (use this connector, instead of that). So, my advice is:

1)  Using JDK 1.5. It can be up to 25% faster than 1.4
2)  Use the server JVM
3)  Allocate sufficient memory
4)  Start tuning your application. Look at query execution times, and
the number of DB Interactions per page. Reduce the number of interactions by
using Stored procedure, or views.

George Sexton
MH Software, Inc.
http://www.mhsoftware.com/
Voice: 303 438 9585
  

 -Original Message-
 From: Legolas Woodland [mailto:[EMAIL PROTECTED] 
 Sent: Monday, January 30, 2006 1:57 PM
 To: Tomcat Users List
 Subject: Tuning Tomcat , i need some advice
 
 Hi
 Thank you for reading my post.
 I have an application which will handle about 30 hit per second with 
 Tomcat 5.5.* (* wil be one of 15 or 12)
 Now i need some advice about tuning tomcat to perform the best under 
 this condition
 I read something so far , things like :
 
 use Java server mode
 increase the heap
 
 Where i can find more reference and how to(s) or step by step 
 manual to 
 tune tomcat.
 in condition that we have  30 hit/sec ,how much large connection pool 
 should be ?
 is there some refrences about tuning connection pool?
 
 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]



RE: Tomcat upgrade: 3.3.1 -- 5.0.28, hang up after running 1 or 2 days

2006-01-30 Thread Monica Wu
This is a update for this problem/solution.

After removing Java 1.5 + Tomcat 5.0, reinstalling Java 1.3 + Tomcat 3.3.1 on 
last Monday, 1/23/2006, everything has been running fine by far.

I have certain confidence to conclude that different versions of Java and 
Tomcat coexisting introduced the upgrade problem.

Thank you all for your attention and help!

- Monica

-Original Message-
From: Monica Wu [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 24, 2006 11:11 AM
To: Tomcat Users List
Subject: RE: Tomcat upgrade: 3.3.1 -- 5.0.28, hang up after running 1
or 2 days


Thank you for your attention, Glen!

These 2 (good and buggy) production tomcat servers run different web 
applications on different physical machines. Their hardware and operation 
systems including Windows service packs are same. Tomcat configuration is very 
similar. The good tomcat server was brand new (new installed operating system, 
new web application) and started Java 5.0 + tomcat 5.0 at the very beginning. 
The buggy one started with Java1.3 + Tomcat 3.3.1 and had ran smoothly about 4 
years. 

Regarding the web application on the buggy tomcat 5.0 server. The source code 
remain the same before and after the tomcat upgrade. The only change is to use 
the new java 1.5 compiler with option -souce 1.4. Compiling is not a problem. 
Starting the buggy tomcat 5.0 is not a problem. The only problem is hangup 
after some user access.

All possible changes were minimized during tomcat upgrade.

The buggy tomcat server was rolled back to Java 1.3 + tomcat 3.3.1 again last 
Friday. This rollback did not fix the problem. Yesterday (last Monday) I 
removed Java 1.5 + Tomcat 5.0 completely. JDK 1.3 + J2EE 1.3 were re-installed. 
At this point, everything was rolled back to the state before tomcat upgrade. 

This buggy tomcat server has run okay by far ( 24 hours), but is too early to 
say it is fixed. If it can behave until the end of this week, I may dare to say 
it is fixed and the problem is caused by the upgrade. Maybe the co-existence of 
Java 1.3 and 1.5. Maybe co-existence of Tomcat 3.3 and 5.0. Maybe ...

- Monica


-Original Message-
From: Glen Mazza [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 24, 2006 10:47 AM
To: Tomcat Users List
Subject: Re: Tomcat upgrade: 3.3.1 -- 5.0.28, hang up after running 1
or 2 days


Monica Wu wrote:

 
 First of all, upgraded to the version I have ever tested. Tomcat 5.0 has been 
 running well on my another production server about one year. At that 
 installation time, Tomcat 5.0 was the latest. Moreover, having all 
 productions share the same Java + tomcat versions is one of my agendas to 
 ease the development and maintenance.
 

Oh!  Now I understand.  Thanks for the explanation and sorry I couldn't 
help you that much with your problem.  It is strange that Tomcat 5.0 has 
been running well for a year on one server but not the new one.  BTW, 
are you running different or the same web applications on the 
good-for-one-year 5.0 server and the buggy new 5.0 one?  I wonder if the 
source of the problem is with the applications that the buggy TC is 
running rather than TC itself.

Glen


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



Re: Tuning Tomcat , i need some advice

2006-01-30 Thread Jess Holle

I'd ditto George's advice.

Unless your page generation code is really trivial, it will be the major 
determining factor of your performance -- not Tomcat.


Thus the first steps are general JVM tuning and application code 
profiling and tuning.  Only after you've selected the right JVM, the 
right basic options, fed it enough memory, and tuned your code is it 
generally time to turn to further Tomcat tuning.


--
Jess Holle

George Sexton wrote:

Database interaction is by far the major issue. In my application, a page
with no db interaction runs in something like 80ms, while a page with DB
interaction takes something like 350-400ms. There's no silver bullet to
tuning tomcat applications, and most of the advice you'll get here won't
make any difference (use this connector, instead of that). So, my advice is:

1)  Using JDK 1.5. It can be up to 25% faster than 1.4
2)  Use the server JVM
3)  Allocate sufficient memory
4)  Start tuning your application. Look at query execution times, and
the number of DB Interactions per page. Reduce the number of interactions by
using Stored procedure, or views.

George Sexton
MH Software, Inc.
http://www.mhsoftware.com/
Voice: 303 438 9585


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



RE: Tuning Tomcat , i need some advice

2006-01-30 Thread Caldarale, Charles R
 From: Legolas Woodland [mailto:[EMAIL PROTECTED] 
 Subject: Tuning Tomcat , i need some advice
 
 Where i can find more reference and how to(s) or step by step 
 manual to tune tomcat.

I'd suggest starting with Peter Lin's paper:
http://tomcat.apache.org/articles/performance.pdf

Also look in the FAQ for some general info:
http://tomcat.apache.org/faq/performance.html

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

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



RE: is there any way to monitor application server when it is working ?

2006-01-30 Thread Caldarale, Charles R
 From: Legolas Woodland [mailto:[EMAIL PROTECTED] 
 Subject: is there any way to monitor application server when 
 it is working ?
 
 is there any application that help monitor an application 
 server when it is working ?

Look at Tomcat's built-in manager app as an example.  Read the doc:
http://tomcat.apache.org/tomcat-5.5-doc/manager-howto.html
http://tomcat.apache.org/tomcat-5.5-doc/monitoring.html

There are also numerous profilers available that will give you a good
deal of JVM-based, rather than Tomcat-based, information.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

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



Re: Tuning Tomcat , i need some advice

2006-01-30 Thread Leon Rosenberg
On 1/30/06, George Sexton [EMAIL PROTECTED] wrote:
 Database interaction is by far the major issue. In my application, a page
 with no db interaction runs in something like 80ms, while a page with DB
 interaction takes something like 350-400ms. There's no silver bullet to
 tuning tomcat applications, and most of the advice you'll get here won't
 make any difference (use this connector, instead of that). So, my advice is:

Hmm, 80 ms per page is extremely slow. We have a high traffic
application here with approx. 100 request / per second / per
webserver. Our middle execution time is by 10 ms (both db and not db).
Requests without calls to backend are served in below 1 millisecond
(mostly ajax).

I would say that the most important point is the size of the jsp.
Large jsps need time, and CPU.

Other points are:
Avg. Request duration.( see above). With 30 requests per second you
can't afford spending more than 33 ms per request.

Connection Speed: If you have keep-alive on, the thread will be
blocked until the data is delivered. Http 1.1 (keep-alive) connections
consume 1.5 threads per connection. My advice: use http 1.0. Zipping
can also reduce thread consumption (but increase cpu consumption).

WIth all above said, if you can serve fast enough, use no http1.1 and
zip, you can use tomcat default settings (max 150 threads).

Alas, do you know your read/update ratio for the db? If you have
80-90% reads on the DB, you can win a lot of performance through
caches.

Regards
Leon

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



RE: is there any way to monitor application server when it is working ?

2006-01-30 Thread Tim Lucia
I have successfully used Jmeter, and MRTG with some Perl scripts and the
manager web application to do most of this.  Not everything that is
available in html mode is available in ?XML=true mode, unfortunately, but it
will get you going.

Tim
 

-Original Message-
From: Legolas Woodland [mailto:[EMAIL PROTECTED] 
Sent: Monday, January 30, 2006 3:56 PM
To: Tomcat Users List
Subject: is there any way to monitor application server when it is working ?

thank you for reading my post

is there any application that help monitor an application server when it is
working ?
for example , total active sessions , Connections , ...
i need this application to monitor my tomcat and sun application server ,
but if there is no application that help monitor both of them , then i will
be happy to monitor at least one of them (TOMCAT)


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



Re: Tuning Tomcat , i need some advice

2006-01-30 Thread Leon Rosenberg
On 1/30/06, Leon Rosenberg [EMAIL PROTECTED] wrote:
 On 1/30/06, George Sexton [EMAIL PROTECTED] wrote:
  Database interaction is by far the major issue. In my application, a page
  with no db interaction runs in something like 80ms, while a page with DB
  interaction takes something like 350-400ms. There's no silver bullet to
  tuning tomcat applications, and most of the advice you'll get here won't
  make any difference (use this connector, instead of that). So, my advice is:

 Hmm, 80 ms per page is extremely slow. We have a high traffic
 application here with approx. 100 request / per second / per
 webserver. Our middle execution time is by 10 ms (both db and not db).
 Requests without calls to backend are served in below 1 millisecond
 (mostly ajax).

Of course it also depends where you measure the data. My measures are
always in the servlet code, so as soon as the response is wrote to the
buffer I consider the request finished.

regards
Leon

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



RE: Tuning Tomcat , i need some advice

2006-01-30 Thread George Sexton
80ms was with the server saturated and running 100% CPU utilization. Min
times were in the 10ms range, with the more db intensive pages having min
times in the 60ms range.

Here's my complete testing results.

http://www.mhsoftware.com/caldemo/manual/en/pageFinder.html?page=622.html

I'm sure a large part of my overhead was that the testing took place with
the DB, and tomcat app on the same consumer grade machine.

George Sexton
MH Software, Inc.
http://www.mhsoftware.com/
Voice: 303 438 9585
  

 -Original Message-
 From: Leon Rosenberg [mailto:[EMAIL PROTECTED] 
 Sent: Monday, January 30, 2006 3:18 PM
 To: Tomcat Users List
 Subject: Re: Tuning Tomcat , i need some advice
 
 On 1/30/06, George Sexton [EMAIL PROTECTED] wrote:
  Database interaction is by far the major issue. In my 
 application, a page
  with no db interaction runs in something like 80ms, while a 
 page with DB
  interaction takes something like 350-400ms. There's no 
 silver bullet to
  tuning tomcat applications, and most of the advice you'll 
 get here won't
  make any difference (use this connector, instead of that). 
 So, my advice is:
 
 Hmm, 80 ms per page is extremely slow. We have a high traffic
 application here with approx. 100 request / per second / per
 webserver. Our middle execution time is by 10 ms (both db and not db).
 Requests without calls to backend are served in below 1 millisecond
 (mostly ajax).
 
 I would say that the most important point is the size of the jsp.
 Large jsps need time, and CPU.
 
 Other points are:
 Avg. Request duration.( see above). With 30 requests per second you
 can't afford spending more than 33 ms per request.
 
 Connection Speed: If you have keep-alive on, the thread will be
 blocked until the data is delivered. Http 1.1 (keep-alive) connections
 consume 1.5 threads per connection. My advice: use http 1.0. Zipping
 can also reduce thread consumption (but increase cpu consumption).
 
 WIth all above said, if you can serve fast enough, use no http1.1 and
 zip, you can use tomcat default settings (max 150 threads).
 
 Alas, do you know your read/update ratio for the db? If you have
 80-90% reads on the DB, you can win a lot of performance through
 caches.
 
 Regards
 Leon
 
 -
 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]



RE: Tuning Tomcat , i need some advice

2006-01-30 Thread Kumar, Sunitha
Hi,
Don't find the results at the provided URL.
-sunitha 

-Original Message-
From: George Sexton [mailto:[EMAIL PROTECTED] 
Sent: Monday, January 30, 2006 2:50 PM
To: 'Tomcat Users List'
Subject: RE: Tuning Tomcat , i need some advice

80ms was with the server saturated and running 100% CPU utilization. Min
times were in the 10ms range, with the more db intensive pages having
min times in the 60ms range.

Here's my complete testing results.

http://www.mhsoftware.com/caldemo/manual/en/pageFinder.html?page=622.htm
l

I'm sure a large part of my overhead was that the testing took place
with the DB, and tomcat app on the same consumer grade machine.

George Sexton
MH Software, Inc.
http://www.mhsoftware.com/
Voice: 303 438 9585
  

 -Original Message-
 From: Leon Rosenberg [mailto:[EMAIL PROTECTED]
 Sent: Monday, January 30, 2006 3:18 PM
 To: Tomcat Users List
 Subject: Re: Tuning Tomcat , i need some advice
 
 On 1/30/06, George Sexton [EMAIL PROTECTED] wrote:
  Database interaction is by far the major issue. In my
 application, a page
  with no db interaction runs in something like 80ms, while a
 page with DB
  interaction takes something like 350-400ms. There's no
 silver bullet to
  tuning tomcat applications, and most of the advice you'll
 get here won't
  make any difference (use this connector, instead of that). 
 So, my advice is:
 
 Hmm, 80 ms per page is extremely slow. We have a high traffic 
 application here with approx. 100 request / per second / per 
 webserver. Our middle execution time is by 10 ms (both db and not db).
 Requests without calls to backend are served in below 1 millisecond 
 (mostly ajax).
 
 I would say that the most important point is the size of the jsp.
 Large jsps need time, and CPU.
 
 Other points are:
 Avg. Request duration.( see above). With 30 requests per second you 
 can't afford spending more than 33 ms per request.
 
 Connection Speed: If you have keep-alive on, the thread will be 
 blocked until the data is delivered. Http 1.1 (keep-alive) connections

 consume 1.5 threads per connection. My advice: use http 1.0. Zipping 
 can also reduce thread consumption (but increase cpu consumption).
 
 WIth all above said, if you can serve fast enough, use no http1.1 and 
 zip, you can use tomcat default settings (max 150 threads).
 
 Alas, do you know your read/update ratio for the db? If you have 
 80-90% reads on the DB, you can win a lot of performance through 
 caches.
 
 Regards
 Leon
 
 -
 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]



RE: Tuning Tomcat , i need some advice

2006-01-30 Thread George Sexton
My mistake.

http://www.mhsoftware.com/caldemo/manual/en/pageFinder.html?page=622.htm

George Sexton
MH Software, Inc.
http://www.mhsoftware.com/
Voice: 303 438 9585
  

 -Original Message-
 From: George Sexton [mailto:[EMAIL PROTECTED] 
 Sent: Monday, January 30, 2006 3:50 PM
 To: 'Tomcat Users List'
 Subject: RE: Tuning Tomcat , i need some advice
 
 80ms was with the server saturated and running 100% CPU 
 utilization. Min
 times were in the 10ms range, with the more db intensive 
 pages having min
 times in the 60ms range.
 
 Here's my complete testing results.
 
 http://www.mhsoftware.com/caldemo/manual/en/pageFinder.html?pa
 ge=622.html
 
 I'm sure a large part of my overhead was that the testing 
 took place with
 the DB, and tomcat app on the same consumer grade machine.
 
 George Sexton
 MH Software, Inc.
 http://www.mhsoftware.com/
 Voice: 303 438 9585
   
 
  -Original Message-
  From: Leon Rosenberg [mailto:[EMAIL PROTECTED] 
  Sent: Monday, January 30, 2006 3:18 PM
  To: Tomcat Users List
  Subject: Re: Tuning Tomcat , i need some advice
  
  On 1/30/06, George Sexton [EMAIL PROTECTED] wrote:
   Database interaction is by far the major issue. In my 
  application, a page
   with no db interaction runs in something like 80ms, while a 
  page with DB
   interaction takes something like 350-400ms. There's no 
  silver bullet to
   tuning tomcat applications, and most of the advice you'll 
  get here won't
   make any difference (use this connector, instead of that). 
  So, my advice is:
  
  Hmm, 80 ms per page is extremely slow. We have a high traffic
  application here with approx. 100 request / per second / per
  webserver. Our middle execution time is by 10 ms (both db 
 and not db).
  Requests without calls to backend are served in below 1 millisecond
  (mostly ajax).
  
  I would say that the most important point is the size of the jsp.
  Large jsps need time, and CPU.
  
  Other points are:
  Avg. Request duration.( see above). With 30 requests per second you
  can't afford spending more than 33 ms per request.
  
  Connection Speed: If you have keep-alive on, the thread will be
  blocked until the data is delivered. Http 1.1 (keep-alive) 
 connections
  consume 1.5 threads per connection. My advice: use http 1.0. Zipping
  can also reduce thread consumption (but increase cpu consumption).
  
  WIth all above said, if you can serve fast enough, use no 
 http1.1 and
  zip, you can use tomcat default settings (max 150 threads).
  
  Alas, do you know your read/update ratio for the db? If you have
  80-90% reads on the DB, you can win a lot of performance through
  caches.
  
  Regards
  Leon
  
  
 -
  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]



Re: Broken Architecture documentation pdf on tomcat.apache.org

2006-01-30 Thread Mark Thomas
Mark Thomas wrote:
 Fred K wrote:
 
Hi:

When I look at the Architecture documentation pdf, I see only blank pages in
the pdf files linked under Tomcat Architecture.
These pdfs, are broken on tomcat.apache.org and when I build Tomcat
5.5.12from source (Linux/Solaris).

Bugzilla says it is fixed in September,
http://issues.apache.org/bugzilla/show_bug.cgi?id=36574
 
 
 It was. There has been further releases since then. My bet is the
 release manager's build process is messing with these files. I'll move
 this to the dev list and get it fixed.

Fixed. There is a problem with Ant and copying files we are looking
into that breaks the binary files within the docs. Sorry for the
inconvenience.

Mark


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



Re: Tuning Tomcat , i need some advice

2006-01-30 Thread Legolas Woodland

Thank you for reply.

George Sexton wrote:

Database interaction is by far the major issue. In my application, a page
with no db interaction runs in something like 80ms, while a page with DB
interaction takes something like 350-400ms. There's no silver bullet to
tuning tomcat applications, and most of the advice you'll get here won't
make any difference (use this connector, instead of that). So, my advice is:
  
Indeed some pages of my web application will cause more than 4-5 select 
statement over tables with more than 50,000 records.

will a dual processor server handle this loads ? I used derby as database .

1)  Using JDK 1.5. It can be up to 25% faster than 1.4
2)  Use the server JVM
3)  Allocate sufficient memory
4)  Start tuning your application. Look at query execution times, and
the number of DB Interactions per page. Reduce the number of interactions by
using Stored procedure, or views.
  

How i can tune the database code ?
i just once worked with db2 , it has some facilities that bring up a 
plan (execution path and detailed information about each step) of 
statement and allow user to tune the database operations base on its 
step and time that each step consumed , now how i can find such 
facilities for derby ?


Thank you

George Sexton
MH Software, Inc.
http://www.mhsoftware.com/
Voice: 303 438 9585
  

  

-Original Message-
From: Legolas Woodland [mailto:[EMAIL PROTECTED] 
Sent: Monday, January 30, 2006 1:57 PM

To: Tomcat Users List
Subject: Tuning Tomcat , i need some advice

Hi
Thank you for reading my post.
I have an application which will handle about 30 hit per second with 
Tomcat 5.5.* (* wil be one of 15 or 12)
Now i need some advice about tuning tomcat to perform the best under 
this condition

I read something so far , things like :

use Java server mode
increase the heap

Where i can find more reference and how to(s) or step by step 
manual to 
tune tomcat.
in condition that we have  30 hit/sec ,how much large connection pool 
should be ?

is there some refrences about tuning connection pool?

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]


  




RE: Tuning Tomcat , i need some advice

2006-01-30 Thread George Sexton
I'm not familiar with Derby, so I'm not going to be able to offer any
advice.

The biggest killer will just be the number of db interactions. If you can
create a view, or a stored procedure so that you're only doing one db
interaction per page, then you'll see a huge difference.

For example, if you have some complex code that queries different tables,
and does a lot of processing to determine results, then a stored procedure
will save a lot of time and effort.

Other than that, my advice would be to benchmark the different queries (
using something like Jmeter) and fix what seems the slowest.

George Sexton
MH Software, Inc.
http://www.mhsoftware.com/
Voice: 303 438 9585
  

 -Original Message-
 From: Legolas Woodland [mailto:[EMAIL PROTECTED] 
 Sent: Monday, January 30, 2006 4:26 PM
 To: Tomcat Users List
 Subject: Re: Tuning Tomcat , i need some advice
 
 Thank you for reply.
 
 George Sexton wrote:
  Database interaction is by far the major issue. In my 
 application, a page
  with no db interaction runs in something like 80ms, while a 
 page with DB
  interaction takes something like 350-400ms. There's no 
 silver bullet to
  tuning tomcat applications, and most of the advice you'll 
 get here won't
  make any difference (use this connector, instead of that). 
 So, my advice is:

 Indeed some pages of my web application will cause more than 
 4-5 select 
 statement over tables with more than 50,000 records.
 will a dual processor server handle this loads ? I used derby 
 as database .
  1)  Using JDK 1.5. It can be up to 25% faster than 1.4
  2)  Use the server JVM
  3)  Allocate sufficient memory
  4)  Start tuning your application. Look at query execution 
 times, and
  the number of DB Interactions per page. Reduce the number 
 of interactions by
  using Stored procedure, or views.

 How i can tune the database code ?
 i just once worked with db2 , it has some facilities that bring up a 
 plan (execution path and detailed information about each step) of 
 statement and allow user to tune the database operations base on its 
 step and time that each step consumed , now how i can find such 
 facilities for derby ?
 
 Thank you
  George Sexton
  MH Software, Inc.
  http://www.mhsoftware.com/
  Voice: 303 438 9585

 

  -Original Message-
  From: Legolas Woodland [mailto:[EMAIL PROTECTED] 
  Sent: Monday, January 30, 2006 1:57 PM
  To: Tomcat Users List
  Subject: Tuning Tomcat , i need some advice
 
  Hi
  Thank you for reading my post.
  I have an application which will handle about 30 hit per 
 second with 
  Tomcat 5.5.* (* wil be one of 15 or 12)
  Now i need some advice about tuning tomcat to perform the 
 best under 
  this condition
  I read something so far , things like :
 
  use Java server mode
  increase the heap
 
  Where i can find more reference and how to(s) or step by step 
  manual to 
  tune tomcat.
  in condition that we have  30 hit/sec ,how much large 
 connection pool 
  should be ?
  is there some refrences about tuning connection pool?
 
  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]



context.xml

2006-01-30 Thread Klotz Jr, Dennis
I thought the name of the xml file located in :

$CATALINA_HOME/conf/[enginename]/[hostname]/

had to match the name of your webapp directory. 

I just read some documentation for 5.5.9 that says otherwise. It
mentions that under certain conditions it will be created for you. But I
would like to have a persistent xml file that will not be deleted when I
un-deploy the app.

Can someone please tell me which is correct?

Regards,

-Dennis


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



Solution: Using JRE 1.5.0_06 causes app to use Tomcat tmp dir?

2006-01-30 Thread Bob_Savard

For anyone who's experiencing this, here's what's happening:

ContextConfig.java contains a method called antiLocking that tests to see
if your context  in server.xml has antiResourceLocking=true.  If it does,
it creates a new directory calculated by 'deploymentCount++ + - + docBase
' in the temp directory.  That's why I was seeing subdirs in temp called
0-ROOT and 1-ROOT...

It turns out I had set antiResourceLocking=true thinking it would help
performance when it was previously set to false.

If Tomcat wasn't an open source project, I wouldn't have figured this out
by examining the source code and probably would have never figured it out.
Don't you love OSS!?

-Bob


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



Re: context.xml

2006-01-30 Thread Warren Pace

 
 From: Klotz Jr, Dennis [EMAIL PROTECTED]
 Date: 2006/01/30 Mon PM 07:00:03 EST
 To: Tomcat Users List users@tomcat.apache.org
 Subject: context.xml
 
 I thought the name of the xml file located in :
 
 $CATALINA_HOME/conf/[enginename]/[hostname]/
 
 had to match the name of your webapp directory. 
 
 I just read some documentation for 5.5.9 that says otherwise. It
 mentions that under certain conditions it will be created for you. But I
 would like to have a persistent xml file that will not be deleted when I
 un-deploy the app.
 

save your context file as:
webapp_name/META-INF/context.xml

 Can someone please tell me which is correct?
 
 Regards,
 
 -Dennis
 
 
 -
 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]



RE: context.xml

2006-01-30 Thread Klotz Jr, Dennis
Thanks Warren for the reply.

Wouldn't that version of the file be deleted when I undeploy?

-Dennis

-Original Message-
From: Warren Pace [mailto:[EMAIL PROTECTED] 
Sent: Monday, January 30, 2006 7:41 PM
To: Tomcat Users List
Subject: Re: context.xml


 
 From: Klotz Jr, Dennis [EMAIL PROTECTED]
 Date: 2006/01/30 Mon PM 07:00:03 EST
 To: Tomcat Users List users@tomcat.apache.org
 Subject: context.xml
 
 I thought the name of the xml file located in :
 
 $CATALINA_HOME/conf/[enginename]/[hostname]/
 
 had to match the name of your webapp directory. 
 
 I just read some documentation for 5.5.9 that says otherwise. It
 mentions that under certain conditions it will be created for you. But
I
 would like to have a persistent xml file that will not be deleted when
I
 un-deploy the app.
 

save your context file as:
webapp_name/META-INF/context.xml

 Can someone please tell me which is correct?
 
 Regards,
 
 -Dennis
 
 
 -
 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]



Re: is there any way to monitor application server when it is working?

2006-01-30 Thread Edward See

http://www.tomcatprobe.org/d/latest.shtml


Legolas Woodland wrote:


thank you for reading my post

is there any application that help monitor an application server when 
it is working ?

for example , total active sessions , Connections , ...
i need this application to monitor my tomcat and sun application 
server , but if there is no application that help monitor both of them 
, then i will be happy to monitor at least one of them (TOMCAT)



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



Re: Tomcat 5.5.15 use a native library to improve performace , i have some question about it

2006-01-30 Thread Bill Barker

Legolas Woodland [EMAIL PROTECTED] wrote in message 
news:[EMAIL PROTECTED]
 Tomcat 5.5.15 use a native library to improve performace , i have some 
 question about it
 Thank you for reading my post.
 today i installed a newer version of tomcat (5.5.15 ) before this i used 
 5.5.12
 but when i was installing 5.5.15 , it asks about downloading a native 
 library to improve performace.
 now i just want to know ,
 1-how much improvement it brings to tomcat under heavy load

On Linux, it seems quite a bit from the numbers I've seen posted.  On 
Windows it depends more on your app (i.e. lots of large static files will 
see the most).  Haven't really seen many numbers for other O/Ss.  About the 
only way to tell with your app is to try it and see ;-).

 2-how tomcat use it ? what else change in installation when we select to 
 use native library

With the default config, Tomcat simply looks for the dll at startup, and if 
it finds it, then it uses it.  If it doesn't, it falls back to the Java 
Connector.  The rest of the install is identical, so later just 
deleting/renaming the dll will give you the same install as if you selected 
not to use it.

 3-in tomcat start-up application under start up tab ,there is a DropDown 
 box which asks about mode that tomcat will run
 there are two modes ,1-JVM , -JAVA
 is it true that
 when we select JVM it uses JRE to run tomcat
 When we use java it uses JDK to run tomcat ?


Not the best names, I'll grant you ;-).  When you select JVM, the service 
loads the JVM into the service process via JNI, and runs Tomcat there.  When 
you select JAVA, it spawns a seperate process that runs java.exe.  Not sure 
how well JAVA is supported; I haven't tried to use it in a very long time.


 Thank you 




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



Re: Why does mod_jk write a file ./conf/ajp13.id

2006-01-30 Thread Bill Barker
It's for use of shutting down Tomcat over the AJP port (doesn't really work, 
and is disabled by default).  As of 5.5.16+, Tomcat won't write the file 
unless you explictly enable this option.


Fred K [EMAIL PROTECTED] wrote in message 
news:[EMAIL PROTECTED]
Hi:

I am using mod_jk.so v1.2.15 (and tomcat 5.5.12)

Why does mod_jk need to create and write the file ajp13.id in the
configuration directory?

./conf/ajp13.id

#Automatically generated, don't edit
#Thu Jan 26 16:24:17 GMT 2006
secret=secretword
port=8009

I like (feel more secure) to have all the configuration directories set
to read only so this 'write' requirement creates a problem.

Also odd, is that the port attribute is the tomcat default and not the
active port defined in the workers.properties nor server.xml. Is that a
bug or another configuration issue?

Your help is greatly appreciated,

Thank you - Fred




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



Re: Connector problem

2006-01-30 Thread Bill Barker
The AJP/1.3 Connector uses the scheme that is sent from IIS/Httpd/SunOne. 
The scheme and isSecure on the Connector ./ is ignored.

I suppose that it wouldn't be too hard to add a believeMe=true attribute 
to the Connector tag to handle your case.  If you feel strongly about it, 
open a BZ enhancement request.  Of course, if you include a patch, it will 
likely get looked at sooner ;-).  Otherwise, a simple and obvious hack to 
o.a.c.connector.CoyoteAdapter.postParseRequest will give you a custom 
version of Tomcat that does what you want.

Earnie Dyke [EMAIL PROTECTED] wrote in message 
news:[EMAIL PROTECTED]
Greetings all,

We have the following AJP connector configuration:

!-- A AJP 1.3 Connector on port 8009 --
Connector port=8009 address=${jboss.bind.address}
enableLookups=false redirectPort=8443 debug=6
protocol=AJP/1.3 scheme=https isSecure=true/

I expected that when my application does a request.getScheme() I will get 
back HTTPS but I am not, I get HTTP. Do I not understand the purpose of 
scheme=?

The problem we are trying to solve is this:

1. Loadbalancer receives HTTPS request, terminates SSL and forwards HTTP 
request to IIS server
2. IIS Server, using ISAPI Redirector, forwards request to JBoss/AJP 
Connector
3. When a Struts action is configured as a redirect the url returned to the 
browser is HTTP not HTTPS.

Any help solving this would be greatly appreciated.

Earnie!
Earnest Dyke
IS Technical Designer
The Virginia Retirement System
Richmond, Va
804-649-8059 ext 359





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



Re: Re: APR Connector Shutdown Problem

2006-01-30 Thread Bill Barker
Not by me, I don't really work on the APR Connector ;-).

In the bind method in network.c is probably easiest.  If you want your patch 
to be accepted by the dev team, then you should probably wrap it in a 
'#ifndef WIN32' like httpd does (don't know why, and care even less :).

Fenlason, Josh [EMAIL PROTECTED] wrote in message 
news:[EMAIL PROTECTED]
Is there no intent to fix this issue?  Where would I need to make that
patch?  Thanks.
,
Josh.

 -Original Message-
 From: news [mailto:[EMAIL PROTECTED] On Behalf Of Bill Barker
 Sent: Friday, January 27, 2006 8:59 PM
 To: users@tomcat.apache.org
 Subject: Re: APR Connector Shutdown Problem


 Yeah, the difference is that Httpd calls:
   apr_socket_opt_set(s, APR_SO_REUSEADDR, one);
 on the Socket before binding it.  That allows it to bind even
 though there
 are still half-closed sockets on systems like Solaris.

 About the only work-around is to hack the tcnative code, and
 recompile it.

 Fenlason, Josh [EMAIL PROTECTED] wrote in message
 news:[EMAIL PROTECTED]
 I added the Listener you mentioned to server.xml, but I'm
 still seeing the issue.  The problem is happening when run
 the shutdown.sh.  I can understand if things aren't all clean
 and tidy if Tomcat crashed, but you shouldn't have to wait 4
 minutes to restart Tomcat after a planned shutdown.  Apache
 doesn't work like that.  Any other suggestions on how to get
 this to shutdown properly?  Thanks in advance. , Josh.

  -Original Message-
  From: Mladen Turk [mailto:[EMAIL PROTECTED]
  Sent: Friday, January 27, 2006 1:24 AM
  To: Tomcat Users List
  Subject: Re: APR Connector Shutdown Problem
 
 
  Fenlason, Josh wrote:
   I'm running into a problem with the APR connector not
 shutting down
   properly.  Tomcat runs fine and there are no errors on
  shutdown, but if
   I shut Tomcat down and start it up again I get a socket
 bind failed
   error in the catalina log (attached).  I have to wait for several
   minutes between shutdown and startup for Tomcat to be able
  to startup
   correctly.  If I run Tomcat without the APR connector, I
  don't have this
   issue.  This does not occur on Windows, but does on
 Solaris and AIX.
   Has anyone else seen this? One thing I noticed is that the first
   thing logged on
  shutdown is an
   AjpAprProtocol pause entry, but there is no shutdown,
  stop or destroy.
   Is there any chance the APR connector is just getting
  paused and nothing
   is actually stopping it?
   Any help would be greatly appreciated.  Thanks in advance.
 
 
  I suppose you have:
  Listener
 className=org.apache.catalina.core.AprLifecycleListener /
  in your server.xml
 
  But of course it doesn't guarantee it will be executed in
 all cases,
  if the JVM crashes for example. On Solaris it can take up
 to 4 minutes
  until the OS recycles the zombie socket.
  You can use:
  ndd -set /dev/tcp tcp_time_wait_interval 6
  To lower that value.
 
  APR does not try to fool the OS like JVM, but rather behaves like
  Apache httpd.
 
  Regards,
  Mladen.
 
 
 
 
 -
  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]



Re: Download file Problem - 404 error

2006-01-30 Thread DEEPA M N
Hi Vineesh,
  The class name is DownloadFiles.class
  Pls let me know wat is access permissions of the class and tomcat.
  I m posting my web.xml after including package.
   
  ?xml version=1.0 encoding=ISO-8859-1?
  !DOCTYPE web-app
PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
http://java.sun.com/dtd/web-app_2_3.dtd;
  web-app
  display-nameTomcat Documentation/display-name
  description
 Tomcat Documentation.
  /description
  
servlet
servlet-nameDownloadFiles/servlet-name
servlet-classcom.deepa.servlet.DownloadFiles/servlet-class
/servlet
   
 servlet-mapping
servlet-nameDownloadFiles/servlet-name
url-pattern/servlet/DownloadFiles/url-pattern
/servlet-mapping
/web-app
   
  Now wen i run the appln, I get error 500. Pls let me know where i hav gone 
wrong.
  I believe there might be some silly mistake.
  Always welcome ur help.
  thank u
  Regards
  Deepa


vineesh kumar [EMAIL PROTECTED] wrote:
  Deepa,
plz check the following things
is ur class is public?
whether the class name is DownloadFiles.class itself?
also check the access permissions of the class and tomcat
directory if ur on a X'nix machine



-
 Jiyo cricket on Yahoo! India cricket

Re: Download file Problem - 404 error

2006-01-30 Thread Anto Paul
On 1/31/06, DEEPA M N [EMAIL PROTECTED] wrote:
 Hi Vineesh,
   The class name is DownloadFiles.class
   Pls let me know wat is access permissions of the class and tomcat.
   I m posting my web.xml after including package.

   ?xml version=1.0 encoding=ISO-8859-1?
   !DOCTYPE web-app
 PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
 http://java.sun.com/dtd/web-app_2_3.dtd;
   web-app
   display-nameTomcat Documentation/display-name
   description
  Tomcat Documentation.
   /description

 servlet
 servlet-nameDownloadFiles/servlet-name
 servlet-classcom.deepa.servlet.DownloadFiles/servlet-class
 /servlet

  servlet-mapping
 servlet-nameDownloadFiles/servlet-name
 url-pattern/servlet/DownloadFiles/url-pattern
 /servlet-mapping
 /web-app

   Now wen i run the appln, I get error 500. Pls let me know where i hav gone 
 wrong.


500 means internal server error. check the log files for the error and post it.


   I believe there might be some silly mistake.
   Always welcome ur help.
   thank u
   Regards
   Deepa


 vineesh kumar [EMAIL PROTECTED] wrote:
   Deepa,
 plz check the following things
 is ur class is public?
 whether the class name is DownloadFiles.class itself?
 also check the access permissions of the class and tomcat
 directory if ur on a X'nix machine



 -
  Jiyo cricket on Yahoo! India cricket



--
rgds
Anto Paul

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



Re: Download file Problem - 404 error

2006-01-30 Thread DEEPA M N

Hi,
   
  Here is a log file. Pls let me know how can i correct it.
   
  2006-01-31 10:30:54 StandardWrapperValve[DownloadFiles]: Allocate exception 
for servlet DownloadFiles
javax.servlet.ServletException: Error allocating a servlet instance
 at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:691)
 at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:144)
 at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
 at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
 at 
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
 at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
 at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
 at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
 at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
 at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
 at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
 at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
 at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
 at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
 at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
 at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
 at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
 at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
 at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
 at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
 at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
 at java.lang.Thread.run(Thread.java:595)
- Root Cause -
java.lang.NoClassDefFoundError: com/deepa/servlet/DownloadFiles (wrong name: 
DownloadFiles)
 at java.lang.ClassLoader.defineClass1(Native Method)
 at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
 at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
 at 
org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1634)
 at 
org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:860)
 at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1307)
 at 
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1189)
 at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:964)
 at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:687)
 at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:144)
 at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
 at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
 at 
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
 at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
 at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
 at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
 at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
 at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
 at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
 at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
 at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
 at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
 at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
 at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
 at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
 at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
 at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
 at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
 at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
 at java.lang.Thread.run(Thread.java:595)
   
  Thank u in advance
  Deepa
   


-
 Jiyo 

Re: Download file Problem - 404 error

2006-01-30 Thread Anto Paul
On 1/31/06, DEEPA M N [EMAIL PROTECTED] wrote:

 Hi,

   Here is a log file. Pls let me know how can i correct it.


In what package it is defined ?.
Are you sure you deleted the old classfiles and compiled the
classfiles to the right folder ?
Go to WEB-INF\classes and type   java com.deepa.servlet.DownloadFiles.
Go to classes com/deepa/servlet and type java DownloadFiles.

It should give the same error since it is not in the right
package/directory structure.




   2006-01-31 10:30:54 StandardWrapperValve[DownloadFiles]: Allocate exception 
 for servlet DownloadFiles
 javax.servlet.ServletException: Error allocating a servlet instance
  at 
 org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:691)
  at 
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:144)
  at 
 org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
  at 
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
  at 
 org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
  at 
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
  at 
 org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
  at 
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
  at 
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
  at 
 org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
  at 
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
  at 
 org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
  at 
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
  at 
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
  at 
 org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
  at 
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
  at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
  at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
  at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
  at 
 org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
  at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
  at 
 org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
  at java.lang.Thread.run(Thread.java:595)
 - Root Cause -
 java.lang.NoClassDefFoundError: com/deepa/servlet/DownloadFiles (wrong name: 
 DownloadFiles)
  at java.lang.ClassLoader.defineClass1(Native Method)
  at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
  at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
  at 
 org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1634)
  at 
 org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:860)
  at 
 org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1307)
  at 
 org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1189)
  at 
 org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:964)
  at 
 org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:687)
  at 
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:144)
  at 
 org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
  at 
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
  at 
 org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
  at 
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
  at 
 org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
  at 
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
  at 
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
  at 
 org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
  at 
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
  at 
 org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
  at 
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
  at 
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
  at 
 org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
  at 
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
  at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
  at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
  at 

how many nest logic:iterate

2006-01-30 Thread Tony Smith
It seems that if you have more than three nested
logic:iterate,  the code is not going to work. 

For example, if you have:

logic:iterate id=p1 name=myForm property=list1
logic:iterate id=p2 name=myForm property=list2
 ${p2}
/logic:iterate
/logic:iterate

It is ok. But if you have :

logic:iterate id=p1 name=myForm property=list1
logic:iterate id=p2 name=myForm property=list2
logic:iterate id=p3 name=myForm property=list3
 ${p3}
/logic:iterate
/logic:iterate
/logic:iterate
p3 is not printed out.

Am I right? 

Here is my real code, did I do something worong? The
most inside logic:iterate did not print.

logic:present name=protocolForm
property=protocolActionList
logic:iterate indexId=idx id=media
name=protocolForm property=protocolActionList
tr
tdlogic:lessThan name=ac value=1
${media.startDate}
/logic:lessThannbsp;/td
td${media.startTime}nbsp;/td
tdlogic:iterate id=p name=protocolForm
property=protocol
logic:equal name=p 
property=protocolActionId
value=${media.id}
${p.type}
logic:iterate id=com 
name=protocolForm
property=compoundActionList
logic:equal 
name=p.protocolActionId
value=com.protocolActionId
ss${com.compound}
/logic:equal
/logic:iterate
/logic:equal
/logic:iteratenbsp;/td
td
logic:greaterThan name=ac value=0
html:button property=delete value= Delete 
onclick=location.href='protocoldelete.do?id=${media.id}studyid=${param.studyid}experimentId=${param.experimentId}type=${param.type}menutype=${param.menutype}protocolGroupId=${param.protocolGroupId}'/
/logic:greaterThannbsp;
/td
/tr
bean:define id=ac value=${idx + 1}/
/logic:iterate
/logic:present


For 
--- DEEPA M N [EMAIL PROTECTED] wrote:

 
 Hi,

   Here is a log file. Pls let me know how can i
 correct it.

   2006-01-31 10:30:54
 StandardWrapperValve[DownloadFiles]: Allocate
 exception for servlet DownloadFiles
 javax.servlet.ServletException: Error allocating a
 servlet instance
  at

org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:691)
  at

org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:144)
  at

org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
  at

org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
  at

org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
  at

org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
  at

org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
  at

org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
  at

org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
  at

org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
  at

org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
  at

org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
  at

org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
  at

org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
  at

org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
  at

org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
  at

org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
  at

org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
  at

org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
  at

org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
  at

org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
  at

org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
  at java.lang.Thread.run(Thread.java:595)
 - Root Cause -
 java.lang.NoClassDefFoundError:
 com/deepa/servlet/DownloadFiles (wrong name:
 DownloadFiles)
  at java.lang.ClassLoader.defineClass1(Native
 Method)
  at

java.lang.ClassLoader.defineClass(ClassLoader.java:620)
  at

java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
  at

org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1634)
  at


Re: Download file Problem - 404 error

2006-01-30 Thread DEEPA M N
Hi
  I did as u said. This is wat the error i m getting.
   
  D:\Tomcat5.0\jakarta-tomcat-5.0.28\webapps\DownloadFile\WEB-INF\classesjava 
com.deepa.servlet.DownloadFiles
Exception in thread main java.lang.NoClassDefFoundError: 
com/deepa/servlet/DownloadFiles (wrong name: DownloadFiles)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
   
   
  
D:\Tomcat5.0\jakarta-tomcat-5.0.28\webapps\DownloadFile\WEB-INF\classes\com\deepa\servletjava
 DownloadFiles
Exception in thread main java.lang.NoClassDefFoundError: 
javax/servlet/http/HttpServlet
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
   
  Thank u


  Anto Paul [EMAIL PROTECTED] wrote:
  In what package it is defined ?.
Are you sure you deleted the old classfiles and compiled the
classfiles to the right folder ?
Go to WEB-INF\classes and type java com.deepa.servlet.DownloadFiles.
Go to classes com/deepa/servlet and type java DownloadFiles.

It should give the same error since it is not in the right
package/directory structure.





-
 Jiyo cricket on Yahoo! India cricket

Re: Download file Problem - 404 error

2006-01-30 Thread Anto Paul
On 1/31/06, DEEPA M N [EMAIL PROTECTED] wrote:
 Hi
   I did as u said. This is wat the error i m getting.

   
 D:\Tomcat5.0\jakarta-tomcat-5.0.28\webapps\DownloadFile\WEB-INF\classesjava 
 com.deepa.servlet.DownloadFiles
 Exception in thread main java.lang.NoClassDefFoundError: 
 com/deepa/servlet/DownloadFiles (wrong name: DownloadFiles)
 at java.lang.ClassLoader.defineClass1(Native Method)
 at java.lang.ClassLoader.defineClass(Unknown Source)
 at java.security.SecureClassLoader.defineClass(Unknown Source)
 at java.net.URLClassLoader.defineClass(Unknown Source)
 at java.net.URLClassLoader.access$100(Unknown Source)
 at java.net.URLClassLoader$1.run(Unknown Source)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.net.URLClassLoader.findClass(Unknown Source)
 at java.lang.ClassLoader.loadClass(Unknown Source)
 at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
 at java.lang.ClassLoader.loadClass(Unknown Source)
 at java.lang.ClassLoader.loadClassInternal(Unknown Source)



This means that the class is  not in the correct package. Put the
following line as the first line in the file DownloadFiles.java

package com.deepa.servlet;



   
 D:\Tomcat5.0\jakarta-tomcat-5.0.28\webapps\DownloadFile\WEB-INF\classes\com\deepa\servletjava
  DownloadFiles
 Exception in thread main java.lang.NoClassDefFoundError: 
 javax/servlet/http/HttpServlet
 at java.lang.ClassLoader.defineClass1(Native Method)
 at java.lang.ClassLoader.defineClass(Unknown Source)
 at java.security.SecureClassLoader.defineClass(Unknown Source)
 at java.net.URLClassLoader.defineClass(Unknown Source)
 at java.net.URLClassLoader.access$100(Unknown Source)
 at java.net.URLClassLoader$1.run(Unknown Source)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.net.URLClassLoader.findClass(Unknown Source)
 at java.lang.ClassLoader.loadClass(Unknown Source)
 at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
 at java.lang.ClassLoader.loadClass(Unknown Source)
 at java.lang.ClassLoader.loadClassInternal(Unknown Source)

   Thank u


   Anto Paul [EMAIL PROTECTED] wrote:
   In what package it is defined ?.
 Are you sure you deleted the old classfiles and compiled the
 classfiles to the right folder ?
 Go to WEB-INF\classes and type java com.deepa.servlet.DownloadFiles.
 Go to classes com/deepa/servlet and type java DownloadFiles.

 It should give the same error since it is not in the right
 package/directory structure.





 -
  Jiyo cricket on Yahoo! India cricket



--
rgds
Anto Paul

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



Re: Download file Problem - 404 error

2006-01-30 Thread vineesh kumar
Deepa this error comes bcos the classpath of urs is not set
correctly.please set the classpath as of to include the
serv;letapi.jar and this directory. and check whether this class is
public.
regards
  vineesh

On 1/31/06, DEEPA M N [EMAIL PROTECTED] wrote:
 Hi
   I did as u said. This is wat the error i m getting.

   
 D:\Tomcat5.0\jakarta-tomcat-5.0.28\webapps\DownloadFile\WEB-INF\classesjava 
 com.deepa.servlet.DownloadFiles
 Exception in thread main java.lang.NoClassDefFoundError: 
 com/deepa/servlet/DownloadFiles (wrong name: DownloadFiles)
 at java.lang.ClassLoader.defineClass1(Native Method)
 at java.lang.ClassLoader.defineClass(Unknown Source)
 at java.security.SecureClassLoader.defineClass(Unknown Source)
 at java.net.URLClassLoader.defineClass(Unknown Source)
 at java.net.URLClassLoader.access$100(Unknown Source)
 at java.net.URLClassLoader$1.run(Unknown Source)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.net.URLClassLoader.findClass(Unknown Source)
 at java.lang.ClassLoader.loadClass(Unknown Source)
 at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
 at java.lang.ClassLoader.loadClass(Unknown Source)
 at java.lang.ClassLoader.loadClassInternal(Unknown Source)


   
 D:\Tomcat5.0\jakarta-tomcat-5.0.28\webapps\DownloadFile\WEB-INF\classes\com\deepa\servletjava
  DownloadFiles
 Exception in thread main java.lang.NoClassDefFoundError: 
 javax/servlet/http/HttpServlet
 at java.lang.ClassLoader.defineClass1(Native Method)
 at java.lang.ClassLoader.defineClass(Unknown Source)
 at java.security.SecureClassLoader.defineClass(Unknown Source)
 at java.net.URLClassLoader.defineClass(Unknown Source)
 at java.net.URLClassLoader.access$100(Unknown Source)
 at java.net.URLClassLoader$1.run(Unknown Source)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.net.URLClassLoader.findClass(Unknown Source)
 at java.lang.ClassLoader.loadClass(Unknown Source)
 at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
 at java.lang.ClassLoader.loadClass(Unknown Source)
 at java.lang.ClassLoader.loadClassInternal(Unknown Source)

   Thank u


   Anto Paul [EMAIL PROTECTED] wrote:
   In what package it is defined ?.
 Are you sure you deleted the old classfiles and compiled the
 classfiles to the right folder ?
 Go to WEB-INF\classes and type java com.deepa.servlet.DownloadFiles.
 Go to classes com/deepa/servlet and type java DownloadFiles.

 It should give the same error since it is not in the right
 package/directory structure.





 -
  Jiyo cricket on Yahoo! India cricket


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



Where do we put Business Logic(BL) and DBConnection files in Tomcat 5.5.15 in JSP?

2006-01-30 Thread gupta vidhi
hello,
   
  I'd made a JSP page and included a package in which my Bl(Business Logic) 
file is stored as :-
   %@ page import=primeReports/bl/MemGrossBl%
   
  This package is in ROOT directory in webapps.
but whenever i'm executing the page, the error is coming as it could
not be able to find this package and file.
   
  Similarly i'd made my seperate DBConnection file which is in 
  ROOT\primeReports\db\
  and the same problem is coming,as whenever i'm executing it the compiler is 
giving an error that package primeReports.db  does not exist.
   
  Kindly tell me :
  Where do we put Business Logic(BL) and DBConnection files in Tomcat 5.5.15 in 
JSP?
  as we put classes12.jar in common/lib, is there any such requirement for BL 
and DBConnection files also?
   
  Thanks  Regards,
  Vidhi


-
 
 What are the most popular cars? Find out at Yahoo! Autos 

Re: Download file Problem - 404 error

2006-01-30 Thread vineesh kumar
Also check the package name

On 1/31/06, vineesh kumar [EMAIL PROTECTED] wrote:
 Deepa this error comes bcos the classpath of urs is not set
 correctly.please set the classpath as of to include the
 serv;letapi.jar and this directory. and check whether this class is
 public.
 regards
   vineesh

 On 1/31/06, DEEPA M N [EMAIL PROTECTED] wrote:
  Hi
I did as u said. This is wat the error i m getting.
 

  D:\Tomcat5.0\jakarta-tomcat-5.0.28\webapps\DownloadFile\WEB-INF\classesjava
   com.deepa.servlet.DownloadFiles
  Exception in thread main java.lang.NoClassDefFoundError: 
  com/deepa/servlet/DownloadFiles (wrong name: DownloadFiles)
  at java.lang.ClassLoader.defineClass1(Native Method)
  at java.lang.ClassLoader.defineClass(Unknown Source)
  at java.security.SecureClassLoader.defineClass(Unknown Source)
  at java.net.URLClassLoader.defineClass(Unknown Source)
  at java.net.URLClassLoader.access$100(Unknown Source)
  at java.net.URLClassLoader$1.run(Unknown Source)
  at java.security.AccessController.doPrivileged(Native Method)
  at java.net.URLClassLoader.findClass(Unknown Source)
  at java.lang.ClassLoader.loadClass(Unknown Source)
  at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
  at java.lang.ClassLoader.loadClass(Unknown Source)
  at java.lang.ClassLoader.loadClassInternal(Unknown Source)
 
 

  D:\Tomcat5.0\jakarta-tomcat-5.0.28\webapps\DownloadFile\WEB-INF\classes\com\deepa\servletjava
   DownloadFiles
  Exception in thread main java.lang.NoClassDefFoundError: 
  javax/servlet/http/HttpServlet
  at java.lang.ClassLoader.defineClass1(Native Method)
  at java.lang.ClassLoader.defineClass(Unknown Source)
  at java.security.SecureClassLoader.defineClass(Unknown Source)
  at java.net.URLClassLoader.defineClass(Unknown Source)
  at java.net.URLClassLoader.access$100(Unknown Source)
  at java.net.URLClassLoader$1.run(Unknown Source)
  at java.security.AccessController.doPrivileged(Native Method)
  at java.net.URLClassLoader.findClass(Unknown Source)
  at java.lang.ClassLoader.loadClass(Unknown Source)
  at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
  at java.lang.ClassLoader.loadClass(Unknown Source)
  at java.lang.ClassLoader.loadClassInternal(Unknown Source)
 
Thank u
 
 
Anto Paul [EMAIL PROTECTED] wrote:
In what package it is defined ?.
  Are you sure you deleted the old classfiles and compiled the
  classfiles to the right folder ?
  Go to WEB-INF\classes and type java com.deepa.servlet.DownloadFiles.
  Go to classes com/deepa/servlet and type java DownloadFiles.
 
  It should give the same error since it is not in the right
  package/directory structure.
 
 
 
 
 
  -
   Jiyo cricket on Yahoo! India cricket
 


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



Tomcat in debug mode

2006-01-30 Thread nitin dubey
Hello,

I am running tomcat 5.5.9 on WIN2K.  When I try to run
my web application deployed in tomcat on DEBUG mode
the complete tomcat server starts running in DEBUG
mode and takes a lot of time to start.

Can anyone suggest me what is the problem ?

Cheers,

- nitin




__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



Re: Download file Problem - 404 error

2006-01-30 Thread DEEPA M N
Hi,
  I hav set the classpath in the environment variables as below
  D:\Tomcat5.0\jakarta-tomcat-5.0.28\common\lib\servlet-api.jar
   
  Let me know is this correct?
  regards
  Deepa
vineesh kumar [EMAIL PROTECTED] wrote:
  Deepa this error comes bcos the classpath of urs is not set
correctly.please set the classpath as of to include the
serv;letapi.jar and this directory. and check whether this class is
public.
regards
vineesh



-
 Jiyo cricket on Yahoo! India cricket

RE: Download file Problem - 404 error

2006-01-30 Thread Avinash RS
Hi Deepa,
 
   I had the a similar problem and ONE of the reason to get a
NoCalssDefFoundError is that Tomcat is encountering more than one Servlet jar
in the classpath(which are different versions). I suggest you remove all the
entries for servlet jar from the classpth in environment variables and try
accessing your application.
 
ping me if you require more info.
 
Regards,
Avinash

-Original Message- 
From: DEEPA M N [mailto:[EMAIL PROTECTED] 
Sent: Tue 1/31/2006 11:43 AM 
To: Tomcat Users List 
Cc: 
Subject: Re: Download file Problem - 404 error



Hi
  I did as u said. This is wat the error i m getting.
  

D:\Tomcat5.0\jakarta-tomcat-5.0.28\webapps\DownloadFile\WEB-INF\classesjava
com.deepa.servlet.DownloadFiles
Exception in thread main java.lang.NoClassDefFoundError:
com/deepa/servlet/DownloadFiles (wrong name: DownloadFiles)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown
Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
  
  

D:\Tomcat5.0\jakarta-tomcat-5.0.28\webapps\DownloadFile\WEB-INF\classes\com\d
eepa\servletjava DownloadFiles
Exception in thread main java.lang.NoClassDefFoundError:
javax/servlet/http/HttpServlet
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown
Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
  
  Thank u


  Anto Paul [EMAIL PROTECTED] wrote:
  In what package it is defined ?.
Are you sure you deleted the old classfiles and compiled the
classfiles to the right folder ?
Go to WEB-INF\classes and type java com.deepa.servlet.DownloadFiles.
Go to classes com/deepa/servlet and type java DownloadFiles.

It should give the same error since it is not in the right
package/directory structure.




   
-
 Jiyo cricket on Yahoo! India cricket 

-
Disclaimer
-

This message(including attachment if any)is confidential and may be 
privileged.Before opening attachments please check them
for viruses and defects.MindTree Consulting Private Limited (MindTree)will not 
be responsible for any viruses or defects or
any forwarded attachments emanating either from within MindTree or outside.If 
you have received this message by mistake please notify the sender by return  
e-mail and delete this message from your system. Any unauthorized use or 
dissemination of this message in whole or in part is strictly prohibited.  
Please note that e-mails are susceptible to change and MindTree shall not be 
liable for any improper, untimely or incomplete transmission.

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

RE: Download file Problem - 404 error

2006-01-30 Thread Bob Hall
Deepa,

As someone pointed out in an earlier post you need to
include the following in your DownloadFile.java file:
(usually, as the first line)

package com.deepa.servlet;

You would also normally place DownloadFiles.java in
a directory that ended in com/deepa/servlet.  In
WinSpeak:
D:\data\eclipse\workspace\com\deepa\servlet\DownloadFiles.java

After a successful compile,
com\deepa\servlet\DownloadFiles.class
should be copied to the WEB-INF\classes directory of
your
web app.

- Bob

   -Original Message- 
   From: DEEPA M N [mailto:[EMAIL PROTECTED] 
   Sent: Tue 1/31/2006 11:43 AM 
   To: Tomcat Users List 
   Cc: 

D:\Tomcat5.0\jakarta-tomcat-5.0.28\webapps\DownloadFile\WEB-INF\classesjava
 com.deepa.servlet.DownloadFiles
   Exception in thread main
 java.lang.NoClassDefFoundError:
 com/deepa/servlet/DownloadFiles (wrong name:
 DownloadFiles)


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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