Newbie Question about logging

2002-06-11 Thread ben


Hi All,

I have just started using 1.4 and using the application log files.

These are great for build errors etc but how can I get my servlets to write
runtime errors to that log (ie ORA errors).

At the moment my catches just write to System.out.println as I hoped the
logs would receive standard err?

Any help is very much appreciated.


Ben Wrigley


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




Re: HELP! Can't start up TC 4.0.1 on jdk 1.3.11_01 in Window 2K.

2001-11-24 Thread ben

vernon,
sounds like you havent configured the path for jdk1.3.1_01 yet. thats about
the only thing that i could imagine..if you have configured the path for
both tomcat and jdk1.3.1_01 with : set JAVA_HOME= c:\jdk1.3.1_01..(for
instance)
- Original Message -
From: Vernon Wu <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, November 23, 2001 1:36 PM
Subject: HELP! Can't start up TC 4.0.1 on jdk 1.3.11_01 in Window 2K.


> Due to some problems on running TC 4.0.1, I get a suggestion from the Sun
support to use the new jdk 1.3.1_01.
> Now, I can't start up the TC. After I issue the startup command, an
exception  occurs. I am unable to see what the
> exception is. The catalina window only stays for a very few seconds.
>
> Do anyone know how to handle this problem.
>
> Thanks in advance.
>
> Vernon
>
>
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




value for useBean class attribute invalid

2004-06-04 Thread Ben
Hi there,
I'm trying to set up a simple beans backed jsp application. I set up 
everything, the bean compiles, the context for the web app is set. But 
after reading around on a number of mailing lists and ruling out the 
most common mistakes (no package, useBean misspelled, no full class name 
used in useBean class= etc.) and after reading the tomcat class not 
found page, I'm pretty sure that something beyond my making a mistake is 
going on...

I greatly appreciate any help, as I am stumped and utterly puzzled at 
this...

thanks, Ben
Below find:
1. directory structure
2. stack trace
3. primitive-test.jsp
4. PrimitiveBean.jsp
5. web.xml
6. relevant part of /conf/server.xml
I'm running:
* Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_03-117.1)
* Java HotSpot(TM) Client VM (build 1.4.2-34, mixed mode)
* tomcat 5.0.25
* OS X 10.3.4
---
The only "unconventional" thing I'm doing is that my folder structure is 
as follows (which shouldn't matter because I set the docbase, and tomcat 
finds my jsps without complaint).

/webapps
  /node
/src
  /bundle
  /java
/www
  /WEB-INF
/classes
  /my
/packages
  /PrimitiveBean.class
/lib
/web.xml
  /pages
/primitive-test.jsp
Stack trace from tomcat/logs

2004-06-04 21:34:19 StandardWrapperValve[jsp]: Servlet.service() for 
servlet jsp threw exceptionorg.apache.jasper.JasperException: 
/pages/primitive-test.jsp(11,0) The value for the useBean class 
attribute my.packages.PrimitiveBean is invalid.at 
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:39) 
   at 
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:376) 
   at 
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:150) 
   at 
org.apache.jasper.compiler.Generator$GenerateVisitor.visit(Generator.java:1217) 
   at 
org.apache.jasper.compiler.Node$UseBean.accept(Node.java:1116)at 
org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)at 
org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2213) 
 at org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2219) 
  at org.apache.jasper.compiler.Node$Root.accept(Node.java:456) 
at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)at 
org.apache.jasper.compiler.Generator.generate(Generator.java:3261) 
  at 
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:244) 
   at org.apache.jasper.compiler.Compiler.compile(Compiler.java:461) 
 at org.apache.jasper.compiler.Compiler.compile(Compiler.java:442) 
   at 
org.apache.jasper.compiler.Compiler.compile(Compiler.java:430)at 
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511) 
   at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:274) 
   at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) 
   at 
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) 
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) 
 at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237) 
   at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214) 
   at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) 
   at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) 
   at 
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198) 
   at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152) 
   at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) 
   at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) 
   at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137) 
   at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) 
   at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) 
   at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102) 
   at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) 
   at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) 
   at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) 
   at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) 
   at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929) 
 at 
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160) 

Digested passwords

2004-09-21 Thread Ben
Hi

Is there a way to add salt to the digested password in Tomcat JDBC
Realm for authentication?

Regards,
Ben

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



Re: Rename jsessionid

2004-10-10 Thread Ben
Thanks


On Sun, 10 Oct 2004 14:44:07 +0200, Michael Echerer <[EMAIL PROTECTED]> wrote:
> 
> 
> Dennis Dai wrote:
> 
> >
> > I believe JSESSIONID is mandated by the servlet spec. Being the 
> indeed!
> "jsessionid" is mentioned in the servlet 2.4 spec for cookie and url
> rewriting.
> 
> 
> 
> 
> -
> 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: Search engine friendly URLs

2004-10-02 Thread Ben
I would like to use Tomcat alone


On Sat, 02 Oct 2004 19:37:35 -0400, Dov Rosenberg
<[EMAIL PROTECTED]> wrote:
> Use URL Rewriting with Apache. That will do what you are looking for.
> 
> 
> 
> 
> On 10/2/04 11:53 AM, "Ben" <[EMAIL PROTECTED]> wrote:
> 
> > Hi
> >
> > Is it possible to make the URLs on my site search engine friendly? I
> > am using Tomcat and Struts.
> >
> > I would like to turn:
> >
> > http://localhost/site.do?section=books&subsection=architecture
> >
> > into this:
> >
> > http://localhost/do/site/books/architecture
> >
> > Regards,
> > Ben
> > 
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> 
> --
> Dov Rosenberg
> Conviveon Corporation
> 370 Centerpointe Circle, suite 1178
> Altamonte Springs, FL 32701
> http://www.conviveon.com
> [EMAIL PROTECTED]
> AOL IM: dovrosenberg
> (407) 339-1177 x102
> (407) 339-6704 (fax)
> (800) 475-9890
> (407) 310-8316 (cell)
> 
> -
> 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: Search engine friendly URLs

2004-10-04 Thread Ben
Thanks everyone.

I guess I would have to use the Url Rewrite Filter by Paul Tuckey. I
thought there was a better way of doing this.

Cheers,
Ben

On Mon, 4 Oct 2004 09:04:37 -0400, Shapira, Yoav <[EMAIL PROTECTED]> wrote:
> 
> Hi,
> You can also do this with one (or more, if you want, depending on the
> exact requirements) Filters.  That prevents the need for a separate
> servlet and any associated session overhead, so the performance argument
> is even more moot.
> 
> Yoav Shapira
> Millennium Research Informatics
> 
> 
> >-Original Message-
> >From: Steffen Heil [mailto:[EMAIL PROTECTED]
> >Sent: Sunday, October 03, 2004 11:18 AM
> >To: 'Tomcat Users List'
> >Subject: AW: Search engine friendly URLs
> >
> >Hi
> >
> >> If you want to be able to scale your application, you need to be able
> to
> >move the static image handling out of tomcat to a separate web server.
> >Using
> >Tomcat to handle both application chores and web serving chores will
> limit
> >the overall scalability of your system.
> >
> >I strongly disagree.
> >Tomcat is nearly as fast as apache in serving images.
> >So, yes, you can save a little time using apache, BUT remeber that the
> >apache slows tomcat down. You need cpu-cycles for apache, for mod_jk
> and
> >additionally for tomcat. Those cycles for apache and mod_jk are not
> >nessesary, since tomcat can work standalone.
> >So the question comes down to decide wether the overhead of handling
> apache
> >and mod_jk for dynamic content is smaller then the difference of apache
> and
> >tomcat in serving images. I guess with current versions of tomcat the
> >overhead to apache and mod_jk is even bigger.
> >Hence, tomcat alone will be faster.
> >(Please also consider, that static content will mostly be taken from
> the
> >browsers cache, whereas dynamic content needs to be received from
> tomcat.
> >That means that the time won by using apache for static content needs
> to be
> >a magnitude higher than the overhead of mod_jk. That's simply not the
> >case.)
> >
> >Tomcat cannot do rewriting, that is correct, but it does not need to:
> >I use url such as:
> >  /content/pages/test.htm
> >where content is mapped to my servlet.
> >The parameter is simply the rest of the url.
> >
> >You could do:
> >  http://localhost/site.do/books/architecture
> >and parse the rest of the url to
> >  section = books
> >and
> >  subsection = architecture
> >
> >Simply map site.do to your servlet.
> >
> >Reagrds,
> >  Steffen
> 
> This e-mail, including any attachments, is a confidential business communication, 
> and may contain information that is confidential, proprietary and/or privileged.  
> This e-mail is intended only for the individual(s) to whom it is addressed, and may 
> not be saved, copied, printed, disclosed or used by anyone else.  If you are not 
> the(an) intended recipient, please immediately delete this e-mail from your computer 
> system and notify the sender.  Thank you.
> 
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

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



Bypass IE's HTTP error messages

2004-10-07 Thread Ben
Hi

I am using Tomcat 5 and I would like to use my HTTP error pages.
Things are working fine if I use IE and having the IE's "Show friendly
URL error messages" option unchecked. If I enable it, my error pages
don't get displayed.

What can I do to make my error pages display everytime doesn't matter
what settings the users set on their computer.

Thanks,
Ben

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



Re: Bypass IE's HTTP error messages

2004-10-07 Thread Ben
Thanks, it's 512 bytes.


On Thu, 7 Oct 2004 18:14:37 -0500, QM <[EMAIL PROTECTED]> wrote:
> On Fri, Oct 08, 2004 at 08:48:43AM +1000, Ben wrote:
> : I am using Tomcat 5 and I would like to use my HTTP error pages.
> : Things are working fine if I use IE and having the IE's "Show friendly
> : URL error messages" option unchecked. If I enable it, my error pages
> : don't get displayed.
> 
> IE thinks your custom error pages are too short. When the document
> returned from the server is less than [x] bytes, IE shows its "friendly"
> error messages instead.
> 
> I forget the exact number, but that's just a Google search away.
> 
> -QM
> 
> --
> 
> software  -- http://www.brandxdev.net
> tech news -- http://www.RoarNetworX.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]



Rename jsessionid

2004-10-09 Thread Ben
How can I use a different name for the session id?

I would like to use:

SID=27D2A9CA7006C94A9CAAE1D96D4D39BD

instead of:

jsessionid=27D2A9CA7006C94A9CAAE1D96D4D39BD

Thanks

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



Access to j_security_check directly

2004-10-19 Thread Ben
Hi

How can I deal with users that access to j_security_check directly? I
have used the error-code 400 and redirect the users to the index page
but the system doesn't recognise the them as logged in users.

Any help? Thanks.

Cheers,
Ben

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



Re: Access to j_security_check directly

2004-10-20 Thread Ben
I created a filter that rejects the "get" request method to the
j_security_check (in my login page I use "post" method). So if the
users access to j_security_check, my filter responses with a resource
not found code.

It seems to be working find.

Cheers


On Wed, 20 Oct 2004 11:29:22 +0100, Andoni <[EMAIL PROTECTED]> wrote:
> Hi,
> 
> This is an age-old problem, if you ever find a complete answer let me know.
> 
> As for 95% complete answers here goes:
> 
> 1. Your biggest problem is bookmarks. You need to always load you login page
> inside a frame. A single HTML page with a single frame can work fine, that
> way they'll bookmark  xxx.com/jsp/index.html instead of
> xxx.com/jsp/login.jsp. This will mean that they will still always call the
> secure page even if they have book-marked the login screen.
> 
> 2. The second problem is the back button. You need to use a JSP for your
> login screen and use the session.isNew() method to check if the session is
> being started by your login screen. If not then you should redirect to your
> single-framed page.
> 
> 3. You can also re-direct with a custom error page from the error you
> receive to the single framed page.
> 
> 4. Search the history of this list and find more suggestions. This question
> has come up several times over the years and usually gets some responses. I
> am using j_security_check in all my production apps. and with a combination
> of measures in place it works fine.  I do suggest that you work out
> *Exactly* what is going on before trying to proceed as false assumptions can
> have your head spinning :-)
> 
> Hope that helps,
> Andoni OConchubhair.
> 
> 
> 
> 
> - Original Message -
> From: "Ben" <[EMAIL PROTECTED]>
> To: "Tomcat" <[EMAIL PROTECTED]>
> Sent: Wednesday, October 20, 2004 1:58 AM
> Subject: Access to j_security_check directly
> 
> > Hi
> >
> > How can I deal with users that access to j_security_check directly? I
> > have used the error-code 400 and redirect the users to the index page
> > but the system doesn't recognise the them as logged in users.
> >
> > Any help? Thanks.
> >
> > Cheers,
> > Ben
> >
> > -
> > 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]



RealmBase Exception

2004-10-21 Thread Ben
Hi

I am using Tomcat 5.0.28 and have a custom Realm implementation that
extends RealmBase. When I startup Tomcat I get:

ERROR [main] RealmBase.init(1198) | Can't register null
java.lang.NullPointerException
at org.apache.catalina.realm.RealmBase.init(RealmBase.java:1194)
at org.apache.catalina.realm.RealmBase.start(RealmBase.java:875)
at org.apache.catalina.realm.JDBCRealm.start(JDBCRealm.java:669)
at com.mycom.realm.catalina.MyRealm.setRealm(MyRealm.java:20)
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)
...

It appears that the Exception triggers when my custom Realm tries to
set the Realm to Tomcat.

Any help? Thanks

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



Session ID in URL

2004-10-23 Thread Ben
Hi

Is there a way to validate the session id?

How do I deal with a situation where a user logged in and found
something interesting on my site and decided to give the URL address
(with jsessionid) of the page to his/her friend? Since the URL has the
session id of the sender, the receiver clicks on the link and will
have access to the sender account details.

How does Amazon.com solve this problem? Their URL addresses always
have the session id. If I go to Amazon.com and copy and paste the URL
address to a new browser, their system will give me a new session id.

Thanks

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



Server busy page

2004-10-26 Thread Ben
Hi

How do I setup a server busy page? Is this Tomcat related or it has to
do with my app?

Thanks
Ben

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



JDBCRealm manual authentication

2004-10-26 Thread Ben
Hi

How do I manually authenticate a user given a String username and
String password? My applicaton needs to use this feature in a Struts
ActionForm, is it possible with JDBCRealm?

I am using Tomcat 5 BTW.

Thanks,
Ben

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



Same session ID for HTTPS & HTTP

2004-11-03 Thread Ben
Hi

Is it safe to use the same session ID for HTTP and HTTPS? If not then
how can I deal with a situation where the users disabled cookie and
access to the protected resources? If I don't use the same session ID,
they need to login every time when they access to the protected
resources as the login page uses HTTPS and other pages use HTTP.

Thanks

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



Re: is it possible to go to https and return to http?

2004-11-03 Thread Ben
Hi Derek

Do you append the session to the address when you go to http? Are you
using the same session for http and https? Do you have any concern
about security?

I am facing this problem ATM and would love to hear your advise.

Thanks,
Ben


