Re: Example build.xml error?

2005-10-12 Thread Anto Paul
On 10/10/05, René Schade [EMAIL PROTECTED] wrote:
 Hi List,

 Starting a new project, I deceided to move to Tomcat 5.5.

 In the Application Developer's Guide

 http://jakarta.apache.org/tomcat/tomcat-5.5-doc/appdev/index.html

 There is an example build.xml file for installing  reloading the project, a 
 basic build-file:

 http://jakarta.apache.org/tomcat/tomcat-5.5-doc/appdev/build.xml.txt

 Using this build.xml file works fine, except for one thing. Whenever I do a 
 change followed by ant reload, it does not deploy the changes to the 
 server. The changed files are recompiled in to the local /build folder, 
 followed by a reload of the server, but the changed files are never deployed 
 to the server.

It should be that class files are not compiled to Tomcats applications
WEB-INF\classes folder. You can check this by comparing timestamps of
a modified class file.
Perhaps you have to make property build.home  point to the application
context directory of Tomcat. ie. something like
property name=build.homevalue=${catalina.home}/myapp/

--
rgds
Anto Paul

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



Re: newbee question on servlet and html

2005-10-12 Thread Anto Paul
On 10/11/05, Developer Developer [EMAIL PROTECTED] wrote:
 I wrote my first html and servlet and deployed it on tomcat 5.5. The html
 works okay when i call it from the browser. The servlet too works okay when
 i call its doget() method by invoking it from the browser. EG:.
 http://localhost:8080/VBeer/BeerSelect
 However, when i try to invoke the servlet from an html form I get a message
 box - (file download security warning) - Do you want to save this file, with
 a
 funny number suffixed to the my servlet name.


 Not sure what is happening.
 Here is my HTML code snippet.

 body

 h1 align =3D centerBeer selecton Page /h1

 form method=3DPOST action=3DBeerSelect

what is this 3D before POST ?


--
rgds
Anto Paul

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



Re: Illegal Field Name Error

2005-10-11 Thread Anto Paul
On 10/10/05, Asad Habib [EMAIL PROTECTED] wrote:
 I am receiving the following error when trying to run a Struts
 application. I checked and it seems that I do have all of the appropriate
 jar files installed. But for some reason, the Action class is not being
 recognized. Any help would be greatly appreciated. Thank you.

 - Asad


 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: Illegal field name has inconsistent
 hierarchy in class
 registration/RegistrationTypeAction

 org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:293)

 org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:161)
 root cause

 java.lang.ClassFormatError: Illegal field name has inconsistent
 hierarchy in class
 registration/RegistrationTypeAction
  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:1629)

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

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

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

 org.apache.struts.util.RequestUtils.applicationClass(RequestUtils.java:117)

 org.apache.struts.util.RequestUtils.applicationInstance(RequestUtils.java:143)

 org.apache.struts.action.RequestProcessor.processActionCreate(RequestProcessor.java:280)

 org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:218)

 org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)

 org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
  javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
 javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
  sun.reflect.GeneratedMethodAccessor51.invoke(Unknown Source)

 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  java.lang.reflect.Method.invoke(Method.java:585)

 org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243)
  java.security.AccessController.doPrivileged(Native Method)
  javax.security.auth.Subject.doAsPrivileged(Subject.java:517)

 org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:275)

 org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:161)
 note The full stack trace of the root cause is available in the Apache
 Tomcat/5.5.9 logs.

 Apache Tomcat/5.5.9


Delete the generated class files of your application and compile it.
Also check struts.jar that it is not corrupted.

--
rgds
Anto Paul

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



Re: What to put into JAVA_HOME on Windows xp

2005-09-28 Thread Anto Paul
On 9/28/05, Markus Hapke [EMAIL PROTECTED] wrote:
 Hi Jan and all Others,

 i changed the JAVA_HOME, but still facing the same problem:
  Perhaps JAVA_HOME does not point to the JDK

 How can I test what Tomcat tries to read when it calls the
 javac command?


Edit  startup.bat and put the following lines at the top
@echo on
echo %JAVA_HOME%

It should point to C:\JDK1.4\AppServer\jdk



 thanx in advance , Markus

  --- Ursprüngliche Nachricht ---
  Von: Jan Fredrik Fallsen [EMAIL PROTECTED]
  An: 'Tomcat Users List' tomcat-user@jakarta.apache.org, 'Arthur
  D'Alessandro' [EMAIL PROTECTED]
  Betreff: RE: What to put into JAVA_HOME on Windows xp
  Datum: Mon, 26 Sep 2005 10:50:49 +0200
 
  your java home is C:\jsdk1\Àppserver\jdk
 
  -Original Message-
  From: Arthur D'Alessandro [mailto:[EMAIL PROTECTED]
  Sent: 26. september 2005 00:16
  To: Tomcat Users List
  Subject: Re: What to put into JAVA_HOME on Windows xp
 
  Move it up one level, in your case:
  C:\JDK1.4\AppServer\jdk
 
   On 9/25/05, Markus Hapke [EMAIL PROTECTED] wrote:
  
   Hello,
  
   I just installed tomcat 5.0.28 successfully.
  
   Then tested the samples in
   C:\TOMCAT\webapps\jsp-examples\jsp2 - they worked.
  
   Thed tried to test a .jsp of my own- getting the error msg in the
   MS Internet-Explorer:
   === BEGIN of error Msg 
   HTTP Status 500 -
  
   type Exception report
  
   message
  
   description The server encountered an internal error () that prevented
  it
   from fulfilling this request.
  
   exception
  
   org.apache.jasper.JasperException: Unable to compile class for
   JSP
   org.apache.jasper.compiler.DefaultErrorHandler.javacError(
   DefaultErrorHandler.java:97)
  
  org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java
   :346)
   org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:414)
   org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
   org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
   org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
  
  org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java
   :511)
  
  org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java
   :295)
   org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
   org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
  
  
   root cause
  
   Unable to find a javac compiler;
   com.sun.tools.javac.Main is not on the classpath.
   Perhaps JAVA_HOME does not point to the
   JDK
  
  org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory.getCompiler
   (CompilerAdapterFactory.java:106)
   org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:935)
   org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:764)
   org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:382)
   org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
   org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
   org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
  
  org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java
   :511)
  
  org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java
   :295)
   org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
   org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
  
  
   note The full stack trace of the root cause is available in the Apache
   Tomcat/5.0.28 logs.
   === END of error Msg= ==
  
   I set the environment entry of JAVA_HOME to
   C:\JDK1.4\AppServer\jdk\bin
  
   Is that correct?
  
   OK, nobody of you could know where I have my J2EE (1.4) :
   it is 'mounted' under:
   C:\JDK1.4\AppServer
   and i can find the javac.exe under: C:\JDK1.4\AppServer\jdk\bin
  
   Is my entry of the JAVA_HOME correct?
  
   Is there another error?
  
   Thanx in advance, Markus
  
   --
   ,,
  
   5 GB Mailbox, 50 FreeSMS http://www.gmx.net/de/go/promail
   +++ GMX - die erste Adresse für Mail, Message, More +++
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 
 
  --
  -Art D'Alessandro
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 

 --
 Lust, ein paar Euro nebenbei zu verdienen? Ohne Kosten, ohne Risiko!
 Satte Provisionen für GMX Partner: http://www.gmx.net/de/go/partner

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




--
rgds
Anto Paul

Re: how to turn off session cookies

2005-09-28 Thread Anto Paul
On 9/28/05, Fredrik Wendt [EMAIL PROTECTED] wrote:
 One-liner: How do you turn session cookies off, server side?

Context/ element has an attribute cookies. set it to false to turn
off session cookies.
See http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/context.html




 Hi!

 Nowadays it's illegal to use cookies on web sites in sweden, without
 informing the visitor that it's done and why, what cookie is etc. Since
 I don't have any use of a session nor am interested in adding a page
 saying we use cookies for no reason to the site in question, I'm
 (after googling) wondering:

 How do you turn session cookies off, server side?

 In Tomcat 3.3, this could be done as seen on
 http://jakarta.apache.org/tomcat/tomcat-3.3-doc/serverxml.html#SessionId
 but I've failed to find out where this option has moved.


 Thanks in advance,

 Fredrik Wendt


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




--
rgds
Anto Paul

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



Re: saving files in webapp folder from deletion?

2005-09-28 Thread Anto Paul
Read this thread lately. May be antiResourceLocking is what you are
lokking for. It is an attribute of Context element.

On 9/28/05, Thomas Corte [EMAIL PROTECTED] wrote:
 Hello,

 Pham Tran Quoc Viet wrote:

  Create x outside of webapps and create a soft link within webapps that
  points to x.
  Then, within server.xml add the following lines:
  Context docBase=absolute path to x soft link path=link name
  allowLinking=true/
 
  That's it. Everytime the soft link is hit, tomcat will follow the
  symbolic link get the appropriate requested file under x.

 Ok, but the tomcat 5 docs say that allowLinking should not be set to
 true on Windows systems. Although I'm actually using a Unix flavour as a
 production environment, this would pose problems for our development
 environments which are Windows-based. Apart from that, I dislike
 platform-specific solutions.

 Apart from that, wouldn't the symlinks be deleted when the webapp is
 undeployed by tomcat? And I couldn't put them into the war file to
 reappear after re-deployment, could I?

 --
 ___
 |   |
 | knipp |  Knipp  Medien und Kommunikation GmbH
  ---  Technologiepark
   Martin-Schmeisser-Weg 9
   D-44227 Dortmund
 Dipl.-Inform. Thomas CorteFon: +49-231-9703-0
 [EMAIL PROTECTED] Fax: +49-231-9703-200

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




--
rgds
Anto Paul

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



Re: HTTP header lines

2005-09-27 Thread Anto Paul
On 9/27/05, Wilding, Gregory [EMAIL PROTECTED] wrote:
 How do I limit the amount of information disclosed in the HTTP header
 lines within Tomcat


You can change the server name by modifying the file
org\apache\catalina\util\ServerInfo.properties which resides in
server\lib\catalina.jar. Extract this to server\classes and modify
values as needed.

--
rgds
Anto Paul

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



Re: 'touch'ing jsp files to force recompilation

2005-09-26 Thread Anto Paul
On 9/27/05, steven [EMAIL PROTECTED] wrote:
 I was using the 'touch' command to force a recompile
 of some jsp files.  After a while, I checked lsof and
 noticed some files being left open:

 java  25139 fdblahh   21r   REG3,3
 1214916783806
 /home/fdblahh/jakarta-tomcat-5.5.9/work/Catalina/localhost/_/org/apache/jsp/website/info_jsp.java
 java  25139 fdblahh   22r   REG3,3
 741936783810
 /home/fdblahh/jakarta-tomcat-5.5.9/work/Catalina/localhost/_/org/apache/jsp/website/company_jsp.java
 java  25139 fdblahh   23r   REG3,3
 741936783810
 /home/fdblahh/jakarta-tomcat-5.5.9/work/Catalina/localhost/_/org/apache/jsp/website/company_jsp.java
 java  25139 fdblahh   24r   REG3,3
 1214916783806
 /home/fdblahh/jakarta-tomcat-5.5.9/work/Catalina/localhost/_/org/apache/jsp/website/info_jsp.java
 java  25139 fdblahh   25r   REG3,3
 1214916783806
 /home/fdblahh/jakarta-tomcat-5.5.9/work/Catalina/localhost/_/org/apache/jsp/website/info_jsp.java
 java  25139 fdblahh   28r   REG3,3
 1214916783806
 /home/fdblahh/jakarta-tomcat-5.5.9/work/Catalina/localhost/_/org/apache/jsp/website/info_jsp.java
 java  25139 fdblahh   29r   REG3,3
 771226783804
 /home/fdblahh/jakarta-tomcat-5.5.9/work/Catalina/localhost/_/org/apache/jsp/website/index_jsp.java
 java  25139 fdblahh   30r   REG3,3
 1214916783806
 /home/fdblahh/jakarta-tomcat-5.5.9/work/Catalina/localhost/_/org/apache/jsp/website/info_jsp.java
 java  25139 fdblahh   31r   REG3,3
 771226783804
 /home/fdblahh/jakarta-tomcat-5.5.9/work/Catalina/localhost/_/org/apache/jsp/website/index_jsp.java

 After playing around, it seemed like one of these was
 added if I touched a page then visited it, but not
 every time.  When generating the above list of files,
 it happened about 1 out of every 4 times.  After the
 garbage collector ran, they all disappeared.  Any
 ideas on why these files are being left open?

 I'm using jre version 1.5.0 and tomcat 5.5.9.


I am interested in a solution to this.I have this problem in win2k,
JDK 1.4.2, Tomcat 5.5.9 and above. Sometimes I can't delete all the
files from work folder.

--
rgds
Anto Paul

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



Re: stop tomcat's logging in application's log

2005-09-21 Thread Anto Paul
On 9/21/05, rahul [EMAIL PROTECTED] wrote:
 
 hi,
 
 I am using Log4j in application for logging.
 I have placed log4j configuration file(log4j.xml) in my
 application's WEB-INF/classes folder.
 
 But the file in which I am taking all logs is filled with tomcat's log
 along with my application's log.
 
 Is there any way I can see only my application's log in my log file ?
 

Where is the log4j.jar ?.
Some documents are available.
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/logging.html

http://jakarta.apache.org/tomcat/faq/logging.html


-- 
rgds
Anto Paul

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



Re: stop tomcat's logging in application's log

2005-09-21 Thread Anto Paul
On 9/21/05, rahul [EMAIL PROTECTED] wrote:
 log4j.jar is in webapps/MyApp/WEB-INF/lib
 

You might have log4j jar and config files somewhere else in common or
server folders. With TC 5.5.11 I have no problem with my application.
I am developing a sample application that uses log4j(from Spring
framework). If you want it I can send it to you as WAR file for
testing.

