Re: Windwos Integrated Authentication using AD and Tomcat (no prompt to the users)

2009-09-13 Thread Steve Ochani


 To Martin, Steve and others :
 
 Samba's JCIFS works fine, but only for NTLMv1 authentication.
 (It is also no longer maintained, see http://jcifs.samba.org.)

Yes I saw that on the jcifs website. However I left to up to the OP to see that 
as well, 
considering the blue important notice is quite attention grabbing.




 It does NOT work for NTLMv2 authentication, which is fast becoming the
 norm, and the default from Vista onwards. Jespa works with NTLMv2, and
 is free for up to 25 users.
 
 I have no shares in ioplex or Jespa.
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For
 additional commands, e-mail: users-h...@tomcat.apache.org
 



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Windwos Integrated Authentication using AD and Tomcat (no prompt to the users)

2009-09-12 Thread Steve Ochani
Send reply to:  Tomcat Users List users@tomcat.apache.org
Date sent:  Sat, 12 Sep 2009 12:50:41 -0700 (PDT)
From:   Derlei Luff derlei...@yahoo.com
Subject:Windwos Integrated Authentication using AD and Tomcat (no 
prompt to
the users)
To: users@tomcat.apache.org

 Hi all,
  
 I´m new to Tomcat and normally work in a Microsoft Windows world.
 I´ve stumbled into a problem using Tomcat as a web server, that
 I´m sure there is a simple solution for though I can´t find it.
 I´m sure it works if I use a MS IIS server instead of a Tomcat
 server at least. I hope some of you more experienced users of Tomcat
 can either point me in the right direction or perhaps come up with the
 conclusion J My problem is: I have a running Active Directory which
 holds the users and groups. I have a Windows XP client, which is
 member of the Active Directory domain. If a users logs into the client
 using he´s username and password and then open Internet Explore I
 would like him to gain access to a web page hosted on the Tomcat
 server. The problem is that the Tomcat server shall validate the
 user´s Active Directory credentials and the credentials should be
 sent to Tomcat without user interaction. In other words I want
 Windows Integrated Authentication from the MS world, so that
 Internet Explore takes the users credentials and send them to the
 Tomcat server (Kerberos). So far I can only get this to work if
 Internet Explorer prompts the users for he´s credentials (Basic
 Authentication). In other words I want to archive this:
 · Users logs onto the Windows XP computer using
 he´s username and password · User opens Internet
 explorer and write the URL to the page hosted on the Tomcat server
 · Internet Explore sends the users username and
 password automatically to tomcat (Kerberos) · The
 Tomcat validates the user´s credentials and accepts the request.  
 This is some form of Single Sign On and I know it works if I use IIS
 instead of Tomcat. I´ve found several guides on the net, but no one
 which tells me if this is possible or not. Hope some of you of you can
 point me in the right direction, but perhaps I have to use a third
 part application to archive this??   Thanks in advance, Derlei





http://wiki.apache.org/tomcat/FAQ/Windows#Q4




-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Tomcat 6 shutdown hangs server when using JDK 6.0_15

2009-08-11 Thread Steve Ochani
Send reply to:  Tomcat Users List users@tomcat.apache.org
From:   Dan Denton dden...@remitpro.com
To: Tomcat Users List users@tomcat.apache.org
Date sent:  Tue, 11 Aug 2009 08:51:46 -0500
Subject:RE: Tomcat 6 shutdown hangs server when using JDK 6.0_15

 Thanks Filip for the reply, but as I said in my original post, this is
 running on a virtual machine, so hardware isn't a factor. In addition,
 this only started when I began using JDK 6 instead of 5, and only
 continues to happen if I use JDK 6. If I use 5, there's no problem.
 
 I will test this on another VM and a non-VM system to see if they
 behave the same way, but I would still appreciate more input if it's
 available.
 

Perhaps you should upgrade the vmware app and jdk 6 to update 16. I've run 
centos 5 under 
vmware desktop 6.5 with jdk 6 (forgot exact version) and tomcat 6 (again don't 
remember 
exact version) and it ran just fine.


Also there is still a slight possibility it could be a hardware issue such as 
bad RAM, try a ram 
test program like memtest86.



-Steve O.




 Thanks in advance!
 
 -Original Message-
 From: Filip Hanik - Dev Lists [mailto:devli...@hanik.com] 
 Sent: Monday, August 10, 2009 4:22 PM
 To: Tomcat Users List
 Subject: Re: Tomcat 6 shutdown hangs server when using JDK 6.0_15
 
 if you entire server dies, then it sounds more hardware related, could
 be software triggered, but no, tomcat shouldn't kill your system :)
 
 Filip
 
 On 08/10/2009 02:57 PM, Dan Denton wrote:
  Hello all.
 
  I'm running an RHEL 4 server on a VMware VM hosting tomcat 6, using
  JDK 6.0_15. When I attempt to shutdown any tomcat instance, the
  entire server (VM) hangs and has to be rebooted. Even out of the box
  tomcat installations cause this.
 
  When I use JDK 5.0, this doesn't happen. The tomcat instance logs
  don't show anything useful. I've attempted to use jstack and pstack
  to get a trace of the process during shutdown, but the server dies
  before anything useful is logged. Has this happened to anyone else
  out there? Google yields lots of tomcat hung hits, but nothing
  about the OS hanging in response to a shutdown.
 
  Any help on this is greatly appreciated!
 
  Dan
 
 
 
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For
 additional commands, e-mail: users-h...@tomcat.apache.org
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For
 additional commands, e-mail: users-h...@tomcat.apache.org
 



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: tomcat hang when start with service tomcat start

2009-06-30 Thread Steve Ochani
Send reply to:  Tomcat Users List users@tomcat.apache.org
From:   zhicheng wang zcwli...@hotmail.co.uk
To: users@tomcat.apache.org
Subject:RE: tomcat hang when start with service tomcat start
Date sent:  Tue, 30 Jun 2009 16:53:08 +0100

 
 hi 
 
 do you mean 
 kill -3 pid
 
 it printed nothing (while tomcat was hanging)
 
 

Look in the catalina.out logfile.




 
  From: chuck.caldar...@unisys.com
  To: users@tomcat.apache.org
  Date: Tue, 30 Jun 2009 10:29:57 -0500
  Subject: RE: tomcat hang when start with service tomcat start
  
   From: zhicheng wang [mailto:zcwli...@hotmail.co.uk]
   Subject: RE: tomcat hang when start with service tomcat start
   
   the problem began when we started running a Grails app (as
   ROOT.war) as the hang point indicated
INFO: Initializing Spring root WebApplicationContext
  
  What does a thread dump show?
  
   - 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: users-unsubscr...@tomcat.apache.org For
  additional commands, e-mail: users-h...@tomcat.apache.org
  
 
 _ Get
 the best of MSN on your mobile
 http://clk.atdmt.com/UKM/go/147991039/direct/01/



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: compiling mod_jk1.2.28 with apache2.2.9 on windows 2003 server help needed.

2009-06-25 Thread Steve Ochani
Send reply to:  Tomcat Users List users@tomcat.apache.org
From:   Ashwin K akesa...@premiertechnologygroup.com
To: users@tomcat.apache.org
Subject:compiling mod_jk1.2.28 with apache2.2.9 on windows 2003 
server 
help
needed.
Date sent:  Thu, 25 Jun 2009 17:38:59 +0530

 Hi ,
 
 I have followed the instruction said in here Building mod_jk for
 Apache on Windows NT/2K/XP at this official tomcat site
 http://tomcat.apache.org/connectors-doc/webserver_howto/apache.html.
 Basically the step i did was
 
 1) download and install jdk1.6.0_07
 2) download and install apapche2.2.9 msi file with headers and with
 openssl. 3) Download the source of  JK 1.2.28 Source Release zip file
 from http://tomcat.apache.org/download-connectors.cgi 

Why not use the compiled binary?

http://mirror.cloudera.com/apache/tomcat/tomcat-connectors/jk/binaries/win32/jk-1.2.28/


4) Install
 visual C++ 6.0 5) Then set java_home and apache2_home. 6) Then run
 MSDEV mod_jk.dsp /MAKE ALL at apache2.0 folder inside native.
 
 It throws error stating that mstcpip.h is missing. But real concern is
 not about the missing mstcpip.h. But the folder structure in source
 file conatins the following D:\tomcat-connectors-1.2.28-src\native
 contains only apache-1.3 and apache-2.0. Note that there is no
 apache2.2 folder. So I think, the module was meant for 2.0 and not
 2.2. Here is the full story. I installed the apache2.2.9 and
 mod_jk-1.2.28 and tomcat5.5.20 on windows 2003 server (all in binary
 version). There is only tomcat and apache running on that server. No
 php or anything else. I have noticed that memory increase from 20KB to
 1.5G and then crashes as there no more memory left on the machine. I
 think this is because of a memory leak with apache or on one of the
 modules. The most heavily used module is mod_jk. So I thought may be
 compiling this module from source will solve the memory leak. When I
 got the source I find only folder for apache2.0 and apache1.3. And
 there is no apache2.2 folder to compile. Can anyone tell me the reason
 for this memory leak, as we have the same setup in windows 2003 x64
 (which somewhat less heavily used than this 32-bit box) which doesn't
 produce this issue. I have installed apache-2.2.11 and found the same
 issue is reproducing. So now I am using apache2.2.9
 
 -- Ashwin K.
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For
 additional commands, e-mail: users-h...@tomcat.apache.org
 



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: tomcat6.0.18 service unable to start

2009-06-10 Thread Steve Ochani
Send reply to:  Tomcat Users List users@tomcat.apache.org
Date sent:  Wed, 10 Jun 2009 10:32:27 +0200
From:   André Warnier a...@ice-sa.com
Send reply to:  a...@ice-sa.com
To: Tomcat Users List users@tomcat.apache.org
Subject:Re: tomcat6.0.18 service unable to start

 teoh wrote:
  my tomcat6 service unable to startup with error 0 code. i already
  tried put msvcr71.dll in tomcat/bin directory. still the same
 
  i'm using tomcat 6.0.18 with windows xp 32bits system
 
  in console, i able to start up the tomcat, but not on service.  any
  suggestion what i missed out?
 
  my process monitor log at  http://www.sendspace.com/file/t0tahr
 
 Not an answer to the problem, but the link you provide requires a
 signup, which many people will not want to do. So, basically, we can't


Not really, scroll down and click the link to download, ignore the ad about 
registration.


 see your logfile. Can't you paste the relevant few lines right here ?


 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For
 additional commands, e-mail: users-h...@tomcat.apache.org




-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: tomcat no longer writing to log files

2009-05-15 Thread Steve Ochani
Send reply to:  Tomcat Users List users@tomcat.apache.org
From:   Michael A. Repucci mich...@repucci.org
Date sent:  Thu, 14 May 2009 17:42:16 -0400
Subject:Re: tomcat no longer writing to log files
To: Tomcat Users List users@tomcat.apache.org

 Seems like a bit of animosity toward Tomcat has finally helped me make
 progress, mostly because it got all you gurus to actually explain a
 bit of how it works, and how it's packaged, all concepts I didn't
 understand. I'm a scientist, not a programmer.


Really? Your cv/resume indicates otherwise.

Sure your phd is in neuroscience but your current employment is listed as
Scientific Programmer and so was your last employment.

Considering that you are Proficient in things such as C/C++/C#, PHP ... 
Linux OS 
you should have considered that letting people know some details about your 
configuration/system would have helped.

Anyways, as stated by other people, get rid of the ubuntu packaged Tomcat and 
install the 
official one, also use a real Java version from SUN.


Also, tomcat does work out of the box. Incorrect administration of any system 
will stop it 
from working out of the box.



-Steve O.





 I'm new to Ubuntu and
 Tomcat. My colleagues have been completely unhelpful in this process.
 It works on their systems, so they've just left me to struggle on my
 own.
 
 My frustration is further fueled by the fact that the web site that
 our application will soon handle (http://neuroanalysis.org/toolkit/)
 is working just fine as static html; it doesn't change much, and most
 of the pages (not viewable externally) are generated automatically
 from code, using m2html or doxygen. But now they want me to integrate
 this site into the JSP format seen at the root
 (http://neuroanalysis.org/), despite the fact that I have zero
 experience with Tomcat, Java, or JSP, and nearly no web application
 development experience.
 
 It would have been nice if Tomcat just worked, out of the box, but it
 took me a couple days just to get it up and running. Now Tomcat works,
 at least the default page and the example webapps, but the application
 that my colleagues built won't work. This is their fault, as far as
 I'm concerned, yet there's nothing I can do to force them to improve
 what is probably sloppy code on their part.
 
 So I'm just looking for some help. Sorry to insult Tomcat, but thanks
 for the useful feedback. I'll work on the suggestions and let you know
 if I can't make any progress.
 
 :) Michael
 



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Internal server error - Apache

2009-02-08 Thread Steve Ochani

(Sorry for the top-post)

Andre, well written reply.

I sometimes wish people would stop replying to questions that provide no 
information/details
about the problem and their setup.





Send reply to:  Tomcat Users List users@tomcat.apache.org
Date sent:  Sun, 08 Feb 2009 21:43:30 +0100
From:   André Warnier a...@ice-sa.com
To: Tomcat Users List users@tomcat.apache.org
Subject:Re: Internal server error - Apache

 Randhir singh wrote:
  Thanks, for your answer. The error_log shows like the following:-
 
  Sun Feb  8 15:53:14 2009] [notice] caught SIGTERM, shutting down
  [Sun Feb  8 15:53:22 2009] [notice] Apache/1.3.12 (Unix)
  mod_jk/1.2.6 mod_ssl/2.6.6 OpenSSL/0.9.5 configured -- resuming
  normal operations [Sun Feb  8 15:56:13 2009] [notice] caught
  SIGTERM, shutting down [Sun Feb  8 15:56:22 2009] [notice]
  Apache/1.3.12 (Unix) mod_jk/1.2.6 mod_ssl/2.6.6 OpenSSL/0.9.5
  configured -- resuming normal operations
 
  Please, help as my live environment is held up.
 
 Dear Randhir,

 Apart from the fact that you are polite and persistent, which are
 redeeming qualities;

 Apart from the fact that you seem to have taken on a job (or be given
 a job) for which you lack the basic knowledge and qualification;

 Apart from the fact that several people, on this list and Apache
 httpd's list, have already told you that these lists were not a
 substitute for a basic training on webservers, Apache, Tomcat and
 whatnot;

 Apart from the fact that you have also been told a couple of times
 that the right way to move Apache and Tomcat from one server to
 another was not to simply copy all the directories over;

 Apart from the fact that nobody, on this list or another, can give you
 a receipe for moving Apache and Tomcat and applications from one
 server to another, because this would still require basic knowledge
 that you do not seem to have;

 Apart from the fact that you anyway do not seem to listen to what
 people are telling you, and ask the same kind of questions over and
 over;

 Apart from the fact that the information you provide along with your
 questions is generally insufficient to even start to answer them;

 Apart from the fact that the above logfile looks like a perfectly
 normal start of Apache, without errors of any kind;

 Apart from the fact that we regret that your live environment is held
 up, which is nobody's fault but yours;

 Well apart from all that, you are on the wrong list, because your
 logfile above is an Apache httpd logfile, and this is the Tomcat users
 list.

 Now independently of anything else, the fact that you would not even
 know this, should show you that there is something rather fundamental
 missing in your understanding of the issues; doesn't it ?


 Or else, you are a consumate joker, and in that case I take it back,
 you are really good at it.  But now maybe the time to end the joke,
 because you are using up a lot of good people's time.


 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For
 additional commands, e-mail: users-h...@tomcat.apache.org




-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: package javax.servlet does not exist import javax.servlet.* ;

2009-02-02 Thread Steve Ochani
On 2 Feb 2009 at 18:36, Shaolin wrote:

Send reply to:  Tomcat Users List users@tomcat.apache.org
Date sent:  Mon, 02 Feb 2009 18:36:04 +
Subject:Re: package javax.servlet does not exist import javax.servlet.* 
;
From:   Shaolin shaolinfin...@gmail.com
To: Tomcat Users List users@tomcat.apache.org

 It worked, but how comes I have to use classpath now and not when I
 used to
 do it before ? 

Two different problems. Running tomcat is different from compiling a java 
servlet application.

It is not recommended to set a systemwide classpath, period.


is there any way of overcoming this ? Typing up CPs'
 in
 command line takes too much time.
 

Like Charles pointed out in his reply, use ANT or IDE.

I've used batch and bash scripts also, something like


javac -cp .:/path-to-tomcat/lib/servlet-api.jar:/path-to-additional-jars $1

where $1 is commandline parameter which would be the source file



-Steve O.





 2009/2/2 Caldarale, Charles R chuck.caldar...@unisys.com
 
   From: Shaolin [mailto:shaolinfin...@gmail.com]
   Subject: Re: package javax.servlet does not exist import
   javax.servlet.* ;
  
You'll need to tell javac (or whatever IDE you're
using) where the servlet-api.jar is.
  
   How do I do that ?
 
  For javac, use the -cp parameter; for any IDE, you'll have to
 consult its
  documentation.
 
   - 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: users-unsubscr...@tomcat.apache.org
  For additional commands, e-mail: users-h...@tomcat.apache.org
 
 
 



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Service Unavailable - zero size object

2009-01-21 Thread Steve Ochani
Send reply to:  Tomcat Users List users@tomcat.apache.org
Date sent:  Wed, 21 Jan 2009 12:33:40 +
Subject:Re: Service Unavailable - zero size object
From:   Andrew Hole andremailingl...@gmail.com
To: Tomcat Users List users@tomcat.apache.org

 The strange thing is that i cannot find any log file with this error!
 Its very strange!


It is most likely an error from apache httpd so look in the httpd logs.

I found this via google:

http://www.unixadmintalk.com/apache-users/705409-service-unavailable-zero-size-
object.html


This may not be tomcat related at all.


-Steve O.



 Thanks

 On Wed, Jan 21, 2009 at 12:23 PM, Piller Sébastien
 pi...@hmcrecord.chwrote:

  Hi,
 
  you will most likely find more informations on the log files
  (catalina.out or smt like that)
 
  could you have a look and report the stacktrace here?
 
  Andrew Hole a écrit :
 
   Hi!
 
  We are using Apache + Mod_jk + Tomcat and randomly we are getting
  the following error (http 503) Service Unavailable - *zero* *size*
  *object* The server is temporarily unable to service your request.
  Please try again later.
 
  Do you have any idea about why happens this error?
 
  Thanks a lot
  A.H
 
 
 
 
 
  
  - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For
  additional commands, e-mail: users-h...@tomcat.apache.org
 
 




-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: which JSP web hosting

2009-01-17 Thread Steve Ochani
Send reply to:  Tomcat Users List users@tomcat.apache.org
Date sent:  Sun, 18 Jan 2009 05:35:06 +0530 (IST)
From:   Sneha Manohar sneha_hams...@yahoo.co.in
Send reply to:  sneha_hams...@yahoo.co.in
Subject:which JSP web hosting
To: users@tomcat.apache.org

 Hello,
  
 I am developing web application using JSP,HTML,Java script with MS SQL
 as back end (using JDBC mechanism for connecing to data base) Can you
 please suggest me some web hosting ?   Regards Sneha Manohar Anoigma
 software services London


   Add more friends to your messenger and enjoy! Go to
   http://messenger.yahoo.com/invite/


This was recently posted as a suggestion:


http://www.eatj.com/


DISCLAIMER: I haven't used them or know how good/bad they are.



-Steve O.




-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Apache Web Server 2.2.11 compatibility with Tomcat 5.5.17?

2009-01-13 Thread Steve Ochani
Send reply to:  Tomcat Users List users@tomcat.apache.org
Subject:Apache Web Server 2.2.11 compatibility with Tomcat 5.5.17?
Date sent:  Tue, 13 Jan 2009 08:55:31 -0600
From:   Curry, Steve scu...@cfindustries.com
To: users@tomcat.apache.org

 Our current versions are as follows:
 Apache Web Server 2.0.58
 Apache Tomcat 5.5.17
 Java 1.4.2_11
 
 
 We would like to upgrade our Apache Web Server to 2.2.11. Could we
 keep the rest of the above the same?
 

Yes, but you will most likely have to recompile mod_jk if you are using it.

Also, while you are in the process of upgrading, I would recommend upgrading 
Java.


-Steve O.



 
 - Thanks in advance for your time,
 Steve
 
 
 The information contained in this communication is confidential, and
 intended solely for the use of the addressee.  It is the property of
 CF Industries, Inc.  Unauthorized use, disclosure, forwarding, or
 copying of this communication or any part thereof is strictly
 prohibited, and may be unlawful.  If you have received this
 communication in error, please notify the sender immediately by return
 e-mail, and destroy this communication and all copies thereof,
 including all attachments.



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat 5.5 error

2008-12-24 Thread Steve Ochani
  ) org.apache.jsp.index_jsp._jspService(index_jsp.java:50)
  org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
 javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
   sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl
  .java:39)
 
  sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcce
  ssorImpl.java:25)
 java.lang.reflect.Method.invoke(Method.java:597)
   org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:2
   44) java.security.AccessController.doPrivileged(Native Method)
   javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
 
   org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java
   :276)
 
   org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUti
   l.java:162)note
  The full stack trace of the root cause is available in the Apache
  Tomcat/5.5 logs.
 
 
   ***
   *
 
   but the funny part is that when I press enter again the page loads
  successfully. but anyways here is the result of what  have done
  according to your last email:
 
   1)  as you said , the log part was commented so uncommented it in
   the
  server.xml,
 
   2) restarted the server, accessed the
   http://localhost:8080/mms_testagain, but however the log directory
   is still empty , no files.
 
   i have attached both web.xml and content.xml files as you have
   asked me
  before!
 
   please let me know if it is easier to reinstall the apach from the
  website, I will delete this one and reinstall it.
 
   Thank you again for all your help
 
 
   Best Regards,
 
 
 
 
 
 
 
   On Tue, Dec 23, 2008 at 3:25 PM, Steve Ochani ocha...@ncc.edu
   wrote:
 
 On 22 Dec 2008 at 22:16, zia mohades wrote:
 
  hello steve,
 
 Hi,
 
 
 
  Thank you again. I have done the following
 
  1) restarted the server
 
  2) accessed the http://localhost:8080/mms_test again
 
  however once I tried to access the log at
  /usr/local/tomcat/logs , I realized that there is no log file
  for today, the last one is dated for
  localhost.2008-10-17.log. But the only thing that I have
  found for today's date( which doesn't show the correct time)
  is:
 
  -rw-r--r-- 1 root root 127530 2008-12-22 15:40 catalina.out
 
 
 Hmm, you may not have the AccessLogValve enabled in server.xml.
 
 I'm not sure where ubuntu keeps the tomcat config files (you may
 want to
  remove the ubuntu
 packaged one and download and use the one from apache.org) but in
 the
  tomcat server.xml
 look for
 
