Re: Exception report - HTTP Status 500 -

2010-04-16 Thread Warren Pace
If you installed your Tomcat using the Debian package manager, take a
look at the tomcat startup script.  While it's been a number of years
since I used Debian, I seem to remember this from back in the day -
look for a statement referencing security or use security or
something to that effect and comment it out.  Restart Tomcat and see
if that doesn't fix it.

On Fri, Apr 16, 2010 at 4:41 PM, Pid p...@pidster.com wrote:
 On 16/04/2010 19:30, Paul Chany wrote:
 Hi,

 I have installed on my Debian GNU/Linux Lenny system tomcat5.5.

 When the system boot, and in firefox browser opens the tomcat 's page:
 http://localhost:8180/ , I get an error message:
 ---
 type Exception report
 message
 description The server encountered an internal error () that \
 prevented it from fulfilling this request.
 exception
 java.security.AccessControlException: access denied \
 (java.lang.RuntimePermission accessClassInPackage.org.apache.coyote)
 java.security.AccessControlContext.checkPermission\
 (AccessControlContext.java:342)
 java.security.AccessController.checkPermission\
 (AccessController.java:553)
 java.lang.SecurityManager.checkPermission(SecurityManager.java:549)
 java.lang.SecurityManager.checkPackageAccess(SecurityManager.java:1529)
 sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:291)
 java.lang.ClassLoader.loadClass(ClassLoader.java:316)
 java.lang.ClassLoader.loadClass(ClassLoader.java:316)
 java.lang.ClassLoader.loadClass(ClassLoader.java:268)
 java.lang.ClassLoader.loadClassInternal(ClassLoader.java:336)
 org.apache.coyote.http11.InternalOutputBuffer.sendStatus\
 (InternalOutputBuffer.java:452)
 org.apache.coyote.http11.Http11Processor.prepareResponse\
 (Http11Processor.java:1617)
 org.apache.coyote.http11.Http11Processor.action\
 (Http11Processor.java:967)
 org.apache.coyote.Response.action(Response.java:181)
 org.apache.coyote.http11.InternalOutputBuffer.doWrite\
 (InternalOutputBuffer.java:576)
 org.apache.coyote.Response.doWrite(Response.java:560)
 org.apache.catalina.connector.OutputBuffer.realWriteBytes\
 (OutputBuffer.java:361)
 org.apache.tomcat.util.buf.ByteChunk.append(ByteChunk.java:323)
 org.apache.tomcat.util.buf.IntermediateOutputStream.write\
 (C2BConverter.java:236)
 sun.nio.cs.StreamEncoder.writeBytes(StreamEncoder.java:220)
 sun.nio.cs.StreamEncoder.implFlushBuffer(StreamEncoder.java:290)
 sun.nio.cs.StreamEncoder.implFlush(StreamEncoder.java:294)
 sun.nio.cs.StreamEncoder.flush(StreamEncoder.java:140)
 java.io.OutputStreamWriter.flush(OutputStreamWriter.java:229)
 org.apache.tomcat.util.buf.WriteConvertor.flush(C2BConverter.java:185)
 org.apache.tomcat.util.buf.C2BConverter.flushBuffer\
 (C2BConverter.java:128)
 org.apache.catalina.connector.OutputBuffer.realWriteChars\
 (OutputBuffer.java:536)
 org.apache.tomcat.util.buf.CharChunk.append(CharChunk.java:255)
 org.apache.catalina.connector.OutputBuffer.write\
 (OutputBuffer.java:456)
 org.apache.catalina.connector.CoyoteWriter.write\
 (CoyoteWriter.java:143)
 org.apache.jasper.runtime.JspWriterImpl.flushBuffer\
 (JspWriterImpl.java:119)
 org.apache.jasper.runtime.JspWriterImpl.write(JspWriterImpl.java:326)
 org.apache.jasper.runtime.JspWriterImpl.write(JspWriterImpl.java:342)
 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:57)
 sun.reflect.DelegatingMethodAccessorImpl.invoke\
 (DelegatingMethodAccessorImpl.java:43)
 java.lang.reflect.Method.invoke(Method.java:616)
 org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:244)
 java.security.AccessController.doPrivileged(Native Method)
 javax.security.auth.Subject.doAsPrivileged(Subject.java:537)
 org.apache.catalina.security.SecurityUtil.execute\
 (SecurityUtil.java:276)
 org.apache.catalina.security.SecurityUtil.doAsPrivilege\
 (SecurityUtil.java:162)
 

 When I refresh the webpage, I get the Tomcat5.5 homepage, without any
 errors.

 Exactly which version of Tomcat 5.5.nn?


 p

 --
 Regards, Paul Chany
 You can freely correct me in my English.
 http://csanyi-pal.info





 -
 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: [OT] Re: So many timeout values

2009-10-29 Thread warren . pace
I was the happiest man in the world when they delivered our shiny new 
System/34. No more punch cards!
--Original Message--
From: André Warnier
To: Tomcat Users List
ReplyTo: Tomcat Users List
ReplyTo: Tomcat Users List
Subject: Re: [OT] Re: So many timeout values
Sent: Oct 29, 2009 5:08 AM

Peter Crowther wrote:
 2009/10/28 Christopher Schultz ch...@christopherschultz.net:
 Everybody ought to learn a little C at some point. It will make you
 really appreciate a relatively clean language like Java.
 
 ICL PLAN3 asembler, anyone? :-)
 
 More seriously, I agree with you and would add a second reason: doing
 a little work in a language that is reasonably close to the metal
 gives an insight into how the machine actually works, which stands you
 in good stead when thinking about algorithms and resource usage in
 those higher-level languages.
 
As long as we're on the [OT] subject, how about learning about the 
judicious and parcimonious usage of sorted data structures, on a 
computer with 16 Kb of RAM and punched paper cards as its only external 
memory store (IBM System 4, RPG) ?
  2 GB heaps, ha !

Anyone else upping the ante ?

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



Sent from my Verizon Wireless BlackBerry

Re: [OT] Re: So many timeout values

2009-10-29 Thread Warren Pace
On Thu, Oct 29, 2009 at 9:14 AM, Caldarale, Charles R
chuck.caldar...@unisys.com wrote:
 From: André Warnier [mailto:a...@ice-sa.com]
 Subject: Re: [OT] Re: So many timeout values

 As long as we're on the [OT] subject, how about learning about the
 judicious and parcimonious usage of sorted data structures, on a
 computer with 16 Kb of RAM and punched paper cards as its only external
 memory store (IBM System 4, RPG) ?
   2 GB heaps, ha !

 Anyone else upping the ante ?

 Univac 1004: 961 *6-bit* bytes of core memory, programmed via squids on a 
 plugboard.  Handled punch cards, paper tape, and printing; tape drive 
 optional (we didn't have one).  Had a tendency to throw cards all over the 
 room if not handled properly.

  - Chuck

I'd say you win, 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: [OT] Re: So many timeout values

2009-10-29 Thread Warren Pace
On Thu, Oct 29, 2009 at 10:30 AM, André Warnier a...@ice-sa.com wrote:
 Warren Pace wrote:

 On Thu, Oct 29, 2009 at 9:14 AM, Caldarale, Charles R
 chuck.caldar...@unisys.com wrote:

 From: André Warnier [mailto:a...@ice-sa.com]
 Subject: Re: [OT] Re: So many timeout values

 As long as we're on the [OT] subject, how about learning about the
 judicious and parcimonious usage of sorted data structures, on a
 computer with 16 Kb of RAM and punched paper cards as its only external
 memory store (IBM System 4, RPG) ?
  2 GB heaps, ha !

 Anyone else upping the ante ?

 Univac 1004: 961 *6-bit* bytes of core memory, programmed via squids on a
 plugboard.  Handled punch cards, paper tape, and printing; tape drive
 optional (we didn't have one).  Had a tendency to throw cards all over the
 room if not handled properly.

  - Chuck

 I'd say you win, Chuck.

 Yep, I give up.
 I was kind of baiting Chuck, I suspected he would win in the end.
 But I was hoping for someone to come up in-between up with a Cromemco or
 NortStar CPU board, for S-100 bus, with a telex paper tape reader as boot
 device..
 The thing above kind of trumps that however.
 The only 6-bit bytes machine I remember was a Control Data 6600.  It had 10
 of them in a word though, so pretty big integers.

I have to admit that I started out on a IBM System/32.  Much more advanced 
system than anything mentioned in this thread.  I still remember some RPG, 
though...
 -
 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 init script not LSB compliant

2007-11-21 Thread Warren Pace
Most distros have a skeleton script (or something similarly named) in
/etc/init.d.  Poke around in there.

On 11/21/07, Waseem Azhar [EMAIL PROTECTED] wrote:
 Hi All,

 Could anybody tell me how to make tomcat script LSB compliant ? I am using
 Linux High availability project. The heartbeat daemon complaining the
 following:

 info: Running /etc/init.d/tomcat  start
 ERROR: Return code 1 from /etc/init.d/tomcat
 CRIT: Giving up resources due to failure of tomcat
 info: Running /etc/init.d/tomcat  stop
 ERROR: Return code 1 from /etc/init.d/tomcat
 info: Retrying failed stop operation [tomcat]
 ResourceManager[4188]: info: Running /etc/init.d/tomcat  stop
 info: Retrying failed stop operation [tomcat]
 ERROR: Resource script for tomcat probably not LSB-compliant.
 WARN: it (tomcat) MUST succeed on a stop when already stopped

 All I know about LSB is that you should provide start/stop/status options in
 your script which I did but got confused with return values (RETVAL???, exit
 0/1).
 I am using tomcat  heartbeat on Fedora7. Please help, or point to any
 useful resource.

 Thanks,
 -Azhar


-
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-16 Thread Warren Pace
Point taken.  We ran a Vax until last year...

On Nov 15, 2007 10:52 AM, Steve Ochani [EMAIL PROTECTED] wrote:
 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]



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



Re: JDBCRealm

2006-12-19 Thread Warren Pace

 
 From: Wojtek Kusch [EMAIL PROTECTED]
 Date: 2006/12/19 Tue AM 11:52:20 EST
 To: users@tomcat.apache.org
 Subject: JDBCRealm
 
 Hallo!
 
 I am a newbie. I am defining a JDBCRealm for my web application in the 
 server.xml:
 
 Realm  className=org.apache.catalina.realm.JDBCRealm
  driverName=sun.jdbc.odbc.JdbcOdbcDriver
   connectionURL=jdbc:odbc:CATALINA
   userTable=USER userNameCol=username 
 userCredCol=userpass
   userRoleTable=USER_ROLE roleNameCol=role /
 
Wojtek,
 I'm a newbie too.  I think that if you want to use this realm for a 
specific application, you should delete it from your server.xml and create a 
context.xml file in the META-INF folder inside your webapp's directory.   Using 
the docs, here's one I created for MySQL which works.  This will override the 
global user database (which is still in your server.xml) specifically for your 
app.
?xml version=1.0 encoding=UTF-8?
Context
crossContext=true
reloadable=true
Realm className=org.apache.catalina.realm.JDBCRealm
  connectionName=superman
  connectionPassword=loislane
  connectionURL=jdbc:mysql://localhost/authority
  driverName=org.gjt.mm.mysql.Driver
  roleNameCol=role_name
  userCredCol=user_pass
  userNameCol=user_name
  userRoleTable=user_roles
  userTable=users/
/Context
Of course, you'll need to change the driver and connection information and then 
restart tomcat.  Let me know if this helps.
 -
 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 context file entries and TC 5.5

2006-12-12 Thread Warren Pace
look in the META-INF folder inside your webapp's directory maybe
 
 From: Michael Hencin [EMAIL PROTECTED]
 Date: 2006/12/12 Tue AM 10:47:58 EST
 To: 'Tomcat Users List' users@tomcat.apache.org
 Subject: question about context file entries and TC 5.5
 
 I am starting to use TC 5.5, JVM 1.5.0_06-b05 on XP. I use the TC admin to
 edit the context for one of my webapps. I add a datasource (jdbc/mywebapp),
 save and commit the changes. While I can see the entries while using the
 admin, I cannot discern where they have been stored. I looked in the
 server.xml, there is no context file created in conf\Catalina\localhost In
 TC 5.0, I would have seen the entries added into the
 conf\Catalina\localhost\mywebapp.xml.
 
  
 
 I reviewed the http://tomcat.apache.org/tomcat-5.5-doc/config/context.html,
 but cannot see Where it would store entries added via the admin utility.
 Where would these be?
 
  
 
 I notice after I make a change in the admin, the three files in the
 conf\catalin\localhost 
 
  
 
 Manager.xml, host-manager.xml and admin.xml have mod dates corresponding to
 the time I commit my changes. But non have any entries that would resemble
 my additions. 
 
  
 
  
 
  
 
 Michael Hencin
 
 Enginuity Development
 
 815-505-5028
 
  
 
 
 


-
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: RE: Why cannot I put JSVC into a shell script to run

2006-09-05 Thread Warren Pace
Pat,
 This looks to be more a scripting issue than a tomcat or jsvc issue.  May 
I mail you a skeleton script as an attachment off the list?  I've not used 
Fedora for a couple of years so I can't remember the directory layout (where to 
find rc.status, etc) but you can modify the script to point to the particulars 
of your system.  I've tried to make sure my script is LSB-compliant (has to 
start, stop, restart,  return status messages, etc.) 

 
 From: Patrick Wang [EMAIL PROTECTED]
 Date: 2006/09/05 Tue AM 11:29:38 EDT
 To: 'Tomcat Users List' users@tomcat.apache.org
 Subject: RE: Why cannot I put JSVC into a shell script to run
 
 Thanks for the reply,
 
 The linux is Fedora 4.0, tomcat 5.0.28, java is 1.5.0_07.
 
 I did check the Catalina.err, it looks like it cannot find the Bootstrap 
 class,
 which is specified by the classpath directory.
 
 Here is the full script I used.
 
 echo JAVA_HOME: $JAVA_HOME
 echo CATALINA_HOME: $CATALINA_HOME
 echo CATALINA_BASE: $CATALINA_BASE
 echo CATALINA_TMPDIR: $CATALINA_TMPDIR
 echo CLASSPATH: $CLASSPATH
 ./bin/jsvc -jvm server -Djava.endorsed.dirs=./common/endorsed -classpath
 /usr/tomcat/bin/bootstrap.jar -outfile ./logs/catalina.out -errfile
 ./logs/catalina.err org.apache.catalina.startup.Bootstrap
 
 
 
 Thanks
 
 Pat
 
 -Original Message-
 From: Warren Pace [mailto:[EMAIL PROTECTED] 
 Sent: Friday, September 01, 2006 4:10 AM
 To: Tomcat Users List
 Subject: Re: Why cannot I put JSVC into a shell script to run
 
 Pat,
 Send us your entire script.  Also, which Linux, Tomcat, and Java are you
 using?  That'll help us, too.
 warren
  
  From: Patrick Wang [EMAIL PROTECTED]
  Date: 2006/08/31 Thu PM 05:41:32 EDT
  To: users@tomcat.apache.org
  Subject: Why cannot I put JSVC into a shell script to run
  
  Hi,
  
  I can only copy/paste the contents from startTomcat.sh to the console,
  everything works fine. But when I run the command from
  the console startTomcat.sh, it gave me no error, however the
 
 http://www.experts-exchange.com/Programming/Programming_Platforms/Linux_Program
  ming/Q_21972914.html## tomcat doesnot get started, I make sure the execute
  rights is assigned, etc.
  
  One thing is that I make all these strings into one single line in the
  startTomcat.sh, will this have any effect?
  
  ./bin/jsvc -jvm
 
 http://www.experts-exchange.com/Programming/Programming_Platforms/Linux_Program
  ming/Q_21972914.html## server -Xdebug -Xnoagent
  -Xrunjdwp:transport=dt_socket,address=8000,suspend=n,server=y
  -Djava.endorsed.dirs=./common/endorsed -cp ./bin/bootstrap.jar -outfile
  ./logs/catalina.out -errfile ./logs/catalina.err
  org.apache.catalina.startup.Bootstrap
  
   
  
  Do I need to setup the environment variable? However I can run the command
 from
  the console without the environment setup either.
  
   
  
  Pat
  
  
  
 
 
 -
 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: Why cannot I put JSVC into a shell script to run

2006-09-01 Thread Warren Pace
Pat,
Send us your entire script.  Also, which Linux, Tomcat, and Java are you 
using?  That'll help us, too.
warren
 
 From: Patrick Wang [EMAIL PROTECTED]
 Date: 2006/08/31 Thu PM 05:41:32 EDT
 To: users@tomcat.apache.org
 Subject: Why cannot I put JSVC into a shell script to run
 
 Hi,
 
 I can only copy/paste the contents from startTomcat.sh to the console,
 everything works fine. But when I run the command from
 the console startTomcat.sh, it gave me no error, however the
 http://www.experts-exchange.com/Programming/Programming_Platforms/Linux_Program
 ming/Q_21972914.html## tomcat doesnot get started, I make sure the execute
 rights is assigned, etc.
 
 One thing is that I make all these strings into one single line in the
 startTomcat.sh, will this have any effect?
 
 ./bin/jsvc -jvm
 http://www.experts-exchange.com/Programming/Programming_Platforms/Linux_Program
 ming/Q_21972914.html## server -Xdebug -Xnoagent
 -Xrunjdwp:transport=dt_socket,address=8000,suspend=n,server=y
 -Djava.endorsed.dirs=./common/endorsed -cp ./bin/bootstrap.jar -outfile
 ./logs/catalina.out -errfile ./logs/catalina.err
 org.apache.catalina.startup.Bootstrap
 
  
 
 Do I need to setup the environment variable? However I can run the command 
 from
 the console without the environment setup either.
 
  
 
 Pat
 
 
 


-
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: Re: how to use jsvc to stop the tomcat service

2006-08-05 Thread Warren Pace
Patrick,
  I did compile jsvc for tc version 5.5.15 and there may be differences.  
Try the command:
/bin/jsvc -help  that will list your available options.  My version indicates 
that -stop has to be combined with -pidfile.  
 
 From: Patrick Wang [EMAIL PROTECTED]
 Date: 2006/08/04 Fri PM 03:23:39 EDT
 To: 'Patrick Wang' [EMAIL PROTECTED], 
   users@tomcat.apache.org
 Subject: Re: how to use jsvc to stop the tomcat service
 
  
 
 Warren:
 
  
 
 Thanks for the help. I tried to run the command line /bin/jsvc \
 
 *   -stop
 
  
 
 It said -stop is not a recognized option. I listed the jsvc -help and did not
 see such an option for the jsvc command.
 
  
 
 I will do more investigation.
 
  
 
  
 
  
 
 Pat
 
  
 
  
 
 -Original Message-
 From: Warren Pace [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, August 03, 2006 2:28 PM
 To: Tomcat Users List
 Subject: Re: Re: how to use jsvc to stop the tomcat service
 
  
 
 Pat,
 
  See reply below.  I left out the left curly brace in the   if [ ! -x
 ${JSVC_BIN} ]; then
 
 statement.  Sorry, didn't proof-read before I hit send...
 
  
 
  From: Warren Pace [EMAIL PROTECTED]
 
  Date: 2006/08/03 Thu PM 05:20:47 EDT
 
  To: Tomcat Users List users@tomcat.apache.org
 
  Subject: Re: how to use jsvc to stop the tomcat service
 
  
 
  
 
   
 
   From: Patrick Wang [EMAIL PROTECTED]
 
   Date: 2006/08/03 Thu PM 02:27:35 EDT
 
   To: 'Tomcat Users List' users@tomcat.apache.org
 
   Subject: how to use jsvc to stop the tomcat service
 
   
 
   Hi All:
 
   
 
   I am using TOMCAT 5.0.28, I found the following command to start a tomcat
 
   instance on the documentation page, however it did not mention how to stop
 the
 
   tomcat, I am currently using kill processed and wondering if there is 
   a
 more
 
   elegant solution.
 
   
 
   Thanks
 
   
 
   Pat
 
  
 ===
 
   
 
   ./bin/jsvc -Djava.endorsed.dirs=./common/endorsed -cp ./bin/bootstrap.jar 
   \
 
   -outfile ./logs/catalina.out -errfile ./logs/catalina.err \
 
   org.apache.catalina.startup.Bootstrap
 
   
 
  write a shell script for init.d something like the one listed below named
 tomcat5, make it executable and save it in /etc/init.d.  You can specify
 processes you need to have running before tomcat starts,etc.  Since I use jdbc
 realms, I specify that mysql should be running before tomcat starts. Of 
 course,
 you'll have to change these paths to match your system.  Then you can start,
 stop or restart tomcat by typing in /etc/init.d/tomcat5 start or
 /etc/init.d/tomcat5 stop or /etc/init.d/tomcat5 restart.  You'll want to play
 with the Xms/Xmx section to set the minium  maximum system memory you allow.
 
  You should be able to use the script to start tomcat at system startup as
 well.
 
  
 
  #!/bin/sh
 
  # /etc/init.d/tomcat5
 
  #
 
  ### BEGIN INIT INFO
 
  # Provides: tomcat5
 
  # Required-Start:   $network $remote_fs mysql
 
  # X-UnitedLinux-Should-Start:
 
  # Required-Stop:   $network $remote_fs mysql
 
  # X-UnitedLinux-Should-Stop:
 
  # Default-Start:   3 5
 
  # Default-Stop:   0 1 2 6
 
  # Description: Apache-Tomcat Servlet Container
 
  ### END INIT INFO
 
  JAVA_HOME=/usr/lib/jvm/java
 
  CATALINA_HOME=/usr/share/tomcat5
 
  DAEMON_HOME=/usr/share/tomcat5
 
  TOMCAT_USER=tomcat
 
  
 
  TMP_DIR=/var/tmp
 
  PID_FILE=/var/run/jsvc.pid
 
  CATALINA_TMPDIR=/usr/share/tomcat5/temp
 
  CATALINA_OPTS=-Djava.endorsed.dirs=$CATALINA_HOME/common/endorsed
 
  CLASSPATH=\
 
  $JAVA_HOME/lib/tools.jar:\
 
  $CATALINA_HOME/bin/commons-daemon.jar:\
 
  $CATALINA_HOME/bin/bootstrap.jar
 
  JSVC_BIN=$DAEMON_HOME/bin/jsvc
 
  
 
  . /etc/rc.status
 
  rs_reset
 
  
 
  if [! -x $JSVC_BIN} ]; then
 
  echo -n $2 Cannot run Tomcat, ${JSVC_BIN}  not present. 
 
  rc_status -s
 
  exit 5
 
  fi
 
  
 
  case $1 in
 
  start)
 
  #
 
  # Start Tomcat
 
  echo -n Starting service Tomcat 5.0.28 Servlet Container 
 
  checkproc -p ${PID_FILE} ${JSVC_BIN}
 
 case $? in
 
  0) echo -n  - Warning:  daemon already running. ;;
 
  1) echo -n  - Warning: ${PID_FILE} exists.  ;;
 
  esac
 
  $DAEMON_HOME/bin/jsvc \
 
  -user $TOMCAT_USER \
 
  -home $JAVA_HOME \
 
  -Dcatalina.home=$CATALINA_HOME \
 
  -Dcatalina.tmpdir=$CATALINA_TMPDIR \
 
  -Djava.io.tmpdir=$TMP_DIR \
 
  -wait 10 \
 
  -pidfile $PID_FILE \
 
  -outfile $CATALINA_HOME/logs/catalina.out \
 
  -errfile '1' \
 
  $CATALINA_OPTS \
 