NOTE: If you use any framework like Struts,Spring etc.. it will log
into your applications log4j config.

 
  -Original Message-
  From: Anto Paul [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, September 21, 2005 11:55 AM
  To: Tomcat Users List
  Subject: Re: stop tomcat's logging in application's log
 
 
  On 9/21/05, rahul [EMAIL PROTECTED] wrote:
  
   hi,
  
   I am using Log4j in application for logging.
   I have placed log4j configuration file(log4j.xml) in my
   application's WEB-INF/classes folder.
  
   But the file in which I am taking all logs is filled with tomcat's log
   along with my application's log.
  
   Is there any way I can see only my application's log in my log file ?
  
 
  Where is the log4j.jar ?.
  Some documents are available.
  http://jakarta.apache.org/tomcat/tomcat-5.5-doc/logging.html
 
  http://jakarta.apache.org/tomcat/faq/logging.html
 
 
  --
  rgds
  Anto Paul
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 


-- 
rgds
Anto Paul

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



Re: Problems with utf-8 encoding

2005-09-19 Thread Anto Paul
On 9/19/05, Yair Zohar [EMAIL PROTECTED] wrote:
 
 Hello,
 I'm using Tomcat 4.1.18
 I'm trying to read hebrew data in utf-8 encoding from the database. As a
 check I entered a utf-8 encoded 'alef' letter to the database field.
 (I see it in the database as one letter 'alef'). The jsp page that
 displays the data, prints two chars instead of one. I checked the values
 of these chars and
 they are 215 114, which are the utf-8 combination to create the letter
 'alef'  (so I was told).
 
 jps code:
 
 %@ page language=java contentType=text/html;charset=UTF-8
 pageEncoding=UTF-8 info=Tables Handler import=tablesHandler.* %
 
 jsp:useBean id=tables scope=page class=tablesHandler.TableViewer /
 jsp:setProperty name=tables property=*/
 
 % request.setCharacterEncoding(UTF-8);%
 
 html
 
 head
 meta http-equiv=Content-Type content=text/html; charset=UTF-8
 /head
 

Move % request.setCharacterEncoding(UTF-8);% to before jsp:useBean tag.

-- 
rgds
Anto Paul

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



Re: Problems with utf-8 encoding

2005-09-19 Thread Anto Paul
Does your browser supports hebrew ?. If you are just getting the data
from database and displaying, it should work fine. What database and
JDBC driver you are using ?.


On 9/19/05, Yair Zohar [EMAIL PROTECTED] wrote:
 Anto Paul wrote:
 
 On 9/19/05, Yair Zohar [EMAIL PROTECTED] wrote:
 
 
 Hello,
 I'm using Tomcat 4.1.18
 I'm trying to read hebrew data in utf-8 encoding from the database. As a
 check I entered a utf-8 encoded 'alef' letter to the database field.
 (I see it in the database as one letter 'alef'). The jsp page that
 displays the data, prints two chars instead of one. I checked the values
 of these chars and
 they are 215 114, which are the utf-8 combination to create the letter
 'alef'  (so I was told).
 
 jps code:
 
 %@ page language=java contentType=text/html;charset=UTF-8
 pageEncoding=UTF-8 info=Tables Handler import=tablesHandler.* %
 
 jsp:useBean id=tables scope=page class=tablesHandler.TableViewer /
 jsp:setProperty name=tables property=*/
 
 % request.setCharacterEncoding(UTF-8);%
 
 html
 
 head
 meta http-equiv=Content-Type content=text/html; charset=UTF-8
 /head
 
 
 
 
 Move % request.setCharacterEncoding(UTF-8);% to before jsp:useBean tag.
 
 
 
 Thanks for replying,
 It didn't fix the problem, I still see the same two chars.
 Yair.
 
 
 


-- 
rgds
Anto Paul

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



Re: Specify work folder for each application

2005-09-16 Thread Anto Paul
On 9/16/05, rahul [EMAIL PROTECTED] wrote:
 Eclipse
 
 Poject - Properties- Java Build Path -   Source -Add folder...
 

It is not allowing to add a folder outside the project. In Eclipse 3.0
I did this using some mapping external resource. But in 3.1 I couldn't
find this option.


-- 
rgds
Anto Paul

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



Specify work folder for each application

2005-09-15 Thread Anto Paul
Hi all,
Is it possible to specify work folder for the web application.
What I need is to add generated source and class files of JSP's into
Eclipse proect classpath. I am using Eclipse 3.1. I couldn't find a
way to map an external folder into Eclipse classpath.

-- 
rgds
Anto Paul

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



Re: Real basic question - scope

2005-09-01 Thread Anto Paul
On 9/1/05, David Shapiro [EMAIL PROTECTED] wrote:
 
 I have a jsp page that uses a class I wrote to connect to a database 
 (mysql)
 and pull up some information based on what the user fills in one of three
 text boxes. I understand why if I fill in a text box once and press submit
 I get my result, but I do not understand why if I press enter again 
 without
 filling in the textbox if brings up the same response again. In that, if I
 type in a user's last name and press enter, I get the user's info. If I
 press enter again, I get the same user's info even though I did not fill 
 in
 the text box. My mysql code opens a connection, fills an rs, displays the
 results, and closes the connection. If I do not have a bean I am calling,
 how do I set scope for the page to be for example just request? Is the
 reason I see info even though I did not supply anything in the text box
 because of the browser caching stuff, or is it tomcat? I am just a bit
 confused about the whole thing and would appreciate a brief description of
 what I am seeing and a good response to it.
 
 Note: jstl is installed.
 

What is processing the request ? A servlet, Struts Action, JSP ?. Does it 
have any instance variable that stores the input data ?.

-- 
rgds
Anto Paul


Re: Real basic question - scope

2005-09-01 Thread Anto Paul
On 9/2/05, David Shapiro [EMAIL PROTECTED] wrote:
 
 It is just a jsp page Pretty much html accept for the class for processing
 the mysql query. It uses basic jsp to display the rs data in a table with 
 a
 little bit of css to snaze it up.
 
 
It will be useful if you post the relevant JSP/Java code fragments. 

-- 
rgds
Anto Paul


Re: Character encoding question

2005-08-29 Thread Anto Paul
On 8/29/05, Richard Jones [EMAIL PROTECTED] wrote:
 Hi All,
 
 I am having problems with Scandinavian characters on my system and am
 attempting to isolate the problem; any help would be greatly
 appreciated.

This is what I did to work with Tomcat. 

a, Set up Tomcat first: To support UTF encoded data send as part of
URI one has to set the URIEncoding attribute of the coyote Connector
element in server.xml.
b, Use a filter to set the character encoding of the request before it
is processed.
public void doFilter(ServletRequest req,ServletResponse res,FilterChain chain) {
request.setCharacterEncoding(UTF-8);
chain.doFilter(req,res);
}
c, Set the following header in all JSP pages.
%@ page contentType=text/html; charset=UTF-8%

Reference:
http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg153811.html

-- 
rgds
Anto Paul

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



Re: Character encoding question

2005-08-29 Thread Anto Paul
The setCharacterEncoding() must be called on the request before any
getParameter() method is invoked on it. There may be some filters that
is processing the request in the filter chain before the setCharacter
encoding filter.

Also what is the character encoding used by the OS ?. 
URIEncoding method is useful with GET methods since the parameters are
sent along with the URL. Try using POST methods everywhere and check
for problems. To be safe I am using hidden variables and sending data
as POST instead of appending it to the URL.


On 8/29/05, Richard Jones [EMAIL PROTECTED] wrote:
 Hi,
 
   I am having problems with Scandinavian characters on my system and am
   attempting to isolate the problem; any help would be greatly
   appreciated.
 
  This is what I did to work with Tomcat.
 
  a, Set up Tomcat first: To support UTF encoded data send as part of
  URI one has to set the URIEncoding attribute of the coyote Connector
  element in server.xml.
  b, Use a filter to set the character encoding of the request before it
  is processed.
  public void doFilter(ServletRequest req,ServletResponse res,FilterChain 
  chain) {
  request.setCharacterEncoding(UTF-8);
  chain.doFilter(req,res);
  }
  c, Set the following header in all JSP pages.
  %@ page contentType=text/html; charset=UTF-8%
 
 I have delved into the source code, and after a minor fiddle with the
 tomcat server.xml to ensure that URIEncoding is set correctly I am
 certain that these three requirements are currently fulfilled, and were
 so before.  I have disabled RequestDumperValve after reading something
 about issues it causes with setCharacterEncoding, and instead am relying
 on our own log4j debug output.
 
 Annoyingly (or not, depending on how you look at it), I am having
 trouble reproducing the problem again!  Perhaps I had fixed it with the
 URIEncoding setting, only not noticed because I still had
 RequestDumperValve enabled.
 
 This problem has been strangely elusive; sometimes I have problems and
 other times not, both within the same system and across other versions.
 I'll keep an eye on it, and see if there's any more information I can
 get out of it.  I may be back later today ;)
 
 Thanks all for your help,
 
 Best Wishes,
 
 --
 Richard
 ---
 Richard Jones|
 Overingeniør | Senior Engineer
 Universitetsbiblioteket i Bergen | University of Bergen Library
 
 e: [EMAIL PROTECTED]
 t: +47 55 58 25 37
 
 BORA: http://bora.uib.no/
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


-- 
rgds
Anto Paul

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



Re: Where can I find specs for ALL the xml tags that can be used in server.xml.

2005-08-28 Thread Anto Paul
On 8/29/05, Alan Chandler [EMAIL PROTECTED] wrote:
 Where can I find specs for all the tags in server.xml

I use these pages. it explains the elements used in the server.xml.
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/index.html

-- 
rgds
Anto Paul

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



Re: JAVA_HOME beginner

2005-08-27 Thread Anto Paul
Did you set JAVA_HOME environment variable. It should point to the JDK
installation directory for eg. c:\j2sdk1.4.2_02. Try setting it in
startup.bat as the first line.

On 8/27/05, ganesan malairaja [EMAIL PROTECTED] wrote:
 i am using win XP. tomcat 5.0.xx and jdk1.4_02
 
 i tried running several jsp pages ..it resturns this errors
 
 Unable to find a javac compiler;
 com.sun.tools.javac.Main is not on the classpath.
 Perhaps JAVA_HOME does not point to the JDK
 
 
 how do i over come this ..pls help
 
 
 thx
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


-- 
rgds
Anto Paul

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



Re: NamingException

2005-08-08 Thread Anto Paul
)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:156)
 Stopping service Tomcat-Standalone
 Catalina.stop: LifecycleException:  Coyote connector has not been started
 LifecycleException:  Coyote connector has not been started
 at
 org.apache.coyote.tomcat4.CoyoteConnector.stop(CoyoteConnector.java:1296)
 at
 org.apache.catalina.core.StandardService.stop(StandardService.java:499)
 at
 org.apache.catalina.core.StandardServer.stop(StandardServer.java:2178)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:494)
 at org.apache.catalina.startup.Catalina.execute(Catalina.java:350)
 at org.apache.catalina.startup.Catalina.process(Catalina.java:129)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:156)
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


-- 
rgds
Anto Paul

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



What is APR ?

2005-07-24 Thread Anto Paul
Hi all,
Is APR for Tomcat is any native library or java ? Where to get it ?
-- 
rgds
Anto Paul

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



Re: connection refused

2005-07-04 Thread Anto Paul
On 7/4/05, ganesan malairaja [EMAIL PROTECTED] wrote:
 hi guys
 
 when i try to access tomcat using  //localserver:8080 it says connection
 refused ..
 

I presume it is http://localhost:8080 or hostname:8080. Check for any
firewalls. Check log messages in console.


-- 
rgds
Anto Paul

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



Re: Load oracle.jdbc.driver.OracleDriver class

2005-06-24 Thread Anto Paul
On 6/24/05, Giacomino Raccuia [EMAIL PROTECTED] wrote:
 I put the Jar (with tomcat 4.0.3 I use *classes12.zip*, for tomcat 5.5.9
 I use the same library or the *classes12.jar*?) in the common/lib, and
 my classpath are:
 
 CLASSPATH=/usr1/jdk1.4.1
 
 but the error doesn't change...

Tomcat loads libraries with .jar extension only.  Two suggestions I
have for your problem.
1, Try using the 9i driver if possible. 
2, Try to load using Thread.getContextClassLoader().loadClass() to
test that the class is visible to your application.

-- 
rgds
Anto Paul

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



Re: Load oracle.jdbc.driver.OracleDriver class

2005-06-24 Thread Anto Paul
On 6/24/05, Giacomino Raccuia [EMAIL PROTECTED] wrote:
 With classes12.jar works fine, thanks lot!! But I can tell tomcat to use
 .zip file like previous version?
 
 Bye
 Mino
 
 On 24/06/2005 9:58, Anto Paul wrote:
 
 On 6/24/05, Giacomino Raccuia [EMAIL PROTECTED] wrote:
 
 
 I put the Jar (with tomcat 4.0.3 I use *classes12.zip*, for tomcat 5.5.9
 I use the same library or the *classes12.jar*?) in the common/lib, and
 my classpath are:
 
 CLASSPATH=/usr1/jdk1.4.1
 
 but the error doesn't change...
 
 
 
 Tomcat loads libraries with .jar extension only.  Two suggestions I
 have for your problem.
 1, Try using the 9i driver if possible.
 2, Try to load using Thread.getContextClassLoader().loadClass() to
 test that the class is visible to your application.
 
 
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

In my knowledge Tomcat 4 and above works only with jar files. You
might be having classes12.jar or unzipped class files in the 4.x
version.

-- 
rgds
Anto Paul

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



Is Tomcat is an application server ?

2005-06-21 Thread Anto Paul
Hi all,
Many might have asked this question but I need a more elaborate
answer. Today I attended an interview and the interviewer insists that
Tomcat versions above 4.x is an application server. Is that true ?.
What are the points to support the argument ?.

-- 
rgds
Anto Paul

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



Re: Is Tomcat is an application server ?

2005-06-21 Thread Anto Paul
On 6/21/05, Richard Mixon (qwest) [EMAIL PROTECTED] wrote:
 I think for most practical purposes Tomcat is an application server.
 
 What Tomcat does not have is a builtin Enterprise Java Beans container -
 however Tomcat supports many other parts of the J2EE spec.
 
 Simply by the numbers, the vast majority of Java web applications do not
 use EJBs - so Tomcat is just fine for most users. EJBs are not necessary
 at all for building sophisticated and complex web applications. Tomcat
 offers load balancing and clustering - which used to be only offered by
 commercial application servers.
 
 That said, there are some advantages to EJBs that can make the
 additional complexity worth it. For some enterprise situations, you may
 want an application server that is fully compliant with the J2EE spec,
 such as Jboss, WebSphere, BEA or one of the other commercial packages.
 

But it is not providing any services like transaction service,
messaging service, remoting. Without these how it can be considered as
an application server ?.

-- 
rgds
Anto Paul

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



Re: Is Tomcat is an application server ?

2005-06-21 Thread Anto Paul
On 6/21/05, David Johnson [EMAIL PROTECTED] wrote:
 To expand a bit on Richard's note ...
 
 On Tue, 2005-06-21 at 00:32 -0700, Richard Mixon (qwest) wrote:
   - Remoting implies distributing your objects across the network - a
  nice feature, but not often needed. Its talked about a lot - but for
  most applications its just not needed.
 
 J2EE is a standard that encompasses a large number of standards
 services, most of which are considered optional.  JMS, for example, is
 not implemented in any commercial server directly.  Instead, you must
 purchase a messaging system such as MQ series, (generally) a JNI wrapper
 code to talk to the message service, and a JMS wrapper that goes with
 the messaging system.  This all plugs into the app server as a set of
 JAR files and a couple of native libraries.
 
 JTA is an extension that, likewise, is optional and pluggable.  From my
 exposure, it also appears to be largely an evolving standard, in the
 sense that some of the things you would expect to support JTA don't
 quite do so.
 
   - Our Hibernate-based Tomcat application use Hibernate and jta.jar
  for
  transaction services and it works quite well. We have most of the
  advantages of declarative transaction demarcation.
 
 Hibernate demonstrates why EJB is an optional part of the J2EE
 specification.  It is fully reasonable, during product design and
 exploratory coding, to unplug one persistence model and replace it with
 another.  In the case of hibernate versus EJB 1 and 2, enough people did
 this that Hibernate has effectively displaced EJB's in much of the
 industry, and Hibernate is now the core of the EJB 3 specification.
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

There is no meaning in saying that one can plug in required
services to Tomcat. My question is by design is it an application
server ?. My opinion is that Tomcat in the shipped form is not an
application server. At the minimum it should provide transaction and
persistence services, method level security is also preferred.
One can add all the above mentioned features to any servlet engine
by deploying JAR files of the required services(JNDI,JTA,persistence
and even EJB). So any servlet engine becomes an application server. Am
I right ?

-- 
rgds
Anto Paul

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



Re: java.lang.NoClassDefFoundError: sun/tools/javac/Main

2005-06-15 Thread Anto Paul
  Another point is that I compiled using JDK1.5_01 but the tomcat4.1.30 I am
  using points to jdk1.4.2.
 
  On Tomcat5.5 (pointing to jdk1.5) this worked like a charm - I just dropped
  the war in webapps and the jsp was displayed.
 
  Can anybody give me some pointers as to how I can automatically fix this in
  4.1.30?
 

Different versions of JDK should be the problem. I had similar issues
with 1.3 and 1.4. I built Tomcat from source using one jdk and run
Tomcat using another jdk and I got similar errors.
Also post the full stack trace. Perhaps copying tools.jar(of 1.4) to
CATALINA_HOME\common\lib may solve the problem.
-- 
rgds
Anto Paul

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



Re: Getting DBCP Exception

2005-06-14 Thread Anto Paul
On 6/14/05, ajay kumar [EMAIL PROTECTED] wrote:
 Hi Everybody,
 
  This is Ajay Kumar.I implemented DBCP through tomcat
 container.Some times when i run the webpages it is giving the
 following Exception:
 
 org.apache.commons.dbcp.DbcpException: java.sql.SQLException: Server
 connection failure during transaction. Attempted reconnect 3 times.
 Giving up
 

What database you are using ? Read this doc
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/jndi-datasource-examples-howto.html#Common%20Problems

-- 
rgds
Anto Paul

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