On Thu, 4 Nov 2004 11:04:46 +1100, Derek Clarkson
<[EMAIL PROTECTED]> wrote:
> 
> Hi,
> Our site drops in and out of secure mode to do credit card transactions. We
> have a single instance of tomcat sitting behind an apache server. We have
> two virtual apache servers listed which talk to this tomcat. One os
> non-secure which takes the bulk of the action, and the other is setup as
> secure. When we want to take a user to secure, the next document is simple
> linked as a https connection rather than http. As the secure server is
> listening on the 443 port it picks it up instead of the non-secure one.
> 
> The only issue we encountered when doing this is that when this happens it
> starts a new session. So anything stored in the http session (shopping
> basket) cannot been seen. The original designers of the system got arround
> this by using an RMI server and transfering objects through it to the new
> session. To say this was complicated and error prone would be an
> understatement. Recently we ripped this out and added the ID of the http
> session as a parameter to the urls going into the secure instance. By doing
> this, the Tomcat automatically looked for and reconnected to the orginal
> session. Thus allowing us to keep things simple and remove a lot of bug
> ridden code.
> 
> Hope this helps.
> 
> Regards,
> Derek Clarkson
> Global Applications
> Lonely Planet Publications
> ph: (03) 8379-8000 x8041
> "It's not a bug - it's an undocumented feature!"
> 
> 
> 
> -Original Message-
> From: Acácio Furtado Costa [mailto:[EMAIL PROTECTED]
> Sent: Thursday, 4 November 2004 4:32 AM
> To: [EMAIL PROTECTED]
> Subject: is it possible to go to https and return to http?
> 
> We need to use https  for authentication and in 1 or to 2 url´s in our
> application.
> 
> In other case we prefer to stay in http mode . To do this we need to
> redirect the connection to https and return to http .
> 
> How can we do this?
> 
> Acacio Furtado Costa
> Pesquisa e Tecnologia
> 
> GIA - Magnesita S/A
> *(0xx31) 3368-1349
> *  [EMAIL PROTECTED]
> 
> 
> __
> This email, including attachments, is intended only for the addressee
> and may be confidential, privileged and subject to copyright.  If you
> have received this email in error, please advise the sender and delete
> it.  If you are not the intended recipient of this email, you must not
> use, copy or disclose its content to anyone.  You must not copy or
> communicate to others content that is confidential or subject to
> copyright, unless you have the consent of the content owner.
>

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



Clustering Tomcat

2005-05-20 Thread Ben
Hi

I'm trying to configure clustering of 2 Tomcat servers on a single
CentOS 4 machine. When I start the first Tomcat, I get error  messages
like this in the catalina.out log file:

org.apache.catalina.cluster.mcast.McastServiceImpl$SenderThread run
WARNING: Unable to send mcast message.
java.net.SocketException: Operation not permitted
at 
jrockit.net.SocketNativeIO.send(Ljava.io.FileDescriptor;[BIILjava.net.InetAddress;II)I(Unknown
Source)
at 
java.net.PlainDatagramSocketImpl.send(Ljava.net.DatagramPacket;[BI)V(Unknown
Source)
at 
java.net.PlainDatagramSocketImpl.send(Ljava.net.DatagramPacket;)V(Unknown
Source)
at java.net.DatagramSocket.send(DatagramSocket.java:612)
at 
org.apache.catalina.cluster.mcast.McastServiceImpl.send(McastServiceImpl.java:228)
at 
org.apache.catalina.cluster.mcast.McastServiceImpl$SenderThread.run(McastServiceImpl.java:264)


I am using JRockit 5.0_02 and Tomcat 5.5.9.

Where can I find more information about this error?

Thanks,
Ben

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



Re: Clustering Tomcat

2005-05-22 Thread Ben
It was my firewall. The servers are working now, however I get these
error messages when I stop and start one of the two Tomcat instances:

May 21, 2005 5:09:20 PM org.apache.catalina.cluster.tcp.SimpleTcpCluster send
SEVERE: Unable to send message through cluster sender.
java.io.IOException: Sender not available. Make sure sender
information is available to the ReplicationTransmitter.
at 
org.apache.catalina.cluster.tcp.ReplicationTransmitter.sendMessageData(ReplicationTransmitter.java:641)
at 
org.apache.catalina.cluster.tcp.ReplicationTransmitter.sendMessage(ReplicationTransmitter.java:331)
at 
org.apache.catalina.cluster.tcp.SimpleTcpCluster.send(SimpleTcpCluster.java:463)
at 
org.apache.catalina.cluster.session.DeltaManager.messageReceived(DeltaManager.java:860)
at 
org.apache.catalina.cluster.session.DeltaManager.messageDataReceived(DeltaManager.java:724)
at 
org.apache.catalina.cluster.tcp.SimpleTcpCluster.messageDataReceived(SimpleTcpCluster.java:658)
at 
org.apache.catalina.cluster.io.ObjectReader.execute(ObjectReader.java:103)
at 
org.apache.catalina.cluster.tcp.TcpReplicationThread.drainChannel(TcpReplicationThread.java:129)
at 
org.apache.catalina.cluster.tcp.TcpReplicationThread.run(TcpReplicationThread.java:67)
May 21, 2005 5:09:24 PM org.apache.catalina.cluster.tcp.DataSender 

Thanks
Ben



On 5/22/05, Dale, Matt <[EMAIL PROTECTED]> wrote:
> 
> It looks like your machine is unable to send a multicast message. It will be 
> an operating system configuration.
> 
> Ta
> Matt
> 
> -Original Message-
> From: Ben [mailto:[EMAIL PROTECTED]
> Sent: 21 May 2005 02:11
> To: Tomcat
> Subject: Clustering Tomcat
> 
> 
> Hi
> 
> I'm trying to configure clustering of 2 Tomcat servers on a single
> CentOS 4 machine. When I start the first Tomcat, I get error  messages
> like this in the catalina.out log file:
> 
> org.apache.catalina.cluster.mcast.McastServiceImpl$SenderThread run
> WARNING: Unable to send mcast message.
> java.net.SocketException: Operation not permitted
> at 
> jrockit.net.SocketNativeIO.send(Ljava.io.FileDescriptor;[BIILjava.net.InetAddress;II)I(Unknown
> Source)
> at 
> java.net.PlainDatagramSocketImpl.send(Ljava.net.DatagramPacket;[BI)V(Unknown
> Source)
> at 
> java.net.PlainDatagramSocketImpl.send(Ljava.net.DatagramPacket;)V(Unknown
> Source)
> at java.net.DatagramSocket.send(DatagramSocket.java:612)
> at 
> org.apache.catalina.cluster.mcast.McastServiceImpl.send(McastServiceImpl.java:228)
> at 
> org.apache.catalina.cluster.mcast.McastServiceImpl$SenderThread.run(McastServiceImpl.java:264)
> 
> 
> I am using JRockit 5.0_02 and Tomcat 5.5.9.
> 
> Where can I find more information about this error?
> 
> Thanks,
> Ben
> 
> -
> 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]



Tomcat in chroot

2005-05-31 Thread Ben
Hi

I am trying to setup Tomcat in chroot environment and have
successfully started it up. However, when I run Tomcat in chroot, I
see 10+ Tomcat processes as oppose to a single Tomcat process in a
non-chroot environment. Why is this? Is it normal?

Thanks,
Ben

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



This application is not currently available

2005-06-12 Thread Ben
Hi

In my web server environment, I have two Tomcat instances running
behing an Apache httpd 2 server for clustering on the same machine.
When I shutdown one server and use the site as the same time, I
occasionally see the following error message:

---
HTTP Status 503 - This application is not currently available

type Status report

message This application is not currently available

description The requested service (This application is not currently
available) is not currently available.
Apache Tomcat/5.0.30
---

Anyone know what this is happening? May be the settings in my web.xml file?

Thanks,
Ben

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



Tomcat 5.0 + Apache 2.0 + ErrorDocument

2005-06-17 Thread Ben
Hi

I would like to have Tomcat handle all the error documents, how can I
do this? At this stage, whenever there is a page not found, I see an
Apache error page. I have already setup mod_jk.

I have this:

JKMount /*.jsp ajp13

In my web.xml, I have this:


404
/WEB-INF/errors/404.jsp


My mod_jk log has the following lines:

jk_handler::mod_jk.c (1952): No body with status=404 for worker=ajp13
jk_handler::mod_jk.c (1952): No body with status=404 for worker=ajp13

Somehow I can't see my /WEB-INF/errors/404.jsp when there is a page not found.

Thanks,
Ben

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



Tomcat 5 and encodeRedirectURL

2005-06-29 Thread Ben
Hi

Is it true that Tomcat will ignore the encoding if the request scheme
and URL protocol are not the same? So if I am currently on http and
would like to redirect to https, Tomcat will not encode the https URL
even though the the servername and the port are the same for both
protocols.

This is the reason why the session object always lost when switching
between http and https and vice versa.

What can I do in my app to maintain the session across protocols?

Thanks,
Ben

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



first time user

2005-04-05 Thread Ben
I have just install tomcat and got it working at http://localhost:8080
I am able to run load <%= new java.util.Date() %> under a jsp file

question:
1) I have create a HelloWorld.java file, where should I put this file and be 
able to run it?
2) if I want it to look for helloworld.xml and have the action being call 
from there, what can I do?
3) do I have to put all the .jar file in the CLASSPATH under autoexec.bat?
This would be a huge line if I also want to put the Velocity template what 
can I do?

my directory:
c:\web
Tomcat5
webapps
ROOT<-- http://localhost:8080
webwork2
lib
webwork-2.1.7.jar
webflow-2.1.7.jar

Thanks so much,
Ben 




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



Re: j_username in session cookie - where did it go?

2002-08-13 Thread Ben Walding

It was possibly an undocumented (and not part of the spec) feature.

You should just use => request.getRemoteUser()

Where request is passed in through doGet(request, response)  or however 
that works in JSP.

Ed Thompson wrote:

>I have just upgraded (uninstalled and reintsalled) from Tomcat 3.2 to
>Tomcat 4.0.4.
>
>I am using form based authentication, and found under 3.2 I could pull
>j_username out of the session cookie after authenticaion was done.
>
>Now under Tomcat 4 it doesn't seem to be there.  I know I tried it under
>Tomcat 4.0.1 before I upgraded and it worked, but not after uninstalling 3.2
>and installing 4.0.4 from scratch..
>
>Can anyone shed light on what is (not) happening?  Have the rules changed or
>have I not cfg'd something properly?
>
>Thanx!
>Ed
>
>
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 
>
>
>  
>




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: What sort of servlet is required when using it with auto load?

2002-08-13 Thread Ben Walding

You're probably better off with an application context listener

OnJava has a good article about them:
http://www.onjava.com/pub/a/onjava/2001/04/12/listeners.html


Adrian Beech wrote:

>Hi folks,
>
>I would like to put together a servlet that will be used solely for
>setting up such things as connection pools, etc.  This servlet will be
>auto loaded when Tomcat is started with the appropriate entries in the
>web.xml file.  The connection pools will be saved as an application
>scoped object for use by various JSP's.  The servlet will not serve up
>web content except, I guess, appropriate error messages, etc.  My query
>is that what sort of servlet do I need to achieve this?  For example, is
>the class an extension of httpServlet, or can it be a simple class that
>does not inherit objects from another higher level class?
>
>Are there any examples of this sort of thing floating out yonder?
>
>I am probably the rawest of raw novices when it comes to this sort of
>stuff!
>
>Thanks for your patience.
>
>Adrian
>[EMAIL PROTECTED]
>
>
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 
>
>
>  
>




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: How to keep track of sessions

2002-08-14 Thread Ben Walding

You could use an application context listener to write out the sessions 
when the context is shutdown and reread them when it starts up.

I tried to work out how the manager application (part of  the 
distribution) worked (as it knows about sessions), but gave up as it 
looked like to much work and too much poking about inside tomcat.

for my tastes (which didn't include
Mark O'Driscoll wrote:

>I am trying to keep track of the current sessions that are active in my web
>application.
>
>I have a HttpSessionListener that is correctly called on
>sessionCreated/sessionDeleted. I keep a reference to each session in the
>servletContext as a Vector.
>
>If tomcat is restarted then the sessions are persisted fine. However my
>vector of sessions is lost so I have no record of sessions that were created
>during a previous tomcat run.
>
>Any idea how I could find or keep the list of previously created sessions?
>
>Is there any way I can find a list of the current sessions without keeping a
>list (that would be my preference)
>
>TIA
>
>- Mark
>
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 
>
>
>  
>




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Reuse IIS SSL certificate and private key

2002-08-16 Thread Ben Walding

Thawte has information on this at

http://www.thawte.com/html/SUPPORT/server/using.html

It's not guaranteed to work, but it's better than forking out another 
$300US.


Jeffrey Yip wrote:

>I am switching from using IIS web server with SSL to Tomcat.  Could I reuse
>the SSL certificate and private key stored in IIS and import it to the
>Tomcat's keystore?  If so, how to do it?
>
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 
>
>
>  
>




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Testing session time-out behaviour

2002-08-16 Thread Ben Walding

Although it isn't session timeout specifically, couldn't you just 
invalidate (invalidate() method on session object) the session by going 
to a specific url - eg servlet

Would that emulate the behaviour you are trying to achieve?

Craig R. McClanahan wrote:

>On Thu, 15 Aug 2002 [EMAIL PROTECTED] wrote:
>
>  
>
>>Date: Thu, 15 Aug 2002 14:07:13 -0500
>>From: [EMAIL PROTECTED]
>>Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
>>To: Tomcat Users List <[EMAIL PROTECTED]>
>>Subject: Testing session time-out behaviour
>>
>>
>>Hi,
>>
>>I have a web app with some specific requirements for session timeout.  I
>>would like to write automated acceptance tests to verify these
>>requirements, and am faced with some options:
>>
>>- set web.xml to time-out in 1 minute, have my tests wait for just over a
>>minute to force time-out
>>- talk to my server (tomcat during testing) from the test client code
>>(junit tests using httpunit) to somehow request it to time out
>>- execute the shutdown / startup commands from the client code (session
>>information for tomcat 4.0 goes away when i do this).  I have a small app,
>>so startup shutdown are both relatively quick (seconds).
>>
>>
>
>Waiting "just over a minute" is not guaranteed to work the way you think.
>The reason for this is that session timeouts are performed in a background
>thread that only runs periodically (typically every 15 seconds).
>
>  
>
>>Waiting a minute is a pain, because I have to change web.xml and reset it,
>>also because I have a lot of screens and behaviours to test (hence the
>>desire to automate), so even setting down to a minute I expect it would
>>take my automated test suite from what is now about 5 minutes to run to
>>about 30 minutes.
>>
>>
>>
>
>One thing to consider is that you can call
>session.setMaxInactiveInterval() on a session instance itself, at a
>granularity of seconds.  You still need to deal with the 15 second time
>though (unless you want to just simulate a timeout by forcibly
>invalidating a session) -- you could add a special URL to your webapp to
>do this in a test environment.
>
>  
>
>>As far as communicating with tomcat goes, I tried doing a get on the
>>manager urls to reload the app, also to stop followed by start - but this
>>does not appear to cause it to lose the session information.
>>
>>
>>
>
>That's true ... Tomcat saves and reloads sessions across a restart.
>
>  
>
>>As far as executing startup / shutdown batch files, the rub is waiting on
>>the shutdown and startup to complete before proceeding with the test.  It
>>is proving to be extremely tricky to do.
>>
>>
>>
>
>You can forcibly eliminate any sessions saved by the previous shutdown by
>deleting the "SESSIONS.ser" file in the work directory for your webapp.
>
>  
>
>>So, from a java test client, is there a supported and relatively easy way
>>for me to get tomcat to drop a session in the middle of a test?
>>Suggestions?
>>
>>j
>>
>>
>
>Craig
>
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 
>
>
>  
>




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Does closing a Connection variable and setting it to null close all of the ResultSet and Statements?

2002-08-27 Thread Ben Walding

I wrote a booch utility class (fancy name for static methods...)

It has a whole lot of overloaded (Connection, PreparedStatement, 
Statement, ResultSet etc) methods like this... (LOGGER is a JDK1.4 logger)

public static void closeJDBCResource(ResultSet rs) {
try {
if (rs != null) {
rs.close();
}
} catch (SQLException e) {
LOGGER.log(Level.FINE, e.getLocalizedMessage(), e);
}
}

Simplifying (probably over simplifying, I don't see the point in 
unnecessary duplication or nulling local variables) Craig's code down to...

  Connection conn = null;
  Statement stmt = null;  // Or PreparedStatement if needed
  ResultSet rs = null;
  try {
conn = ... get connection from connection pool ...
stmt = conn.createStatement("select ...");
rs = stmt.executeQuery();
... iterate through the result set ...
  } catch (SQLException e) {
... deal with errors ...
  } finally {
closeJDBCResource(rs);
closeJDBCResource(stmt);
closeJDBCResource(conn);
  }


Glenn Nielsen wrote:

> Hmm,  this example code should get added to the Tomcat 
> JNDI-DataSource-HOWTO. :-)
>
> Craig R. McClanahan wrote:
>
>>
>> On Tue, 27 Aug 2002, Short, Dave wrote:
>>
>>
>>> Date: Tue, 27 Aug 2002 09:08:58 -0700
>>> From: "Short, Dave" <[EMAIL PROTECTED]>
>>> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
>>> To: 'Tomcat Users List' <[EMAIL PROTECTED]>
>>> Subject: RE: Does closing a Connection variable and setting it to null
>>>clo se all of the ResultSet and Statements?
>>>
>>> By closing you mean set the ResultSet and Statement objects to null -
>>> correct?
>>>
>>
>>
>> No ... explicitly call close() on them first.  My most common pattern 
>> for
>> JDBC calls goes like this:
>>
>>   Connection conn = null;
>>   Statement stmt = null;  // Or PreparedStatement if needed
>>   ResultSet rs = null;
>>   try {
>> conn = ... get connection from connection pool ...
>> stmt = conn.createStatement("select ...");
>> rs = stmt.executeQuery();
>> ... iterate through the result set ...
>> rs.close();
>> rs = null;
>> stmt.close();
>> stmt = null;
>> conn.close(); // Return to connection pool
>> conn = null;
>>   } catch (SQLException e) {
>> ... deal with errors ...
>>   } finally {
>> if (rs != null) {
>>   try { rs.close(); } catch (SQLException e) { ; }
>>   rs = null;
>> }
>> if (stmt != null) {
>>   try { stmt.close(); } catch (SQLException e) { ; }
>>   stmt = null;
>> }
>> if (conn != null) {
>>   try { conn.close(); } catch (SQLException e) { ; }
>>   conn = null;
>> }
>>   }
>>
>> This way, you always clean up after yourself as quickly as possible, and
>> never forget to return the connection to the connection pool -- even if
>> exceptions occur.
>>
>> Craig
>>
>>
>> --
>> To unsubscribe, e-mail:   
>> 
>> For additional commands, e-mail: 
>> 
>
>
>
>
>
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
>
>




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: XML parsing error on file /WEB-INF/web.xml

2002-08-27 Thread Ben Walding

Posting your web.xml would make it easier!

Jill Veronda wrote:

>On starting tomcat 4.0.4 I get the error:
>
>2002-08-27 18:10:54 Exception initializing TldLocationsCache: XML parsing error on 
>file /WEB-INF/web.xml: (line 7, col 10): 
>Document root element "web-app", must match DOCTYPE root "web-app".
>
>Can anyone tell me what two places the error is referring to?  I am using Tomcat 
>4.0.4, Apache 1.3.12 connected using mod_jk, JDK 1.3.1 on Windows 2000 Server.
>
>
>Full log file below:
>
>
>
>2002-08-27 18:10:54 WebappLoader[/manager]: Deploying class repositories to work 
>directory C:\tomcat\work\Standalone\rack2\manager
>2002-08-27 18:10:54 StandardManager[/manager]: Seeding random number generator class 
>java.security.SecureRandom
>2002-08-27 18:10:54 StandardManager[/manager]: Seeding of random number generator has 
>been completed
>2002-08-27 18:10:54 ContextConfig[/manager]: Added certificates -> request attribute 
>Valve
>2002-08-27 18:10:54 ContextConfig[/manager]: Configured an authenticator for method 
>BASIC
>2002-08-27 18:10:54 StandardWrapper[/manager:default]: Loading container servlet 
>default
>2002-08-27 18:10:54 org.apache.catalina.servlets.DefaultServlet: init
>2002-08-27 18:10:54 StandardWrapper[/manager:invoker]: Loading container servlet 
>invoker
>2002-08-27 18:10:54 org.apache.catalina.servlets.InvokerServlet: init
>2002-08-27 18:10:54 org.apache.jasper.servlet.JspServlet: init
>2002-08-27 18:10:54 Exception initializing TldLocationsCache: XML parsing error on 
>file /WEB-INF/web.xml: (line 7, col 10): Document root element "web-app", must match 
>DOCTYPE root "web-app".
>2002-08-27 18:10:54 StandardHost[rack2]: Installing web application at context path  
>from URL file:C:\tomcat\webapps\ROOT
>2002-08-27 18:10:54 WebappLoader[]: Deploying class repositories to work directory 
>C:\tomcat\work\Standalone\rack2\_
>2002-08-27 18:10:54 StandardManager[]: Seeding random number generator class 
>java.security.SecureRandom
>2002-08-27 18:10:54 StandardManager[]: Seeding of random number generator has been 
>completed
>2002-08-27 18:10:54 ContextConfig[]: Added certificates -> request attribute Valve
>2002-08-27 18:10:54 StandardWrapper[:default]: Loading container servlet default
>2002-08-27 18:10:54 org.apache.catalina.servlets.DefaultServlet: init
>2002-08-27 18:10:54 StandardWrapper[:invoker]: Loading container servlet invoker
>2002-08-27 18:10:54 org.apache.catalina.servlets.InvokerServlet: init
>2002-08-27 18:10:54 org.apache.jasper.servlet.JspServlet: init
>2002-08-27 18:10:54 Exception initializing TldLocationsCache: XML parsing error on 
>file /WEB-INF/web.xml: (line 7, col 10): Document root element "web-app", must match 
>DOCTYPE root "web-app".
>2002-08-27 18:10:54 StandardHost[rack2]: Installing web application at context path 
>/tomcat-docs from URL file:C:\tomcat\webapps\tomcat-docs
>2002-08-27 18:10:54 WebappLoader[/tomcat-docs]: Deploying class repositories to work 
>directory C:\tomcat\work\Standalone\rack2\tomcat-docs
>2002-08-27 18:10:54 StandardManager[/tomcat-docs]: Seeding random number generator 
>class java.security.SecureRandom
>2002-08-27 18:10:54 StandardManager[/tomcat-docs]: Seeding of random number generator 
>has been completed
>2002-08-27 18:10:54 ContextConfig[/tomcat-docs]: Added certificates -> request 
>attribute Valve
>2002-08-27 18:10:54 StandardWrapper[/tomcat-docs:default]: Loading container servlet 
>default
>2002-08-27 18:10:54 org.apache.catalina.servlets.DefaultServlet: init
>2002-08-27 18:10:54 StandardWrapper[/tomcat-docs:invoker]: Loading container servlet 
>invoker
>2002-08-27 18:10:54 org.apache.catalina.servlets.InvokerServlet: init
>2002-08-27 18:10:54 org.apache.jasper.servlet.JspServlet: init
>2002-08-27 18:10:54 Exception initializing TldLocationsCache: XML parsing error on 
>file /WEB-INF/web.xml: (line 7, col 10): Document root element "web-app", must match 
>DOCTYPE root "web-app".
>2002-08-27 18:10:54 StandardHost[rack2]: Installing web application at context path 
>/webdav from URL file:C:\tomcat\webapps\webdav
>2002-08-27 18:10:54 WebappLoader[/webdav]: Deploying class repositories to work 
>directory C:\tomcat\work\Standalone\rack2\webdav
>2002-08-27 18:10:54 StandardManager[/webdav]: Seeding random number generator class 
>java.security.SecureRandom
>2002-08-27 18:10:54 StandardManager[/webdav]: Seeding of random number generator has 
>been completed
>2002-08-27 18:10:55 ContextConfig[/webdav]: Added certificates -> request attribute 
>Valve
>2002-08-27 18:10:55 StandardWrapper[/webdav:default]: Loading container servlet 
>default
>2002-08-27 18:10:55 org.apache.catalina.servlets.DefaultServlet: init
>2002-08-27 18:10:55 StandardWrapper[/webdav:invoker]: Loading container servlet 
>invoker
>2002-08-27 18:10:55 org.apache.catalina.servlets.InvokerServlet: init
>2002-08-27 18:10:55 org.apache.jasper.servlet.JspServlet: init
>2002-08-27 18:10:55 Exception initializing TldLocationsCache: XML parsing error on 
>file /WEB-IN

Re: sending login credentials using SSL

2002-08-29 Thread Ben Walding

You need to look at the user-data-constraint section of  your web.xml. 
Basically it can allow you to control how the server transmits the 
authentication information.

http://www.onjava.com/pub/a/onjava/2001/08/06/webform.html?page=2

Search down for


  Enforcing SSL


Jim Clayson wrote:

> Hi,
>
> Should it be common practice to send login details (username + 
> password) via SSL? I'll be using form-based authentication and was 
> wondering about how to beef up the security of transmitting username 
> and password over http.
>
> If so how is this generally achieved ie how would one specify that all 
> logins should be marked as CONFIDENTIAL?
>
> Thanks
> Jim
>
>
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
>
>




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Best Connector for Apache 2x and Tomcat 4x

2002-08-30 Thread Ben Souther

Can anyone comment on which is the best (in this case, best means easiest
not fastest or most flexible) connector to use for Apache2 and Tomcat4x?
I've used mod_jserv a couple years ago.
Also, if someone could point me to a well written HOWTO for integrating the
two, I would be most grateful.

Thanks
-Ben


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




Re: Best Connector for Apache 2x and Tomcat 4x

2002-08-30 Thread Ben Souther

Thank you,

Best IS relative. That's why I explicitly stated my needs in parenthesis.
:-)
I'm running on RH Linux 7.1

The reason I wanted to integrate the two is that I don't want to run tomcat
as the root user but I do want to use port 80 instead of port 8080. I know
that Apache gets started by the root user but then forks off all other
processes to the user "nobody".

If you know of a way to configure Tomcat to bind to port 80 without having
its processes run by the root user, this would eliminate the need for me to
integrate. It isn't a site with a lot of traffic or static content.


- Original Message -
From: "Turner, John" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Friday, August 30, 2002 8:39 AM
Subject: RE: Best Connector for Apache 2x and Tomcat 4x


>
> "Best" is relative.  This question comes up *a lot*.  If you are familiar
> with mod_jserv, mod_jk would be the logical choice.  Mod_webapp has some
> issues.  Most people seem to be using mod_jk in production environments.
> Note that tomcat does an OK job as a stand-alone server without apache, so
> unless you have a need for apache's features (virtual hosting, directory
> restrictions, rewriting, whatever) or a high-traffic site with lots of
> static content, you might save yourself some time and effort by just using
> tomcat.
>
> That said, for the HOWTO, what platform are you on?  I have a HOWTO for
> apache 1.3 and tomcat 4 on RH 7.2 here:
> http://www.johnturner.com/howto/apache-tomcat-howto.html  Apache2 is very
> similar, and I will be updating the HOWTO today with additional build
> instructions for mod_jk and apache2.
>
> John Turner
> [EMAIL PROTECTED]
>
> > -Original Message-
> > From: Ben Souther [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, August 30, 2002 8:34 AM
> > To: [EMAIL PROTECTED]
> > Subject: Best Connector for Apache 2x and Tomcat 4x
> >
> >
> > Can anyone comment on which is the best (in this case, best
> > means easiest
> > not fastest or most flexible) connector to use for Apache2
> > and Tomcat4x?
> > I've used mod_jserv a couple years ago.
> > Also, if someone could point me to a well written HOWTO for
> > integrating the
> > two, I would be most grateful.
> >
> > Thanks
> > -Ben
> >
> >
> > --
> > To unsubscribe, e-mail:
> > <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail:
> > <mailto:[EMAIL PROTECTED]>
> >
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>


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




Re: Best Connector for Apache 2x and Tomcat 4x

2002-08-30 Thread Ben Souther

I see what you mean about this issue showing up a lot.
This wouldn't be the case if there was some documentation for this on the
apache site.
I've just started going through your HOWTO and it looks well written. You
might want to consider contributing it when you've got it updated.








- Original Message -
From: "Turner, John" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Friday, August 30, 2002 9:06 AM
Subject: RE: Best Connector for Apache 2x and Tomcat 4x


>
> I hear you on the root user issue.
>
> I don't know of a way to bind tomcat to port 80 and have tomcat run as a
> non-root user.  I run my tomcats under a non-root user account, but the
> bound ports are all 8000+ since I use the connector.
>
> My HOWTO should help you out...I will be updating it today (actually, I am
> working on it right now).  I've gotten email from people who have used it
> not only for RH, but also FreeBSD and NetBSD, as well as SuSE and
Mandrake,
> so it should get you started.  The only difference between apache 1.3 and
> apache 2.0 as far as tomcat integration goes is needing a different
> mod_jk.so binary, but if you download the connector source package and run
> through the build process, you will get connectors for both 1.3 and 2.0,
> then you can pick which one you copy to apache's modules or libexec
> directory.
>
> SIDE NOTE: The build process in my HOWTO uses ANT.  Based on suggestions
> from others, I'm changing that to use the standard ./configure and apxs,
> it's easier and less error-prone.  The changes to the HOWTO will be live
> ASAP.
>
> John
>
>
> > -Original Message-
> > From: Ben Souther [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, August 30, 2002 8:50 AM
> > To: Tomcat Users List
> > Subject: Re: Best Connector for Apache 2x and Tomcat 4x
> >
> >
> > Thank you,
> >
> > Best IS relative. That's why I explicitly stated my needs in
> > parenthesis.
> > :-)
> > I'm running on RH Linux 7.1
> >
> > The reason I wanted to integrate the two is that I don't want
> > to run tomcat
> > as the root user but I do want to use port 80 instead of port
> > 8080. I know
> > that Apache gets started by the root user but then forks off all other
> > processes to the user "nobody".
> >
> > If you know of a way to configure Tomcat to bind to port 80
> > without having
> > its processes run by the root user, this would eliminate the
> > need for me to
> > integrate. It isn't a site with a lot of traffic or static content.
> >
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>


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




Re: Best Connector for Apache 2x and Tomcat 4x

2002-08-30 Thread Ben Souther

John,

I've followed the directions in your howto and the two don't seem to be
connecting.
The only clue I can find is in the Catalina.out log:

mod_jk location: libexec/mod_jk.so
Make sure it is installed corectly or  set the config location
Using 
Starting service Tomcat-Standalone
Apache Tomcat/4.0.4
Starting service Tomcat-Apache
Apache Tomcat/4.0.4


Is this something you've run into before?

Thanks
-Ben







- Original Message -
From: "Ben Souther" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Friday, August 30, 2002 9:23 AM
Subject: Re: Best Connector for Apache 2x and Tomcat 4x


> I see what you mean about this issue showing up a lot.
> This wouldn't be the case if there was some documentation for this on the
> apache site.
> I've just started going through your HOWTO and it looks well written. You
> might want to consider contributing it when you've got it updated.
>
>
>
>
>
>
>
>
> - Original Message -
> From: "Turner, John" <[EMAIL PROTECTED]>
> To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
> Sent: Friday, August 30, 2002 9:06 AM
> Subject: RE: Best Connector for Apache 2x and Tomcat 4x
>
>
> >
> > I hear you on the root user issue.
> >
> > I don't know of a way to bind tomcat to port 80 and have tomcat run as a
> > non-root user.  I run my tomcats under a non-root user account, but the
> > bound ports are all 8000+ since I use the connector.
> >
> > My HOWTO should help you out...I will be updating it today (actually, I
am
> > working on it right now).  I've gotten email from people who have used
it
> > not only for RH, but also FreeBSD and NetBSD, as well as SuSE and
> Mandrake,
> > so it should get you started.  The only difference between apache 1.3
and
> > apache 2.0 as far as tomcat integration goes is needing a different
> > mod_jk.so binary, but if you download the connector source package and
run
> > through the build process, you will get connectors for both 1.3 and 2.0,
> > then you can pick which one you copy to apache's modules or libexec
> > directory.
> >
> > SIDE NOTE: The build process in my HOWTO uses ANT.  Based on suggestions
> > from others, I'm changing that to use the standard ./configure and apxs,
> > it's easier and less error-prone.  The changes to the HOWTO will be live
> > ASAP.
> >
> > John
> >
> >
> > > -Original Message-
> > > From: Ben Souther [mailto:[EMAIL PROTECTED]]
> > > Sent: Friday, August 30, 2002 8:50 AM
> > > To: Tomcat Users List
> > > Subject: Re: Best Connector for Apache 2x and Tomcat 4x
> > >
> > >
> > > Thank you,
> > >
> > > Best IS relative. That's why I explicitly stated my needs in
> > > parenthesis.
> > > :-)
> > > I'm running on RH Linux 7.1
> > >
> > > The reason I wanted to integrate the two is that I don't want
> > > to run tomcat
> > > as the root user but I do want to use port 80 instead of port
> > > 8080. I know
> > > that Apache gets started by the root user but then forks off all other
> > > processes to the user "nobody".
> > >
> > > If you know of a way to configure Tomcat to bind to port 80
> > > without having
> > > its processes run by the root user, this would eliminate the
> > > need for me to
> > > integrate. It isn't a site with a lot of traffic or static content.
> > >
> >
> > --
> > To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> >
>


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




Re: Question about beans and memory...

2002-09-03 Thread Ben Souther

There are some exeptions to this.
One that I'm aware of is a database connection.
When in doubt, explicitly destroy all created items.




- Original Message -
From: "Michael Nicholson" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, September 03, 2002 2:56 PM
Subject: Re: Question about beans and memory...


> Thanks... that's what I hoped... so now I just have to make sure I don't
> grow any unnecessary branches to stuff...:)  or buy a weed wacker to get
rid
> of it all  :-D
>
>
> - Original Message -
> From: "Will Hartung" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Sent: Tuesday, September 03, 2002 2:57 PM
> Subject: Re: Question about beans and memory...
>
>
> > Imaging your Bean as being a branch of a tree and all of the stuff
inside
> of
> > it their own little branches. When you remove your bean from the
session,
> > you just snipped the branch off the tree. Anything within that branch
that
> > is still connected to the trunk of the tree through some other method,
> will
> > stay around, but all of the rest will Go Away.
> >
> > So, simply, as long as nothing references anything within your bean,
then
> it
> > will all be reclaimed in due time.
> >
> > Regars,
> >
> > Will Hartung
> > ([EMAIL PROTECTED])
> >
> > - Original Message -
> > From: "Michael Nicholson" <[EMAIL PROTECTED]>
> > To: "Tomcat Users List" <[EMAIL PROTECTED]>
> > Sent: Tuesday, September 03, 2002 11:29 AM
> > Subject: Question about beans and memory...
> >
> >
> > So, let's say I have a bean with a whole bunch of
fields/variables/objects
> > in it.  You know, like some strings, some ResultSets (very short lived),
> > some ints,  etc.  Ok, so I finish with my bean.  I don't need it
anymore.
> > So, I remove it from the session (where it lives) and null it out
> (searBean
> > = null;).  Hopefully it, at least, can now be garbage collected;  what
> about
> > all the little objects that used to live inside of it?  Are they now
> > garbage?  Or do I need to null them each out?  I suppose I could have a
> > method cleanUp() or something that would simply null out each object
> within
> > the bean and call that right before I was done with the bean, but I'm
> still
> > curious.  Also, for request scoped beans, presumably they're garbage
> nearly
> > immediately (i.e., right after the request is over).  Do I have to null
> out
> > they're objects to make them garbage?
> >
> > Ok... enough babbling for now.
> >
> > Michael Nicholson,
> > Carolina Center for Public Service
> >
> >
> >
> > --
> > To unsubscribe, e-mail:
> 
> > For additional commands, e-mail:
> 
> >
> >
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: question about localhost

2002-09-03 Thread Ben Walding

0.0.0.0:8080 means that Tomcat is bound to all interfaces on port 8080

Some things to look at

Have you added a proxy?  (need to add a proxy bypass for localhost)
Does ping localhost end up pinging 127.0.0.1 (your hosts file might need 
updating)?
Can you telnet to 127.0.0.1  port 8080 and get a connection?

[EMAIL PROTECTED] wrote:

>Hi, Sir,
>I used Tomcat3.2 as my web server. before I installing rogers hi-speed internet, I 
>can use it when I type in http://localhost:8080/, and now I installed rogers hi-speed 
>internet , when I try to use it typing in "http://localhost:8080/";, it dosen't work, 
>there is tips say "can't find server".
>MY platform is windows 2000 professional. After I startup tomcat, open port 8080, in 
>dos prompt, I type in "netstat -an" , I found the address 0f port 8080 is 
>0.0.0.0:8080. So please tell me how can I configure the tomcat to let localhost:8080 
>does work? 
>thank you very much.
>
>Jeff xu
>
>  
>




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Replacement 401 pages

2002-09-04 Thread Ben Walding

Greetings all,
Maybe someone can answer the following conundrum for me!

I've replaced my 401 page with a servlet reference using the error-page 
section of the web.xml. I'd like the servlet to display different 
content based on what was accessed. At present I have to use javascript 
(document.location.href) to do this at the client end.   Surely there is 
a better way!?!

The servlet "works" and forces authentication (once I'd added a Realm 
header and 401 status code), however I can't detect the cause of the 
authentication in the authentication page servlet ("I" know what 
resource caused the authentication page to be called, but the servlet 
doesn't seem to have any simple way to determine this). All I need is a 
header being passed in on the request object, but if there is a spec 
defined way to do this... I'm all ears...

Since it isn't using a redirect (just some internal shenanigan), there 
doesn't seem to be any headers to help me out.

Cheers,

Ben


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




Is Tomcat just an add-on?

2002-09-04 Thread Ben Austin

Is Tomcat a web server or is it just an add-on for web servers that are not 
servlet-enabled?




_
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Solved! Re: Basic authentication and custom 401 Not Authorizederror page

2002-09-06 Thread Ben Walding

It can be made to work...

Put the error-page directive in as per web.xml spec

On the jsp / servlet it points at,

response.addHeader("WWW-Authenticate", "BASIC realm=\"" + realm
+ "\"");
response.setStatus(HttpServletResponse.SC_UNAUTHORIZED);

and then write custom page

And it will challenge (well it did for me...)

No need for filters or any of that jazz.


Joe Tomcat wrote:

>Here is how you can create a custom 401 (Not Authorized) error response
>in Tomcat.  Putting a directive like this:
>
>
>  401
>  /errors/401.html
>
>
>in web.xml will not work.  If you put that in web.xml, it will deny all
>authorization.
>
>The thing to do is to create a filter for the resources you want to
>protect.  Do the conventional basic authentication in the filter. 
>However, here is the part which is different:
>
>   String errorFile = "/errors/401.html";
>response.addHeader("WWW-Authenticate", "BASIC realm=\"" + realm
>+ "\"");
>response.setStatus(HttpServletResponse.SC_UNAUTHORIZED);
>RequestDispatcher rd = request.getRequestDispatcher(errorFile);
>try { rd.forward(request,response); }
>
>So instead of letting the container generate the html for the 401
>response, you always generate it using the RequestDispatcher.  The
>RequestDispatcher can of course be an html or jsp file.
>
>So that is the solution to custom 401 errors in Tomcat.
>
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 
>
>
>  
>




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Starting and stopping Tomcat as non-root

2002-09-06 Thread Ben Souther

How would "Not allowing non-root users to bind to Ports <1024" result in
breakins?
The only way I could see that happening is if a lazy Unix admin just ran
everything as root.
In that case, you certainly can't blame the OS.







- Original Message -
From: "Turner, John" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Friday, September 06, 2002 8:50 AM
Subject: RE: Starting and stopping Tomcat as non-root


>
> Wow.  Not to start a debate, but that's the silliest statement I've seen
in
> awhile.
>
> If you don't like how it works, change it.  You have the source.
>
> John
>
> > -Original Message-
> > From: Joe Tomcat [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, September 06, 2002 1:39 AM
> > To: Tomcat Users List
> > Subject: Starting and stopping Tomcat as non-root
> >
> >
> > Alternatively, is there a way to make Linux so that it lets any user
> > bind to any port?  This "must be root to bind to low ports"
> > is the most
> > idiotic "security" measure in all of Unix land and has
> > resulted in more
> > breakins over the years than any other single thing.  Can I
> > turn it off?
> >
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: tomcat as nt serice

2002-09-06 Thread Ben Souther

One workaround might be to create a batch file that starts tomcat when the
NT box boots up.
You can alter the catalina.sh script in /conf to use javaw
instead of java, you eliminate that persistant DOS window hanging around on
the machine. All output with Tomcat 4x gets directed to catalina.out in the
conf directory, so you won't miss the console window too much.



- Original Message -
From: "Pragnesh Kumar" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, September 06, 2002 2:05 AM
Subject: tomcat as nt serice


Hi All Tomcat User and Developper.
This is Pragneshkumar Gandhi from India

I am facing very tough time with tomcat.
>From last 15 days i am trying to install tomcat as nt service but no LUCK.

i have tried Javaservice and Javaserv bcoz initially i had used jdk.1.3.1

but now i shifted to jdk1.2(1.2.2)
but the jk_nt_service.exe is excuting properlly but service is stopping just
after the start.

"The Jakarta service terminated unexpectedly. It has done this 1 time(s).
The following corrective action will be taken in 0 milliseconds: No action"

Above line are founded in the event viewer. no lines in any log file of
tomcat..

i am not the member of the list . i have send the mail but it might take the
time so pls give reply on

[EMAIL PROTECTED] or [EMAIL PROTECTED]

Urgent help will be very Nice
Thanking you all by Heart in advance

bye

Reagrds





--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Tomcat 4.1.10 startup exception

2002-09-06 Thread Ben Walding

I had the same problem... in my case, the validator for the server.xml 
(or the fragment for your application) seems to have become a lot tighter.


I chopped bits out of my server.xml fragment until it started up and 
tracked it down to an  tag... I hadn't set the data type on 
it...

YMMWV (will vary!)

(This was a switch from 4.0.4 to 4.1.9, but I'd imagine 4.1.10 is similar)

lee ballancore wrote:

>Has any one experience the same error message if so is it fatal
>
>i have just installed Tomcat 4.1.10 on startup it throws this exception
>
>06-Sep-2002 14:06:53 org.apache.commons.modeler.Registry loadRegistry
>INFO: Loading registry information
>06-Sep-2002 14:06:53 org.apache.commons.modeler.Registry getRegistry
>INFO: Creating new Registry instance
>06-Sep-2002 14:06:54 org.apache.commons.modeler.Registry getServer
>INFO: Creating MBeanServer
>06-Sep-2002 14:06:54 org.apache.coyote.http11.Http11Protocol init
>INFO: Initializing Coyote HTTP/1.1 on port 8080
>Starting service Tomcat-Standalone
>Apache Tomcat/4.1.10
>06-Sep-2002 14:06:57 org.apache.commons.digester.Digester endElement
>SEVERE: End event threw exception
>java.lang.reflect.InvocationTargetException
>at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
>java:39)
>at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
>sorImpl.java:25)
>at java.lang.reflect.Method.invoke(Method.java:324)
>at org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.jav
>a:228)
>at org.apache.commons.digester.SetNextRule.end(SetNextRule.java:260)
>at org.apache.commons.digester.Digester.endElement(Digester.java:1036)
>at org.apache.xerces.parsers.AbstractSAXParser.endElement(AbstractSAXPar
>ser.java:579)
>at org.apache.xerces.impl.XMLNamespaceBinder.endElement(XMLNamespaceBind
>er.java:646)
>at org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(XMLDTDVal
>idator.java:1972)
>at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(XMLDTDValidator
>.java:878)
>at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.handleEndElemen
>t(XMLDocumentFragmentScannerImpl.java:1144)
>at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(
>XMLDocumentFragmentScannerImpl.java:987)
>at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent
>Dispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1445)
>at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XM
>LDocumentFragmentScannerImpl.java:333)
>at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.jav
>a:524)
>at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.jav
>a:580)
>at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
>at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.j
>ava:1169)
>at org.apache.commons.digester.Digester.parse(Digester.java:1514)
>at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDep
>loyer.java:335)
>at org.apache.catalina.core.StandardHost.install(StandardHost.java:803)
>at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.j
>ava:452)
>at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:409
>)
>
>thanks in advance
>
>
>
>
>-
>Get a bigger mailbox -- choose a size that fits your needs.
>
>  
>




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Permission denied trying to connect tomcat to port 80...

2002-09-06 Thread Ben Walding

Might be best to post the dump of your error message.

Although from the sounds of it, it might be that your catalina.sh / 
startup.sh is not set for execute

Try chmod a+x catalina.sh

Then
./catalina.sh run

See if that helps

Keith Pemberton wrote:

>I'm trying to point my tomcat server over to port 80 in Redhat Linux,
>but I am having a little trouble with it.  I have apache installed as
>well but I have both disabled the service and commented out the two
>lines in the /etc/services file that deal specifically with port 80. 
>Anyone have a suggestion as to why I am getting this error message and
>what I can do to resolve it?  Thanks in advance! 
>
>Keith 
>
>  
>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Permission denied trying to connect tomcat to port 80...

2002-09-06 Thread Ben Walding

Does it work if you pick a port like 2343 or some other random unused 
port (just to rule out some other service / odd configuration error).

Keith Pemberton wrote:

>Here is the output I get from running tomcat4 run.  Hope this helps:
>
>Using CATALINA_BASE:   /var/tomcat4
>Using CATALINA_HOME:   /var/tomcat4
>Using CATALINA_TMPDIR: /var/tomcat4/temp
>Using JAVA_HOME:   /usr/java/j2sdk1.4.0
>Catalina.start: LifecycleException:  null.open:  java.net.BindException:
>Permission denied:80
>LifecycleException:  null.open:  java.net.BindException: Permission
>denied:80
>at
>org.apache.catalina.connector.http.HttpConnector.initialize(HttpConnector.java:1130)
>at
>org.apache.catalina.core.StandardService.initialize(StandardService.java:454)
>at
>org.apache.catalina.core.StandardServer.initialize(StandardServer.java:553)
>at org.apache.catalina.startup.Catalina.start(Catalina.java:780)
>at
>org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
>at
>org.apache.catalina.startup.Catalina.process(Catalina.java:179)
>at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>at
>sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>at
>sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>at java.lang.reflect.Method.invoke(Method.java:324)
>at
>org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
>- Root Cause -
>java.net.BindException: Permission denied:80
>at
>org.apache.catalina.connector.http.HttpConnector.open(HttpConnector.java:950)
>at
>org.apache.catalina.connector.http.HttpConnector.initialize(HttpConnector.java:1128)
>at
>org.apache.catalina.core.StandardService.initialize(StandardService.java:454)
>at
>org.apache.catalina.core.StandardServer.initialize(StandardServer.java:553)
>at org.apache.catalina.startup.Catalina.start(Catalina.java:780)
>at
>org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
>at
>org.apache.catalina.startup.Catalina.process(Catalina.java:179)
>at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>at
>sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>at
>sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>at java.lang.reflect.Method.invoke(Method.java:324)
>at
>org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
>
>Keith
>
>On Fri, 2002-09-06 at 22:59, Ben Walding wrote:
>
>Might be best to post the dump of your error message.
>
>Although from the sounds of it, it might be that your catalina.sh / 
>startup.sh is not set for execute
>
>Try chmod a+x catalina.sh
>
>Then
>./catalina.sh run
>
>See if that helps
>
>Keith Pemberton wrote:
>
>>I'm trying to point my tomcat server over to port 80 in Redhat Linux,
>>but I am having a little trouble with it.  I have apache installed as
>>well but I have both disabled the service and commented out the two
>>lines in the /etc/services file that deal specifically with port 80. 
>>Anyone have a suggestion as to why I am getting this error message and
>>what I can do to resolve it?  Thanks in advance! 
>>
>>Keith 
>>
>>  
>>
>
>
>--
>To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>
>
>
>  
>




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




Re: onLoad Servlet

2002-09-07 Thread Ben Walding

You're probably searching for the wrong thing!
 From web.xml (see http://java.sun.com/dtd/web-app_2_3.dtd)




To unsubscribe, e-mail:   
>For additional commands, e-mail: 
>
>
>  
>




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Autodeploy oddity (bug?) in 4.1.10 (TomCat deploys same webapp to2 contexts instead of 1)

2002-09-07 Thread Ben Walding

I've found a minor oddity when using auto deployment in 4.1.10.



Take a simple web application (called montage),  create a 
montage_prod.war and montage_prod.xml for it and copy them to the 
webapps directory.  However before doing that, change the  path i.e.



Restart tomcat.

TomCat proceeds to merrily deploy montage_prod.war to /montage and this 
context works.

However it also deploys montage_prod.war to /montage_prod and this 
context doesn't work properly (I dispute whether it should even exist at 
all).  It appears to be missing the environment settings from 
montage_prod.xml.

Admittedly this won't affect many people and I only noticed because I've 
started using the built-in TomCat manager.


Is this intentional behaviour?

(I realise I can rename montage_prod.war to montage.war  and similarly 
for the xml, but that isn't really the point).
(I've looked at 
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/host.html#Automatic%20Application%20Deployment,
 
but it skates around this question)

Cheers,


Ben


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




Re: Where to place JAR file???

2002-09-07 Thread Ben Walding

Anything under WEB-INF is invisible to a web user, it's just the way 
things are.
Hence, I believe that you are going to need to put the library.jar in 
two places, once in the WEB-INF/lib and once in the same dir as 
applet.jar (but not under WEB-INF)

Michael Petres wrote:

>Hello,
>
>I have a problem that is probably silly if you know tomcat well&
>
>I have configured tomcat to load a context (eBMF). In order to avoid loading
>the servlet twice I have set the appBase in the server.xml file to an
>empty string and I have placed the applet related stuff in a directory at
>the same level as the default webapps, but called eBMF. This directory now
>has /WEB-INF/classes and /WEB-INF/lib in it.
>
>The servlet code itself resides in server.jar and is placed in
>eBMF/WEB-INF/lib. I am using an HTML page with an embedded  tag to
>load the applet (packaged in applet.jar) that will interact with the
>servlet. Both applet and servlet use stuff in a third jar, library.jar.
>
>My serlvet context is started by tomcat without problems as long as
>server.jar and library.jar are in eBMF/WEB-INF/lib, as expected&
>In order to run the applet I however must place the applet.jar and
>library.jar in the eBMF directory and use the following parameter on the
> tag .
>
>I would for obvious reasons like to keep all my jars in eBMF/WEB-INF/lib,
>for one to avoid having multiple copies of the same jar file under the
>directory structure. The browser is unable to gain access to applet.jar if
>it is moved from the context base, eBMF to eBMF/WEB-INF/lib, regardless of
>the way I sepecify the archive parameter in the html page, e.g. I tried
>. But it wont work!
>
>Is there some configuration issue I am missing here? Obviously Tomcat will
>ensure the proper context to the servlet base, which is eBMF, but why can
>files NOT be accessed in directories under it?
>
>
>Michael Petres
>~
>InnovObjX Corp.
>Web: www.innovobjx.com
>Tel: 905-729-2235 x3
>Fax: 905-729-2235
>~
>
>
>  
>




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Autodeploy oddity (bug?) in 4.1.10 (TomCat deploys same webappto 2 contexts instead of 1)

2002-09-07 Thread Ben Walding

Using the manager, I deployed the application (removed it from webapps 
dir first and restarted tomcat).

/montage was then available (no /montage_prod)

Stopping & restarting tomcat made /montage disappear as expected.


It's seems like the auto deploy system doesn't check if you had a 
context descriptor xml file for your .war file.  


Robert L Sowders wrote:

>Does this still happen if you don't copy it to the webapps directory and 
>instead deploy it using the manager?
>
>rls
>
>
>
>
>
>Ben Walding <[EMAIL PROTECTED]>
>09/07/2002 01:28 AM
>Please respond to "Tomcat Users List"
>
> 
>To: Tomcat Users List <[EMAIL PROTECTED]>
>cc: 
>Subject:Autodeploy oddity (bug?) in 4.1.10 (TomCat deploys same 
>webapp to 2 
>contexts instead of 1)
>
>I've found a minor oddity when using auto deployment in 4.1.10.
>
>
>
>Take a simple web application (called montage),  create a 
>montage_prod.war and montage_prod.xml for it and copy them to the 
>webapps directory.  However before doing that, change the  path i.e.
>
>
>
>Restart tomcat.
>
>TomCat proceeds to merrily deploy montage_prod.war to /montage and this 
>context works.
>
>However it also deploys montage_prod.war to /montage_prod and this 
>context doesn't work properly (I dispute whether it should even exist at 
>all).  It appears to be missing the environment settings from 
>montage_prod.xml.
>
>Admittedly this won't affect many people and I only noticed because I've 
>started using the built-in TomCat manager.
>
>
>Is this intentional behaviour?
>
>(I realise I can rename montage_prod.war to montage.war  and similarly 
>for the xml, but that isn't really the point).
>(I've looked at 
>http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/host.html#Automatic%20Application%20Deployment,
> 
>but it skates around this question)
>
>Cheers,
>
>
>Ben
>
>
>--
>To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>
>
>
>
>
>--
>To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>
>
>  
>




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




Re: threads best practice

2002-09-09 Thread Ben Walding

I can't imagine why you'd have problems with your classloader.

In any event, I prefer to use context lifecycle events myself.

See http://www.onjava.com/pub/a/onjava/2001/04/12/listeners.html?page=1

You might want to post more details about your classloader problem as it 
is possibly only a minor problem.

skraaatch wrote:

>hi all,
>please could someone tell me what the best way to start and run a background
>thread is in tomcat? i have a couple of tasks that need to run on a regular
>basis to update my db. however, using an initialisation servlet to start the
>threads seems to cause problems with the classloader.
>many thanks,
>aL.
>
>
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 
>
>
>  
>




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: [OT] Linux environment variables

2002-09-09 Thread Ben Souther

.bash_profile in each user's home directory will do it for you.








- Original Message -
From: "Turner, John" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Monday, September 09, 2002 8:30 AM
Subject: RE: [OT] Linux environment variables


>
> Depends on which shell you are using.  For sh, it would be
> USER_HOME/.profile. For bash it would be USER_HOME/.bash_profile (or even
> .profile if .bash_profile doesn't exist). tcsh is USER_HOME/.login, I
> believe, though I use sh or bash, so I can't be sure.  A search on Google
> should help you out.
>
> John
>
>
> > -Original Message-
> > From: Giorgio Ponza [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, September 09, 2002 6:51 AM
> > To: Tomcat Users List
> > Subject: [OT] Linux environment variables
> >
> >
> > Hi guys.
> > Sorry, i'm not expert in linux
> > I need that some environment variables (like JAVA_HOME) are
> > visible to a
> > specified user
> > Until today i worked with root, so i placed them in /etc/profile.
> > I'd like now them are visible only for the specified user (also the
> > installation is done by the user).
> > Is there a file for the user where i can place them?
> >
> > Sorry my english and my poor linux knowledge
> >
> > Giorgio
> >
> >
> > --
> > To unsubscribe, e-mail:
> > 
> > For additional commands, e-mail:
> > 
> >
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: mod_jk.so where from ??

2002-09-09 Thread Ben Souther

I found it here:
http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.1.10/bin/



- Original Message -
From: "Adar Wesley" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Monday, September 09, 2002 10:05 AM
Subject: RE: mod_jk.so where from ??


> 10x John !
>
> and where would that web site be ?
>
> Tal
>
> -Original Message-
> From: Turner, John [mailto:[EMAIL PROTECTED]]
> Sent: Monday, September 09, 2002 2:45 PM
> To: 'Tomcat Users List'
> Subject: RE: mod_jk.so where from ??
>
>
>
> My website by the end of the week.  Other than that, no.  Everyone has
been
> building them from source.
>
> John
>
>
> > -Original Message-
> > From: Adar Wesley [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, September 09, 2002 2:21 AM
> > To: 'Tomcat Users List'
> > Subject: mod_jk.so where from ??
> >
> >
> > Hi Group !
> >
> > I'm creating an installer that deploys tomcat on various systems.
> > Does anyone have any idea where may I find a collection of compiled
> > mod_jk.so for various systems ??
> >
> > Thanks !
> > Tal
> >
> > --
> > To unsubscribe, e-mail:
> > 
> > For additional commands, e-mail:
> > 
> >
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: mod_jk.so where from ??

2002-09-09 Thread Ben Souther

Sorry, I mean here:
http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.1.10/src/
- Original Message -
From: "Ben Souther" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Monday, September 09, 2002 9:18 AM
Subject: Re: mod_jk.so where from ??


> I found it here:
> http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.1.10/bin/
>
>
>
> - Original Message -
> From: "Adar Wesley" <[EMAIL PROTECTED]>
> To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
> Sent: Monday, September 09, 2002 10:05 AM
> Subject: RE: mod_jk.so where from ??
>
>
> > 10x John !
> >
> > and where would that web site be ?
> >
> > Tal
> >
> > -Original Message-
> > From: Turner, John [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, September 09, 2002 2:45 PM
> > To: 'Tomcat Users List'
> > Subject: RE: mod_jk.so where from ??
> >
> >
> >
> > My website by the end of the week.  Other than that, no.  Everyone has
> been
> > building them from source.
> >
> > John
> >
> >
> > > -Original Message-
> > > From: Adar Wesley [mailto:[EMAIL PROTECTED]]
> > > Sent: Monday, September 09, 2002 2:21 AM
> > > To: 'Tomcat Users List'
> > > Subject: mod_jk.so where from ??
> > >
> > >
> > > Hi Group !
> > >
> > > I'm creating an installer that deploys tomcat on various systems.
> > > Does anyone have any idea where may I find a collection of compiled
> > > mod_jk.so for various systems ??
> > >
> > > Thanks !
> > > Tal
> > >
> > > --
> > > To unsubscribe, e-mail:
> > > <mailto:[EMAIL PROTECTED]>
> > > For additional commands, e-mail:
> > > <mailto:[EMAIL PROTECTED]>
> > >
> >
> > --
> > To unsubscribe, e-mail:
> > <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail:
> > <mailto:[EMAIL PROTECTED]>
> >
> > --
> > To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> >
>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>


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




Re: mod_jk.so where from ??

2002-09-09 Thread Ben Souther

Oops,  didn't read the entire thread before replying.  Shame on me...







- Original Message -
From: "Ben Souther" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Monday, September 09, 2002 9:20 AM
Subject: Re: mod_jk.so where from ??


> Sorry, I mean here:
> http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.1.10/src/
> - Original Message -
> From: "Ben Souther" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Sent: Monday, September 09, 2002 9:18 AM
> Subject: Re: mod_jk.so where from ??
>
>
> > I found it here:
> > http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.1.10/bin/
> >
> >
> >
> > - Original Message -
> > From: "Adar Wesley" <[EMAIL PROTECTED]>
> > To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
> > Sent: Monday, September 09, 2002 10:05 AM
> > Subject: RE: mod_jk.so where from ??
> >
> >
> > > 10x John !
> > >
> > > and where would that web site be ?
> > >
> > > Tal
> > >
> > > -Original Message-
> > > From: Turner, John [mailto:[EMAIL PROTECTED]]
> > > Sent: Monday, September 09, 2002 2:45 PM
> > > To: 'Tomcat Users List'
> > > Subject: RE: mod_jk.so where from ??
> > >
> > >
> > >
> > > My website by the end of the week.  Other than that, no.  Everyone has
> > been
> > > building them from source.
> > >
> > > John
> > >
> > >
> > > > -Original Message-
> > > > From: Adar Wesley [mailto:[EMAIL PROTECTED]]
> > > > Sent: Monday, September 09, 2002 2:21 AM
> > > > To: 'Tomcat Users List'
> > > > Subject: mod_jk.so where from ??
> > > >
> > > >
> > > > Hi Group !
> > > >
> > > > I'm creating an installer that deploys tomcat on various systems.
> > > > Does anyone have any idea where may I find a collection of compiled
> > > > mod_jk.so for various systems ??
> > > >
> > > > Thanks !
> > > > Tal
> > > >
> > > > --
> > > > To unsubscribe, e-mail:
> > > > <mailto:[EMAIL PROTECTED]>
> > > > For additional commands, e-mail:
> > > > <mailto:[EMAIL PROTECTED]>
> > > >
> > >
> > > --
> > > To unsubscribe, e-mail:
> > > <mailto:[EMAIL PROTECTED]>
> > > For additional commands, e-mail:
> > > <mailto:[EMAIL PROTECTED]>
> > >
> > > --
> > > To unsubscribe, e-mail:
> > <mailto:[EMAIL PROTECTED]>
> > > For additional commands, e-mail:
> > <mailto:[EMAIL PROTECTED]>
> > >
> >
> >
> > --
> > To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> >
>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>


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




Re: Source code directory / deployment directories / CVS repositoryt ree (URGENT)

2002-09-10 Thread Ben Walding

Probably a good idea to read through 
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/appdev/source.html.  

I personally don't like having TomCat looking into my source area as I 
prefer to deploy for development like I do for production.  To this end 
I just create a WAR file and use the manager webapp to stop and start 
the context, as this is fully scripted it takes around 9 seconds for our 
application.  I also prefer to have my server.xml clean of context 
information eg (TomCat 4.1.* only).

%TOMCAT_HOME%/webapps/.xml  (the  node that is normally in 
server.xml)
%TOMCAT_HOME%/webapps/.war

And the use Ant's  to create the customised Context 
xml on the fly.



Heligon Sandra wrote:

>   I have a question about the directories structure.
>
>   For a web application we distinguish two directories structures:
>
>   - source code directory
>   that contains Java classes/packages specific to the application
>
>   - deployment application directory (= Tomcat files systems)
>something like
>   META-INF
>   Pages (contains JSP pages)
>   Images
>   WEB-INF
>   Lib
>   Classes 
>
>   I am using CVS to archive my files, I ask me questions about the
>CVS's repository for 
>   my application, something like:
>
>   MyApp
>
>   archive - contains .war
>   doc  - documentation
>   src  - contains the source code directory
>
>   how must I add the deployment directory ?
>   Can you give me example or advices ?
>
>   I think to do:
>
>   X:\MyProject\MyApp
>   archive - contains .war
>   doc  - documentation
>   src   - contains the source code directory
>   pages   - contains JSP pages
>   images 
>   web (contains configuration files web.xml)
>  - lib
>
>   I will get sources from CVS, compile sources (with the IDE) and
>create a .war.
>   
>   To deploy the directory under Tomcat (Tomcat is installed on
>y:\Tomcat) I have several solutions
>   1. use Ant and create a directory MyApp under y:/Tomcat/webapps and
>the sub-directories WEB-INf, pages etc...
>   2. set an element context in the server.xml that points on
>X:\MyProject\MyApp, isn't it?
>   
>   For me the second solution is better because my project used for the
>development (JBuilder project) points
>   on X:\MyProject\MyApp in order to access to the directories src,
>pages, images.
>   When I modified a Java source file or JSP or XML file, I just have
>to stop Tomcat and start it again because it
>   points on the updated directory.
>   With the first solution, I must stop Tomcat, launch the build.xml
>command and restart Tomcat, isn't it ?
>   If I forget the build.xml command Tomcat doesn't have the updated
>sources or JSP files.
>   I have choose the first solution because I don't know Ant and I have
>not a lot of time. 
>
>   Do you have remarks or advices ? 
>   What do you think about place JSP files in src directory ? in order
>to points on the X:\MyProject\MyApp\src
>   in the IDE and not see the other sub-directories (doc, archive,
>scriptsthey are unused in the IDE explorer).
>
>   
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 
>
>
>  
>




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Hosting services

2002-09-11 Thread Ben Souther

Have you looked at assortedInternet.com?

They don't let you stop Tomcat but you can use the manager app to restart
your app which would allow you to customize your web.xml file.
They are running Tomcat 4x (not sure whether it's 4.0.1 or 4.0.4) and
Postgresql/mySql.




- Original Message -
From: "Turner, John" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Wednesday, September 11, 2002 8:27 AM
Subject: RE: Hosting services


>
> With the price of computers these days, it might make more sense to colo
> instead of share.  I don't know of any shared-hosting provider with Tomcat
> support that will let you stop/start at will, especially on Windows.
>
> Colo, on the other hand, is very cheap nowadays.  You can find nice colo
> plans for less than $150 US per month, which isn't bad at all in my book.
> There are cheaper colo options, but you get what you pay for.  With colo,
> you could do whatever you wanted to the server.
>
> John
>
>
> > -Original Message-
> > From: Reynir Hübner [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, September 11, 2002 7:06 AM
> > To: Tomcat Users List
> > Subject: Hosting services
> >
> >
> > Hi,
> >
> > I'm looking for a hosting service in USA right now.
> > What would you recomend ?
> >
> > The applications use :
> > - two virtual hosts (private/public),
> > - tomcat 4.04 ( has been tested in tomcat 4.1.10),
> > - MySQL database (or Oracle, MSSQL, DB2 (have been tested)),
> > - features of using web.xml configurations (for initialize on
> > startup, servlet-mappings, etc).
> >
> > The applications can be deployed as war/ear or folders over
> > ftp. We need access to be able to start/stop the applications
> > or tomcat-service.
> > Preferably we would like to be able to run asp too, so that
> > really means that the server needs to run IIS and win2k
> > server (not unix).
> > Preferably we would like to have dedicated JVM, or tomcat instance.
> >
> >
> >
> > please recomend something you have tried or tested your self,
> > I've found probably 100 different ISP that provide some kind
> > of Java, some obviously dont fit, others may, yet others we
> > might change our apps to work with,  but I dont have time to
> > sign up and try em all out :)
> >
> >
> > thank you
> > [EMAIL PROTECTED]
> >
> >
> >
> >
> > --
> > To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Hosting services

2002-09-11 Thread Ben Souther

> it doesn't make not very good first impression...
I can't imagine that it would.

I've been using them for a few months and they've been good.
Good luck with your search.

-Ben





- Original Message -
From: "Reynir Hübner" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, September 11, 2002 8:38 AM
Subject: RE: Hosting services


> when I try accessing the page http://assortedInternet.com , I get INTERNAL
SERVER ERROR.
>
> it doesn't make not very good first impression...
>
> thanx anyway,
> -reynir
>
>
>
> > -Original Message-
> > From: Ben Souther [mailto:[EMAIL PROTECTED]]
> > Sent: 11. september 2002 12:35
> > To: Tomcat Users List
> > Subject: Re: Hosting services
> >
> >
> > Have you looked at assortedInternet.com?
> >
> > They don't let you stop Tomcat but you can use the manager
> > app to restart
> > your app which would allow you to customize your web.xml file.
> > They are running Tomcat 4x (not sure whether it's 4.0.1 or 4.0.4) and
> > Postgresql/mySql.
> >
> >
> >
> >
> > - Original Message -
> > From: "Turner, John" <[EMAIL PROTECTED]>
> > To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
> > Sent: Wednesday, September 11, 2002 8:27 AM
> > Subject: RE: Hosting services
> >
> >
> > >
> > > With the price of computers these days, it might make more
> > sense to colo
> > > instead of share.  I don't know of any shared-hosting
> > provider with Tomcat
> > > support that will let you stop/start at will, especially on Windows.
> > >
> > > Colo, on the other hand, is very cheap nowadays.  You can
> > find nice colo
> > > plans for less than $150 US per month, which isn't bad at
> > all in my book.
> > > There are cheaper colo options, but you get what you pay
> > for.  With colo,
> > > you could do whatever you wanted to the server.
> > >
> > > John
> > >
> > >
> > > > -Original Message-
> > > > From: Reynir Hübner [mailto:[EMAIL PROTECTED]]
> > > > Sent: Wednesday, September 11, 2002 7:06 AM
> > > > To: Tomcat Users List
> > > > Subject: Hosting services
> > > >
> > > >
> > > > Hi,
> > > >
> > > > I'm looking for a hosting service in USA right now.
> > > > What would you recomend ?
> > > >
> > > > The applications use :
> > > > - two virtual hosts (private/public),
> > > > - tomcat 4.04 ( has been tested in tomcat 4.1.10),
> > > > - MySQL database (or Oracle, MSSQL, DB2 (have been tested)),
> > > > - features of using web.xml configurations (for initialize on
> > > > startup, servlet-mappings, etc).
> > > >
> > > > The applications can be deployed as war/ear or folders over
> > > > ftp. We need access to be able to start/stop the applications
> > > > or tomcat-service.
> > > > Preferably we would like to be able to run asp too, so that
> > > > really means that the server needs to run IIS and win2k
> > > > server (not unix).
> > > > Preferably we would like to have dedicated JVM, or tomcat
> > instance.
> > > >
> > > >
> > > >
> > > > please recomend something you have tried or tested your self,
> > > > I've found probably 100 different ISP that provide some kind
> > > > of Java, some obviously dont fit, others may, yet others we
> > > > might change our apps to work with,  but I dont have time to
> > > > sign up and try em all out :)
> > > >
> > > >
> > > > thank you
> > > > [EMAIL PROTECTED]
> > > >
> > > >
> > > >
> > > >
> > > > --
> > > > To unsubscribe, e-mail:
> > > <mailto:[EMAIL PROTECTED]>
> > > For additional commands, e-mail:
> > > <mailto:[EMAIL PROTECTED]>
> > >
> > > --
> > > To unsubscribe, e-mail:
> > <mailto:[EMAIL PROTECTED]>
> > > For additional commands, e-mail:
> > <mailto:[EMAIL PROTECTED]>
> > >
> >
> >
> > --
> > To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>


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




Re: Tomcat with ASP pages

2002-09-11 Thread Ben Souther

Search for Chilisoft ASP..


- Original Message -
From: "Brad Rhoads" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Wednesday, September 11, 2002 12:51 PM
Subject: RE: Tomcat with ASP pages


> I don't think there's anyway to do so directly. There are several options
> for running ASP under Linux; just search Google.
>
> If your running NT, then configure IIS to work with tomcat for your
JSP/JAVA
> stuff and leave the ASP to IIS.
>
> > -Original Message-
> > From: Lionel Tafel [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, September 11, 2002 11:27 AM
> > To: Tomcat Users List
> > Subject: Tomcat with ASP pages
> >
> >
> > Hi,
> >
> > i'm traing to run an asp page into tomcat, it's
> > possible?
> > thanks
> >
> > =
> > Lionel A. Tafel
> > Consultor - Analista de Sistemas
> > Byte Tech S.A. - Buenos Aires - Argentina
> > Av. Del Libertador 15090 (B1641ANT) - Acassuso
> > Tel : (54+)4707-0077
> > Cel : (54+)155-013-0806
> > www.bytetech.com.ar
> >
> > __
> > Yahoo! - We Remember
> > 9-11: A tribute to the more than 3,000 lives lost
> > http://dir.remember.yahoo.com/tribute
> >
> > --
> > To unsubscribe, e-mail:
> > 
> > For additional commands, e-mail:
> > 
> >
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Error: ThreadPool: Pool exhausted with 100 threads.

2002-09-11 Thread Ben Litchfield


[EmbeddedTomcatSX] 2002-09-11 14:55:12 - ThreadPool: Pool exhausted with
100 threads.

I have gotten this message several times.  I am running
Jboss-2.4.1_Tomcat-3.2.3.  The server become unresponsive at this point
and needs to be restarted to fix it.

Any suggestions.
Ben Litchfield


 --


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




Best way to redeploy a war file?

2002-09-11 Thread Ben Rometsch

Hi There,

Apologies if this has been asked before. I'm running tomcat 4.0 in
production and looking to move up to 4.1. Can someone explain the
simplest and least intrusive method of redeploying a war file to update
an application?

At the moment my method (in 4.0) is:

- Remove /webapps/app.war
- Upload new app.war to /webapps
- Shutdown tomcat
- rm -Rf webapps/app
- Startup tomcat

Which all seems a bit over the top. Is there a simpler method that does
not involve taking tomcat down?

In 4.1, I've tried using the http manager app to undeploy and then
redeploy the application, but the undeploy does not seem to work. I
always get the error:

FAIL - Cannot remove document base for path /outreach

Is this a bug? I've tried it on the /examples app as well and I get the
same error. 

Many thanks in advance,
Ben Rometsch


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




Re: Bug in 4.1.10?

2002-09-12 Thread Ben Walding

You haven't done something odd with file permissions / quotas have you?

I can't recall offhand what user the service runs as, but you could try 
setting it to run as the same user as you are logged in as.

We are using TomCat 4.1.10 on Win2K SP3 with JDK 1.4.0_01, and JSPs do 
compile (well the /index.jsp  which is the only one we use).

Miguel Angel Mulero Martinez wrote:

>I just have joining to he list, and I have searched in the old messages but
>I haven't found this:
>
>I have installed the new Tomcat 4.1.10, under Win2000. My problem is that if
>I execute it like a windows service, Tomcat give me errors compiling any JSP
>because it don't find the classes under WEB-INF/classes or WEB-INF/lib. If I
>execute tomcat in the command line (catalina start), all works perfectly. If
>after execute from the command line, I stopped it and start Tomcat like a
>service, now it works but only the pages visited when I started it from the
>command line (pages already compiled).
>
>A friend of mine has the same problem.
>
>Someone with win2000, JDK 1.4.0_01 has tried tomcat like a service?
>
>Thanks!!
>
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 
>
>
>  
>




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Can anyone Undeploy an Existing Application in 4.1.10?

2002-09-12 Thread Ben Rometsch

Hi,

I am getting this error in both Windows XP and Gentoo Linux:

http://localhost:8080/manager/undeploy?path=/outreach

Always results in:

FAIL - Cannot remove document base for path /outreach

With, curiously, the following being logged:

2002-09-12 12:37:13 Manager: undeploy: Undeploying web
application at '/outreach'

I can't find any error messages in any of the log files. Running 

http://localhost:8080/manager/list

Shows that the application is still there. Has ANYONE managed to get
this working in 4.1.10? Otherwise, I'll submit a bug...

Thanks,
Ben


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




RE: Can anyone Undeploy an Existing Application in 4.1.10?

2002-09-12 Thread Ben Rometsch

Yes I have. You can't undeploy an existing application through that app.
You  can only remove an application, which is different. 

I'm pretty sure the
http://localhost:8080/manager/undeploy?path=/ component is not
working - has anyone managed to get it functioning properly?

-Original Message-
From: Miguel Angel Mulero Martinez
[mailto:[EMAIL PROTECTED]] 
Sent: 12 September 2002 12:46
To: Tomcat Users List
Subject: RE: Can anyone Undeploy an Existing Application in 4.1.10?


Have you try the html version: http://localhost:8080/manager/html ?

I hope this will work

-Mensaje original-----
De: Ben Rometsch [mailto:[EMAIL PROTECTED]]
Enviado el: jueves, 12 de septiembre de 2002 13:39
Para: [EMAIL PROTECTED]
Asunto: Can anyone Undeploy an Existing Application in 4.1.10?

Hi,

I am getting this error in both Windows XP and Gentoo Linux:

http://localhost:8080/manager/undeploy?path=/outreach

Always results in:

FAIL - Cannot remove document base for path /outreach

With, curiously, the following being logged:

2002-09-12 12:37:13 Manager: undeploy: Undeploying web
application at '/outreach'

I can't find any error messages in any of the log files. Running

http://localhost:8080/manager/list

Shows that the application is still there. Has ANYONE managed to get
this working in 4.1.10? Otherwise, I'll submit a bug...

Thanks,
Ben


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


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


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




Tomcat4-4.1.10 Startup Issue (LINUX)

2002-09-12 Thread Ben Hamilton


Installation:
I've loaded java from the binary install application for j2sdk from the
java.sun.com site. I've modified the /etc/profile to include the
CLASSPATH listed below.
In a directory with three rpms:
tomcat4-4.1.10-full.1jpp.noarch.rpm
tomcat4-admin-webapps-4.1.10-full.1jpp.noarch.rpm
tomcat4-webapps-4.1.10-full.1jpp.noarch.rpm
I've issued the following command.
rpm -i *.rpm
Results in an installation without errors given.

I've created the /etc/java.conf with the line:
JAVA_HOME=/usr/java
/usr/java/bin is the bin directory from the jdk that contains java,
javac and the rest of the binaries for the jdk. /usr/java/lib/ext
contains the .jar files distributed with the jdk and jre.

PROBLEM:
When issuing the command 'tomcat4 run' the error below is generated. To
me there seem to be two problems: 1) "ERROR reading
/var/tomcat4/conf/server.xml". I've made sure that the tomcat4 user owns
the files in /var/tomcat4 and /etc/tomcat4 - besides file permissions
what does tomcat need to read the file? 2) The remaining portion of the
error seems to indicate something in the startup of Catalina cannot find
a class or a file that is apparently critical to a smooth launch.

Are there additional files to modify besides:
/etc/java.conf
/var/tomcat4/conf/tomcat4.conf
?

running "nmap -p 8000-9000 localhost" produces no open ports at various
points during the pause (about 5 seconds) before the errors are
generated.

I know next to nothing about java although in the last few days I've
read through the user archives and have found messages that point to
similar problems on a win32 platform. The results of those posting are
unsolved. I'm hoping this is a configuration issue that I'm just not
getting straight. Any help is appreciated.

Thanks in advance,
BenH
_

LINUX Version = RedHat 7.2 (SMP)

java version "1.4.0_01"
Location of java = /usr/java/bin/java
Location of javac = /usr/java/bin/javac

Tomcat4 version = 4.1.10
JAVA_HOME = /usr/java
CATALINA_HOME = /var/tomcat4
CLASSPATH = /usr/java/bin:/usr/java/lib/ext:/var/tomcat4/common/lib


\[system]# tomcat4 run
\
\Using CATALINA_BASE:   /var/tomcat4
\Using CATALINA_HOME:   /var/tomcat4
\Using CATALINA_TMPDIR: /var/tomcat4/temp
\Using JAVA_HOME:   /usr/java
\ERROR reading /var/tomcat4/conf/server.xml
\At Line 18 /Server/Listener/
\className=org.apache.catalina.mbeans.ServerLifecycleListener debug=0
\
\Catalina.start: java.lang.ClassNotFoundException:
\org.apache.catalina.mbeans.ServerLifecycleListener
\java.lang.ClassNotFoundException:
\org.apache.catalina.mbeans.ServerLifecycleListener
\at java.net.URLClassLoader$1.run(URLClassLoader.java:198)
\at java.security.AccessController.doPrivileged(Native Method)
\at java.net.URLClassLoader.findClass(URLClassLoader.java:186)
\at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
\at java.lang.ClassLoader.loadClass(ClassLoader.java:262)
\at
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:322)
\at java.lang.Class.forName0(Native Method)
\   at java.lang.Class.forName(Class.java:130)
\   at
\org.apache.catalina.util.xml.ObjectCreate.start(XmlMapper.java:616)
\   at
\org.apache.catalina.util.xml.XmlMapper.matchStart(XmlMapper.java:412)
\at
\org.apache.catalina.util.xml.XmlMapper.startElement(XmlMapper.java:91)
\at
\org.apache.xerces.parsers.AbstractSAXParser.startElement(AbstractSAXPar
ser.java)
\at
\org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Abstra
ctXMLDocumentParser.java)
\at
\org.apache.xerces.impl.XMLNamespaceBinder.emptyElement(XMLNamespaceBind
er.java)
\at
\org.apache.xerces.impl.dtd.XMLDTDValidator.emptyElement(XMLDTDValidator
.java)
\at
\org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(
XMLDocumentFragmentScannerImpl.java)
\at
\org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDi
spatcher.dispatch(XMLDocumentFragmentScannerImpl.java)
\at
\org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLD
ocumentFragmentScannerImpl.java)
\at
\org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java)
\at
\org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java)
\at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java)
\at
\org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.jav
a)
\at javax.xml.parsers.SAXParser.parse(SAXParser.java:314)
\at javax.xml.parsers.SAXParser.parse(SAXParser.java:253)
\at
\org.apache.catalina.util.xml.XmlMapper.readXml(XmlMapper.java:228)
\at
org.apache.catalina.startup.Catalina.start(Catalina.java:725)
\at
org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
\at
org.apache.catalina.startup.Catalina.process(Catalina.java:179)
\at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
\ 

Re: Tomcat won't auto-start on RedHat 7.3

2002-09-17 Thread Ben Ricker

On Tue, 2002-09-17 at 14:06, Kenny G. Dubuisson, Jr. wrote:
> Very good question...I bet they aren't.  Do you know where I would set those
> for boot (or should I just put them in the script I wrote)?  Thanks,
> Kenny

Put them in the script.

Ben Ricker
Wellinx.com
 
> - Original Message -
> From: "Turner, John" <[EMAIL PROTECTED]>
> To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
> Sent: Tuesday, September 17, 2002 2:04 PM
> Subject: RE: Tomcat won't auto-start on RedHat 7.3
> 
> 
> >
> > When run during boot, are JAVA_HOME and CATALINA_HOME set?
> >
> > John
> >
> > > -Original Message-
> > > From: Kenny G. Dubuisson, Jr. [mailto:[EMAIL PROTECTED]]
> > > Sent: Tuesday, September 17, 2002 3:01 PM
> > > To: Tomcat Users List
> > > Subject: Tomcat won't auto-start on RedHat 7.3
> > >
> > >
> > > I have successfully installed Apache 2.0.40, Tomcat 4.0.4,
> > > and mod_jk and
> > > all works fine.  The problem I have is that I wrote a simple
> > > startup script
> > > for Tomcat to be executed upon init level 5 entrance.  If I
> > > run the script
> > > from a shell prompt, it works fine.  If it runs when Linux is booting,
> > > though it says "OK" when starting, Tomcat doesn't actually
> > > get started.
> > >
> > > The script is:
> > >
> > > #!/bin/sh
> > > case "$1" in
> > >start)
> > >   echo -n "Starting Tomcat: "
> > >   /usr/local/jakarta-tomcat-4.0.4/bin/startup.sh
> > >   echo
> > >   ;;
> > >stop)
> > >   echo -n "Stopping Tomcat: "
> > >   /usr/local/jakarta-tomcat-4.0.4/bin/shutdown.sh
> > >   echo
> > >   ;;
> > >restart)
> > >   $0 stop
> > >   $0 start
> > >   ;;
> > >*)
> > >   echo "Usage: $0 {start|stop|restart}"
> > >   exit 1
> > > esac
> > > exit 0
> > >
> > > Any Ideas?
> > >
> > >
> > > --
> > > To unsubscribe, e-mail:
> > <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail:
> > <mailto:[EMAIL PROTECTED]>
> >
> > --
> > To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
> 



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




Re: How to access the request that triggered FORM authentication?

2002-09-17 Thread Ben Walding

(Courtesy of Tim Funk)

See section 9.8 of the spec:
A web application may specify that when errors occur, other resources in 
the application are used. These resources are specified in the 
deployment descriptor. If the location of the error handler is a servlet 
or a JSP, the following request attributes can be set:
- javax.servlet.error.status_code
- javax.servlet.error.exception_type
- javax.servlet.error.message
- javax.servlet.error.exception
- javax.servlet.error.request_uri

In your JSP or servlet, use request.getAttribute("...") for any of the 
above to get more details about the error. Then you can forward() or 
"whatever" based on your business logic.


Jeff Wishnie wrote:

>I am using FORM authentication in my web-app, hosted in Tomcat 4.1.10
>
>I want to vary the contents of the login screen depending on what resource was 
>requested. 
>
>I have configured a servlet as the form-login-page so that I can forward the request 
>to any number of appropriate login pages. But to do this I need the URL of the 
>original request that triggered the authentication.
>
>Problem is I can't see anyway to get at this--looking through the source, the 
>FormAuthenticator saves this info into the Session as a SavedRequest object.
>
>Problem is the SavedRequest object is part of the Catalina classloader, not available 
>to webapps.
>
>I _think_ I can probably hack this by extracting the SavedRequest.class from 
>catalina.jar and putting it in common/classes and then just retrieve it from the 
>session, but man is this a hack.
>
>Is there a more civilized way to get at this information from within my 
>login-form-page servlet?
>
>Thanks,
>
>Jeff
>  
>




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: tomcat 4.0.4 and oracle

2002-09-18 Thread Ben Walding

One thing to be aware of... the thin-jdbc drivers don't support Oracle 
name servers (ONAME)


Felix Schumacher wrote:

>If you are using the oci-jdbc driver, you have to make tomcat see
>the native oracle dlls. (LD_LIBRARY_PATH under linux, don't know 
>under windows)
>
>Try using the thin-jdbc driver first (by changing the jdbc-url)
>-- Original Nachricht --
>
>  
>
>>If I run tomcat from the Windows command prompt using startup.bat, I get:
>>
>>
>>
>>Exception during startup processing
>>
>>java.lang.reflect.InvocationTargetException
>>
>>   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>
>>   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorI
>>
>>java:39)
>>
>>   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodA
>>
>>sorImpl.java:25)
>>
>>   at java.lang.reflect.Method.invoke(Method.java:324)
>>
>>   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
>>
>>Caused by: java.lang.UnsatisfiedLinkError: no ocijdbc9 in java.library.path
>>
>>...
>>
>>
>>
>>However, if I run from the start menu I don't have this problem.
>>
>>
>>
>>I gather that somewhere an oracle library is not being loaded, but I'm
>>
>>
>not
>  
>
>>sure how to fix this.
>>
>>I have put classes12.jar in the common/lib because I'm using Oracle for
>>authentication.
>>
>>
>>
>>Other than that, everything is default.
>>
>>
>>
>>Can anyone help?
>>
>>
>>
>>
>
>
>
>
>
>
>
>
>Online Fotoalben - jetzt kostenlos bei http://www.ePost.de
>
>
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 
>
>
>  
>




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: how do I find out whether I am called by servername or by ip

2002-09-19 Thread Ben Walding

request.getHeader("host") should tell you what the user's browser called 
you.


Jan Kester wrote:

>Hello
>
>I am using Tomcat 3.3. I am communicating with an external server and pass
>this server a return-redirect-URL so that the end of the process, the
>external server returns a page to the user that automatically redirects to
>my server. From here on the user should continue with the session as he had
>it before. Session is maintained in cookie and to make use of the same
>cookie it is important that the URL has exactly the same form
>protocol://host.domain:port/context as before. So for instance a second call
>to port 80 explicitly and a first to port 80 implied already generates
>different cookies, thus loosing sessions. A same problem happens with first
>calling my server by IP, and then call my server by servername. The cookies
>are different so I loose my session. So at the moment of generating my
>return-redirect-URL I need to know exactly where I am. How do I know whether
>my URL has been called by servername or by ip?
>I tried HttpUtils.getURLRequest but that always returns servername. I tried
>to look at the session cookie getDomain(), but that returns null. I see no
>way to find out whether I was called by IP or by servername ...
>Anyone knows how to do the trick?
>
>Regards, Jan
>
>Jan Kester
>Marlborough Stirling España, S.L. Director de Informática
>Gran Vía 62, 10º izq
>28013 Madrid
>tel: +34-91-5487910
>fax: +34-91-5400199
>email: [EMAIL PROTECTED]
>
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 
>
>
>  
>




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: two instances of tomcat (in diferent ports) on the same machi ne

2002-09-19 Thread Ben Ricker

On Thu, 2002-09-19 at 14:52, Turner, John wrote:
> 
> Yes, this is absolutely possible.  I have 13 instances (Tomcat 3.1) running
> on a single server at the moment.
> 
> You will need a different server.xml for each, a different work directory
> for each, and each must be on its own connector port (whichever connector
> you choose to use).  At least, that is how it is set up on my server.
> 
> John

How do you have multiple server.xmls? Do you use the same startup
script?  Did you use a specific How-To?

Thanks,

Ben Ricker
Wellinx.com
 
> > -Original Message-
> > From: Christian J. Dechery [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, September 19, 2002 3:48 PM
> > To: [EMAIL PROTECTED]
> > Subject: two instances of tomcat (in diferent ports) on the 
> > same machine
> > 
> > 
> > How can I achieve this? Is it possible?
> >  
> > .:| Christian J. Dechery
> > .:| FINEP - Depto. de Sistemas
> > .:| [EMAIL PROTECTED]
> > .:| (21) 2555-0332
> > 




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




Re: installing and running tomcat 4.1 on linux

2002-09-19 Thread Ben Walding

I haven't used 4.1 as an RPM, but with 4.0 it was just a matter of

service tomcat4 start

Most of the files live in /var/tomcat4 if I remember correctly.
Check out /etc/init.d/tomcat4 for more details
Mark Vovsi wrote:

> Hi all,
>
> I've installed and used Tomcat on Windows for a couple of years now 
> with no problems, but now I'm trying to run Tomcat on Linux and really 
> have no clue as to what to do. I'm a Linux newbie. I've installed 
> Tomcat on my box using the RPM manager, and don't really know what to 
> do next. The tomcat4 user was created, but I can't located the 
> startup.sh files. Where am I supposed to look? To my surprise I 
> couldn't find documentation anywhere on how to run Tomcat 4.1 on 
> Linux. I'm using jdk1.4. Thanks in advance.
>
>
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
>
>




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Postgresql DataSource Tomcat 4.1 SQLException

2002-09-22 Thread Ben Walding

The JNDI namespace you want is
java:comp/env

and not java:/comp/env

But I'm not sure if is the cause of the problem.




Alfonso Martinez wrote:

>Hi Paul,
>
>I am a newbie too, but trying to help. I had a problem like yours recently and found 
>an error in my server.xml. I know you checked that file already, but can you send 
>those (also web.xml) files to me please to see what I can do? Thanks
>
>Jose 
>
>On Fri, Sep 20, 2002 at 11:10:41AM -0500, Paul Salazar wrote:
>  
>
>>Hi,
>>
>>I am trying to setup a postgresql datasource on tomcat 4.1 with much
>>frustration.
>>I have read all the threads out there concerning this matter and I can't
>>see to
>>find anyone who has a working example. What I have is this:
>>
>>Redhat 7.2 server running:
>>Postgresql 7.2
>>Tomcat 4.1
>>
>>I have a working Tomcat app that can connect to the Db and perform
>>queries when manually loading the driver
>>'Class.forName("org.postgresql.Driver");
>>and then doing a getConnection using the URL, Name, Password.
>>
>>But when trying to get a connection using a Datasource, as in,
>>
>>Context ctx = new InitialContext();
>>Context envctx = (Context)ctx.lookup("java:/comp/env");
>>DataSource ds = (DataSource)envctx.lookup("jdbc/postgres"); //jndi name
>>of the datasource
>>Connection conn = ds.getConnection();
>>
>>the getConnection() statement throws an SQLException: Cannot load JDBC
>>driver class 'null'
>>
>>I have gone over all the server.xml and web.xml files with a fine tooth
>>comb and assure
>>you that is not the problem. I have also tried using the jxDBCon drivers
>>with the same
>>results. I have come to the conclusion that it must be a tomcat problem.
>>Has anyone
>>gotten this to work with this config??
>>
>>Paul Salazar
>>
>>
>>
>
>  
>
>>--
>>To unsubscribe, e-mail:   
>>For additional commands, e-mail: 
>>
>>
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 
>
>
>  
>




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: How to use Port 80?

2002-09-22 Thread Ben Walding

You don't want to change /etc/services as it is simply a directory of 
mappings between well known service names and ports.

Tomcat runs as the user tomcat4 on RedHat 7.x.  This user is unable to 
bind to port 80.  People have had success with changing the user to 
root, but this is generally considered a bad way of doing things. 
 You'll want to check the mail archives as this has been discussed quite 
a bit.

[EMAIL PROTECTED] wrote:

>I looked in /etc/services and found 
>...
>ttp80/tcp  www www-http# WorldWideWeb HTTP
>http   80/udp  www www-http# HyperText Transfer Protocol
>...
>
>I'm not sure how got there unless it was just part of RedHat 7.3.  Im not
>running Apache or any other web server.  Im trying to use Tomcat4 as my
>Web server.  Should I change /etc/services and if so how?
>
>thanks again
>
>  
>
>>-- Original Message --
>>Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
>>From: "Arthur Chan" <[EMAIL PROTECTED]>
>>To: "Tomcat Users List" <[EMAIL PROTECTED]>
>>Subject: Re: How to use Port 80?
>>Date: Sat, 21 Sep 2002 23:50:41 -0400
>>
>>
>>Normally that's the default - Apache  (not Tomcat) uses it.
>>Look at httpd.conf , the "Listen" directive, should read something like
>>192.168.4.5:80 ie the ip-addr:port
>>In default RH  u will find that under /etc/httpd/conf
>>To look at a static list of port assignments : /etc/services
>>I am not sure what u r tyring to do , but I hope that's helpful.
>>
>>- Original Message -
>>From: <[EMAIL PROTECTED]>
>>To: "Tomcat Users List" <[EMAIL PROTECTED]>
>>Sent: Saturday, September 21, 2002 11:36 PM
>>Subject: Re: How to use Port 80?
>>
>>
>>
>>
>>>not intentionally, how would I know if I did that?
>>>
>>>  
>>>
-- Original Message --
Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
From: "Arthur Chan" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Subject: Re: How to use Port 80?
Date: Sat, 21 Sep 2002 23:34:53 -0400


Could you have assigned 80 to HTTP requests already ???

- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, September 21, 2002 11:03 PM
Subject: How to use Port 80?




>Hi
>
>Im running Tomcat 4.1.10 on Red Hat 7.3.
>
>Im trying to change the port to 80 from 8080.
>
>I made the following change in my server.xml
>
>From:
>
>   port="8080" minProcessors="5" maxProcessors="75"
>   enableLookups="true" redirectPort="8443"
>   acceptCount="10" debug="0" connectionTimeout="2"
>   useURIValidationHack="false" />
>
>to:
>
>   port="80" minProcessors="5" maxProcessors="75"
>   enableLookups="true" redirectPort="8443"
>   acceptCount="10" debug="0" connectionTimeout="2"
>   useURIValidationHack="false" />
>
>then I restart Tomcat4 with the Service Configuration utility and
>  
>
>I
>  
>
>>get
>>
>>
>the following message in the browser when I go to http://localhost
>
>An error occured while loading http://localhost/:
>
>Could not connect to host localhost
>
>Thanks in advance for any help
>Hal Haig
>
>
>
>
>
>
>--
>To unsubscribe, e-mail:
>  
>



>For additional commands, e-mail:
>  
>



--
To unsubscribe, e-mail:


>>
>>
>>
For additional commands, e-mail:


>>
>>
>>
>>>--
>>>To unsubscribe, e-mail:
>>>  
>>>
>>
>>
>>
>>>For additional commands, e-mail:
>>>  
>>>
>>
>>
>>
>>--
>>To unsubscribe, e-mail:   
>>For additional commands, e-mail: 
>>
>>
>>
>
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 
>
>
>  
>




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: How to use Port 80?

2002-09-22 Thread Ben Walding

You can set up a port forward / filter such that traffic that comes in 
on port 80 gets filtered through to port 8080

The other options is to use Apache out the front on port 80 and then 
mod_jk / jk2 / mod_webapp to connect tomcat into apache.

I can't recommend one or the other for these as I don't run in either 
configuration.


It's all a big game!

Ben


[EMAIL PROTECTED] wrote:

>thanks
>
>I looked back at the archieves and found out how to change the user to Root.
> I did that and it worked.  I did find some other messages indicating what
>you said, which was running as ROOT might be bad idea from a system adminstration
>perspective.  Unfortunately, I found no other way to run on Port 80.  Is
>there another way?
>
>
>  
>
>>-- Original Message --
>>Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
>>Date: Sun, 22 Sep 2002 18:38:01 +1000
>>From: Ben Walding <[EMAIL PROTECTED]>
>>To: Tomcat Users List <[EMAIL PROTECTED]>
>>Subject: Re: How to use Port 80?
>>
>>
>>You don't want to change /etc/services as it is simply a directory of 
>>mappings between well known service names and ports.
>>
>>Tomcat runs as the user tomcat4 on RedHat 7.x.  This user is unable to
>>
>>
>
>  
>
>>bind to port 80.  People have had success with changing the user to 
>>root, but this is generally considered a bad way of doing things. 
>>You'll want to check the mail archives as this has been discussed quite
>>
>>a bit.
>>
>>[EMAIL PROTECTED] wrote:
>>
>>
>>
>>>I looked in /etc/services and found 
>>>...
>>>ttp80/tcp  www www-http# WorldWideWeb HTTP
>>>http   80/udp  www www-http# HyperText Transfer Protocol
>>>...
>>>
>>>I'm not sure how got there unless it was just part of RedHat 7.3.  Im
>>>  
>>>
>not
>  
>
>>>running Apache or any other web server.  Im trying to use Tomcat4 as my
>>>Web server.  Should I change /etc/services and if so how?
>>>
>>>thanks again
>>>
>>> 
>>>
>>>  
>>>
>>>>-- Original Message --
>>>>Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
>>>>From: "Arthur Chan" <[EMAIL PROTECTED]>
>>>>To: "Tomcat Users List" <[EMAIL PROTECTED]>
>>>>Subject: Re: How to use Port 80?
>>>>Date: Sat, 21 Sep 2002 23:50:41 -0400
>>>>
>>>>
>>>>Normally that's the default - Apache  (not Tomcat) uses it.
>>>>Look at httpd.conf , the "Listen" directive, should read something like
>>>>192.168.4.5:80 ie the ip-addr:port
>>>>In default RH  u will find that under /etc/httpd/conf
>>>>To look at a static list of port assignments : /etc/services
>>>>I am not sure what u r tyring to do , but I hope that's helpful.
>>>>
>>>>- Original Message -
>>>>From: <[EMAIL PROTECTED]>
>>>>To: "Tomcat Users List" <[EMAIL PROTECTED]>
>>>>Sent: Saturday, September 21, 2002 11:36 PM
>>>>Subject: Re: How to use Port 80?
>>>>
>>>>
>>>>   
>>>>
>>>>
>>>>
>>>>>not intentionally, how would I know if I did that?
>>>>>
>>>>> 
>>>>>
>>>>>  
>>>>>
>>>>>>-- Original Message --
>>>>>>Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
>>>>>>From: "Arthur Chan" <[EMAIL PROTECTED]>
>>>>>>To: "Tomcat Users List" <[EMAIL PROTECTED]>
>>>>>>Subject: Re: How to use Port 80?
>>>>>>Date: Sat, 21 Sep 2002 23:34:53 -0400
>>>>>>
>>>>>>
>>>>>>Could you have assigned 80 to HTTP requests already ???
>>>>>>
>>>>>>- Original Message -
>>>>>>From: <[EMAIL PROTECTED]>
>>>>>>To: <[EMAIL PROTECTED]>
>>>>>>Sent: Saturday, September 21, 2002 11:03 PM
>>>>>>Subject: How to use Port 80?
>>>>>>
>>>>>>
>>>>>>   
>>>>>>
>>>>>>
>>>>>>
>>>>>>>Hi
>>>>>>>
>>>>>>>Im running Tomcat 4.1.10 on

Re: compiler runs out of memory

2002-09-24 Thread Ben Walding

One of the bugs fixed in JDK 1.4.1 is the leaking of memory in the java 
compiler.  This may fix the memory leak that you are seeing...

Kwok Peng Tuck wrote:

> You could increase the heap size as the error message suggested or 
> stream line your code
> so that it is more efficient :)
>
> # Lalit Nagpal # wrote:
>
>> hello ...
>>
>> This is a frequent problem that i face with tomcat ...
>>
>> here is the output in catalina.out ... is increasing
>> the heap size the only option ... if yes ... plz tell
>> me how to 
>>
>> the stack trace is as follows ...
>>
>> type Exception report
>>
>> message
>> description The server encountered an internal error
>> () that prevented it from fulfilling this request.
>>
>> exception
>> org.apache.jasper.JasperException: Unable to compile
>> class for JSPThe compiler has run out of memory. Consider using the 
>> "-J-mx" command line option
>> to increase the maximum heap size.
>>
>> at
>> org.apache.jasper.compiler.Compiler.compile(Unknown
>> Source)
>> at
>> org.apache.jasper.servlet.JspServlet.loadJSP(Unknown
>> Source)
>> at
>> org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(Unknown 
>>
>> Source)
>> at
>> org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(Unknown
>> Source)
>> at
>> org.apache.jasper.servlet.JspServlet.serviceJspFile(Unknown
>> Source)
>> at
>> org.apache.jasper.servlet.JspServlet.service(Unknown
>> Source)
>> at
>> javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>> at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Unknown
>> Source)
>> at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(Unknown
>> Source)
>> at
>> org.apache.catalina.core.StandardWrapperValve.invoke(Unknown
>> Source)
>> at
>> org.apache.catalina.core.StandardPipeline.invokeNext(Unknown
>> Source)
>> at
>> org.apache.catalina.core.StandardPipeline.invoke(Unknown
>> Source)
>> at
>> org.apache.catalina.core.ContainerBase.invoke(Unknown
>> Source)
>> at
>> org.apache.catalina.core.StandardContextValve.invoke(Unknown
>> Source)
>> at
>> org.apache.catalina.core.StandardPipeline.invokeNext(Unknown
>> Source)
>> at
>> org.apache.catalina.core.StandardPipeline.invoke(Unknown
>> Source)
>> at
>> org.apache.catalina.core.ContainerBase.invoke(Unknown
>> Source)
>> at
>> org.apache.catalina.core.StandardContext.invoke(Unknown
>> Source)
>> at
>> org.apache.catalina.core.StandardHostValve.invoke(Unknown
>> Source)
>> at
>> org.apache.catalina.core.StandardPipeline.invokeNext(Unknown
>> Source)
>> at
>> org.apache.catalina.valves.ErrorDispatcherValve.invoke(Unknown
>> Source)
>> at
>> org.apache.catalina.core.StandardPipeline.invokeNext(Unknown
>> Source)
>> at
>> org.apache.catalina.valves.ErrorReportValve.invoke(Unknown
>> Source)
>> at
>> org.apache.catalina.core.StandardPipeline.invokeNext(Unknown
>> Source)
>> at
>> org.apache.catalina.valves.AccessLogValve.invoke(Unknown
>> Source)
>> at
>> org.apache.catalina.core.StandardPipeline.invokeNext(Unknown
>> Source)
>> at
>> org.apache.catalina.core.StandardPipeline.invoke(Unknown
>> Source)
>> at
>> org.apache.catalina.core.ContainerBase.invoke(Unknown
>> Source)
>> at
>> org.apache.catalina.core.StandardEngineValve.invoke(Unknown
>> Source)
>> at
>> org.apache.catalina.core.StandardPipeline.invokeNext(Unknown
>> Source)
>> at
>> org.apache.catalina.core.StandardPipeline.invoke(Unknown
>> Source)
>> at
>> org.apache.catalina.core.ContainerBase.invoke(Unknown
>> Source)
>> at
>> org.apache.coyote.tomcat4.CoyoteProcessor.service(CoyoteProcessor.java:311) 
>>
>> at
>> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:305) 
>>
>> at
>> org.apache.coyote.tomcat4.CoyoteProcessor.process(CoyoteProcessor.java:785) 
>>
>> at
>> org.apache.coyote.tomcat4.CoyoteProcessor.run(CoyoteProcessor.java:864)
>> at java.lang.Thread.run(Thread.java:484)
>>
>>
>>
>>  
>>
>>
>> Apache Tomcat/4.1-dev
>>
>>
>>
>> =
>> # Lalit Nagpal #
>>
>> __
>> Do you Yahoo!?
>> New DSL Internet Access from SBC & Yahoo!
>> http://sbc.yahoo.com
>>
>> --
>> To unsubscribe, e-mail:   
>> 
>> For additional commands, e-mail: 
>> 
>>
>>
>>  
>>
>
>
>
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
>
>




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Running multiple tomcat instances ?????

2002-09-24 Thread Ben Ricker

If that script works, then great.

A less elegant way to do it would be to utilize pgrep. Do a man on it
(not sure what platform you are running on). You can pgrep for the
earliest PID that was run with a number of options. I use it for a Jserv
installation and it works quite nice.

I have not tested it with Tomcat, though.

Good luck,

Ben Ricker
Wellinx, Inc.

On Mon, 2002-09-23 at 15:17, Raj Mettai wrote:
> Hi John,
> 
> I have compiled the code and copied to $CATALINA_HOME$/bin
> then added the following snippet into server.xml
> 
>   
>   
> 
> 
> 
> 
> when I start the tomcat, I am not seeing any tomcat.pid and I am getting
> the following error in catalina.out
> 
> ERROR reading /opt/tomcat1/conf/server.xml
> At Line 28 /Server/Service/Listener/ className=PidLifeCycle 
> 
> Catalina.start: java.lang.ClassNotFoundException: PidLifeCycle
> java.lang.ClassNotFoundException: PidLifeCycle
> at
> 
>org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:1127)
> at
> 
>org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:992)
> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
> at java.lang.Class.forName0(Native Method)
> at java.lang.Class.forName(Class.java:120)
> at
> org.apache.catalina.util.xml.ObjectCreate.start(XmlMapper.java:616)
> at
> org.apache.catalina.util.xml.XmlMapper.matchStart(XmlMapper.java:412)
> at
> org.apache.catalina.util.xml.XmlMapper.startElement(XmlMapper.java:91)
> at
> org.xml.sax.helpers.XMLReaderAdapter.startElement(XMLReaderAdapter.java:329)
> at
> org.apache.xerces.parsers.SAXParser.startElement(SAXParser.java:1376)
> at
> 
>org.apache.xerces.validators.common.XMLValidator.callStartElement(XMLValidator.java:1284)
> at
> 
>org.apache.xerces.framework.XMLDocumentScanner.scanElement(XMLDocumentScanner.java:1806)
> at
> 
>org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XMLDocumentScanner.java:1182)
> at
> org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:381)
> at
> org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1098)
> at
> org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223)
> at javax.xml.parsers.SAXParser.parse(SAXParser.java:362)
> at javax.xml.parsers.SAXParser.parse(SAXParser.java:301)
> at
> org.apache.catalina.util.xml.XmlMapper.readXml(XmlMapper.java:228)
> at org.apache.catalina.startup.Catalina.start(Catalina.java:725)
> at
> org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
> at
> org.apache.catalina.startup.Catalina.process(Catalina.java:179)
> at java.lang.reflect.Method.invoke(Native Method)
> at
> org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
> 
> 
> thanks 
> 
> -Raj
> 
> 
> >>> [EMAIL PROTECTED] 09/23/02 12:50PM >>>
> 
> Well, in that case, I will include here the content of a message posted
> by
> Tim Funk on 6/13/2002, which has his solution for this, which I find
> pretty
> neat.  Hopefully Tim doesn't mind, and I should add that this would
> break
> portability, most notably on Windows machines.
> 
> On 6/13/2002, Tim Funk wrote:
> 
> For what its worth - I created (and use) a LifecycleListener that runs 
> on startup which logs the process ID into a file called tomcat.pid. 
> Which is created by a shell script called writepid.sh. Below is all the 
> code to get this to work. This code also assumes your current working 
> directory is $CATALINA_HOME.
> 
> --Begin code
> import org.apache.catalina.LifecycleEvent;
> 
> /**
>   * A helper for getting the PID of java so shutting down tomcat is MUCH
>   * easier.
>   */
> public class PidLifeCycle implements
> org.apache.catalina.LifecycleListener {
>   public void lifecycleEvent(LifecycleEvent event)  {
>  if ("start".equals(event.getType())) {
> try {
>  Runtime.getRuntime().exec("/bin/sh bin/writepid.sh");
> } catch(Throwable e) {
>e.printStackTrace();
> }
>  }
>   }
> }
> --End Code
> 
> The code above will launch the following shell script. Should be in the 
> bin/ directory of your tomcat installation.
> --Begin Shell script
> echo $PPID > logs/tomcat.pid
> --End Shell script
> 
> Then add the following into server.xml
> --Begin server.xml snippet
> 
> --End server.xml snippet
> 
> -Tim
> 
> == end ===
> 
> Thank

Re: Debugging servlets

2002-09-26 Thread Ben Walding

It sure is...
If you're using Eclipse as your development environment, check out the 
TomCat debug plugin http://www.sysdeo.com/eclipse/tomcatPlugin.html

Mohan,Gautam wrote:

> Hi,
>
> I want to know is debugging servlets possible in Tomcat(version 4) 
> . If yes then how to go about it.
>
>  
>
>  
>
>  
>
>  
>
>  
>
> Thanx and Rgds,
>
> Gautam
>
>  
>
> The only way to discover the limits of the possible is to
>
> look beyond into the possible.
>
>  
>
> *
>
> Gautam Mohan Srivastava
>
> System Engineer
>
> Wipro Technologies
>
> No. 26,Hosur Road
>
> Bommanahalli
>
> Bangalore-560068
>
> India
>
> Tel :- 91-080-5732293 Extn-2154
>
> Fax :- 91-080-5732696
>
> www.wipro.com 
>
>  
>
> *
>
>  
>
>
>
>**Disclaimer**
>
> 
> Information contained in this E-MAIL being proprietary to Wipro Limited is 
>'privileged' 
>and 'confidential' and intended for use only by the individual or entity to which it 
>is 
>addressed. You are notified that any use, copying or dissemination of the information 
>contained in the E-MAIL in any manner whatsoever is strictly prohibited.
>
>
>
>  
>
>
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 
>




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Deploy or install .war

2002-09-28 Thread Ben Walding

Once the war file is in the webapps directory it will auto-deploy when 
you restart TomCat.  I realise this doesn't truly answer your question, 
but it should fix your problem.


I'm presuming you are using a 4.1.x version (4.0.x is pretty much the 
same, but not quite as nice).

Marty Hagenston wrote:

>Greetings,
>
>I am very new at this.  I have tomcat running and I can view the index.jsp in my 
>browser set to localhost: 8080
>
>Now I want to deploy or install (not sure which one) a .war   I put the .war in 
>webapps and tried to use the manager command of both deploy and install by giving it 
>the path..
>
>No go..it doesn't recognize my command deploy.
>
>Stuck..Please help.
>
>Marty
>
>  
>




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Problem with mod_jk.so

2002-09-30 Thread Ben Ricker

I downloaded the binary of mod_jk.so from Jakarta's downloads in
/builds/jakarta-tomcat-connectors/jk/release/v1.2.0/bin/linux/i386. I am
running Apache 1.3.26 with Tomcat 4.05 on Red Hat Linux release 7.1
(Seawolf). The binary is compiled for 7.2, however. That may explain the
following error when trying to start Apache:


[root@dev bin]# ./apachectl configtest
Syntax error on line 208 of /usr/local/apache-new/conf/httpd.conf:
Cannot load /usr/local/apache-new/libexec/mod_jk.so into server: 
/usr/local/apache-new/libexec/mod_jk.so: undefined symbol: ap_ctx_get

Any ideas? Do I need to upgrade gcc, possibly? What do the binaries rely upon?

Thanks in advance,

Ben Ricker

-- 
Ben Ricker <[EMAIL PROTECTED]>
Wellinx.com


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




RE: Problem with mod_jk.so

2002-09-30 Thread Ben Ricker

On Mon, 2002-09-30 at 11:53, Turner, John wrote:
> Which one did you download?  EAPI or no EAPI?

No EAPI...As the download site says:

  * mod_jk-1.3-noeapi.so is for Apache 1.3.x without mod_ssl

I do not have mod_ssl installed. Verified that through httpd-l.

Ben

> John
> 
> 
> > -Original Message-
> > From: Ben Ricker [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, September 30, 2002 12:27 PM
> > To: Tomcat Users List
> > Subject: Problem with mod_jk.so
> > 
> > 
> > I downloaded the binary of mod_jk.so from Jakarta's downloads in
> > /builds/jakarta-tomcat-connectors/jk/release/v1.2.0/bin/linux/
> > i386. I am
> > running Apache 1.3.26 with Tomcat 4.05 on Red Hat Linux release 7.1
> > (Seawolf). The binary is compiled for 7.2, however. That may 
> > explain the
> > following error when trying to start Apache:
> > 
> > 
> > [root@dev bin]# ./apachectl configtest
> > Syntax error on line 208 of /usr/local/apache-new/conf/httpd.conf:
> > Cannot load /usr/local/apache-new/libexec/mod_jk.so into 
> > server: /usr/local/apache-new/libexec/mod_jk.so: undefined 
> > symbol: ap_ctx_get
> > 
> > Any ideas? Do I need to upgrade gcc, possibly? What do the 
> > binaries rely upon?
> > 
> > Thanks in advance,
> > 
> > Ben Ricker
> > 
> > -- 
> > Ben Ricker <[EMAIL PROTECTED]>
> > Wellinx.com
> > 
> > 
> > --
> > To unsubscribe, e-mail:   
> > <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail: 
> > <mailto:[EMAIL PROTECTED]>
> > 
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
-- 
Ben Ricker <[EMAIL PROTECTED]>
Wellinx.com


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




RE: Problem with mod_jk.so

2002-09-30 Thread Ben Ricker

On Mon, 2002-09-30 at 12:08, Turner, John wrote:
> The reason I ask is that the ap* functions are 1.3, and I usually see error
> messages about ap_table_get and similar when either an Apache 2.0 module is
> being used with Apache 1.3, or vice versa.
> 
> John

This may add some info: I compiled Apache with ApacheToolbox. The
modules are static but it has DSO support in it. Then again, I would
expect an error much earlier in the load process then an undefined
symbol.

I cannot guarantee that it IS the 1.3 connectorthe filename suggests
it is.

Ben Ricker

> 
> > -Original Message-
> > From: Ben Ricker [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, September 30, 2002 1:01 PM
> > To: Tomcat Users List
> > Subject: RE: Problem with mod_jk.so
> > 
> > 
> > On Mon, 2002-09-30 at 11:53, Turner, John wrote:
> > > Which one did you download?  EAPI or no EAPI?
> > 
> > No EAPI...As the download site says:
> > 
> >   * mod_jk-1.3-noeapi.so is for Apache 1.3.x without mod_ssl
> > 
> > I do not have mod_ssl installed. Verified that through httpd-l.
> > 
> > Ben
> > 
> > > John
> > > 
> > > 
> > > > -Original Message-
> > > > From: Ben Ricker [mailto:[EMAIL PROTECTED]]
> > > > Sent: Monday, September 30, 2002 12:27 PM
> > > > To: Tomcat Users List
> > > > Subject: Problem with mod_jk.so
> > > > 
> > > > 
> > > > I downloaded the binary of mod_jk.so from Jakarta's downloads in
> > > > /builds/jakarta-tomcat-connectors/jk/release/v1.2.0/bin/linux/
> > > > i386. I am
> > > > running Apache 1.3.26 with Tomcat 4.05 on Red Hat Linux 
> > release 7.1
> > > > (Seawolf). The binary is compiled for 7.2, however. That may 
> > > > explain the
> > > > following error when trying to start Apache:
> > > > 
> > > > 
> > > > [root@dev bin]# ./apachectl configtest
> > > > Syntax error on line 208 of /usr/local/apache-new/conf/httpd.conf:
> > > > Cannot load /usr/local/apache-new/libexec/mod_jk.so into 
> > > > server: /usr/local/apache-new/libexec/mod_jk.so: undefined 
> > > > symbol: ap_ctx_get
> > > > 
> > > > Any ideas? Do I need to upgrade gcc, possibly? What do the 
> > > > binaries rely upon?
> > > > 
> > > > Thanks in advance,
> > > > 
> > > > Ben Ricker
> > > > 
> > > > -- 
> > > > Ben Ricker <[EMAIL PROTECTED]>
> > > > Wellinx.com
> > > > 
> > > > 
> > > > --
> > > > To unsubscribe, e-mail:   
> > > > <mailto:[EMAIL PROTECTED]>
> > > > For additional commands, e-mail: 
> > > > <mailto:[EMAIL PROTECTED]>
> > > > 
> > > 
> > > --
> > > To unsubscribe, e-mail:   
> <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> -- 
> Ben Ricker <[EMAIL PROTECTED]>
> Wellinx.com
> 
> 
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
-- 
Ben Ricker <[EMAIL PROTECTED]>
Wellinx.com


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




Re: Load balancing + replicated sessions

2002-10-01 Thread Ben Ricker

See http://www.theserverside.com/resources/article.jsp?l=Tomcat. you can
do in memmory session replication across JVMs through TCP.

Ben Ricker

On Tue, 2002-10-01 at 09:29, Luiz Ricardo wrote:
> Hi,
> 
> I would like to know if there is a way to configure Tomcat + Apache to
> replicate sessions under a load balancing configuration.
> 
> Example, I have two Tomcat instances (TC1 and TC2) and the session in TC1
> would be replicated in TC2 and the sessions in TC2 would be replicated in
> TC1, so if TC1 crashes the requests would be redirected to TC2 without lost
> sessions and vice-versa.
> 
> Luiz Ricardo
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
-- 
Ben Ricker <[EMAIL PROTECTED]>
Wellinx.com


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




RE: Problem with mod_jk.so

2002-10-01 Thread Ben Ricker

Just to let everyone know, I downloaded John Turner's mod_jk.so and the
problem went away (have not finished testing, however). The URL is:
http://www.johnturner.com/howto/apache-tomcat-howto.html.

Thanks to John!

Ben Ricker 

On Mon, 2002-09-30 at 12:53, Ben Ricker wrote:
> On Mon, 2002-09-30 at 12:08, Turner, John wrote:
> > The reason I ask is that the ap* functions are 1.3, and I usually see error
> > messages about ap_table_get and similar when either an Apache 2.0 module is
> > being used with Apache 1.3, or vice versa.
> > 
> > John
> 
> This may add some info: I compiled Apache with ApacheToolbox. The
> modules are static but it has DSO support in it. Then again, I would
> expect an error much earlier in the load process then an undefined
> symbol.
> 
> I cannot guarantee that it IS the 1.3 connectorthe filename suggests
> it is.
> 
> Ben Ricker
> 
> > 
> > > -Original Message-
> > > From: Ben Ricker [mailto:[EMAIL PROTECTED]]
> > > Sent: Monday, September 30, 2002 1:01 PM
> > > To: Tomcat Users List
> > > Subject: RE: Problem with mod_jk.so
> > > 
> > > 
> > > On Mon, 2002-09-30 at 11:53, Turner, John wrote:
> > > > Which one did you download?  EAPI or no EAPI?
> > > 
> > > No EAPI...As the download site says:
> > > 
> > >   * mod_jk-1.3-noeapi.so is for Apache 1.3.x without mod_ssl
> > > 
> > > I do not have mod_ssl installed. Verified that through httpd-l.
> > > 
> > > Ben
> > > 
> > > > John
> > > > 
> > > > 
> > > > > -Original Message-
> > > > > From: Ben Ricker [mailto:[EMAIL PROTECTED]]
> > > > > Sent: Monday, September 30, 2002 12:27 PM
> > > > > To: Tomcat Users List
> > > > > Subject: Problem with mod_jk.so
> > > > > 
> > > > > 
> > > > > I downloaded the binary of mod_jk.so from Jakarta's downloads in
> > > > > /builds/jakarta-tomcat-connectors/jk/release/v1.2.0/bin/linux/
> > > > > i386. I am
> > > > > running Apache 1.3.26 with Tomcat 4.05 on Red Hat Linux 
> > > release 7.1
> > > > > (Seawolf). The binary is compiled for 7.2, however. That may 
> > > > > explain the
> > > > > following error when trying to start Apache:
> > > > > 
> > > > > 
> > > > > [root@dev bin]# ./apachectl configtest
> > > > > Syntax error on line 208 of /usr/local/apache-new/conf/httpd.conf:
> > > > > Cannot load /usr/local/apache-new/libexec/mod_jk.so into 
> > > > > server: /usr/local/apache-new/libexec/mod_jk.so: undefined 
> > > > > symbol: ap_ctx_get
> > > > > 
> > > > > Any ideas? Do I need to upgrade gcc, possibly? What do the 
> > > > > binaries rely upon?
> > > > > 
> > > > > Thanks in advance,
> > > > > 
> > > > > Ben Ricker
> > > > > 
> > > > > -- 
> > > > > Ben Ricker <[EMAIL PROTECTED]>
> > > > > Wellinx.com
> > > > > 
> > > > > 
> > > > > --
> > > > > To unsubscribe, e-mail:   
> > > > > <mailto:[EMAIL PROTECTED]>
> > > > > For additional commands, e-mail: 
> > > > > <mailto:[EMAIL PROTECTED]>
> > > > > 
> > > > 
> > > > --
> > > > To unsubscribe, e-mail:   
> > <mailto:[EMAIL PROTECTED]>
> > > For additional commands, e-mail:
> > <mailto:[EMAIL PROTECTED]>
> > -- 
> > Ben Ricker <[EMAIL PROTECTED]>
> > Wellinx.com
> > 
> > 
> > --
> > To unsubscribe, e-mail:
> > <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail:
> > <mailto:[EMAIL PROTECTED]>
> > 
> > --
> > To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
> -- 
> Ben Ricker <[EMAIL PROTECTED]>
> Wellinx.com
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
-- 
Ben Ricker <[EMAIL PROTECTED]>
Wellinx.com


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




Error 400 getting thrown

2002-10-01 Thread Ben Ricker

I am having a problem setting up a Tomcat installation using multiple
Tomcats (two to be exact) being load balanced from one Apache. Mod_jk is
being loaded correctly. I created a file called index.jsp with the
following code:




<%= request.getSession().getId() %>
Tomcat 1



When I access index.jsp, I get a white page in the browser. Here is what
I get in the mod_jk log in debug mode:

[Tue Oct 01 11:01:11 2002]  [jk_uri_worker_map.c (460)]: Into 
jk_uri_worker_map_t::map_uri_to_worker
[Tue Oct 01 11:01:11 2002]  [jk_uri_worker_map.c (477)]: Attempting to map URI 
'/index.jsp'
[Tue Oct 01 11:01:11 2002]  [jk_uri_worker_map.c (558)]: 
jk_uri_worker_map_t::map_uri_to_worker, Found a suffix match loadbalancer -> *.jsp
[Tue Oct 01 11:01:11 2002]  [jk_worker.c (132)]: Into wc_get_worker_for_name 
loadbalancer
[Tue Oct 01 11:01:11 2002]  [jk_worker.c (136)]: wc_get_worker_for_name, done  found a 
worker
[Tue Oct 01 11:01:11 2002]  [jk_lb_worker.c (527)]: Into jk_worker_t::get_endpoint
[Tue Oct 01 11:01:11 2002]  [jk_lb_worker.c (310)]: Into jk_endpoint_t::service
[Tue Oct 01 11:01:11 2002]  [jk_ajp_common.c (1355)]: Into jk_worker_t::get_endpoint
[Tue Oct 01 11:01:11 2002]  [jk_ajp_common.c (1079)]: Into jk_endpoint_t::service
[Tue Oct 01 11:01:11 2002]  [jk_ajp_common.c (280)]: Into ajp_marshal_into_msgb
[Tue Oct 01 11:01:11 2002]  [jk_ajp_common.c (413)]: ajp_marshal_into_msgb - Done
[Tue Oct 01 11:01:11 2002]  [jk_connect.c (116)]: Into jk_open_socket
[Tue Oct 01 11:01:11 2002]  [jk_connect.c (123)]: jk_open_socket, try to connect 
socket = 8
[Tue Oct 01 11:01:11 2002]  [jk_connect.c (132)]: jk_open_socket, after connect ret = 0
[Tue Oct 01 11:01:11 2002]  [jk_connect.c (140)]: jk_open_socket, set TCP_NODELAY to on
[Tue Oct 01 11:01:11 2002]  [jk_connect.c (148)]: jk_open_socket, return, sd = 8
[Tue Oct 01 11:01:11 2002]  [jk_ajp_common.c (589)]: In 
jk_endpoint_t::ajp_connect_to_endpoint, connected sd = 8
[Tue Oct 01 11:01:11 2002]  [jk_ajp_common.c (613)]: sending to ajp13 #462
[Tue Oct 01 11:01:11 2002]  [jk_ajp_common.c (854)]: ajp_send_request 2: request body 
to send 0 - request body to resend 0
[Tue Oct 01 11:01:11 2002]  [jk_ajp_common.c (699)]: received from ajp13 #33
[Tue Oct 01 11:01:11 2002]  [jk_ajp_common.c (462)]: ajp_unmarshal_response: status = 
400
[Tue Oct 01 11:01:11 2002]  [jk_ajp_common.c (467)]: ajp_unmarshal_response: Number of 
headers is = 1
[Tue Oct 01 11:01:11 2002]  [jk_ajp_common.c (507)]: ajp_unmarshal_response: Header[0] 
[Content-Type] = [text/html]
[Tue Oct 01 11:01:11 2002]  [jk_ajp_common.c (699)]: received from ajp13 #2
[Tue Oct 01 11:01:11 2002]  [jk_ajp_common.c (1333)]: Into jk_endpoint_t::done, 
recycling connection
[Tue Oct 01 11:01:11 2002]  [jk_lb_worker.c (389)]: Into jk_endpoint_t::done


What exactly is the Error 400 showing? Error 400 is a "Bad Request".
Below are snippets of some conf files. Let me know if I need to show
anyone the server.xml file.

Thanks,

Ben Ricker

I have the following in httpd.conf:

#
# Set up loadbalncer for JkMount
#
JkMount /*.jsp loadbalancer
JkMount /servlets/* loadbalancer

#
# Configure mod_jk
#
JkWorkersFile conf/workers.properties
JkLogFile logs/mod_jk.log
JkLogLevel info

Here is the workers.properties:

#
# workers.properties
#

# In Unix, we use forward slashes:
ps=/

# list the workers by name

worker.list=tomcat1, tomcat2, loadbalancer

# 
# First tomcat server
# 
worker.tomcat1.port=11009
worker.tomcat1.host=dev.wellinx.com
worker.tomcat1.type=ajp13

# Specify the size of the open connection cache.
#worker.tomcat1.cachesize

#
# Specifies the load balance factor when used with
# a load balancing worker.
# Note:
#  > lbfactor must be > 0
#  > Low lbfactor means less work done by the worker.
worker.tomcat1.lbfactor=100


# 
# Second tomcat server
# 
worker.tomcat2.port=12009
worker.tomcat2.host=dev.wellinx.com
worker.tomcat2.type=ajp13

# Specify the size of the open connection cache.
#worker.tomcat2.cachesize

#
# Specifies the load balance factor when used with
# a load balancing worker.
# Note:
#  > lbfactor must be > 0
#  > Low lbfactor means less work done by the worker.
worker.tomcat2.lbfactor=100


# 
# Load Balancer worker
# 

#
# The loadbalancer (type lb) worker performs weighted round-robin
# load balancing with sticky sessions.
# Note:
#  > If a worker dies, the load balancer will check its state
#once in a while. Until then all work is redirected to peer
#worker.
worker.loadbalancer.type=lb
worker.loadbalancer.balanced_workers=tomcat1, tomcat2

#
# END workers.properties
#



-- 
Ben Ricker <[EMAIL PROTECTED]>
Wellinx.com


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




RE: Problem with mod_jk.so

2002-10-01 Thread Ben Ricker

Thanks for the info. I will go back through the docs and see what may
have happened. I will let you know if I still have the issue after
perusing the docs.

Ben Ricker


On Tue, 2002-10-01 at 10:54, Henri Gomez wrote:
>  >Just to let everyone know, I downloaded John Turner's mod_jk.so and the
>  >problem went away (have not finished testing, however). The URL is:
>  >http://www.johnturner.com/howto/apache-tomcat-howto.html.
> 
> Do you know that jk 1.2.0 has been released ?
> 
> http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/v1.2.0/
> 
> Do you know that there is up to date documentation included ?
> 
> http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/v1.2.0/doc/
> 
> Do you know that the jk included in tomcat 4.0.4 IS NOT the same that JK 
> 1.2.0 release ?
> 
> For JK 1.2.0 release, jakarta-tomcat-connectors developpers spend hours 
> in providing a decent documentation, binaries for many platforms and
> we expect users to use them.
> 
> We want to be sure that the bugzilla's reports which could be filled 
> about jk will be valid's one and not spend our time trying to locate
> a bug which has been fixed by 1.2.0 release.
> 
> If you've got problem with the binaries we provide, just give us more
> informations about your settings so we could help you, correct our 
> builds, create new one's or fix code/build processes.
> 
> Regards
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
-- 
Ben Ricker <[EMAIL PROTECTED]>
Wellinx.com


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




400 Error Revisited

2002-10-01 Thread Ben Ricker
ce in a while. Until then all work is redirected to peer
#worker.
worker.loadbalancer.type=lb
worker.loadbalancer.balanced_workers=tomcat1, tomcat2

#
# END workers.properties
#

-

My Connector configs from both tomcat instances

This is in /usr/local/tomcat1/conf:





This is in /usr/local/tomcat2/conf:








-- 
Ben Ricker <[EMAIL PROTECTED]>
Wellinx.com


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




RE: 400 Error Revisited

2002-10-01 Thread Ben Ricker

On Tue, 2002-10-01 at 14:59, Michael Schulz wrote:
> What is the URL that causes the 400 error?

Dangit...forgot to include that:

hostname:8080/index.jsp

Apache is listening on 8080 as I test this new setup. I have Tomcat
listening on 80 now.

> Also, is this a typo in your message, or is this really in your
> conf/workers.properties file?:
> 
>   # Send servlet for context /examples to worker named worker1
>   JkMount /examples/servlet/* oadbalancer
> 
> If so, you are missing the "l" in loadbalancer...don't know if that is the
> real cause, but it is something to examine.

Good call! I missed that one. Fixed it and it made no difference

Ben Ricker

> -Original Message-
> From: Ben Ricker [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, October 01, 2002 2:06 PM
> To: 'Tomcat Users List'
> Subject: 400 Error Revisited
> 
> 
> I took Henri Gomez's request and tried to download the binary mod_jk
> from the site he mentioned. I got the same undefined symbol. As I am
> using Redhat 7.1 for my Apache server, I decided to take another
> person's advice and built mod_jk from source following the JK
> documentation.
> 
> I still get the 400 error thrown into the mod_jk logs. There is no log
> on the Tomcat's side.
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
-- 
Ben Ricker <[EMAIL PROTECTED]>
Wellinx.com


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




NullPointerException

2002-10-07 Thread Ben Monnahan

Hi all,

  Does anyone have any ideas why I would get a NullPointerException when
instanciating a class inside of a servlet when the class works fine when
run as its own program?  I am using Java 1.4.0_01 from Sun and Tomcat
4.1.10 with the invoker servlet disabled.

  On a separate but somewhat related note; I have been having all sorts of
problems with servlets in Tomcat.  Am I alone in this or is it just a
complicated system?

Thanks,
Ben Monnahan


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




Problem with JK 1.2.0 docs?

2002-10-09 Thread Ben Ricker

I am confused by the build process for mod_jk 1.2.0 on a Redhat 7.3
server. From the 'BUILDING' text file, it says:

"use configure and indicate Apache 1.3 apxs location (--with-apxs)
use make
copy the mod_jk binary to the apache modules location"

Now, after doing a 'make' there is no binary in the top-level directory
with the configure script (i.e.,
jakarta-tomcat-connectors-jk-1.2.0-src/jk/native). So I went into
jakarta-tomcat-connectors-jk-1.2.0-src/jk/native/apache-1.3 and I see
the following files:

[root@javatest2 apache-1.3]# ls  -l
total 1556
-rw-r--r--1 root root  120 Sep 26 04:34 libjk.module
-rw-r--r--1 root root 2350 Oct  9 11:27 Makefile
-rw-r--r--1 root root  659 Oct  9 11:27 Makefile.apxs
-rwxr-xr-x1 root root  582 Sep 26 04:34 Makefile.apxs.in
-rwxr-xr-x1 root root 2234 Sep 26 04:34 Makefile.in
-rw-r--r--1 root root  252 Sep 26 04:34 Makefile.libdir
-rw-r--r--1 root root  827 Sep 26 04:34 Makefile.tmpl
-rw-r--r--1 root root   920456 Oct  9 11:28 mod_jk.a
-rw-r--r--1 root root66958 Sep 26 04:34 mod_jk.c
-rw-r--r--1 root root 7326 Sep 26 04:34 mod_jk.dsp
-rw-r--r--1 root root   11 Sep 26 04:34 mod_jk.exp
-rw-r--r--1 root root  713 Oct  9 11:28 mod_jk.la
-rw-r--r--1 root root   103752 Oct  9 11:28 mod_jk.lo
-rw-r--r--1 root root   101844 Oct  9 11:28 mod_jk.o
lrwxrwxrwx1 root root   15 Oct  9 11:28 mod_jk.so -> mod_jk.so.0.0.0
lrwxrwxrwx1 root root   15 Oct  9 11:28 mod_jk.so.0 -> mod_jk.so.0.0.0
-rwxr-xr-x1 root root   326225 Oct  9 11:28 mod_jk.so.0.0.0

So which is the binary? Mod_jk.so is a symlink. Should I just move
mod_jk.so.0.0.0 to the apache directory as mod_jk.so? The documentation
is very vague on this point. I get around it by doing a 'make install'
in the native directory and it installs a symlink to the the libexec
directory of Apache.

-- 
Ben Ricker <[EMAIL PROTECTED]>
Wellinx.com


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




Reloading w/ Manager on cluster?

2002-10-10 Thread Ben Ricker

I have a setup with 2 APache servers (1.3.27 on Redhat 7.3) talking to 4
tomcats clustered across two SOlaris 8 boxes running Tomcat 4.0.5. We
have a load balancer across the web servers and, of course, mod_jk 1.2.0
doing the load balancing across the Tomcats.

We have a QA environment where I want the abilty to reload the apps
through the manager application. We cannot do it through the Apache load
balancer because you cannot quarantee what Tomcat you are going to talk
to at any given request.

I thought of having Tomcat use its embedded web server on 8080 and 8081
on each Tomcat server and have the developers call those for reloading,
but they would have to do that 4 times for every reload. Plus, if we
scale to a bigger cluster, the problem becomes worse.

I do have a script that stops and restarts all of the tomcats from a
central location, but is there any danger to be restarting Tomcat
frequently? Has anyone worked around a cluster for the management app?

Thanks,

Ben

-- 
Ben Ricker <[EMAIL PROTECTED]>
Wellinx.com


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




RE: Reloading w/ Manager on cluster?

2002-10-10 Thread Ben Ricker

The script is rather rough right now, but it is simple. I use ssh to
call the tomcat startup script like so:

ssh hostname /etc/init.d/tomcat stop

Here is the contents of the startup script. I have two Tomcat
directories, /usr/local/tomcat1 and /usr/local/tomcat2. I have them
sharing a centralized webapps directory in /usr/local/webapps. I run the
tomcat processes with an unpriveledged use, 'tomcat'.

HTH,

Ben Ricker

-Tomcat Startup Script---

#!/bin/sh
#
# tomcatStarts the Tomcat server
#
# Author:   All kinds of people
#
# chkconfig: 345 50 50
#
# processname: httpd
# pidfile: /usr/local/apache/logs/httpd.pid

# Begin /etc/init.d/apache

case "$1" in
  start)
echo -n "Starting Tomcat..."
/bin/su tomcat -c "/usr/local/tomcat1/bin/startup.sh"
/bin/su tomcat -c "/usr/local/tomcat2/bin/startup.sh"
;;

  stop)
echo -n "Stopping Tomcat..."
/bin/su tomcat -c "/usr/local/tomcat1/bin/shutdown.sh"
/bin/su tomcat -c "/usr/local/tomcat2/bin/shutdown.sh"
;;

  restart)
echo -n "Restarting Tomcat..."
/bin/su tomcat -c "/usr/local/tomcat1/bin/shutdown.sh"
/bin/su tomcat -c "/usr/local/tomcat2/bin/shutdown.sh"
sleep 5
/bin/su tomcat -c "/usr/local/tomcat1/bin/startup.sh"
/bin/su tomcat -c "/usr/local/tomcat2/bin/startup.sh"
;;

  *)
echo "Usage: $0 {start|stop|restart}"
;;

esac

# End /etc/init.d/tomcat


On Thu, 2002-10-10 at 13:52, Michael Schulz wrote:
> I am facing a similar issue in terms of updating our tomcat servers in the
> cluster.
> 
> I was thinking about doing a similar thing...using the http connector (which
> is behind a firewall and not accessible to the outside world) on each tomcat
> server to communicate with the tomcat manager app
> (http://tomcat1:8080/manager/reload?path=/mywebapp).  I would think it would
> be easy enough to write a script that uses Lynx to invoke this same URL on
> all four servers.  I don't think it is a problem to be restarting tomcat
> frequently, at least I have not seen a problem and we've done this quite a
> bit in our QA environment.
> 
> Ben, may I see the script that you are currently using to restart tomcat on
> the multiple servers?  Also, have you done any load testing? If so, what
> sort of load is your system able to support?
> 
> -Mike Schulz
> 
> 
> -Original Message-
> From: Ben Ricker [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, October 10, 2002 1:32 PM
> To: [EMAIL PROTECTED]
> Subject: Reloading w/ Manager on cluster?
> 
> 
> I have a setup with 2 APache servers (1.3.27 on Redhat 7.3) talking to 4
> tomcats clustered across two SOlaris 8 boxes running Tomcat 4.0.5. We
> have a load balancer across the web servers and, of course, mod_jk 1.2.0
> doing the load balancing across the Tomcats.
> 
> We have a QA environment where I want the abilty to reload the apps
> through the manager application. We cannot do it through the Apache load
> balancer because you cannot quarantee what Tomcat you are going to talk
> to at any given request.
> 
> I thought of having Tomcat use its embedded web server on 8080 and 8081
> on each Tomcat server and have the developers call those for reloading,
> but they would have to do that 4 times for every reload. Plus, if we
> scale to a bigger cluster, the problem becomes worse.
> 
> I do have a script that stops and restarts all of the tomcats from a
> central location, but is there any danger to be restarting Tomcat
> frequently? Has anyone worked around a cluster for the management app?
> 
> Thanks,
> 
> Ben
> 
> --
> Ben Ricker <[EMAIL PROTECTED]>
> Wellinx.com
> 
> 
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
-- 
Ben Ricker <[EMAIL PROTECTED]>
Wellinx.com


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




Re: Using daemontools to supervise Tomcat

2002-10-11 Thread Ben Ricker

I tried to get Daemontools running for Jserv (which is pretty similar)
and had no luck. My guess is that you might be able to get it to work if
you pass all the env variables using daemontools and just launch java.
However, since java is not a normal daemon, you will probably need
fghack to do it. 

I myself gave up; the thought of creating all those environment
variables was just too much, so I just rolled my own PID monitor whcih I
am porting to Tomcat. Basically, it will grep out the PID and write to a
file which I watch with a cronjob process.

HTH,

Ben Ricker


On Fri, 2002-10-11 at 10:08, camccuk wrote:
> Hello all,
> 
> Does anyone have any experience with using Dan Bernstein's daemontools to
> supervise Tomcat? I've had real trouble getting this to work with either
> startup.sh or catalina.sh but I'm putting this down to the fact that I'm no
> genius with unix processes...
> 
> Having said that, DJB's documentation isn't the most encouraging in the
> world...
> 
> I've got Tomcat 4.0.4 with daemontools 0.7
> 
> Any pointers very welcome,
> 
> cam
> 
> __
> Do you Yahoo!?
> Faith Hill - Exclusive Performances, Videos & More
> http://faith.yahoo.com
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
-- 
Ben Ricker <[EMAIL PROTECTED]>
Wellinx.com


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




Re: Using daemontools to supervise Tomcat

2002-10-11 Thread Ben Ricker

On Fri, 2002-10-11 at 12:48, camccuk wrote:
> --- Ben Ricker <[EMAIL PROTECTED]> wrote:

> I'b be interested to see that Ben - one of the problems I had trying something
> similar was that when tomcat gets swapped out, it appears on the process list
> as [java] and there is *no way* to my knowledge (or that of the various usenet
> groups/lists etc that I pestered) of getting back the command line to see which
> instance of the JVM you are dealing with - this was a problem for me on a
> machine running at least two JVMs.

Actually there is. I use a -Dafoo to give the process a unique
identifier. This sets a marker on the process but does nothing for the
JVM itself. To find a process ID, I would use 'pgrep -f foo' and the PID
is returned (this is on Unix, btw). Also , when you do the '-Dafoo' as
the first "arg" to the JVM, it appears in 'ps -ef'.

Here is how I do it: I setup the java command line like so:

/usr/local/jdk/bin/java \
-Da=Ftp \
-cp $PROP_DIR:$EXT_INT_JAR:$NET_COMPONENTS_JAR:$LOG4J_JAR \
com.usrx.extinterface.ftp.FTPService $PROPERTIES_FILES \
>> $LOG_FILE 2>&1

Then I do this:

pgrep -fn  Ftp > $PIDFILE

Technically, you do not need the 'n', as that denotes the newest
process. You can get by with just the -f.

Finally, I run the following script through cron every minute. The
variables should be self-explanatory. For security reasons, I cannot
divulge the whole setup. Basically, this snippet below monitors 7 JVMs
and if they are not running, restarts them. It has worked flawlessly for
a long time.

-Begin Snippet--

for i in $*
do
eval BASEDIR=$`echo BASEDIR_$i`
eval PIDFILE="$BASEDIR/$`echo PIDFILE_$i`"
eval PNAME=$`echo PNAME_$i`
eval CHECKFILE="$BASEDIR/$`echo CHECKFILE_$i`"
eval START="$BASEDIR/$`echo START_$i`"

if [ -f $PIDFILE ] ; then
PID=`cat $PIDFILE`
if [ "x$PID" != "x" ] && kill -0 $PID 2>/dev/null ; then
STATUS="$PNAME ($PID) running"
RUNNING=1
else
STATUS="$PNAME ($PID?) NOT running"
RUNNING=0
fi
else
STATUS="$PNAME (no pid file) NOT running"
RUNNING=0
fi

if [ $RUNNING = 0 ]; then
if [ -f $CHECKFILE ] ; then
if [ `cat $CHECKFILE` = 0 ] ; then
echo "$STATUS - restart failed." | mail -s "$PNAME alert" $RECIPIENTS
logger -p local0.crit -t pidmonitor.sh "$STATUS: restart failed."
echo "1" > $CHECKFILE
fi
cd $BASEDIR
$START start
else
echo "$STATUS - will attempt to start." | mail -s "$PNAME alert" 
$RECIPIENTS
logger -p local0.crit -t pidmonitor.sh "$STATUS: attempting to start."
touch $CHECKFILE
echo "0" > $CHECKFILE
cd $BASEDIR
$START start
fi
else
if [ -f $CHECKFILE ] ; then
/bin/rm $CHECKFILE
echo "$STATUS" | mail -s "$PNAME alert" $RECIPIENTS
logger -p local0.crit -t pidmonitor.sh $STATUS
fi
fi
done

--End Snippet--


> I had to use fghack already to stop supervise trying to start tomcat dozens of
> time but I still couldn't get multilog to work and supervise seemed to act
> weirdly afterwards (although svstat worked ok and svscan got into a confused
> state trying to start the run script in the logging subdirectory - something
> supervise won't do for me)

You will have to use fghack because java does not act like a daemon
usually does. A daemon usually puts itself into the background after
executing. Java does not. That is what fghack does. Unfortunately, as
the web site for daemontools says, if you use fghack, it will disable
your ability to use svc and will make all the other commands pretty
useless. Daemontools works great with daemons that act like daemons; it
works like hell with programs that don't.

-- 
Ben Ricker <[EMAIL PROTECTED]>
Wellinx.com


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




Re: Unspecified NoClassDefFoundError

2002-10-12 Thread Ben Monnahan

I'm using VisAD to do some visualizations.  What I'm doing is taking a
snapshot of the current display and writing it to an image.  Since this is
in a servlet, there isn't any real display.  According to the VisAD list
for the case when you don't need a real display you can use and offscreen
renderer.  So I think it is painting the component to some sort of virtual
screen and then it is going to grab that image and save it to disk.

Unfortunately there isn't an exception to go with it.

I just found a post about java 1.3 on linux having problems with offscreen
rendering.  I'm using java 1.4 so this shouldn't be a problem right?  If
the VisAD code was written for java 1.3 would I still have problems even
though I'm using 1.4?

Thanks
Ben


On Fri, 11 Oct 2002, Padhu Vinirs wrote:

> 
> Just curious, why is a servlet calling paintComponent ? Is there any 
> accompanying exception ?
> 
> -- padhu
> 
> 
> 
> Ben Monnahan wrote:
> 
> >Hi all,
> >
> >  I am getting NoClassDefFoundError in my servlet, but it doesn't tell me
> >which one it couldn't find.  I'm guessing its a problem with
> >GraphicsEnvironment.getLocalGraphicsEnvironment().  I tried a search on
> >google, but it didn't turn up anything.  Does anyone know what might be
> >wrong?  Here is a stack trace:
> >
> >java.lang.NoClassDefFoundError
> > at java.lang.Class.forName0(Native Method)
> > at java.lang.Class.forName(Class.java:130)
> > at
> 
>>java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:62)
> > at
> >java.awt.image.BufferedImage.createGraphics(BufferedImage.java:1053)
> > at visad.java2d.VisADCanvasJ2D.paintComponent(Unknown Source)
> > at visad.java2d.VisADCanvasJ2D.run(Unknown Source)
> > at java.lang.Thread.run(Thread.java:536)
> >
> >
> >System Info:
> > Redhat 7.2
> > Tomcat 4.1.10 (invoker servlet disabled)
> > (no apache)
> > Java 1.4.0_01
> >
> >
> >
> >Thanks for your time,
> >Ben Monnahan
> >
> >
> >--
> >To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> >For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
> >
> >
> >  
> >
> 
> 
> 


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




Unspecified NoClassDefFoundError

2002-10-13 Thread Ben Monnahan

Hi all,

  I am getting NoClassDefFoundError in my servlet, but it doesn't tell me
which one it couldn't find.  I'm guessing its a problem with
GraphicsEnvironment.getLocalGraphicsEnvironment().  I tried a search on
google, but it didn't turn up anything.  Does anyone know what might be
wrong?  Here is a stack trace:

java.lang.NoClassDefFoundError
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:130)
at
java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:62)
at
java.awt.image.BufferedImage.createGraphics(BufferedImage.java:1053)
at visad.java2d.VisADCanvasJ2D.paintComponent(Unknown Source)
at visad.java2d.VisADCanvasJ2D.run(Unknown Source)
at java.lang.Thread.run(Thread.java:536)


System Info:
Redhat 7.2
Tomcat 4.1.10 (invoker servlet disabled)
(no apache)
Java 1.4.0_01



Thanks for your time,
Ben Monnahan


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




Re: zip or exe, for windows install

2002-10-13 Thread Ben Walding

The exe installs a Win32 service and a couple of start menu items

Frank Liu wrote:

>What's the difference between the ZIP and EXE binary tomcat
>distribution for MS Windows? Can you just unzip it into a directory
>and config it as on Unix box? or do I have to use EXE installer
>for some extra stuff/work?
>
>Thanks!
>Frank
>
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 
>
>
>  
>




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Connecting Apache with remote Tomcat

2002-10-14 Thread Ben Ricker

I run mod_jk 1.2.0 and I do not need to recycle Apache when restarting
Tomcat. I did notice a lag of up to 2 minutes after restarting Tomcat
where Apache will not take requests. I think this is due to Tomcat
restarting itself and classloading. Maybe you do not wait long enough
after restarting Tomcat before you retry a connection?

FYI, I am running two Apache 1.3.27 on Redhat load balancing across 4
Tomcats on two Solaris 8 servers.

Ben Ricker 

On Mon, 2002-10-14 at 13:08, [EMAIL PROTECTED] wrote:
> I have a jk connector that allows our Apache (version 1.3.22) web server on
> Linux to forward requests to a tomcat (version 4.0.1) instance running on a
> Windows 2000 server. Each time the tomcat server is cycled the Apache
> server also requires cycling. I read in the docs that the newer version of
> the mod_jk connector overcomes this requirement. I downloaded the latest
> version of mod_jk.so for linux and saw no difference. Can you shed some
> more light on how to overcome this problem? Does it require jk2 to work
> properly?
> 
> Thanks for any help you can pass along.
> 
> Raymond J. Zeigler
> Integrated Support System, Inc.
> Clemson, SC
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
> 



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




Re: Using daemontools to supervise Tomcat

2002-10-16 Thread Ben Ricker

Just an FYI: I utilized Will's wonderful instructions and now have
Tomcat supervised by Daemontools. the 'svc' command even works for
HUP'ing and such!

Ben Ricker


On Fri, 2002-10-11 at 16:30, Will Hartung wrote:
> From: "camccuk" <[EMAIL PROTECTED]>
> Sent: Friday, October 11, 2002 8:08 AM
> 
> 
> > Does anyone have any experience with using Dan Bernstein's daemontools to
> > supervise Tomcat? I've had real trouble getting this to work with either
> > startup.sh or catalina.sh but I'm putting this down to the fact that I'm
> no
> > genius with unix processes...
> 
> I don't really understand what the issue is here, but I plead ignorance in
> that I haven't worked with the DJB tools in a while.
> 
> But, as I recall, the tools simply execute the program using the (by
> default) 'run' script. When run exits, for whatever reason, the tools fire
> it back up.
> 
> Now the tomcat startup scripts fire the java process off in the background,
> but as I recall there is an option to NOT do that, and simply have tomcat.sh
> stay in the foreground.
> 
> It seems to me that a few simple tweaks to tomcat.sh, linked to 'run' in the
> "proper spot", and it should Just Work.
> 
> Lemme look.
> 
> "This man has a bad heart. Angina Pectoris, but we have the cure...Yes. Here
> they are..."
> 
> Yes, here it is, just start catalina.sh with the "run" option, and it
> doesn't fork into the background.
> 
> #!/bin/sh
> # daemontools run script for Tomcat
> cd /usr/local/java/jakarta-tomcat-4.0.4/bin
> # start tomcat in the foreground, redirect stderr to stdout for logging.
> exec ./catalina.sh run 2>&1
> 
> Copy or link this script to /services/tomcat/run, and it should fire right
> up. Untested, but it should work.
> 
> Multilog should work with this as well, as the 'run' option doesn't redirect
> stdout or stderr, whereas the (default) 'start' option does. Since multilog
> only listens to stdin, the script redirects stderr to stdout so it can be
> captured as well. You need to setup the log directory properly, as mentioned
> in DJBs faq.
> 
> The key is to keep the java process in the foreground for the 'run' script.
> supervise puts it in the background for you, so that's why the run script
> doesn't need to.
> 
> Regards,
> 
> Will Hartung
> ([EMAIL PROTECTED])
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
> 
> 



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




Re: Tomcat 4.1.12 hanging under stress?

2002-10-28 Thread Ben Ricker
On Mon, 2002-10-28 at 14:38, William Lee wrote:
> I'm running a Tomcat 4.1.12 (with the coyote connectors running SSL) on 
> RH Linux with a 2.4.9 kernel and IBM JRE 1.3.1 build cxia32131-20020622.

I am wondering about the kernel version here; you have rather old
kernel, a version which is considered unstable. I would suggest
upgrading the kernel, especially since you have SMP.

This is just a small suggestion.anything in the logs?

Ben Ricker
Wellin.com
 
> I initiated around 50 concurrent https connections from JMeter to the 
> test server I have (which is a moderately powerful dual PIII 500 with 
> 512 MB RAM and Ultra-SCSI drives) and I realized some random hangings 
> after running for a while.  When the hanging happened, I could still 
> connect to the port that I opened.  However, I couldn't do anything once 
> I connected to the port.  The JVM seemed to be running still, but tomcat 
> wouldn't response.
> 
> BTW, I tried connecting to the port using "openssl s_client ..." and I 
> was able to connect to the port when it hung, but I can't issue any HTTP 
> commands.
> 
> I can, however, shutdown the server from the control port with no problem.
> 
> Can somebody tell me how to address / debug this problem?
> 
> -- 
> William Lee (Will)| Sendmail Inc.
> Email:  [EMAIL PROTECTED] | http://www.sendmail.com
> Tel:(510) 594-5505|
> 
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@;jakarta.apache.org>
> For additional commands, e-mail: <mailto:tomcat-user-help@;jakarta.apache.org>
> 



--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@;jakarta.apache.org>




  1   2   3   4   5   6   7   8   9   10   >