!-- Access log processes all example.
 Documentation at: /docs/config/valve.html --
 
Valve
className=org.apache.catalina.valves.AccessLogValve
  directory=logs
   prefix=localhost_access_log. suffix=.txt
  pattern=common
 resolveHosts=false/
 
 towards the end of the host element.
 
 If the valve is commented out then uncomment it, restart tomcat
 and try
  to access the
 webapp again.
 
 Check the logs and post the web.xml of your app, and any
 context.xml if
  you have them for
 that webapp.
 
 
 -Steve O.
 
 
 
 
 
  I have looked inside , there are bunch of errors for different
  dates, but again wasn't able to find any error for today's
  date(let me know if you want, I can copy paste the contents in
  the file). This is very strange, it seems like the tomcat is
  unable to register the errors
 
  Any ideas what's going on??? I have however using the default
  tomcat in the ubuntu, do i need to change something else, or
  reinstall another version??
 
  Thank you kindly for all your help.
 
  Daniel
 
 
 
 
 
  On Mon, Dec 22, 2008 at 9:49 PM, Steve Ochani ocha...@ncc.edu
  wrote:
 
   On 22 Dec 2008 at 18:28, zia mohades wrote:
  
   Send reply to:  Tomcat Users List users@tomcat.apache.org
   Date sent:  Mon, 22 Dec 2008 18:28:12 -0500 From:   zia
   mohades zia.si...@gmail.com To: Tomcat Users List
   users@tomcat.apache.org Subject:Re: Tomcat 5.5
   error
  
Hello steve,
   
thank you for your message! when I try to place mms_test in
/usr/local/tomcat/webapps, I get the same error:
   
HTTP Status 404 - /mms_test
   
Any Idea why?
   
  
   Try restarting tomcat, then try to access the webapp again
   and
  look at the
   logs.
  
  
  
  
  
thank you for your time!
   
   
On Mon, Dec 22, 2008 at 4:03 PM, Steve Ochani
  ocha...@ncc.edu
wrote:
   
 On 22 Dec 2008 at 15:43, zia mohades wrote:

 Send reply

Re: Tomcat 5.5 error

2008-12-23 Thread Steve Ochani
On 22 Dec 2008 at 22:16, zia mohades wrote:

 hello steve,

Hi,

 
 Thank you again. I have done the following
 
 1) restarted the server
 
 2) accessed the http://localhost:8080/mms_test again
 
 however once I tried to access the log at /usr/local/tomcat/logs ,
 I
 realized that there is no log file for today, the last one is dated
 for
 localhost.2008-10-17.log. But the only thing that I have found for
 today's
 date( which doesn't show the correct time) is:
 
 -rw-r--r-- 1 root root 127530 2008-12-22 15:40 catalina.out

Hmm, you may not have the AccessLogValve enabled in server.xml.

I'm not sure where ubuntu keeps the tomcat config files (you may want to remove 
the ubuntu 
packaged one and download and use the one from apache.org) but in the tomcat 
server.xml 
look for

!-- Access log processes all example.
 Documentation at: /docs/config/valve.html --

Valve className=org.apache.catalina.valves.AccessLogValve 
directory=logs  
   prefix=localhost_access_log. suffix=.txt pattern=common 
resolveHosts=false/

towards the end of the host element.

If the valve is commented out then uncomment it, restart tomcat and try to 
access the 
webapp again.

Check the logs and post the web.xml of your app, and any context.xml if you 
have them for 
that webapp.


-Steve O.



 
 I have looked inside , there are bunch of errors for different
 dates, but
 again wasn't able to find any error for today's date(let me know if
 you
 want, I can copy paste the contents in the file). This is very
 strange, it
 seems like the tomcat is unable to register the errors
 
 Any ideas what's going on??? I have however using the default tomcat
 in the
 ubuntu, do i need to change something else, or reinstall another
 version??
 
 Thank you kindly for all your help.
 
 Daniel
 
 
 
 
 
 On Mon, Dec 22, 2008 at 9:49 PM, Steve Ochani ocha...@ncc.edu
 wrote:
 
  On 22 Dec 2008 at 18:28, zia mohades wrote:
 
  Send reply to:  Tomcat Users List users@tomcat.apache.org
  Date sent:  Mon, 22 Dec 2008 18:28:12 -0500
  From:   zia mohades zia.si...@gmail.com
  To: Tomcat Users List users@tomcat.apache.org
  Subject:Re: Tomcat 5.5 error
 
   Hello steve,
  
   thank you for your message! when I try to place mms_test in
   /usr/local/tomcat/webapps, I get the same error:
  
   HTTP Status 404 - /mms_test
  
   Any Idea why?
  
 
  Try restarting tomcat, then try to access the webapp again and
 look at the
  logs.
 
 
 
 
 
   thank you for your time!
  
  
   On Mon, Dec 22, 2008 at 4:03 PM, Steve Ochani
 ocha...@ncc.edu
   wrote:
  
On 22 Dec 2008 at 15:43, zia mohades wrote:
   
Send reply to:  Tomcat Users List users@tomcat.apache.org
Date sent:  Mon, 22 Dec 2008 15:43:41 -0500
From:   zia mohades zia.si...@gmail.com
To: Tomcat Users List users@tomcat.apache.org
Subject:Tomcat 5.5 error
   
 hello all!

 I am currently using tomcat 5.5 on my labtop which is
 running
   on
 ubuntu.
 When I access http://localhost:8080/ , i get the default
 page,
   which
 is a
 good news( meaning tomcat is running) However when I try
 to
   place my
 own
 html folder(called mms_test) in
 /usr/local/tomcat/webapps/ROOT
   and
 then try
 to reload the page using  http://localhost:8080/mms_test ,
 i
   get
 this error:
 HTTP Status 404 - /mms_test
   
You can't put one webapp into another webapp.
   
Put mms_test in /usr/local/tomcat/webapps
   
   
-Steve O.
   
   
   
   
 --

 *type* Status report

 *message* */mms_test*

 *description* *The requested resource (/mms_test) is not
 available.*

 any idea why?


 your help is very much appreciated!

 best regards

 On Mon, Dec 22, 2008 at 11:08 AM, Filip Hanik - Dev Lists
 
 devli...@hanik.com wrote:

  here is the name you specify
 
  res-ref-namejdbc/my_jdbc_name/res-ref-name
 
  and here is your error
  Could not find datasource:jdbc/workout_logger
 
  as you can see, somewhere you have configured the string
 workout_logger,
  and that one doesn't exist
 
  Filip
 
 
  arturoguedez wrote:
 
  Hi!
 
  I have been reading how to setup datasources for Tomcat
   6.0.18
 in
 
 

  
 http://tomcat.apache.org/tomcat-6.0-doc/jndi-datasource-examples-how
 to.html
  and nothing I have done has allowed my web application
 to
   view
 the
  datasource i have created.
 
  Here are some snippets of my web.xml, and my server.xml
  In the web.xml
 
  resource-ref
 descriptionDB Connection/description
 res-ref-namejdbc/my_jdbc_name/res-ref-name
 res-typejavax.sql.DataSource/res-type
 res-authContainer/res-auth
  /resource-ref
 
  In server.xml
  I have tried

Re: Tomcat 5.5 error

2008-12-22 Thread Steve Ochani
On 22 Dec 2008 at 15:43, zia mohades wrote:

Send reply to:  Tomcat Users List users@tomcat.apache.org
Date sent:  Mon, 22 Dec 2008 15:43:41 -0500
From:   zia mohades zia.si...@gmail.com
To: Tomcat Users List users@tomcat.apache.org
Subject:Tomcat 5.5 error

 hello all!
 
 I am currently using tomcat 5.5 on my labtop which is running on
 ubuntu.
 When I access http://localhost:8080/ , i get the default page, which
 is a
 good news( meaning tomcat is running) However when I try to place my
 own
 html folder(called mms_test) in /usr/local/tomcat/webapps/ROOT and
 then try
 to reload the page using  http://localhost:8080/mms_test , i get
 this error:
 HTTP Status 404 - /mms_test

You can't put one webapp into another webapp.

Put mms_test in /usr/local/tomcat/webapps


-Steve O.




 --
 
 *type* Status report
 
 *message* */mms_test*
 
 *description* *The requested resource (/mms_test) is not
 available.*
 
 any idea why?
 
 
 your help is very much appreciated!
 
 best regards
 
 On Mon, Dec 22, 2008 at 11:08 AM, Filip Hanik - Dev Lists 
 devli...@hanik.com wrote:
 
  here is the name you specify
 
  res-ref-namejdbc/my_jdbc_name/res-ref-name
 
  and here is your error
  Could not find datasource:jdbc/workout_logger
 
  as you can see, somewhere you have configured the string
 workout_logger,
  and that one doesn't exist
 
  Filip
 
 
  arturoguedez wrote:
 
  Hi!
 
  I have been reading how to setup datasources for Tomcat 6.0.18
 in
 
 
 http://tomcat.apache.org/tomcat-6.0-doc/jndi-datasource-examples-how
 to.html
  and nothing I have done has allowed my web application to view
 the
  datasource i have created.
 
  Here are some snippets of my web.xml, and my server.xml
  In the web.xml
 
  resource-ref
 descriptionDB Connection/description
 res-ref-namejdbc/my_jdbc_name/res-ref-name
 res-typejavax.sql.DataSource/res-type
 res-authContainer/res-auth
  /resource-ref
 
  In server.xml
  I have tried to place the following snip it anywhere I saw in the
 docs it
  could belong to (ei, in the GlobalNamingResources, inside the
 Host tag, or
  inside the Context tag in all possible locations (under
  META-INF/context.xml, under
  $CATALINA_BASE/conf/[engine]/[host]/[path].xml)
  and I haven't been successful.
 
   Resource name=jdbc/my_jdbc_name auth=Container
  type=javax.sql.DataSource
maxActive=100 maxIdle=30 maxWait=1
username=user password=password
  driverClassName=com.mysql.jdbc.Driver
 
  
 url=jdbc:mysql://localhost:3306/database_name?autoReconnect=true/
 
 
  I am using Entity Managers to get my connections opened, here is
 the snip
  it
  of my persistence.xml
 
persistence-unit name=my_pu_name
  transaction-type=RESOURCE_LOCAL
 
   non-jta-data-sourcejdbc/my_jdbc_name/non-jta-data-source
 /persistence-unit
 
  Here is what I get in my tomcat logs:
 
  08/12/21 17:32:17 ERROR ceConnectionProvider: Could not find
 datasource:
  jdbc/workout_logger
  javax.naming.NameNotFoundException: Name jdbc is not bound in
 this Context
 at
 org.apache.naming.NamingContext.lookup(NamingContext.java:770)
 at
 org.apache.naming.NamingContext.lookup(NamingContext.java:153)
 at
 
 org.apache.naming.SelectorContext.lookup(SelectorContext.java:137)
 at
 javax.naming.InitialContext.lookup(InitialContext.java:392)
 at
 
 
 org.hibernate.connection.DatasourceConnectionProvider.configure(Data
 sourceConnectionProvider.java:75)
 at
 
 
 org.hibernate.connection.ConnectionProviderFactory.newConnectionProv
 ider(ConnectionProviderFactory.java:137)
 at
 
 
 org.hibernate.ejb.InjectionSettingsFactory.createConnectionProvider(
 InjectionSettingsFactory.java:29)
 at
 
 org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java
 :89)
 at
 
 org.hibernate.cfg.Configuration.buildSettings(Configuration.java:210
 1)
 at
 
 
 org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.ja
 va:1325)
 at
 
 
 org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(Annota
 tionConfiguration.java:867)
 at
 
 
 org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Co
 nfiguration.java:669)
 at
 
 
 org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(Hi
 bernatePersistence.java:126)
 at
 
 
 javax.persistence.Persistence.createEntityManagerFactory(Persistence
 .java:52)
  
 
 
 
  Does anybody know what I am doing wrong? Is there any way to
 check which
  resources Tomcat makes avaiable? I am having a really hard time
  understanding what I am doing wrong.
 
 
 
 
 
 
 -
  To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
  For additional commands, e-mail: users-h...@tomcat.apache.org
 
 
 



-
To unsubscribe, 

Re: Tomcat 5.5 error

2008-12-22 Thread Steve Ochani
On 22 Dec 2008 at 18:28, zia mohades wrote:

Send reply to:  Tomcat Users List users@tomcat.apache.org
Date sent:  Mon, 22 Dec 2008 18:28:12 -0500
From:   zia mohades zia.si...@gmail.com
To: Tomcat Users List users@tomcat.apache.org
Subject:Re: Tomcat 5.5 error

 Hello steve,
 
 thank you for your message! when I try to place mms_test in
 /usr/local/tomcat/webapps, I get the same error:
 
 HTTP Status 404 - /mms_test
 
 Any Idea why?
 

Try restarting tomcat, then try to access the webapp again and look at the logs.





 thank you for your time!
 
 
 On Mon, Dec 22, 2008 at 4:03 PM, Steve Ochani ocha...@ncc.edu
 wrote:
 
  On 22 Dec 2008 at 15:43, zia mohades wrote:
 
  Send reply to:  Tomcat Users List users@tomcat.apache.org
  Date sent:  Mon, 22 Dec 2008 15:43:41 -0500
  From:   zia mohades zia.si...@gmail.com
  To: Tomcat Users List users@tomcat.apache.org
  Subject:Tomcat 5.5 error
 
   hello all!
  
   I am currently using tomcat 5.5 on my labtop which is running
 on
   ubuntu.
   When I access http://localhost:8080/ , i get the default page,
 which
   is a
   good news( meaning tomcat is running) However when I try to
 place my
   own
   html folder(called mms_test) in /usr/local/tomcat/webapps/ROOT
 and
   then try
   to reload the page using  http://localhost:8080/mms_test , i
 get
   this error:
   HTTP Status 404 - /mms_test
 
  You can't put one webapp into another webapp.
 
  Put mms_test in /usr/local/tomcat/webapps
 
 
  -Steve O.
 
 
 
 
   --
  
   *type* Status report
  
   *message* */mms_test*
  
   *description* *The requested resource (/mms_test) is not
   available.*
  
   any idea why?
  
  
   your help is very much appreciated!
  
   best regards
  
   On Mon, Dec 22, 2008 at 11:08 AM, Filip Hanik - Dev Lists 
   devli...@hanik.com wrote:
  
here is the name you specify
   
res-ref-namejdbc/my_jdbc_name/res-ref-name
   
and here is your error
Could not find datasource:jdbc/workout_logger
   
as you can see, somewhere you have configured the string
   workout_logger,
and that one doesn't exist
   
Filip
   
   
arturoguedez wrote:
   
Hi!
   
I have been reading how to setup datasources for Tomcat
 6.0.18
   in
   
   
  
 http://tomcat.apache.org/tomcat-6.0-doc/jndi-datasource-examples-how
   to.html
and nothing I have done has allowed my web application to
 view
   the
datasource i have created.
   
Here are some snippets of my web.xml, and my server.xml
In the web.xml
   
resource-ref
   descriptionDB Connection/description
   res-ref-namejdbc/my_jdbc_name/res-ref-name
   res-typejavax.sql.DataSource/res-type
   res-authContainer/res-auth
/resource-ref
   
In server.xml
I have tried to place the following snip it anywhere I saw in
 the
   docs it