Re: tomcat unable to serve struts action

2005-06-14 Thread Anto Paul
On 6/14/05, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
 Hi,
 
 I have an application using Apache 2.0.54, Tomcat 5.0.27  Struts 1.1 on a
 Windows 2003 SP1 box.
 
 *.jsp and *.do get forwarded to Tomcat for processing.
 
 When a particular folder is requested in a URL with no filename, I want a
 struts action to get called. For example http://test.site.com/foldername
 should result in http://test.site.com/index.do
 
 I have configured the triggering of the /index.do in Apache and it does
 seem to pass the request onto Tomcat as I see the following in the tomcat
 access log.  However Tomcat is unable to process the action and its
 causing the errorpage to trigger.
 
 xxx.xxx.xxx.xxx - - [14/Jun/2005:13:37:16 +] GET /index.do HTTP/1.1
 200 12608
 xxx.xxx.xxx.xxx - - [14/Jun/2005:13:37:17 +] GET /errorpage.jsp
 HTTP/1.1 200 11317
 

The log file shows it has HTTP status code 200 for request GET
/index.do HTTP/1.1. That means the page is found and served but some
errors occurred in the process and redirected to errorpage.jsp. Check
the error logs to find the error.


-- 
rgds
Anto Paul

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



Re: Production ready JK release?

2005-06-09 Thread Anto Paul
On 6/9/05, markus [EMAIL PROTECTED] wrote:
 Which JK connector should be considered a Stable release? The release
 notes don't make it clear.
 

I read in the download page that jk-1.2.10 is the stable
release(http://apache.tradebit.com/pub/jakarta/tomcat-connectors/jk/binaries/linux/).
You can check bugzilla to find related bugs  to it and decide whether
it is stable for your purpose.


-- 
rgds
Anto Paul

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



Re: Tomcat - Apache - Jk

2005-06-09 Thread Anto Paul
On 6/9/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 Is it normal that Apache configured to relay jsp's to Tomcat doesn't write 
 the contents of the page (jpeg, gif, css and others) in it's access log ?
 
 
 
 I've configured Apache to relay only .jsp and .do requests, how is it that 
 the images don't show up in the access log ???
 
 

I dont know answer to your question but this may help you debug
the problem. You can enable the AccessLogValve in Tomcat's server.xml
to see what is being served by Tomcat.


-- 
rgds
Anto Paul

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



Re: Why I got multiple/many instance of tomcat + jvm right after I've started tomcat? ( on Red Hat Linux E 3 )

2005-06-08 Thread Anto Paul
On 6/7/05, Mohd. Jeffry [EMAIL PROTECTED] wrote:
 Dear All,
 
 I got 6 servers running rhel3 and tomcat 4.1.27. One of this servers
 its tomcat is giving so many instance of tomcat and jvm but not for
 other server. They are running with the same configuration as far as
 tomcat and jvm is concern. Any thing else did I miss?


I am not sure whether it is because of the NPTL threading
implementation in newer kernels.

-- 
rgds
Anto Paul

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



Re: Servlet Concurrency Issues

2005-06-08 Thread Anto Paul
On 6/8/05, Dakota Jack [EMAIL PROTECTED] wrote:
 Your best bet for understanding multithreading issues is to get a good
 understanding of the JVM.
 

Can you recommend one ?


-- 
rgds
Anto Paul

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



Re: Tomcat Struts form population problem in PRODUCTION

2005-06-07 Thread Anto Paul
On 6/7/05, Mark Benussi [EMAIL PROTECTED] wrote:
 I am submitting a Struts form in my live application but the values seem to
 be getting lost between my browser and the population of my ActionForm. This
 only happens if the login page is the first request of the session.
 
 
 
 If you click around on the site (even once) and then submit the form the
 values are taken.
 
 
 
 :S
 
 
 
 NB This only happens in my live environment (Tomcat 5, LINUX).
 
 
 

Dont crosspost. Is there Apache infront of Tomcat ?. I have noticed
this kind of problem in Tomcat 4.1 + Apache 1.3  combination but
couldn't find the reason.
-- 
rgds
Anto Paul

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



Re: How do you set the session timeout in tomcat so that the session only timeouts when the browser is closed?

2005-06-07 Thread Anto Paul
On 6/7/05, Harland, David [EMAIL PROTECTED] wrote:
 How do you set the session timeout in tomcat so that the session only
 timeouts when the browser is closed?
 

Possible solution may be to refresh the page frequently and set a
short interval for session time out. You might use a frame for this.
If you use the AJAX approach to develop web applications it will be
easy. I hadnt seen GMail session expired.

-- 
rgds
Anto Paul

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



Re: What is wrong with TC or something else?

2005-06-06 Thread Anto Paul
On 6/7/05, Vernon _ [EMAIL PROTECTED] wrote:
 
 I already have this project in the stable status for
 some time. After updating a few of libraries, the TC

It is not clear what libraries you updated.

-- 
rgds
Anto Paul

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



Re: Disabling put and delete http methods...

2005-06-06 Thread Anto Paul
On 6/7/05, Peter Fellwock [EMAIL PROTECTED] wrote:
 Tomcat Gurus:
 
 
 
 How can I disable put and delete http methods?
 

Putting a security constraint in web.xml works. Try this in
applications web.xml. Usually it will be last element in the web.xml.

security-constraint
web-resource-collection
web-resource-nameDisallowed Location/web-resource-name
url-pattern*/url-pattern
http-methodDELETE/http-method
http-methodPUT/http-method
/web-resource-collection
auth-constraint
role-name*/role-name
/auth-constraint
 /security-constraint


-- 
rgds
Anto Paul

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



Re: Logging the HTTP headers

2005-06-03 Thread Anto Paul
On 6/3/05, Markus Schönhaber [EMAIL PROTECTED] wrote:
 Am Donnerstag, 2. Juni 2005 10:03 schrieb cristi:
  Hello all
 
  Is there any posibility of logging the HTTP headers ?
 
 http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/valve.html#Request%20Dumper%20Valve

 
What about a Filter ?

-- 
rgds
Anto Paul

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



Re: ClassNotFoundException in thread

2005-06-02 Thread Anto Paul
On 6/2/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 
 Everything was fin until I migrated. Now the jobs run OK but they fire a
 ClassNotFoundException as shwon :
 

You double  checked that
com.nexans.statistic.client.model.send.intranet.handler.CreateFileProcedure
is there in the jar and is in the right folder ?. Restarted Tomcat ?.
Also try with a fresh copy of the jar.
-- 
rgds
Anto Paul

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



Re: help for ClassNotFoundExcpetion

2005-06-02 Thread Anto Paul
On 6/2/05, MEHMOOD, QAISER [EMAIL PROTECTED] wrote:

When I put these jar files in tomcat/common/lib directory , its
 working fine. Can anyone tell me
 

In Tomcat classes in common/lib cannot find a class in a
webapplication. Check the stacktrace to see what class is not found
and which class is loading this and where it is located.

-- 
rgds
Anto Paul

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



Re: when web.xml changes webapp does not reload if not in webapps ..

2005-06-02 Thread Anto Paul
On 6/3/05, charly [EMAIL PROTECTED] wrote:

 For example if I change web.xml of manager the manager webapp will not
 automatically reload.

I think you cannot start,stop or reload the manager application. If
you look at the localhost/manager/html you can see that there is no
link to do that.

-- 
rgds
Anto Paul

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



Re: Log stderr and stdout into log file in tomcat 5

2005-06-01 Thread Anto Paul
How to configure tomcat 5 to log stderr and stdout
  to the log file. I tried it using logging.properties
  but the stdout and stderr is displaying only in the
  console. What I need is to log into the file.  I am
  using tomcat 5.5.9 in windows. How to configure
  logging.properties file?

run it as a service in Windows. Other ways may be there.

-- 
rgds
Anto Paul

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



Re: Problem in Tomcat startup

2005-05-31 Thread Anto Paul
On 5/31/05, Ram Sriram [EMAIL PROTECTED] wrote:

 Caused by: java.lang.IllegalArgumentException: addChild:  Child name
 'bizDispatc
 her' is not unique
 at
 org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
 .java:860)
 at
 org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:85
 0)
 at
 org.apache.catalina.core.StandardContext.addChild(StandardContext.jav
 a:1770)
 ... 47 more
 May 31, 2005 5:15:39 AM org.apache.catalina.startup.ContextConfig
 applicationCon
 fig
 SEVERE: Parse error in application web.xml
 java.lang.IllegalArgumentException: addChild:  Child name
 'bizDispatcher' is not
  unique
 at

May be you declared bizDispatcher twice in the applications web.xml.
Also check for this in Tomcats conf\web.xml.

-- 
rgds
Anto Paul

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



Re: Logging into rational database....

2005-05-27 Thread Anto Paul
On 5/27/05, David [EMAIL PROTECTED] wrote:
 Hallo,
 
 
 
 I have sent this question yesterday but nobody responded. It's a short
 question so please send me some information.
 
 
 
 Is it possible to configure tomcat to log the access log into a rational
 database? Is there an existing tutorial?
 
 
 
 Thanks
 
 
 
 David
 
 
 

Log4J can do that. Tomcat will use Log4J if it is configured. Search
in the archives to learn how to configure it.

-- 
rgds
Anto Paul

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



Re: my build structure..opinions wanted

2005-05-27 Thread Anto Paul
On 5/27/05, gabor [EMAIL PROTECTED] wrote:

 i'll create a directory in tomcat/webapps (let's call it 'mywebapp').
 put my source files into mywebapp/WEB-INF/src, and instruct eclipse to
 put the compiled .class files into mywebapp/WEB-INF/classes.
 
 this way, i simply edit the files, press ctrl-s (to save them),
 switch to the browser window, and press refresh, and already i get the
 new results (because eclipse already compiled the file, and tomcat
 detected the change).
 

How you will deploy the application in test and production
environments. Here I use Eclipse and Ant. I disable the reloadable
feature and uses the manager application to reload the application. If
reloadable is enabled TC will reload the application every time I
compile a Java file.

-- 
rgds
Anto Paul

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



Re: error-page not working for error-code 503?

2005-05-19 Thread Anto Paul
On 5/19/05, Raymond [EMAIL PROTECTED] wrote:
 Hi,
 
 I have these in my tomcat server's global web.xml file:
 
 error-page
   error-code404/error-code
   location/http404.jsp/location
 /error-page
 
 error-page
   error-code503/error-code
   location/maintenance.html/location
 /error-page
 
 It works for the 404 but not the 503 error code. What's wrong with it?
 I want to redirect users to a maintenance in progress page when I stop
 any webapp with the tomcat manager. But it always gives me the default
 tomcat HTTP status page when I request a stopped webapp.
 
 Please help. Thanks.
 Raymond
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

is Tomcat is behind of Apache ?. Try renaming /maintenance.html to
/maintenance.jsp.

-- 
rgds
Anto Paul

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



Re: Tomcat on XP

2005-05-18 Thread Anto Paul
On 5/18/05, Jobish P [EMAIL PROTECTED] wrote:
 
 Hi,
 
 I am not getting the tomcat home page while trying to run tomcat in
 Windows XP. I had set the JAVA_HOME and CATALINA_HOME path variables.
 And stopped other servers(IIS ans apche) running in the system.
 But I couldn't see anything by typing http://localhost:8080. The
 utilitie's that I used are tomcat 5.5.9.exe and j2sdk1.4.2_07.
 
 It will be of great help if any of you could help in this
 regard.
 
 cheers,
 
 -Jobish P
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

You should check the log files. The logs is in the CATALINA_HOME\logs
directory. If you run it using startup.bat errors will be displayed in
the console. Post the error messages then somebody can help you.

-- 
rgds
Anto Paul

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



Re: java.lang.NoClassDefFoundError