-Xms64M -Xmx128M \
 
  -cp $CLASSPATH \
 
  org.apache.catalina.startup.Bootstrap \
 
  chown -R -H --dreference tomcat:tomcat $CATALINA_HOME/*
 
  rc_status -v
 
  ;;
 

 
stop)
 
  # Stop Tomcat
 
  echo -n Stopping service Tomcat 5.0.28 Servlet Container 
 
  $DAEMON_HOME/bin/jsvc \
 
  -stop

Re: how to use jsvc to stop the tomcat service

2006-08-03 Thread Warren Pace

 
 From: Patrick Wang [EMAIL PROTECTED]
 Date: 2006/08/03 Thu PM 02:27:35 EDT
 To: 'Tomcat Users List' users@tomcat.apache.org
 Subject: how to use jsvc to stop the tomcat service
 
 Hi All:
 
 I am using TOMCAT 5.0.28, I found the following command to start a tomcat
 instance on the documentation page, however it did not mention how to stop the
 tomcat, I am currently using kill processed and wondering if there is a 
 more
 elegant solution.
 
 Thanks
 
 Pat
 ===
 
 ./bin/jsvc -Djava.endorsed.dirs=./common/endorsed -cp ./bin/bootstrap.jar \
 -outfile ./logs/catalina.out -errfile ./logs/catalina.err \
 org.apache.catalina.startup.Bootstrap
 
write a shell script for init.d something like the one listed below named 
tomcat5, make it executable and save it in /etc/init.d.  You can specify 
processes you need to have running before tomcat starts,etc.  Since I use jdbc 
realms, I specify that mysql should be running before tomcat starts. Of course, 
you'll have to change these paths to match your system.  Then you can start, 
stop or restart tomcat by typing in /etc/init.d/tomcat5 start or 
/etc/init.d/tomcat5 stop or /etc/init.d/tomcat5 restart.  You'll want to play 
with the Xms/Xmx section to set the minium  maximum system memory you allow.
You should be able to use the script to start tomcat at system startup as well.

#!/bin/sh
# /etc/init.d/tomcat5
#
### BEGIN INIT INFO
# Provides: tomcat5
# Required-Start:   $network $remote_fs mysql
# X-UnitedLinux-Should-Start:
# Required-Stop:   $network $remote_fs mysql
# X-UnitedLinux-Should-Stop:
# Default-Start:   3 5
# Default-Stop:   0 1 2 6
# Description: Apache-Tomcat Servlet Container
### END INIT INFO
JAVA_HOME=/usr/lib/jvm/java
CATALINA_HOME=/usr/share/tomcat5
DAEMON_HOME=/usr/share/tomcat5
TOMCAT_USER=tomcat

TMP_DIR=/var/tmp
PID_FILE=/var/run/jsvc.pid
CATALINA_TMPDIR=/usr/share/tomcat5/temp
CATALINA_OPTS=-Djava.endorsed.dirs=$CATALINA_HOME/common/endorsed
CLASSPATH=\
$JAVA_HOME/lib/tools.jar:\
$CATALINA_HOME/bin/commons-daemon.jar:\
$CATALINA_HOME/bin/bootstrap.jar
JSVC_BIN=$DAEMON_HOME/bin/jsvc

. /etc/rc.status
rs_reset

if [! -x $JSVC_BIN} ]; then
echo -n $2 Cannot run Tomcat, ${JSVC_BIN}  not present. 
rc_status -s
exit 5
fi

case $1 in
start)
#
# Start Tomcat
echo -n Starting service Tomcat 5.0.28 Servlet Container 
checkproc -p ${PID_FILE} ${JSVC_BIN}
   case $? in
0) echo -n  - Warning:  daemon already running. ;;
1) echo -n  - Warning: ${PID_FILE} exists.  ;;
esac
$DAEMON_HOME/bin/jsvc \
-user $TOMCAT_USER \
-home $JAVA_HOME \
-Dcatalina.home=$CATALINA_HOME \
-Dcatalina.tmpdir=$CATALINA_TMPDIR \
-Djava.io.tmpdir=$TMP_DIR \
-wait 10 \
-pidfile $PID_FILE \
-outfile $CATALINA_HOME/logs/catalina.out \
-errfile '1' \
$CATALINA_OPTS \
  -Xms64M -Xmx128M \
-cp $CLASSPATH \
org.apache.catalina.startup.Bootstrap \
chown -R -H --dreference tomcat:tomcat $CATALINA_HOME/*
rc_status -v
;;
  
  stop)
# Stop Tomcat
echo -n Stopping service Tomcat 5.0.28 Servlet Container 
$DAEMON_HOME/bin/jsvc \
-stop \
-pidfile $PID_FILE \
org.apache.catalina.startup.Bootstrap
rc_status -v
;;

  restart|reload|force-reload)
$0 stop
$0 start
;;

  status)
  echo -n Checing status of Tomcat 5.0.28 Servlet Container 
  checkproc -p ${PID_FILE} ${JSVC_BIN}
  rc_status -v
  *)
  echo Usage: $0 {start|stop|restart|reload|force-reload|status}
  exit 1;;
esac
rc_exit




 
 
 -
 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: Re: how to use jsvc to stop the tomcat service

2006-08-03 Thread Warren Pace
Pat,
 See reply below.  I left out the left curly brace in the   if [ ! -x 
${JSVC_BIN} ]; then
statement.  Sorry, didn't proof-read before I hit send...
 
 From: Warren Pace [EMAIL PROTECTED]
 Date: 2006/08/03 Thu PM 05:20:47 EDT
 To: Tomcat Users List users@tomcat.apache.org
 Subject: Re: how to use jsvc to stop the tomcat service
 
 
  
  From: Patrick Wang [EMAIL PROTECTED]
  Date: 2006/08/03 Thu PM 02:27:35 EDT
  To: 'Tomcat Users List' users@tomcat.apache.org
  Subject: how to use jsvc to stop the tomcat service
  
  Hi All:
  
  I am using TOMCAT 5.0.28, I found the following command to start a tomcat
  instance on the documentation page, however it did not mention how to stop 
  the
  tomcat, I am currently using kill processed and wondering if there is a 
  more
  elegant solution.
  
  Thanks
  
  Pat
  ===
  
  ./bin/jsvc -Djava.endorsed.dirs=./common/endorsed -cp ./bin/bootstrap.jar \
  -outfile ./logs/catalina.out -errfile ./logs/catalina.err \
  org.apache.catalina.startup.Bootstrap
  
 write a shell script for init.d something like the one listed below named 
 tomcat5, make it executable and save it in /etc/init.d.  You can specify 
 processes you need to have running before tomcat starts,etc.  Since I use 
 jdbc realms, I specify that mysql should be running before tomcat starts. Of 
 course, you'll have to change these paths to match your system.  Then you can 
 start, stop or restart tomcat by typing in /etc/init.d/tomcat5 start or 
 /etc/init.d/tomcat5 stop or /etc/init.d/tomcat5 restart.  You'll want to play 
 with the Xms/Xmx section to set the minium  maximum system memory you allow.
 You should be able to use the script to start tomcat at system startup as 
 well.
 
 #!/bin/sh
 # /etc/init.d/tomcat5
 #
 ### BEGIN INIT INFO
 # Provides: tomcat5
 # Required-Start:   $network $remote_fs mysql
 # X-UnitedLinux-Should-Start:
 # Required-Stop:   $network $remote_fs mysql
 # X-UnitedLinux-Should-Stop:
 # Default-Start:   3 5
 # Default-Stop:   0 1 2 6
 # Description: Apache-Tomcat Servlet Container
 ### END INIT INFO
 JAVA_HOME=/usr/lib/jvm/java
 CATALINA_HOME=/usr/share/tomcat5
 DAEMON_HOME=/usr/share/tomcat5
 TOMCAT_USER=tomcat
 
 TMP_DIR=/var/tmp
 PID_FILE=/var/run/jsvc.pid
 CATALINA_TMPDIR=/usr/share/tomcat5/temp
 CATALINA_OPTS=-Djava.endorsed.dirs=$CATALINA_HOME/common/endorsed
 CLASSPATH=\
 $JAVA_HOME/lib/tools.jar:\
 $CATALINA_HOME/bin/commons-daemon.jar:\
 $CATALINA_HOME/bin/bootstrap.jar
 JSVC_BIN=$DAEMON_HOME/bin/jsvc
 
 . /etc/rc.status
 rs_reset
 
 if [! -x $JSVC_BIN} ]; then
 echo -n $2 Cannot run Tomcat, ${JSVC_BIN}  not present. 
 rc_status -s
 exit 5
 fi
 
 case $1 in
 start)
 #
 # Start Tomcat
 echo -n Starting service Tomcat 5.0.28 Servlet Container 
 checkproc -p ${PID_FILE} ${JSVC_BIN}
case $? in
 0) echo -n  - Warning:  daemon already running. ;;
 1) echo -n  - Warning: ${PID_FILE} exists.  ;;
 esac
 $DAEMON_HOME/bin/jsvc \
 -user $TOMCAT_USER \
 -home $JAVA_HOME \
 -Dcatalina.home=$CATALINA_HOME \
 -Dcatalina.tmpdir=$CATALINA_TMPDIR \
 -Djava.io.tmpdir=$TMP_DIR \
 -wait 10 \
 -pidfile $PID_FILE \
 -outfile $CATALINA_HOME/logs/catalina.out \
 -errfile '1' \
 $CATALINA_OPTS \
   -Xms64M -Xmx128M \
 -cp $CLASSPATH \
 org.apache.catalina.startup.Bootstrap \
 chown -R -H --dreference tomcat:tomcat $CATALINA_HOME/*
 rc_status -v
 ;;
   
   stop)
 # Stop Tomcat
 echo -n Stopping service Tomcat 5.0.28 Servlet Container 
 $DAEMON_HOME/bin/jsvc \
 -stop \
 -pidfile $PID_FILE \
 org.apache.catalina.startup.Bootstrap
 rc_status -v
 ;;
 
   restart|reload|force-reload)
 $0 stop
 $0 start
 ;;
 
   status)
   echo -n Checing status of Tomcat 5.0.28 Servlet Container 
   checkproc -p ${PID_FILE} ${JSVC_BIN}
   rc_status -v
   *)
   echo Usage: $0 {start|stop|restart|reload|force-reload|status}
   exit 1;;
 esac
 rc_exit
 
 
 
 
  
  
  -
  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: Re: help getting jsvc up and running on sles9 on ibm pseries (power5)

2006-06-17 Thread Warren Pace
I know this doesn't address the compilation problems but why not run tomcat as 
a daemon in a chrooted jail?   
see:  http://www.oreilly.com/catalog/tomcat/chapter/ch06.pdf

 
 From: Christian Andersson [EMAIL PROTECTED]
 Date: 2006/06/15 Thu AM 06:36:47 EDT
 To: Tomcat Users List users@tomcat.apache.org
 Subject: Re: help getting jsvc up and running on sles9 on ibm pseries (power5)
 
 anyone?
 
 Christian Andersson wrote:
  Hi there, I have a small problem that I'. hoping that you can help me solve.
  
  I want to be able to run tomcat on a server that we have available at a
  hosting firm.
  
  I can get tomcat up and running on it witohut problem, as long as I
  don't try to use jsvc..  and I need jsvc sicne I don't want to run tomat
  as root, or manually start tomcat whenever there is a restart of the
  server, etc..
  
  I've tried compiling the jsvc that comes with tomcat, but no luck, so I
  downloaded deamons 1.0.1 and tried to get that compiling, and still no
  luck, after searching/following different hints that I found on the net
  (I'll ge over those later) I do get jsvc compiled, but I still cannot
  run it, because it looks like jsvc is compiled as a 32 bit binary and
  the ibm-java that I have is a 64 bit binary.
  
  anyway here is a list of what I've done (not much)
  
  after downloading and unpacking jsvc I went into
  daemon-1.0.1/src/native/unix and did a ./configure
  --with-java=/opt/ibm/java2-ppc64-50
  
  and got the following result..
  
  --
  *** Current host ***
  checking build system type... ./support/config.guess: unable to guess
  system type
  
  This script, last modified 2001-04-20, has failed to recognize
  the operating system you are using. It is advised that you
  download the most up to date version of the config scripts from
  
  ftp://ftp.gnu.org/pub/gnu/config/
  
  If the version you run (./support/config.guess) is already up to date,
  please
  send the following data and any information you think might be
  pertinent to [EMAIL PROTECTED] in order to provide the needed
  information to handle your system.
  
  config.guess timestamp = 2001-04-20
  
  uname -m = ppc64
  uname -r = 2.6.5-7.252-pseries64
  uname -s = Linux
  uname -v = #1 SMP Tue Feb 14 11:11:04 UTC 2006
  
  /usr/bin/uname -p =
  /bin/uname -X =
  
  hostinfo   =
  /bin/universe  =
  /usr/bin/arch -k   =
  /bin/arch  = ppc64
  /usr/bin/oslevel   =
  /usr/convex/getsysinfo =
  
  UNAME_MACHINE = ppc64
  UNAME_RELEASE = 2.6.5-7.252-pseries64
  UNAME_SYSTEM  = Linux
  UNAME_VERSION = #1 SMP Tue Feb 14 11:11:04 UTC 2006
  configure: error: cannot guess build type; you must specify one
  --
  
  after downloading the newest config.guess from
  http://cvs.savannah.gnu.org/viewcvs/*checkout*/config/config/config.guess
  (the above specified link leads to this file) and replacing the existing
  one in  daemon-1.0.1/src/native/unix/support and once more execute
  configure I get the following...
  
  --
  *** Current host ***
  checking build system type... powerpc64-unknown-linux-gnu
  checking host system type... powerpc64-unknown-linux-gnu
  checking cached host system type... ok
  *** C-Language compilation tools ***
  checking for gcc... gcc
  checking for C compiler default output file name... a.out
  checking whether the C compiler works... yes
  checking whether we are cross compiling... no
  checking for suffix of executables...
  checking for suffix of object files... o
  checking whether we are using the GNU C compiler... yes
  checking whether gcc accepts -g... yes
  checking for gcc option to accept ANSI C... none needed
  checking for ranlib... ranlib
  *** Host support ***
  checking C flags dependant on host system type... failed
  configure: error: Unsupported CPU architecture powerpc64
  --
  
  following information on the net it was suggested that I change the
  configure script so that it accepts powerpc* instead of powerpc
  that is from
  --
  ...