could belong to (ei, in the GlobalNamingResources, inside
 the
   Host tag, or
inside the Context tag in all possible locations (under
META-INF/context.xml, under
$CATALINA_BASE/conf/[engine]/[host]/[path].xml)
and I haven't been successful.
   
 Resource name=jdbc/my_jdbc_name auth=Container
type=javax.sql.DataSource
  maxActive=100 maxIdle=30 maxWait=1
  username=user password=password
driverClassName=com.mysql.jdbc.Driver
   
   
  
 url=jdbc:mysql://localhost:3306/database_name?autoReconnect=true/
   
   
I am using Entity Managers to get my connections opened, here
 is
   the snip
it
of my persistence.xml
   
  persistence-unit name=my_pu_name
transaction-type=RESOURCE_LOCAL
   

 non-jta-data-sourcejdbc/my_jdbc_name/non-jta-data-source
   /persistence-unit
   
Here is what I get in my tomcat logs:
   
08/12/21 17:32:17 ERROR ceConnectionProvider: Could not
 find
   datasource:
jdbc/workout_logger
javax.naming.NameNotFoundException: Name jdbc is not bound
 in
   this Context
   at
   org.apache.naming.NamingContext.lookup(NamingContext.java:770)
   at
   org.apache.naming.NamingContext.lookup(NamingContext.java:153)
   at
   
  
 org.apache.naming.SelectorContext.lookup(SelectorContext.java:137)
   at
   javax.naming.InitialContext.lookup(InitialContext.java:392)
   at
   
   
  
 org.hibernate.connection.DatasourceConnectionProvider.configure(Data
   sourceConnectionProvider.java:75)
   at
   
   
  
 org.hibernate.connection.ConnectionProviderFactory.newConnectionProv
   ider(ConnectionProviderFactory.java:137)
   at
   
   
  
 org.hibernate.ejb.InjectionSettingsFactory.createConnectionProvider(
   InjectionSettingsFactory.java:29)
   at
   
  
 org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java
   :89)
   at
   
  
 org.hibernate.cfg.Configuration.buildSettings(Configuration.java:210
   1

Re: Installation apache tomcat

2008-12-18 Thread Steve Ochani
Send reply to:  Tomcat Users List users@tomcat.apache.org
From:   Vida Luz Arista vida.ari...@ideay.net.ni
To: users@tomcat.apache.org
Subject:Installation apache tomcat
Date sent:  Thu, 18 Dec 2008 18:17:09 -0600

 Hi All
 
 
 
 I downloaded the version apache-tomcat-6.0.18-src, I follow step by
 step the instructions, when I executed ant download, the following
 erro occur
 

Why are you building from source?

Just use the binary.





 
 
 BUILD FAILED
 
 /opt/apache-tomcat-6.0.18-src/build.xml:701: The following error
 occurred while executing this line:
 
 /opt/apache-tomcat-6.0.18-src/build.xml:771: Compile failed; see the
 compiler error output for details.
 
 
 
 
 
 I need suggestion,
 
 
 
 Thanks in advanced
 
 
 
 Regards.
 
 



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: session de-serialization issue

2008-12-06 Thread Steve Ochani
Send reply to:  Tomcat Users List users@tomcat.apache.org
Date sent:  Fri, 05 Dec 2008 23:45:14 -0500 (EST)
Subject:RE: session de-serialization issue
From:   Tom Mader [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org

 Thank you Chuck!
 Does the sun-packaged RPM work on CentOS 5.2 ?
 or do i execute:
 ./j2sdk-1_4_2_19-linux-i586.bin -localinstall
 

I've used the sun provided rpm to install jdk 1.6 on centos 5.1 and 5.2 without 
any problems. I 
uninstalled redhat packaged java (gnu java) first.



-Steve O.



 
  5-Dec-08 7:02:14 PM org.apache.catalina.session.StandardManager
  doLoad SEVERE: IOException while loading persisted sessions:
  java.io.InvalidClassException: invalid field type for testClass in
  class ContainingClass
 at java.io.ObjectInputStream.readClassDescriptor(libgcj.so.7rh)
 
  You need to use a real JVM; gcj is inappropriate for serious work.
  Download and install a proper one from Sun and try it again.
 
   - Chuck
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED] For
 additional commands, e-mail: [EMAIL PROTECTED]
 



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



Re: Apache tomcat 6.0.14 installation on sun solaris 9 questions

2008-11-14 Thread Steve Ochani
On 14 Nov 2008 at 13:30, Hardegree, Scott (IT) wrote:


 Hello all,

 I just got put into the fire without hardly any documentation.
 I´ve got to do a TOMCAT 6.0.14
 (which is the enterprise standard)


According to whom?



 install on a sun solaris 9 server
 that is running apache2.2.6 and
 I need to know what version of the Java SDK to install and also what

The latest.

 version of the JK_connector

The latest.

 I need to install as well. (Did I mention that I´m a noob to the
 apache server environment and the
 apache tomcat web server environment as well?)


Read the running.txt file included with the tomcat distro download to learn how 
to run/start
tomcat.

For mod_jk there is a quick start guide at:

http://tomcat.apache.org/connectors-doc/generic_howto/quick.html


The connector doc. main page is at:


http://tomcat.apache.org/connectors-doc/



-Steve O.





 Thanks for your help,

 Scott Hardegree
 ITS Web Services
 Northrop Grumman IT
 334-466-2318





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



RE: Apache tomcat 6.0.14 installation on sun solaris 9 questions

2008-11-14 Thread Steve Ochani
On 14 Nov 2008 at 15:10, Hardegree, Scott (IT) wrote:

Subject:RE: Apache tomcat 6.0.14 installation on sun solaris 9 
questions
Date sent:  Fri, 14 Nov 2008 15:10:58 -0600
From:   Hardegree, Scott (IT) [EMAIL PROTECTED]
To: [EMAIL PROTECTED]

 It's our enterprise standard at the moment.  Cool, I'll run with
 those and check out the docs.  Thanks.  I appreciate the help.


You're welcome.


Please configure your mail client to obey the reply-to header and reply to the 
tomcat users list
so replies can be shared by all and archived for future searching.


-Steve O.




 Scott Hardegree
 ITS Web Services
 Northrop Grumman IT
 334-466-2318

 -Original Message-
 From: Steve Ochani [mailto:[EMAIL PROTECTED]
 Sent: Friday, November 14, 2008 2:20 PM
 To: Tomcat Users List
 Subject: Re: Apache tomcat 6.0.14 installation on sun solaris 9
 questions

 On 14 Nov 2008 at 13:30, Hardegree, Scott (IT) wrote:

 
  Hello all,
 
  I just got put into the fire without hardly any documentation.
  I´ve got to do a TOMCAT 6.0.14
  (which is the enterprise standard)


 According to whom?



  install on a sun solaris 9 server
  that is running apache2.2.6 and
  I need to know what version of the Java SDK to install and also
 what

 The latest.

  version of the JK_connector

 The latest.

  I need to install as well. (Did I mention that I´m a noob to the
  apache server environment and the
  apache tomcat web server environment as well?)
 

 Read the running.txt file included with the tomcat distro download
 to learn how to run/start
 tomcat.

 For mod_jk there is a quick start guide at:

 http://tomcat.apache.org/connectors-doc/generic_howto/quick.html


 The connector doc. main page is at:


 http://tomcat.apache.org/connectors-doc/



 -Steve O.





  Thanks for your help,
 
  Scott Hardegree
  ITS Web Services
  Northrop Grumman IT
  334-466-2318
 
 



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




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



Re: How can I hard code the IP address on a single server with multiple Tomcat instances.

2008-10-29 Thread Steve Ochani
Send reply to:  Tomcat Users List users@tomcat.apache.org
Date sent:  Wed, 29 Oct 2008 09:06:57 -0400
From:   dOE [EMAIL PROTECTED]
Send reply to:  [EMAIL PROTECTED]
To: Tomcat User-List users@tomcat.apache.org
Subject:How can I hard code the IP address on a single server with 
multiple
Tomcat instances.

 I have a server that I am hosting multiple Tomcat servers from, and
 the issue I am running into is... - I have multiple IP's bound to the
 servers interface, Tomcat _1 has port 8080 specified as its connector
 port.  The second Tomcat_2 has port 8180 set as its conector port in
 its server.xml, but regardless of these custom ports I am only able to
 reach Tomcat_1 through 8080, and 8180.  Is it possible to hard code
 the IP you want that particular instance to listen on?
 

address attribute in connector

http://tomcat.apache.org/tomcat-6.0-doc/config/http.html


-Steve O.



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



RE: environment variable

2008-10-20 Thread Steve Ochani
Send reply to:  Tomcat Users List users@tomcat.apache.org
From:   Martin Gainty [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Subject:RE: environment variable
Date sent:  Mon, 20 Oct 2008 11:09:37 -0400


 the only reference I could find while grepping on htmldoc was htmldocs

Use a search engine instead.

First link from google search result:

http://www.easysw.com/htmldoc/




 .. a html folder for CF MX war

 http://livedocs.adobe.com/coldfusion/7/htmldocs/wwhelp/wwhimpl/common/
 html/wwhelp.htm?context=ColdFusion_Documentationfile=0001.htm

 Could you tell us what htmldocs is .. a binary..shell script..a bat or
 cmd filejar?

 Just to get your TC installation operational is it possible comment
 out the line that calls htmldoc?

 anyone else?
 Martin
 __
 Disclaimer and confidentiality note
 Everything in this e-mail and any attachments relates to the official
 business of Sender. This transmission is of a confidential nature and
 Sender does not endorse distribution to any party other than intended
 recipient. Sender does not necessarily endorse content contained
 within this transmission.


  Date: Mon, 20 Oct 2008 14:02:48 +
  From: [EMAIL PROTECTED]
  Subject: Re: environment variable
  To: users@tomcat.apache.org
 
  Hi Andre,
 
  yes I put this executable file under bin/ directory. I did not come
  with tomcat.
 
  I am using the command in a java code. tomcat gives this error in
  catalina.out
 
  java.io.IOException: Cannot run program htmldoc: error=2, No such
  file or directory
 
  I thought this can be fixed in startup.sh (+ restart tomcat). What
  do you think?
 
  thanks
 
 
 
 
  --- On Mon, 20/10/08, André Warnier [EMAIL PROTECTED] wrote:
 
   From: André Warnier [EMAIL PROTECTED]
   Subject: Re: environment variable
   To: Tomcat Users List users@tomcat.apache.org
   Date: Monday, 20 October, 2008, 4:38 PM
   Melanie Pfefer wrote:
Hello
   
I got this error in tomcat:
   
Cannot run program htmldoc: error=2, No
   such file or directory
   
Is it a good practice to include this command in PATH
   and put the variable PATH in startup.sh script?
   
I am usin tomcat 6 with solaris 10
   
   Hi Melanie.
   The htmldoc program is not a part of Tomcat.
   It may be one of your Tomcat applications that calls it (or
   tries to).
   Where exactly in Tomcat do you get this error ?
   (a log file, which one, can you copy the error section ?)
  
  
   --
   --- To start a new topic, e-mail: users@tomcat.apache.org To
   unsubscribe, e-mail: [EMAIL PROTECTED] For
   additional commands, e-mail: [EMAIL PROTECTED]
 
  Send instant messages to your online friends
  http://uk.messenger.yahoo.com
 
  
  - To start a new topic, e-mail: users@tomcat.apache.org To
  unsubscribe, e-mail: [EMAIL PROTECTED] For
  additional commands, e-mail: [EMAIL PROTECTED]
 

 _ Want
 to read Hotmail messages in Outlook? The Wordsmiths show you how.
 http://windowslive.com/connect/post/wedowindowslive.spaces.live.com-Bl
 og-cns!20EE04FBC541789!167.entry?ocid=TXT_TAGLM_WL_hotmail_092008



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



Re: hello world

2008-09-19 Thread Steve Ochani
Send reply to:  Tomcat Users List users@tomcat.apache.org
Date sent:  Fri, 19 Sep 2008 09:09:11 +0200
From:   André Warnier [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Subject:Re: hello world


 Now rather than recriminating at aeternum, does anyone know how to
 track down said packager, so that maybe he could come here and see the
 errors of his ways, or at least explain his logic here ? Same as for
 Debian Tomcat5.5 itself, I haven't a clue where to start.


I remember a while back someone from Ubuntu posting on this list stating that 
if someone
needs help getting their tomcat package working that the person should ask in 
their forums.
So that might be a place to start looking for the packager or at least someone 
who can
answer why the packages are so ... non functional.


-Steve O.





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




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



Re: Tomcat 6 HTTP / HTTP SSL Connector Port - Configuration Verification

2008-09-19 Thread Steve Ochani
On 18 Sep 2008 at 14:29, Gauss wrote:


 Greetings,
 
  
 
 I am using Apache Tomcat 6.0 on Windows Server 2003.  I'm not
 serving any
 pure HTML pages - all pages are JSPs, so I plan to use Tomcat in a
 standalone mode.
 
  
 
 I want to use port 80 for HTTP and port 443 for HTTPS/SSL versus
 the
 out-of-the-box Tomcat ports of 8080 / 8443.
 
  
 
 I have updated the appropriate connectors in server.xml  to use
 80/443,
 however, I am having trouble accessing my java application using
 ports
 80/443 from any machine on my LAN other than localhost where Tomcat
 resides.
 
  
 
 I am trying to determine if the problem is being caused by
 incorrect
 connector configuration or another conflict (eg firewall, port
 blocking,
 etc.).


Most likely firewall.

Do a test by turning off windows firewall then trying to access the page(s) 
from another 
machine.

If it works turn the firewall back on and add the appropriate ports.


-Steve O.




 
  
 
 My Question:
 
  
 
 Are other steps required - beyond updating the port numbers in
 server.xml
 for the appropriate connectors - to configure Tomcat to use ports 80
 / 443?
 
  
 
 Thanks for your consideration and assistance.
 
 



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



Re: Beginner

2008-09-12 Thread Steve Ochani
On 12 Sep 2008 at 13:07, sathish kumar wrote:

Send reply to:  Tomcat Users List users@tomcat.apache.org
Date sent:  Fri, 12 Sep 2008 13:07:25 +0530
From:   sathish kumar [EMAIL PROTECTED]
To: users@tomcat.apache.org
Subject:Beginner

 Hi Everyone,
 I have joined the tomcat project. Could you point to me to some
 study
 material where I can understand the architecture of tomcat and how
 things
 work?
 

I'm not sure what you are exactly looking for but since Tomcat follows the Java 
Servlet 
Specifications it might help to read that.

Depending on which version of tomcat you are using (since each one implements a 
diff. 
version of the spec.)

http://java.sun.com/products/servlet/download.html


-Steve O.



 I have some knowledge on Java, JSP and Servlets.
 
 P.S: As this is the first time I am posting, please correct me If I
 have
 posted something wrong
 
 Thanks and Regards,
 Sathish Kumar
 



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



Re: Migrating to tomcat 6 gives formatted currency amounts problem

2008-09-10 Thread Steve Ochani
Send reply to:  Tomcat Users List users@tomcat.apache.org
Date sent:  Wed, 10 Sep 2008 17:27:51 +0200
From:   Willem Moors [EMAIL PROTECTED]
To: users@tomcat.apache.org
Subject:Migrating to tomcat 6 gives formatted currency amounts problem

 I'm transferring my application from a tomcat 5.5.26 server to tomcat
 6.0.18, and notice that my formatted currency amounts are not being
 properly displayed. Instead of a Pound (GBP) sign I get a question
 mark within a black diamond (the app works fine in 5.5.26).

 This can easily be emulated. Add the following lines to the
 HelloWorldExample.java of the servlet examples in Tomcat 5.5.26 and
 those of 6.0.18:

   java.text.NumberFormat currencyFormat=
 java.text.NumberFormat.getCurrencyInstance(Locale.UK);
   out.print(Formatted currency (GBP) :  + currencyFormat.format(
 1623540.00 ) );

 This will display the following :

 In Tomcat 6.0.18: Formatted currency (GBP) : ?1,623,540.00
 (I've emulated the question-mark within diamond here, I'll send you a
 screenshot if you want)

 Tomcat 5.5.26: Formatted currency (GBP) : £1,623,540.00
 (depending on your client you may or not may see the pound sign in
 front of the above amount)


Works fine for me, fresh install of 6.0.18, changed the HelloWorldExample.java 
and
recompiled.

Tried with both IE7 and FF 3.


Are you sure you don't have a httpd in front of tomcat?

I've seen simillar problem when using apache httpd.
I had to turn off the option

AddDefaultCharset


-Steve O.



 What can be the problem, is there some extra locale configuration that
 needs to be done ?

 Thanks for your answer,

 Regards,

 Willem




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



Re: Preventing File Access

2008-09-10 Thread Steve Ochani
Send reply to:  Tomcat Users List users@tomcat.apache.org
From:   Stephen Caine [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Subject:Preventing File Access
Date sent:  Tue, 09 Sep 2008 19:35:31 -0400

 All,
 
 Can someone point me to where I can read how to prevent/redirect 
 access to a particular file in the Tomcat/webapp context.  
 Specifically, all of my directories have the OS X DS_Store file.  I 
 would like to redirect users to an error page when this file is 
 directly accessed.
 
 Thank you,
 

In the future it would help if you mention what version of Tomcat you are using.

You will have to use a security constraint,

read these two threads for examples.


http://marc.info/?l=tomcat-userm=110311676821916w=2


http://marc.info/?l=tomcat-userm=98100806313397w=2



-Steve O.




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



Re: Migrating to tomcat 6 gives formatted currency amounts problem

2008-09-10 Thread Steve Ochani
Send reply to:  Tomcat Users List users@tomcat.apache.org
Date sent:  Wed, 10 Sep 2008 18:58:48 +0200
From:   Willem Moors [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Subject:Re: Migrating to tomcat 6 gives formatted currency amounts 
problem

 
  Works fine for me, fresh install of 6.0.18, changed the
  HelloWorldExample.java and
  recompiled.
 
  Tried with both IE7 and FF 3.
 
 
  Are you sure you don't have a httpd in front of tomcat?
 
  I've seen simillar problem when using apache httpd.
  I had to turn off the option
 
  AddDefaultCharset
 
 
  -Steve O.
 
 
 Thanks for your quick response. No there is no Apache Httpd in front
 of it (yet).  It's strange that you don't have the problem.
 
 The environment in which I'm running both tomcat 6.0.18 and tomcat
 5.5.26 is on Ubuntu 64-bit linux with this java version: java version
 1.6.0_07 Java(TM) SE Runtime Environment (build 1.6.0_07-b06) Java
 HotSpot(TM) 64-Bit Server VM (build 10.0-b23, mixed mode)
 

Hmm odd.

I tried it on my Redhat test server and worked fine also.

Is your tomcat 6 install a default/fresh install?

What browser are you using? What character encoding does it think the 
HelloWorldExample 
output is coming in as?


-Steve O.





 
 Regards,
 
 Willem
 



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



Re: Problem with Apache, Tomcat, mod_jk

2008-09-10 Thread Steve Ochani
Send reply to:  Tomcat Users List users@tomcat.apache.org
Date sent:  Wed, 10 Sep 2008 19:17:24 +0200
From:   Lars 'Levia' Wesselius [EMAIL PROTECTED]
To: users@tomcat.apache.org
Subject:Problem with Apache, Tomcat, mod_jk

 I have a problem using Tomcat 6.0.18, latest Apache, latest mod_jk and
 Java SE 6.

Latest is a relative term. At the moment latest apache webserver version is 
2.2.9.

 I have it set up so I can access the main Tomcat page..but
 when I go to the manager from there, it shows a (apache) 404 error.
 Can someone help me with this problem? I have the configuration files
 ready for those who wants to have a look at them (mod_jk.conf (auto
 generated), httpd.conf (where I include mod_jk.conf), server.xml and
 workers.properties). You can find the config files here:
 http//excessivedarkness.org/conf/

You forgot the : in the url.

That has to be the biggest mod_jk.conf I've ever seen. You may want to start 
with something 
simple.

What did the logs show after you tried to access the manager app via httpd?

Did you try the url as

http://hostname/manager/html/

?


-Steve O.




 
 Thanks
 
 Lars
 



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



Re: Running Tomcat with JRE?

2008-09-09 Thread Steve Ochani
On 9 Sep 2008 at 12:41, Bai Shen wrote:

 Looking at the tomcat site, it says that I can run Tomcat 6 with a
 JRE
 instead of a full JDK.  So I downloaded Tomcat 6.0.18 and I have
 JAVA_HOME
 pointing at JRE 1.6.0_07.  However, when I go to start tomcat, it
 tells me
 that the JAVA_HOME variable needs to point at a JDK, not a JRE.
 
 Am I missing something or is this a leftover from the previous
 versions?
 TIA.
 

set your

JRE_HOME

not JAVA_HOME


-Steve O.



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



Re: [NEWBIE]Tomcat 6.0.16-reboot required when changing the port number

2008-09-07 Thread Steve Ochani

 1.I´ve updated server.xml to change the default port from 8080 to
 80, however, I´ve noted that restarting the server leaves apache
 tomcat listening on both ports 8080 and 80, until the server is
 rebooted.


Are you stating that you have to reboot twice?

Are you sure that it's tomcat that is still listening on port 8080?

Try the shutdown script then run the command

netstat -anp | grep 8080

as root. If nothing comes up then that is a good thing.

You may end up having to post your server.xml is the problem persists.


 Scripts executed
 shutdown.sh
 startup.sh

 OS: RedHat Fedora 9 running Linux 2.6.25

 2. It´s also noted that exporting the following line, makes the
 server crash (i.e. Gnome does not boot up and some libraries seem be
 corrupted during startup) export LD_ASSUME_KERNEL=2.4.1 Why?

Most likely because you are running kernel 2.6 and trying to force some apps to 
think you are
running 2.4. This will cause libc problems.

Why are you doing this? Tomcat doesn't require you to do this.



-Steve O.



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



Re: question

2008-09-03 Thread Steve Ochani
On 3 Sep 2008 at 10:36, Jojo Nadir wrote:

 hi how are you,
 
 I have a probleme in the installation process of tomcat 5.5 under
 Windows 98 (I have an old computer), it always get me a message
 containing the following files with some number like this : jvm.dll
 and 1329 prunsrv.c

I seriously doubt java 1.5 or higher runs on windows 98 thus tomcat won't run 
on windows 98.


-Steve O.




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



Re: tomcat 6 won't generate mod_jk.conf

2008-08-22 Thread Steve Ochani
On 22 Aug 2008 at 5:34, cornercuttin wrote:

Send reply to:  Tomcat Users List users@tomcat.apache.org
Date sent:  Fri, 22 Aug 2008 05:34:24 -0700 (PDT)
From:   cornercuttin [EMAIL PROTECTED]
To: users@tomcat.apache.org
Subject:tomcat 6 won't generate mod_jk.conf

 
 perhaps someone can help me here.  
 
 i am trying to get tomcat 6 to talk to apache 2.2.8 (fedora core 5),
 and i
 can't get very far.
 
 firstly, tomcat 6 doesn't come with a workers.properties file.
 
 secondly, when i start tomcat via the command ./startup.sh -jkconf
 or
 ./startup.sh jkconf, i cannot get tomcat to create a mod_jk.conf
 in the
 conf directory.  tomcat runs, but no file is created.
 

What docs. say to do that?


 is there something that i am missing here?  i've never needed tomcat
 until
 now, so i am new at this (tomcat), but proficient enough in apache. 
 but all
 of the documentation i am finding online is saying that the
 mod_jk.conf file
 is necessary and that tomcat will create it, but i cannot seem to
 get it to
 work.

You don't need it. What you need is a few lines in your httpd.conf such as


LoadModule jk_module modules/mod_jk.so

(to load the module)

then a few lines to configure mod_jk and some jkmount directives such as:

# Where to find workers.properties
JkWorkersFile /opt/apache-tomcat-6.0.14/conf/workers.properties
# Where to put jk logs
# Update this path to match your logs directory location (put mod_jk.log next 
to access_log)
JkLogFile /var/log/httpd/mod_jk.log
# Set the jk log level [debug/error/info]
JkLogLevelerror
# Select the log format
JkLogStampFormat [%a %b %d %H:%M:%S %Y] 

# Send /examples/ and .jsp requests to worker named worker1 (ajp13)
JkMount  /examples/* worker1

JkMount  /*.jsp worker1


Your workers.properties can be simple as


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




-Steve O.



 
 thanks for any help.
 -- 
 View this message in context:
 http://www.nabble.com/tomcat-6-won%27t-generate-mod_jk.conf-tp191062
 93p19106293.html
 Sent from the Tomcat - User mailing list archive at Nabble.com.
 
 
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 



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



Re: Tomcat within Eclipse

2008-08-11 Thread Steve Ochani
Date sent:  Mon, 11 Aug 2008 15:50:56 +0200
From:   Johnny Kewl [EMAIL PROTECTED]
Subject:Re: Tomcat within Eclipse
To: Tomcat Users List users@tomcat.apache.org
Send reply to:  Tomcat Users List users@tomcat.apache.org

 
 Oh no... I think for some reason the bin scripts are missing in TC
 6
 

I'm using the zip version of 6.0.18 on my dev. machine and it comes with 
startup.sh/.bat and 
shutdown.sh/.bat, they are located in the bin directory.



 Listen SAM... just for now... go get
 
 apache-tomcat-5.5.25.zip
 and
 apache-tomcat-5.5.25.exe
 
 Here
 
 http://archive.apache.org/dist/tomcat/tomcat-5/v5.5.25/bin/apache-tomc
 at-5.5.25.zip
 http://archive.apache.org/dist/tomcat/tomcat-5/v5.5.25/bin/apache-tomc
 at-5.5.25.exe
 
 Install the EXE if you on XP
 
 I know you not going to have issues there with TC...
 And its very likely that any older plugins in Eclipse will be happy
 with it...
 
 TC6 is still quite new... get that going then later play with TC 6...
 
 Then... if you still having problems... tell me what plugin you using
 in eclipse, and I'll get the thing and try it...
 
 I think you stumbling into little problems that are screwing you
 
 And I got to tell you that if an IDE needs to actually know where TC's
 server.xml file is... its crap. Forget about the UserDatabase error
 you getting... you getting it because the IDE and TC are not playing
 nicely.
 
 You should be doing little more than just telling the IDE where TC
 is...
 
 BUT if that plugin is old... it will not do TC 6
 I think you getting smacked around and its unfortunate because it
 actually is the easiest thing in the world to do...
 
 If you dont care what IDE you use then also look at NetBeans...
 Thats just a run setup thing and you done!... its good as well... it
 has a wizard to setup tomcat.
 
 Good luck
 
 
 - Original Message - 
 From: Sam Wun [EMAIL PROTECTED]
 To: Tomcat Users List users@tomcat.apache.org
 Sent: Monday, August 11, 2008 3:05 PM
 Subject: Re: Tomcat within Eclipse
 
 
  Hi,
 
  I have the server.xml path defined in Eclipse (3.4):
  C:\Program Files\Apache Software Foundation\Tomcat 6.0
  Where is the startup.bat file? I can't find this batch file.
 
  Thanks
 
 
  On Mon, Aug 11, 2008 at 3:27 PM, Johnny Kewl [EMAIL PROTECTED]
  wrote:
 
  - Original Message - From: Sam Wun [EMAIL PROTECTED]
  To: Tomcat Users List users@tomcat.apache.org Sent: Monday,
  August 11, 2008 6:57 AM Subject: Tomcat within Eclipse
 
 
  Hi,
 
  Can anyone tell me how to resolve the followoing exception?
  and how do I know whether tomcat service is really running.
 
  11/08/2008 14:47:47 org.apache.catalina.core.AprLifecycleListener
  init INFO: The APR based Apache Tomcat Native library which allows
  optimal performance in production environments was not found on
  the java.library.path: C:\Program
 
  Files\Java\jre1.6.0_07\bin;.;C:\Windows\Sun\Java\bin;C:\Windows\sy
  stem32;C:\Windows;C:/Program Files/Java/jre6/bin/client;C:/Program
 
  Files/Java/jre6/bin;C:\Windows\system32;C:\Windows;C:\Windows\Syst
  em32\Wbem;d:\ant171\bin;D:\apache-maven-2.0.9\bin;C:\Program
  Files\Nmap 11/08/2008 14:47:47
  org.apache.coyote.http11.Http11Protocol init INFO: Initializing
  Coyote HTTP/1.1 on http-8080 11/08/2008 14:47:47
  org.apache.catalina.startup.Catalina load INFO: Initialization
  processed in 502 ms 11/08/2008 14:47:47
  org.apache.naming.NamingContext lookup WARNING: Unexpected
  exception resolving reference java.io.IOException: Cannot rename
  original file to C:\Program Files\Apache Software
  Foundation\Tomcat 6.0\conf\tomcat-users.xml.old at
  org.apache.catalina.users.MemoryUserDatabase.save(MemoryUserDataba
  se.java:582) at
  org.apache.catalina.users.MemoryUserDatabaseFactory.getObjectInsta
  nce(MemoryUserDatabaseFactory.java:104) at
  org.apache.naming.factory.ResourceFactory.getObjectInstance(Resour
  ceFactory.java:140) at
  javax.naming.spi.NamingManager.getObjectInstance(Unknown Source)
  at org.apache.naming.NamingContext.lookup(NamingContext.java:793)
  at org.apache.naming.NamingContext.lookup(NamingContext.java:140)
  at
  org.apache.naming.NamingContextBindingsEnumeration.nextElementInte
  rnal(NamingContextBindingsEnumeration.java:113) at
  org.apache.naming.NamingContextBindingsEnumeration.next(NamingCont
  extBindingsEnumeration.java:71) at
  org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.create
  MBeans(GlobalResourcesLifecycleListener.java:137) at
  org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.create
  MBeans(GlobalResourcesLifecycleListener.java:109) at
  org.apache.catalina.mbeans.GlobalResourcesLifecycleListener.lifecy
  cleEvent(GlobalResourcesLifecycleListener.java:81) at
  org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifec
  ycleSupport.java:117) at
  org.apache.catalina.core.StandardServer.start(StandardServer.java:
  703) at
  

Re: Tomcat 6 classpath issue

2008-08-06 Thread Steve Ochani
Date sent:  Wed, 06 Aug 2008 08:36:48 -0700 (PDT)
From:   wskent [EMAIL PROTECTED]
Subject:Tomcat 6 classpath issue
To: users@tomcat.apache.org
Send reply to:  Tomcat Users List users@tomcat.apache.org

 
 I have the following jars in my web projects \web\WEB-INF\lib
 dirdectory - log4j-1.2.13.jar, mysql-connector-java-5.0.5.jar,
 servlet-api-2.4.jar, standard-1.1.2.jar
 

Bad idea to have 2.4 api jar, IMO.


 When I retrieve the classpath using - 
  String classPath = System.getProperty(java.class.path,.);
  LOG.debug(Classpath:  + classPath);
 I get the following - 
 Classpath:
 C:\Tools\Tomcat6/bin/bootstrap.jar;C:\Tools\jdk1.5/lib/tools.jar
 
 Any ideas why the jars in WEB-INF\lib are not showing up in my
 classpath?

Multiple classloaders. The webapp classloader is different from other 
classloaders.

http://tomcat.apache.org/tomcat-6.0-doc/class-loader-howto.html



-Steve O.



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



Re: Tomcat 6 classpath issue

2008-08-06 Thread Steve Ochani
Date sent:  Wed, 06 Aug 2008 11:25:23 -0700 (PDT)
From:   wskent [EMAIL PROTECTED]
Subject:Re: Tomcat 6 classpath issue
To: users@tomcat.apache.org
Send reply to:  Tomcat Users List users@tomcat.apache.org

 
 I looked at the Tomcat HowTo, so what do I use in place of
 System.getProperty(java.class.path,.);
 

Try this:


ClassLoader sysClassLoader = getClass().getClassLoader();

URL[] urls = ((URLClassLoader)sysClassLoader).getURLs();

for(int i=0; i urls.length; i++)
{
out.println(urls[i].getFile() + br\n);
}   




-Steve O.




 Ageed on not including the 2.4 jar!
 -- 
 View this message in context:
 http://www.nabble.com/Tomcat-6-classpath-issue-tp18853872p18856933.htm
 l Sent from the Tomcat - User mailing list archive at Nabble.com.
 
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe,
 e-mail: [EMAIL PROTECTED] For additional commands,
 e-mail: [EMAIL PROTECTED]
 



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



Re: List remote files in Servlet

2008-08-05 Thread Steve Ochani
Date sent:  Tue, 05 Aug 2008 15:45:26 -0600
From:   Nathan Thatcher [EMAIL PROTECTED]
Subject:List remote files in Servlet
To: users@tomcat.apache.org
Send reply to:  Tomcat Users List users@tomcat.apache.org

 I am experiencing a little problem with Tomcat 6.0 and I haven't been
 able to determine the cause or solution. In a standalone Java
 application I can list the files from a remote directory like this:
 
 File[] list = new File(//192.168.0.1/shared_dir).listFiles();
 
 When I execute the same code in a servlet running on the same machine
 the call to listFiles() always returns null. Is this a security
 problem? I am not seeing any errors in the logs and I haven't changed
 any of the default security settings for Tomcat of Java. Since I don't
 know what the problem is I have had a hard time tracking down a
 solution online. Any idea why listFiles() doesn't work in a servlet?
 

The most likely problem is that Tomcat is running under a user that doesn't 
have permission 
to that share.


-Steve O.




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



Re: Tomcat on Windows Server 2008 fails to stop completely

2008-07-30 Thread Steve Ochani
On 30 Jul 2008 at 14:49, Matt Cosentino wrote:

 I'm setting up a new server with Tomcat 6.0.16 running on Windows
 Server 2008 with version 1.1.14 of the native DLL.  When I stop the
 service it seems to stop, but the process does not end.  I have to
 then end the process manually before I can start the service again. 
 I've narrowed it down to the native DLL, since removing it seems to
 fix the problem.  I've used the native DLL under previous versions of
 Windows, so is there some incompatibility between the native DLL and
 Windows Server 2008?
 

I haven't used Tomcat on server 2008 but I don't see why there would be a 
problem.

Have you looked in the event logs to see if there is a logged error?


-Steve O.



 
 
 



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



Re: Integrated Windows Authentication in Tomcat

2008-07-22 Thread Steve Ochani
Date sent:  Tue, 22 Jul 2008 15:52:34 +0200
From:   Faris Ahmed [EMAIL PROTECTED]
Subject:Integrated Windows Authentication in Tomcat
To: users@tomcat.apache.org
Send reply to:  Tomcat Users List users@tomcat.apache.org

 Hi,



 I want to use Microsoft Integrated Windows Authentication based on
 Kerberos in Tomcat using Microsoft IE browsers.

 I found this: http://appliedcrypto.com/files/tomcat_spnego.pdf



 Do you know of any other free solutions? Are there better
 alternatives?


I haven't used this but it seems to be popular, JCIFS:


http://jcifs.samba.org/src/docs/ntlmhttpauth.html


-Steve O.



 Has anyone tried this before? If yes, is it working 100%? Are there
 problems?



 Mit freundlichen Grüßen / Kind regards

 Faris Ahmed | Development Project Manager | Infor | Tel: +49 (0) 6151
 866 7814 | Fax: +49 (0) 6151 866 7088 | mailto:[EMAIL PROTECTED]

 Postanschrift: Infor Global Solutions Darmstadt GmbH | Landwehrstr.
 50, 64293 Darmstadt | Sitz der Gesellschaft ist Darmstadt |
 Handelsregister: Amtsgericht Darmstadt, HRB 5556 | Geschäftsführer:
 Jochen Kasper,Uwe Richter







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



RE: Question about the connector Apache x Tomcat

2008-07-22 Thread Steve Ochani
On 22 Jul 2008 at 14:21, Tan, Liao wrote:

 Forgot to say it is HP-UX, and in this link indicated, we didnt
 find...any other hints?

Build from src. It is easy to do, just need apxs, c compiler and make installed.


 Txs
 Ingrid



 -Original Message-
 From: Steve Ochani [mailto:[EMAIL PROTECTED]
 Sent: Monday, July 21, 2008 6:51 PM
 To: Tomcat Users List
 Subject: RE: Question about the connector Apache x Tomcat


 On 21 Jul 2008 at 17:59, Tan, Liao wrote:

  Hi, Steve and all
 
   Then what if we get the mod_jk for our apache (2.2.2.8) (we are
  avoinding doing the src)? Do u know where(link) can I find?

 Depends on what OS you are using but some binary releases can be
 downloaded from:

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



 -Steve O.



 
  Thanks
  Ingrid
 
 
 
  -Original Message-
  From: Steve Ochani [mailto:[EMAIL PROTECTED]
  Sent: Monday, July 21, 2008 5:52 PM
  To: Tomcat Users List
  Subject: Re: Question about the connector Apache x Tomcat
 
 
  On 21 Jul 2008 at 17:32, Tan, Liao wrote:
 
  Date sent:  Mon, 21 Jul 2008 17:32:38 -0300
  From:   Tan, Liao  [EMAIL PROTECTED]
  Subject:Question about the connector Apache x Tomcat
  To: users@tomcat.apache.org
  Send reply to:  Tomcat Users List users@tomcat.apache.org
 
   Hi, All:
 
  Hi,
 
 
My team has installed Apache 2.x and configured the connector
  with
   Tomcat 4.1.x and when started the apache, it gives the
 following
   error:
  
   /usr/local/apache2/bin ./apachectl start
   httpd: Syntax error on line 471 of
   /usr/local/apache2/etc/httpd.conf: Syntax error on line 1 of
   /usr/local/apache2/etc/extra/bobj_apache_tomcat.conf: Cannot
  load
   /usr/local/apache2/lib/modules/mod_jk.sl into server:
 Unresolved
   external
   /usr/local/apache2/bin 
  
   Does anybody know what´s going on this time?
 
  Do you have mod_jk installed in /usr/local/apache2/lib/modules/
 ?
 
  It might be the wrong version (it needs to be built for your
 version
  of apache httpd), I would
  recommend just building it from src yourself.
 
 
 
  -Steve O.
 
 
 
 
   Thank you
   Ingrid
  
  
  
 
 
   -
   To start a new topic, e-mail: users@tomcat.apache.org
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
 
 
 
 
 
  -
  To start a new topic, e-mail: users@tomcat.apache.org
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
  -
  To start a new topic, e-mail: users@tomcat.apache.org
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 



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


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




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



Re: Question about the connector Apache x Tomcat

2008-07-21 Thread Steve Ochani
On 21 Jul 2008 at 17:32, Tan, Liao wrote:

Date sent:  Mon, 21 Jul 2008 17:32:38 -0300
From:   Tan, Liao  [EMAIL PROTECTED]
Subject:Question about the connector Apache x Tomcat
To: users@tomcat.apache.org
Send reply to:  Tomcat Users List users@tomcat.apache.org

 Hi, All:

Hi,


  My team has installed Apache 2.x and configured the connector with
 Tomcat 4.1.x and when started the apache, it gives the following
 error:

 /usr/local/apache2/bin ./apachectl start
 httpd: Syntax error on line 471 of
 /usr/local/apache2/etc/httpd.conf: Syntax error on line 1 of
 /usr/local/apache2/etc/extra/bobj_apache_tomcat.conf: Cannot load
 /usr/local/apache2/lib/modules/mod_jk.sl into server: Unresolved
 external
 /usr/local/apache2/bin 

 Does anybody know what´s going on this time?

Do you have mod_jk installed in /usr/local/apache2/lib/modules/ ?

It might be the wrong version (it needs to be built for your version of apache 
httpd), I would
recommend just building it from src yourself.



-Steve O.




 Thank you
 Ingrid


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




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



RE: Question about the connector Apache x Tomcat

2008-07-21 Thread Steve Ochani
On 21 Jul 2008 at 17:59, Tan, Liao wrote:

 Hi, Steve and all

  Then what if we get the mod_jk for our apache (2.2.2.8) (we are
 avoinding doing the src)? Do u know where(link) can I find?

Depends on what OS you are using but some binary releases can be downloaded 
from:

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



-Steve O.




 Thanks
 Ingrid



 -Original Message-
 From: Steve Ochani [mailto:[EMAIL PROTECTED]
 Sent: Monday, July 21, 2008 5:52 PM
 To: Tomcat Users List
 Subject: Re: Question about the connector Apache x Tomcat


 On 21 Jul 2008 at 17:32, Tan, Liao wrote:

 Date sent:Mon, 21 Jul 2008 17:32:38 -0300
 From: Tan, Liao  [EMAIL PROTECTED]
 Subject:  Question about the connector Apache x Tomcat
 To:   users@tomcat.apache.org
 Send reply to:Tomcat Users List users@tomcat.apache.org

  Hi, All:

 Hi,


   My team has installed Apache 2.x and configured the connector
 with
  Tomcat 4.1.x and when started the apache, it gives the following
  error:
 
  /usr/local/apache2/bin ./apachectl start
  httpd: Syntax error on line 471 of
  /usr/local/apache2/etc/httpd.conf: Syntax error on line 1 of
  /usr/local/apache2/etc/extra/bobj_apache_tomcat.conf: Cannot
 load
  /usr/local/apache2/lib/modules/mod_jk.sl into server: Unresolved
  external
  /usr/local/apache2/bin 
 
  Does anybody know what´s going on this time?

 Do you have mod_jk installed in /usr/local/apache2/lib/modules/ ?

 It might be the wrong version (it needs to be built for your version
 of apache httpd), I would
 recommend just building it from src yourself.



 -Steve O.




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



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


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




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



Re: DataSourceRealm documentation

2008-07-21 Thread Steve Ochani
On 21 Jul 2008 at 17:37, Carol Cheung wrote:

Date sent:  Mon, 21 Jul 2008 17:37:29 -0400
From:   Carol Cheung [EMAIL PROTECTED]
Subject:DataSourceRealm documentation
To: Tomcat Users List users@tomcat.apache.org
Send reply to:  Tomcat Users List users@tomcat.apache.org

 Hi,
 
 I'm reading about DataSourceRealm at 
 http://tomcat.apache.org/tomcat-5.5-doc/realm-howto.html
 and step 2 under Quick Start is confusing.
 
 It says Configure a database username and password for use by
 Tomcat ...
 What does this mean? What should the username and password be and
 where 
 should they be located so that they are configured for use by
 Tomcat?
 

It means make a username/password (account) on the database server. The 
complete 
sentence is:

Configure a database username and password for use by Tomcat, that has at 
least read 
only access to the tables described above. (Tomcat will never attempt to write 
to these 
tables.)



-Steve O.




 There's no username or password specified in the example Realm
 element 
 under the DataSourceRealm section.
 
 Thanks,
 Carol
 
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 



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



Re: Both www.apache.org and tomcat.apache.org are down

2008-07-17 Thread Steve Ochani
On 17 Jul 2008 at 14:05, Bajbutovic, Zoran wrote:

Date sent:  Thu, 17 Jul 2008 14:05:38 -0400
From:   Bajbutovic, Zoran [EMAIL PROTECTED]
Subject:Both www.apache.org and tomcat.apache.org are down
To: Tomcat Users List users@tomcat.apache.org
Send reply to:  Tomcat Users List users@tomcat.apache.org

 Hi all, 
 
 Both www.apache.org and tomcat.apache.org have been down for some
 time. 
 Is anyone there to fix this? This is not particularly encouraging
 for us


Works fine for me.



-Steve O.




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



Re: Tomcat 5.0.27 multiple instances in Solaris

2008-07-17 Thread Steve Ochani
Date sent:  Thu, 17 Jul 2008 15:30:33 -0700 (PDT)
From:   sridharmnj [EMAIL PROTECTED]
Subject:Tomcat 5.0.27 multiple instances in Solaris
To: users@tomcat.apache.org
Send reply to:  Tomcat Users List users@tomcat.apache.org

 
 Hi,
 
 I have a working tomcat5.0.27 in /export/ae/tomcat5.027 folder. (os is
 solaris) Now I am creating one more tomcat instance. So, I created one
 directory Instance1 in /export/ae/tomcat5.0.27 folder and copied
 conf, logs, temp, webapps, work folders. I also modified port nubmers
 8080, 8005, 8009 to 9080, 9005, 9009. I tried to start Instance1 using
 the following command. /export/ae/tomcat5.0.27/bin startup.sh
 -Dcatalina.base=/export/ae/tomcat5.0.27/Instance1.
 

Copy the entire /export/ae/tomcat5.027 dir. to another separate dir, not a 
subdir. and then 
change the ports and use its startup.sh.


-Steve O.




 

 But, its starting the old server (8080) only. Could any one please
 guide me in right direction, how to start and stop the new instance. I
 appreciate your help.
 
 Thanks,
 Sridhar
 
 -- 
 View this message in context:
 http://www.nabble.com/Tomcat-5.0.27-multiple-instances-in-Solaris-tp18
 519218p18519218.html Sent from the Tomcat - User mailing list archive
 at Nabble.com.
 
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe,
 e-mail: [EMAIL PROTECTED] For additional commands,
 e-mail: [EMAIL PROTECTED]
 



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



Re: mod_jk configuration issue

2008-07-16 Thread Steve Ochani
On 16 Jul 2008 at 13:41, Vinod Nagarajan wrote:

Date sent:  Wed, 16 Jul 2008 13:41:09 -0700
From:   Vinod Nagarajan [EMAIL PROTECTED]
Subject:mod_jk configuration issue
To: users@tomcat.apache.org
Send reply to:  Tomcat Users List users@tomcat.apache.org

 Hi,
 
 I am kind of new to tomcat and apache.
 
 I have configured Apache2 ( on port 80) and Tomcat 6 (on port 8080)
 on my
 linux machine (ubuntu 8.04) and both work fine on its own.
 
 I am trying to get the Apache forward the jsp requests to tomcat and
 get it
 serviced by tomcat.
 
 I just went through the steps from the below link:
 
 http://tomcat.apache.org/tomcat-3.3-doc/mod_jk-howto.html#s72
 

Those docs are ancient, they are for tomcat 3.3.


Try using this:

http://tomcat.apache.org/connectors-doc/generic_howto/quick.html

and

http://tomcat.apache.org/connectors-doc/



you will also need a jkmount for jsps like so:

JkMount  /*.jsp worker1



-Steve O.




 The option to create the mod_jk.conf file by *starting the tomcat
 with
 jkconf option* doesn't work for me.
 
 It doesn't display anything in the error log. Can anyone help me get
 through
 this.
 
 Thanks,
 Vinod
 



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



Re: Reuse Windows Logon credentials

2008-07-14 Thread Steve Ochani
Date sent:  Mon, 14 Jul 2008 17:54:02 +0200
From:   Faris Ahmed [EMAIL PROTECTED]
Subject:Reuse Windows Logon credentials
To: users@tomcat.apache.org
Send reply to:  Tomcat Users List users@tomcat.apache.org

 Dear list,
 
 I would like use Tomcat instead of IIS in this environment:
 
 
 
 1)  Client computer running Windows Internet Explorer.
 
 2)  Web server computer running a web application in Microsoft IIS
 6.0. 
 
 3)  Database server computer running Microsoft SQL server with
 Windows Authentication.
 
 4)  All three computers are members in one Windows 2003 domain.
 
 
 
 User interaction:
 
 1)  User logs on to the client computer with a Microsoft domain
 user account and starts IE.
 
 2)  User browses to the webapp and is immediately logged in as the
 domain user in step 1 (no extra login takes place on the server).
 
 3)  The webapp access Microsoft SQL server on a third computer and
 reuses the Windows credentials to login to SQL server.
 
 
 
 In a pure Windows environment only one logon is necessary on the
 client computer. The user security credentials are reused on the web
 server and the database server without extra login.
 
 
 
 Question: Can I do the same with Tomcat replacing IIS? This means:
 
 
 
 1)  Can Tomcat accept\understand the Windows credentials from the
 client computer?
 
 2)  Can the web app inside Tomcat reuse the credentials and access
 SQL server using JDBC and Windows authentication.
 
 
 
 Note:
 
 The JCIFS (http://jcifs.samba.org/src/docs/ntlmhttpauth.html) is not
 enough for my environment because I only get the user name in Tomcat. 
 

Not sure about issue #2 but JCIFS is exactly for issue #1. You will never get 
access to 
someones un-hashed password.



-Steve O.





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



Re: Servlet.jar

2008-07-14 Thread Steve Ochani
Date sent:  Mon, 14 Jul 2008 17:34:22 +0100
From:   Stephen Nelson-Smith [EMAIL PROTECTED]
Subject:Servlet.jar
To: Tomcat Users List users@tomcat.apache.org
Send reply to:  Tomcat Users List users@tomcat.apache.org

 Hi,
 
 I have an application which makes use of servlet.jar, as found in  the
 tomcat 4 release.  Under tomcat 6 this isn't anywhere to be found, so
 my app doesn't work unless I copy the tomcat 4 jar over.  Is there a
 tomcat 6 equivalent?
 

It is lib/servlet-api.jar



-Steve O.




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



Re: What are the consequences of putting shared web resources in the common folder?

2008-07-09 Thread Steve Ochani
On 9 Jul 2008 at 11:57, Edward Song wrote:


 What are the consequences of putting shared web resources in the common 
 folder vs. the
 shared folder?

 I´m not sure how to articulate the consequences of putting shared resources 
 in the common
 folder.
 The following below is in the documentation, but is it enough to force 
 another QA cycle on a
 server running multiple web apps?

 Common - This class loader contains additional classes that are made visible 
 to both
 Tomcat internal classes and to all web applications. Normally, application 
 classes should
 NOT be placed here.

 Thanks in advance for anyone participating in this thread.



Why would you want to put shared web resources in the common folder if the 
resources are
just being used by the webapps?




-Steve O.



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



Re: What are the consequences of putting shared web resources in the common folder?

2008-07-09 Thread Steve Ochani
Date sent:  Wed, 09 Jul 2008 12:42:34 -0400
From:   David kerber [EMAIL PROTECTED]
Subject:Re: What are the consequences of putting shared web 
resources in
the
common folder?
To: Tomcat Users List users@tomcat.apache.org
Send reply to:  Tomcat Users List users@tomcat.apache.org

 Steve Ochani wrote:
  On 9 Jul 2008 at 11:57, Edward Song wrote:
 
 
  What are the consequences of putting shared web resources in the
  common folder vs. the shared folder?
 
  I´m not sure how to articulate the consequences of putting shared
  resources in the common folder. The following below is in the
  documentation, but is it enough to force another QA cycle on a
  server running multiple web apps?
 
  Common - This class loader contains additional classes that are
  made visible to both Tomcat internal classes and to all web
  applications. Normally, application classes should NOT be placed
  here.
 
  Thanks in advance for anyone participating in this thread.
 
 
 
 
  Why would you want to put shared web resources in the common
  folder if the resources are just being used by the webapps?
 

 One thing I've run into is a database driver that is used by multiple
 webapps (on windows).  If it's in each app's own lib, I get an error
 that the driver .dll is already loaded.  Moving it into the common
 folder prevents this from happening.  If there was a folder that was
 shared only among web apps, and not with tomcat itself, that would
 work as well.


I've used the shared dir. for that which is what the OP is comparing against.



-Steve O.




 D



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




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



Re: Blocking port 8005 in TomCat in Deamon Mode

2008-07-09 Thread Steve Ochani
On 9 Jul 2008 at 17:03, Suma Rakesh wrote:

  Hi,
  
  I am starting Tomcat through one of my C++ programs on
  windows 2003 server. I am using Bootsrap
  org.apache.catalina.startup.Bootstrap.main() method and
  pass 'Start' and 'Stop' as arguments. 

Hmm OK, I would have used the startup.bat and shutdown.bat.

  
  The documentation  read mentioned that this will start
  tomcat in daemon mode. However, tomcat still listens on
  port 8005 (another document mentioned that if started in
  deamon mode Tomcat will not listen on port 8005) 

What doc is that?

 and I am
  able to send SHUTDOWN command on this porton local machine.
  I am not able to do a telnet on port 8005 and send SHUTDOWN
  command from remote machine though.
  

By default the port is only open on loopback interface.


  I would like to block accepting commands on 8005 from local
  machine as well. Has anyone tried this out? Do you have any
  pointers ?

I've never tried it but I guess a firewall could.

The simple thing you can do is edit conf/server.xml and change the actual 
shutdown 
command.



-Steve O.





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



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



Re: HTTP Status 404 - /examples/servlets/servlet/HelloWorldExample

2008-07-08 Thread Steve Ochani
Date sent:  Tue, 08 Jul 2008 16:45:35 +0200
From:   Ljuba Veselinova [EMAIL PROTECTED]
Subject:HTTP Status 404 - 
/examples/servlets/servlet/HelloWorldExample
To: Tomcat Users List users@tomcat.apache.org
Send reply to:  Tomcat Users List users@tomcat.apache.org

 I trying to get Tomcat 5.5.17 to work with Apache 2.2.4 on a windows
 XP machine. The ultimate goal is to install ArcIMS 9.2 on this machien
 but I am not there yet. For right now, I'm having connectivity issues
 between Tomcat and Apache.
 
 I am following the instructions from
 http://support.esri.com/index.cfm?fa=knowledgebase.techArticles.articl
 eShowd=31524
 
 The Apache seems to be succesfully installed but when I try to run the
 HelloWorldExample, I get the following error
 
 ===Error Screen Starts Here
 HTTP Status 404 - /examples/servlets/servlet/HelloWorldExample
 
 --
 --
 
 type Status report
 
 message /examples/servlets/servlet/HelloWorldExample
 
 description The requested resource
 (/examples/servlets/servlet/HelloWorldExample) is not available.
 
 
 --
 --
 
 Apache Tomcat/5.5.17
 Error Screen Ends here
 
 Please advise on how correct this. Any pointer to relevant
 documentation will be greatly appreciated as well.
 

The url is incorrect for Tomcat 5.5.x versions. The HelloWorld example is at

/servlets-examples/servlet/HelloWorldExample


The url provided is from Tomcat 6.x version.

Any urls you see above should be verified first by going through Tomcat first:

http://localhost:8080

then navigate through to where you need to go.


These are the docs. for Tomcat 5.5

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



-Steve O.





 Thanks,
 Ljuba
 
 -- 
 ==
 = Ljuba Veselinova Dept of Linguistics, Stockholm University,
 S-10691 Stockholm, Sweden Phone: +46-8-16-2332 URL :
 http://www.ling.su.se/staff/ljuba/
 
 We learn by going where we want to go.
  Julia Cameron
 ==
 ==
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe,
 e-mail: [EMAIL PROTECTED] For additional commands,
 e-mail: [EMAIL PROTECTED]
 



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



Re: HTTP Status 404 - /examples/servlets/servlet/HelloWorldExample

2008-07-08 Thread Steve Ochani
Date sent:  Tue, 08 Jul 2008 17:41:18 +0200
From:   Ljuba Veselinova [EMAIL PROTECTED]
Subject:Re: HTTP Status 404 - 
/examples/servlets/servlet/HelloWorldExample
To: Tomcat Users List users@tomcat.apache.org
Send reply to:  Tomcat Users List users@tomcat.apache.org

 Thanks for that!
 
 Apparently, I am having a redirect problem from Apache. Any ideas on
 how to correct this?
 

Did you modify the JkMount directive and restart Apache httpd?


 I did a crude search on the documentation but nothing turned up.

The docs. for the connector are at:

http://tomcat.apache.org/connectors-doc/


This will help also:


http://tomcat.apache.org/connectors-doc/generic_howto/quick.html


Remember to modify the JkMount directive as needed.


-Steve O.




 
 Thanks again,
 Ljuba
 
 On Tue, Jul 8, 2008 at 5:23 PM, Steve Ochani [EMAIL PROTECTED] wrote:
  Date sent:  Tue, 08 Jul 2008 16:45:35 +0200  From: 
  Ljuba Veselinova [EMAIL PROTECTED]  Subject:   
 HTTP Status 404 - /examples/servlets/servlet/HelloWorldExample 
 To: Tomcat Users List users@tomcat.apache.org 
 Send reply to:  Tomcat Users List users@tomcat.apache.org 
  I trying to get Tomcat 5.5.17 to work with Apache 2.2.4 on a
 windows  XP machine. The ultimate goal is to install ArcIMS 9.2 on
 this machien  but I am not there yet. For right now, I'm having
 connectivity issues  between Tomcat and Apache.   I am following
 the instructions from 
 http://support.esri.com/index.cfm?fa=knowledgebase.techArticles.articl
  eShowd=31524   The Apache seems to be succesfully installed
 but when I try to run the  HelloWorldExample, I get the following
 error   ===Error Screen Starts Here  HTTP Status 404 -
 /examples/servlets/servlet/HelloWorldExample  
 --
  --   type Status report   message
 /examples/servlets/servlet/HelloWorldExample   description The
 requested resource  (/examples/servlets/servlet/HelloWorldExample)
 is not available.   
 --
  --   Apache Tomcat/5.5.17  Error Screen
 Ends here   Please advise on how correct this. Any pointer to
 relevant  documentation will be greatly appreciated as well.   
 The url is incorrect for Tomcat 5.5.x versions. The HelloWorld example
 is at   /servlets-examples/servlet/HelloWorldExampleThe url
 provided is from Tomcat 6.x version.   Any urls you see above should
 be verified first by going through Tomcat first:  
 http://localhost:8080   then navigate through to where you need to
 go.These are the docs. for Tomcat 5.5  
 http://tomcat.apache.org/tomcat-5.5-doc/index.html -Steve O. 
  Thanks,  Ljuba   -- 
 ==
  = Ljuba Veselinova Dept of Linguistics, Stockholm University,
  S-10691 Stockholm, Sweden Phone: +46-8-16-2332 URL : 
 http://www.ling.su.se/staff/ljuba/   We learn by going where we
 want to go.   Julia Cameron 
 ==
  ==  
 -
  To start a new topic, e-mail: users@tomcat.apache.org To
 unsubscribe,  e-mail: [EMAIL PROTECTED] For
 additional commands,  e-mail: [EMAIL PROTECTED]
 
 -
  To start a new topic, e-mail: users@tomcat.apache.org  To
 unsubscribe, e-mail: [EMAIL PROTECTED]  For
 additional commands, e-mail: [EMAIL PROTECTED]  
 
 
 
 -- 
 ==
 = Ljuba Veselinova Dept of Linguistics, Stockholm University,
 S-10691 Stockholm, Sweden Phone: +46-8-16-2332 URL :
 http://www.ling.su.se/staff/ljuba/
 
 We learn by going where we want to go.
  Julia Cameron
 ==
 ==
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe,
 e-mail: [EMAIL PROTECTED] For additional commands,
 e-mail: [EMAIL PROTECTED]
 



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



Re: HTTP Status 404 - /examples/servlets/servlet/HelloWorldExample

2008-07-08 Thread Steve Ochani
Date sent:  Tue, 08 Jul 2008 18:22:21 +0200
From:   Ljuba Veselinova [EMAIL PROTECTED]
Subject:Re: HTTP Status 404 - 
/examples/servlets/servlet/HelloWorldExample
To: Tomcat Users List users@tomcat.apache.org
Send reply to:  Tomcat Users List users@tomcat.apache.org

 On Tue, Jul 8, 2008 at 5:47 PM, Steve Ochani [EMAIL PROTECTED] wrote:
  Date sent:  Tue, 08 Jul 2008 17:41:18 +0200  From: 
  Ljuba Veselinova [EMAIL PROTECTED]  Subject:   
 Re: HTTP Status 404 - /examples/servlets/servlet/HelloWorldExample
  To: Tomcat Users List users@tomcat.apache.org
  Send reply to:  Tomcat Users List users@tomcat.apache.org
   Thanks for that!   Apparently, I am having a redirect problem
 from Apache. Any ideas on  how to correct this?Did you
 modify the JkMount directive and restart Apache httpd? 
 
 Restarting did the trick!
 
 I just can't thank you enough. I will now write to ESRI to ask them to
 correct their instructions.
 

Good luck dealing with ESRI, I have to deal with ArcGIS at my part time job and 
ESRI 
support isn't exactly helpful.


-Steve O.




 Ljuba
  I did a crude search on the documentation but nothing turned up.
 
  The docs. for the connector are at:
 
  http://tomcat.apache.org/connectors-doc/
 
 
  This will help also:
 
 
  http://tomcat.apache.org/connectors-doc/generic_howto/quick.html
 
 
  Remember to modify the JkMount directive as needed.
 
 
  -Steve O.
 
 
 
 
 
  Thanks again,
  Ljuba
 
  On Tue, Jul 8, 2008 at 5:23 PM, Steve Ochani [EMAIL PROTECTED]
  wrote:
   Date sent:  Tue, 08 Jul 2008 16:45:35 +0200  From:
   Ljuba Veselinova [EMAIL PROTECTED]  Subject:
  HTTP Status 404 - /examples/servlets/servlet/HelloWorldExample
  
  To: Tomcat Users List users@tomcat.apache.org
   Send reply to:  Tomcat Users List
  users@tomcat.apache.org 
   I trying to get Tomcat 5.5.17 to work with Apache 2.2.4 on a
  windows  XP machine. The ultimate goal is to install ArcIMS 9.2
  on this machien  but I am not there yet. For right now, I'm
  having connectivity issues  between Tomcat and Apache.   I am
  following the instructions from 
  http://support.esri.com/index.cfm?fa=knowledgebase.techArticles.art
  icl
   eShowd=31524   The Apache seems to be succesfully installed
  but when I try to run the  HelloWorldExample, I get the following
  error   ===Error Screen Starts Here  HTTP Status 404
  - /examples/servlets/servlet/HelloWorldExample  
  ---
  ---
   --   type Status report   message
  /examples/servlets/servlet/HelloWorldExample   description The
  requested resource 
  (/examples/servlets/servlet/HelloWorldExample) is not available. 
   
  ---
  ---
   --   Apache Tomcat/5.5.17  Error
   Screen
  Ends here   Please advise on how correct this. Any pointer to
  relevant  documentation will be greatly appreciated as well.  
   The url is incorrect for Tomcat 5.5.x versions. The HelloWorld
  example is at   /servlets-examples/servlet/HelloWorldExample  
   The url provided is from Tomcat 6.x version.   Any urls you see
  above should be verified first by going through Tomcat first:  
  http://localhost:8080   then navigate through to where you need
  to go.These are the docs. for Tomcat 5.5  
  http://tomcat.apache.org/tomcat-5.5-doc/index.html -Steve
  O. 
   Thanks,  Ljuba   -- 
  ===
  ===
   = Ljuba Veselinova Dept of Linguistics, Stockholm
   University, S-10691 Stockholm, Sweden Phone: +46-8-16-2332 URL :
   
  http://www.ling.su.se/staff/ljuba/   We learn by going where
  we want to go.   Julia Cameron 
  ===
  ===
   ==  
  ---
  --
   To start a new topic, e-mail: users@tomcat.apache.org To
  unsubscribe,  e-mail: [EMAIL PROTECTED] For
  additional commands,  e-mail: [EMAIL PROTECTED]   
  
  
  ---
  --
   To start a new topic, e-mail: users@tomcat.apache.org  To
  unsubscribe, e-mail: [EMAIL PROTECTED]  For
  additional commands, e-mail: [EMAIL PROTECTED]  
 
 
 
  --
  ===
  === = Ljuba Veselinova Dept of Linguistics, Stockholm
  University, S-10691 Stockholm, Sweden Phone: +46-8-16-2332 URL :
  http://www.ling.su.se/staff/ljuba/
 
  We learn by going where we want to go.
   Julia Cameron
  ===
  === ==
 
  ---
  -- To start a new topic, e-mail: users

Re: mod_jk connection error?

2008-07-07 Thread Steve Ochani
On 7 Jul 2008 at 17:33, Tom Cat wrote:

Date sent:  Mon, 07 Jul 2008 17:33:50 -0400
From:   Tom Cat [EMAIL PROTECTED]
Subject:mod_jk connection error?
To: users@tomcat.apache.org
Send reply to:  Tomcat Users List users@tomcat.apache.org

 Hello,
 
 I am new to Tomcat and apache. I have successfully install both
 the
 apache webserver and tomcat, and now wish to link them together.
 Here
 is my system info:
 
 mod_jk version 1.2.26
 apache version 2.2.9
 tomcat verison 6.0.16
 Ubuntu Linux kernel 2.6.24-19-generic
 
 I can successfully view html files on http://localhost, and Tomcat
 works fine for http://localhost:8080, but when I try to view
 http://localhost/index.jsp I get a 500 Internal Server Error.
 
 Here are some related files:
 
 
 -
 workers.properties--
 
 
 -
 
 workers.tomcat_home=/usr/local/tomcat
 
 workers.java_home=/usr/lib/jvm/java-6-openjdk/
 
 ps=/
 
 worker.list=ajp12, ajp13
 
 worker.ajp12.port=8007
 worker.ajp12.host=localhost
 worker.ajp12.type=ajp12
 
 worker.ajp12.lbfactor=1
 
 worker.ajp13.port=8009
 worker.ajp13.host=localhost
 worker.ajp13.type=ajp13
 
 worker.ajp13.lbfactor=1
 
 worker.loadbalancer.type=lb
 worker.loadbalancer.balance_workers=ajp12, ajp13
 
 
 worker.inprocess.type=jni
 
 worker.inprocess.class_path=$(workers.tomcat_home)$(ps)lib$(ps)tomca
 t.jar
 
 worker.inprocess.cmd_line=start
 
 #
 # The JVM that we are about to use
 #
 # This is for Java2
 #
 # Windows
 worker.inprocess.jvm_lib=$(workers.java_home)$(ps)jre$(ps)bin$(ps)cl
 assic$(ps)jvm.dll
 # IBM JDK1.3
 #worker.inprocess.jvm_lib=$(workers.java_home)$(ps)jre$(ps)bin$(ps)c
 lassic$(ps)libjvm.so
 # Unix - Sun VM or blackdown
 #worker.inprocess.jvm_lib=$(workers.java_home)$(ps)jre$(ps)lib$(ps)i
 386$(ps)classic$(ps)libjvm.so
 
 #
 # And this is for jdk1.1.X
 #
 #worker.inprocess.jvm_lib=$(workers.java_home)$(ps)bin$(ps)javai.dll
 
 
 #
 # Setting the place for the stdout and stderr of tomcat
 #
 worker.inprocess.stdout=$(workers.tomcat_home)$(ps)logs$(ps)inproces
 s.stdout
 worker.inprocess.stderr=$(workers.tomcat_home)$(ps)logs$(ps)inproces
 s.stderr
 
 #
 # Setting the tomcat.home Java property
 #
 #worker.inprocess.sysprops=tomcat.home=$(workers.tomcat_home)
 
 #
 # Java system properties
 #
 # worker.inprocess.sysprops=java.compiler=NONE
 # worker.inprocess.sysprops=myprop=mypropvalue
 
 #
 # Additional path components.
 #
 # worker.inprocess.ld_path=d:$(ps)SQLLIB$(ps)bin
 #
 
 
 
 relevant httpd.conf
 section-
 --
 
 
 
 LoadModule jk_module /usr/local/apache2/modules/mod_jk.so
 JkWorkersFile /usr/local/tomcat/conf/workers.properties
 JkShmFile /usr/local/apache2/logs/mod_jk.shm
 JkLogFile /usr/local/apache2/logs/mod_jk.log
 JkLogLevel info
 JkLogStampFormat [%a %b %d %H:%M:%S %Y] 
 JkMount /*.jsp ajp12
 
 
 --
 mod_jk.log--
 --
 
 --
 [Mon Jul 07 17:02:40 2008] [13093:3083507904] [warn]
 jk_map_validate_property::jk_map.c (410): The attribute
 'worker.inprocess.class_path' is deprecated - please check the
 documentation for the correct replacement.
 [Mon Jul 07 17:02:40 2008] [13093:3083507904] [warn]
 jk_map_validate_property::jk_map.c (410): The attribute
 'worker.inprocess.cmd_line' is deprecated - please check the
 documentation for the correct replacement.
 [Mon Jul 07 17:02:40 2008] [13093:3083507904] [warn]
 jk_map_validate_property::jk_map.c (410): The attribute
 'worker.inprocess.jvm_lib' is deprecated - please check the
 documentation for the correct replacement.
 [Mon Jul 07 17:02:40 2008] [13093:3083507904] [warn]
 jk_map_validate_property::jk_map.c (410): The attribute
 'worker.inprocess.stdout' is deprecated - please check the
 documentation for the correct replacement.
 [Mon Jul 07 17:02:40 2008] [13093:3083507904] [warn]
 jk_map_validate_property::jk_map.c (410): The attribute
 'worker.inprocess.stderr' is deprecated - please check the
 documentation for the correct replacement.
 [Mon Jul 07 17:02:40 2008] [13093:3083507904] [info]
 init_jk::mod_jk.c
 (2825): mod_jk/1.2.26 initialized
 [Mon Jul 07 17:02:53 2008] [29808:3083507904] [info]
 jk_open_socket::jk_connect.c (566): connect to 127.0.0.1:8007
 failed
 (errno=111)
 [Mon Jul 07 17:02:53 2008] [29808:3083507904] 

Re: Tomcat 5.0 rolling stdout

2008-07-07 Thread Steve Ochani
On 8 Jul 2008 at 9:39, Puneet C Mathur wrote:

Date sent:  Tue, 08 Jul 2008 09:39:10 +1000
From:   Puneet C Mathur [EMAIL PROTECTED]
Subject:Tomcat 5.0 rolling stdout
To: users@tomcat.apache.org
Send reply to:  Tomcat Users List users@tomcat.apache.org

  Hi
 
 The stdout log file on a tomcat server is getting pretty full do to

due not do


 the
 amount of data being written out by a third party application.

Tell the makers of the third party app to use a logging mechanism.

 
 Is there a way to have stdout.log rolling every day/limited by size,
 rather
 than having one big file? (using log4j.properties or something).

Review this thread:


http://marc.info/?l=tomcat-userm=120725811918281w=2



-Steve O.




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



RE: /tomcat/mod_jk2.so: symbol ap_MD5Init: referenced symbol not found.

2008-07-03 Thread Steve Ochani
On 3 Jul 2008 at 15:17, Linda Lee wrote:

Date sent:  Thu, 03 Jul 2008 15:17:15 -0600
From:   Linda Lee [EMAIL PROTECTED]
Subject:RE: /tomcat/mod_jk2.so: symbol ap_MD5Init: referenced symbol 
not 
found.
To: Tomcat Users List users@tomcat.apache.org
Send reply to:  Tomcat Users List users@tomcat.apache.org

 Hi
  
 Thank you for your suggestion.  I am using
 mod_jk-1.2.26-httd-2.0.61.so from Tomcat 5.5.25 and I got the below
 error:
  
 -- error
 API module structure 'jk_module' in file
 /tomcat/mod_jk-1.2.26-httpd-2.0.61.so is garbled - expected
 signature 41503232 but saw 41503230 - perhaps this is not an Apache
 module DSO, or was compiled for a different Apache version?
 - end error
 The above error is a result of the below statement:
 LoadModule jk_module /tomcat/mod_jk-1.2.26-httpd-2.0.61.so

You are using the wrong version of mod_jk. The one you are trying to use is 
built for apache 
httpd 2.0.x and you are using httpd 2.2.6.

You need to build mod_jk from source or download the binary version of mod_jk 
pre-built for 
httpd 2.2.6.



-Steve O.



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



Re: Help configuring Tomcat 5.5.15 with Apache 2.0.58

2008-07-02 Thread Steve Ochani
Date sent:  Wed, 02 Jul 2008 12:32:58 +0200
From:   Ljuba Veselinova [EMAIL PROTECTED]
Subject:Help configuring Tomcat 5.5.15 with Apache 2.0.58
To: users@tomcat.apache.org
Send reply to:  Tomcat Users List users@tomcat.apache.org

 Hi,
 
 I need to configure Tomcat 5.5.15 with Apache 2.0.58 so that I can
 then install ArcIMS 9.2.
 
 
 I am following the instructions in
 http://support.esri.com/index.cfm?fa=knowledgebase.techarticles.articl
 eShowd=31218,
 
 It says there that the HelloWorld example should be working before
 ArcIMS 9.2 is installed
 
 http:// mymachinename /examples/servlets/servlet/HelloWorldExample
 
 I cannot get HelloWorld to work at the address
 
 http://ling-map.ling.su.se/examples/servlets/servlet/HelloWorldExample
 
 However, it does work at
 
 http://ling-map.ling.su.se/servlets-examples/servlet/HelloWorldExample
 

The ArcIMS instructions say to use
(from the url you provided)

http://server_name/servlets-examples/servlet/HelloWorldExample

not the first url you are trying. I'm not sure where you got the first url from.



-Steve O.




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



Re: How to turn off tomcat daemon?

2008-07-02 Thread Steve Ochani
On 2 Jul 2008 at 11:29, kjwchu wrote:

Date sent:  Wed, 02 Jul 2008 11:29:36 -0700 (PDT)
From:   kjwchu [EMAIL PROTECTED]
Subject:How to turn off tomcat daemon?
To: users@tomcat.apache.org
Send reply to:  Tomcat Users List users@tomcat.apache.org

 
 I ran tomcat as a  daemon via the command below:
 ./bin/jsvc -cp ./bin/bootstrap.jar -outfile ./logs/catalina.out
 -errfile
 ./logs/catalina.err org.apache.catalina.startup.Bootstrap
 
 How to turn if off?
 

from the Tomcat5.sh in jsvc.tar.gz:

$DAEMON_HOME/src/native/unix/jsvc \
-stop \
-pidfile $PID_FILE \
org.apache.catalina.startup.Bootstrap


-Steve O.



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



Re: Apache and Tomcat

2008-06-25 Thread Steve Ochani
Date sent:  Wed, 25 Jun 2008 17:39:10 +0200
From:   Stuart Caldwell [EMAIL PROTECTED]
Subject:Apache and Tomcat
To: users@tomcat.apache.org
Send reply to:  Tomcat Users List users@tomcat.apache.org

 Hi,



 I know this may sound naïve but is it possible to have tomcat and
 apache running off the same port - 8080.


No, TCP only allows one port per service.


 I have iis running on port 80 and do not have another server to
 install apache and tomcat.


Then you can front end tomcat with iis.


http://tomcat.apache.org/connectors-doc/reference/iis.html




-Steve O.





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



RE: User Authentication - IE doesn't recognize mime type (pdf,xls)of files in protected directory

2008-06-25 Thread Steve Ochani
On 25 Jun 2008 at 13:45, Ed Marshall wrote:

Date sent:  Wed, 25 Jun 2008 13:45:42 -0500
From:   Ed Marshall [EMAIL PROTECTED]
Subject:RE: User Authentication - IE doesn't recognize mime 
type (pdf,xls)of
files in protected directory
To: Tomcat Users List users@tomcat.apache.org
Send reply to:  Tomcat Users List users@tomcat.apache.org

 Thanks so much Chuck.  Eliminating the no-cache headers did the
 job.
 
 An interesting footnote: Adding the following line to Context.xml
 within
 META-INF worked as expected.
  Valve
 className=org.apache.catalina.authenticator.FormAuthenticator
 disableProxyCaching=false /
 
 However, when I copy the same code from META-INF/Context.xml to
 conf/server.xml (of course adding docBase and path) and then
 delete
 META-INF/Context.xml, the Valve has no affect on the Headers.  
 
 I expected the results to have been the same.  Just curious.
 

Did you restart tomcat?


BTW if using Tomcat 5 or 6 it isn't recommended to put context info into 
server.xml

http://tomcat.apache.org/tomcat-6.0-doc/config/printer/context.html

http://tomcat.apache.org/tomcat-5.5-doc/config/context.html



-Steve O.






 Thanks again for pointing me in the right direction!
 Ed
 
   
 
 -Original Message-
 From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, June 24, 2008 6:47 PM
 To: Tomcat Users List
 Subject: RE: User Authentication - IE doesn't recognize mime type
 (pdf,xls)of files in protected directory
 
  From: Ed Marshall [mailto:[EMAIL PROTECTED]
  Subject: RE: User Authentication - IE doesn't recognize mime
  type (pdf,xls)of files in protected directory
 
  But when I'm already logged in, IE will never display the pdf.
  So it seems that Tomcat is behaving differently in each case.
 
 It's not Tomcat - it's Microsoft's less than brilliant
 interpretation of
 the HTTP RFC, coupled with IE's erratic implementation.  You need to
 get
 rid of the no-cache headers; this should let IE open the file in
 situ.
 
  - 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 start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 The information contained in this e-mail is confidential information
 intended only for the use of the individual or entity named above.
 If the reader of this message is not the intended recipient, you are
 hereby notified that any dissemination, distribution, copy or use of
 this e-mail is strictly prohibited.  If you have received this
 e-mail in error, please notify us immediately at the e-mail address
 above and delete the original message.  Thank you.
 
 
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 



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



RE: Redhat patch level cheatsheet?

2008-06-19 Thread Steve Ochani
Date sent:  Thu, 19 Jun 2008 19:57:17 +1000
From:   Ben Stringer [EMAIL PROTECTED]
Subject:RE: Redhat patch level cheatsheet?
To: Tomcat Users List users@tomcat.apache.org
Send reply to:  Tomcat Users List users@tomcat.apache.org

 Hi Brandie,
 
 My understanding is that Redhat maintain the version numbering that
 they receive from upstream, and the only patching they are doing is
 repackaging the tomcat releases to fit in with the Redhat distro (ie.
 moving files around to fit their packaging structure).
 
 So if you download (from instance) tomcat5-5.0.28-2jpp_5rh.rpm from
 RHN, you are getting the Apache Tomcat 5.0.28 release. Redhat use (and
 sponsor) jpackage.org, so you may find more information there.
 
 If my understand is incorrect (and it may be) I'd like to know - this
 has always been my belief.

Almost but not 100% correct. Redhat backports updates/fixes and then 
repackages 
programs. If you have for ex. Redhat 5 and it comes with program version 5.x.y 
that program 
will always be at 5 for the life cycle of Redhat 5 but they will take fixes and 
patches from 
program versions 5 and 6 and backport them to their version of 5.

This, to my knowledge, is only done for fixes/security updates, not for new 
features in the 
programs.



-Steve O.




 
 Cheers, Ben
 
 On Wed, 2008-06-18 at 12:50 -0500, [EMAIL PROTECTED]
 wrote:  RHN = RedHat Network, which is where you find their errata. 
  They may document it just fine, I just can't find their document. :)
  I've  tried asking a RedHat sales rep, also, and I'm still coming up
 empty-handed.  I was hoping asking the Apache mailing lists might
 turn up something.   Thanks!  Brandie-Original
 Message-  From: Christopher Schultz
 [mailto:[EMAIL PROTECTED]  Sent: Wednesday, June 18, 2008
 11:36 AM  To: Tomcat Users List  Subject: Re: Redhat patch level
 cheatsheet?   -BEGIN PGP SIGNED MESSAGE-  Hash: SHA1  
 Brandie,   [EMAIL PROTECTED] wrote:  | Anyone have a
 link to a cheatsheet that translates RedHat Enterprise's  |
 backported patch levels for Apache products to Apache Tomcat's  |
 original patch levels?  I'm not able to find it via Google or RHN.  
 We certainly do not keep such a list. Does RedHat not properly
 document that  mapping?   - -chris
 
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe,
 e-mail: [EMAIL PROTECTED] For additional commands,
 e-mail: [EMAIL PROTECTED]
 



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



Re: A few questions

2008-06-19 Thread Steve Ochani
Date sent:  Thu, 19 Jun 2008 11:52:59 +0100
From:   jan [EMAIL PROTECTED]
Subject:A few questions
To: Tomcat Users List users@tomcat.apache.org
Send reply to:  Tomcat Users List users@tomcat.apache.org

 The answer to these questions are quite possibly annoyingly obvious,
 but I haven't been able to find them in the User Guide.
 
 1. What is the proper way of shutting down tomcat? I start it with
 what I have found in the user guide:
 
 export JAVA_HOME=/usr/lib/jvm/java-1.5.0-sun-1.5.0.13
 /u01/tomcat/apache-tomcat-5.5.26/bin/jsvc \
   -Djava.endorsed.dirs=/u01/tomcat/apache-tomcat-5.5.26/common/endorse
   d \ -cp /u01/tomcat/apache-tomcat-5.5.26/bin/bootstrap.jar -outfile
   \ /u01/tomcat/apache-tomcat-5.5.26/logs/catalina.out -errfile \
   /u01/tomcat/apache-tomcat-5.5.26/logs/catalina.err \
   org.apache.catalina.startup.Bootstrap
 
 This works fine, but when I kill the process and try to restart, it
 won't - it complains:
 
 java.lang.ClassNotFoundException: org.apache.catalina.startup.Catalina
 

I'm not sure how you're exactly stopping tomcat and when you are restarting 
Tomcat if it's 
starting the same way as if it was first started but here are a couple of tips 
I could think of.

Try to use the Tomcat5.sh script that jsvc comes with (when you extract the src 
for jsvc it 
comes with startup scripts in the native directory.

When restarting maybe one of your env vars is getting trashed, try to determine 
the value of 
CATALINA_HOME.

 Why does that happen? And how can I avoid it?
 
 2. On the front page, when I get the server to run, there is a link
 to an administration package that I am supposed to download from
 somewhere. Is there a standard place to find these things?
 

Yes,

Administration Web Application
at

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


-Steve O.




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



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



RE: A few questions

2008-06-19 Thread Steve Ochani
Date sent:  Thu, 19 Jun 2008 10:30:15 -0500
From:   Walter Thompson [EMAIL PROTECTED]
Subject:RE: A few questions
To: Tomcat Users List users@tomcat.apache.org
Send reply to:  Tomcat Users List users@tomcat.apache.org

 In the Tomcat bin directory there should be two batch files
 startup.bat and shutdown.bat that should work fine unless you are
 running Tomcat as a service.
 
 If running as a service, use services to stop and start.
 

OP is not using Windows.


-Steve O.



 Walter 
 
 -Original Message-
 From: jan [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, June 19, 2008 5:53 AM
 To: Tomcat Users List
 Subject: A few questions
 
 The answer to these questions are quite possibly annoyingly obvious,
 but I haven't been able to find them in the User Guide.
 
 1. What is the proper way of shutting down tomcat? I start it with
 what I have found in the user guide:
 
 export JAVA_HOME=/usr/lib/jvm/java-1.5.0-sun-1.5.0.13
 /u01/tomcat/apache-tomcat-5.5.26/bin/jsvc \
   -Djava.endorsed.dirs=/u01/tomcat/apache-tomcat-5.5.26/common/endorse
   d
 \
   -cp /u01/tomcat/apache-tomcat-5.5.26/bin/bootstrap.jar -outfile \
   /u01/tomcat/apache-tomcat-5.5.26/logs/catalina.out -errfile \
   /u01/tomcat/apache-tomcat-5.5.26/logs/catalina.err \
   org.apache.catalina.startup.Bootstrap
 
 This works fine, but when I kill the process and try to restart, it
 won't - it complains:
 
 java.lang.ClassNotFoundException: org.apache.catalina.startup.Catalina
 
 Why does that happen? And how can I avoid it?
 
 2. On the front page, when I get the server to run, there is a link
 to an administration package that I am supposed to download from
 somewhere.
 
 Is there a standard place to find these things?
 
 /jan
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe,
 e-mail: [EMAIL PROTECTED] For additional commands,
 e-mail: [EMAIL PROTECTED]
 
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe,
 e-mail: [EMAIL PROTECTED] For additional commands,
 e-mail: [EMAIL PROTECTED]
 



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



Re: Retriving polish characters from URL Query string in TOMCAT Server

2008-06-18 Thread Steve Ochani
Date sent:  Wed, 18 Jun 2008 20:27:14 +0530
From:   Raghuveer [EMAIL PROTECTED]
Subject:Retriving polish characters  from URL Query string in TOMCAT 
Server
To: 'Tomcat Users List' users@tomcat.apache.org
Send reply to:  Tomcat Users List users@tomcat.apache.org
Send reply to:  [EMAIL PROTECTED]
Organization:   IEL

 
 
 I had requirement of retrieving the login details like user_id, name
 from parent web application.
 
 
 
 At present I am retrieving by .
 
 
 
 request.getParameter(user_id)
 
 request.getParameter(name)
 
 
 
 Some times names can be in Polish language from parent web
 application.
 
 
 
 What changes i need to make in my JSP Struts web application in order
 to retrieve the polish characters 
 



This is not a tomcat question but a Struts question.

Try the struts users mailing list

http://struts.apache.org/mail.html

I haven't used Struts but your application has to set the proper character 
encoding type, 
usually utf8.


-Steve O.





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



Re: Tomcat 5.5: Why can't I see the applications?

2008-06-18 Thread Steve Ochani
Date sent:  Wed, 18 Jun 2008 17:17:07 +0200
From:   André Warnier [EMAIL PROTECTED]
Subject:Re: Tomcat 5.5: Why can't I see the applications?
To: Tomcat Users List users@tomcat.apache.org
Send reply to:  Tomcat Users List users@tomcat.apache.org


 Caldarale, Charles R wrote:
  From: J ANDERSEN [EMAIL PROTECTED]
  Subject: Tomcat 5.5: Why can't I see the applications?
 
  I am trying to get Tomcat to work (Linux, 64 bits) - it runs
  fine, I can connect to localhost:8080, but no matter what I
  have tried, there doesn't seem to be any applications.
 
  Did you install a real Tomcat from http://tomcat.apache.org, or are
  you using a 3rd-party repackaged piece of junk?  If the latter,
  throw it away and get the real one.  Most, if not all, of the
  repackaged versions simply don't work and do not conform to the
  expected installation structure.
 
 To the original poster : please ignore the comment above.
 Chuck ssems to have something viscerally against any packaged form of
 Tomcat, or any Tomcat that is not the very latest version.

Yes because what he wrote above is true.

I myself have tried the packaged version of tomcat on two recent distros of 
Linux and they
are not worth using.

I've also been mostly a lurker on this list for quite a while and I have seen 
countless no. of
people having trouble with packaged versions of tomcat and as soon as they 
downloaded
and started using the real version of Tomcat their troubles went away.


If the user is not able to replace their version of Tomcat then they should 
consider asking
support from their distro support lines. For ex. someone from Ubuntu posted 
here several
months ago that the users of this list should send anyone having trouble with 
the Ubuntu
packaged version of tomcat over to their support forums.


-Steve O.




 He seems
 to be unable to understand and accept that many Tomcat users and
 system admins simply do not have much choice in the matter, and that
 Tomcat does not exist in a void by its own, but is usually part of an
 environment with many constraints other than Tomcat. And he wants to
 ignore the fact that there are tens of thousands of Tomcats out there
 installed from packages, working fine, and easy to run and maintain;
 and dozens of qualified and benevolent software packagers, who do
 their best to provide packages working in a given environment. It is a
 real pity, because he undoubtedly knows his Tomcat and Java stuff
 better than most. And usually, after this first rash comment, he
 starts actually trying to help. There are others on this list that
 will try to help you if you just want help with the Tomcat you got.

 André




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




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



Re: problem with javac

2008-06-17 Thread Steve Ochani
Date sent:  Tue, 17 Jun 2008 10:54:06 +0200
From:   Robert Welz [EMAIL PROTECTED]
Subject:problem with javac
To: users@tomcat.apache.org
Send reply to:  Tomcat Users List users@tomcat.apache.org

 Hello.
 
 I am not familiar with javac and tried the following as in the
 manpage:
 
 javac -classpath /opt/jakarta-tomcat-3.3.1a/webapps/ROOT/WEB-INF/
 classes/;
 /opt/jakarta-tomcat-3.3.1a//webapps/ROOT/WEB-INF/classes/com/
 oreilly/servlet  /home/welz/develop/fundus/StingRay/Develop/Servlets/
 stingray_backup.java
 
 but I get an invalid flag error.
 
 Q: I want to fix some compile errors:
 like
 
 [EMAIL PROTECTED]:/opt/stingray# javac /home/welz/develop/fundus/StingRay/
 Develop/Servlets/stingray_backup.java/home/welz/develop/fundus/
 StingRay/Develop/Servlets/stingray_backup.java:3: package 
 javax.servlet does not exist import javax.servlet.*;
 


What version of jdk are you using? Seems like 1.x.

Try the command

javac -version

and see what you get.

You're also using a 5+ year old version of tomcat, time to upgrade.


-Steve O.





 my classpaths are /opt/jakarta-tomcat-3.3.1a/webapps/ROOT/WEB-INF/
 classes/com/oreilly/servlet/ and descendants
 /opt/jakarta-tomcat-3.3.1a/webapps/examples/jsp/
 /opt/jakarta-tomcat-3.3.1a/webapps/examples/servlets
 /opt/jakarta-tomcat-3.3.1a/webapps/examples/WEB-INF/classes/
 
 how do I give javac those paths?
 
 
 
 
 /opt/jakarta-tomcat-3.3.1a/lib/common/servlet.jar
 /opt/jakarta-tomcat-3.3.1a/webapps/admin/WEB-INF/scripts/watchdog-
 servlet.xml
 /opt/jakarta-tomcat-3.3.1a/webapps/admin/test/watchdog-servlet.jsp
 /opt/jakarta-tomcat-3.3.1a/webapps/ROOT/WEB-INF/classes/com/oreilly/
 servlet
 /opt/jakarta-tomcat-3.3.1a/webapps/ROOT/WEB-INF/classes/com/oreilly/
 servlet/Base64Decoder.class
 /opt/jakarta-tomcat-3.3.1a/webapps/ROOT/WEB-INF/classes/com/oreilly/
 servlet/Base64Encoder.class
 /opt/jakarta-tomcat-3.3.1a/webapps/ROOT/WEB-INF/classes/com/oreilly/
 servlet/CacheHttpServlet.class
 /opt/jakarta-tomcat-3.3.1a/webapps/ROOT/WEB-INF/classes/com/oreilly/
 servlet/CacheHttpServletResponse.class
 /opt/jakarta-tomcat-3.3.1a/webapps/ROOT/WEB-INF/classes/com/oreilly/
 servlet/CacheServletOutputStream.class
 /opt/jakarta-tomcat-3.3.1a/webapps/ROOT/WEB-INF/classes/com/oreilly/
 servlet/CookieNotFoundException.class
 /opt/jakarta-tomcat-3.3.1a/webapps/ROOT/WEB-INF/classes/com/oreilly/
 servlet/CookieParser.class
 /opt/jakarta-tomcat-3.3.1a/webapps/ROOT/WEB-INF/classes/com/oreilly/
 servlet/Daemon.class
 /opt/jakarta-tomcat-3.3.1a/webapps/ROOT/WEB-INF/classes/com/oreilly/
 servlet/DaemonHttpServlet.class
 /opt/jakarta-tomcat-3.3.1a/webapps/ROOT/WEB-INF/classes/com/oreilly/
 servlet/HttpMessage.class
 /opt/jakarta-tomcat-3.3.1a/webapps/ROOT/WEB-INF/classes/com/oreilly/
 servlet/HttpsMessage.class
 /opt/jakarta-tomcat-3.3.1a/webapps/ROOT/WEB-INF/classes/com/oreilly/
 servlet/LocaleNegotiator.class
 /opt/jakarta-tomcat-3.3.1a/webapps/ROOT/WEB-INF/classes/com/oreilly/
 servlet/LocaleToCharsetMap.class
 /opt/jakarta-tomcat-3.3.1a/webapps/ROOT/WEB-INF/classes/com/oreilly/
 servlet/MailMessage.class
 /opt/jakarta-tomcat-3.3.1a/webapps/ROOT/WEB-INF/classes/com/oreilly/
 servlet/MailPrintStream.class
 /opt/jakarta-tomcat-3.3.1a/webapps/ROOT/WEB-INF/classes/com/oreilly/
 servlet/MultipartFilter.class
 /opt/jakarta-tomcat-3.3.1a/webapps/ROOT/WEB-INF/classes/com/oreilly/
 servlet/MultipartRequest.class
 /opt/jakarta-tomcat-3.3.1a/webapps/ROOT/WEB-INF/classes/com/oreilly/
 servlet/MultipartResponse.class
 /opt/jakarta-tomcat-3.3.1a/webapps/ROOT/WEB-INF/classes/com/oreilly/
 servlet/MultipartWrapper.class
 /opt/jakarta-tomcat-3.3.1a/webapps/ROOT/WEB-INF/classes/com/oreilly/
 servlet/ParameterNotFoundException.class
 /opt/jakarta-tomcat-3.3.1a/webapps/ROOT/WEB-INF/classes/com/oreilly/
 servlet/ParameterParser.class
 /opt/jakarta-tomcat-3.3.1a/webapps/ROOT/WEB-INF/classes/com/oreilly/
 servlet/RemoteDaemonHttpServlet.class
 /opt/jakarta-tomcat-3.3.1a/webapps/ROOT/WEB-INF/classes/com/oreilly/
 servlet/RemoteHttpServlet.class
 /opt/jakarta-tomcat-3.3.1a/webapps/ROOT/WEB-INF/classes/com/oreilly/
 servlet/ServletUtils.class
 /opt/jakarta-tomcat-3.3.1a/webapps/ROOT/WEB-INF/classes/com/oreilly/
 servlet/UploadedFile.class
 /opt/jakarta-tomcat-3.3.1a/webapps/ROOT/WEB-INF/classes/com/oreilly/
 servlet/VersionDetector.class
 /opt/jakarta-tomcat-3.3.1a/webapps/ROOT/WEB-INF/classes/com/oreilly/
 servlet/multipart
 /opt/jakarta-tomcat-3.3.1a/webapps/ROOT/WEB-INF/classes/com/oreilly/
 servlet/multipart/BufferedServletInputStream.class
 /opt/jakarta-tomcat-3.3.1a/webapps/ROOT/WEB-INF/classes/com/oreilly/
 servlet/multipart/DefaultFileRenamePolicy.class
 /opt/jakarta-tomcat-3.3.1a/webapps/ROOT/WEB-INF/classes/com/oreilly/
 servlet/multipart/FilePart.class
 /opt/jakarta-tomcat-3.3.1a/webapps/ROOT/WEB-INF/classes/com/oreilly/
 servlet/multipart/FileRenamePolicy.class
 /opt/jakarta-tomcat-3.3.1a/webapps/ROOT/WEB-INF/classes/com/oreilly/
 

Re: Using PHP4 with Tomcat5.5

2008-06-16 Thread Steve Ochani
On 16 Jun 2008 at 14:37, Jonathan Mast wrote:

Date sent:  Mon, 16 Jun 2008 14:37:55 -0400
From:   Jonathan Mast [EMAIL PROTECTED]
Subject:Re: Using PHP4 with Tomcat5.5
To: Tomcat Users List users@tomcat.apache.org, 
[EMAIL PROTECTED]
Send reply to:  Tomcat Users List users@tomcat.apache.org

 Thanks, but I've tried them both and no luck.  The Tomcat wiki tells
 me how
 to compile php for tomcat, which i have no intention of doing.  The
 second
 one tells me i must unjar the phpservlet.jar file and fiddle with
 some
 properties.  But I know I don't have to do this.  My work computer
 has been
 set up to use PHP and Tomcat and it works fine. 

If it works fine then what is the problem?


 But I (and everyone
 else at
 work) can't find whatever magic was performed to get it to
 function.
 

Get what to function? PHP? Just make a php file in a webapp dir. For example

TOMCAT_DIR/webapps/webappname/test.php

If you mean you are trying to recreate the already existing setup that you have 
then you will 
have to ask the person who did the setups. Noone on this list will be able to 
tell you how that 
person did the setup with 100% certainity.

 BTW: does Tomcat have an equivalent to phpinfo(); ?  I would like

No.

 some way
 to exam the internals of Tomcat.

Not sure what you mean by that. Tomcat is written in Java and is primarily a 
Java servlet 
container.

If you run a php app in tomcat with phpinfo() you will get details about the 
php install not 
Tomcat

 
 How difficult is it to set up apache on windows? 


By apache I'm guessing you mean apache webserver whic is very easy to install, 
IMO.



 It doesn't come as
 a
 binary as i recall, and i'm loath to go about compiling C/C++ on a
 windoze
 contraption :-[

It comes as a binary install.


BTW please configure your e-mail client to follow reply-to headers.




-Steve O.




 
 
 On Sun, Jun 15, 2008 at 9:37 PM, Steve Ochani [EMAIL PROTECTED]
 wrote:
 
  Date sent:  Sun, 15 Jun 2008 23:12:42 -0100
  From:   Jonathan Mast [EMAIL PROTECTED]
  Subject:Using PHP4 with Tomcat5.5
  To: Tomcat Users List users@tomcat.apache.org
  Send reply to:  Tomcat Users List users@tomcat.apache.org
 
   I can't figure out how to use php4 with tomcat 5.5 on my
 windows
   system.  I searched the internet and I can't find a straight
 forward
   guide to using these 2 programs.  If anyone could point me to
 a
   step-by-step guide it would be great.
  
   thanks
  
 
  Here are the first two links from google search of php tomcat
 
  http://wiki.apache.org/tomcat/UsingPhp
 
 
 
 http://blog.taragana.com/index.php/archive/running-php-5x-on-windows
 -using-tomcat-4x-or-
 
 5x/http://blog.taragana.com/index.php/archive/running-php-5x-on-win
 dows-using-tomcat-4x-or-5x/
 
 
  I personally use apache httpd for php and cgi and Tomcat for
 servlets with
  mod_jk on Linux
  and Solaris and I'd recommend it for Windows as well.
 
 
 
  -Steve O.
 
 
 
 
 
 -
  To start a new topic, e-mail: users@tomcat.apache.org
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 



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



Re: Installing Apache-Tomcat 6.0.16 Problem

2008-06-16 Thread Steve Ochani
On 16 Jun 2008 at 17:32, Chuck Noren wrote:

Date sent:  Mon, 16 Jun 2008 17:32:34 -0400
From:   Chuck Noren [EMAIL PROTECTED]
Subject:Installing Apache-Tomcat 6.0.16 Problem
To: Tomcat Users List users@tomcat.apache.org
Send reply to:  Tomcat Users List users@tomcat.apache.org

 I have a PC with Fedora Core 6
 I have installed jdk 1.6.0_06
 
 I downloaded Tomcat 6.0.16, did a sucessful ant download. When I do
 ant, I
 get a complaint from javac on the first line of Resouce.java,
 flagging the
 comment characters /* and complaining about Enum (see below). Of
 cource,
 javac compiles the single file okay when I hand enter it. What is
 going
 wrong?
 
 Thanks,
 Chuck
 

Why not just get the binary version of Tomcat?


-Steve O.



 [EMAIL PROTECTED] apache-tomcat-6.0.16-src]$ su
 Password:
 [EMAIL PROTECTED] apache-tomcat-6.0.16-src]# ant -version
 Apache Ant version 1.6.5 compiled on August 30 2006
 [EMAIL PROTECTED] apache-tomcat-6.0.16-src]# which javac
 /usr/local/jdk1.6.0_06/bin/javac
 [EMAIL PROTECTED] apache-tomcat-6.0.16-src]# ant
 Buildfile: build.xml
 
 build-prepare:
[delete] Deleting directory
 /home/noren/opennms/apache-tomcat-6.0.16-src/output/build/temp
 [mkdir] Created dir:
 /home/noren/opennms/apache-tomcat-6.0.16-src/output/build/temp
 
 compile:
 [javac] Compiling 1045 source files to
 /home/noren/opennms/apache-tomcat-6.0.16-src/output/classes
 [javac] --
 [javac] 1. ERROR in
 /home/noren/opennms/apache-tomcat-6.0.16-src/java/javax/annotation/R
 esource.java
 (at line 1)
 [javac] /*
 [javac] ^^
 [javac] The type Enum is not generic; it cannot be parameterized
 with
 arguments Resource.AuthenticationType
 [javac] --
 [javac] 1 problem (1 error)
 
 BUILD FAILED
 /home/noren/opennms/apache-tomcat-6.0.16-src/build.xml:109: Compile
 failed;
 see the compiler error output for details.
 
 Total time: 5 seconds
 [EMAIL PROTECTED] apache-tomcat-6.0.16-src]#
 



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



Re: Using PHP4 with Tomcat5.5

2008-06-15 Thread Steve Ochani
Date sent:  Sun, 15 Jun 2008 23:12:42 -0100
From:   Jonathan Mast [EMAIL PROTECTED]
Subject:Using PHP4 with Tomcat5.5
To: Tomcat Users List users@tomcat.apache.org
Send reply to:  Tomcat Users List users@tomcat.apache.org

 I can't figure out how to use php4 with tomcat 5.5 on my windows
 system.  I searched the internet and I can't find a straight forward
 guide to using these 2 programs.  If anyone could point me to a
 step-by-step guide it would be great.
 
 thanks
 

Here are the first two links from google search of php tomcat

http://wiki.apache.org/tomcat/UsingPhp

http://blog.taragana.com/index.php/archive/running-php-5x-on-windows-using-tomcat-4x-or-
5x/


I personally use apache httpd for php and cgi and Tomcat for servlets with 
mod_jk on Linux 
and Solaris and I'd recommend it for Windows as well.



-Steve O.



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



RE: mapping tomcat to ip address behind router

2008-06-14 Thread Steve Ochani
Date sent:  Fri, 13 Jun 2008 08:52:51 -0500
From:   Caldarale, Charles R [EMAIL PROTECTED]
Subject:RE: mapping tomcat to ip address behind router
To: Tomcat Users List users@tomcat.apache.org
Send reply to:  Tomcat Users List users@tomcat.apache.org

  From: Walter Thompson [mailto:[EMAIL PROTECTED]
  Subject: RE: mapping tomcat to ip address behind router
 
  IP numbers usually are 0-255 and the end number in your IP
  address is 456?
 
 Sometimes we miss the obvious.  Not just usually 0-255, they must be
 0-255, since it's an octet.
 
 Thanks for pointing out what Steve, Chris, Johnny, and I missed.
 
  - Chuck
 

I had just figured that ip address was fake to hide his real address and I 
mostly ignored that 
section since he said that it was working.


-Steve O.




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



Re: Moving from a very old Tomcat to a new Tomcat.

2008-06-12 Thread Steve Ochani
Date sent:  Thu, 12 Jun 2008 13:23:20 +0200
From:   André Warnier [EMAIL PROTECTED]
Subject:Re: Moving from a very old Tomcat to a new Tomcat.
To: Tomcat Users List users@tomcat.apache.org
Send reply to:  Tomcat Users List users@tomcat.apache.org



 Pid wrote:
  André Warnier wrote:
 
 [...]

  With everyone's permission, I would offer to write a draft, but I
  wouldn't have a clue as to how or where to publish this.
 
  Tomcat Wiki?
 
 Well, I must be too dumb even for that.
 On the page http://wiki.apache.org/tomcat/HowTo , the first item is
 quote

 How do I add a question to this page?

 Anyone may edit this page to add their own content. That is why this
 page is part of a Wiki and not a hardcoded static file in the FAQ.

 unquote

 However, in the upper left corner appears the legend Immutable page,
 and I don't seem to find any button, link or whatever allowing me to
 edit the page in question, add an item, whatever.

 Am I using the wrong page ?


If it's like most wikis you have to create an account first.



-Steve O.




 Thanks
 André

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




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



Re: mapping tomcat to ip address behind router

2008-06-12 Thread Steve Ochani
On 12 Jun 2008 at 14:14, illusion wrote:

Date sent:  Thu, 12 Jun 2008 14:14:11 -0700 (PDT)
From:   illusion [EMAIL PROTECTED]
Subject:mapping tomcat to ip address behind router
To: users@tomcat.apache.org
Send reply to:  Tomcat Users List users@tomcat.apache.org

 
 Hey,
 
 I want to set-up tomcat to serve http requests from behind a router.
 When
 there is a direct internet connection and no router, and the
 address
 property is added and port number is changed in server.xml as below
 in
 example 1, tomcat serves requests fine for http://99.153.32.456. 
 
 When I set it up to run behind a router as show in example 2, with
 the
 router forwarding requests to 192.168.0.54 which is the computer
 behind the
 router with tomcat, it does not work for the url
 http://99.153.32.456.  What
 is the correct way to set it tomcat behind a router?

Your ISP, like most others, blocks port 80 for home/non business connections. 
You will have 
to run tomcat on a non standard port such as 1. Keep in mind that running 
servers on 
your connection may violate the terms of service of your ISP.


-Steve O.




 
 thanks in advance for your assistance
 
 Example 1 - no router - works
 
 Connector port=80 protocol=HTTP/1.1 
connectionTimeout=2 
address=99.153.32.456
redirectPort=8443 /
 !-- A Connector using the shared thread pool--
 !--
 Connector executor=tomcatThreadPool
port=80 protocol=HTTP/1.1
address=99.153.32.456 
connectionTimeout=2 
redirectPort=8443 /
 --   
 
 Example 2 - behind router - does not work
 
 Connector port=80 protocol=HTTP/1.1 
connectionTimeout=2 
address=192.168.0.54
redirectPort=8443 /
 !-- A Connector using the shared thread pool--
 !--
 Connector executor=tomcatThreadPool
port=80 protocol=HTTP/1.1
address=192.168.0.54 
connectionTimeout=2 
redirectPort=8443 /
 --   
 
 
 -- 
 View this message in context:
 http://www.nabble.com/mapping-tomcat-to-ip-address-behind-router-tp1
 7809837p17809837.html
 Sent from the Tomcat - User mailing list archive at Nabble.com.
 
 
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 



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



Re: Off-topic uestion Re: It¡¯s amazing, apache make TC performance decrease dramatically.

2008-06-11 Thread Steve Ochani
Date sent:  Wed, 11 Jun 2008 09:42:45 +0200
From:   André Warnier [EMAIL PROTECTED]
Subject:Off-topic uestion Re: It¡¯s amazing, apache
make TC performance decrease dramatically.
To: Tomcat Users List users@tomcat.apache.org
Send reply to:  Tomcat Users List users@tomcat.apache.org

 OMGWTFBBQ?!

 Would someone care to explain the last 3 letters of the above ? I can
 kind of get the rest, but the last 3 puzzle me. ;-)



http://www.urbandictionary.com/define.php?term=omgwtfbbq



 Christopher Schultz wrote:
 [...]

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




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



Re: OT: Fedora Core 8 viability (was Re: Problem in starting tomcat)

2008-06-11 Thread Steve Ochani
Date sent:  Wed, 11 Jun 2008 09:51:03 -0400
From:   Christopher Schultz [EMAIL PROTECTED]
Subject:Re: OT: Fedora Core 8 viability (was Re: Problem in 
starting tomcat)
To: Tomcat Users List users@tomcat.apache.org
Send reply to:  Tomcat Users List users@tomcat.apache.org

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 Steve,
 
 Steve Ochani wrote:
 | On 10 Jun 2008 at 17:20, Christopher Schultz wrote:
 | What leads you to that conclusion [that Fedora Core is
 inappropriate for production use]? | | 1. When Fedora project was
 started I remember reading that it was almost like a testbed for |
 testing new apps/open source projects to be put into Red Hat
 Enterprise Linux.
 
 It should be the same as RH's enterprise Linux, except that it doesn't
 have all the Enterprise-y tools and stuff.
 

It's not really. Fedora is bleeding edge programs/packages, that's why it's 
considered a 
testbed type platform for the Enterprise distro.

 | 2. 6 month support cycle isn't exactly something that is long
 lasting/reliable for production
 | systems. (IMO 3 years is a min.)
 
 Fair enough. I never bother with support, anyway, for a Linux system.

I haven't either unless you consider forums but by support I meant security 
patches and 
updates. 

 They run very well, and we keep up-to-date. If you update your
 packages (still uring RPM, right?) regularly, the 6-month window
 slides with you, doesn't it?
 

I'm not sure what you mean by slides with you but a 6 month support (as in 
security 
updates/patches) cycle isn't what I recommend for production systems.


 | 3. The past history of stableness of some versions, such as
 version 7.
 
 Heh. I have no direct experience. I dumped Red Hat after RHL went from
 6-9 in like 2 years. I was sick and tired of their package manager.
 Then I discovered Gentoo, which I prefer, and Debian, which is
 supported by our co-lo provider, though I don't like apt very much. At
 least it installs dependencies for you ;) I haven't looked back.

I became used to rpm fairly quickly after changing from slackware and now yum 
on CentOS.


 
 | If someone is looking for a Red Hat type linux distro that is
 stable, long support time/cycle | then they should consider CentOS.
 
 Noted.
 
 - -chris



-Steve O.



---
Steve O.
http://www.steveo.us

B17G WWII Bomber Yankee Lady Flight
http://www.steveo.us/b17ride


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



Re: Moving from a very old Tomcat to a new Tomcat.

2008-06-10 Thread Steve Ochani
On 9 Jun 2008 at 20:10, Bill Davidson wrote:

.
.
.

 I didn't really do it as a filter though.  The login servlet, after 
 verifying the
 user's login and password, just creates and sets the cookie in the response
 rather than letting Tomcat create the cookie.  

I would make sure to do some testing with multiple users using your app at the 
same time.



-Steve O.





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



Re: OT: Fedora Core 8 viability (was Re: Problem in starting tomcat)

2008-06-10 Thread Steve Ochani
On 10 Jun 2008 at 17:20, Christopher Schultz wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 Steve,
 
 Steve Ochani wrote:
 | Off topic remark. I hope you don't use [Fedora Core 8] on
 production
 machines. Fedora is not
 | designed for that.
 
 What leads you to that conclusion?

1. When Fedora project was started I remember reading that it was almost like a 
testbed for 
testing new apps/open source projects to be put into Red Hat Enterprise Linux.

2. 6 month support cycle isn't exactly something that is long lasting/reliable 
for production 
systems. (IMO 3 years is a min.)

3. The past history of stableness of some versions, such as version 7.



If someone is looking for a Red Hat type linux distro that is stable, long 
support time/cycle 
then they should consider CentOS.



-Steve O.




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



Re: Junk Mail problem on intranet application

2008-06-09 Thread Steve Ochani
Date sent:  Mon, 09 Jun 2008 18:06:38 +0530
From:   Arun [EMAIL PROTECTED]
Subject:Junk Mail problem on intranet application
To: Tomcat Users List users@tomcat.apache.org
Send reply to:  Tomcat Users List users@tomcat.apache.org

 Hi,
 
 I have struts2/spring/JPA/hibernate HR application.
 I am sending mails using Spring's helper.
 My app is sending out an email which contans a url which points to my
 app http://10.201.0.18:8080/myapp. And which ever mail this contains
 the url is getting into junk mail folder of outlook. Is there any way
 I can avoid it.? I am using our local exchange server.
 

This has nothing to do with Tomcat.

I would ask on a MS Exchange or outlook forum/mailing list.

My guess is that your url has an ip address instead of a hostname that is why 
exchange or 
outlook is flagging it as spam. So configure whichever one is flagging it as 
spam to not flag 
mails coming from your tomcat server as spam.



-Steve O.



---
Steve O.
http://www.steveo.us

B17G WWII Bomber Yankee Lady Flight
http://www.steveo.us/b17ride



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



Re: Problem in starting tomcat

2008-06-09 Thread Steve Ochani
Date sent:  Mon, 09 Jun 2008 06:23:08 -0700 (PDT)
From:   Raghavan_sat [EMAIL PROTECTED]
Subject:Problem in starting tomcat
To: users@tomcat.apache.org
Send reply to:  Tomcat Users List users@tomcat.apache.org

 
 Hi,
I downloaded apache-tomcat-5.5.23.tar.gz and extracted it. Am using
jdk
 1.6.0_05.

Why use an older version of tomcat?


 When i start tomcat it starts fine and no error is been shown in the
 catalina.out. But when i open the browser and load
 http://localhost:8080/ its showing a blank page.

Then I doubt that is truly your tomcat page.

I would stop tomcat or restart your machine, before starting tomcat I would 
make sure that a 
program isn't listening on port 8080 and 8009.

netstat -anp

should do the trick.

Also just double check the catalina.out log.

 The OS is Fedora 8.

Off topic remark. I hope you don't use fedora on production machines. Fedora is 
not 
designed for that.



-Steve O.




---
Steve O.
http://www.steveo.us

B17G WWII Bomber Yankee Lady Flight
http://www.steveo.us/b17ride




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



Re: Error with content-type application/pdf and Internet Explorer

2008-06-05 Thread Steve Ochani
Date sent:  Thu, 05 Jun 2008 10:36:32 +0200
From:   Luis Pascual Forner [EMAIL PROTECTED]
Subject:Error with content-type application/pdf and Internet 
Explorer
To: Tomcat Users List users@tomcat.apache.org
Send reply to:  Tomcat Users List users@tomcat.apache.org
Organization:   IVAL informática http://www.ival.
com

 Hello,

The JSP script that follows produces an error
 when accessing with Internet Explorer:


Your problem seems to be very similar to some previous postings, including this:

http://www.nabble.com/PDF-problem-on-IE-from-JSP-td14879788.html


I would search via google or one of the tomcat users archive.




 %@ page contentType=application/pdf %
 %@ page import=java.io.File %
 %@ page import=java.io.FileInputStream %
 %@ page import=java.io.InputStreamReader %
 %

  InputStreamReader in = new InputStreamReader(
new FileInputStream(new File(document.pdf)), ISO-8859-1);
  char[] b = new char[128];
  int i = in.read(b, 0, 128);
  while (i = 0) {
out.write(b, 0, i);
i = in.read(b, 0, 128);
  }
  in.close();

 %

 More info:

 * Tomcat version: 5.5.26.
 * Internet Explorer open a download window, and then
the error No puede descargar xx de www..es.
El archivo no pudo ser escrito en la caché (my
IE is localized in spanish).
 * The same script runs OK with Firefox in Linux and
with Mozilla in Windows.
 * The same script runs OK with Internet Explorer and
Tomcat 5.0.19 + Apache 2.0.49.
 * No messages in log.
 * In the conf/web.xml file appears the mime-type
application/pdf.

 regards,

Luis

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




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



Re: migrate an application from tomcat 4.x to tomcat 6.x

2008-05-30 Thread Steve Ochani
Date sent:  Thu, 29 May 2008 23:16:31 -0700 (PDT)
From:   sur_1805 [EMAIL PROTECTED]
Subject:migrate an application from tomcat 4.x to tomcat 6.x
To: users@tomcat.apache.org
Send reply to:  Tomcat Users List users@tomcat.apache.org

 
 i want to migrate an application from tomcat 4.x to tomcat 6.x, what
 are the necessary steps that i have to make to make my application
 working.
 
 thanks in advance.
 

1. Test application in tomcat 6.

2. If any errors occur see what they are.

3. Fix errors.






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



Re: web.xml documentation

2008-05-27 Thread Steve Ochani
On 27 May 2008 at 17:24, Marcos Molina wrote:


 Hi people,
 
 Can anyone tell me where can i read something of how web.xml file
 works ?
 I try search but not found nothing good.
 Thanks a lot.

It's detailed in the Java Servlet Specification available at www.jcp.org

but the basics are in almost any good java servlet tutorial/book.





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



Re: Shared Javascript, CSS, and Image Files

2008-05-14 Thread Steve Ochani
Date sent:  Tue, 13 May 2008 16:21:22 -0700 (PDT)
From:   John Buchholz [EMAIL PROTECTED]
Subject:Shared Javascript, CSS, and Image Files
To: users@tomcat.apache.org
Send reply to:  Tomcat Users List users@tomcat.apache.org

 Hi,
 
 I am looking for the recommended solution for when multiple webapps
 need to use the same sets or javascript, css, and image files.  I have
 created a symbolic link in $CATALINA_HOME/webapps/myapp called
 shared pointing to /home/myhome/shared_files.   When I refer to
 /shared/test.js in my jsp, it does not recognize it.  Is there
 something I need to do to tell Tomcat to follow symbolic links or even
 better is there a recommended location under $CATALINA_HOME for me to
 add my collection of shared files that will be seen by all webapps?
 
 I am using Tomcat 5.5.23.
 

You have to use the allowLinking attribute in your context config.

http://tomcat.apache.org/tomcat-5.5-doc/config/context.html


-Steve O.


-
Steve O.
http://www.steveo.us

B17G WWII Bomber Yankee Lady Flight
http://www.steveo.us/b17ride

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



Re: Why doesn't security work for Tomcat 6.0.14

2008-04-07 Thread Steve Ochani
On 7 Apr 2008 at 19:35, sex wrote:

 I'm trying to give myself access to the manager web app, but have
 been =
 unsuccessful.  My tomcat-users.xml looks like this:
 
 ?xml version='1.0' encoding='utf-8'?
 tomcat-users
   role rolename=manager/
   role rolename=admin/
   user username=chris password=chris roles=admin,manager/
 /tomcat-users
 
 
 but I always get a 401 Unauthorized error.  Any ideas?
 

Did you even bother to read the reply from a few hours ago by Charles Caldarale?

BTW I would suggest posting with a more professional/appropriate name rather 
than sex.





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



Re: Problem in running Tomcat

2008-03-30 Thread Steve Ochani
Your question was already answered by at least 3 people under the previous 
thread subject 
you made.




Date sent:  Sun, 30 Mar 2008 09:22:42 -0700 (PDT)
From:   Raghavan_sat [EMAIL PROTECTED]
Subject:Problem in running Tomcat
To: users@tomcat.apache.org
Send reply to:  Tomcat Users List users@tomcat.apache.org

 
 Hi,
I installed tomcat5 using yum and it installed lot of
dependencies...
 This tomcat uses gcj java to run and is running fine.. But my Servlet
 program cannot be compiled with this gcj javaSo i installed JDK1.6
 and changed the java using alternatives command and compiled it
 But with this java being selected my tomcat is not running... its
 showing lock file found but no process running for pid .  So
 i downloaded separate tomcat - apache tomcat 5 and extracted it... it
 starts fine with jdk 1.6 but when i use my servlet it just goes off..
 Following that if i shutdown tomcat it shows Using CATALINA_BASE:  
 /root/apache-tomcat-5.5.26 Using CATALINA_HOME:  
 /root/apache-tomcat-5.5.26 Using CATALINA_TMPDIR:
 /root/apache-tomcat-5.5.26/temp Using JRE_HOME:  
 /usr/java/jdk1.5.0_14/ Mar 29, 2008 6:53:57 PM
 org.apache.catalina.startup.Catalina stopServer SEVERE: Catalina.stop:
 java.net.ConnectException: Connection refused
 at java.net.PlainSocketImpl.socketConnect(Native Method)
 at
 java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
 at
 java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
 at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
 at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
 at java.net.Socket.connect(Socket.java:520) at
 java.net.Socket.connect(Socket.java:470) at
 java.net.Socket.init(Socket.java:367) at
 java.net.Socket.init(Socket.java:180) at
 org.apache.catalina.startup.Catalina.stopServer(Catalina.java:395)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.j
 ava:39)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccess
 orImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:585)
 at
 org.apache.catalina.startup.Bootstrap.stopServer(Bootstrap.java:344)
 at
 org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:435)
 
 
 
 So my problem is tomcat5(yum) with gcj java is not compiling my
 servlet and tomcat5(downloaded) with jdk1.6 is not at all running..
 what can i do to run my servlet :( -- View this message in context:
 http://www.nabble.com/Problem-in-running-Tomcat-tp16383891p16383891.ht
 ml Sent from the Tomcat - User mailing list archive at Nabble.com.
 
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe,
 e-mail: [EMAIL PROTECTED] For additional commands,
 e-mail: [EMAIL PROTECTED]
 



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



Re: Securing Tomcat on FC8

2008-03-28 Thread Steve Ochani
Date sent:  Fri, 28 Mar 2008 16:07:26 -0400
From:   Hyatt, Gordon [EMAIL PROTECTED]
Subject:Securing Tomcat on FC8
To: users@tomcat.apache.org
Send reply to:  Tomcat Users List users@tomcat.apache.org

 I've just finished reading the Tomcat Security chapter of O'Reilly's
 Tomcat, The Definitive Guide that covers Tomcat 4 and have been left
 with many questions.
 
 First, a little background: I've setup a new web server on FC8 x86_64

If security is a concern for you then dump Fedora as your Linux distro. Fedora 
is not meant to 
be run on productions systems.

If you are looking for a free but well supported (as in security patches) for 
an extended period 
of time I would recommend CentOS which is a clone of Red Hat Enterprise Linux. 
Others 
also recommend debian.


 running Sun Java 1.6.0_05 and tomcat 5.5.26.  I'm very familiar with
 Tomcat on Windows (developed and deployed there for many years), and
 am now moving to Linux for various reasons.  I have some experience on
 Linux and am looking to improve.  The server is in my company's data
 center and only ports 80 and 443 are visible to the outside.  The
 local Linux guru is out this week and next, so I thought I'd at least
 start.
 
 Because this will be a web server, Tomcat will need to listen on ports
 80 and 443.  In order to do so, as I understand it, Tomcat needs to be
 run as root - something with which I'm not very comfortable.  So the
 main question is:
 
 How do I get Tomcat to listen on 80 and 443 without running as root?  
 

Use jsvc.

http://tomcat.apache.org/tomcat-5.5-doc/setup.html


 I thought of running Tomcat in a chroot jail, but that won't
 completely work, as it still needs to run as root for listening on
 these privileged ports.  I've also thought about setting up port
 forwarding from 80 and 443 to, say, 8180 and 8543.  
 
 I guess I'm looking for some advice/pointers/references for the best
 way to secure tomcat.  
 
 Any suggestions?
 

This is a guide which has been quoted/linked by others on this list and has 
some good tips.

http://www.owasp.org/index.php/Securing_tomcat


-Steve O.



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



Re: Tomcat on Leopard

2008-03-17 Thread Steve Ochani
Date sent:  Mon, 17 Mar 2008 12:46:03 +
From:   Gareth Howells [EMAIL PROTECTED]
Subject:Re: Tomcat on Leopard
To: Tomcat Users List users@tomcat.apache.org
Send reply to:  Tomcat Users List users@tomcat.apache.org

  The OP should use either vi (if they're brave or have experience in
  it)
 
 nano is available on OS X too
 


TextWrangler is a nice, free text editor for Mac that supports a few 
programming languages 
also.

http://www.barebones.com/products/textwrangler/



-Steve O.



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



Re: Eclipse with tomcat and mysql

2008-03-10 Thread Steve Ochani
 Hello,
 
 I'm having trouble getting Eclipse to work with Mysql/Tomcat. 
 
 In Eclipse, I have set up a project and have added a Tomcat server and
 added the project to the server. The project consists of a simple
 example of a standard struts architecture for the MVC.
 
 Model: Artist.java, ArtistSearchService.java
 View: search.jsp, SearchForm.java
 Controller: ArtistSearchAction.java
 
 The ArtistSearchSerview.java connects to mysql, searches for Artists
 and creates Artists objects.
 
 If I deploy this to Tomcat, every thing works fine.
 
 But when I run inside Eclipse it will not connect to the database. I
 get the errors listed below. Funny thing is, in Eclipse I have also
 tried setting a data source for this database. This also works fine
 and I can connect to the DB from the data source, but I still get the
 error.
 
 So how do you use Eclipse with Tomcat and MySQL? Any ideas?
 
 Thanks in advance for the help,
 Kevin
 
 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: Cannot create JDBC driver of class ''
 for connect URL 'null'
  org.apache.struts.chain.ComposableRequestProcessor.process(Composable
  RequestProcessor.java:286)
  org.apache.struts.action.ActionServlet.process(ActionServlet.java:191
  3)
  org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:462)
  javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
  javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
 
 root cause 
 
 org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC
 driver of class '' for connect URL 'null'
  org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDat
  aSource.java:1150)
  org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSo
  urce.java:880)
  model.ArtistSearchService.selectArtists(ArtistSearchService.java:30)
  controller.ArtistSearchAction.execute(ArtistSearchAction.java:34)
  org.apache.struts.chain.commands.servlet.ExecuteAction.execute(Execut
  eAction.java:58)
  org.apache.struts.chain.commands.AbstractExecuteAction.execute(Abstra
  ctExecuteAction.java:67)
  org.apache.struts.chain.commands.ActionCommandBase.execute(ActionComm
  andBase.java:51)
  org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:190)
  org.apache.commons.chain.generic.LookupCommand.execute(LookupCommand.
  java:304)
  org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:190)
  org.apache.struts.chain.ComposableRequestProcessor.process(Composable
  RequestProcessor.java:283)
  org.apache.struts.action.ActionServlet.process(ActionServlet.java:191
  3)
  org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:462)
  javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
  javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
 
 root cause 
 
 java.sql.SQLException: No suitable driver
  java.sql.DriverManager.getDriver(Unknown Source)


Do you have the driver for MySQL added to your project libraries?



-Steve O.




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



Re: Tomcat on Window XP Pro 64-bit on Intel quad Xenon

2008-03-07 Thread Steve Ochani
On 7 Mar 2008 at 11:31, David Kramer wrote:


 I've been trying to find out how to run it as a service, and the
 only 
 solution I can find is relevant to AMD processors (yes, I tried it
 anyway).  The 32-bit versions of tomcat5.exe doesn't run under
 64-bit 
 Windows.
 

From what I've read the AMD 64bit versions will run just fine on the intel 
xeon (xenon is a gas 
btw.)





 Thanks in advance.
 
 The information transmitted is intended only for the person or
 entity to which it is addressed and may contain confidential and/or
 privileged material. Any review, retransmission, dissemination or
 other use of, or taking of any action in reliance upon this
 information by persons or entities other than the intended recipient
 is prohibited. If you received this in error, please contact the
 sender and delete the material from any computer.
 
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 



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



Re: Tomcat on Window XP Pro 64-bit on Intel quad Xenon

2008-03-07 Thread Steve Ochani
On 7 Mar 2008 at 13:54, David Kramer wrote:


 Caldarale, Charles R wrote:
  From: Mark Thomas [mailto:[EMAIL PROTECTED] 
  Subject: Re: Tomcat on Window XP Pro 64-bit on Intel quad Xenon
 
  The 64bit binaries are here:
 
 https://svn.apache.org/repos/asf/tomcat/connectors/trunk/procrun/bin
 /
 
  I think you want the ia64 ones.
  
  No, you definitely do not want the IA64 ones - that's a
 completely
  different, dead-end architecture.
  
  Intel included the AMD64 extensions in current Xeon processors, at
 the
  time calling it em64t.  It's now referred to as just Intel 64,
 which
  makes it very easy to confuse with IA64 (thank you, Intel). 
 Many
  downloads still refer to the architecture as AMD64, giving credit
 to the
  company that invented it.  Many Linux downloads use x86-64 to
  differentiate it from IA64; sun refers to it as x64 rather than
 either
  AMD64 or x86-64.
 
 Excellent info.  Thank you.  However, I'm still stuck.  I downloaded
 the 
 amd64 executables, but when I run them from a DOS window, I get:
 
 [2008-03-07 13:25:28] [420  prunsrv.c] [error]
 The system cannot find the file specified.
 [2008-03-07 13:25:28] [1327 prunsrv.c] [error]
 Load configuration failed
 
 When I try to start the service from the Services admin tool, I get
 Error 1053: Service did not respond to the start or control request
 in 
 a timely fashion.  Who knew that Windows took off points for
 tardiness?
 
 I did some Googling around that convinced me this is a registry
 value 
 problem.  The only references to fixing this, though, are to Richard
 Mundell's Mini-HOWTO for Windows 2003 from 2006.  I am hesitant to
 start 
 plugging in registry values from a four-year-old version of Windows
 into 
 my precious WinXPPro box.
 
 I also noticed that the registry keys mentioned in that HOWTO are 
 different than mine.
 

The other reason for this error could be that the Microsoft C runtime library 
is not installed. 
This has been mentioned on this list before, and here:

http://blog.granilus.com/2007/12/tomcat-wont-boot-due-to-prunsrvc.html


Microsoft C runtime library 

http://www.microsoft.com/downloads/details.aspx?familyid=32bc1bee-a3f9-4c13-9c99-
220b62a191eedisplaylang=en



-Steve O.




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



Re: Class cast exception thrown from jsp servlet

2008-03-07 Thread Steve Ochani
On 7 Mar 2008 at 14:00, Bob Riaz wrote:

 Hello all,
 
 I'm running a JSF application in Netbeans 6.0.
 OS: Windows XP pro
 DB:  SQL Server 2000
 
 I'm running into the following problem (the name of my jsp is
 ResumeList.jsp). The same application is being run on our production
 server
 and it works! Any thoughts on this would be greatly appreciated.
 Many
 thanks!
 
 Bob
 
 java.lang.ClassCastException: java.lang.String cannot be cast to
 java.lang.Boolean

Well, are you trying to cast a String to a boolean in your code?



 at
 javax.faces.component.UIComponentBase.isRendered(UIComponentBase.jav
 a:1078)
 at
 javax.faces.webapp.UIComponentTag.isSuppressed(UIComponentTag.java:8
 84)
 at
 javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:316
 )
 at
 org.apache.jsp.admin.AdminSecure.ResumeList_jsp._jspx_meth_h_005fout
 putText_
 005f6(ResumeList_jsp.java:711)
 at
 org.apache.jsp.admin.AdminSecure.ResumeList_jsp._jspService(ResumeLi
 st_jsp.j
 ava:220)
 at
 org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
 at
 javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
 at
 org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrappe
 r.java:3
 93)
 at
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:
 320)
 at
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
 at
 javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
 at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(App
 lication
 FilterChain.java:290)
 at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(Application
 FilterCh
 ain.java:206)
 at
 org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(Monit
 orFilter
 .java:390)
 at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(App
 lication
 FilterChain.java:235)
 at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(Application
 FilterCh
 ain.java:206)
 at
 org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDis
 patcher.
 java:654)
 at
 org.apache.catalina.core.ApplicationDispatcher.processRequest(Applic
 ationDis
 patcher.java:445)
 at
 org.apache.catalina.core.ApplicationDispatcher.doForward(Application
 Dispatch
 er.java:379)
 at
 org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDi
 spatcher
 .java:292)
 at
 org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispat
 ch(Servl
 etExternalContextImpl.java:419)
 at
 org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(Jsp
 ViewHand
 lerImpl.java:211)
 at
 org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderRe
 sponseEx
 ecutor.java:41)
 at
 org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java
 :132)
 at
 javax.faces.webapp.FacesServlet.service(FacesServlet.java:140)
 at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(App
 lication
 FilterChain.java:290)
 at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(Application
 FilterCh
 ain.java:206)
 at
 org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(Extension
 sFilter.
 java:100)
 at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(App
 lication
 FilterChain.java:235)
 at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(Application
 FilterCh
 ain.java:206)
 at
 org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(Extension
 sFilter.
 java:100)
 at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(App
 lication
 FilterChain.java:235)
 at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(Application
 FilterCh
 ain.java:206)
 at
 org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(Extension
 sFilter.
 java:147)
 at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(App
 lication
 FilterChain.java:235)
 at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(Application
 FilterCh
 ain.java:206)
 at
 org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(Monit
 orFilter
 .java:390)
 at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(App
 lication
 FilterChain.java:235)
 at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(Application
 FilterCh
 ain.java:206)
 at
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapper
 Valve.ja
 va:233)
 at
 org.apache.catalina.core.StandardContextValve.invoke(StandardContext
 Valve.ja
 va:175)
 at
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.
 java:128
 )
 at
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.
 java:102
 )
 at
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVa
 

Re: Why Tomcat take about 15 minutes to start?

2008-02-16 Thread Steve Ochani
Date sent:  Sat, 16 Feb 2008 17:21:13 + (GMT)
From:   Neha Agrawal [EMAIL PROTECTED]
Subject:Re: Why Tomcat take about 15 minutes to start?
To: Tomcat Users List users@tomcat.apache.org
Send reply to:  Tomcat Users List users@tomcat.apache.org

 hi
  but i did not receive it...dont know why?
 can anyone please forward me that email reply to my address
 (if not on the group)
 thanks
 Neha


Mailing list archive:

http://marc.info/?l=tomcat-user




 Markus Schönhaber [EMAIL PROTECTED] wrote: Neha
 Agrawal wrote:

  I have the same problem with almost same configuration( i emailed
  yesterday)..

 And, also yesterday, Christopher answered and pointed you to
 information about a possible cause for this behaviour (and
 corresponding solutions).

  Can anyone through possible light on this..

 Christopher already did.

 Regards
   mks

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




 -
  Get the freedom to save as many mails as you wish. Click here to know
  how.




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



Re: Previous file handle

2008-01-08 Thread Steve Ochani
Date sent:  Wed, 09 Jan 2008 00:00:18 +0200
From:   izlem Gozukeles [EMAIL PROTECTED]
Subject:Previous file handle
To: users@tomcat.apache.org
Send reply to:  Tomcat Users List users@tomcat.apache.org

 Hi,
 I have a Tomcat 5.5 on a Debian GNU/Linux (etch) server.
 Tomcat was running  smoothly for a long time. However, last week, my
 tomcat 5.5 started to have problems. When I want to start tomcat as:
 /etc/init.d/tomcat5.5 start
 
 I get this error message:
 Starting Tomcat servlet engine: tomcat5.51 Previous file handle
 doesn't exists /var/lib/tomcat5.5/logs/catalina_2008-01-08.log
 

Looks like this error is from rotatelogs. Simple fix,
create the file it's complaining is not there with same ownership and 
permissions as the rest 
of the catalina logs and try starting tomcat again.



 I tried re-installation. But it did not work.
 
 What may be the problem?
 
 -- 
 ibrahim izlem GOZUKELES
 
 
 -- 
 
 
 



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



Re: Help with java Lists - followup

2007-12-20 Thread Steve Ochani
On 20 Dec 2007 at 13:01, David kerber wrote:

 Thanks for all the suggestions!  Thanks to you guys and gals, a
 report 
 that had been taking 4 to 5 minutes to process is now taking less
 than 
 10 seconds to generate!
 

Hi,

What was the basic overall solution you ended up with?


-Steve O.




 D
 
 
 David kerber wrote:
  I'm running this app in a tomcat 5.5.x container,I am trying to
 figure 
  out which form of a list is the best for what I need to do here:
 
  I need to have some kind of list or collection that I can search
  quickly for a specific entry, and then start stepping through the
 list 
  item by item from that point.  The items in the list are all of
 the 
  same user-defined class (not primitives or  pre-defined java
 classes).
  My current implementation just uses an iterator starting at the 
  beginning, and just walking through until I find the item I want,
 and 
  continuing to walk from there, but I'm running into performance
 issues 
  with this.
 
  The individual lists aren't particularly big:  single-digits to at
  most a couple hundred items, but I do this processing in a big
 outer 
  loop which will need to scale up to a few thousand iterations of
  different instances of these lists.  What these actually are is 
  individual stores' inventory data, with each list being a list of
  their inventory data for a month or so, and I will eventually need
 to 
  iterate over a couple thousand stores for reporting.
 
  If it seems like I'll never get reasonable speed this way, I could
  switch to calling all the stores' data from the database at once,
  making the lists huge, but only needing to load them once. 
 However, 
  this makes speed in searching the lists much more of an issue, and
 I 
  don't know which way is going to give me the best overall
 performance 
  for this report generation.
 
  Any suggestions are welcome, including suggestions for reworking
 the 
  basic design...
 
  D
 
 
 
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 



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



Re: stdout.log size is increasing

2007-12-13 Thread Steve Ochani
Date sent:  Tue, 11 Dec 2007 01:13:11 -0800 (PST)


   Hi Steve,
   thanks,
   OS is windows 2003.
 
 How can I archive stdout.log in a production environment without
 stopping tomcat?

Hmm, sorry, I don't know how to rotate logs on windows.
On unix you can use cronolog.


   I want that tomcat automatically archives the stdout.log file and
 creates a new one once a certains size is reached. Otherwise the log
 file size raises everyday !
 
 How can I configure logrotate as you mentioned? is it applicable on
 windows as well?
 
   thank you 
 
 Steve Ochani [EMAIL PROTECTED] wrote:
   On 10 Dec 2007 at 1:16, Stefano Martines wrote:
 
  Hi All,
  
  Although the log level is low, the stdout.log size is increasing in
  production day by day. I want that tomcat automatically archives the
  stdout.log file and creates a new one once a certains size is
  reached.
  
  How can I do that?
  
 
 You didn't mention what OS you're using (or Tomcat version for that
 matter) but if you're using unix, try logrotate.
 
 
 
  I want somethink like this:
  
  stdout.log 12 MB
  stdout_1.log 50 MB
  stdout_2.log 50 MB
  stdout_3.log 50 MB
  
  thank you 
  Stefano
  
  
  
  
   Be a better friend, newshound, and know-it-all with
  Yahoo! Mobile. Try it now.
  http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 
  
 
 
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe,
 e-mail: [EMAIL PROTECTED] For additional commands,
 e-mail: [EMAIL PROTECTED]
 
 
 
 -
   Be a better friend, newshound, and know-it-all with Yahoo! Mobile.
   Try it now.
 
 
 -
 Be a better friend, newshound, and know-it-all with Yahoo! Mobile. 
 Try it now.



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



Re: Help with java Lists

2007-12-13 Thread Steve Ochani
Date sent:  Tue, 11 Dec 2007 18:16:12 -0500
From:   Christopher Schultz [EMAIL PROTECTED]
Subject:Re: Help with java Lists
To: Tomcat Users List users@tomcat.apache.org
Send reply to:  Tomcat Users List users@tomcat.apache.org

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 Steve,
 
 Steve Ochani wrote:
  Keeping less data in each node should make searching the list fast.
 
 Huh? I'm pretty sure that pointer dereferencing performance does not
 depend on memory size (ignoring memory paging, of course).
 
Yes correct but as I understood the OP he was searching the CONTENTS/DATA of 
each 
node.

If for ex. you have 100 nodes each having 10MB of data, searching through this 
list will be 
slower than searching through a list of lets say 100 nodes with each node only 
having 1 MB 
of data.


-Steve O.



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



Re: stdout.log size is increasing

2007-12-10 Thread Steve Ochani
On 10 Dec 2007 at 1:16, Stefano Martines wrote:

 Hi All,
 
 Although the log level is low, the stdout.log size is increasing in
 production day by day.
 I want that tomcat automatically archives the stdout.log file and
 creates a new one once a certains size is reached.
 
 How can I do that?
 

You didn't mention what OS you're using (or Tomcat version for that matter) but 
if you're 
using unix, try logrotate.



 I want somethink like this:
 
 stdout.log 12 MB
 stdout_1.log  50 MB
 stdout_2.log  50 MB
 stdout_3.log  50 MB
 
 thank you 
 Stefano
 
 
  
 
 
 Be a better friend, newshound, and 
 know-it-all with Yahoo! Mobile.  Try it now. 
 http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 
 



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



Re: Help with java Lists

2007-12-10 Thread Steve Ochani
On 10 Dec 2007 at 16:02, David kerber wrote:


 I'm running this app in a tomcat 5.5.x container,I am trying to
 figure 
 out which form of a list is the best for what I need to do here:
 
 I need to have some kind of list or collection that I can search
 quickly 
 for a specific entry, and then start stepping through the list item
 by 
 item from that point.  The items in the list are all of the same 
 user-defined class (not primitives or  pre-defined java classes). 
 
 My current implementation just uses an iterator starting at the 
 beginning, and just walking through until I find the item I want,
 and 
 continuing to walk from there, but I'm running into performance
 issues 
 with this.
 
 The individual lists aren't particularly big:  single-digits to at
 most 
 a couple hundred items, but I do this processing in a big outer loop
 which will need to scale up to a few thousand iterations of
 different 
 instances of these lists.  What these actually are is individual
 stores' 
 inventory data, with each list being a list of their inventory data
 for 
 a month or so, and I will eventually need to iterate over a couple
 thousand stores for reporting.

Where is this data coming from?

I would personally use a combo of LinkedList 

http://java.sun.com/j2se/1.5.0/docs/api/java/util/LinkedList.html

where each node would have something like an id of the store and use that id to 
retrieve the 
data from a database.

Keeping less data in each node should make searching the list fast.

Another idea would be to use hashtable of linked lists but it all depends on 
what you're 
searching.


-Steve O.



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



Re: Best Linux distribution

2007-11-15 Thread Steve Ochani
If everyone based their decisions solely on that criteria we would be all using 
pdp-11s.


On 15 Nov 2007 at 6:19, Warren Pace wrote:


 And that is the correct answer.
 
 On Nov 15, 2007 5:54 AM, Peter Crowther
 [EMAIL PROTECTED] wrote:
   From: Andrew Hole [mailto:[EMAIL PROTECTED]
   In your opinion what is the best LINUX distribution for a server
 with
   an instance of Tomcat and an J2EE application of medium load?
 
  The one with which your organisation already has experience. 
 Familiarity and ease of admin is king here.
 
  - Peter
 
 
 
 
 -
  To start a new topic, e-mail: users@tomcat.apache.org
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 



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



Re: Best Linux distribution

2007-11-14 Thread Steve Ochani
 Hi!
 
 In your opinion what is the best LINUX distribution for a server with
 an instance of Tomcat and an J2EE application of medium load?
 
 An opinion taking as a basis the performance and cost.

CentOS, it's a clone of Redhat Enterprise Linux.

Install jdk/jre and tomcat yourself.




-Steve O.





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



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



  1   2   >