2005-05-18 Thread Anto Paul
On 5/18/05, Hari Om [EMAIL PROTECTED] wrote:
 SUBJECT: java.lang.NoClassDefFoundError
 I am using Tomcat 4.1.31 on SuSE Linux 8.1 and Java 1.4
 
 I have my application as following:
 
 /local/tomcat/webapps/hari
 /local/tomcat/webapps/hari/index.html
 /local/tomcat/webapps/hari/WEB-INF/classes/util/BatchUpload1.class
 /local/tomcat/webapps/hari/WEB-INF/classes/util/*.class
 /local/tomcat/webapps/hari/WEB-INF/lib/cos.jar (this is Oreilly's predefined
 classes)
 /local/tomcat/webapps/hari/WEB-INF/web.xml
 
 I access my WEB application as http://us.hari.com/uhin/BatchUpload and get
 following error wonder why:
 
 description: The server encountered an internal error () that prevented it
 from fulfilling this request.
 
 exception
 
 javax.servlet.ServletException: Error instantiating servlet class
 util.BatchUpload1
 at
 org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:865)
 at
 org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:621)
 at
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:163)
 at
 org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596
 at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
 at
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:144)
 
  at
 org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
 
 at java.lang.Thread.run(Thread.java:534)
 
 root cause
 
 java.lang.NoClassDefFoundError:
 com/oreilly/servlet/multipart/FileRenamePolicy
 
 at java.lang.Class.getDeclaredConstructors0(Native Method)
 at
 java.lang.Class.privateGetDeclaredConstructors(Class.java:1618)
 at java.lang.Class.getConstructor0(Class.java:1930)
 at java.lang.Class.newInstance0(Class.java:278)
 at java.lang.Class.newInstance(Class.java:261)
at
 org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:856)
 
 ---
 
 I am using Oreilly's predefined classes which are stored in cos.jar file
 and under WEB-INF/lib/ directory... I have also added this to the
 CLASSPATH...
 
 When I un-jar my cos.jar file I get follwing files...
 com/oreilly/servlet/*.classes
 
 Any pointer on this would be appreciated...
 
 THANKS!
 
 HARI OM
 
 _
 FREE pop-up blocking with the new MSN Toolbar  get it now!
 http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

You tried restarting Tomcat or the machine ?
Which jar file is in the classpath when you compiled the servlet. The
one in WEB-INF/lib ?.

-- 
rgds
Anto Paul


Re: tomcat alias assistance

2005-05-17 Thread Anto Paul
On 5/17/05, S W [EMAIL PROTECTED] wrote:
 Redhat 2.1 ES
 Tomcat 4.1
 Apache 2.0
 
 I have tomcat configured to run off port 80.
 
 I really wanted our users to be able to type http://helpdesk.XXX.net in
 their browser and access the web app.
 
 The machine tomcat/apache/webapp is running on is our email server.
 
 Currently if I use http://helpdesk.xxx.net (the one i need to work) I
 receive a The page cannot be displayed message.

Is there any file named index.jsp or index.html or the file which is
specified in the welcome file list element in web.xml ?

 
 If I use http://mail.xxx.net(email server host name) I receive the tomcat
 administration page.

Double check it. To remove the admin application remove webapps/admin.xml.


 If I use http://mail.xxx.net/grouplink , I get to my webapp.

Check whether the web application is configured in the server.xml.
Some other reasons may be grouplink is a directory name in the
application or a context configured in that name or some other URL
mapped in web.xml. You can check this by looking at webapps folder. If
grouplink is inside webapps, it is a context. ie. a web application.
If it is inside webapps/ROOT, it is a directory inside that web
application.
 
 Could someone point me in the right direction? How/where  do I configure an
 alias?

I have  Aliasmysite.com/Alias in server.xml nested inside the
Host/ element. You should have a valid DNS entry for mysite.com.



-- 
rgds
Anto Paul

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



Re: No such list! s

2005-05-17 Thread Anto Paul
On 5/17/05, Chris [EMAIL PROTECTED] wrote:
 s wrote:
  Valid Lists
 
 
  New Atlanta List Server
  ---
 
  There is no list by that name on this server. Available lists are:
 
 bluedragon-interest
 servletexec-interest
 jturbo-interest
 
 
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 Is anyone else getting these when they try to send mail to the list?
 
 Chris
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

I got several.

-- 
rgds
Anto Paul

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



Re: Hiding port number when using mod_jk

2005-05-16 Thread Anto Paul
 Am Montag, 16. Mai 2005 09:00 schrieb Vamsee Kanakala:
I have setup the mod_jk on Apache2 and it is forwarding the
  requests to tomcat 5.5.9  correctly. However, if I click any of the
  links in my tomcat webapp, the port 8080 is showing up. Is there any
  way I can avoid this?
 

If you mean that Tomcat is still listening on port 8080, you must
comment the connector element in server.xml which tells Tomcat to
listen on port 8080.
You should check your application source to see that no port no is
hard coded in it.

-- 
rgds
Anto Paul

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



Re: Directory Creation in Servlet Question

2005-05-09 Thread Anto Paul
On 5/6/05, Joe Hertz [EMAIL PROTECTED] wrote:
 In Windows that's what it means too, but this isn't Windows or Linux...it's
 a JVM.
 
 Since it wasn't obvious from the code (MessageResources used in pathnames),
 let me put it another way.
 
 The code tries to create a directory /images/userid.
 
 The Servlet is apparently limited in the filepath it gets to work with. I'd
 expect that.
 
 In Windows, Tomcat executes it and it goes to C:\tomcat4\images\userid
 
 In my Suze install, Tomcat the analogous directory
 /opt/tomcat4/webapps/images
 
 I didn't check to see if it's *different* because in the code it won't be.
 It's the same identifier working off of root. Windows Tomcat puts it under
 it's webapps tree. I'm expecting Suze to do the same.
 
 I have a hard time imagining that Tomcat gets a different view of its root
 file system depending on which OS I runs on. It really ruins the concept of
 platform independence for this sort of thing.
 
 -Joe
 
  you tried to debug it. You can check what is the path before
  the directory is created. In Linux / means the root directory
  and since the path name begins with File.separator(/), the
  file is created with reference to /. For eg. if filePath is
  /anto. Then if Tomcat have write permission to root directory
  the directory will be created.
 
  --
  rgds
  Anto Paul
 
  -
  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]
 
 

You should read the API spec of java.io.File.
http://java.sun.com/j2se/1.4.2/docs/api/java/io/File.html

If you want to get the absolute path of the application directory
use ServletContext.getRealPath(/); and pass this to the file
creating code.

-- 
rgds
Anto Paul

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



Re: Directory Creation in Servlet Question

2005-05-06 Thread Anto Paul
On 5/6/05, Joe Hertz [EMAIL PROTECTED] wrote:
 I have a Struts Servlet that executes the code snippet below to create a
 directory.
 
 Under Windows, this works great, the directory showing up under
 C:\TOMCAT4\WEBAPPS\
 
 Under Suze Linux, it doesn't get created, and it's not a permission problem.
 At least not under the webapps directory. The Tomcat user can definitely
 create a directory there (I've su'd to him and done it).
 
 What should I be looking at next?
 
 String filePath = File.separator + userId;
 File dirs = new File(File.separator +
 rs.getMessage(imageFilePath) + filePath);
 dirs = new File(File.separator + rs.getMessage(imageFilePath)  +
 filePath);
 
 if (!dirs.exists())
 {
   dirs.mkdirs();
 }
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

you tried to debug it. You can check what is the path before the
directory is created. In Linux / means the root directory and since
the path name begins with File.separator(/), the file is created with
reference to /. For eg. if filePath is /anto. Then if Tomcat have
write permission to root directory the directory will be created.

-- 
rgds
Anto Paul

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



Re: Question: Please tell me to connect Tomcat/Apache

2005-05-06 Thread Anto Paul
On 5/6/05, anshul [EMAIL PROTECTED] wrote:
 
 I'm using Windows 2003.
 I've installed Apache2 on port 80,  using .php scripts from ~/wwwroot
 I've installed Tomcat5 on port 8080, using .jsp scripts from ~/webapps/root
 
 I want2run HTML by Apache, .jsp by Tomcat and place my complete Web site in
 ~/wwwroot
 How, this is possible?
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

Why you want to use Apache in a Windows server ?. Benchmarks shows
that Tomcat 5 is same or better than Apache in serving static content.

-- 
rgds
Anto Paul

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



Re: Question: Please tell me to connect Tomcat/Apache

2005-05-06 Thread Anto Paul
On 5/6/05, anshul [EMAIL PROTECTED] wrote:
 
 Benchmarks shows that Tomcat 5 is same or better than Apache in serving
 static content.
 
 I think/read, Apache is better than Tomcat for HTML Web pages.
 I asked, to run .jsp from ~/wwwroot
 
 - Original Message -
 From: Anto Paul [EMAIL PROTECTED]
 To: Tomcat Users List tomcat-user@jakarta.apache.org
 Sent: Friday, May 06, 2005 5:41 PM
 Subject: Re: Question: Please tell me to connect Tomcat/Apache
 
 On 5/6/05, anshul [EMAIL PROTECTED] wrote:
 
  I'm using Windows 2003.
  I've installed Apache2 on port 80,  using .php scripts from ~/wwwroot
  I've installed Tomcat5 on port 8080, using .jsp scripts from
 ~/webapps/root
 
  I want2run HTML by Apache, .jsp by Tomcat and place my complete Web site
 in
  ~/wwwroot
  How, this is possible?
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 Why you want to use Apache in a Windows server ?. Benchmarks shows
 that Tomcat 5 is same or better than Apache in serving static content.
 
 --
 rgds
 Anto Paul
 
 -
 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]
 
 
Find the documentation of JK connector.
http://jakarta.apache.org/tomcat/connectors-doc/

-- 
rgds
Anto Paul

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



Re: Digester / vector usage

2005-05-03 Thread Anto Paul
 then please promptly delete this e-mail and any attachment 
 and all copies and inform the sender. Thank you.
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

Perhaps you asked this in the wrong list. This list is for discussing
Tomcat issues. You can try at any XML/Java forums. Sun's Java forums
may be of help.
-- 
rgds
Anto Paul

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



Re: Question Title: Newbie Tomcat 4.0 install gives 500 No Context configured error @ HTTP localhost

2005-05-01 Thread Anto Paul
On 4/30/05, Anoop kumar V [EMAIL PROTECTED] wrote:
 I am not sure why you had a blank (empty) webapps directory - possibly
 because you chose to download a version of tomcat4.0 which has no examples
 included...
 
 I have done nothing at all to the web.xml. There was abs nothing wrong with
 your TC installation - except that it required an application to see if it
 works. I extracted the root folder from TC4.1.30 and gave it to u. The
 web.xml is the default delivered one for the root app.
 
 hope you have a wonderful project.
 Anoop
 
 On 4/29/05, Michelle Bruns [EMAIL PROTECTED] wrote:
 
  That is perfect! I had almost given up on getting 4.0 and this works
  beautifully. I will have to look at web.xml to see what exactly you
  changed, because I found on Google many people with the same problem
  but no one with the answer. Thank you SO much! You saved my life!
 
 
  m
 
  On 4/29/05, Anoop kumar V [EMAIL PROTECTED] wrote:
   ok here it is - remove all there is in the webapps folder and extract
  the
   zip file attached into webapps.
   restart tomcat...
  
   then on a browser go to http://localhost:8080/index.html
   actually http://localhost:8080/ should work too
  
   actually you were right - the web.xml I had given was from 5.0 version
  of
   tomcat.. no wonder.
   I didnt spend too much time on this
  
  
   Anoop
  
   On 4/29/05, Michelle Bruns [EMAIL PROTECTED] wrote:
Hello,
   
Same web-app error on the new web.xml .
   
My zip file is about 2.6M. I uploaded it to
http://www.sapphireblue.com/tomcat/tomcat.zip, but please
   do not spend
a lot of time on it. If you can see a fast easy fix that is great, but
it would probably be good for me to learn 5.5 anyway.
   
I really appreciate all your help!
   
m
   
   
On 4/29/05, Anoop kumar V  [EMAIL PROTECTED] wrote:
 my mistake then.. - I wanted to give you a bare version of the
  web.xml.
   I
 pulled it out from my current tomcat ( I use 4.1 btw)... by
  stripping
   out
 the unnecessary lines. Looks like I deleted more than I shd have!

 I suggest you use the file attached after deleting the previously
  made
 web.xml...

 If it is possible send me the zip file you are using to install.. I
  will
 look into it and tell u exactly what u need to do.

 regards,
 Anoop

 On 4/29/05, Michelle Bruns [EMAIL PROTECTED] wrote:
  Anoop,
 
  Thank you so much for taking so much time to so thoroughly respond
  to
  my message.
 
  I tried your suggestions, but no luck. It sounds to me as if maybe
  you
  are describing a scenario for a newer version of Tomcat than I was
  using (4.0, because my instructor said it was easier, ha). For
  example, I have no install file, only a .zip to extract. And when
  I
  tried your XML test, on Tomcat startup I got
  org.xml.sax.SAXParseException : Element type web-app must be
  declared.
 
  I have since installed Tomcat 5.5, and it works fine. I can see
  that
  the web-app element is perfectly valid in the newer version, so
  your
  advice probably would have been right on for a newer Tomcat
  install
  than 4.0 . I guess since I have 5.5 running OK, I'll try to do my
  classwork using it, and hope it's not too different for me to do
  my
  assignments which assume 4.0 .
 
  Thanks again for your help, I really appreciate it.
 
  On 4/29/05, Anoop kumar V [EMAIL PROTECTED] wrote:
   SO probably you opted for a custom install and checked out that
  u
   did
 NOT
   want examples to be installed. If that is true then it explains
  why
   you
 do
   not have examples and other folders under webapps.
 
  m
 



 --
 Thanks and best regards,
 Anoop

   
--
   
Michelle Kinsey Bruns
http://www.sapphireblue.com/ * [EMAIL PROTECTED]
   
... I get my kicks above the waistline, sunshine
   
  
  
  
   --
   Thanks and best regards,
   Anoop
  
 
  --
 
 
  Michelle Kinsey Bruns
  http://www.sapphireblue.com/ * [EMAIL PROTECTED]
 
  ... I get my kicks above the waistline, sunshine
 
 
 --
 Thanks and best regards,
 Anoop
 


Actually the web.xml segment given by Anoop is from a Tomcat 5.x
version which is Servlet 2.4 compliant. Tomcat 4.x is Servlet 2.3
compliant. i use this header in web.xml in Tomcat 4.1.12.

!DOCTYPE web-app
PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
http://java.sun.com/dtd/web-app_2_3.dtd;

As far as Tomcat 5.5 is concerned you can develop your assigment
in it but be careful not to use any JSP 2.0/Servlet 2.4 codings. Also
you will have to change web.xml for Tomcat 4.x.
You can try your luck with Tomcat 4.1.31, which is the latest
stable version in 4.x tree. it is working out of the box for me.

-- 
rgds
Anto Paul

-
To unsubscribe, e-mail

Re: RES: How to search tomcat user list

2005-05-01 Thread Anto Paul
On 4/30/05, Roberto Rios [EMAIL PROTECTED] wrote:
 I found it:
 
 http://www.mail-archive.com
 
 Bob
 -Mensagem original-
 De: Roberto Rios [mailto:[EMAIL PROTECTED]
 Enviada em: sábado, 30 de abril de 2005 12:18
 Para: 'Tomcat Users List'
 Assunto: How to search tomcat user list
 Prioridade: Alta
 
 Hi,
 
 I think that this post is a little bit off-topic, but I couldn't found
 it elsewhere...
 
 How do I search something in the tomcat user list?
 
 I used to do it through mail-archives.apache.org, but they changed it
 and now it's not possible to search it, only browse it.
 
 I looking for information about the CoyoteConnector (connectionLinger,
 connectionTimeout, buffer, etc)? I want more specific information
 (http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/coyote.html is
 too much generic).
 
 For instance, If I increase buffer size, what kind of impact I will
 have?
 
 TIA,
 
 Bob
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

You  can try marc.theaimsgroup.com. I am using it as I felt that its
search function is better than mail-archive.com.
-- 
rgds
Anto Paul

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



Re: Tomcat Administration problem

2005-05-01 Thread Anto Paul
On 5/2/05, Nir Tayeb [EMAIL PROTECTED] wrote:
 I will try to explain,
 
 When I enter the default web app
 ($CATALINA_HOME/webapps/ROOT/index.jsp) by typing 127.0.0.1:8080 in
 the address-bar.
 
 In the side bar I choose Tomcat manager under Administration and I
 am prompted for a username and a password.
 
 Trying to login with manager or admin roles failes.
 
 What can I do?
 
 On 5/1/05, Caldarale, Charles R [EMAIL PROTECTED] wrote:
   From: Nir Tayeb [mailto:[EMAIL PROTECTED]
   Subject: Re: Tomcat Administration problem
  
   I have created a user with a role of manager, and I login with his.
   but yet, the server prompt me for a username and password.
 
  The manager role is for the manager app; you must have an admin role
  to use the admin app.
 
   - 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]
 
 

You should have a similar entry to the following in conf\tomcat-users.xml.
user username=manager password= roles=manager/
This declares the user manager has access to manager application
without any password.

For above configuration to work you need to configure Tomcat to
use the tomcat-users.xml to read user authentication information.
Tomcat is shipped configured to use this setup. If somebody has
changed it to use database or any other authentication realm you will
have to add the manager username,password and role in that realm.
You can check which configuration Tomcat is using by looking for
the Realm/ element in server.xml. Mine is

Realm className=org.apache.catalina.realm.UserDatabaseRealm
 debug=0 resourceName=UserDatabase/

This uses the UserDatabaseRealm which reads the file conf\tomcat-users.xml

Hope this helps 
-- 
rgds
Anto Paul

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



Re: Question Title: Newbie Tomcat 4.0 install gives 500 No Context configured error @ HTTP localhost

2005-04-29 Thread Anto Paul
)
  at 
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  at 
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  at java.lang.reflect.Method.invoke(Method.java:324)
  at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
 2005-04-28 23:33:01 StandardHost[localhost]: MAPPING configuration
 error for request URI
 
 --
 
 Michelle Kinsey Bruns
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

The second error is with Tomcat manager application. If you dont need
this you can remove this application by moving manager.xml from
webapps directory.
You made any modifications to conf\server.xml ?. Do you have a
directory named ROOT in webapps folder. This will be installed by
default.
Tomcat uses some other ports other than 8080. One is shutdown port
8005 and the other is Apache connector listening on port no 8009.

-- 
rgds
Anto Paul

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



Re: test mail

2005-04-29 Thread Anto Paul
On 4/29/05, sandy kumar [EMAIL PROTECTED] wrote:
 Hi,
 
 I am trying to send a mail to this forum but cant see
 my mail in the archieve. If you can see this mail then
 can anyone send me a confirmation pls.
 
 cheers,
 sandie
 
 Send instant messages to your online friends http://uk.messenger.yahoo.com
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

If you can see your mail any one else in this list should be able to
see it. What mail client you are using. Earlier Gmail has this
problem.
-- 
rgds
Anto Paul

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



Re: configurating tomcat 5.5

2005-04-29 Thread Anto Paul
On 4/29/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 non employee im just as lost
 
 

I am seeing this kind of mail(compatibility package) very often. Does
it hurt to have SourceForge.net mx4j.jar in the Tomcat binary package.
If it creates any problems it can be renamed to a non jar extension
and a message can be displayed to rename it to jar.

-- 
rgds
Anto Paul

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



Re: Encoding probleme

2005-04-29 Thread Anto Paul
On 4/29/05, Akacem Mohammed [EMAIL PROTECTED] wrote:
 Hello to you all,
 
 I have an axis client ( SOAP ) which sends a String als parameter in xml 
 format  ( ?xml version=1.0 encoding=ISO-8859-1).
 this client connect to a webserver over https, the webserver directs the 
 request with http to tomcat 4.0.6 on which my webserver is deployed.
 
 the probleme  I am experiecing is as follow:
 
 from the webservice under tomcat I got the exception : invalid xml character 
 #dbc0 ( I have lookup under der unicode charset and this is an invalid 
 surrogate for xml).
 the probleme is that this exception should be thrown from the axis client ( I 
 know the client validate the string ).
 
 my asssumption is that may be tomcat is doing something wrong with my string 
 before passing it to the axis servlet. I have read in the mailing list that 
 the default for tomcat is ISO-8859-1.
 I tried to reproduce this exception by setting for the JVM this options 
 -Djavax.servlet.request.encoding=Shift_JIS with no success.( although I am 
 sending ISO-8859-1)
 
 Has anybody an idea, thanks for any help.
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

I know that in normal web applications one has to set the character
encoding using ServletRequest#seCharacterEncoding() in a filter before
the request is precessed. I dont know about Axis.

-- 
rgds
Anto Paul

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



Re: Catalina.out eats my harddisk space

2005-04-29 Thread Anto Paul
On 4/29/05, Rajasekar [EMAIL PROTECTED] wrote:
 Hi,
 
 I am facing a *catalina.out log* file problem in tomcat5. It eats my
 harddisk space like anythink. My harddisk size is 80GB hard disk. Everyday i
 have to remove the catalina.out file. the nextday it fills the harddisk. and
 i cann't run tomcat. What could be the problem. Please help me if anybody
 knew to this issue.
 
 Regards
 
 Rajasekar V.R
 
 

May be you are running Tomcat with log level set at debug/trace. Check
server.xml to see the log level there. Or it can be the application.
Check for files named logging.properties, log4j.properties in Tomcat
installation.
-- 
rgds
Anto Paul

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



Re: Session lost when switching from https to http in Tomcat 5.

2005-04-28 Thread Anto Paul
On 4/28/05, Anhony [EMAIL PROTECTED] wrote:
 I have a servlet/JSP application in which users establish their servlet
 session using https but conduct the rest of their interactions using http.
 
 The session appears not to be preserved between https and http, ie. after
 switching from back to http the request.getSession(false) call returns null.
 Can anyone shed light on this for me? Is this expected? Is there a
 workaround/configuration/setting in Tomcat 5 I might have missed?
 
 Thanks
 
 Anthony
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
Please specify version of Tomcat and URLs which you used which caused problems. 
It is working fine for me on Tomcat 4.1.12,4.1.30,4.1.31.

-- 
rgds
Anto Paul

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



Re: Parse error in web.xml

2005-04-27 Thread Anto Paul
On 4/27/05, nikhilesh goel [EMAIL PROTECTED] wrote:
 Hello,
 
 I am facing an error in getting tomcat to display even
 my index page. When invoking the url i get an HTTP
 Status 404 error The requested resource (/) is not
 available. The log gives the following error:
 
 2005-04-21 10:59:15 ContextConfig[/manager] Parse
 error in default web.xml
 org.xml.sax.SAXParseException: Premature end of file.
 at
 org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
 Source)
 at
 org.apache.commons.digester.Digester.parse(Digester.java:1548)
 at
 org.apache.catalina.startup.ContextConfig.defaultConfig(ContextConfig.java:548)
 at
 org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:638)
 at
 org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:24
 
 
 ---
 I have tried copied the web.xml files from another
 running server lest there be some problem with
 unclosed tags etc but the problem continues to
 persist.
 I would be obliged if anyone could throw some light on
 this problem
 
 Regards
 Nikhilesh
 
 
 Yahoo! India Matrimony: Find your life partner online
 Go to: http://yahoo.shaadi.com/india-matrimony
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

Take a look at CATALINA_HOME\conf\web.xml. If another one is available
replace with that one.
-- 
Anto Paul

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



Re: Parse error in web.xml

2005-04-27 Thread Anto Paul
On 4/27/05, nikhilesh goel [EMAIL PROTECTED] wrote:
 Dear Anto,
 
 thanks for the tip but my Tomcat refuses to budge. I
 am still getting the same error.
 
 Regards
 Nikhilesh
 
 --- Anto Paul [EMAIL PROTECTED] wrote:
  On 4/27/05, nikhilesh goel
  [EMAIL PROTECTED] wrote:
   Hello,
  
   I am facing an error in getting tomcat to display
  even
   my index page. When invoking the url i get an HTTP
   Status 404 error The requested resource (/) is
  not
   available. The log gives the following error:
  
  
   2005-04-21 10:59:15 ContextConfig[/manager] Parse
   error in default web.xml
   org.xml.sax.SAXParseException: Premature end of
  file.
   at
  
 
 org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
   Source)
   at
  
 
 org.apache.commons.digester.Digester.parse(Digester.java:1548)
   at
  
 
 org.apache.catalina.startup.ContextConfig.defaultConfig(ContextConfig.java:548)
   at
  
 
 org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:638)
   at
  
 
 org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:24
   
   
  
  ---
   I have tried copied the web.xml files from another
   running server lest there be some problem with
   unclosed tags etc but the problem continues to
   persist.
   I would be obliged if anyone could throw some
  light on
   this problem
  
   Regards
   Nikhilesh
  
  
 
 
   Yahoo! India Matrimony: Find your life partner
  online
   Go to: http://yahoo.shaadi.com/india-matrimony
  
  
 
 -
   To unsubscribe, e-mail:
  [EMAIL PROTECTED]
   For additional commands, e-mail:
  [EMAIL PROTECTED]
  
  
 
  Take a look at CATALINA_HOME\conf\web.xml. If
  another one is available
  replace with that one.
  --
  Anto Paul
 
 
 -
  To unsubscribe, e-mail:
  [EMAIL PROTECTED]
  For additional commands, e-mail:
  [EMAIL PROTECTED]
 
 
 
 
 Yahoo! India Matrimony: Find your life partner online
 Go to: http://yahoo.shaadi.com/india-matrimony
 

What OS you are using ?.
-- 
Anto Paul

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



Re: Parse error in web.xml

2005-04-27 Thread Anto Paul
On 4/27/05, nikhilesh goel [EMAIL PROTECTED] wrote:
 Hi,
 
 OS is Sun Solaris 2.9 while the application server is
 Tomcat 4.1.30. Also, I would like to mention that this
 problem was not there from the start. The server was
 working perfectly till some seemingly harmless jsp
 changes triggered a sudden collapse.
 
 Regards
 
 --- Anto Paul [EMAIL PROTECTED] wrote:
  On 4/27/05, nikhilesh goel
  [EMAIL PROTECTED] wrote:
   Dear Anto,
  
   thanks for the tip but my Tomcat refuses to budge.
  I
   am still getting the same error.
  
   Regards
   Nikhilesh
  
   --- Anto Paul [EMAIL PROTECTED] wrote:
On 4/27/05, nikhilesh goel
[EMAIL PROTECTED] wrote:
 Hello,

 I am facing an error in getting tomcat to
  display
even
 my index page. When invoking the url i get an
  HTTP
 Status 404 error The requested resource (/)
  is
not
 available. The log gives the following error:

   
  
 2005-04-21 10:59:15 ContextConfig[/manager]
  Parse
 error in default web.xml
 org.xml.sax.SAXParseException: Premature end
  of
file.
 at

   
  
 
 org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
 Source)
 at

   
  
 
 org.apache.commons.digester.Digester.parse(Digester.java:1548)
 at

   
  
 
 org.apache.catalina.startup.ContextConfig.defaultConfig(ContextConfig.java:548)
 at

   
  
 
 org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:638)
 at

   
  
 
 org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:24
 
 

   
  ---
 I have tried copied the web.xml files from
  another
 running server lest there be some problem with
 unclosed tags etc but the problem continues to
 persist.
 I would be obliged if anyone could throw some
light on
 this problem

 Regards
 Nikhilesh


   
  
 
 
 Yahoo! India Matrimony: Find your life partner
online
 Go to: http://yahoo.shaadi.com/india-matrimony


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


   
Take a look at CATALINA_HOME\conf\web.xml. If
another one is available
replace with that one.
--
Anto Paul
   
   
  
 
 -
To unsubscribe, e-mail:
[EMAIL PROTECTED]
For additional commands, e-mail:
[EMAIL PROTECTED]
   
   
  
  
 
 
   Yahoo! India Matrimony: Find your life partner
  online
   Go to: http://yahoo.shaadi.com/india-matrimony
  
 
  What OS you are using ?.
  --
  Anto Paul
 
 
 -
  To unsubscribe, e-mail:
  [EMAIL PROTECTED]
  For additional commands, e-mail:
  [EMAIL PROTECTED]
 
 
 
 
 Yahoo! India Matrimony: Find your life partner online
 Go to: http://yahoo.shaadi.com/india-matrimony
 

Any other application in same server is working ?. 
Does the manager application exists there ?. If yes remove it by
moving manager.xml out of webapps directory and try.
If still the problem persists the error may be with server.xml. 

-- 
Anto Paul

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



Re: problem with compilation of jsp

2005-04-26 Thread Anto Paul
On 4/26/05, vishwam [EMAIL PROTECTED] wrote:
 hi
 i hhave installed new apache tomcat on my system, iam facing problem when 
 executing jsp files
 i have set
 classpath  as  C:\Java\jdk1.5.0\lib;C:\Program 
 Files\Java\jre1.5.0\lib;C:\Program Files\Apache Software Foundation\Tomcat 
 5.0\common\lib
 
 java_home as C:\Java\jdk1.5.0
 
 catalina_home as C:\Program Files\Apache Software Foundation\Tomcat 5.0;
 but iam getting the below error message
 the root cause is
 
 Unable to find a javac compiler;
 com.sun.tools.javac.Main is not on the classpath.
 Perhaps JAVA_HOME does not point to the JDK
 can any one help  solve this this problem please?
 
 

Try setting JAVA_HOME instead of java_home. I am not sure whether it
is case sensitive in windows. It is not a good idea to install Tomcat
in a directory with spaces in the name.
-- 
Anto Paul

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



Re: Issue: HTTP 404---requested resource is not available

2005-04-26 Thread Anto Paul
On 4/27/05, Kevin Kang (Intl Vendor) [EMAIL PROTECTED] wrote:
 Hi, all
 
 I have written several servlets in my app class folder. But the browser
 still says that.
 
 I have a servlet named TestServlet.class and want to show the result.
 The structure of my app folder is below:
 
 |webapps
 
 |--myapp
 
 |  |--WEB-INF
 
 |   |--classes
 
 ||--test (here is the place where that servlet
 class located)
 
 The content of my web.xml is below:
 
 ?xml version=1.0 encoding=UTF-8?
 
 !DOCTYPE web-app
 
PUBLIC -//Sun Microsystem, Inc.//DTD Web Application
 2.3//EN
 
http://java.sun.com/dtd/web-app_2_3.dtd;
 
 web-app
 
 display-nameMy Web Application/display-name
 
 description
 
 A application for test.
 
 /description
 
 servlet
 
 servlet-nameTestServlet/servlet-name
 
 display-nameTest/display-name
 
 descriptionA test servlet!/description
 
 servlet-classtest.TestServlet/servlet-class
 
 /servlet
 
 servlet
 
 servlet-nameRedirect/servlet-name
 
 display-nameRedirect Demo/display-name
 
 descriptionThis is a just demo for redirecting./description
 
 servlet-classtest.RedirectServlet/servlet-class
 
 /servlet
 
 servlet
 
 servlet-nameForward/servlet-name
 
 display-nameForward Demo/display-name
 
 descriptionThis is a just demo for forwarding./description
 
 servlet-classtest.ForwardServlet/servlet-class
 
 /servlet
 
 servlet-mapping
 
 servlet-nameTestServlet/servlet-name
 
 url-pattern/Test/url-pattern
 
 servlet-nameRedirect/servlet-name
 
 url-pattern/TestRedirect/url-pattern
 
 servlet-nameForward/servlet-name
 
 url-pattern/Forward/url-pattern
 
 /servlet-mapping
 
 /web-app
 
 My Tomcat is 4.1.31. I don't know what's going on. Thanks.
 
 Best Regards
 
 Kevin Kang
 
 MSN: [EMAIL PROTECTED]
 
 

servlet-mapping need to be changed. It should be like

servlet-mapping
servlet-nameTestServlet/servlet-name
url-pattern/Test/url-pattern
/servlet-mapping

servlet-mapping
servlet-nameRedirect/servlet-name
url-pattern/TestRedirect/url-pattern
/servlet-mapping

servlet-mapping
servlet-nameForward/servlet-name
url-pattern/Forward/url-pattern
/servlet-mapping

You can see any errors on the console if you run it in windows using
startup.bat or catalina.bat. If you are running it as service check
logs\stderr and logs\stdout files for error messages.

--
rgds 
Anto Paul

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



Re: How get www.site.com homepage requests to forward to Tomcat without a redirect?

2005-04-25 Thread Anto Paul
On 4/25/05, Trond G. Ziarkowski [EMAIL PROTECTED] wrote:
 Hi,
 
 try removing the [R] from your RewriteRule. If you read up on the
 mod_rewrite docs, you should see that the [R] flag is causing the redirect.
 
 Trond
 
 PAlvin wrote:
 
 I'm currently using Tomcat 4.
 
 When someone goes to my site, say, www.site.com, I'd like it run a
 servlet for the home page instead of a static page (my entire site is
 dynamic).
 
 I configured the connector to send all *.htm files to Tomcat and I
 created a re-write rule in the Apache configuration file like this:
 
RewriteEngine on
RewriteRule ^/$ /home.htm [R]
 
 This works great, EXCEPT, that the browser is sent a redirect and I
 heard that is bad for search engines.
 
 I could send *all* http requests to tomcat, BUT, obviously, I DON'T
 want Tomcat serving up images.
 
 So, is there any way to configure Apache and/or Tomcat to make:
 
www.site.com ---run-- www.site.com/home.htm
 
 without a redirect?
 
 How do I get www.site.com requests to go to Tomcat???
 
 Peter Alvin
 mobile 719-210-3858
 skype 'smartmicro'
 
 
 
 
 
 
 
 -
 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]
 
 

You may need to add PT as also which tells Apache to pass on the
request to the JK connector.

-- 
rgds
Anto Paul

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



Re: How to change a running Tomcat with root user to other user.

2005-04-16 Thread Anto Paul
On 4/16/05, egan0019 [EMAIL PROTECTED] wrote:
 As long as you are using a port above or equal to 1024, I believe you
 should be able to simply start up Tomcat using a non-root user.
 
 On 15 Apr 2005, Parsons Technical Services wrote:
  There are several options:
 
  1. Keep running as root. (Bad as noted)
  2. Listen on port above 1024.
  3. Apache front end.
  4. Use jsvc to start Tomcat as root. Bind to ports and change user.
 
  I think 4 is what you are looking for.
 
  http://jakarta.apache.org/commons/daemon/jsvc.html
 
  Doug
 
  - Original Message -
  From: Lorenzo Jiménez [EMAIL PROTECTED]
  To: Tomcat Users List tomcat-user@jakarta.apache.org
  Sent: Friday, April 15, 2005 10:37 AM
  Subject: How to change a running Tomcat with root user to other user.
 
 
  Hi,
 
  Today we saw that our Tomcat 5.0.28 had been installed and it is running
  with the root user.
 
  Because is a security hazard,
 
  how can I change it to other less dangerous user?, and
  what privileges needs to have in order to work?
 
  Our system is a RedHat 9.0, 2.4.21-20.ELsmp
 
  Thanks,
  Regards,
 
  Lorenzo
 
 
  -
 
  Si usted no es el destinatario indicado en este mensaje o responsable
 como
  persona
  de la entrega del mensaje, no debe copiar o reenviar este mensaje, por
 favor
  notifique
  al correo [EMAIL PROTECTED] Para más referencia sobre términos
  importantes
  relacionados a este correo visite
  http://www.nacion.com/disclaimer/index_es2.htm
 
  If you are not the addressee indicated in this message (or responsible
 for
  delivery of the
  message to such person), you may not copy or send this message to anyone,
 
  please notify
  to [EMAIL PROTECTED] Click here for important additional terms
 relating
  to this e-mail.
  http://www.nacion.com/disclaimer/index_en2.htm
 
  -
 
 
 
  -
  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]
 
 
You can consider using the Linux netfileter package to  map port 80 to
another port. Then you  can run Tomcat at port 8080 and set up
netfilter to redirect all request on port 80 to 8080.

-- 
Anto Paul

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



Re: can´t Configurate Database Connection Pool (DBCP) with Tomcat 5.0.28

2005-04-15 Thread Anto Paul
On 4/15/05, Sevillano sevi llano [EMAIL PROTECTED] wrote:
 Hi, I´m a newbie trying to configurate DBCP with Tomcat 5.0.28
 
 I´m following this documentation:
 http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jndi-datasource-examples-howto.html
 
 ...Add this in between the /Context tag of the examples context and the
 /Host tag closing the localhost definition...
 but there is no /Context in my server.xml
 
 also I´ver read tons of forums about this question, and I´ve tested a lot of
 different configuration.
 
 this is the error I´ve got (the usual I think):
 org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of
 class '' for connect URL 'null'
 
 any help please? I´ve been the whole week trying to fix it
 
 thanks
 
 these are my files:
 
 SERVER.XML
 
 Server port=8005 shutdown=SHUTDOWN
 
   GlobalNamingResources
 !-- Used by Manager webapp --
 Resource name=UserDatabase auth=Container
   type=org.apache.catalina.UserDatabase
   description=User database that can be updated and saved
 /Resource
 ResourceParams name=UserDatabase
   parameter
 namefactory/name
 valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value
   /parameter
   parameter
 namepathname/name
 valueconf/tomcat-users.xml/value
   /parameter
 /ResourceParams
 
 Resource name=jdbc/myoracle auth=Container
 type=javax.sql.DataSource/
 ResourceParams name=jdbc/myoracle
 
 parameternamefactory/namevalueorg.apache.commons.dbcp.BasicDataSourceFactory/value/parameter
parameternameusername/namevalue***/value/parameter
parameternamepassword/namevalue***/value/parameter
 
 parameternamedriverClassName/namevalueoracle.jdbc.driver.OracleDriver/value/parameter
 
 parameternameurl/namevaluejdbc:oracle:thin:@:1521:bddesa/value/parameter

 parameternameremoveAbandoned/namevaluefalse/value/parameter
 
 parameternameremoveAbandonedTimeout/namevalue300/value/parameter