case $host_cpu in
powerpc)
  CFLAGS=$CFLAGS -DCPU=\\\$host_cpu\\\ ;;
  ...
  --
  to
  --
  ...
case $host_cpu in
powerpc*)
  CFLAGS=$CFLAGS -DCPU=\\\$host_cpu\\\ ;;
  ...
  --
  
  the result:
  
  --
  ...
  *** All done ***
  Now you can issue make
  --
  
  make also succedes, but when running 

Re: Re: HTTPD with Tomcat

2006-06-08 Thread Warren Pace
Depending on your layout, with httpd 2.2 there should be a subdirectory named 
extra within the conf directory.  Create an httpd-ajp.conf file inside the 
extra subdirectory.  The following example httpd-ajp.conf file assumes 
mod-proxy-ajp is statically linked. It should get you started...
# Example /conf/extra/httpd-ajp.conf
Location /your_app_name/
ProxyPass ajp://localhost:8009/your_app_name/
/Location
Depending on the location of your conf directory, add an include statement in 
httpd.conf similar the the following:
# AJP - Apache-Tomcat
Include /usr/share/apache2/conf/extra/httpd-ajp.conf

 
 From: [EMAIL PROTECTED]
 Date: 2006/06/07 Wed PM 10:36:09 EDT
 To: Tomcat Users List users@tomcat.apache.org
 Subject: Re: HTTPD with Tomcat
 
 Filip,
 
 Do you happen to have any examples of your mod_proxy setup?  I've been 
 trying to get mod_proxy and mod_proxy_ajp working (apache 2.2.2, tomcat 
 5.5.17), and have been running into a wall.  No matter what I've tried, 
 tomcat always returns a requested resource not available error.
 
 Cheers,
 -- Steven
 
 Filip Hanik - Dev Lists wrote:
  mod_proxy
  - easy to configure
  - scales without limitation
  
  mod_jk
  - hard to compile,configure
  - in our tests, would not scale well at all
  
  Differences are:
  mod_jk supports load balancing and also passing along SSL info to Tomcat.
  mod_proxy is a regular http proxy, remember to set 
  ProxyPassPreserveHost On, and then set the proxyPort directive on your 
  Connector in server.xml
  
  Filip
  
  Mann, Bradley wrote:
  What are the exact differences between mod_proxy and mod_jk? What are
  the benefits/drawbacks of each?
 
  Thanks,
 
  Brad Mann
  Software Engineer - Information Access Services
  HARRIS Corporation / GCSD
  (321) 984-6292
 
  -Original Message-
  From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED] Sent: 
  Wednesday, June 07, 2006 4:45 PM
  To: Tomcat Users List
  Subject: Re: HTTPD with Tomcat
 
  you can also make your own life very easy, by switching to mod_proxy, 
  and voila, everything works :)
 
  Filip
 
 
  Mann, Bradley wrote:
   
  Hello,
 
  I am attempting to setup a scenario in which Tomcat is hosting a web
  application behind HTTPD using the Jakarta Connector. I have installed
  the following on Solaris 10:
 
  Apache HTTPD 2.0.58
  Apache Tomcat 4.1.31
  Apache Jakarta Tomcat Connector 1.2.15
 
  I am able to access HTTPD's document root, and I am able to access my
  web application through Tomcat. I am having trouble, however,
  understanding how to get the two to interact using the connector. I
  believe I have it setup properly, with mod_jk located in the /modules
  directory of HTTPD, and with an Include statement at the end of
  httpd.conf that points to the /conf/auto/mod_jk.conf of Tomcat. Under
  the Server section of server.xml in the /conf directory of Tomcat, I
  have added a listener as follows:
 
  Listener className=org.apache.ajp.tomcat4.config.ApacheConfig
  modJk=/usr/apache/modules/mod_jk.so /
 
  which points to the location of mod_jk.so.
 
  I have added the same line under the Host section, with the added
  attributes:
 
  append=true forwardAll=false
 
  My main question is, how do I get my static content from HTTPD to link
  to my web application under Tomcat. Do I simply add the Tomcat port
  number (8080) to the links in my static content, or is there a more
  eloquent way of doing things? I thought the point of the connector was
  to prevent having to do this so the experience is seamless for the
  
  user.
   
  Any help or ideas are greatly appreciated.
 
  Thanks,
 
  Brad Mann
  Software Engineer - Information Access Services
  HARRIS Corporation / GCSD
  (321) 984-6292
 
 
   
  
  
   
  No virus found in this incoming message.
  Checked by AVG Free Edition.
  Version: 7.1.394 / Virus Database: 268.8.2/357 - Release Date:
  
  6/6/2006
   

 
 

  
  
 
 -
 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: Connecting Apache2.2 with Tomcat 5 using mod_proxy_ajp

2006-05-19 Thread Warren Pace


  PROXY_AJP_.CONF ***
 
 ProxyPass /contact/*.jsp ajp://localhost:8080/contact/
 ProxyPassReverse /contact/*.jsp ajp://localhost:8080/contact/

Use port 8009 (the ajp connector uses 8009) instead of 8080
Add a line in your HTTPD.conf to include your PROXY_AJP_CONF file as below:
Include /etc/apache2/extra/PROXY_AJP_CONF (whatever you've named your file).
Use the Location directive inside your proxy_ajp_conf file
Location /contact/
ProxyPass ajp://localhost:8009/contact/
/Location

 -
 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: Easy Tomcat Linux/Unix Platform

2006-04-30 Thread Warren Pace
SUSE 10 would be a good choice.  It's the Novell group's open source offering.  
After installation  updates you'll have the latest sun jvm (you'll want to add 
inst-source.java to your install sources list), and a very recent MySQL.  The 
only problem is with Tomcat.  I know of no Linux distribution that offers a 
version of Tomcat higner than 5.30 as a package and I believe the latest stable 
version is 5.5.16.  It's not too hard to set up.  
Like most recent Linux distrbutions, you can download and burn a minimal 
install cd and do the rest over the web.  Take your time during the install 
process.  Be sure not to accept the defaults (i.e. your host name would be 
linux, etc., etc).  Debian and Fedora are other good ones (Debian probably has 
the fastest web-based install). My main reason for using SUSE is that it has a 
package which, when installed, allows your machine to emulate a Novell Netware 
server...
 
 From: lrnobs [EMAIL PROTECTED]
 Date: 2006/04/30 Sun AM 11:26:56 EDT
 To: users@tomcat.apache.org
 Subject: Easy Tomcat Linux/Unix Platform
 
 I have a project that I need to deploy on the web.  It was up and
 running as a prototype a few years ago on the current RedHat version of
 that time.  I had professional help on the Linux end at that time.  I
 want to deploy it with a current Linux or BSD version in the next couple
 of days.
 
 I should have it up and running on my windows laptop with netbeans
 version 4.1 and mysql version 5 shortly.  I'm stumbling through that now
 but I expect to have the prototype working again on my laptop in a few
 hours.  I will make a few changes and then be ready to deploy it to the
 web, but not on a windows platform.
 
 I am looking for suggestions for which flavor of Linux to use which will
 be the easiest to setup both in the setup of this Java/JSP/Tomcat/MySQL
 app and web security.  I can leave SSH off which should help a lot but I
 also know I need a strong iptables/iprules setup.  Trying to learn the
 rules rules made me a little dizzy last time.
 
 Last year I talked to a guy about doing this with the current FreeBSD
 version at that time which I believe was 5 and he told me that binaries
 were not supported and I would have to compile from source etc.  I don't
 know if that is still the case today.
 
 I would like to do this myself so the easier the better, yet I need to
 have good security - maybe from a cookie cutter rules file.
 
 Thanks,
 
 Larry Nobs
 
 
 
 
 -
 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: Re: Easy Tomcat Linux/Unix Platform

2006-04-30 Thread Warren Pace
 lrnobs - need to make a correction to my reply.  Regarding versions of Tomcat 
offered as packages with Linux distributions.  Change that to read 5.0.3 not 
5.3.0. 
 
 From: Warren Pace [EMAIL PROTECTED]
 Date: 2006/04/30 Sun PM 01:39:40 EDT
 To: Tomcat Users List users@tomcat.apache.org
 Subject: Re: Easy Tomcat Linux/Unix Platform
 
 SUSE 10 would be a good choice.  It's the Novell group's open source 
 offering.  After installation  updates you'll have the latest sun jvm 
 (you'll want to add inst-source.java to your install sources list), and a 
 very recent MySQL.  The only problem is with Tomcat.  I know of no Linux 
 distribution that offers a version of Tomcat higner than 5.30 as a package 
 and I believe the latest stable version is 5.5.16.  It's not too hard to set 
 up.  
 Like most recent Linux distrbutions, you can download and burn a minimal 
 install cd and do the rest over the web.  Take your time during the install 
 process.  Be sure not to accept the defaults (i.e. your host name would be 
 linux, etc., etc).  Debian and Fedora are other good ones (Debian probably 
 has the fastest web-based install). My main reason for using SUSE is that it 
 has a package which, when installed, allows your machine to emulate a Novell 
 Netware server...
  
  From: lrnobs [EMAIL PROTECTED]
  Date: 2006/04/30 Sun AM 11:26:56 EDT
  To: users@tomcat.apache.org
  Subject: Easy Tomcat Linux/Unix Platform
  
  I have a project that I need to deploy on the web.  It was up and
  running as a prototype a few years ago on the current RedHat version of
  that time.  I had professional help on the Linux end at that time.  I
  want to deploy it with a current Linux or BSD version in the next couple
  of days.
  
  I should have it up and running on my windows laptop with netbeans
  version 4.1 and mysql version 5 shortly.  I'm stumbling through that now
  but I expect to have the prototype working again on my laptop in a few
  hours.  I will make a few changes and then be ready to deploy it to the
  web, but not on a windows platform.
  
  I am looking for suggestions for which flavor of Linux to use which will
  be the easiest to setup both in the setup of this Java/JSP/Tomcat/MySQL
  app and web security.  I can leave SSH off which should help a lot but I
  also know I need a strong iptables/iprules setup.  Trying to learn the
  rules rules made me a little dizzy last time.
  
  Last year I talked to a guy about doing this with the current FreeBSD
  version at that time which I believe was 5 and he told me that binaries
  were not supported and I would have to compile from source etc.  I don't
  know if that is still the case today.
  
  I would like to do this myself so the easier the better, yet I need to
  have good security - maybe from a cookie cutter rules file.
  
  Thanks,
  
  Larry Nobs
  
  
  
  
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


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



Re: Re: access control

2006-04-06 Thread Warren Pace

 
 From: Zohar [EMAIL PROTECTED]
 Date: 2006/04/06 Thu AM 11:46:27 EDT
 To: Tomcat Users List users@tomcat.apache.org, 
   tomcat-user@jakarta.apache.org
 Subject: Re: access control
 
 Can I grant access to some jsp pages and deny access to others (in the same 
 context)?
 
Yes.  I've done it by creating a subdirectory within the webapp and placing 
those jsps I only want admin users to access inside that folder and adding the 
security constraint to web.xml.
Here's a snippet
security-constraint
web-resource-collection
   web-resource-nameUserArea/web-resource-name
   url-pattern//url-pattern
   http-methodGET/http-method
   http-methodPOST/http-method
/web-resource-collection
auth-constraint
  role-namestandard_user/role-name
  role-nameadmin_user/role-name
/auth-constraing
/security-constrant
security-constraint
web-resource-collection
  web-resource-nameAdminArea/web-resource-name
  url-pattern/admin/*/url-pattern
  http-methodGET/http-method
  http-methodPOST/http-method
/web-resource-collection
auth-constraint
  role-nameadmin_user/role-name
/auth-constraint
/security-constraint
There may be a better way, but I was in a hurry

 - Original Message - 
 From: Markus Schönhaber [EMAIL PROTECTED]
 To: Tomcat Users List users@tomcat.apache.org
 Sent: Thursday, April 06, 2006 17:23
 Subject: Re: access control
 
 
  Zohar wrote:
  I have a few servlets which are deployed to different contexts (each
  servlet to its own context). One of these servlets acts as an interface 
  to
  clients, and it forwards the requests from clients to the appropriate
  servlets. I don't want any of the non-interface servlets to be accessible
  to clients (but they must still be accessible to the interface servlet).
  How do I do that?
 
  You could, for example, use a Remote Address Filter or a Remote Host 
  Filter
  for the contexts you don't want to be accessible:
  http://tomcat.apache.org/tomcat-5.5-doc/config/valve.html#Remote%20Address%20Filter
 
  But would you mind to elaborate a little why you put servlets into 
  contexts
  you don't want to be accessible or why it is neccessary for those
  non-interface servlets to be servlets at all?
 
  Regards
   mks
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
  
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


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



Re: mod jk

2006-03-06 Thread Warren Pace

 
 From: Kaushal Shriyan [EMAIL PROTECTED]
 Date: 2006/03/06 Mon AM 05:08:31 EST
 To: users@tomcat.apache.org,  users@httpd.apache.org
 Subject: mod jk
 
 HI All
 
 I am getting
 
 [EMAIL PROTECTED]/apache/bin# ./apachectl start
 Syntax error on line 212 of /home/qrq/suds_20_dir/apache/conf/httpd.conf:
 Invalid command 'JkWorkersFile', perhaps mis-spelled or defined by a
 module not included in the server configuration
 ./apachectl start: httpd could not be started
 [EMAIL PROTECTED]/apache/bin#
 
 Please let me know where i am going wrong
 
Are you loading mod_jk dynamically?
The JkWorkersFile statement needs to appear after the LoadModule statement as 
such:
LoadModule jk_module /usr/lib/apache2/mod_jk.so
JkWorkersFile /etc/apache2/workers.properties

 Regards
 
 Kaushal
 
 -
 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: Re: Problems Starting Tomcat

2006-03-03 Thread Warren Pace

  
  
 Hi all
 
 I'm having problems starting Tomcat after my home account (in which
 Tomcat is installed) was moved from one server to another.
 
 The most visible thing that has changed is that my home directory now
 has a different path. Before the move, my installation of Tomcat
 worked fine. Now it won't start (not quite true, see below). I have
 searched for references to the old home directory path (only in files
 such as conf/Catalina/localhost/my-web-app.xml) and modified them
 accordingly, but this doesn't fix the problem.
 
 I have modified my JAVA_HOME and CATALINA_HOME environment variables
 to point to the correct directories. They are correctly reported when
 I run startup.sh and shutdown.sh.
 
 To be more precise, Tomcat does seem to start, but doesn't seem to
 respond to any HTTP requests. The error that is reported in the logs
 is given at the end of this email, but Google hasn't been able to help
 me shed any light on this. The error makes reference to
 'UserDatabase', but I've never touched such a thing; grepping for it
Chris
If you've never configured a JDBC Realm or a JNDI Datasource Realm then your 
installation can't find tomcat-users.xml.  Look in your new $CATALINA_HOME/conf 
directory and see if the file exists.  Look in server.xml for 
Resource
auth=Container
description=User database that can be updated and saved
name=UserDatabase
type=org.apache.catalina.UserDatabase
pathname=conf/tomcat-users.xml
factory=org.apache.catalina.users.MemoryUserDatabaseFactory/
The entry hould be after GlobalNamingResources

 in the Tomcat directory shows that it's used all over the place, but
 nowhere that I've been playing.
 
 Suggestions are very welcome.
 
 Chris
 
 Error in the catalina.out log:
 
 SEVERE: Catalina.start:
 LifecycleException:  No UserDatabase component found under key
 UserDatabase
 at
 org.apache.catalina.realm.UserDatabaseRealm.start(UserDatabaseRealm.java:259)
 
 at
 org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1075)
 at
 org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478)
 at
 org.apache.catalina.core.StandardService.start(StandardService.java:476)
 at
 org.apache.catalina.core.StandardServer.start(StandardServer.java:2298)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 
 at java.lang.reflect.Method.invoke(Method.java:324)
 at
 org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:284)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:422)
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
  
  
  
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


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