parameternamelogAbandoned/namevaluetrue/value/parameter
parameternamemaxActive/namevalue10/value/parameter
 /ResourceParams
 
   /GlobalNamingResources
 
   Service name=Catalina
 Connector port=8080 /
 
 !-- This is here for compatibility only, not required --
 Connector port=8009 protocol=AJP/1.3 /
 
 Engine name=Catalina defaultHost=localhost
   Logger className=org.apache.catalina.logger.FileLogger /
 
   Realm className=org.apache.catalina.realm.UserDatabaseRealm
  resourceName=UserDatabase /
 
   Host name=localhost appBase=webapps /
 /Engine
   /Service
 /Server
 
 WEB.XML
 
 ?xml version=1.0 encoding=ISO-8859-1?
 
 web-app xmlns=http://java.sun.com/xml/ns/j2ee;
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
 xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee
 http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd;
 version=2.4
 
   display-nameWelcome to Tomcat/display-name
   description
  Welcome to Tomcat
   /description
 
 resource-ref
 res-ref-namejdbc/myoracle/res-ref-name
 res-typejavax.sql.DataSource/res-type
 res-authContainer/res-auth
 /resource-ref
 
 /web-app
 
 TEST.JSP
 
 ...
 Context initContext = new InitialContext();
 Context envContext  = (Context)initContext.lookup(java:/comp/env);
 DataSource ds = (DataSource)envContext.lookup(jdbc/myoracle);
 conn = ds.getConnection();
 ...
 
 _
 Descarga gratis la Barra de Herramientas de MSN
 http://www.msn.es/usuario/busqueda/barra?XAPID=2031DI=1055SU=http%3A//www.hotmail.comHL=LINKTAG1OPENINGTEXT_MSNBH
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
You have the Oracle JDBC driver in place. I think best place is
common\lib. You have rename the zip file to jar.

-- 
Anto Paul

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



Re: can´t Configurate Database Connection Pool (DBCP) with Tomcat 5.0.28

2005-04-15 Thread Anto Paul
:bddesa/value/parameter
  
 parameternameremoveAbandoned/namevaluefalse/value/parameter
  
  parameternameremoveAbandonedTimeout/namevalue300/value/parameter
parameternamelogAbandoned/namevaluetrue/value/parameter
parameternamemaxActive/namevalue10/value/parameter
/ResourceParams
  
  
 /GlobalNamingResources
  
 Service name=Catalina
   Connector port=8080 /
  
   !-- This is here for compatibility only, not required --
   Connector port=8009 protocol=AJP/1.3 /
  
   Engine name=Catalina defaultHost=localhost
 Logger className=org.apache.catalina.logger.FileLogger /
  
 Realm className=org.apache.catalina.realm.UserDatabaseRealm
resourceName=UserDatabase /
  
 Host name=localhost appBase=webapps /
   /Engine
 /Service
  /Server
  
  
  
  WEB.XML
  
  ?xml version=1.0 encoding=ISO-8859-1?
  
  web-app xmlns=http://java.sun.com/xml/ns/j2ee;
   xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
   xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee
  http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd;
   version=2.4
  
 display-nameWelcome to Tomcat/display-name
 description
Welcome to Tomcat
 /description
  
resource-ref
res-ref-namejdbc/myoracle/res-ref-name
   res-typejavax.sql.DataSource/res-type
res-authContainer/res-auth
/resource-ref
  
  /web-app
  
  
  
  
  TEST.JSP
  
  ...
  Context initContext = new InitialContext();
  Context envContext  = (Context)initContext.lookup(java:/comp/env);
  DataSource ds = (DataSource)envContext.lookup(jdbc/myoracle);
  conn = ds.getConnection();
  ...
  
  _
  Descarga gratis la Barra de Herramientas de MSN
  http://www.msn.es/usuario/busqueda/barra?XAPID=2031DI=1055SU=http%3A//www.hotmail.comHL=LINKTAG1OPENINGTEXT_MSNBH
  
  
  
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
  
  
 
 _
 Un amor, una aventura, compañía para un viaje. Regístrate gratis en MSN
 Amor
  Amistad. http://match.msn.es/match/mt.cfm?pg=channeltcid=162349
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 _
 Acepta el reto MSN Premium: Protección para tus hijos en internet.
 Descárgalo y pruébalo 2 meses gratis.
 http://join.msn.com?XAPID=1697DI=1055HL=Footer_mailsenviados_proteccioninfantil
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 _
 Descubre la descarga digital con MSN Music. Más de medio millón de
 canciones. http://music.msn.es/
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

If it is not yet solved try removing resource-ref from web.xml.
Another option is not to use GlobalNamingResources instead follow
the instructions exactly given in the URL you have posted. BTW I
couldnt find any context configured in your server.xml. May be it is
the reason.

-- 
Anto Paul

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



Re: Multiple tomcat instances