Re: Tomcat5.5 init script on FC4 revisited

2006-02-23 Thread Warren Pace

 
 From: Bob Hartung [EMAIL PROTECTED]
 Date: 2006/02/22 Wed PM 05:35:05 EST
 To: TomcatUsers users@tomcat.apache.org
 Subject: Tomcat5.5 init script on FC4 revisited
 
 Hi all,
I have modified a file from Warren Pace.  After running, I can ps ax 
 | grep jsvc and have two pids but trying to http://localhost:8080 gives 
 a refusal.  I have checked the log files and there is no entry.  If I 
 try to start with the startup.sh file everygthing works including 
 running the shell script as either root or user tomcat.  I have 
 reproduced portions of the file below.  This file is written for SuSE 
 and I am running FC4.  I do not find checkproc on the fedora site.
 
Any and all suggestions appreciated.
Bob,
 You should have a script in /etc/init.d named skeleton which will serve 
as a template.  I believe checkproc is part of the kernel.  Make sure the jsvc 
executable has been copied from $CATALINA_HOME/bin/jsvc-src to 
$CATALINA_HOME/bin.  If you've attempted to start tomcat using jsvc and get a 
refused message when attempting to connect to http://localhost:8080 but then 
run startup.sh and can connect to http://localhost:8080 then I don't believe 
jsvc ever launched.
warren
 
  begin file ---
 #!/bin/sh
 # Copyright (c) 2005 Warren Pace, Charleston, SC, USA
 # init.d script for Apache-Tomcat ver 5.5.12
 # For Open SuSE Linux ver 10.0
 # Free for all - Use at your own risk
 # Author:  Warren Pace [EMAIL PROTECTED]
 #
 # /etc/init.d/tomcat5
 #
 
 
 JAVA_HOME=/usr/local/java
 CATALINA_HOME=/usr/local/tomcat5
 DAEMON_HOME=/usr/local/tomcat5
 TOMCAT_USER=tomcat
 
 TMP_DIR=/var/tmp
 PID_FILE=/var/run/jsvc.pid
 CATALINA_BASE=/usr/local/tomcat5
 CATALINA_TMPDIR=/usr/local/tomcat5/temp
 CATALINA_OPTS=-Djava.endorsed.dirs=$CATALINA_HOME/common/endorsed
 CLASSPATH=\
 $JAVA_HOME/lib/tools.jar:\
 $CATALINA_HOME/bin/commons-daemon.jar:\
 $CATALINA_HOME/bin/bootstrap.jar
 
 JSVC_BIN=$DAEMON_HOME/bin/jsvc
 
 #. /etc/rc.status
 #rc_reset
 
 if [ ! -x ${JSVC_BIN} ]; then
   echo -n $2 Cannot Run Tomcat as a jsvc daemon, ${JSVC_BIN} is not
 installed. 
 # rc_status -s
   exit 5
 fi
 
 case $1 in
   start)
   #
   # Start Tomcat
   #
   echo -n Starting Tomcat 5.5.12 Servlet Engine 
 #   checkproc on installed on FC4 (?)
 # checkproc -p ${PID_FILE} ${JSVC_BIN}
 # case $? in
 # 0) echo -n - Warning: daemon already running.  ;;
 # 1) echo -n - Warning: ${PID_FILE} exists.  ;;
 # esac
   $DAEMON_HOME/bin/jsvc \
   -user $TOMCAT_USER \
   -home $JAVA_HOME \
   -Dcatalina.home=$CATALINA_HOME \
   -Dcatalina.base=$CATALINA_BASE \
   -Dcatalina.tmpdir=$CATALINA_TMPDIR \
   -Djava.io.tmpdir=$TMP_DIR \
   -wait 10 \
   -pidfile $PID_FILE \
   -outfile $CATALINA_HOME/logs/catalina.out \
   -errfile '1' \
   $CATALINA_OPTS \
   -Xms64M -Xmx128M \
   -cp $CLASSPATH \
   org.apache.catalina.startup.Bootstrap \
   #-verbose \
   #-debug \
   chown -R -H --dereference tomcat:tomcat $CATALINA_HOME/*
   chown -R -H --dereference tomcat:tomcat $CATALINA_BASE/*
 # rc_status -v
   ;;
 
 -
 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: Re: Tomcat5.5 init script on FC4 revisited

2006-02-23 Thread Warren Pace

 
 From: Warren Pace [EMAIL PROTECTED]
 Date: 2006/02/23 Thu PM 06:43:49 EST
 To: Tomcat Users List users@tomcat.apache.org
 Subject: Re: Tomcat5.5 init script on FC4 revisited
 
 
  
  From: Bob Hartung [EMAIL PROTECTED]
  Date: 2006/02/22 Wed PM 05:35:05 EST
  To: TomcatUsers users@tomcat.apache.org
  Subject: Tomcat5.5 init script on FC4 revisited
  
  Hi all,
 I have modified a file from Warren Pace.  After running, I can ps ax 
  | grep jsvc and have two pids but trying to http://localhost:8080 gives 
  a refusal.  I have checked the log files and there is no entry.  If I 
  try to start with the startup.sh file everygthing works including 
  running the shell script as either root or user tomcat.  I have 
  reproduced portions of the file below.  This file is written for SuSE 
  and I am running FC4.  I do not find checkproc on the fedora site.
  
 Any and all suggestions appreciated.
 Bob,
  You should have a script in /etc/init.d named skeleton which will 
 serve as a template.  I believe checkproc is part of the kernel.  Make sure 
 the jsvc executable has been copied from $CATALINA_HOME/bin/jsvc-src to 
 $CATALINA_HOME/bin.  If you've attempted to start tomcat using jsvc and get a 
 refused message when attempting to connect to http://localhost:8080 but 
 then run startup.sh and can connect to http://localhost:8080 then I don't 
 believe jsvc ever launched.
 warren
  
Bob,
 I just had another thought.  If you've never written your own init script 
before, you might not know.  You also have to create start and stop symlinks to 
the script (which should be saved in /etc/init.d) in the rcX.d folders for the 
appropriate runlevels.  For instance, in my script the default runlevels are 
noted 3 and 5.  Get a directory listing of /etc/init.d/rc3.d and see where 
network is starting and create a symlink to jsvc which calls it to launch after 
network and another which calls it to stop before network. 
create a start symlink by typing:
ln -s ./tomcat5 S13tomcat5 (make sure to include the . before the /) 
a kill symlink by typing:
ln -s ./tomcat5 K09tomcat5
just make sure the start Sxx is higher than network's and the kill Kxx is 
lower.  Do the same in rc5.d.
I've used FC4 only sparingly but I'm sure there's a an equivalent to YaST for 
configuration of your system where you can do all this from the desktop...
   begin file ---
  #!/bin/sh
  # Copyright (c) 2005 Warren Pace, Charleston, SC, USA
  # init.d script for Apache-Tomcat ver 5.5.12
  # For Open SuSE Linux ver 10.0
  # Free for all - Use at your own risk
  # Author:  Warren Pace [EMAIL PROTECTED]
  #
  # /etc/init.d/tomcat5
  #
  
  
  JAVA_HOME=/usr/local/java
  CATALINA_HOME=/usr/local/tomcat5
  DAEMON_HOME=/usr/local/tomcat5
  TOMCAT_USER=tomcat
  
  TMP_DIR=/var/tmp
  PID_FILE=/var/run/jsvc.pid
  CATALINA_BASE=/usr/local/tomcat5
  CATALINA_TMPDIR=/usr/local/tomcat5/temp
  CATALINA_OPTS=-Djava.endorsed.dirs=$CATALINA_HOME/common/endorsed
  CLASSPATH=\
  $JAVA_HOME/lib/tools.jar:\
  $CATALINA_HOME/bin/commons-daemon.jar:\
  $CATALINA_HOME/bin/bootstrap.jar
  
  JSVC_BIN=$DAEMON_HOME/bin/jsvc
  
  #. /etc/rc.status
  #rc_reset
  
  if [ ! -x ${JSVC_BIN} ]; then
  echo -n $2 Cannot Run Tomcat as a jsvc daemon, ${JSVC_BIN} is not
  installed. 
  #   rc_status -s
  exit 5
  fi
  
  case $1 in
  start)
  #
  # Start Tomcat
  #
  echo -n Starting Tomcat 5.5.12 Servlet Engine 
  #   checkproc on installed on FC4 (?)
  #   checkproc -p ${PID_FILE} ${JSVC_BIN}
  #   case $? in
  #   0) echo -n - Warning: daemon already running.  ;;
  #   1) echo -n - Warning: ${PID_FILE} exists.  ;;
  #   esac
  $DAEMON_HOME/bin/jsvc \
  -user $TOMCAT_USER \
  -home $JAVA_HOME \
  -Dcatalina.home=$CATALINA_HOME \
  -Dcatalina.base=$CATALINA_BASE \
  -Dcatalina.tmpdir=$CATALINA_TMPDIR \
  -Djava.io.tmpdir=$TMP_DIR \
  -wait 10 \
  -pidfile $PID_FILE \
  -outfile $CATALINA_HOME/logs/catalina.out \
  -errfile '1' \
  $CATALINA_OPTS \
  -Xms64M -Xmx128M \
  -cp $CLASSPATH \
  org.apache.catalina.startup.Bootstrap \
  #-verbose \
  #-debug \
  chown -R -H --dereference tomcat:tomcat $CATALINA_HOME/*
  chown -R -H --dereference tomcat:tomcat $CATALINA_BASE/*
  #   rc_status -v
  ;;
  
  -
  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: Does mod_jk work with Tomcat 5.5?

2006-02-21 Thread Warren Pace

 
 From: Brad O'Hearne [EMAIL PROTECTED]
 Date: 2006/02/21 Tue PM 03:35:52 EST
 To: Tomcat Users List users@tomcat.apache.org
 Subject: Does mod_jk work with Tomcat 5.5?
 
 I downloaded the mod_jk binary for my distribution, and the filename was:
 
 jakarta-tomcat-connectors-jk-1.2.14-linux-sles9-x86_64-worker.so
 
 I placed the file in the httpd modules subdirectory, I then added the 
 load directive in my httpd.conf file using the following line:
 
 LoadModule mod_jk 
 modules/jakarta-tomcat-connectors-jk-1.2.14-linux-sles9-x86_64-worker.so
 
 When I restarted apache, I received the following output:
 
 Starting httpd: Syntax error on line 207 of /etc/httpd/conf/httpd.conf:
 Cannot load 
 /etc/httpd/modules/jakarta-tomcat-connectors-jk-1.2.14-linux-sles9-x
 86_64-worker.so into server: 
 /etc/httpd/modules/jakarta-tomcat-connectors-jk-1.2
 .14-linux-sles9-x86_64-worker.so: cannot open shared object file: No 
 such file o
 r directory
 
 Any ideas? Does mod_jk work with Tomcat 5.5?
 
 Thanks
 
 Brad
 
Brad,
 It does work with 5.5 but I've never used a binary distribution.  I've 
always built the connector from source...

 
 
 -
 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: init.d Tomcat5 file modifications

2006-02-21 Thread Warren Pace

 
 From: [EMAIL PROTECTED]
 Date: 2006/02/21 Tue PM 03:18:27 EST
 To: users@tomcat.apache.org
 Subject: init.d Tomcat5 file modifications
 
 Hi all,
   I am a newbie (really new) to the world of java, tomcat, etc.  I have a
 medical program for teaching cases called MIRC installed on Tomcat5.5 and
 Java1.5.0_06.  I installed Tomcat5.5 and the Sun JDK as they are required for
 the application and I could not figure out all the references in the standard
 FC4 packages.  The program works as it is supposed to and the machine is a
 single purpose single processor unit.
 
   My problem is to make it function under /etc/init.d so it will start
 automagically whenever the machine reboots [should be rare, of course!].  I 
 have
 compiled jsvc and copied the Tomcat5.sh file into /etc/init.d. My problem is
 with the editing of this file.
 
 Setup:
   Tomcat installed on:  /mirc/tomcat5  and this is CATALINA_HOME
   Java installed on:/usr/share/jdk1.5.0_06 and JAVA_HOME defined in
 /etc/profile
   DAEMON_HOME:  /mirc/tomcat5/bin  //I'm not sure if this is correct but
I think it is referring to jsvc
   tomcat5 user is present on the system
 
 under the section of Tomcat5 labeled #for multi instances adapt these lines 
 I
 would leave
TMP_DIR=/var/tmp  alone
PID_FILE=/var/run/jsvc.pidalone
CATALINA_BASE=/home/tomcat5/tomcat5/jakarta-tomcat5/build??
   How does CATALINA-BASE differ from CATALINA_HOME??
   Can I just comment it out?
If you're running only one tomcat you can ignore CATALINA_BASE - if it's not 
specified, it defaults to
CATALINA_HOME anyway.
 CATALINA_OPTS='-Djava.library.path=/home/jfclere/jakarta/tomcat-connectors/jni/n
 ative/.libs
 CLASSPATH=\
 $JAVA_HOME=/lib/tools.jar:\  
  This conficts with /etc/profile.  I think it can be commented 
 out.
 $CATALINA_HOME=/bin/commons-daemon.jar:\
 $CATALINA_HOME=/bin/bootstrap.jar
  These two lines can probably be excluded as they contradict
  what is exported from Tomcat5 when it starts up.
 
What the lines above are supposed to be doing are appending info to the 
classpath for jsvc...
drop the =.   It should look like
CLASSPATH=\
$JAVA_HOME/lib/tools.jar:\
$CATALINA_HOME/bin/commons-daemon.jar:\
$CATALINA_HOME/bin/bootstrap.jar

If you'd like, I can send you a copy of my script that you can use as a 
template.
 then in the '  case $1 in
...I can comment out lines referring to any possibly unnecessary lines such
 as $CATALINA_BASE 
 
 To those of you experienced Java users this may seem very stupid, but I am
 having a heck of a time getting a handle on all the pieces and parts that need
 to go together and am not making much headway looking all the disparate parts 
 up.
 
 Thanks for any guidance!
 
 Bob Hartung
   
 
 -
 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: Re: init.d Tomcat5 file modifications

2006-02-21 Thread Warren Pace
 
 From: [EMAIL PROTECTED]
 Date: 2006/02/21 Tue PM 05:46:43 EST
 To: Tomcat Users List users@tomcat.apache.org
 CC: [EMAIL PROTECTED]
 Subject: Re: init.d Tomcat5 file modifications
 
 Warren,
   I would appreciate a copy of your tomcat init file. I will have tomorrow to
 work on it.  Thanks for the offer.
 
 Bob Hartung
 [EMAIL PROTECTED]
 
Bob,
 The file's attached.  I've removed the executable attribute and saved it 
with a .txt extension.  Also have a look in your /etc/init.d directory for a 
script named skeleton this will help you source the rc_status messages for 
your own script.
Warren

 
 snip all before
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
#!/bin/sh
# Copyright (c) 2005 Warren Pace, Charleston, SC, USA
# init.d script for Apache-Tomcat ver 5.5.12
# For Open SuSE Linux ver 10.0
# Free for all - Use at your own risk
# Author:  Warren Pace [EMAIL PROTECTED]
#
# /etc/init.d/tomcat5
#
### BEGIN INIT INFO
# Provides: tomcat5
# Required-Start:   $network $remote_fs mysql
# Required-Stop:$network mysql
# Should-Start: 
# Default-Start:3 5
# Default-Stop: 0 1 2 6
# Description:  Apache-Tomcat 5.5.12 Servlet Engine jsvc daemon
### END INIT INFO

JAVA_HOME=/usr/lib/jvm/java
CATALINA_HOME=/usr/share/tomcat5
DAEMON_HOME=/usr/share/tomcat5
TOMCAT_USER=tomcat

TMP_DIR=/var/tmp
PID_FILE=/var/run/jsvc.pid
CATALINA_BASE=/usr/share/tomcat5
CATALINA_TMPDIR=/usr/share/tomcat5/temp
CATALINA_OPTS=-Djava.endorsed.dirs=$CATALINA_HOME/common/endorsed
CLASSPATH=\
$JAVA_HOME/lib/tools.jar:\
$CATALINA_HOME/bin/commons-daemon.jar:\
$CATALINA_HOME/bin/bootstrap.jar

JSVC_BIN=$DAEMON_HOME/bin/jsvc

. /etc/rc.status
rc_reset

if [ ! -x ${JSVC_BIN} ]; then
echo -n $2 Cannot Run Tomcat as a jsvc daemon, ${JSVC_BIN} is not 
installed. 
rc_status -s
exit 5
fi

case $1 in
start)
#
# Start Tomcat
#
echo -n Starting Tomcat 5.5.12 Servlet Engine  
checkproc -p ${PID_FILE} ${JSVC_BIN}
case $? in
0) echo -n - Warning: daemon already running.  ;;
1) echo -n - Warning: ${PID_FILE} exists.  ;;
esac
$DAEMON_HOME/bin/jsvc \
-user $TOMCAT_USER \
-home $JAVA_HOME \
-Dcatalina.home=$CATALINA_HOME \
-Dcatalina.base=$CATALINA_BASE \
-Dcatalina.tmpdir=$CATALINA_TMPDIR \
-Djava.io.tmpdir=$TMP_DIR \
-wait 10 \
-pidfile $PID_FILE \
-outfile $CATALINA_HOME/logs/catalina.out \
-errfile '1' \
$CATALINA_OPTS \
-Xms64M -Xmx128M \
-cp $CLASSPATH \
org.apache.catalina.startup.Bootstrap \
#-verbose \
#-debug \
chown -R -H --dereference tomcat:tomcat $CATALINA_HOME/*
chown -R -H --dereference tomcat:tomcat $CATALINA_BASE/*
rc_status -v
;;

  stop)
#
# Stop Tomcat
#
echo -n Shutting down Tomcat 5.5.12 Servlet Engine 
$DAEMON_HOME/bin/jsvc \
-stop \
-pidfile $PID_FILE \
org.apache.catalina.startup.Bootstrap
rc_status -v
;;

  restart|reload|force-reload)
$0 stop
$0 start
;;

  status)
echo -n Checking status of Tomcat 5.5.12 Servlet Engine 
checkproc -p ${PID_FILE} ${JSVC_BIN}
rc_status -v
;;

  *)
echo Usage: $0 {start|stop|restart|reload|force-reload|status}
exit 1;;
esac
rc_exit
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: Re: context error

2006-02-17 Thread Warren Pace

 
 From: jacky [EMAIL PROTECTED]
 Date: 2006/02/16 Thu PM 11:08:59 EST
 To: Tomcat Users List users@tomcat.apache.org
 Subject: Re: Re: context error
 
 I added the Context path= docBase=ROOT debug=0/, it still doesn't work
 
  Best Regards.
jacky  

 - Original Message - 
 From: Caldarale, Charles R [EMAIL PROTECTED]
 To: Tomcat Users List users@tomcat.apache.org
 Sent: Friday, February 17, 2006 10:13 AM
 Subject: RE: Re: context error
 
 
  From: jacky [EMAIL PROTECTED]
  Subject: Re: Re: context error
  
  server.xml is the default server.xml:
  
  !-- Tomcat Root Context --
  !--
Context path= docBase=ROOT debug=0/
  --
jacky
 The !-- and -- you have before and after the default context descriptor 
are commenting it out.  Remove those.  I sent you a snippet to try earlier.  
Any luck?
Warren
 
 Part of the problem may be that you have no default Context.  There
 should be one (and only one) Context tag with path=.  If you want
 your app to be the default, you can just set its path to .
 
  - Chuck
 
 
 THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
 MATERIAL and is thus for use only by the intended recipient. If you
 received this in error, please contact the sender and delete the e-mail
 and its attachments from all computers.
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


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



Re: Website on Tomcat- few problems

2006-02-16 Thread Warren Pace

 
 From: harmeek singh jhutty [EMAIL PROTECTED]
 Date: 2006/02/16 Thu PM 03:57:49 EST
 To: users@tomcat.apache.org
 Subject: Website on Tomcat- few problems
 
 Hi Friends,
 I have a JSP/Java/Tomcat website on which I am able to view the images from 
 the outside world but for some reason the images are not gettin resolved 
 locally.You can see the site at:
 www.customsportsplaques.com
 My other question is rite now,I have set the IIS so that any link to 
 www.customsportsplaques.com redirects to 
 www.customsportsplaques.com:8080/home.jsp...is there someway of hiding the 
 port no. and stopping this re-direction.So that anybody clicks the URL and 
 the page comes up with the same URL on the top.
Download and install the isapi_redirect.dll
http://www.apache.org/dist/tomcat/tomcat-connectors/jk/binaries/win32/jk-1.2.15/
Not too tough to configure...start here
http://tomcat.apache.org/connectors-doc/config/iis.html
 Any help would be really appreciated
 Thanks
 Mick
 


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



Re: Re: context error

2006-02-16 Thread Warren Pace

 
 From: jacky [EMAIL PROTECTED]
 Date: 2006/02/15 Wed PM 09:00:29 EST
 To: Tomcat Users List users@tomcat.apache.org
 Subject: Re: Re: context error
 
 hi,
RedHat7.3,  J2sdk1.4.2_10
 server.xml is the default server.xml:

 !-- Tomcat Root Context --
 !--
   Context path= docBase=ROOT debug=0/
 --
 !--Context path=/myworkflow docBase=myworkflow /-- //here, 
 myworkflow is my web app.
Been a while since I used 4.1 - this is from memory.
try
Context path=/myworkflow docBase=myworkflow
  reloadable=true crossContext=true
/Context
   /Host
 
 /Engine
 
   /Service
 
   !-- The MOD_WEBAPP connector is used to connect Apache 1.3 with Tomcat 4.0
as its servlet container. Please read the README.txt file coming with
the WebApp Module distribution on how to build it.
(Or check out the jakarta-tomcat-connectors/webapp CVS repository)
 
To configure the Apache side, you must ensure that you have the
ServerName and Port directives defined in httpd.conf.  Then,
lines like these to the bottom of your httpd.conf file:
 
  LoadModule webapp_module libexec/mod_webapp.so
  WebAppConnection warpConnection warp localhost:8008
  WebAppDeploy examples warpConnection /examples/
 
The next time you restart Apache (after restarting Tomcat, if needed)
the connection will be established, and all applications you make
visible via WebAppDeploy directives can be accessed through Apache.
   --
 
   !-- Define an Apache-Connector Service --
   Service name=Tomcat-Apache
 
 Connector className=org.apache.catalina.connector.warp.WarpConnector
  port=8008 minProcessors=5 maxProcessors=75
  enableLookups=true
  acceptCount=10 debug=0/
 
 !-- Replace localhost with what your Apache ServerName is set to --
 Engine className=org.apache.catalina.connector.warp.WarpEngine
  name=Apache debug=0 appBase=webapps
 
   !-- Global logger unless overridden at lower levels --
   Logger className=org.apache.catalina.logger.FileLogger
   prefix=apache_log. suffix=.txt
   timestamp=true/
 
   !-- Because this Realm is here, an instance will be shared globally --
   Realm className=org.apache.catalina.realm.MemoryRealm /
 
 /Engine
 
   /Service
 
 /Server
 
 
  Best Regards.
jacky  

 - Original Message - 
 From: Warren Pace [EMAIL PROTECTED]
 To: Tomcat Users List users@tomcat.apache.org
 Sent: Wednesday, February 15, 2006 6:42 PM
 Subject: Re: Re: context error
 
 
  
   
   From: jacky [EMAIL PROTECTED]
   Date: 2006/02/14 Tue PM 08:32:56 EST
   To: Tomcat Users List users@tomcat.apache.org, 
   [EMAIL PROTECTED]
   Subject: Re: context error
   
   hi, Mike,
  Do you mean put all directories together? 
   No, we need to separate them. So, any other suggestions about this 
   problem?
   
Best Regards.
  jacky  
   
  Could you send us your server.xml with and without the added context?  I 
  see you're using 4.1.  What OS and what JVM are you using?
  
  
  -
  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: Re: context error

2006-02-15 Thread Warren Pace

 
 From: jacky [EMAIL PROTECTED]
 Date: 2006/02/14 Tue PM 08:32:56 EST
 To: Tomcat Users List users@tomcat.apache.org, 
   [EMAIL PROTECTED]
 Subject: Re: context error
 
 hi, Mike,
Do you mean put all directories together? 
 No, we need to separate them. So, any other suggestions about this problem?
 
  Best Regards.
jacky  
 
Could you send us your server.xml with and without the added context?  I see 
you're using 4.1.  What OS and what JVM are you using?


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



Re: Tomcat 5.5 documentation: how to update website?

2006-02-14 Thread Warren Pace

 
 From: Steve Meredith [EMAIL PROTECTED]
 Date: 2006/02/14 Tue AM 03:50:19 EST
 To: users@tomcat.apache.org
 Subject: Tomcat 5.5 documentation: how to update website?
 
 Hi all
 
 Just spent time getting the Tomcat5.sh script to work as a daemon  
 under linux following the advice on the url:-
 
 
 The Apache Tomcat 5.5 Servlet/JSP Container
 http://tomcat.apache.org/tomcat-5.5-doc/setup.html
 
 quote
 The file $CATALINA_HOME/bin/jsvc/native/tomcat.sh can be used as a  
 template for starting Tomcat automatically at boot time from /etc/ 
 init.d. The file is currently setup for running Tomcat 4.1.x, so it  
 is necessary to edit it and change the classname from  
 BootstrapService to Bootstrap.
 /quote
 
 If only I'd known catalina.sh works 'out of the box'  :-)

Section 1 of the docs - under the Directories and Files heading, second 
paragraph -
These are some of the key tomcat directories all relative to
$CATALINA_HOME
./bin - Startup, shutdown, and other scripts. The *.sh files (for Unix systems) 
are functional duplicates of the *.bat files (for Windows systems). Since the 
Win32 command-line lacks certain functionality, there are some additional files 
in here.

HOWEVER - you're better off for having used jsvc.  Out of the box scrips run 
tc as root user. 
 
 How can I update this page to help let people know there's an easier  
 option to get Tomcat using a startup script with catalina.sh rather  
 than tomcat5.sh?
 
 
 Many thanks
 
 Steve
 
 -
 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: Re: Tomcat 5.5 documentation: how to update website?

2006-02-14 Thread Warren Pace

 
 From: Steve Meredith [EMAIL PROTECTED]
 Date: 2006/02/14 Tue AM 06:27:52 EST
 To: Tomcat Users List users@tomcat.apache.org
 Subject: Re: Tomcat 5.5 documentation: how to update website?
 
 
 On 14 Feb 2006, at 11:05, Warren Pace wrote:
 
 
 
  From: Steve Meredith [EMAIL PROTECTED]
  Date: 2006/02/14 Tue AM 03:50:19 EST
  To: users@tomcat.apache.org
  Subject: Tomcat 5.5 documentation: how to update website?
 
  Hi all
 
  Just spent time getting the Tomcat5.sh script to work as a daemon
  under linux following the advice on the url:-
 
 
  The Apache Tomcat 5.5 Servlet/JSP Container
  http://tomcat.apache.org/tomcat-5.5-doc/setup.html
 
  quote
  The file $CATALINA_HOME/bin/jsvc/native/tomcat.sh can be used as a
  template for starting Tomcat automatically at boot time from /etc/
  init.d. The file is currently setup for running Tomcat 4.1.x, so it
  is necessary to edit it and change the classname from
  BootstrapService to Bootstrap.
  /quote
 
  If only I'd known catalina.sh works 'out of the box'  :-)
 
  Section 1 of the docs - under the Directories and Files heading,  
  second paragraph -
  These are some of the key tomcat directories all relative to
  $CATALINA_HOME
  ./bin - Startup, shutdown, and other scripts. The *.sh files (for  
  Unix systems) are functional duplicates of the *.bat files (for  
  Windows systems). Since the Win32 command-line lacks certain  
  functionality, there are some additional files in here.
  HOWEVER - you're better off for having used jsvc.
  Out of the box scrips run tc as root user.
 Thanks Warren :-)
 I guess I was overwhelmed with the sheer number of config files/ 
 directories involved :)  (startup.sh, catalina.sh, tomcat.sh?)
 All sorted now though.

Oh.  You should have seen me trying to figure this thing out when I first got 
started . . . 
 
 
 
  How can I update this page to help let people know there's an easier
  option to get Tomcat using a startup script with catalina.sh rather
  than tomcat5.sh?
 
 
  Many thanks
 
  Steve
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


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



Re: Tomcat Startup Messages

2006-02-06 Thread Warren Pace

 
 From: [EMAIL PROTECTED]
 Date: 2006/02/06 Mon AM 11:17:08 EST
 To: users@tomcat.apache.org
 Subject: Tomcat Startup Messages
 
 Hello,
 
 although I didn't find an answer whether to have catalina run as
 root proc or under unprivileged uid
 (Charles Cladarale mentioned it was required for binding to low
 ports, for which there's no need in my setup since I so far used
 standard ports which are all well beyond 1023)
 I decided for the latter.
 So I eventually did a 
 chown -R tomcat:apache $CATALINA_HOME
 and restarted the thing with su to tomcat, and with the -security
 switch set
 (albeit with the standard catalina.policy as it came out of the
 tarball so far)
 
 In the catalina.out I stumbled over these entries.
 
Ralph,
 How are you starting Tomcat?  Are you using startup.sh or catalina.sh?  
Did you happen to edit either of these files?  Sounds as if classpath has been 
changed.  
warren
 
 Feb 6, 2006 4:55:17 PM
 org.apache.catalina.core.AprLifecycleListener lifecycleEvent
 INFO: The Apache Tomcat Native library which allows optimal
 performance in production environments was not found on the
 java.library.path:
 /usr/java/jre1.5.0_06/lib/i386/client:/usr/java/jre1.5.0_06/lib/i
 386:/usr/java/jre1.5.0_06/../lib/i386
 
 
 Is it worthwhile installing the Apache Tomcat Native Lib, and
 where would I get it
 (probably somewhere beneath tomcat.apache.org)?
 
 I don't intend to install a JDK on this box (where the NatLib is
 probably shipped with?)
 since this shouldn't be a development box.
 
 
 Feb 6, 2006 4:55:17 PM org.apache.catalina.core.StandardHost
 start
 INFO: XML validation disabled
 
 Does it mean it would run a pre-flight check for non valid XML in
 config files?
 What would it take to enable XML validation?
 
 And finally, what about these errors marked severe?
 
 Feb 6, 2006 4:55:18 PM org.apache.catalina.core.StandardContext
 start
 SEVERE: Error filterStart
 
 Where would I have to setup filters?
 What filters?
 Kind of TCP wrapper, or ACLs?
 
 
 Feb 6, 2006 4:55:18 PM org.apache.catalina.core.StandardContext
 start
 SEVERE: Context [/balancer] startup failed due to previous errors
 Feb 6, 2006 4:55:19 PM
 org.apache.coyote.http11.Http11BaseProtocol start
 
 Right, I haven't yet set up a load balancer.
 But I guess this is optional stuff, isn't it?
 
 
 However, tomcat seems to have started
 
 # ps -fu tomcat
 UIDPID  PPID  C STIME TTY  TIME CMD
 tomcat   22682 1  4 16:55 pts/100:00:02
 /usr/java/jre1.5.0_06/bin/java -Djava.util.logging.ma
 
 
 as a wget of the /manager/list URL shows
 
 
 OK - Listed applications for virtual host localhost
 /webdav:running:0:webdav
 /servlets-examples:running:0:servlets-examples
 /jsp-examples:running:0:jsp-examples
 /balancer:stopped:0:balancer
 /host-manager:running:0:/var/www/tomcat/apache-tomcat-5.5.15/serv
 er/webapps/host-manager
 /tomcat-docs:running:0:tomcat-docs
 /:running:0:ROOT
 /manager:running:0:/var/www/tomcat/apache-tomcat-5.5.15/server/we
 bapps/manager
 
 
 
 
 
 -
 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: RE: context.xml

2006-01-31 Thread Warren Pace

 
 From: Klotz Jr, Dennis [EMAIL PROTECTED]
 Date: 2006/01/30 Mon PM 08:28:10 EST
 To: Tomcat Users List users@tomcat.apache.org
 Subject: RE: context.xml
 
 Thanks Warren for the reply.
 
 Wouldn't that version of the file be deleted when I undeploy?
 
If you're using the manager app to un-deploy the entire folder gets deleted.  
But if you're packaging your app as a .war file, then you always have that copy.
 -Dennis
 
 -Original Message-
 From: Warren Pace [mailto:[EMAIL PROTECTED] 
 Sent: Monday, January 30, 2006 7:41 PM
 To: Tomcat Users List
 Subject: Re: context.xml
 
 
  
  From: Klotz Jr, Dennis [EMAIL PROTECTED]
  Date: 2006/01/30 Mon PM 07:00:03 EST
  To: Tomcat Users List users@tomcat.apache.org
  Subject: context.xml
  
  I thought the name of the xml file located in :
  
  $CATALINA_HOME/conf/[enginename]/[hostname]/
  
  had to match the name of your webapp directory. 
  
  I just read some documentation for 5.5.9 that says otherwise. It
  mentions that under certain conditions it will be created for you. But
 I
  would like to have a persistent xml file that will not be deleted when
 I
  un-deploy the app.
  
 
 save your context file as:
 webapp_name/META-INF/context.xml
 
  Can someone please tell me which is correct?
  
  Regards,
  
  -Dennis
  
  
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


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



RE: RE: context.xml

2006-01-31 Thread Warren Pace

 
 From: Klotz Jr, Dennis [EMAIL PROTECTED]
 Date: 2006/01/31 Tue AM 08:01:01 EST
 To: Tomcat Users List users@tomcat.apache.org
 Subject: RE: RE: context.xml
 
 Thanks again Warren. 
 
 I guess I must be approaching this from the wrong perspective of what
 the designers originally intended.
 
 I am hoping to find a place for a context.xml to live where it will
 never get deleted. That a customer can change and when we give them a
 new war file, the context.xml changes that they have made will stick
 around.
 
 Is there a way to do this that you know of?
 
Dennis,
Short of defining the context in server.xml, there's nothing I can think of.  I 
believe it's still OK to do this in Tomcat 5.0.  I believe it works in 5.5 but 
is frowned upon. I have a feeling this won't be an option in future releases.
Warren

 -Dennis
 
 -Original Message-
 From: Warren Pace [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, January 31, 2006 5:19 AM
 To: Tomcat Users List
 Subject: Re: RE: context.xml
 
 
  
  From: Klotz Jr, Dennis [EMAIL PROTECTED]
  Date: 2006/01/30 Mon PM 08:28:10 EST
  To: Tomcat Users List users@tomcat.apache.org
  Subject: RE: context.xml
  
  Thanks Warren for the reply.
  
  Wouldn't that version of the file be deleted when I undeploy?
  
 If you're using the manager app to un-deploy the entire folder gets
 deleted.  But if you're packaging your app as a .war file, then you
 always have that copy.
  -Dennis
  
  -Original Message-
  From: Warren Pace [mailto:[EMAIL PROTECTED] 
  Sent: Monday, January 30, 2006 7:41 PM
  To: Tomcat Users List
  Subject: Re: context.xml
  
  
   
   From: Klotz Jr, Dennis [EMAIL PROTECTED]
   Date: 2006/01/30 Mon PM 07:00:03 EST
   To: Tomcat Users List users@tomcat.apache.org
   Subject: context.xml
   
   I thought the name of the xml file located in :
   
   $CATALINA_HOME/conf/[enginename]/[hostname]/
   
   had to match the name of your webapp directory. 
   
   I just read some documentation for 5.5.9 that says otherwise. It
   mentions that under certain conditions it will be created for you.
 But
  I
   would like to have a persistent xml file that will not be deleted
 when
  I
   un-deploy the app.
   
  
  save your context file as:
  webapp_name/META-INF/context.xml
  
   Can someone please tell me which is correct?
   
   Regards,
   
   -Dennis
   
   
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


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



Re: context.xml

2006-01-30 Thread Warren Pace

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

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

 Can someone please tell me which is correct?
 
 Regards,
 
 -Dennis
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


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



Re: Re: Are servlet name and class name required in web.xml for tomcat 5.5?

2006-01-25 Thread Warren Pace

 
 From: [EMAIL PROTECTED]
 Date: 2006/01/25 Wed AM 11:13:11 EST
 To: Tomcat Users List users@tomcat.apache.org,  'Tomcat Users List' 
 users@tomcat.apache.org
 CC: Alla Winter [EMAIL PROTECTED]
 Subject: Re: Are servlet name and class name required   in web.xml for tomcat 
 5.5?
 
 
  -- Original message --
 From: Alla Winter [EMAIL PROTECTED]
  For Tomcat 4.x I didn't have to set up anything in web.xml.  But it seems
  that I have to define each servlet name and corresponding class name in
  web.xml in order to make it to work for Tomcat 5.5.  Is that right
  statement? 
  I have a lot of servlets, it seems like it is a lot of work.
  Can not find what info is required in web.xml and what is optional? Can you
  please refer me to that info?
  Thanks 
  
  
  
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
 
 
 Yes, that is correct. Within the servlet element you must have the 
 servlet-name element, which can be any unique name you want, and the 
 servlet-class element which has the real class name. Then within the 
 servlet-mapping element you must have a servlet-name which is the same as 
 one of the names from the servlet section, and you must have a 
 url-pattern element which tells Tomcat the url pattern that it will map to 
 the identified servlet. Here is an example for a servlet called Login:
 
  servlet
 servlet-nameLogin/servlet-name
 servlet-classnet.homeip.coconets.sessionpkg.Logout/servlet-class
   /servlet
 
servlet-mapping
 servlet-nameLogin/servlet-name
 url-pattern/Login/url-pattern
   /servlet-mapping
 
Deployment Descriptor Element Ordering:
icon
display-name
description
distributable
context-param
filter
filter-mapping
listener
servlet
servlet-mapping
session-config
mime-mapping
welcome-file-list
error-page
jsp-config
resource-env-ref
message-destination-ref
resource-ref
security-constraint
login-config
security-role
env-entry
ejb-ref
ejb-local-ref
message-destination
locale-encoding-mapping-list

I think that's all.  I'm pretty sure they're in the right order.
Warren

 -
 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: mod_jk / 503 Error

2006-01-25 Thread Warren Pace

 
 From: Neal Whitley [EMAIL PROTECTED]
 Date: 2006/01/24 Tue PM 05:40:53 EST
 To: users@tomcat.apache.org
 Subject: mod_jk / 503 Error
 
 I have mod_jk / tomcat and apache somewhat working together but I am 
 getting an error when displaying pages via the connector.
 
 Tomcat is set up and works.  I can hit:
 http://www.site.com:8080/examples/
 or
 http://www.site.com:8009/examples/
 
 However, when I try:  http://www.site.com/examples/
 I get a 503 error.  Service Temporarily Unavailable.  The server is 
 temporarily unable to service your request due to maintenance 
 downtime or capacity problems. Please try again later.
 
 What stands out in my mod_jk.log is this line:   trying to connect 
 socket 10 to 127.0.0.1:8009
 
 The system seems to be trying to connect via the local host.  As you 
 can see from my config files below I do not reference localhost or 
 the 127.0.0.1 IP address.  Best I can tell JK should be 
 using  http://www.site.com:8009  to get/pass data to Tomcat from Apache.
 
 Is there a configuration option I am missing?  Or how can I get JK to 
 use the correct location?
 
 Thanks,
 
 Neal
 
 
 
 
 System Specs:
 
 Lixux/Debian
 Apache 1.3.X
 Tomcat 4.1.31
 JK  1.2.14
 
 
 
 mod_jk.log file:
 
 [Tue Jan 24 13:53:01 2006] [23378:] [debug] 
 map_uri_to_worker::jk_uri_worker_map.c (442): Attempting to map URI 
 '/examples/' from 11 maps
 [Tue Jan 24 13:53:01 2006] [23378:] [debug] 
 map_uri_to_worker::jk_uri_worker_map.c (454): Attempting to map 
 context URI '/examples/jsp/security/protected/j_security_check'
 [Tue Jan 24 13:53:01 2006] [23378:] [debug] 
 map_uri_to_worker::jk_uri_worker_map.c (454): Attempting to map 
 context URI '/examples/CompressionTest'
 [Tue Jan 24 13:53:01 2006] [23378:] [debug] 
 map_uri_to_worker::jk_uri_worker_map.c (454): Attempting to map 
 context URI '/examples/SendMailServlet'
 [Tue Jan 24 13:53:01 2006] [23378:] [debug] 
 map_uri_to_worker::jk_uri_worker_map.c (454): Attempting to map 
 context URI '/examples/servletToJsp'
 [Tue Jan 24 13:53:01 2006] [23378:] [debug] 
 map_uri_to_worker::jk_uri_worker_map.c (454): Attempting to map 
 context URI '/examples/servlet/*'
 [Tue Jan 24 13:53:01 2006] [23378:] [debug] 
 map_uri_to_worker::jk_uri_worker_map.c (454): Attempting to map 
 context URI '/examples/*.jsp'
 [Tue Jan 24 13:53:01 2006] [23378:] [debug] 
 map_uri_to_worker::jk_uri_worker_map.c (454): Attempting to map 
 context URI '/examples/snoop'
 [Tue Jan 24 13:53:01 2006] [23378:] [debug] 
 map_uri_to_worker::jk_uri_worker_map.c (454): Attempting to map 
 context URI '/examples/*'
 [Tue Jan 24 13:53:01 2006] [23378:] [debug] 
 map_uri_to_worker::jk_uri_worker_map.c (468): Found a wildchar match 
 ajp13 - /examples/*
 [Tue Jan 24 13:53:01 2006] [23378:] [debug] 
 map_uri_to_worker::jk_uri_worker_map.c (442): Attempting to map URI 
 '/examples/' from 11 maps
 [Tue Jan 24 13:53:01 2006] [23378:] [debug] 
 map_uri_to_worker::jk_uri_worker_map.c (454): Attempting to map 
 context URI '/examples/jsp/security/protected/j_security_check'
 [Tue Jan 24 13:53:01 2006] [23378:] [debug] 
 map_uri_to_worker::jk_uri_worker_map.c (454): Attempting to map 
 context URI '/examples/CompressionTest'
 [Tue Jan 24 13:53:01 2006] [23378:] [debug] 
 map_uri_to_worker::jk_uri_worker_map.c (454): Attempting to map 
 context URI '/examples/SendMailServlet'
 [Tue Jan 24 13:53:01 2006] [23378:] [debug] 
 map_uri_to_worker::jk_uri_worker_map.c (454): Attempting to map 
 context URI '/examples/servletToJsp'
 [Tue Jan 24 13:53:01 2006] [23378:] [debug] 
 map_uri_to_worker::jk_uri_worker_map.c (454): Attempting to map 
 context URI '/examples/servlet/*'
 [Tue Jan 24 13:53:01 2006] [23378:] [debug] 
 map_uri_to_worker::jk_uri_worker_map.c (454): Attempting to map 
 context URI '/examples/*.jsp'
 [Tue Jan 24 13:53:01 2006] [23378:] [debug] 
 map_uri_to_worker::jk_uri_worker_map.c (454): Attempting to map 
 context URI '/examples/snoop'
 [Tue Jan 24 13:53:01 2006] [23378:] [debug] 
 map_uri_to_worker::jk_uri_worker_map.c (454): Attempting to map 
 context URI '/examples/*'
 [Tue Jan 24 13:53:01 2006] [23378:] [debug] 
 map_uri_to_worker::jk_uri_worker_map.c (468): Found a wildchar match 
 ajp13 - /examples/*
 [Tue Jan 24 13:53:01 2006] [23378:] [debug] 
 wc_get_worker_for_name::jk_worker.c (111): found a worker ajp13
 [Tue Jan 24 13:53:01 2006] [23378:] [debug] 
 wc_maintain::jk_worker.c (301): Maintaining worker ajp13
 [Tue Jan 24 13:53:01 2006] [23378:] [debug] 
 init_ws_service::mod_jk.c (479): Service protocol=HTTP/1.1 method=GET 
 host=(null) addrr=68.58.4.70 name=www.site.com port=80 auth=(null) 
 user=(null) laddr=66.33.192.77 raddr=68.58.4.70
 [Tue Jan 24 13:53:01 2006] [23378:] [debug] 
 ajp_get_endpoint::jk_ajp_common.c (2119): acquired 

Re: (newb) Tomcat servlet mapping problem

2006-01-21 Thread Warren Pace

 
 From: Darren Hall [EMAIL PROTECTED]
 Date: 2006/01/20 Fri PM 02:28:22 EST
 To: users@tomcat.apache.org
 Subject: (newb) Tomcat servlet mapping problem
 
 I'm running Tomcat 5.0.30 and Apache 2.0 (both are running fine and without
 errors).
 
 I've connected them using mod_jk2, and I can see that apache is correctly
 forwarding URLs specified in the workers2.properties file correctly.
 
 
 I am now attempting to map a test servlet called SimpleServlet to an URL.
 
 I've deployed the servlet in the directory SimpleServlet. In the
 webapps/SimpleServlet/WEB-INF directory I've added the following web.xml
 file:
 
  
 
 ?xml version=1.0 encoding=ISO-8859-1?
 
 web-app xmlns=http://java.sun.com/xml/ns/j2ee;
 
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
 
 xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee
 http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd;
 
 version=2.4
 
  
 
 servlet
 
 servlet-nameSimpleServlet/servlet-name
 
 servlet-classus.souther.simple.SimpleServlet/servlet-class
 
 /servlet
 
 
 servlet-mapping
 
 servlet-nameSimpleServlet/servlet-name
 
 url-pattern/simple-servlet/url-pattern
 
 /servlet-mapping
 
  
 
 /web-app
 
  
 
 In the ${catalina.home}/conf/Catalina/localhost directory, I've added the
 following SimpleServlet.xml file:
 
  
 
 ?xml version='1.0' encoding='utf-8'?
 
 !-- Make the servlet reloadable --
 
 Context path=/simple-servlet docBase=SimpleServlet reloadable=true
 debug=99
 
   Logger className=org.apache.catalina.logger.FileLogger
 
   directory=logs  prefix=simple. suffix=.log
 
   timestamp=true/
 
 /Context
 
  
 
 In the workers2.properties file (on the Apache side), I've added the
 following entry:
 
  
 
 [uri:localhost/simple-servlet/*]
 
 worker=ajp13:localhost:8009
 
 debug=99
 
  
 
 When I try to hit the URL http://localhost/simple-servlet I get back this
 response from Tomcat:
 
  
 
 HTTP Status 404 -/simple-servlet
 
 type Status report
 
 message /simple-servlet
 
 description The requested resource (/simple-servlet) is not available.
 
 Apache Tomcat / 5.0.30
 
  
 
 Can anyone please tell me why my servlet is not mapped to the URL properly?
 
  
 
 Thanks.
 
  
 
 Darren
 
 
Darren,
 I'm pretty new to this as well.  Here are a couple of things I do know.  
mod_jk2 is deprecated.  That doesn't mean it won't work but all development 
effort has been re-focusted to mod_jk.  It's simple enough to download and 
build.
 1)  Is your servlet in a package (us.souther.simple)?  Did it compile without 
error?
 2)  Generally the directory tree for servlets in packages = 
WEB-INF/classes/us/souther/simple (which is where your web.xml is telling 
tomcat to look for the class file).
 3)  Double-check the path entry in your context tag.  I moved from tomcat 4 to 
tomcat 5.5, skipping the 5.0 releases so I can't provide any insight on the 
context directives (in 5.5 you don't specify a context path).  Just make sure 
it's pointing tomcat to something real.
 4) Some good resources are Jayson Falkner  Kevin Jones book Servlets and JSP 
The J2EE Web Tier, this mailing list, and Google.
Hope this helps.
Warren
 


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



Re: Re: Apache + Tomcat, Tomcat only handles JSP in localhost

2006-01-10 Thread Warren Pace

 
 From: Oded Arbel [EMAIL PROTECTED]
 Date: 2006/01/10 Tue AM 06:59:08 EST
 To: users@tomcat.apache.org
 CC: Caldarale, Charles R [EMAIL PROTECTED]
 Subject: Re: Apache + Tomcat, Tomcat only handles JSP in localhost
 
 On Tuesday, 10 ?January 2006 02:35, Caldarale, Charles R wrote:
   From: Sriram Narayanan [mailto:[EMAIL PROTECTED]
   Subject: Re: Apache + Tomcat, Tomcat only handles JSP in localhost
  
   The link he gave talks about how to have PHP etc along side Tomcat.
 
  PHP can be fairly easily used with Tomcat standalone:
  http://wiki.apache.org/tomcat/UsingPhp
 
  So, I repeat:  What full-fledged features do you think are missing
  from Tomcat?
 
 The most important reason that I use an Apache frontend for tomcat, 
 which is probably not relevant to the original poster, is that under 
 Unix only root processes can open port 80 (the default HTTP port), and 
 so if tomcat is configured to serve pages on port 80, it must run as 
 root. 
 This is a serious security concern. Apache knows how to open port 80 and 
 then change to a non-privileged user, something which AFAIK tomcat - 
 being based on Java which does not support the concept of operating 
 system privileges - cannot do.
 

You can use jsvc to run tomcat as a non-priviledged user on port 80.

 There for, some kind of frontend is required. While we are in the 
 process of providing a frontend, it might as well be Apache which 
 offers additional features: reverse-proxying and caching and support 
 for a huge number of scripting languages (python, perl or ruby 
 anyone ?) and other modules. 
 
 Also - the tomcat support for PHP is really nice and I am planning on 
 trying it out ASAP, but I prefer not to do hacks on production 
 machines, and Apache support for PHP is better integrated and is 
 offered as part of my base operating system - including support for 
 compiled pages, code caches and PHP debugging.
 
 -- 
 Oded
 
 ::..
 Ability is nothing without opportunity.
   -- Napoleon Bonaparte
 
 -
 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]



Two tomcat executables in Windows XP Task Manager

2006-01-10 Thread Warren Pace
OS: Windows XP Professional SP2
Tomcat Version 5.5.12
isapi_redirect.dll
I recently installed Tomcat 5.5.12 on my machine at work.  I had to front-end 
tomcat with IIS because of an existing ASP intranet site that I'm just not 
willing to rewrite.  In Windows task manager, I notice that both tomcat5.exe 
and tomcat5w.exe appear as running processes after system startup.  Is this 
normal?  Both tomcat and isapi_redirect were installed using the Windows 
installer packages.
Thanks



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



Re: Re: Two tomcat executables in Windows XP Task Manager

2006-01-10 Thread Warren Pace
Understood.  Thanks!
 
 From: Hardik Tank [EMAIL PROTECTED]
 Date: 2006/01/10 Tue AM 07:53:22 EST
 To: Tomcat Users List users@tomcat.apache.org
 Subject: Re: Two tomcat executables in Windows XP Task Manager
 
 yes it is normal only. tomcat5w.exe is for tomcat
 service manager and tomcat5.exe is the actual tomcat
 server. if you stop the service tomcat5.exe will go.
 
 rgds,
 Hardik Tank
 
 
 --- Warren Pace [EMAIL PROTECTED] wrote:
 
  OS: Windows XP Professional SP2
  Tomcat Version 5.5.12
  isapi_redirect.dll
  I recently installed Tomcat 5.5.12 on my machine at
  work.  I had to front-end tomcat with IIS because of
  an existing ASP intranet site that I'm just not
  willing to rewrite.  In Windows task manager, I
  notice that both tomcat5.exe and tomcat5w.exe appear
  as running processes after system startup.  Is this
  normal?  Both tomcat and isapi_redirect were
  installed using the Windows installer packages.
  Thanks
  
  
  
 
 -
  To unsubscribe, e-mail:
  [EMAIL PROTECTED]
  For additional commands, e-mail:
  [EMAIL PROTECTED]
  
  
 
 
 Send instant messages to your online friends http://in.messenger.yahoo.com 
 
 -
 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: Re: Apache + Tomcat, Tomcat only handles JSP in localhost

2006-01-10 Thread Warren Pace

 
 From: Oded Arbel [EMAIL PROTECTED]
 Date: 2006/01/10 Tue PM 12:46:14 EST
 To: users@tomcat.apache.org
 CC: Warren Pace [EMAIL PROTECTED]
 Subject: Re: Apache + Tomcat, Tomcat only handles JSP in localhost
 
 On Tuesday, 10 ?January 2006 14:31, Warren Pace wrote:
   The most important reason that I use an Apache frontend for tomcat,
   which is probably not relevant to the original poster, is that
   under Unix only root processes can open port 80 (the default HTTP
   port), and so if tomcat is configured to serve pages on port 80, it
   must run as root.
 
  You can use jsvc to run tomcat as a non-priviledged user on port 80.
 
 That is very interesting - I was not aware of that capability of jsvc. 
 Currently neither of my production operating systems (Mandriva and 
 RedHat) offer this as a package, but I'll check it out.
 
I'm running it on OpenSuSE and have previously run it on Debian and Fedora Core 
4.  None of these distributions offer jsvc as a package either.  The source 
code for jsvc is included with the tomcat binaries in the bin directory.  You 
have to gunzip the file jsvc.tar.gz which will create the subdirectries 
containing the source you'll need to compile.  You'll then need to compile jsvc 
and write your own init.d script.  You'll also need to edit server.xml and 
change the connector port from 8080 to 80.  I'll send you a copy of my init 
script you can used as a template if you'd like but basically it's just 
/etc/skeleton altered to launc jsvc.

 -- 
 Oded
 
 ::..
 For every minute you are angry, you lose sixty seconds of happiness.
 
 -
 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: Re: users Digest of: get.137891

2006-01-01 Thread Warren Pace
Marco,
I used Fedora Core 4 briefly.  I am certain that there's an easier way to go 
about this but  here's what I went through in order to use jsvc on FC 4.
1)To get a more recent JDK, since I couldn't install using Sun's RPM for the 
reasons you listed, I downloaded a binary (tar.gz) and went about the business 
of deleting and recreating all of Fedora's symlinks (etc/alternatives) to point 
to the new JDK.  This took some time but everything java used the new JVM.
2)Next, I inspected the Fedora installation of Tomcat and made a paper list of 
the directory structure and then downloaded a newer version of Tomcat (5.5.9 at 
the time).  
3)Uninstalled the current Tomcat with yum.
4)Decompressed the new Tomcat binaries and moved files according to the Fedora 
layout.
5)Following the instructions at 
http://tomcat.apache.org/tomcat-5.5-doc/setup.html I compiled jsvc
6)Using /etc/skeleton and the example script in 
$CATALINA_HOME/bin/jsvc-src/native as guides, wrote a new tomcat5 script to be 
placed in /etc/init.d to start tomcat as a daemon using jsvc.
7)Added symlinks to the new  /etc/init.d/tomcat5 to /etc/init.d/rc3.d and 
/etc/int.d/rc5.d
I wish I had saved a copy of my script.  Also, you may want to increase the 
amount of memory available by adding a line like -Xms 64M -Xmx128M \ (without 
the quotes) immediately after the $CATALINA_OPTS \ line in the script (just 
make sure that it appears before the -cp $CLASSPATH \ entry.  
 
 From: Marco Rossi [EMAIL PROTECTED]
 Date: 2005/12/30 Fri PM 12:37:06 EST
 To: users@tomcat.apache.org
 CC: [EMAIL PROTECTED]
 Subject: Re: users Digest of: get.137891
 
 Hi Warren,
 Thanks for your script in tomcat users archive. 
 
 I'm using  a plain fedora core 4 with shipped tomcat 5.0.30.
 Due to jdk release problems mentioned in Fedora Core realese note (RPM 
 Package  from SUN overlap namespaces in fedora: I prefer reading it, Fedora 
 overlaps names of Sun sdk rpm)
 
 I tried with two jdk
 I built a 1.4.2_9 from jpackage 
 I brutaly used 1.5.0 rpm from sun 
 
 Let me open up the question, if there anyone in this list who is using jsvc 
 on fedora core ?
 
 If so, which versions are you using ? 
 And which method (rpm from jpackage, tar.gz from apache ..) you used to 
 install it ?
 
 Thanks,
 Marco 
 
 
 From: Warren Pace [EMAIL PROTECTED]
 To: Tomcat Users List users@tomcat.apache.org
 Subject: Re: Jsvc jar
 Date: Thu, 29 Dec 2005 13:07:09 -0500
 
  Which tomcat version are you running and on what 'nix?
  
  From: Marco Rossi 
  Date: 2005/12/29 Thu AM 08:09:31 EST
  To: users@tomcat.apache.org
  Subject: Jsvc jar
  
  Hi all,
  
  I'm newbie to jsvc, I've found in list archive a past discussion on the 
  topic[1]. I'm using the script mentioned here according to my java/tomcat 
  config,but in my catalina.out I see this errror
  
  Java HotSpot(TM) Client VM warning: Can't detect initial thread stack 
  location - find_vma failed
  29/12/2005 13:47:18 30528 jsvc.exec error: Cannot find daemon loader 
  org/apache/commons/daemon/support/DaemonLoader
  29/12/2005 13:47:18 30527 jsvc.exec error: Service exit with a return value 
  of 1
  
  I got a doubt regarding commons-daemon.jar, tomcat documentations states 
  ...Commons-Daemon JAR file is in the Class-Path entry of the 
  bootstrap.jar manifest ..
  But in archive I downloaded from apache  
  http://www.apache.org/dist/jakarta/commons/daemon/binaries/commons-daemon-1.0.1.tar.gz
  I can't find any jar: I find the C code I've compiled but no jar. 
  
  As I newbie I don't understand: I rember thath jar files should be put on 
  the CLASSPATH variable or appended as java option, otherwise in 
  bootstrap.jar I see 
  org/apache/catalina/startup/Bootstrap.class. 
  
  Could someone help me ? 
  Thanks 
  
  
  
   variablle, but I
  [1] http://marc.theaimsgroup.com/?l=tomcat-userm=113400691516240w=2
  

  -
   Yahoo! DSL Something to write home about. Just $16.99/mo. or less
  
 
 
 
 
   
 -
 Yahoo! for Good - Make a difference this year. 
 



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



Re: Jsvc jar

2005-12-29 Thread Warren Pace
Which tomcat version are you running and on what 'nix?
 
 From: Marco Rossi [EMAIL PROTECTED]
 Date: 2005/12/29 Thu AM 08:09:31 EST
 To: users@tomcat.apache.org
 Subject: Jsvc jar
 
 Hi all,
 
 I'm newbie to jsvc, I've found in list archive a past discussion on the 
 topic[1]. I'm using the script mentioned here according to my java/tomcat 
 config,but in my catalina.out I see this errror
 
 Java HotSpot(TM) Client VM warning: Can't detect initial thread stack 
 location - find_vma failed
 29/12/2005 13:47:18 30528 jsvc.exec error: Cannot find daemon loader 
 org/apache/commons/daemon/support/DaemonLoader
 29/12/2005 13:47:18 30527 jsvc.exec error: Service exit with a return value 
 of 1
 
 I got a doubt regarding commons-daemon.jar, tomcat documentations states 
 ...Commons-Daemon JAR file is in the Class-Path entry of the 
 bootstrap.jar manifest ..
 But in archive I downloaded from apache  
 http://www.apache.org/dist/jakarta/commons/daemon/binaries/commons-daemon-1.0.1.tar.gz
 I can't find any jar: I find the C code I've compiled but no jar. 
 
 As I newbie I don't understand: I rember thath jar files should be put on the 
 CLASSPATH variable or appended as java option, otherwise in bootstrap.jar I 
 see 
 org/apache/catalina/startup/Bootstrap.class. 
 
 Could someone help me ? 
 Thanks 
 
 
 
  variablle, but I
 [1] http://marc.theaimsgroup.com/?l=tomcat-userm=113400691516240w=2
 
   
 -
  Yahoo! DSL Something to write home about. Just $16.99/mo. or less
 


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



Re: Re: Tomcat Datasource , can we define them in war file (whithout

2005-12-27 Thread Warren Pace
I'd like to know the answer to this one as well.  Does Tomcat allow for 
per-application realms and can they be of different types (datasource realm, 
memory realm, etc.)?
 
 From: Legolas Woodland [EMAIL PROTECTED]
 Date: 2005/12/27 Tue AM 04:29:37 EST
 To: Tomcat Users List users@tomcat.apache.org
 Subject: Re: Tomcat Datasource , can we define them in war file (whithout
  accessing to Admin console)?
 
 Khawaja Shams wrote:
  Hello,
 I am assuming that you are trying to define this datasource in order to
  do application server managed connection pooling.  The closest I have done
  to what you described is declare a datasource as a global resource in the
  server.xml and refer to it in context definition.  You can define a new
  context in the $CATALINA_HOME/conf/Catalina/localhost/APPNAME.xml. Here is
  an example:
 
  ?xml version=1.0 encoding=UTF-8?
  Context path=/son
ResourceLink
  name=jdbc/teamDB
  global=jdbc/teamDB
  type=javax.sql.DataSource
/
  /Context

 I want to create a data source to have a application server managed pool 
 of connection.
 but the problem is that i have no access to tomcat installation folder , 
 so i can not change anythin in tomcat installation .
 they just allows to upload a war file.
   However, I still needed to put the jdbc jar file in the common/lib.  I am
  not completely sure about this, but for application server to manage your
  datasource, one needs to make the proper jar file available to the app
  server by putting it in the common/lib as it will not look inside each
  deployed directory to perform application independent tasks.  I am also
  curious to know if someone has found a way around this.

 A connection pool is application is application independent ? but i want 
 the connection pool just for my own application.
 I will be happy if any one can tell me a trick to have application 
 server managed pool without changing tomcat installation stuff.
  Best Regards,
  Khawaja Shams
 
  On 12/26/05, Legolas Woodland [EMAIL PROTECTED] wrote:

  Hi
  Thank you for reading my post.
  Is it possible to make a data-source without admin console ?
  I mean by defining the data-source in web.xml or in Context.xml (i think
  i read somewhere that we could put context.xml into meta-inf folder and
  it will act like Context definition in admin console).
 
  is it mandatory that Tomcat shared library folder contain my database
  jdbc driver to have data-source ?
  I mean can we bundle , our JDBC driver inside war file and define the
  data-source in war file too ?
 
  -
  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: Re: access denied to Tomcat manager

2005-12-21 Thread Warren Pace
Could be as simple as not having added a user with manager role to 
tomcat-users.xml.
 
 From: vineesh kumar [EMAIL PROTECTED]
 Date: 2005/12/21 Wed AM 12:58:08 EST
 To: Tomcat Users List users@tomcat.apache.org
 Subject: Re: access denied to Tomcat manager
 
 you may not have access permission to the directory containing the
 manager utils, check the permission of the directory webapps an others
 
 On 12/21/05, Ariel Pashtan [EMAIL PROTECTED] wrote:
  Hi,
 
 
 
  For some reason I cannot access the Tomcat Manager application from the
  Tomcat home page.
 
  While I can access Tomcat Administration, access to the manager is denied:
 
  HTTP Status 403 - Access to the requested resource has been denied
 
 
 
  Any suggestions on how to resolve this?
 
  Thanks for your help!
 
 
 
  Ariel
 
 
 
 
 
 
 
 
 -
 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: RE: Error - processCallbacks status 2

2005-12-21 Thread Warren Pace
Is the LoadModule jk_module line in your httpd.conf commented out?

 
 From: LEBLANC, Damiens [EMAIL PROTECTED]
 Date: 2005/12/21 Wed AM 11:11:47 EST
 To: Martin Gainty [EMAIL PROTECTED]
 CC: users@tomcat.apache.org
 Subject: RE: Error - processCallbacks status 2
 
 Thank you for your response,
 
 But, I have no files mod_jk.conf and mod_jk.properties. The jk handler is 
 compiled with Apache 1.3.33 and I'm working on SUN/Solaris 8 platform. 
 
 I have only:
 
 - httpd.conf which contains (for section 1 and section 2):
 
 ##
 ## httpd.conf -- Apache HTTP server configuration file
 ##   hbergement Entreprise Web Hosting
 ### Section 1: Identification du serveur
 ##
 #ResourceConfig conf/srm.conf
 #AccessConfig conf/access.conf
 ServerName nr0u0194 
 ServerAdmin [EMAIL PROTECTED]
 ServerSignature Off
 
 #LoadModule ssl_modulelibexec/libssl.so
 #LoadModule jk_module libexec/mod_jk.so
 LoadModule php4_modulelibexec/libphp4.so
 #LoadModule php5_modulelibexec/libphp5.so
 #AddModule mod_jk.c
 AddModule mod_php4.c
 #AddModule mod_php5.c
 
 
 
 ### Section 2: Definition des parametres de connections au plugin apj13 
 (tomcat)
 ##-
 JkWorkersFile   /appli/apache/apache_dist/conf/workers.properties
 JkLogFile   /appli/apache/log/httpd/mod_jk.log
 JkLogLevel  debug
 JkLogStampFormat [%a %b %d %H:%M:%S %Y] 
 #JkShmFile  /appli/apache/log/httpd/jksmfile
 #JkShmSize 20M
 
 - worker.properties which contains :
 
 worker.list=ajp13
 worker.ajp13.type=ajp13
 worker.ajp13.host=10.92.41.189
 worker.ajp13.port=8002
 
 Thanks in Advance,
 Damiens.
 
 -Message d'origine-
 De : Martin Gainty [mailto:[EMAIL PROTECTED] 
 Envoyé : mercredi 21 décembre 2005 16:58
 À : LEBLANC, Damiens
 Cc : users@tomcat.apache.org
 Objet : Re: Error - processCallbacks status 2
 
 Hello
 There appears to be a mis-configuration in the jk-handlers
 could you forward the applicable
 /etc/httpd/conf.d/mod_jk.conf 
   AND
 /etc/httpd/conf/mod_jk.properties 
 Anyone else?
 Martin-
 - Original Message - 
 From: LEBLANC, Damiens [EMAIL PROTECTED]
 To: users@tomcat.apache.org
 Sent: Wednesday, December 21, 2005 10:31 AM
 Subject: Error - processCallbacks status 2
 
 
 Hello,
 
  
 
 I'm using :
 
 - Apache 1.3.33 
 
 - Tomcat 5
 
 - mod_jk
 
  
 
 I have  processCallbacks status 2  in the log catalina.out
 . This error appends frequently. Does anyone met this problem.
 
  
 
 Thank you in advance for help,
 
 Damiens.
 
 
 -
 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: Re: problem with stopping Tomcat

2005-12-20 Thread Warren Pace
Marju,
 Glad to hear that.
Warren
 
 From: marju jalloh [EMAIL PROTECTED]
 Date: 2005/12/20 Tue PM 01:49:31 EST
 To: Tomcat Users List users@tomcat.apache.org
 Subject: Re: Re: problem with stopping Tomcat
 
 Warren I have solved it. The server.xml and web.xml were currupt.I replace 
 them with the original server.xml and web.xml  configuration file and 
 rebooted no error message and its working perfact.
 
 Advice for everyone.Always backup the original config file or the last 
 working config file so that you can fall on it when the need arises
 
 Thanks Warren for your concern
 Marju
 
 Warren Pace [EMAIL PROTECTED] wrote: mariju,
 This is puzzling.  At this point, I would do exactly what you're 
 planning.  Good thing you saved the original files . . . after that, I'm at a 
 loss short of removing the app and re-installing with apt.
  
  From: marju jalloh 
  Date: 2005/12/19 Mon PM 02:18:22 EST
  To: Tomcat Users List 
  Subject: Re: Re: problem with stopping Tomcat
  
  no I did not use apt. It was working but now on rebooting I got the 
  following error
  INFO: Initializing Coyote HTTP/1.1 on http-8080
  ServerLifecycleListener: createMBeans: MBeanException
  java.lang.Exception: ManagedBean is not found with Ajp13Connector
  at 
  org.apache.catalina.mbeans.MBeanUtils.createMBean(MBeanUtils.java:180)
  at 
  org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerLifecycleListener.java:355)
  at 
  org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerLifecycleListener.java:807)
  at 
  org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerLifecycleListener.java:781)
  at 
  org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerLifecycleListener.java:325)
  at 
  org.apache.catalina.mbeans.ServerLifecycleListener.lifecycleEvent(ServerLifecycleListener.java:179)
  at 
  org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
  at 
  org.apache.catalina.core.StandardServer.start(StandardServer.java:2136)
  at org.apache.catalina.startup.Catalina.start(Catalina.java:463)
  at org.apache.catalina.startup.Catalina.execute(Catalina.java:350)
  at org.apache.catalina.startup.Catalina.process(Catalina.java:129)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at 
  sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  at 
  sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  at java.lang.reflect.Method.invoke(Method.java:585)
  at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:156)
  Starting service Tomcat-Standalone
  Apache Tomcat/4.1.31
  Sep 9, 2005 1:07:28 AM org.apache.commons.digester.Digester fatalError
  SEVERE: Parse Fatal Error at line 2 column 83: The system identifier must 
  begin with either a single or double quote character.
  org.xml.sax.SAXParseException: The system identifier must begin with either 
  a single or double quote character.
  at 
  org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown 
  Source)
  
  I am now tryinh to sutituted my server.xml and web.xml fiel with the 
  original and see if it would work
  
  thanks
  Marju
  
  Warren Pace  wrote: Did you originally install Tomcat using apt?  The 
  Debian package configures Tomcat to listen on port 8180.  
   
   From: marju jalloh 
   Date: 2005/12/18 Sun PM 04:52:50 EST
   To: Tomcat Users List 
   Subject: Re: problem with stopping Tomcat
   
   Sorry that I did`nt include these information
   I`m using Tomcat 1.4.27  on linux Debian(serge). Tomcat start authomatic 
   at startup.But during development I use shutdown.sh and startup.sh in the 
   TOMECAT_HOME/bin directory
   eg
   shutdown.shto stop tomcat
   startup.sh to start tomcat
   
   Thanks,
   Byfour
   
   Steve Dodge  wrote: What's you environment? What version of Tomcat?  What 
   command are you 
   using to start it?
   
   marju jalloh wrote:
   
Hi everyone
   I havae problem with stopping tomcat.When I start it it show no sign of 
   error but I can`t get to my http:localhost:8080/ page if I tried to 
   restart Tomcat by sotpping and the starting I got thefollowing error 
   during stopping
   
   Catalina.stop: java.net.ConnectException: Connection refused
   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:364)
   at java.net.Socket.connect(Socket.java:507)
   at java.net.Socket.connect(Socket.java:457)
   at java.net.Socket.(Socket.java:365

Re: RE: Add application

2005-12-19 Thread Warren Pace
Yep!  Thanks, Chuck.
 
 From: Caldarale, Charles R [EMAIL PROTECTED]
 Date: 2005/12/18 Sun PM 04:58:05 EST
 To: Tomcat Users List users@tomcat.apache.org
 Subject: RE: Add application
 
  From: Warren Pace [mailto:[EMAIL PROTECTED] 
  Subject: Re: Add application
  
  or create an xml file with the same name as your 
  webapp (i.e. BookApps.xml ) in $CATALINA_HOME/conf.
 
 That should be conf/Catalina/host_name (usually localhost), not just
 conf.
 
  - Chuck
 
 
 THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
 MATERIAL and is thus for use only by the intended recipient. If you
 received this in error, please contact the sender and delete the e-mail
 and its attachments from all computers.
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


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



Re: Re: problem with stopping Tomcat

2005-12-19 Thread Warren Pace
Did you originally install Tomcat using apt?  The Debian package configures 
Tomcat to listen on port 8180.  
 
 From: marju jalloh [EMAIL PROTECTED]
 Date: 2005/12/18 Sun PM 04:52:50 EST
 To: Tomcat Users List users@tomcat.apache.org
 Subject: Re: problem with stopping Tomcat
 
 Sorry that I did`nt include these information
 I`m using Tomcat 1.4.27  on linux Debian(serge). Tomcat start authomatic at 
 startup.But during development I use shutdown.sh and startup.sh in the 
 TOMECAT_HOME/bin directory
 eg
 shutdown.shto stop tomcat
 startup.sh to start tomcat
 
 Thanks,
 Byfour
 
 Steve Dodge [EMAIL PROTECTED] wrote: What's you environment? What version 
 of Tomcat?  What command are you 
 using to start it?
 
 marju jalloh wrote:
 
  Hi everyone
 I havae problem with stopping tomcat.When I start it it show no sign of 
 error but I can`t get to my http:localhost:8080/ page if I tried to restart 
 Tomcat by sotpping and the starting I got thefollowing error during stopping
 
 Catalina.stop: java.net.ConnectException: Connection refused
 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:364)
 at java.net.Socket.connect(Socket.java:507)
 at java.net.Socket.connect(Socket.java:457)
 at java.net.Socket.(Socket.java:365)
 at java.net.Socket.(Socket.java:178)
 at org.apache.catalina.startup.Catalina.stop(Catalina.java:532)
 at org.apache.catalina.startup.Catalina.execute(Catalina.java:352)
 at org.apache.catalina.startup.Catalina.process(Catalina.java:129)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at 
  sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at 
  sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:585)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:156)
 
 
 I googled to no avail. from ps -aux there is no tomcat process running.
 
 Can anyone help
 
 
 __
 Do You Yahoo!?
 Tired of spam?  Yahoo! Mail has the best spam protection around 
 http://mail.yahoo.com 
   
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 __
 Do You Yahoo!?
 Tired of spam?  Yahoo! Mail has the best spam protection around 
 http://mail.yahoo.com 
 


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



Re: Add application

2005-12-18 Thread Warren Pace
either create a subdirectory of the top-level directory of your webapp named 
META-INF and place your context-specific information in a file named 
context.xml or create an xml file with the same name as your webapp (i.e. 
BookApps.xml ) in $CATALINA_HOME/conf.  Both methods have worked for me in ver 
5.5.12 on Linux
 
 From: Florian Lindner [EMAIL PROTECTED]
 Date: 2005/12/18 Sun PM 01:37:35 EST
 To: users@tomcat.apache.org
 Subject: Add application
 
 Hello,
 I'm just in the process of learnung J2EE / Serlets / JSPs with Tomcat.
 My book tells me that I should add the XMl snippet:
 
 Context path=/BookApps
 docBase=another/path
 debug=0
 reloadable=true
 crossContext=true /
 
 to the ./conf/server.xml. Since there is no other Context entry like that in 
 the server.xml I doubt that this place is wrong (in my Tomcat version 
 5.5.14).
 
 What is right place to put that? If it is server.xml what should be the 
 parent 
 element of it?
 
 Thanks,
 
 Florian
 
 -
 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: Re: problem with stopping Tomcat

2005-12-18 Thread Warren Pace
And one other question - is any other app listening in on port 8080? 
 
 From: Steve Dodge [EMAIL PROTECTED]
 Date: 2005/12/18 Sun PM 04:39:00 EST
 To: Tomcat Users List users@tomcat.apache.org
 Subject: Re: problem with stopping Tomcat
 
 What's you environment? What version of Tomcat?  What command are you 
 using to start it?
 
 marju jalloh wrote:
 
  Hi everyone
 I havae problem with stopping tomcat.When I start it it show no sign of 
 error but I can`t get to my http:localhost:8080/ page if I tried to restart 
 Tomcat by sotpping and the starting I got thefollowing error during stopping
 
 Catalina.stop: java.net.ConnectException: Connection refused
 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:364)
 at java.net.Socket.connect(Socket.java:507)
 at java.net.Socket.connect(Socket.java:457)
 at java.net.Socket.init(Socket.java:365)
 at java.net.Socket.init(Socket.java:178)
 at org.apache.catalina.startup.Catalina.stop(Catalina.java:532)
 at org.apache.catalina.startup.Catalina.execute(Catalina.java:352)
 at org.apache.catalina.startup.Catalina.process(Catalina.java:129)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at 
  sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at 
  sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:585)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:156)
 
 
 I googled to no avail. from ps -aux there is no tomcat process running.
 
 Can anyone help
 
 
 __
 Do You Yahoo!?
 Tired of spam?  Yahoo! Mail has the best spam protection around 
 http://mail.yahoo.com 
   
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


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



Re: Re: MultipartRequest problem

2005-12-16 Thread Warren Pace
Is the servlet part of a package in your webapp?  MultipartRequest may be 
another java class on your box.

 
 From: Franklin Phan [EMAIL PROTECTED]
 Date: 2005/12/15 Thu PM 06:57:12 EST
 To: Tomcat Users List users@tomcat.apache.org
 Subject: Re: MultipartRequest problem
 
 I downloaded Tomcat 3.3.2 and extracted the servlet.jar, which should be 
 2.2-complient, but it doesn't appear to contain MultipartRequest.  So, I'm at 
 a lost here.  The problem servlet was 
 indeed compiled over a year ago and has been running since.
 
 
 Franklin Phan wrote:
  I have an old servlet that I need to recompile but cannot because it 
  references MultipartRequest class.  The servlet imports the following 
  packages:
  
  import java.io.*;
  import java.sql.*;
  import java.util.*;
  import javax.servlet.*;
  import javax.xml.parsers.*;
  import org.xml.sax.*;
  import org.w3c.dom.*;
  
  I nothing about a MultipartRequest class in anyone of the above.  I can 
  venture a guess that it was a class in the javax.servlet package back in 
  the Servlet 2.2 days, but there are no Javadocs for Servlet 2.2 
  implementation on the Jakarta site for me to confirm my guess.
  
  I don't see links on Jakarta that points to any servlet version 
  implementations.  If only I can download a JAR file, I'd be able to 
  recompile.
  
  Can someone give me a hint here?
  
  Thanks.
  
  
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
  
  
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


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



RE: Tomcat 5 error 404

2005-12-14 Thread Warren Pace
Just a shot in the dark . . . is TC4 still listening on port 8080?

On Wed, 2005-12-14 at 17:32 -0600, Bliesner, Christopher P wrote:
 Yes, I will check on that...thanks for the direction and the link below
 has the same 404 effect. 
 
 -Original Message-
 From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, December 14, 2005 4:21 PM
 To: Tomcat Users List
 Subject: RE: Tomcat 5 error 404
 
  From: Bliesner, Christopher P
  [mailto:[EMAIL PROTECTED]
  Subject: RE: Tomcat 5 error 404
  
  Not sure which one that is?
 
 Try this:
 http://host:port/manager/manager-howto.html
 
  But Chuck, my other webapps run which I copied straight over from 
  Tomcat 4.1.12.
 
 Be careful there, because I think some of the container-specific config
 items changed between TC 4 and 5.  You should probably check the old and
 new docs for at least the Context tag, especially with regard to how
 resources are specified.
 
  - Chuck
 
 
 THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
 MATERIAL and is thus for use only by the intended recipient. If you
 received this in error, please contact the sender and delete the e-mail
 and its attachments from all computers.
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


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



Re: install tomcat daemon on linux

2005-12-10 Thread Warren Pace
ody,
Since Linux distributions vary so much, it's up to the user to write his own 
script.  Look in $CATALINA_HOME/bin/jsvc-src-native for an example.  Better 
yet, there should be a script called skeleton in /etc/init.d you can use as a 
guide to write a proper LSB-conforming script for your fedora dist.  If you 
need an example, reply and I'll send you mine as an attachment.

 
 From: ody quraviharto [EMAIL PROTECTED]
 Date: 2005/12/08 Thu PM 10:55:06 EST To: users@tomcat.apache.org Subject: 
 install tomcat daemon on linux 
 hi all,
 I'm a newbie of tomcat user.
 I'd like to install tomcat so that it starts as linux starts up.
 I've read the docs, told me to use jsvc tools. ..here is the
 problem..I do what it's suppose to do but still no tomcat script on
 /etc/init.d on my fedora.
 PLease help me,
 thx 
 -
 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: Start Tomcat as a Linux daemon

2005-12-07 Thread Warren Pace
Which tomcat version?

On Wed, 2005-12-07 at 12:35 +, Mário Gamito wrote:
 Hi,
 
 I'm trying to start Tomcat as a linux daemon at server boot, but i don't
 have jsvc (although i've installed package admin), like explained in
 Tomcat's page.
 
 An year ago or so, i had this ctl script that worked, but now again, i
 don't have jsvc.
 
 Any help would be apreciated.
 
 Warm Regards,
 Mário Gamito
 --
 JAVA_HOME=/usr/local/java
 CATALINA_HOME=/usr/local/jakarta-tomcat/bin
 DAEMON_HOME=/usr/local/jakarta-tomcat/bin
 TOMCAT_USER=root
 TMP_DIR=/var/tmp
 CATALINA_OPTS=
 CLASSPATH=\
 $JAVA_HOME/lib/tools.jar:\
 $CATALINA_HOME/bin/commons-daemon.jar:\
 $CATALINA_HOME/bin/bootstrap.jar
 
 case $1 in
 start)
 #
 # Start Tomcat
 #
 $DAEMON_HOME/jsvc \
 -user $TOMCAT_USER \
 -home $JAVA_HOME \
 -Dcatalina.home=$CATALINA_HOME \
 -Djava.io.tmpdir=$TMP_DIR \
 -outfile $CATALINA_HOME/logs/catalina.out \
 -errfile '1' \
 $CATALINA_OPTS \
 -cp $CLASSPATH \
 org.apache.catalina.startup.Bootstrap
 #
 # To get a verbose JVM
 #-verbose \
 # To get a debug of jsvc.
 #-debug \
 ;;
 
 stop)
 #
 # Stop Tomcat
 #
 PID=`cat /var/run/jsvc.pid`
 kill $PID
 ;;
 
 *)
 echo Usage tomcat.sh start/stop
 exit 1;;
 esac
 
 -
 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: RE: JSP on apache

2005-12-06 Thread Warren Pace
Mukesh,
  Did you also edit your httpd.conf file and workers.properties?  I've 
attached some snippets from mine as text files.  Once you've configured 
everything, restart the servers first tomcat and then apache.
Regards
Warren
 
 From: mukesh [EMAIL PROTECTED]
 Date: 2005/12/06 Tue PM 05:23:34 EST
 To: 'Tomcat Users List' users@tomcat.apache.org
 Subject: RE: JSP on apache
 
 
 Hi tim,
   Thanks for your help so far.
 
   Finally I've downloaded jakarta-tomcat-connectors-1.2.15-src.tar.gz
 and configured installed it using instruction from
 http://johnturner.com/howto/apache2-tomcat4127-jk-rh9-howto.html.
 
 Now when I start the tomcat then mod_jk.conf is being generated in
 /usr/local/tomcat/conf/auto directory and I am able access all the deployed
 services including http://tomcat ip addr:8080/jsp-examples. Apache is
 running on port 80.
 
 But I am not able to execute http://apache ip addr/jsp-examples. It gives
 me page notr found error. I have added Include
 /usr/local/tomcat/conf/auto/mod_jk.conf statement also though this
 statement is different in
 http://tomcat.apache.org/connectors-doc/howto/apache.html document. here it
 says Include /var/tomcat3/conf/jk/mod_jk.conf-auto where /var/tomcat3/ is
 TOMCAT installation directory.
 
 Both apache and tomcat server are running on same machine.
 
 
 Please guide.
 
 Regards,
 -Mukesh
 
 
 
 
 
 
 -Original Message-
 From: Tim Funk [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, December 06, 2005 5:37 PM
 To: Tomcat Users List
 Subject: Re: JSP on apache
 
 If you are using tomcat 5.5 - do not refer to the tomcat 3 docs ;)
 
 http://tomcat.apache.org/connectors-doc/
 http://tomcat.apache.org/faq/
 
 -Tim
 
 mukesh wrote:
 
  Hi,
  I have tried all the option given in
  http://tomcat.apache.org/tomcat-3.3-doc/mod_jk-howto.html#s2. FAQ But I
  could not build the 
   jakarta-tomcat-connectors-jk-1.2.14-linux-sles9-x86_64-prefork.so
  (renamed as mod_jk.so).
  
  
  if I run make command then following message appears
  make: Nothing to be done for `mod_jk.so'.
  
  
  My installation paths are
  
  Tomcat: /usr/local/apache-tomcat-5.5.12
  Apache: /usr/local/apache(version is 2.0)
  JDK: /usr/local/jdk1.5.0_02
  
  Everything is working fine but no success with mod_jk. I must tell that
 this
  is my first experience with apache and tomcat ( mod_jk too).
  
  Please guide me if someone has already done mod_jk installation on Linux.
 I
  am running Redhat 7.0
  
  Please advice.
  
  Regards,
  Mukesh Kumar
  
  
  
  -Original Message-
  From: Tim Funk [mailto:[EMAIL PROTECTED] 
  Sent: Friday, December 02, 2005 7:43 PM
  To: Tomcat Users List
  Subject: Re: JSP on apache
  
  Both of those binaries look to be for apache2. My guess is to rename the 
  version you are using (apache worker vs prefork) to mod_jk.so.
  
  Place the mod_jk.so libexec directory then add the appropriate so load
  module 
  directives and othr jk config directives. The FAQ should have some links 
  (some good, some possibly not so good now) to external how-tos.
  
  -Tim
  
  mukesh wrote:
  
  
 Tim,
 I have downloaded two files
 1) jakarta-tomcat-connectors-jk-1.2.14-linux-sles9-x86_64-prefork.so
 2) jakarta-tomcat-connectors-jk-1.2.14-linux-sles9-x86_64-worker.so
 
 I have gone through documentation. It says that I need mod_jk.so to
 complete the task which I could not find anywhere. 
 
 And second documentation say that Tomcat has
 TOMCAT_HOME/native/mod_jk  directory structure but its not true in case of
 Tomcat 5.5.  Do I need to create the directories manually ?
 
 Third, which file I should use and where ?
 
 I have downloaded above file from
 
  
 
 http://archive.apache.org/dist/tomcat/tomcat-connectors/jk/binaries/linux/jk
  
 
 -
 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]
 
 
# These lines need to be in your httpd.conf file
LoadModule jk_module /usr/lib/apache2/mod_jk.so
# workers.properties should be in the same directory as httpd.conf
# I'm running Open SuSE 10.  Config files are saved in /etc in folders 
# folders named to match the application.
# Example:  httpd.conf is saved in /etc/apache2/
# Not sure about RH.
JkWorkersFile /etc/apache2/workers.properties
JkLogFile /var/log/apache2/mod_jk.log
JkLogLevel info
JkLogStampFormat [%a %b %d %H:%M:%S %Y] 
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
JkRequestLogFormat %w %V %T
# The easiest way to mount your webapps is to use the JkAutoAlias directive.
# Of course, this will need to point to your webapps folder.
JkAutoAlias /usr/share/tomcat5/webapps
# Or assign webapps to specific workers...
JkMount /jsp-examples/* worker1

# Taken directly from 

Re: Please Help Me

2005-12-02 Thread Warren Pace
What operating system are you using?
 
 From: Teh Noranis Mohd Aris [EMAIL PROTECTED]
 Date: 2005/12/02 Fri AM 04:09:38 EST
 To: tomcat-user@jakarta.apache.org
 Subject: Please Help Me
 
 Dear All,
 I've installed tomcat version 4.1.31 and tried to
 start tomcat but the Tomcat window displays error
 messages:
 Catalina.stop: java.net.ConnectException: Connection
 refused: connect java.net.ConnectException
 .
 .
 .
 How can I fix this problem? Please help me. Thank you.
  
 
 
   
 __ 
 Start your day with Yahoo! - Make it your home page! 
 http://www.yahoo.com/r/hs
 
 -
 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]