2005-04-15 Thread Anto Paul
On 4/15/05, Peter Crowther [EMAIL PROTECTED] wrote:
  From: Kelly, Steve [mailto:[EMAIL PROTECTED]
  Is it possible to run multiple instances of tomcat on the same server,
  for example to support production and test environments ?
 
 Yes.  I run up to four on this machine - two (one 4.1, one 5.0) are
 running as I type this.
 
 Here's a Windows script that works (give or take the HOME path) for
 Tomcat 4 and 5.0 - untested on 5.5, but I can't see why it should fail.
 The UNIX equivalent is pretty obvious.  Check out CATALINA_HOME - where
 Tomcat is installed - versus CATALINA_BASE - where this instance stores
 its files.  Note the JAVA_OPTS for increased stack and heap sizes, too;
 this line is optional.
 
 C:\cattery is where I store the data for the four instances.
 
 -- snip --
 set CATALINA_HOME=C:\Program Files\Apache Group\Tomcat 4.1
 set CATALINA_BASE=c:\cattery\instance1
 set JAVA_OPTS=-Xms64m -Xmx256m
 cd %CATALINA_HOME%\bin
 startup
 -- snip --
 
 Under CATALINA_BASE for each instance, you'll need conf, logs, temp,
 webapps, and work directories.  The easiest way to create these is to
 copy them from CATALINA_HOME.  You'll then need to modify
 conf/server.xml to make sure each instance is running on its own ports -
 don't forget to change the shutdown port!
 
 Good luck, yell if you have any problems getting this to work.
 
- Peter
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

If you have more than one IP address you can run more than one
instances on same machine on same port but different IP addresses. You
have to specify the IP address in the address attribute of
Connector/ element.

-- 
Anto Paul

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



Re: class path (UNCLASSIFIED)

2005-04-13 Thread Anto Paul
On 4/13/05, Samara, Fadi N Mr ACSIM/ASPEX [EMAIL PROTECTED] wrote:
 Classification:  UNCLASSIFIED
 Caveats: NONE
 
 I am sorry, but how are you compiling your class ?
 Are you using any IDE (i.e Eclipse, Jdeveloper) ?
 
 -Original Message-
 From: S M [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, April 13, 2005 10:07 AM
 To: Tomcat Users List
 Subject: RE: class path (UNCLASSIFIED)
 
 The same as before.
 
 C:\javacodejavac HelloWorld.java
 HelloWorld.java:2: package javax.servlet does not exist import
 javax.servlet.*; ^
 HelloWorld.java:3: package javax.servlet.http does not exist import
 javax.servlet.http.*; ^
 HelloWorld.java:5: cannot resolve symbol symbol  : class HttpServlet
 location: class HelloWorld
 public class HelloWorld extends HttpServlet {
 ^
 HelloWorld.java:7: cannot resolve symbol symbol  : class HttpServletRequest
 location: class HelloWorld
 public void service(HttpServletRequest request, HttpServletResponse
 response) th rows ServletException, IOException {
 ^
 HelloWorld.java:7: cannot resolve symbol symbol  : class HttpServletResponse
 location: class HelloWorld
 public void service(HttpServletRequest request, HttpServletResponse
 response) th rows ServletException, IOException {
 ^
 HelloWorld.java:7: cannot resolve symbol symbol  : class ServletException
 location: class HelloWorld
 public void service(HttpServletRequest request, HttpServletResponse
 response) th rows ServletException, IOException {
 
  ^
 6 errors
 
 -
 
 Samara, Fadi N Mr ACSIM/ASPEX [EMAIL PROTECTED] wrote:
 Classification: UNCLASSIFIED
 Caveats: NONE
 
 What errors are you getting again ?
 
 -Original Message-
 From: S M [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, April 13, 2005 9:47 AM
 To: Tomcat Users List; Jason Bainbridge
 Subject: Re: class path
 
 Hi
 These are the env. variables that I have set explicitly for tomcat 4.1
 installation
 
 lJAVA_HOME = C:\java\bin
 lCATALINA_HOME = C:\Program Files\Apache Group\Tomcat 4.1 CLASSPATH=
 .;C:\javacode;%CATALINA_HOME%;%CATALINA_HOME%\common\lib\servlet.jar;%J2EE_
 HOME%\lib\j2ee.jar;
 
 I have the path =C:\java\bin; when i installed
 J2sdk1.4.2_06
 
 These being the variables I am still getting that error log where the
 compiler cannot locate the servlet pakages.
 
 Hope you can assit further.
 
 Thanks.
 
 Jason Bainbridge wrote:
 On Apr 12, 2005 3:39 PM, S M wrote:
  sorry for the confusion, but i have set CLASSPATH, i echoed on cmd as
 mentioned and yes it shows me the CLASSPATH as listed below
 .;C:\javacode;%CATALINA_HOME%;%CATALINA_HOME%\common\lib\servlet.jar;%J2EE_
 HOME%\lib\j2ee.jar;
   where ;C:\javacode had the source code.
 
 Have you explicityly set CATALINA_HOME as well? Does it have spaces in it?
 If so surround it with double quotes or move it to a path with no spaces. I
 don't think having servlet.jar and j2ee.jar in the same classpath is a good
 idea either.
 
 Regards,
 --
 Jason Bainbridge
 http://kde.org - [EMAIL PROTECTED]
 Personal Site - http://jasonbainbridge.com
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 -
 Yahoo! Messenger - Communicate instantly...Ping your friends today!
 Download Messenger Now
 Classification: UNCLASSIFIED
 Caveats: NONE
 
 -
   Yahoo! Messenger - Communicate instantly...Ping your friends today!
 Download Messenger Now
 Classification:  UNCLASSIFIED
 Caveats: NONE
 
 

Better you copy CATALINA_HOME\common\servlet.jar to C: and set
CLASSPATH accordingly or pass CLASSPATH as an argument to javac.

-- 
Anto Paul

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



Re: error-page in web.xml and cache-control

2005-04-06 Thread Anto Paul
On Apr 6, 2005 1:46 PM, Pawson, David [EMAIL PROTECTED] wrote:
 
 I'm using response.setHeader(cache-control,no-cache);
 
 and tomcat is correctly telling me that the page has expired
 when I use the browser back button.
 
 I can't find out what error (if any) this is, to trap it
 using the error-page element.
 
 Is it possible to trap this error please?
 
 Regards DaveP.
 
  snip here *
 
 --
 DISCLAIMER:
 
 NOTICE: The information contained in this email and any attachments is
 confidential and may be privileged.  If you are not the intended
 recipient you should not use, disclose, distribute or copy any of the
 content of it or of any attachment; you are requested to notify the
 sender immediately of your receipt of the email and then to delete it
 and any attachments from your system.
 
 RNIB endeavours to ensure that emails and any attachments generated by
 its staff are free from viruses or other contaminants.  However, it
 cannot accept any responsibility for any  such which are transmitted.
 We therefore recommend you scan all attachments.
 
 Please note that the statements and views expressed in this email and
 any attachments are those of the author and do not necessarily represent
 those of RNIB.
 
 RNIB Registered Charity Number: 226227
 
 Website: http://www.rnib.org.uk
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

What is the exact message you get when clicking back button in browser
?. What browser you use ?. I think it is issued by browser not Tomcat.

-- 
Anto Paul
www.benchmarksoft.com

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



Re: error-page in web.xml and cache-control

2005-04-06 Thread Anto Paul
On Apr 6, 2005 3:39 PM, Pawson, David [EMAIL PROTECTED] wrote:
 Bit of clarification.
 A = initial page
 B = target of link
 both pages have cachecontrol set to no-cache.
 
 Follow link from A
 Hit back button
 
 then the message shows.
 
 The only time I get *any* of my error pages to show
 is when I do a refresh on A, after getting there by a back button.
 Then it goes to the
 
error-page
 error-code404/error-code
 location/file_not_found.html/location
 /error-page
 
 page.
 
 Typing in a bad address shows the standard ie6 404 page.
 
 regards DaveP
 
 
 -Original Message-
 From: Jon Wingfield
 
 Sounds like the message IE gives when you hit back to a
 page served in response to a POST request.
 
 http://theserverside.com/news/thread.tss?thread_id=28366
 http://theserverside.com/news/thread.tss?thread_id=29758
 
 It is Jon. As that (rather long:-) thread indicates, I'm
 similarly trying to maintain state through the website, and
 a user hitting back screws that up.
 
 Hence I'm looking for a means of trapping that error for
 either a re-direct, or to an error page. HTTP 1.1 seems not
 to class that as an error, hence I'm looking for another
 way to access that 'bad' state.
 
 regards DaveP
 
 --
 DISCLAIMER:
 
 NOTICE: The information contained in this email and any
 attachments is confidential and may be privileged.  If you
 are not the intended recipient you should not use,
 disclose, distribute or copy any of the content of it or of
 any attachment; you are requested to notify the sender
 immediately of your receipt of the email and then to delete
 it and any attachments from your system.
 
 RNIB endeavours to ensure that emails and any attachments
 generated by its staff are free from viruses or other
 contaminants.  However, it cannot accept any responsibility
 for any  such which are transmitted.
 We therefore recommend you scan all attachments.
 
 Please note that the statements and views expressed in this
 email and any attachments are those of the author and do
 not necessarily represent those of RNIB.
 
 RNIB Registered Charity Number: 226227
 
 Website: http://www.rnib.org.uk
 
 
 -
 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]
 
 

First you come to page A using HTTP POST method and browser is
complaining about that when you go back to that page.
You can check browser refresh in server side using tokens. If you
use Struts it has built in APIs for it.

-- 
Anto Paul
www.benchmarksoft.com

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



Re: build problem

2005-04-05 Thread Anto Paul
On Apr 6, 2005 5:16 AM, Fay, Michael [EMAIL PROTECTED] wrote:
 Building 5.5.7 with ant 1.6.2 on solaris 9, I keep getting this following
 error:
 BUILD FAILED
 /home/mfay/jakarta-tomcat-5.5.7-src/build.xml:50: The following error
 occurred while executing this line:
 /home/mfay/jakarta-tomcat-5.5.7-src/jakarta-tomcat-5/build.xml:974: Warning:
 Could not find file /usr/share/java/mx4j-2.1.0/mx4j-2.1.0/lib/mx4j.jar to
 copy.
 at
 org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper
 .java:539)
 at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:388)
 at
 org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
 at org.apache.tools.ant.Task.perform(Task.java:364)
 at org.apache.tools.ant.Target.execute(Target.java:341)
 at org.apache.tools.ant.Target.performTasks(Target.java:369)
 at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
 at org.apache.tools.ant.Project.executeTargets(Project.java:1062)
 at org.apache.tools.ant.Main.runBuild(Main.java:673)
 at org.apache.tools.ant.Main.startAnt(Main.java:188)
 at org.apache.tools.ant.launch.Launcher.run(Launcher.java:196)
 at org.apache.tools.ant.launch.Launcher.main(Launcher.java:55)
 Caused by:
 /home/mfay/jakarta-tomcat-5.5.7-src/jakarta-tomcat-5/build.xml:974: Warning:
 Could not find file /usr/share/java/mx4j-2.1.0/mx4j-2.1.0/lib/mx4j.jar to
 copy.
 at org.apache.tools.ant.taskdefs.Copy.execute(Copy.java:385)
 at
 org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
 at org.apache.tools.ant.Task.perform(Task.java:364)
 at org.apache.tools.ant.Target.execute(Target.java:341)
 at org.apache.tools.ant.Target.performTasks(Target.java:369)
 at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
 at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:386)
 ... 10 more
 --- Nested Exception ---
 /home/mfay/jakarta-tomcat-5.5.7-src/jakarta-tomcat-5/build.xml:974: Warning:
 Could not find file /usr/share/java/mx4j-2.1.0/mx4j-2.1.0/lib/mx4j.jar to
 copy.
 at org.apache.tools.ant.taskdefs.Copy.execute(Copy.java:385)
 at
 org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
 at org.apache.tools.ant.Task.perform(Task.java:364)
 at org.apache.tools.ant.Target.execute(Target.java:341)
 at org.apache.tools.ant.Target.performTasks(Target.java:369)
 at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
 at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:386)
 at
 org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
 at org.apache.tools.ant.Task.perform(Task.java:364)
 at org.apache.tools.ant.Target.execute(Target.java:341)
 at org.apache.tools.ant.Target.performTasks(Target.java:369)
 at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
 at org.apache.tools.ant.Project.executeTargets(Project.java:1062)
 at org.apache.tools.ant.Main.runBuild(Main.java:673)
 at org.apache.tools.ant.Main.startAnt(Main.java:188)
 at org.apache.tools.ant.launch.Launcher.run(Launcher.java:196)
 at org.apache.tools.ant.launch.Launcher.main(Launcher.java:55)
 
 So, where do I get this package if the checkout system can't get it?
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

If my memory is correct you can find all the dependencies in
build.properties.default. mx4j is hosted at SourceForge.net.
mx4j.sf.net.

-- 
Anto Paul
www.benchmarksoft.com

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



Re: Tomcat aborts

2005-04-04 Thread Anto Paul
On Apr 4, 2005 12:23 PM, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
 Hi Anto,
 
 the problem only occurs in the production system.
 Therefore we can't change the JRE easily.
 But I think we have to.
 
 The test system is not affected.
 
 Do you have a link that supports your hint regarding to JRE problems?
 
  -Ursprüngliche Nachricht-
  Von: Anto Paul [mailto:[EMAIL PROTECTED]
  Gesendet am: Freitag, 1. April 2005 14:37
  An: Tomcat Users List
  Betreff: Re: Tomcat aborts
 
  On Apr 1, 2005 5:56 PM, [EMAIL PROTECTED]
  [EMAIL PROTECTED] wrote:
   Hi,
  
   we are running tomcat 5.0.24 on solaris with Java 1.4.2_05.
   Sometimes tomcat aborts with following informations:
  
   Unexpected Signal : 11 occurred at PC=0xFE4B4590
   Function=[Unknown. Nearest:
  sysThreadAvailableStackWithSlack+0x176F0]
   Library=/usr/j2sdk1.4.2_05/jre/lib/sparc/server/libjvm.so
  
   Dynamic libraries:
   --some libs---
  
   Heap at VM Abort:
   Heap
PSYoungGen  total 284096K, used 17313K [0xb540, 0xca95,
   0xca95)
 eden space 8192K, 211% used [0xb540,0xb64e86f8,0xb5c0)
 from space 275904K, 0% used [0xb5c0,0xb5c0,0xc697)
 to   space 65408K, 0% used [0xc697,0xc697,0xca95)
 PSOldGentotal 699072K, used 693432K [0xca95,
  0xf540,
   0xf540)
 object space 699072K, 99% used [0xca95,0xf4e7e1a0,0xf540)
PSPermGen   total 16896K, used 16311K [0xf540, 0xf648,
   0xf940)
 object space 16896K, 96% used [0xf540,0xf63edca0,0xf648)
  
   Im not familiar with that memory stuff.
   Any ideas?
  
   Cheers Dirk
  
  
 
  You tried any other versions/vendor of JRE ?. This is problem
  with JRE.
  --
  Anto Paul
  Benchmark Softech
  www.benchmarksoft.com
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

Check that all required OS patches are installed. You will get better
support at the vendor support forums.  More debuf info about JVM crash
will be stored in a file starting with hs_err_ . Usually this is found
in the JRE directory or from where the JRE was started.
See the checklist in the wiki
http://wiki.apache.org/jakarta-tomcat/HowTo

-- 
Anto Paul
www.benchmarksoft.com

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



Re: tomcat ssl configuration

2005-04-04 Thread Anto Paul
On Apr 4, 2005 6:06 PM, Mustafa BLKBA [EMAIL PROTECTED] wrote:
 I use tomcat 5.0.28 on linux, my j2se version is 1.4.02. I did all the steps 
 in the document which is on this link 
 http://jakarta.apache.org/tomcat/tomcat-5.0-doc/ssl-howto.html but it's not 
 working. Is there anybody who can help me with this issue?
 
 Thanx,
 
 Mustafa.
 
 

You will get some error messages if it is not working. Post the error
messages. Then somebody can help. The log files are located in
CATALINA_HOME/logs directory.
-- 
Anto Paul
www.benchmarksoft.com

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



Re: Installation problem

2005-04-02 Thread Anto Paul
On Apr 2, 2005 3:05 PM, Panagiotis Karvounis [EMAIL PROTECTED] wrote:
 I've done all these.
 
 A msgbox appears informing me about the problem again!It says Failed
 to install service!Check your settings and permissions!
 
 On Apr 1, 2005 11:53 PM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
  Hi,
 
  01Apr2005 @ 22:24 Panagiotis Karvounis thusly spake
   I am trying to install Tomcat latest version but I have a problem.
   During installation a problem about jvm.dll occurs!
   Can you help me?
 
  Try uninstalling tomcat first.
  If you already have a tomcat installed, you will get this message.
  Remove the other tomcats, or remove the existing 'jvm.dll' file.
 
  hth,
  Luke
 
  --
/  /  _
   /_ /_/ / /=
   0421 276 282
 
  -
  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]
 
 
Do you have administrative priviliges in that system ?

-- 
Anto Paul
www.benchmarksoft.com

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



Re: build problem

2005-04-02 Thread Anto Paul
On Apr 1, 2005 8:52 PM, Fay, Michael [EMAIL PROTECTED] wrote:
 I downloaded the latest version of ant. 1.6.2.
 
 -Original Message-
 From: Antony Paul [mailto:[EMAIL PROTECTED]
 Sent: Thursday, March 31, 2005 8:29 PM
 To: Tomcat Users List
 Subject: Re: build problem
 
 What version of Ant you are using ?. It seems that Ant is not
 supporting the attribute compression
 
 On Apr 1, 2005 3:48 AM, Fay, Michael [EMAIL PROTECTED] wrote:
  I'm sure it's something simple, but I'm getting the following error when I
  try to build tomcat:
 
  BUILD FAILED
 
  /home/mfay/jakarta-tomcat-5.5.7-src/build.xml:94: The cvs task doesn't
  support the compression attribute.
 
  I've searched the Jakarta website to see if there was something on this,
 but
  I haven't found anything. Do I need to make some change to the
  build.properties or something?
 
 
 
 --
 rgds
 Antony Paul
 http://www.geocities.com/antonypaul24/
 
 -
 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]
 
 
run Ant with debug enabled or verbose out put enabled to find the
exact element at which it failed.

-- 
Anto Paul
www.benchmarksoft.com

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



Re: Query on catalina.bat of Tomcat 5.0.28

2005-04-01 Thread Anto Paul
On Apr 1, 2005 2:11 PM, Lakshmi Narayanan K. [EMAIL PROTECTED] wrote:
 Hi All,
 
 In the file catalina.bat, the following lines of code are present:
 echo Using CATALINA_BASE:   %CATALINA_BASE%
 echo Using CATALINA_HOME:   %CATALINA_HOME%
 echo Using CATALINA_TMPDIR: %CATALINA_TMPDIR%
 echo Using JAVA_HOME:   %JAVA_HOME%
 
 set _EXECJAVA=%_RUNJAVA%
 
 My question here is, who / wherefrom is the value of _RUNJAVA being
 set/obtained?
 
 I noticed that shutdown.bat file calls catalina.bat file with stop
 option. I am facing a problem with the execution of the same. When I
 executed shutdown.bat via the command prompt, the value of _RUNJAVA
 gets set to the value of the proper java that is present in JAVA_HOME.
 But when I am executed the same shutdown.bat script from within our
 product application, the value _RUNJAVA isn't getting set as expected.
 Because of this, tomcat shutdown is not getting called, hence tomcat
 never stops when I try to stop it via our application.
 
 Any ideas???
 
 - Lakshmi Narayanan K.
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

There may be an environment variable set JAVA_HOME that is causing
trouble. Look at setclasspath.bat to what _RUNJAVA points to.


-- 
Benchmark Softech
www.benchmarksoft.com

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



Re: Tomcat aborts

2005-04-01 Thread Anto Paul
On Apr 1, 2005 5:56 PM, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
 Hi,
 
 we are running tomcat 5.0.24 on solaris with Java 1.4.2_05.
 Sometimes tomcat aborts with following informations:
 
 Unexpected Signal : 11 occurred at PC=0xFE4B4590
 Function=[Unknown. Nearest: sysThreadAvailableStackWithSlack+0x176F0]
 Library=/usr/j2sdk1.4.2_05/jre/lib/sparc/server/libjvm.so
 
 Dynamic libraries:
 --some libs---
 
 Heap at VM Abort:
 Heap
  PSYoungGen  total 284096K, used 17313K [0xb540, 0xca95,
 0xca95)
   eden space 8192K, 211% used [0xb540,0xb64e86f8,0xb5c0)
   from space 275904K, 0% used [0xb5c0,0xb5c0,0xc697)
   to   space 65408K, 0% used [0xc697,0xc697,0xca95)
   PSOldGentotal 699072K, used 693432K [0xca95, 0xf540,
 0xf540)
   object space 699072K, 99% used [0xca95,0xf4e7e1a0,0xf540)
  PSPermGen   total 16896K, used 16311K [0xf540, 0xf648,
 0xf940)
   object space 16896K, 96% used [0xf540,0xf63edca0,0xf648)
 
 Im not familiar with that memory stuff.
 Any ideas?
 
 Cheers Dirk
 
 

You tried any other versions/vendor of JRE ?. This is problem with JRE.
-- 
Anto Paul
Benchmark Softech
www.benchmarksoft.com

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



Re: tomcat 5.5/win loading external image files

2005-04-01 Thread Anto Paul
On Apr 2, 2005 8:53 AM, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
 i need to load a bunch of image files located outside my exploded war
 file.  for example, say that the images live here
 
 |---c:\myimages
 |---\app
 |-\promotions
 |-\images
 
  my app is under
 
 |---c:\tomcat5.5
 |--\webapps
 |\myapp.
 
 the img links are written out dynamically based on an init-param in the
 web.xml  javabeans.   the result is that i can get a valid path to the
 image resouce looking at the html, but cannot actually load the image.
 
 does anyone know if that's possible on the windows platform (win2k
 server)?
 
 thanks
 
 

A relative link will work if it is inside the web application root. 
If you want to load external images write a Servlet to which the
path or name of the image file is passed as an argument and the
Servlet reads the file using ServletContext.getResourceAsStream() and
write it to the OutputStream returned by the
response.getOutputStream(). Dont forget to set the appropriate MIME
type for content type.

-- 
Anto Paul
Benchmark Softech
www.benchmarksoft.com

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



Re: Debugging tomcat startup

2005-04-01 Thread Anto Paul
On Apr 2, 2005 1:27 AM, Sasha Borodin [EMAIL PROTECTED] wrote:
 I'd like to solicit suggestions for debugging Tomcat startup - specifically
 various class initializations.
 
 I've written a custom Realm implementation; in it, I use some data access
 classes which use iBatis; these classes work great when used in a web
 application (all jars residing in the apps WEB-INF/lib); but I'm getting
 errors when these classes are initialized from jars in the server/lib
 directory at startup.
 
 If you have suggestions for how to debug the startup, especially from an IDE
 like Idea, please post.  Also, if there are guidelines for where to place
 certain types of jars (common vs. server), please post a link.  Right now
 I've got my jdbc jars in common/lib, and my custom Realm and data access
 classes (including ibatis related jars) in server/lib.
 
 Thanks for your help,
 
 -Sasha Borodin
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

Read the classloader docs.
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/class-loader-howto.html

What is the motive to place jars in server/lib. These jars are not
visible to applications.

-- 
Anto Paul
Benchmark Softech
www.benchmarksoft.com

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



Re: Configuring Manager for different Virtual Hosts

2005-04-01 Thread Anto Paul
On Apr 1, 2005 11:38 PM, John B. Moore [EMAIL PROTECTED] wrote:
 I know I saw the info on this topic somewhere, but for the life of me, I
 can not relocate it.. (can not come up with the magic search strings...
 I spent hours trying different searches...)
 
 Task: I am trying to configure the Manager tool to manage different
 virtual hosts on a webserver  (Apache - Tomcat 4.1.29) so that I can
 restart a single webapplication when I make changes.
 
 I have various subdirectories under webapps that are configured as
 separate hosts and contexts
 
 i.e. /webapps/someapp/
 
 In that directory I have a web application and I want the setup  the
 Manager for stopping and starting this app..
 
 Using the example for the localhost context I saw the alias
 
 Alias /usr/local/tomcat/webapps/../server/webapps/manager
 
 ..along with all the related settings...
 
 Since my webapp is in  /usr/local/tomcat/webapps/someapp/
 
 I tried..
 
 Alias /usr/local/tomcat/webapps/someapp/../../server/webapps/manager
 
 .. along with related settings...  No joy.. it dropped the first ../
 and still can not track to that alias directory..
 
 So am I chasing my tail..G   And/or can someone point me to that
 phantom discusson on setting up the manager for other host/context/
 subdirectories...
 
 Thanks...
 
 John...
 
 

I have a single line to do it in the VirtualHost
JkMount /manager/* a9
First configure manager application as specified in the Manager how to.
There are some config steps in Tomcat if you have different
CATALINA_BASE for each web application.

-- 
Anto Paul
Benchmark Softech
www.benchmarksoft.com

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



mod_jk configuration question

2004-10-01 Thread Anto Paul
Hi all,
   
  Is it possible to define two AJP13 connectors both listening at
different ports and different addresses. These two addresses have
different Host elements.

Config 

Connector className=org.apache.ajp.tomcat4.Ajp13Connector
   port=8005 minProcessors=5 maxProcessors=75
   acceptCount=10 debug=5 192.168.4.1/ 
Connector className=org.apache.ajp.tomcat4.Ajp13Connector
   port=8006 minProcessors=5 maxProcessors=75
   acceptCount=10 debug=5 address=192.168.4.2/ 

Host name=localhost debug=0 appBase=webapps
   unpackWARs=true autoDeploy=true
   
   Context path= docBase=ROOT debug=0/

/Host

Host name=192.168.4.1 debug=0 appBase=192.168.4.1
   unpackWARs=true autoDeploy=true
 
  Context path= docBase=ROOT debug=0/

/Host

Host name=192.168.4.2 debug=0 appBase=192.168.4.2
   unpackWARs=true autoDeploy=true

  
   Context path= docBase=ROOT debug=0/

/Host

Both connectors should connect to respective hosts context.

When I tested this all JSP requests are going to the localhost.

 

rgds
Anto Paul

-- 
To strive,to seek,to find and not to yield

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



Servlet mapping problem

2004-09-29 Thread Anto Paul
Hi all,
  I am writing an application which have to serve content based on the
hostname it is requested. Different hosts will be set to same ROOT
directory. There wont be any content at the ROOT. Everything will be
on subdirectories. I wrote a servlet with mapping as / . But when it
is forwarded to subdirectory it is coming to same servlet and
executing in a loop. This is an example of what I need.

Directory structure.   Host name
ROOT/sites/one.com -  one.com
ROOT/sites/two.comtwo.com
ROOT/sites/three.com  three.com

A request to one.com should go to /sites/one.com .
A request to two.com should go to /sites/two.com .

How to make it.

Thanks in advance

Anto Paul


-- 
To strive,to seek,to find and not to yield

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



Re: Servlet mapping problem

2004-09-29 Thread Anto Paul
Hi there,
  I posted this to Tomcat User List. I didnt posted this to Struts.
Although the application is using Struts it is not specific to Struts.

rgds
Anto Paul


On Wed, 29 Sep 2004 00:59:53 -0700, Michael McGrady
[EMAIL PROTECTED] wrote:
 
 
 Anto Paul wrote:
 
 Hi all,
   I am writing an application which have to serve content based on the
 hostname it is requested. Different hosts will be set to same ROOT
 directory. There wont be any content at the ROOT. Everything will be
 on subdirectories. I wrote a servlet with mapping as / . But when it
 is forwarded to subdirectory it is coming to same servlet and
 executing in a loop. This is an example of what I need.
 
 Directory structure.   Host name
 ROOT/sites/one.com -  one.com
 ROOT/sites/two.comtwo.com
 ROOT/sites/three.com  three.com
 
 A request to one.com should go to /sites/one.com .
 A request to two.com should go to /sites/two.com .
 
 How to make it.
 
 Thanks in advance
 
 Anto Paul
 
 
 
 
 Hello, Anto,
 
 I don't have enough information to tell what your  problem is.  Are you
 using ActionForwards to go to these areas?  What servlet with a
 mapping as / are you talking about?  Remember this is a Struts list.  If
 you have everything mapped to your servlet in your web.xml, then, of
 course, everything is going to go to your servlet.  I suspect this is
 what you have done.  Why do you have a servlet with a mapping as / ?
 
 Michael McGrady
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 



-- 
To strive,to seek,to find and not to yield

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



Re: AW: Servlet mapping problem

2004-09-29 Thread Anto Paul
I cant grasp what you said. I am using Tomcat 4.1.x. I searched in
Google for world welcome-file and could'nt find anything on it. Are
you talking about welcome-file-list ?.

rgds
Anto Paul


On Wed, 29 Sep 2004 11:43:33 +0200, Steffen Heil [EMAIL PROTECTED] wrote:
 Hi
 
  I wrote a servlet with mapping as / . But when it is forwarded to
 subdirectory it is coming to same servlet and executing in a loop.
 
 You cannot map a single url. Tomcat only maps prefixes. So, you cannot map
 / with tomcat. (Resin can, but this is another story.)
 Here is a workaround:
 Map /root as a servlet and define root as world welcome-file (see docs).
 Depending on the tomcat version in use, you need to create a empty file
 named root.
 
  Remember this is a Struts list.
 
 Nope.
 
 Regards,
  Steffen
 
 
 
 



-- 
To strive,to seek,to find and not to yield

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



Re: Servlet mapping problem

2004-09-29 Thread Anto Paul
What if I use a filter ?. I will map it like this

filter-mapping
filter-nameMappingFilter/filter-name
url-pattern//url-pattern
/filter-mapping

 filter-mapping
filter-nameMappingFilter/filter-name
url-pattern/*/url-pattern
/filter-mapping

In filter I forward to the path substituted with the directory. With
servlet I failed to achieve what I want. I am sceptical about using a
forward in a filter. This filter is the only filter that exists in the
application. Even if another filter is added it can be put as he last
filter in web.xml. Please comment on this.

rgds
Anto Paul 


On Wed, 29 Sep 2004 09:04:32 -0400, Shapira, Yoav [EMAIL PROTECTED] wrote:
 
 Hi,
 
 However, I am sure about the fact, that you cannot map a single url
 such as
 /.
 (Yes, you can define a mapping of /, but that maps to EVERY request,
 NOT
 to the root url only.)
 
 No.  You're mistaking the default configuration for something that's
 hard-coded.  Out of the box, / is mapped to Tomcat's DefaultServlet,
 which handles static content.  This is routine for other containers as
 well and is not a particular Tomcat trick.
 
 Per the servlet spec, / is the default mapping also, so anything that's
 not matched by other mappings will end up there.
 
 So, here's one way to change things:
 - Explicitly map the things you want handled by Tomcat's DefaultServlet
 to it, e.g.
 servlet-nameDefaultServlet/servlet-nameurl-pattern*.html/url-patt
 ern.  Same for *.htm, *.gif, *.jpg, *.png, etc.
 - Map any servlet of your choice to URL pattern /.
 - Ensure that rest of your app has no unmapped pages, i.e. ones that'll
 propagate to /.
 
 
 
 Yoav
 
 This e-mail, including any attachments, is a confidential business communication, 
 and may contain information that is confidential, proprietary and/or privileged.  
 This e-mail is intended only for the individual(s) to whom it is addressed, and may 
 not be saved, copied, printed, disclosed or used by anyone else.  If you are not 
 the(an) intended recipient, please immediately delete this e-mail from your computer 
 system and notify the sender.  Thank you.
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 



-- 
To strive,to seek,to find and not to yield

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



[OT]Geronimo and Tomcat

2004-09-28 Thread Anto Paul
Hi all,
  I was reading a tutoral on using Geronimo. It seems that Geronimo is
using Jetty. Why it don't use Tomcat. Or is Tomcat is available as
optional plug in ?.

rgds
Anto Paul

-- 
To strive,to seek,to find and not to yield

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



Re: [OT] Handling JDBC transactions

2004-09-23 Thread Anto Paul
Simulating real world is a QA fellows job. I write code, foresee any
bugs that it may have, write tests for it, run tests using Ant, deploy
to Tomcat(copy files) and test. Only JSP pages one need to test using
a container with every change for- for the visual layout.

rgds
Anto Paul


On Thu, 23 Sep 2004 09:02:06 -0400, Shapira, Yoav [EMAIL PROTECTED] wrote:
 
 Hi,
 
 Cactus is in-container testing(I assume). Takes time. I want to test
 code
 as
 I write it.  Already the development time for deploying an application
 is
 high because of having a different source directory than web
 application
 directory and of Ant.
 
 Good luck.  If you want to have tests that simulate real-world
 conditions, not just simple unit tests, you'll wake up to things like
 Cactus soon enough ;)  Or maybe create your own framework for testing
 code as you write it complete with the plumbing required.
 
 Yoav
 
 This e-mail, including any attachments, is a confidential business communication, 
 and may contain information that is confidential, proprietary and/or privileged.  
 This e-mail is intended only for the individual(s) to whom it is addressed, and may 
 not be saved, copied, printed, disclosed or used by anyone else.  If you are not 
 the(an) intended recipient, please immediately delete this e-mail from your computer 
 system and notify the sender.  Thank you.
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 



-- 
To strive,to seek,to find and not to yield

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



Re: [OT] Handling JDBC transactions

2004-09-23 Thread Anto Paul
I don't have any knowledge of Cactus/MockObjects. I had never thought
about such a testing strategy. Thanks for the info.

Anto Paul


On Thu, 23 Sep 2004 09:34:34 -0400, Shapira, Yoav [EMAIL PROTECTED] wrote:
 
 Hi,
 
 Do you run unit test using Cactus for all code changes ? Just to know
 ?. I feel that such tools are useful for those who is responsible for
 integration testing.
 
 It's not that simple (at least for me and the organizations I've worked
 for/with).  I don't have the luxury (and few people do) of leaving all
 integration testing to QA in the first place.  Even if I did, I
 wouldn't consider a test like making sure a servlet can work with a
 connection pool an integration test (and such a test would obviously
 require JNDI).  And even in places that consider that an integration
 test, I've found the quality of QA testing to be mediocre at best, and
 downright clumsy on average.
 
 So I, and the developers I manage, end up writing a good amount of tests
 that aren't plain JUnit tests: we use Cactus, MockObjects, and a variety
 of other tools.  They get run automatically on a nightly basis on our
 test server, so we don't spend any time running them, we just check the
 results in the morning.  There's also a nightly Clover run to give us an
 idea of how we're doing in test code coverage.
 
 I didn't stumble into this approach or invent it: there's an ample body
 of both theoretical SD research and practical experience that suggest
 waiting for QA to conduct all integration testing results in
 significantly worse product quality and delayed shipping.  Tools like
 Cactus are priceless to quality-oriented shops.
 
 Yoav
 
 
 
 
 
 Anto Paul
 
 
 On Thu, 23 Sep 2004 09:12:12 -0400, Shapira, Yoav
 [EMAIL PROTECTED]
 wrote:
 
  Hi,
  OK.  To each their own testing philosophy ;)
 
  Yoav Shapira
  Millennium Research Informatics
 
 
 
 
  -Original Message-
  From: Anto Paul [mailto:[EMAIL PROTECTED]
  Sent: Thursday, September 23, 2004 9:10 AM
  To: Tomcat Users List
  Subject: Re: [OT] Handling JDBC transactions
  
  Simulating real world is a QA fellows job. I write code, foresee any
  bugs that it may have, write tests for it, run tests using Ant,
 deploy
  to Tomcat(copy files) and test. Only JSP pages one need to test
 using
  a container with every change for- for the visual layout.
  
  rgds
  Anto Paul
  
  
  On Thu, 23 Sep 2004 09:02:06 -0400, Shapira, Yoav
  [EMAIL PROTECTED]
  wrote:
  
   Hi,
  
   Cactus is in-container testing(I assume). Takes time. I want to
 test
   code
   as
   I write it.  Already the development time for deploying an
  application
   is
   high because of having a different source directory than web
   application
   directory and of Ant.
  
   Good luck.  If you want to have tests that simulate real-world
   conditions, not just simple unit tests, you'll wake up to things
 like
   Cactus soon enough ;)  Or maybe create your own framework for
 testing
   code as you write it complete with the plumbing required.
  
   Yoav
  
   This e-mail, including any attachments, is a confidential business
  communication, and may contain information that is confidential,
  proprietary and/or privileged.  This e-mail is intended only for the
  individual(s) to whom it is addressed, and may not be saved, copied,
  printed, disclosed or used by anyone else.  If you are not the(an)
  intended
  recipient, please immediately delete this e-mail from your computer
  system
  and notify the sender.  Thank you.
  
  
 -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail:
 [EMAIL PROTECTED]
  
  
  
  
  
  --
  To strive,to seek,to find and not to yield
  
 
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
  This e-mail, including any attachments, is a confidential business
 communication, and may contain information that is confidential,
 proprietary and/or privileged.  This e-mail is intended only for the
 individual(s) to whom it is addressed, and may not be saved, copied,
 printed, disclosed or used by anyone else.  If you are not the(an)
 intended
 recipient, please immediately delete this e-mail from your computer
 system
 and notify the sender.  Thank you.
 
 
 
 
 
 --
 To strive,to seek,to find and not to yield
 
 
 
 
 This e-mail, including any attachments, is a confidential business communication, 
 and may contain information that is confidential, proprietary and/or privileged.  
 This e-mail is intended only for the individual(s) to whom it is addressed, and may 
 not be saved, copied, printed, disclosed or used by anyone else.  If you are not 
 the(an) intended recipient, please immediately delete this e-mail from your computer 
 system and notify the sender.  Thank you.
 
 



-- 
To strive,to seek,to find and not to yield

Re: Preload JSP when it's startup

2003-11-28 Thread Anto Paul
I use the following Ant build file to precompile all jsps to work dir. I
prepared this based on another post in this list. All the jsps are converted
to java and then to class files.

project name=myapp default=all
basedir=E:\Tomcat4.1\work\Standalone\localhost\myapp
!--Simple build file to compile all jsp files to java and javac to the work
directory of tomcat installation --
property name=tomcat.home value=E:\Tomcat4.1/
property name=webapp.path value=E:\Projects\myapp/  !-- web
application docBase in server.xml  --

  target name=jspc
taskdef classname=org.apache.jasper.JspC name=jasper2 
  classpath id=jspc.classpath
pathelement location=${java.home}/../lib/tools.jar/
fileset dir=${tomcat.home}/server/lib
  include name=*.jar/
/fileset
fileset dir=${tomcat.home}/common/lib
  include name=*.jar/
/fileset
  /classpath
/taskdef

jasper2
 validateXml=false
 uriroot=${webapp.path}
 webXmlFragment=${basedir}/generated_web.xml
 outputDir=${basedir} /

  /target

 target name=javac depends=jspc

javac srcdir=${basedir} destdir=${basedir} optimize=off
debug=on failonerror=false excludes=**/*.smap
  classpath
pathelement location=${webapp.path}/WEB-INF/classes/
fileset dir=${webapp.path}/WEB-INF/lib
  include name=*.jar/
/fileset
pathelement location=${tomcat.home}/common/classes/
fileset dir=${tomcat.home}/common/lib
  include name=*.jar/
/fileset
pathelement location=${tomcat.home}/shared/classes/
fileset dir=${tomcat.home}/shared/lib
  include name=*.jar/
/fileset
  /classpath
  include name=** /
  exclude name=tags/** /
/javac

  /target

  target name=all depends=jspc,javac
  /target

/project

Rgds
Antony Paul.



- Original Message -
From: [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, November 28, 2003 12:25 PM
Subject: Re: Preload JSP when it's startup


 Can you please tell me exact instruction?
 Script??
 store it in where?
 how?





 Deepak Parbhoo [EMAIL PROTECTED]
 11/28/2003 01:12 PM
 Please respond to Tomcat Users List


 To: Tomcat Users List [EMAIL PROTECTED]
 cc:
 Subject:Re: Preload JSP when it's startup


 Write a script that calls the jsp's with '?jsp_precompile=true' as a
 parameter.
 So if the page is called start.jsp you will make a request to:
 http://server:port/start.jsp?jsp_precompile=true.

 [EMAIL PROTECTED] wrote:

 As we know, first time when JSP is called, it's complied into Servlet
 and
 the next time you call the same jsp, the respond time will be faster.
 
 Thus, anywar for Tomcat to set to preload the JSP page when it's
 starting
 up the server?
 
 Thanks.
 
 
 



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



How to stop execution of infinite loop in Tomcat ?

2003-06-18 Thread anto paul
Hi
Is there any way to stop the execution of a JSP page on a remote server
? Today by mistake I wrote code which print inside a while loop. By mistake
I increased the counter instead of decreasing it. How I can stop the
execution of the page. Tomcat is running in another machine which I have no
physical access.
 Regards
Anto paul

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



  1   2   >