RE: Tomcat threading questions

2003-12-22 Thread Neil Aggarwal
Bill:

 Eventually the browser will drop the connection, and then if 
 the Servlet
 tries to write anything, then an IOException will be thrown.  However
 allowing the following code on your server will DoS:
   while(true) {
  Thread.Sleep(1000);
   }

This is precisely my question:  Is there a way to set a 
timeout on a thread and kill it if it takes that amount of time?

 The thread allocation is pretty similar to Apache/httpd.

The Apache server source code has a hard thread limit defined
in the source code.  Does Tomcat?

Thanks,
Neil

--
Neil Aggarwal, JAMM Consulting, (972)612-6056, www.JAMMConsulting.com
FREE! Valuable info on how your business can reduce operating costs by 
17% or more in 6 months or less! = http://newsletter.JAMMConsulting.com


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



Tomcat threading questions

2003-12-21 Thread Neil Aggarwal
Hello:

I have a couple of questions about the way Tomcat uses threads:

1. If a thread does an infinite loop or other operation that
would cause it to wait forever, will Tomcat kill it?
If not, is there a way to do that?
If so, how would we control the timeout?

2. Is there a hard limit on the number of threads like in
Apache or does it allocate up to maxProcessors no matter
how large it may be?

Thanks,
Neil


--
Neil Aggarwal, JAMM Consulting, (972)612-6056, www.JAMMConsulting.com
FREE! Valuable info on how your business can reduce operating costs by 
17% or more in 6 months or less! = http://newsletter.JAMMConsulting.com


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



RE: Instructions for compiling JK2 connector for tomcat 5?

2003-12-05 Thread Neil Aggarwal
Jerry:

I also have had to set up symbolic links, but this error is looking
for something in the build directory and there are no docs to tell
me what it is looking for.

Thanks,
Neil


--
Neil Aggarwal, JAMM Consulting, (972)612-6056, www.JAMMConsulting.com
FREE! Valuable info on how your business can reduce operating costs by 
17% or more in 6 months or less! = http://newsletter.JAMMConsulting.com

 -Original Message-
 From: Jerry Birchler [mailto:[EMAIL PROTECTED] 
 Sent: Friday, December 05, 2003 12:42 AM
 To: Tomcat Users List
 Subject: RE: Instructions for compiling JK2 connector for tomcat 5?
 
 
 Neil,
 
 Have not talked to you in a while, and I have not tried this 
 particular
 Linux configuration, but I can tell you that it is not 
 unusual to have to
 either copy files from one directory to another or set up 
 symbolic links to
 make the ant build/make work.
 
 My primary target platform for Tomcat is (Red Hat) Linux 
 followed distantly
 by Solaris (SPARC) 8.0. I seem to recall having to do Symlinks in both
 cases.
 
 I hope this helps. If not, I will consider building a RedHat 
 9.0 box to
 check it out. Please experiment and let me know.
 
 
 
 -Original Message-
 From: Neil Aggarwal [mailto:[EMAIL PROTECTED]
 Sent: Thursday, December 04, 2003 5:58 PM
 To: 'Tomcat-User'
 Subject: Instructions for compiling JK2 connector for tomcat 5?
 
 
 Hello:
 
 Are there any instructions for compiling the JK2 connector for
 Tomcat 5?
 
 I am trying to do this on a RedHat 9 machine with the IBM
 1.4.1 SR1 JDK.
 
 I have ant 1.5.3 installed and the ANT_HOME variable set properly.
 I have apache 2.0.45 installed in /usr/local/apache
 I have an enviroment variable JAVA_HOME that points to the java sdk
 
 Here is what I did:
 
 cd /usr/local
 Grabbed the jakarta-tomcat-5.0.16.tar.gz from the tomcat 5 binaries
 directory.
 tar zxf jakarta-tomcat-5.0.16.tar.gz
 
 cd /usr/local
 Grabbed the jakarta-tomcat-connectors-jk2-2.0.2-src.tar.gz from the
 connectors
 source directory.
 tar zxf jakarta-tomcat-connectors-jk2-2.0.2-src.tar.gz
 
 cd /usr/local/jakarta-tomcat-connectors-jk2-2.0.2-src/jk
 cp build.properties.sample build.properties
 vi build.properties and set these directives:
   tomcat5.home=/usr/local/jakarta-tomcat-5.0.16
   apache2.home=/usr/local/apache
 ant native
 
 I get this error:
 file:/usr/local/jakarta-tomcat-connectors-jk2-2.0.2-src/jk/bui
ld.xml:232
: srcdir
/usr/local/jakarta-tomcat-connectors-jk2-2.0.2-src/jk/jkant/java does
not exist!

Any ideas on why this does not work?

Thanks,
Neil

--
Neil Aggarwal, JAMM Consulting, (972)612-6056, www.JAMMConsulting.com
FREE! Valuable info on how your business can reduce operating costs by
17% or more in 6 months or less! = http://newsletter.JAMMConsulting.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]


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



Instructions for compiling JK2 connector for tomcat 5?

2003-12-04 Thread Neil Aggarwal
Hello:

Are there any instructions for compiling the JK2 connector for
Tomcat 5?

I am trying to do this on a RedHat 9 machine with the IBM
1.4.1 SR1 JDK.

I have ant 1.5.3 installed and the ANT_HOME variable set properly.
I have apache 2.0.45 installed in /usr/local/apache
I have an enviroment variable JAVA_HOME that points to the java sdk

Here is what I did:

cd /usr/local
Grabbed the jakarta-tomcat-5.0.16.tar.gz from the tomcat 5 binaries
directory.
tar zxf jakarta-tomcat-5.0.16.tar.gz

cd /usr/local
Grabbed the jakarta-tomcat-connectors-jk2-2.0.2-src.tar.gz from the
connectors
source directory.
tar zxf jakarta-tomcat-connectors-jk2-2.0.2-src.tar.gz

cd /usr/local/jakarta-tomcat-connectors-jk2-2.0.2-src/jk
cp build.properties.sample build.properties
vi build.properties and set these directives:
tomcat5.home=/usr/local/jakarta-tomcat-5.0.16
apache2.home=/usr/local/apache
ant native

I get this error:
file:/usr/local/jakarta-tomcat-connectors-jk2-2.0.2-src/jk/build.xml:232
: srcdir
/usr/local/jakarta-tomcat-connectors-jk2-2.0.2-src/jk/jkant/java does
not exist!

Any ideas on why this does not work?

Thanks,
Neil

--
Neil Aggarwal, JAMM Consulting, (972)612-6056, www.JAMMConsulting.com
FREE! Valuable info on how your business can reduce operating costs by 
17% or more in 6 months or less! = http://newsletter.JAMMConsulting.com


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



RE: Tag Handler pool eating up Memory (and enablePooling is set to false)

2003-12-02 Thread Neil Aggarwal
Chris:

 Yeah, it's possible (and probable) that the TagHandlerPool 
 maintains a 
 reference back to the ServletContext in which it lives. That 
 might kew 
 your results. I'm sure that the TagHandlerPool isn't actually 
 taking up 
 that much memory.

This is strange.  When I created a heap dump from my server
just now, it does not have any instances of TagHandlerPool
in the heap dump.  That is what I expected before, but I still
had them in my last dump.

 Do you have any of your own tag libraries, or are you using only 
 3rd-party taglibs? If you are using your own, check to see if you are 
 holding on to references or something like (anything like 
 shared objects 
 between tags -- that kind of thing).

We are not using any 3rd party tag libraries.
We are using our our tag library.  I will look into that.

 If you have a profiler handy (something more robust that the heap 
 dumper), check to see how many instances of various types 
 there are. For 
 example, if you are using org.foo.bar.taglib, then filter the object 
 list by org.foo.bar.taglib and take a look at how many 
 instances there 
 are. If you find that there are thousands of references to 
 tag handlers, 
 then something is probably wrong with Tomcat. Otherwise, 
 several hundred 
 references doesn't sound horrible. It's possible that they 
 haven't been 
 GC'd yet.

Doing a quick grep on my summary results from the new heap dump,
I get this result:
60256,1076,com/slsideas/pagegen/tags/SetPropertyTag
31296,652,com/slsideas/pagegen/tags/ValueTag
23088,481,com/slsideas/pagegen/tags/ProcessTag
13008,271,com/slsideas/pagegen/tags/IfNotNullTag
 9888,206,com/slsideas/pagegen/tags/IfNullTag
 9600,200,com/slsideas/pagegen/tags/IfEqTag
 5616,117,com/slsideas/pagegen/tags/IfExistTag
 4992,104,com/slsideas/pagegen/tags/IfNotEqTag
 3216,67,com/slsideas/pagegen/tags/IncludeTag
 3136,49,com/slsideas/pagegen/tags/LoopTag
  960,20,com/slsideas/pagegen/tags/IfNotExistTag
  608,2,class com/slsideas/pagegen/tags/ValueTag
  608,2,class com/slsideas/pagegen/tags/SetPropertyTag$Converter
  608,2,class com/slsideas/pagegen/tags/SetPropertyTag
  608,2,class com/slsideas/pagegen/tags/ProcessTag
  608,2,class com/slsideas/pagegen/tags/IncludeTag
  608,2,class com/slsideas/pagegen/tags/IfNotExistTag
  608,2,class com/slsideas/pagegen/tags/IfExistTag
  608,2,class com/slsideas/pagegen/tags/BaseTag
  304,1,class com/slsideas/pagegen/tags/LoopTag
  304,1,class com/slsideas/pagegen/tags/IfNullTag
  304,1,class com/slsideas/pagegen/tags/IfNotNullTag
  304,1,class com/slsideas/pagegen/tags/IfNotEqTag
  304,1,class com/slsideas/pagegen/tags/IfLoopTag
  304,1,class com/slsideas/pagegen/tags/IfGreaterThanTag
  304,1,class com/slsideas/pagegen/tags/IfGreaterOrEqTag
  304,1,class com/slsideas/pagegen/tags/IfEqTag
  304,1,class com/slsideas/pagegen/tags/EscapeValueTag
   56,1,com/slsideas/pagegen/tags/IfLoopTag

The first column is the total bytes held by the instance inself (not
including
references), the second column is the number of instances that were
present
in the heap dump, and the last column is the type of the object.

I find it very hard to believe that we have over 2500 active instances
of
our tags.  This seems to imply they are not being garbage collected.

 I also noticed that you are using JDK 1.4.1. I've heard that this 
 version (it might only be the Sun distro -- can someone 
 confirm?) has an 
 implementation of StringBuffer that has a terrible memory leak. You 
 might want to consider upgrading to 1.4.2 if that's possible.

I ran some code to count all of the instances of java/lang/StringBuffer
and the total bytes they hold both in themselves and their references.
I got 2,925,512 bytes in 15,914 instances of java/lang/StringBuffer.
The heap dump shows 174,740,832 total bytes used in 892,512 total
instances.

I don't belive the StringBuffer is the cause of my problems.

Thanks,
Neil.

--
Neil Aggarwal, JAMM Consulting, (972)612-6056, www.JAMMConsulting.com
FREE! Valuable info on how your business can reduce operating costs by 
17% or more in 6 months or less! = http://newsletter.JAMMConsulting.com


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



Tag Handler pool eating up Memory (and enablePooling is set to false)

2003-12-01 Thread Neil Aggarwal
Hello:

We have several tomcat servers running an application.  The servers
slow down after a few hours of uptime.

Looking at the memory usage on the servers, we noticed that the servers
seem to be accumulating memory and finally they slow down when
the memory utilization becomes high.

We are using the IBM JDK 1.4.1 SR1 with Tomcat 4.1.24 on RedHat 9.

Using the heapdump utility from the IBM JDK, I generated a heap dump
from one of the servers after it had been up for a while.

From that output, I see these pieces of infromation:

There were a total of 509,235 objects in memory 
taking up 67,992,688 bytes.

There were 436 instances of org/apache/jasper/runtime/TagHandlerPool.
Tracing all of the references from these TagHandlerPool object,
they reference a total of 65,010,600 bytes.

This means that almost 97% of the memory usage of Tomcat is being 
referenced from the TagHandlerPool objects.

I have enablePooling set to false in the Tomcat's web.xml in the conf 
directory.

It seems that the enablePooling setting is not preventing Tomcat from
pooling the tag handlers and they are referencing a lot of memory.

Does that setting work in Tomcat 4.1.24?

Is there any other reason why Tomcat would behave this way?

Thanks,
Neil

--
Neil Aggarwal, JAMM Consulting, (972)612-6056, www.JAMMConsulting.com
FREE! Valuable info on how your business can reduce operating costs by 
17% or more in 6 months or less! = http://newsletter.JAMMConsulting.com


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



RE: Tag Handler pool eating up Memory (and enablePooling is set to false)

2003-12-01 Thread Neil Aggarwal
Filip:

Thanks for the suggestion.

I have been profiling it and I don't see any references from our
code, but I will keep checking.

Thanks,
Neil


--
Neil Aggarwal, JAMM Consulting, (972)612-6056, www.JAMMConsulting.com
FREE! Valuable info on how your business can reduce operating costs by 
17% or more in 6 months or less! = http://newsletter.JAMMConsulting.com

 -Original Message-
 From: Filip Hanik [mailto:[EMAIL PROTECTED] 
 Sent: Monday, December 01, 2003 6:37 PM
 To: Tomcat Users List
 Subject: RE: Tag Handler pool eating up Memory (and 
 enablePooling is set to false)
 
 
 are you sure this is a tomcat reference holding on to it?
 it could be one of your classes as well, you need to run it 
 through a memory
 profile in order to find out
 
 Filip
 
 -Original Message-
 From: Neil Aggarwal [mailto:[EMAIL PROTECTED]
 Sent: Monday, December 01, 2003 2:53 PM
 To: 'Tomcat-User'
 Subject: Tag Handler pool eating up Memory (and enablePooling 
 is set to
 false)
 
 
 Hello:
 
 We have several tomcat servers running an application.  The servers
 slow down after a few hours of uptime.
 
 Looking at the memory usage on the servers, we noticed that 
 the servers
 seem to be accumulating memory and finally they slow down when
 the memory utilization becomes high.
 
 We are using the IBM JDK 1.4.1 SR1 with Tomcat 4.1.24 on RedHat 9.
 
 Using the heapdump utility from the IBM JDK, I generated a heap dump
 from one of the servers after it had been up for a while.
 
 From that output, I see these pieces of infromation:
 
 There were a total of 509,235 objects in memory
 taking up 67,992,688 bytes.
 
 There were 436 instances of org/apache/jasper/runtime/TagHandlerPool.
 Tracing all of the references from these TagHandlerPool object,
 they reference a total of 65,010,600 bytes.
 
 This means that almost 97% of the memory usage of Tomcat is being
 referenced from the TagHandlerPool objects.
 
 I have enablePooling set to false in the Tomcat's web.xml in the conf
 directory.
 
 It seems that the enablePooling setting is not preventing Tomcat from
 pooling the tag handlers and they are referencing a lot of memory.
 
 Does that setting work in Tomcat 4.1.24?
 
 Is there any other reason why Tomcat would behave this way?
 
 Thanks,
   Neil
 
 --
 Neil Aggarwal, JAMM Consulting, (972)612-6056, www.JAMMConsulting.com
 FREE! Valuable info on how your business can reduce operating costs by
 17% or more in 6 months or less! = 
 http://newsletter.JAMMConsulting.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]
 


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



RE: can tomcat 4 be clustered

2003-11-07 Thread Neil Aggarwal
Hello:

Take a look at this page:
http://jakarta.apache.org/~fhanik

Neil.


--
Neil Aggarwal, JAMM Consulting, (972)612-6056, www.JAMMConsulting.com
FREE! Valuable info on how your business can reduce operating costs by 
17% or more in 6 months or less! = http://newsletter.JAMMConsulting.com

 -Original Message-
 From: computer pulsar [mailto:[EMAIL PROTECTED] 
 Sent: Friday, November 07, 2003 12:45 AM
 To: [EMAIL PROTECTED]
 Subject: can tomcat 4 be clustered
 
 
 hi,
 can the tomcat 4.x be configured as a cluster? in
 other words can tomcat 4.x be configured to load
 balance? if so, please mention how or give the info
 source.
 
 thanks in advance,
 computer pulsar :)
 
 __
 __
 Want to chat instantly with your online friends?  Get the FREE Yahoo!
 Messenger http://mail.messenger.yahoo.co.uk
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


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



Re: SESSION REPLICATION: RedHat 9 and Sun JDK 1.4.2 do not like to play

2003-10-16 Thread Neil Aggarwal
Euan:

 FYI regarding using IBM JDK on RH9 - we also experienced core dumps
and had
 to roll back to SUN.. The RH9 release notes state that the IBM JDK has
 'problems' with RH9 'NPTL' which is on by default but can easily be
*turned
 off*..

What version of the IBM JDK have you been using?

According to this page:
http://www-106.ibm.com/developerworks/java/jdk/other/portingplans.html

They state:

On Linux for Intel 32-bit platforms, the current 1.4.1 Java SDK works
with the new NPTL threading library when run on the Red Hat 9
distribution. However, this function is provided as early access and
is not supported for production use. 

The latest JDK seems to be working on RH9 on our servers.

Thanks,
Neil

--
Neil Aggarwal, JAMM Consulting, (972)612-6056, www.JAMMConsulting.com
FREE! Valuable info on how your business can reduce operating costs by 
17% or more in 6 months or less! = http://newsletter.JAMMConsulting.com


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



RE: Performance problem?

2003-10-13 Thread Neil Aggarwal
Oreste:

I have been profiling the garbase collector in our app
and it does not seem to be taking a long time to run.

Do you think that could still be the problem?

Thanks,
Neil


--
Neil Aggarwal, JAMM Consulting, (972)612-6056, www.JAMMConsulting.com
FREE! Valuable info on how your business can reduce operating costs by 
17% or more in 6 months or less! = http://newsletter.JAMMConsulting.com

 -Original Message-
 From: Oreste Luci [mailto:[EMAIL PROTECTED] 
 Sent: Monday, October 13, 2003 1:02 PM
 To: Tomcat Users List
 Subject: Re: Performance problem?
 
 
 Neil Aggarwal wrote:
 
 Hello:
 
 We have noticed that in our app, on occasion, a request takes an
 inordinately long time to execute even though it is performing a
 simple task.
 
 I added some tracing to the 
 org.apache.jasper.servlet.JspServletWrapper
 class and get this output immediately before calling service
 on the servlet created from my jsp file:
 
 10/10/2003 8:52:08.635 AM [Thread-188] Calling service on
 org.apache.jsp.index_jsp
   
 
 I had a very similar problem, and it was the GC. I'm using 
 JRockit, and 
 changed from -Xgc:parallel to -Xgc:gencon and that fixed it.
 
 Oreste
 
 
 -
 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: Performance problem?

2003-10-11 Thread Neil Aggarwal
-165819K(298744K), 0.0047730 secs]
9430.38: [GC 184379K-165819K(298744K), 0.0046940 secs]
9431.09: [GC 184378K-165819K(298744K), 0.0049550 secs]
9431.86: [GC 184379K-165820K(298744K), 0.0050470 secs]
9432.87: [GC 184380K-165819K(298744K), 0.0048000 secs]
9433.58: [GC 184379K-165820K(298744K), 0.0048570 secs]
9434.3: [GC 184380K-165820K(298744K), 0.0049900 secs]
9441.61: [GC 184380K-165820K(298744K), 0.0052050 secs]
9443.14: [GC 184380K-165823K(298744K), 0.0059740 secs]

As you can see, there are no long GC events around that time, so I do
not
believe the delay is GC related.

We are running:
Redhat 9
j2sdk1.4.1_02 from Sun
Tomcat 4.1.24

Any ideas why our app would just suddenly slow down?

Thanks,
Neil

--
Neil Aggarwal, JAMM Consulting, (972)612-6056, www.JAMMConsulting.com
FREE! Valuable info on how your business can reduce operating costs by 
17% or more in 6 months or less! = http://newsletter.JAMMConsulting.com


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



Performance problem?

2003-10-10 Thread Neil Aggarwal
Hello:

We have noticed that in our app, on occasion, a request takes an
inordinately long time to execute even though it is performing a
simple task.

I added some tracing to the org.apache.jasper.servlet.JspServletWrapper
class and get this output immediately before calling service
on the servlet created from my jsp file:

10/10/2003 8:52:08.635 AM [Thread-188] Calling service on
org.apache.jsp.index_jsp

My code is in the call to the service() method of the servlet after
checking
that Tomcat is not running a SingleThreadModel:

if (theServlet instanceof SingleThreadModel) {
   // sync on the wrapper so that the freshness
   // of the page is determined right before servicing
   synchronized (this) {
   theServlet.service(request, response);
}
} else {
 
com.slsideas.pagegen.servlets.BaseControllerServlet.addNote(request,
Calling service on +theServlet.getClass().getName() );
theServlet.service(request, response);
}

My next line of output from the same thread is in my jsp file at the
very top.  It
gave me:

10/10/2003 8:53:49.193 AM [Thread-188] At top of index.jsp

So, you can see that it took over a minute and a half to get from the
invocation of the
service method on my jsp servlet to the actual execution of it.

This seems strange to me, since this is just a method invocation.

I don't believe this is caused by compilation of the jsp file since I
have development
set to false in tomcat's config file and this code is past that point in
the JspServlet
class.

I don't believe this is garbage collection related since I have the
verbose garbage
collection flags turned on and I see that the GC for 100 seconds before
and after
this event look like this:

6467.31: [Full GC 285948K-236784K(460072K), 1.7318340 secs]
6497.1: [GC 287631K-259103K(460072K), 0.0225250 secs]
[My output occurred here]
6497.84: [GC 287775K-259175K(460072K), 0.0198420 secs]
6529.71: [Full GC 382024K-259185K(460072K), 0.7856030 secs]

The garbage collector is not taking very long to run.

Does anyone have any insights to why this is taking so long?

Thanks,
Neil.

--
Neil Aggarwal, JAMM Consulting, (972)612-6056, www.JAMMConsulting.com
FREE! Valuable info on how your business can reduce operating costs by 
17% or more in 6 months or less! = http://newsletter.JAMMConsulting.com


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



Re: Slow serving requests issue

2003-10-02 Thread Neil Aggarwal
Alex:

We have been trying to diagnose a similar problem that we
are experiencing on our servers.   

All of our requests come into our controller servlet.  The
servlet then forwards the request via a RequestDispatcher to 
a jsp page for display.  

On occasion (at least once a day), one of these requests take
about 4 minutes to go from the forward call to the jsp.

We do not currently have an explanation for it, but as trying
to track it down thru the Tomcat source code with Filip Hanik's 
help.

We are using Session Replication across our 4 web servers.  They
are all running:
Red Hat Linux (8 and 9)
Apache 2
Sun JDK 1.4.2
Tomcat 4.1.24

Do you have multiple servers or just one?
Are you using Session Replication?  

If you would like to talk directly, feel free to contact me.

Thanks,
Neil

--
Neil Aggarwal, JAMM Consulting, (972)612-6056, www.JAMMConsulting.com
FREE! Valuable info on how your business can reduce operating costs by 
17% or more in 6 months or less! = http://newsletter.JAMMConsulting.com

 Original message from Alex Shneyderman [EMAIL PROTECTED]
-

I just finished development of my struts app and have a performance
problem.

The pages are not served with a consistent speed. I have a page that 
Goes thru the whole struts hoopla to be served (action servlet - action
- jsp).


To detect what might be the problem I make the same request several
times some of the requests will be served really fast (like no time)
while there is always one that happens with an unknown frequency that is
served much slower than the others.

The top shows that during that slow serving request tomcat's utilization
grows rapidly and falls down slowly. 

We are using 4.1.27 on solaris java 1.4.1_04.

Does anyone know what might be wrong?

From what it looks like to me is that somehow JSP (or parts of it) get
recompiled periodically without the JSPs being changed.



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



Re: Tomcat hanging!! About to change container!! Please help!!

2003-10-02 Thread Neil Aggarwal
Joe:

Are you sure it is hanging?  Have you left it for a very
long time to see if it responds?

We are experiencing a problem where an occasional request
take about 4 minutes to complete, and it is on a login
page that only presents a form to input a login and
password.  I wonder if you are seeing the same thing.

Thanks,
Neil


--
Neil Aggarwal, JAMM Consulting, (972)612-6056, www.JAMMConsulting.com
FREE! Valuable info on how your business can reduce operating costs by 
17% or more in 6 months or less! = http://newsletter.JAMMConsulting.com

 Original message from Joe Zendle

We have 10 days until we go GA. We are experiencing periodic and regular
lockups of Tomcat.  We are testing on a machine that is fairly loaded
with background work (about 50% cpu). Our web app is accessed by very
few users so Tomcat per se, is not under load handling requests. After
say 10-12 hours of browser inactivity, when attempting to login we get
the BASIC Auth prompt, we enter our credentials and then tomcat hangs
while loading our index.jsp. The request never completes.

I've attached our configuration. Please let me know if there is anything
that looks wrong.=20

We,re using:
Tomcat 4.1.27
Java 1.4.2
Redhat 9.0

Also, what kind of settings can I apply to help debug the problem
effectively.

BTW, I've seen similar complaints on this mailing list but no
suggestions :-). Please help!

Regards.


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



RE: Tomcat clustering

2003-09-28 Thread Neil Aggarwal
Bern:

We are using clustering on Tomcat 4.

Actually, at the current time, we are working with Filip Hanik
to track down a performance problem with the clustering code.

Let me know what I can do to help you.

Thanks,
Neil

--
Neil Aggarwal, JAMM Consulting, (972)612-6056, www.JAMMConsulting.com
FREE! Valuable info on how your business can reduce operating costs by 
17% or more in 6 months or less! = http://newsletter.JAMMConsulting.com

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
 Sent: Saturday, September 27, 2003 10:03 AM
 To: Tomcat Users List
 Subject: Tomcat clustering
 
 
 Hi,   has anybody tried clustering Tomcat?  I have read this 
 article 
 http://www.onjava.com/pub/a/onjava/2002/07/17/tomcluster.html 
  but has been able to successfully configure this.
 
 Thanks for any help.
 
 Bern
 


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



Possible to terminate a long request?

2003-09-23 Thread Neil Aggarwal
Hello:

Is there a way to terminate a request that takes more than
a given amount of time?

I know I can use the java.util.Timer class to get called back
at a given point in the future, but how can I terminate the
request and put up an error page to the user?

Any suggestions will be helpful.

Thanks,
Neil


--
Neil Aggarwal, JAMM Consulting, (972)612-6056, www.JAMMConsulting.com
FREE! Valuable info on how your business can reduce operating costs by 
17% or more in 6 months or less! = http://newsletter.JAMMConsulting.com


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



RE: Possible to terminate a long request?

2003-09-23 Thread Neil Aggarwal
Daniel:

I appreciate your suggestion, but that wont terminate the request.
It will just mean the user's session wont be aroung when they
make their next request.

Thanks,
Neil


--
Neil Aggarwal, JAMM Consulting, (972)612-6056, www.JAMMConsulting.com
FREE! Valuable info on how your business can reduce operating costs by 
17% or more in 6 months or less! = http://newsletter.JAMMConsulting.com

 -Original Message-
 From: King,Daniel [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, September 23, 2003 11:27 AM
 To: Tomcat Users List
 Subject: RE: Possible to terminate a long request?
 
 
 What about setting a session timeout value in the 
 application's web.xml (value below is minutes)?
  
 session-config
   session-timeout2/session-timeout
 /session-config
  
 I have not actually used the elements above-- I just looked 
 it up in a book, Tomcat by Brittain and Darwin, published by 
 O'Reilly.  I have used session time-outs a lot in WebLogic.
 
   -Original Message- 
   From: Neil Aggarwal [mailto:[EMAIL PROTECTED] 
   Sent: Tue 9/23/2003 10:20 AM 
   To: 'Tomcat-User' 
   Cc: 
   Subject: Possible to terminate a long request?
   
   
 
   Hello:
   
   Is there a way to terminate a request that takes more than
   a given amount of time?
   
   I know I can use the java.util.Timer class to get called back
   at a given point in the future, but how can I terminate the
   request and put up an error page to the user?
   
   Any suggestions will be helpful.
   
   Thanks,
   Neil
   
   
   --
   Neil Aggarwal, JAMM Consulting, (972)612-6056, 
www.JAMMConsulting.com
FREE! Valuable info on how your business can reduce operating
costs by
17% or more in 6 months or less! =
http://newsletter.JAMMConsulting.com



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






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



RE: Getting Dynamic Container information

2003-09-19 Thread Neil Aggarwal
Yoav:

Thank you for pointing me to it.  I searched the archives
for about half an hour with no success.  I must have been
typing in the wrong keywords.

Thanks,
Neil


--
Neil Aggarwal, JAMM Consulting, (972)612-6056, www.JAMMConsulting.com
FREE! Valuable info on how your business can reduce operating costs by 
17% or more in 6 months or less! = http://newsletter.JAMMConsulting.com

 -Original Message-
 From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
 Sent: Friday, September 19, 2003 8:01 AM
 To: Tomcat Users List
 Subject: RE: Getting Dynamic Container information
 
 
 
 Howdy,
 You must have looked really hard.  Here it is:
 http://marc.theaimsgroup.com/?l=tomcat-userm=105248942130459w=2
 
 Yoav Shapira
 Millennium ChemInformatics
 
 
 -Original Message-
 From: Neil Aggarwal [mailto:[EMAIL PROTECTED]
 Sent: Thursday, September 18, 2003 4:55 PM
 To: 'Tomcat-User'
 Subject: RE: Getting Dynamic Container information
 
 Hello:
 
 Yoav Shapira posted this message:
 
  If you want to do it with tomcat4, search the archives: I answered
 this
  question and gave a code example (getting the Server, then 
 the Hosts,
  etc.), about a month ago.  It should be in the list archives.
 
 I have searched the archives extensively buthave not found that
 message.
 
 Can someone point me to it?
 
 Thanks,
  Neil
 
 
 --
 Neil Aggarwal, JAMM Consulting, (972)612-6056, www.JAMMConsulting.com
 FREE! Valuable info on how your business can reduce 
 operating costs by
 17% or more in 6 months or less! =
 http://newsletter.JAMMConsulting.com
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 This e-mail, including any attachments, is a confidential 
 business communication, and may contain information that is 
 confidential, proprietary and/or privileged.  This e-mail is 
 intended only for the individual(s) to whom it is addressed, 
 and may not be saved, copied, printed, disclosed or used by 
 anyone else.  If you are not the(an) intended recipient, 
 please immediately delete this e-mail from your computer 
 system and notify the sender.  Thank you.
 
 
 -
 To 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: Getting Dynamic Container information

2003-09-18 Thread Neil Aggarwal
Hello:

Yoav Shapira posted this message:

 If you want to do it with tomcat4, search the archives: I answered
this
 question and gave a code example (getting the Server, then the Hosts,
 etc.), about a month ago.  It should be in the list archives.

I have searched the archives extensively buthave not found that message.

Can someone point me to it?

Thanks,
Neil


--
Neil Aggarwal, JAMM Consulting, (972)612-6056, www.JAMMConsulting.com
FREE! Valuable info on how your business can reduce operating costs by 
17% or more in 6 months or less! = http://newsletter.JAMMConsulting.com


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



RE: Tomcat 4.1.27 not reloading classes even after applying hotfix

2003-09-15 Thread Neil Aggarwal
Yoav:

Did you get my answer that my tar is gnu tar?

Has anyone else had a problem with Tomcat 4.1.27 not reloading classes?

Thanks
Neil


 Your tar is GNU tar, right?


 I have a server running tomcat 4.1.27 and it is not reloading
 classes for my webapp even after applying the hotfix.

--
Neil Aggarwal, JAMM Consulting, (972)612-6056, www.JAMMConsulting.com
FREE! Valuable info on how your business can reduce operating costs by 
17% or more in 6 months or less! = http://newsletter.JAMMConsulting.com


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



RE: Tomcat 4.1.27 not reloading classes even after applying hotfix

2003-09-15 Thread Neil Aggarwal
Paul:

When I modify a class and put it in my webapp, I don't
get the changes loaded.

There is also usually a message in the catalina.out stating
that the class was reloaded.

Thanks,
Neil


--
Neil Aggarwal, JAMM Consulting, (972)612-6056, www.JAMMConsulting.com
FREE! Valuable info on how your business can reduce operating costs by 
17% or more in 6 months or less! = http://newsletter.JAMMConsulting.com

 -Original Message-
 From: Paul [mailto:[EMAIL PROTECTED] 
 Sent: Monday, September 15, 2003 12:06 PM
 To: Tomcat Users List
 Subject: Re: Tomcat 4.1.27 not reloading classes even after 
 applying hotfix
 
 
 how would i know if tomcat is not reloading classes?
 
 - Original Message - 
 From: Neil Aggarwal [EMAIL PROTECTED]
 To: 'Tomcat-User' [EMAIL PROTECTED]
 Sent: Monday, September 15, 2003 11:35 AM
 Subject: RE: Tomcat 4.1.27 not reloading classes even after 
 applying hotfix
 
 
  Yoav:
  
  Did you get my answer that my tar is gnu tar?
  
  Has anyone else had a problem with Tomcat 4.1.27 not 
 reloading classes?
  
  Thanks
  Neil
  
  
   Your tar is GNU tar, right?
  
  
   I have a server running tomcat 4.1.27 and it is not reloading
   classes for my webapp even after applying the hotfix.
  
  --
  Neil Aggarwal, JAMM Consulting, (972)612-6056, 
www.JAMMConsulting.com
 FREE! Valuable info on how your business can reduce operating costs by

 17% or more in 6 months or less! =
http://newsletter.JAMMConsulting.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]


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



RE: Tomcat 4.1.27 not reloading classes even after applying hotfix

2003-09-15 Thread Neil Aggarwal
Luke:

That is strange.  Why would you not be able to untar it directly
in the tomcat directory?

Thanks,
Neil


--
Neil Aggarwal, JAMM Consulting, (972)612-6056, www.JAMMConsulting.com
FREE! Valuable info on how your business can reduce operating costs by 
17% or more in 6 months or less! = http://newsletter.JAMMConsulting.com

 -Original Message-
 From: Luke Vanderfluit [mailto:[EMAIL PROTECTED] 
 Sent: Monday, September 15, 2003 2:55 PM
 To: Tomcat Users List
 Cc: [EMAIL PROTECTED]
 Subject: RE: Tomcat 4.1.27 not reloading classes even after 
 applying hotfix
 
 
 Hi Neil,
 
 I installed the same hotfix successfully as follows,
 
 I did  'tar zxvf hotfixFile' in a temporary directory 
 somewhere, then I
 created the directories manually under tomcat (jakarta 4.1.27) 
 namely:
 
 server/classes/org/apache/catalina/core
 
 after that I placed the classfile (StandardContext.class) in 
 the 'core'
 directory.
 
 hope this helps,
 
 Luke
 
 
 On Tue, 2003-09-16 at 03:36, Neil Aggarwal wrote:
  Paul:
  
  When I modify a class and put it in my webapp, I don't
  get the changes loaded.
  
  There is also usually a message in the catalina.out stating
  that the class was reloaded.
  
  Thanks,
  Neil
  
  
  --
  Neil Aggarwal, JAMM Consulting, (972)612-6056, 
 www.JAMMConsulting.com
  FREE! Valuable info on how your business can reduce 
 operating costs by 
  17% or more in 6 months or less! = 
 http://newsletter.JAMMConsulting.com
  
   -Original Message-
   From: Paul [mailto:[EMAIL PROTECTED] 
   Sent: Monday, September 15, 2003 12:06 PM
   To: Tomcat Users List
   Subject: Re: Tomcat 4.1.27 not reloading classes even after 
   applying hotfix
   
   
   how would i know if tomcat is not reloading classes?
   
   - Original Message - 
   From: Neil Aggarwal [EMAIL PROTECTED]
   To: 'Tomcat-User' [EMAIL PROTECTED]
   Sent: Monday, September 15, 2003 11:35 AM
   Subject: RE: Tomcat 4.1.27 not reloading classes even after 
   applying hotfix
   
   
Yoav:

Did you get my answer that my tar is gnu tar?

Has anyone else had a problem with Tomcat 4.1.27 not 
   reloading classes?

Thanks
Neil


 Your tar is GNU tar, right?


 I have a server running tomcat 4.1.27 and it is not reloading
 classes for my webapp even after applying the hotfix.

--
Neil Aggarwal, JAMM Consulting, (972)612-6056, 
  www.JAMMConsulting.com
   FREE! Valuable info on how your business can reduce 
 operating costs by
  
   17% or more in 6 months or less! =
  http://newsletter.JAMMConsulting.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]
  
  
  
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 -- 
 
 when my computer smiles, I'm happy
 ===.~ ~,
 Luke Vanderfluit   |'/']
 Mobile: 0421 276 282\~/`
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


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



Tomcat 4.1.27 not reloading classes even after applying hotfix

2003-09-10 Thread Neil Aggarwal
Hello:

I have a server running tomcat 4.1.27 and it is not reloading
classes for my webapp even after applying the hotfix.

I installed tomcat 4.1.27 by doing these commands:
cd /usr/local
lynx
http://apache.oregonstate.edu/jakarta/tomcat-4/binaries/jakarta-tomcat-4
.1.27.tar.gz
tar zxf jakarta-tomcat-4.1.27.tar.gz

Here is what I did to install the hotfix:
cd /usr/local/jakarta-tomcat-4.1.27/server/classes
jar xvf ../lib/catalina.jar
rm -f ../lib/catalina.jar
cd /usr/local/jakarta-tomcat-4.1.27
lynx
http://www.wmwweb.com/apache/jakarta/tomcat-4/binaries/4.1.27-hotfix-220
96.tar.gz
tar zxf 4.1.27-hotfix-22096.tar.gz

I have my server.xml to reloadable=true for the app's context.

Any ideas?

Thanks,
Neil

--
Neil Aggarwal, JAMM Consulting, (972)612-6056, www.JAMMConsulting.com
FREE! Valuable info on how your business can reduce operating costs by 
17% or more in 6 months or less! = http://newsletter.JAMMConsulting.com


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



RE: Tomcat 4.1.27 not reloading classes even after applying hotfix

2003-09-10 Thread Neil Aggarwal
Yoav:

Yes, my tar is gnu tar.  
I used jar, not tar to extract the catalina jar file.

Is there an issue with that?


--
Neil Aggarwal, JAMM Consulting, (972)612-6056, www.JAMMConsulting.com
FREE! Valuable info on how your business can reduce operating costs by 
17% or more in 6 months or less! = http://newsletter.JAMMConsulting.com

 -Original Message-
 From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, September 10, 2003 1:47 PM
 To: Tomcat Users List
 Subject: RE: Tomcat 4.1.27 not reloading classes even after 
 applying hotfix
 
 
 
 Howdy,
 Your tar is GNU tar, right?
 
 Yoav Shapira
 Millennium ChemInformatics
 
 
 -Original Message-
 From: Neil Aggarwal [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, September 10, 2003 2:41 PM
 To: 'Tomcat-User'
 Subject: Tomcat 4.1.27 not reloading classes even after 
 applying hotfix
 
 Hello:
 
 I have a server running tomcat 4.1.27 and it is not reloading
 classes for my webapp even after applying the hotfix.
 
 I installed tomcat 4.1.27 by doing these commands:
 cd /usr/local
 lynx
 http://apache.oregonstate.edu/jakarta/tomcat-4/binaries/jakar
 ta-tomcat-
 4
 .1.27.tar.gz
 tar zxf jakarta-tomcat-4.1.27.tar.gz
 
 Here is what I did to install the hotfix:
 cd /usr/local/jakarta-tomcat-4.1.27/server/classes
 jar xvf ../lib/catalina.jar
 rm -f ../lib/catalina.jar
 cd /usr/local/jakarta-tomcat-4.1.27
 lynx
 http://www.wmwweb.com/apache/jakarta/tomcat-4/binaries/4.1.27
-hotfix-22
0
96.tar.gz
tar zxf 4.1.27-hotfix-22096.tar.gz

I have my server.xml to reloadable=true for the app's context.

Any ideas?

Thanks,
   Neil

--
Neil Aggarwal, JAMM Consulting, (972)612-6056, www.JAMMConsulting.com
FREE! Valuable info on how your business can reduce operating costs by
17% or more in 6 months or less! =
http://newsletter.JAMMConsulting.com


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




This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential,
proprietary and/or privileged.  This e-mail is intended only for the
individual(s) to whom it is addressed, and may not be saved, copied,
printed, disclosed or used by anyone else.  If you are not the(an)
intended recipient, please immediately delete this e-mail from your
computer system and notify the sender.  Thank you.


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



Request dispatcher fails on encoded url when used in post (Bug?)

2003-08-27 Thread Neil Aggarwal
Hello:

I am getting a failure in my code when using a request dispatcher
to forward the request to an encoded url from a post operation.

To see it in action, do the following:
1. Turn off cookies on your browser
2. Visit http://dev.jammconsulting.com/gen?_template=/index.jsp
3. Hit the Test button.

You will get this error:

HTTP Status 404 - /gen;jsessionid=BF99242CF6F9E32C44D50EACE5576AD5


type Status report
message /gen;jsessionid=BF99242CF6F9E32C44D50EACE5576AD5
description The requested resource
(/gen;jsessionid=BF99242CF6F9E32C44D50EACE5576AD5) is not available.


Apache Tomcat/4.1.27

Now, turn on cookies and try it again.  You will get a page that states:
This is compose.jsp 
Session id is BFBC13C89DD4B3F5A98EF8E53F0D6A45 

I thought that Tomcat is supposed to act the same with cookies on or off

when I use encodeURL on all of my urls.


Here is the code behind this sample:

In httpd.conf, ask apache to map all urls that begin with /gen into
tomcat:
  LocationMatch /gen
JkUriSet worker ajp13:localhost:8009
  /LocationMatch

In tomcat server.xml, I told tomcat that the root context uses
my app:
Context path= docBase=email debug=0/

In my app's web.xml, told it to map all request for /gen to
my test servlet:
?xml version=1.0 encoding=ISO-8859-1?

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

web-app

servlet
servlet-namesls/servlet-name
servlet-class
servlet.TestServlet
/servlet-class
/servlet

servlet-mapping
servlet-namesls/servlet-name
url-pattern/gen/*/url-pattern
/servlet-mapping

session-config
session-timeout50/session-timeout
/session-config

/web-app

Here is my test servlet, which forwards all requests to the appropriate
template:
package servlet;

import java.io.*;
import java.net.*;

import javax.servlet.*;
import javax.servlet.http.*;

public class TestServlet extends HttpServlet {
  private void process(HttpServletRequest request, HttpServletResponse
response)
  throws ServletException, IOException {
 
getServletContext().getRequestDispatcher(request.getParameter(_template
)).forward(request, response);
  }
  
  protected void doGet(HttpServletRequest request, HttpServletResponse
response)
  throws ServletException, IOException {
process(request,response);
  }
  
  protected void doPost(HttpServletRequest request, HttpServletResponse
response)
  throws ServletException, IOException {
process(request,response);
  }
}

Here is the index.jsp template, which posts to the massCompose template:
P
Session id is %= session.getId() %
P

form name=groupList method=post action=%=
response.encodeUrl(/gen) %
  input type=hidden name=_template value=/massCompose.jsp
  input type=submit value=test
/form

Here is the massCompose template which forwards to the compose template:
% 
  RequestDispatcher rdispatch = 
request.getRequestDispatcher(response.encodeURL(/gen?_template=/compose
.jsptype=normal));
  rdispatch.forward(request, response);
%

Here is the compose template which just displays a message:
HTML

  BODY
This is compose.jsp
P
Session id is %= session.getId() %
P
  /BODY

/HTML

Any ideas why this is occurring?

Thanks,
Neil

--
Neil Aggarwal, JAMM Consulting, (972)612-6056, www.JAMMConsulting.com
FREE! Valuable info on how your business can reduce operating costs by 
17% or more in 6 months or less! = http://newsletter.JAMMConsulting.com


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



RE: Request dispatcher fails on encoded url when used in post (Bug?)

2003-08-27 Thread Neil Aggarwal
Filip:

There is no space in the url, it is an underscore.

As far as the last slash, why would it work correctly with cookies
on and not with cookies off?  

It should work the same with and without cookies. If it did not work 
in both cases, that would make sense to me.

Thanks, 
Neil

--
Neil Aggarwal, JAMM Consulting, (972)612-6056, www.JAMMConsulting.com
FREE! Valuable info on how your business can reduce operating costs by 
17% or more in 6 months or less! = http://newsletter.JAMMConsulting.com

 -Original Message-
 From: Filip Hanik [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, August 26, 2003 8:12 PM
 To: Tomcat Users List
 Subject: RE: Request dispatcher fails on encoded url when 
 used in post (Bug?)
 
 
 that is a funky url, it has a space in it, and the last / should be
 encoded
 
 Filip
 
  -Original Message-
  From: Neil Aggarwal [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, August 26, 2003 5:45 PM
  To: 'Tomcat-User'
  Cc: Jeff Patterson
  Subject: Request dispatcher fails on encoded url when used in post
  (Bug?)
 
 
  Hello:
 
  I am getting a failure in my code when using a request dispatcher
  to forward the request to an encoded url from a post operation.
 
  To see it in action, do the following:
  1. Turn off cookies on your browser
  2. Visit http://dev.jammconsulting.com/gen?_template=/index.jsp
  3. Hit the Test button.
 
  You will get this error:
 
  HTTP Status 404 - /gen;jsessionid=BF99242CF6F9E32C44D50EACE5576AD5
  
 --
 --
  
  type Status report
  message /gen;jsessionid=BF99242CF6F9E32C44D50EACE5576AD5
  description The requested resource
  (/gen;jsessionid=BF99242CF6F9E32C44D50EACE5576AD5) is not available.
  
 --
 --
  
  Apache Tomcat/4.1.27
 
  Now, turn on cookies and try it again.  You will get a page 
 that states:
  This is compose.jsp
  Session id is BFBC13C89DD4B3F5A98EF8E53F0D6A45
 
  I thought that Tomcat is supposed to act the same with 
 cookies on or off
 
  when I use encodeURL on all of my urls.
 
 
  Here is the code behind this sample:
 
  In httpd.conf, ask apache to map all urls that begin with /gen into
  tomcat:
LocationMatch /gen
  JkUriSet worker ajp13:localhost:8009
/LocationMatch
 
  In tomcat server.xml, I told tomcat that the root context uses
  my app:
  Context path= docBase=email debug=0/
 
  In my app's web.xml, told it to map all request for /gen to
  my test servlet:
  ?xml version=1.0 encoding=ISO-8859-1?
 
  !DOCTYPE web-app
  PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
  http://java.sun.com/dtd/web-app_2_3.dtd;
 
  web-app
 
  servlet
  servlet-namesls/servlet-name
  servlet-class
  servlet.TestServlet
  /servlet-class
  /servlet
 
  servlet-mapping
  servlet-namesls/servlet-name
  url-pattern/gen/*/url-pattern
  /servlet-mapping
 
  session-config
  session-timeout50/session-timeout
  /session-config
 
  /web-app
 
  Here is my test servlet, which forwards all requests to the 
 appropriate
  template:
  package servlet;
 
  import java.io.*;
  import java.net.*;
 
  import javax.servlet.*;
  import javax.servlet.http.*;
 
  public class TestServlet extends HttpServlet {
private void process(HttpServletRequest request, 
 HttpServletResponse
  response)
throws ServletException, IOException {
 
  
 getServletContext().getRequestDispatcher(request.getParameter(
 _template
  )).forward(request, response);
}
 
protected void doGet(HttpServletRequest request, 
 HttpServletResponse
  response)
throws ServletException, IOException {
  process(request,response);
}
 
protected void doPost(HttpServletRequest request, 
 HttpServletResponse
  response)
throws ServletException, IOException {
  process(request,response);
}
  }
 
  Here is the index.jsp template, which posts to the 
 massCompose template:
  P
  Session id is %= session.getId() %
  P
 
  form name=groupList method=post action=%=
  response.encodeUrl(/gen) %
input type=hidden name=_template value=/massCompose.jsp
input type=submit value=test
  /form
 
  Here is the massCompose template which forwards to the 
 compose template:
  %
RequestDispatcher rdispatch =
  
 request.getRequestDispatcher(response.encodeURL(/gen?_templat
 e=/compose
  .jsptype=normal));
rdispatch.forward(request, response);
  %
 
  Here is the compose template which just displays a message:
  HTML
 
BODY
  This is compose.jsp
  P
  Session id is %= session.getId() %
  P
/BODY
 
  /HTML
 
  Any ideas why this is occurring?
 
  Thanks,
  Neil
 
  --
  Neil Aggarwal, JAMM Consulting, (972)612-6056, 
www.JAMMConsulting.com
 FREE! Valuable info on how your business can reduce operating costs by
 17% or more in 6 months or less! =
http

Is there a call to check if cookies are enabled?

2003-08-27 Thread Neil Aggarwal
Hello:

HttpServletResponse.encodeURL() has to know if cookies are enabled
or not.  Is there an API call to check that?

I looked thru the APIs and found nothing.  Searching the web and
mailing list was also fruitless.

Thanks,
Neil

--
Neil Aggarwal, JAMM Consulting, (972)612-6056, www.JAMMConsulting.com
FREE! Valuable info on how your business can reduce operating costs by 
17% or more in 6 months or less! = http://newsletter.JAMMConsulting.com


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



HttpServletResponse.encodeURL breaks form post

2003-08-26 Thread Neil Aggarwal
Hello:

I am getting this error from Tomcat when I submit a form with cookies
turned off:

HTTP Status 404 - /gen;jsessionid=B5604E6D2313D02F2DFB59E7D1B63324


type Status report
message /gen;jsessionid=B5604E6D2313D02F2DFB59E7D1B63324
description The requested resource
(/gen;jsessionid=B5604E6D2313D02F2DFB59E7D1B63324) is not available.


Apache Tomcat/4.1.24

With cookies turned on, everything works fine.

Here is what is *really* strange:

This is occurring every time in a page that contains this form:
form name=groupList action=%= response.encodeURL(/gen/) %
method=post
But, on another page, this form declaration causes no problems:
form name=signin method=post action=%=
response.encodeURL(/gen) %

I tried to replicate the problem on a test machine and it did not 
have the same problem.

I can repeat it as many times as I would like on the groupList form, but
it does not occur anywhere else.

Has anyone see this?

Thanks, 
Neil

--
Neil Aggarwal, JAMM Consulting, (972)612-6056, www.JAMMConsulting.com
FREE! Valuable info on how your business can reduce operating costs by 
17% or more in 6 months or less! = http://newsletter.JAMMConsulting.com


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



Sessions dropped under load?

2003-08-21 Thread Neil Aggarwal
Hello:

We are using Tomcat 4.1.24 with the session replication
code form Filip Hanik. We have been using it for a while 
and it has been working fine.

We have experienced some heavy loads recently and notice
that many of our sessions are being dropped. 

Is it possible that Tomcat is throwing away sessions
due to load?

Is there a way to profile/control this behavior?

Thanks,
Neil

--
Neil Aggarwal, JAMM Consulting, (972)612-6056, www.JAMMConsulting.com
FREE! Valuable info on how your business can reduce operating costs by 
17% or more in 6 months or less! = http://newsletter.JAMMConsulting.com


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



Does Tomcat trim sessions when it runs out of memory?

2003-08-21 Thread Neil Aggarwal
Hello:

I have a question:

Does Tomcat get rid of sessions when it run out of memory?

We are seeing sessions disappear on our app and are trying
to find an explanation for it?

What does Tomcat do when it begins to run out of memory?

Thanks,
Neil

--
Neil Aggarwal, JAMM Consulting, (972)612-6056, www.JAMMConsulting.com
FREE! Valuable info on how your business can reduce operating costs by 
17% or more in 6 months or less! = http://newsletter.JAMMConsulting.com


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



Error compiling jk2 on tomcat 4.1.27

2003-08-02 Thread Neil Aggarwal
Hello:

When I try to compile the jk2 connector for tomcat 4.1.27, I
get this error:
   [so] cc -c
-I/usr/local/jakarta-tomcat-connectors-4.1.27-src/jk/native/common
-I/usr/local/apache/include -I/usr/java/j2sdk1.4.2/jre/../include -g -W
-D_REENTRANT -DCHUNK_SIZE=4096 -DREUSE_WORKER -DUSE_APACHE_MD5
/usr/local/jakarta-tomcat-connectors-4.1.27-src/jk/native/common/jk_uri_
worker_map.c  -fPIC -DPIC -o
/usr/local/jakarta-tomcat-connectors-4.1.27-src/jk/build/jk/apache2/comm
on/.libs/jk_uri_worker_map.lo
   [so] StdErr:
   [so]
/usr/local/jakarta-tomcat-connectors-4.1.27-src/jk/native/common/jk_uri_
worker_map.c: In function `map_uri_to_worker':
   [so]
/usr/local/jakarta-tomcat-connectors-4.1.27-src/jk/native/common/jk_uri_
worker_map.c:493: parse error before `char'
   [so]
/usr/local/jakarta-tomcat-connectors-4.1.27-src/jk/native/common/jk_uri_
worker_map.c:495: `url_rewrite' undeclared (first use in this function)
   [so]
/usr/local/jakarta-tomcat-connectors-4.1.27-src/jk/native/common/jk_uri_
worker_map.c:495: (Each undeclared identifier is reported only once
   [so]
/usr/local/jakarta-tomcat-connectors-4.1.27-src/jk/native/common/jk_uri_
worker_map.c:495: for each function it appears in.)
   [so]
/usr/local/jakarta-tomcat-connectors-4.1.27-src/jk/native/common/jk_uri_
worker_map.c:595: warning: comparison between signed and unsigned

BUILD FAILED

Here is what I did (I have apache 2.0.47, ant 1.5.3 and jdk 1.4.2
installed):

Grabbed
http://apache.secsup.org/dist/jakarta/tomcat-4/source/jakarta-tomcat-con
nectors-4.1.27-src.tar.gz
tar zxf jakarta-tomcat-connectors-4.1.27-src.tar.gz 
cd /usr/local/jakarta-tomcat-connectors-4.1.27-src/jk
cp build.properties.sample build.properties
vi build.properties and set these directives:
tomcat41.home=/usr/local/jakarta-tomcat-4.1.27
apache2.home=/usr/local/apache
ln -s /usr/java/j2sdk1.4.2/include/linux/jni_md.h
/usr/java/j2sdk1.4.2/include/jni_md.h
ln -s /usr/local/apache/lib/libapr-0.so /usr/local/apache/lib/libapr.so
ant native

Any ideas?

Thanks,
Neil

--
Neil Aggarwal, JAMM Consulting, (972)612-6056, www.JAMMConsulting.com
FREE! Valuable info on how your business can reduce operating costs by 
17% or more in 6 months or less! = http://newsletter.JAMMConsulting.com


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



jk2 - apache error log contains mod_jk child workerEnv in error state 1

2003-06-03 Thread Neil Aggarwal
Hello:

I am using mod_jk2 to integrate apache 2.0.45 and tomcat 4.1.24.

I am seeing this message many times in the apache error log:
[Mon Jun 02 13:49:07 2003] [error] mod_jk child workerEnv in error state 1

I search the list archives, but did not come up with any hits.

My apps seem to be working ok.

Does anyone know what this is and what causes it?

Thanks,
Neil

--
Neil Aggarwal
JAMM Consulting, Inc.(972) 612-6056, http://www.JAMMConsulting.com
Custom Internet DevelopmentWebsites, Ecommerce, Java, databases


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



RE: JK2 apache2 log errors

2003-06-01 Thread Neil Aggarwal
Hello:

How do I enable the jkstatus page?  I have not seen any docs on it.

Thanks,
Neil

--
Neil Aggarwal
JAMM Consulting, Inc.(972) 612-6056, http://www.JAMMConsulting.com
Custom Internet DevelopmentWebsites, Ecommerce, Java, databases


-Original Message-
From: Allen Williams [mailto:[EMAIL PROTECTED]
Sent: Saturday, May 31, 2003 10:01 AM
To: Tomcat Users List
Subject: RE: JK2 apache2 log errors


In the process of digging through the mod_jk2 source code to solve my own
problem (which still hasn't happened), I came across extensive references to
the scoreboard.  It is a place in a workerEnv data structure that holds
the process ID of a child process.  I'm not sure about who spawns what
where, but at least it appears Apache spawns off the jk2 stuff, which then
goes off and spawns worker threads.  It appears the scoreboard is a place
in the worker environment to keep track of some of the housekeeping that
goes on with these threads.

I've only looked at it for about an hour, so this could be all wrong, but
that's what it looks like.

TIA,
--
Allen



 -Original Message-
 From: Chong Yu Meng [mailto:[EMAIL PROTECTED]
 Sent: Saturday, May 31, 2003 1:09 AM
 To: Tomcat Users List
 Subject: Re: JK2 apache2 log errors


 Geralyn M Hollerman wrote:

 Michael Cardon wrote:
 
 
 What does it mean when it says, Can't find child 2954 in
 scoreboard?  Is
 the 'scoreboard' have something to do with the shm.file?
 
 
 
 As far as I know, no, the two aren't related. My sysadmin had commented
 the stuff about a Scoreboard directive in httpd.conf out, and I'm not
 sure if I understand what it's intended to be used for. Perhaps there is
 someone out there more familiar with it?
 
 Sorry!
 
 
 

 Scoreboard refers to the jkstatus context which, if you are using the
 default worker2.properties that came with the rpm package for mod_jk2,
 you will see a section on. If you have jkstatus enabled, you will be
 able to see the status of your mod_jk2 connector by going to the URL :
 http://domain.com/jkstatus

 Regards,
 pascal chong



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


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


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



RE: JK2 apache2 log errors

2003-06-01 Thread Neil Aggarwal
Raynir:

That worked!

Thanks,
Neil

--
Neil Aggarwal
JAMM Consulting, Inc.(972) 612-6056, http://www.JAMMConsulting.com
Custom Internet DevelopmentWebsites, Ecommerce, Java, databases


-Original Message-
From: Reynir Hübner [mailto:[EMAIL PROTECTED]
Sent: Saturday, May 31, 2003 10:57 AM
To: Tomcat Users List
Subject: RE: JK2 apache2 log errors


I think it's enough to add the following :
- start here ---
[status:]
info=Status worker, displays runtime informations


[uri:/jkstatus/*]
info=Display status information and checks the config file for changes.
group=status:
- end here ---

To your workers2.properties.

Hope it helps
-reynir



 -Original Message-
 From: Neil Aggarwal [mailto:[EMAIL PROTECTED]
 Sent: 31. maí 2003 15:55
 To: Tomcat Users List
 Subject: RE: JK2 apache2 log errors


 Hello:

 How do I enable the jkstatus page?  I have not seen any docs on it.

 Thanks,
   Neil

 --
 Neil Aggarwal
 JAMM Consulting, Inc.(972) 612-6056, http://www.JAMMConsulting.com
 Custom Internet DevelopmentWebsites, Ecommerce, Java, databases


 -Original Message-
 From: Allen Williams [mailto:[EMAIL PROTECTED]
 Sent: Saturday, May 31, 2003 10:01 AM
 To: Tomcat Users List
 Subject: RE: JK2 apache2 log errors


 In the process of digging through the mod_jk2 source code to
 solve my own problem (which still hasn't happened), I came
 across extensive references to the scoreboard.  It is a
 place in a workerEnv data structure that holds the process ID
 of a child process.  I'm not sure about who spawns what
 where, but at least it appears Apache spawns off the jk2
 stuff, which then goes off and spawns worker threads.  It
 appears the scoreboard is a place in the worker environment
 to keep track of some of the housekeeping that goes on with
 these threads.

 I've only looked at it for about an hour, so this could be
 all wrong, but that's what it looks like.

 TIA,
 --
 Allen



  -Original Message-
  From: Chong Yu Meng [mailto:[EMAIL PROTECTED]
  Sent: Saturday, May 31, 2003 1:09 AM
  To: Tomcat Users List
  Subject: Re: JK2 apache2 log errors
 
 
  Geralyn M Hollerman wrote:
 
  Michael Cardon wrote:
  
  
  What does it mean when it says, Can't find child 2954 in
  scoreboard?  Is
  the 'scoreboard' have something to do with the shm.file?
  
  
  
  As far as I know, no, the two aren't related. My sysadmin had
  commented the stuff about a Scoreboard directive in
 httpd.conf out,
  and I'm not sure if I understand what it's intended to be
 used for.
  Perhaps there is someone out there more familiar with it?
  
  Sorry!
  
  
  
 
  Scoreboard refers to the jkstatus context which, if you are using
  the default worker2.properties that came with the rpm package for
  mod_jk2, you will see a section on. If you have jkstatus enabled,
  you will be able to see the status of your mod_jk2
 connector by going
  to the URL : http://domain.com/jkstatus
 
  Regards,
  pascal chong
 
 
 
 
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]


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


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



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


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



Ho to interpret jkstatus page?

2003-06-01 Thread Neil Aggarwal
Hello:

With some help from people on this list, I was able to get
the jkstatus page working for the jk2 connector.

Unfortunately, it contains a lot of information that I am 
not sure how to interpret.

Are the any docs detailing the contents of the page?

Thanks,
Neil

--
Neil Aggarwal
JAMM Consulting, Inc.(972) 612-6056, http://www.JAMMConsulting.com
Custom Internet DevelopmentWebsites, Ecommerce, Java, databases

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



RE: Apache 2.0.43 and SSL

2002-11-02 Thread Neil Aggarwal
Lars:

Here is what I did:
cd /usr/local
rpm -e apache httpd mod_ssl mod_perl mod_dav redhat-config-httpd
rm -rf /var/www/html /var/www /var/log/httpd /etc/httpd/conf
lynx http://www.apache.org/dist/httpd/httpd-2.0.43.tar.gz
tar zxf httpd-2.0.43.tar.gz

cd httpd-2.0.43
./configure --prefix=/usr/local/apache --enable-ssl --enable-so
make
make install

cd /usr/local/apache/conf
lynx http://www.openssl.org/contrib/ssl.ca-0.1.tar.gz

tar zxf ssl.ca-0.1.tar.gz
cd ssl.ca-0.1

***  Note:  You cannot make changes to the entries on any of
the lines below.  This will cause the certificate to fail 

./new-root-ca.sh
Answer the following questions:
Enter PEM pass phrase: [Enter a password]
Verifying password - Enter PEM pass phrase: [Re-enter the password]
Enter PEM pass phrase: [Enter the password from above]
Country Name (2 letter code) [MY]:US
State or Province Name (full name) [Perak]:Texas
Locality Name (eg, city) [Sitiawan]:Plano
Organization Name (eg, company) [My Directory Sdn Bhd]:JAMM Consulting Inc
Organizational Unit Name (eg, section) [Certification Services Division]:Web
Services
Common Name (eg, MD Root CA) []:JAMM Root CA
Email Address []:[EMAIL PROTECTED]

./new-server-cert.sh server
Answer the following questions:
Country Name (2 letter code) [MY]:US
State or Province Name (full name) [Perak]:Texas
Locality Name (eg, city) [Sitiawan]:Plano
Organization Name (eg, company) [My Directory Sdn Bhd]:JAMM Consulting Inc
Organizational Unit Name (eg, section) [Secure Web Server]:Web Services
Common Name (eg, www.domain.com) []:[machine name].JAMMConsulting.com
Email Address []:[EMAIL PROTECTED]

./sign-server-cert.sh server
Answer the following questions:
Enter PEM pass phrase: [Enter the password from above]
Sign the certificate? [y/n]:y
1 out of 1 certificate requests certified, commit? [y/n]y

  If you get an error here, you will have to start over.
Do the following commands and go back to the line
where you untarred the ssl.ca archive:
cd ..
rm -rf ssl.ca-0.1


chmod 400 server.key
cd ..
mkdir ssl.key
mv ssl.ca-0.1/server.key ssl.key
mkdir ssl.crt
mv ssl.ca-0.1/server.crt ssl.crt

Then, try starting apache with this command:
/usr/local/apache/bin/apachectl startssl


I hope this helps.

Neil.

--
Neil Aggarwal
JAMM Consulting, Inc.(972) 612-6056, http://www.JAMMConsulting.com
Custom Internet DevelopmentWebsites, Ecommerce, Java, databases


 -Original Message-
 From: Lars Nielsen Lind [mailto:moonie;worldonline.dk]
 Sent: Saturday, November 02, 2002 12:51 PM
 To: [EMAIL PROTECTED]
 Subject: Apache 2.0.43 and SSL


 Hi.

 I am trying to compile Apache 2.0.43 with SSL. I have already installed
 OpenSSL 0.9.6g. I use the following commands:

 1.) ./configure --prefix=/usr/local/apache-2.0.43 --enable-ssl
 --with-ssl=/usr/local/openssl-0.9.6g --enable-mods-shared=all
 --with-mpm=worker

 2.) make

 3.) make certificate

 result ???:

 make: *** No rule to make target 'certificate'. Stop.


 4.) make install


 Now I try to start Apache 2.0.43 (SSL) with this command:

 5.) /usr/local/apache-2.0.43/bin/apachectl startssl

 And gets this message:

 Syntax error on line 247 of /usr/local/apache-2.0.43/conf/httpd.conf:
 Cannot load /usr/local/apache-2.0.43/modules/mod_ssl.so into server:
 /usr/local/apache-2.0.43/modules/mod_ssl.so: undefined symbol: X509_free

 Anyone that have a solution to the problem?



 Lars Nielsen Lind


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




Has anyone gotten Castor to work using JNDI?

2002-11-01 Thread Neil Aggarwal
Hello:

Has anyone gotten Castor to work using JNDI and
the JBCP pooling mechanism?

My platform is Tomcat 4.0.6, Apache 2.0.43, and
MySQL 3.23.53a on RedHat Linux 8.0.

When I try to load the JDO object from the JNDI context,
here is the error I get:

javax.naming.NamingException: Cannot create resource instance
at
org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory.
java:167)
at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:311)
at org.apache.naming.NamingContext.lookup(NamingContext.java:834)
at org.apache.naming.NamingContext.lookup(NamingContext.java:181)
at org.apache.naming.NamingContext.lookup(NamingContext.java:822)
at org.apache.naming.NamingContext.lookup(NamingContext.java:181)
at org.apache.naming.NamingContext.lookup(NamingContext.java:822)
at org.apache.naming.NamingContext.lookup(NamingContext.java:181)
at org.apache.naming.NamingContext.lookup(NamingContext.java:822)
at org.apache.naming.NamingContext.lookup(NamingContext.java:194)
at org.apache.naming.SelectorContext.lookup(SelectorContext.java:183)
at javax.naming.InitialContext.lookup(InitialContext.java:354)
at top.Utils.getJDO(Utils.java:31)

Here is the code that I am using to get the JDO instance:
package top;
// imports
public class Utils {
  public static synchronized JDO getJDO() throws NamingException,
SQLException, MappingException {
ClassLoader loader = Utils.class.getClassLoader();
URL url = loader.getResource(database.xml);
JDO.loadConfiguration(url.toString());
InitialContext ctx = new InitialContext();
return (JDO) ctx.lookup( java:comp/env/jdo/videoSearchPPV );
  }
}

Here is my web.xml:
?xml version=1.0 encoding=ISO-8859-1?
!DOCTYPE web-app
PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
http://java.sun.com/dtd/web-app_2_3.dtd;
web-app
  resource-ref
descriptionResource reference to DataSource/description
res-ref-namejdbc/videoSearchPPV/res-ref-name
res-typejavax.sql.DataSource/res-type
res-authContainer/res-auth
  /resource-ref
  resource-ref
descriptionResource reference to JDO/description
res-ref-namejdo/videoSearchPPV/res-ref-name
res-typeorg.exolab.castor.jdo.JDO/res-type
res-authContainer/res-auth
  /resource-ref
/web-app

Here is my database.xml:
?xml version=1.0 encoding=UTF-8?
!DOCTYPE databases PUBLIC -//EXOLAB/Castor JDO Configuration DTD Version
1.0//EN http://castor.exolab.org/jdo-conf.dtd;
database name=videoSearchPPV engine=mysql
  jndi name=java:comp/env/jdbc/videoSearchPPV /
  mapping href=mapping.xml/
/database

Here is what I put in tomcat's server.xml:
  Service name=Tomcat-Apache
Connector ...
Engine ...
  DefaultContext reloadable=true 
Resource auth=Container name=jdo/videoSearchPPV
scope=Shareable type=org.exolab.castor.jdo.JDO/
Resource auth=Container name=jdbc/videoSearchPPV
scope=Shareable type=javax.sql.DataSource/
ResourceParams name=jdbc/videoSearchPPV
  parameter
namefactory/name
valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
  /parameter
  parameter
nameurl/name
valuejdbc:mysql://localhost:3306/videoSearchPPV/value
  /parameter
  parameter
namepassword/name
value[The password to my database]/value
  /parameter
  parameter
namemaxWait/name
value100/value
  /parameter
  parameter
namemaxActive/name
value100/value
  /parameter
  parameter
namedriverClassName/name
valuecom.mysql.jdbc.Driver/value
  /parameter
  parameter
nameusername/name
valuevideoSearchPPV/value
  /parameter
  parameter
namemaxIdle/name
value3/value
  /parameter
/ResourceParams
  /DefaultContext

Any ideas?

Thanks,
Neil.

--
Neil Aggarwal
JAMM Consulting, Inc.(972) 612-6056, http://www.JAMMConsulting.com
Custom Internet DevelopmentWebsites, Ecommerce, Java, databases


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




Doc for tomcat4 and IIS?

2002-07-12 Thread Neil Aggarwal

Hello:

Looking thru the online docs for tomcat, I see a doc describing
how to set-up tomcat 3 and IIS, but no such doc for tomcat 4.

Does one exist yet?

Thanks,
Neil.

--
Neil Aggarwal
JAMM Consulting, Inc.(972) 612-6056, http://www.JAMMConsulting.com
Custom Internet DevelopmentWebsites, Ecommerce, Java, databases


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




RE: Session Tacking across hostnames?

2002-04-15 Thread Neil Aggarwal

Joel:

In that case, I would argue that the design is mismatched to
the actual usage of web applications.

Thanks,
Neil.

--
Neil Aggarwal
JAMM Consulting, Inc.(972) 612-6056, http://www.JAMMConsulting.com
Custom Internet DevelopmentWebsites, Ecommerce, Java, databases


 -Original Message-
 From: Joel Rees [mailto:[EMAIL PROTECTED]]
 Sent: Sunday, April 14, 2002 10:35 PM
 To: Tomcat Users List
 Cc: [EMAIL PROTECTED]
 Subject: Re: Session Tacking across hostnames?
 
 
 Neil Aggarwal wrote:
 
  For an application we are building, we are using a shared SSL 
 certificate
  so the hostname has to be different for http and https.  For example,
  public pages are loaded from 
 http://www.futurescope.com/fscope/myPage.jsp
  and private pages are loaded from
  http://www.JAMMConsulting.com/fscope/privatePage.jsp
 
  Unforutnately, when we switch from http to https or vice versa, we lose
  track of the session.  Is there a way to keep the session is this
  instance?
 
 I think that's by design. See the mailing list archives for some 
 discussion
 of why.
 
 Joel Rees
 Alps Giken Kansai Systems Develoment
 Suita, Osaka
 
 
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Session Tacking across hostnames?

2002-04-15 Thread Neil Aggarwal

Jan:

I am using repsonse.encodeURL, but it does not add the session id
when the hostname is different.

Thanks,
Neil.

--
Neil Aggarwal
JAMM Consulting, Inc.(972) 612-6056, http://www.JAMMConsulting.com
Custom Internet DevelopmentWebsites, Ecommerce, Java, databases


 -Original Message-
 From: Pekník Jan [mailto:[EMAIL PROTECTED]]
 Sent: Monday, April 15, 2002 8:53 AM
 To: 'Tomcat Users List'
 Subject: RE: Session Tacking across hostnames?


 I think this would help :

 when you switch from HTTP to HTTPS, add JSESSIONID to that url by calling
 response.encodeURL(url)

   -Jan

 -Original Message-
 From: Neil Aggarwal [mailto:[EMAIL PROTECTED]]
 Sent: Sunday, April 14, 2002 6:49 AM
 To: Tomcat-User
 Subject: Session Tacking across hostnames?


 Hello:

 I am using Apache 1.3 and Tomcat 4.0.3.

 For an application we are building, we are using a shared SSL certificate
 so the hostname has to be different for http and https.  For example,
 public pages are loaded from http://www.futurescope.com/fscope/myPage.jsp
 and private pages are loaded from
 http://www.JAMMConsulting.com/fscope/privatePage.jsp

 Unforutnately, when we switch from http to https or vice versa, we lose
 track of the session.  Is there a way to keep the session is this
 instance?

 Thanks,
   Neil.

 --
 Neil Aggarwal
 JAMM Consulting, Inc.(972) 612-6056, http://www.JAMMConsulting.com
 Custom Internet DevelopmentWebsites, Ecommerce, Java, databases





 ---
 Odchozí zpráva neobsahuje viry.
 Zkontrolováno antivirovým systémem AVG (http://www.grisoft.cz).
 Verze: 6.0.346 / Virová báze: 194 - datum vydání: 10.4. 2002


 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Session Tacking across hostnames?

2002-04-15 Thread Neil Aggarwal

David:

I tried that too.  It did not work.  I still get a new session.

Thanks,
Neil.

--
Neil Aggarwal
JAMM Consulting, Inc.(972) 612-6056, http://www.JAMMConsulting.com
Custom Internet DevelopmentWebsites, Ecommerce, Java, databases


 -Original Message-
 From: David Cassidy [mailto:[EMAIL PROTECTED]]
 Sent: Monday, April 15, 2002 10:10 AM
 To: Tomcat Users List
 Subject: Re: Session Tacking across hostnames?


 How about this ...

 don't use encodeIURL just emulate it ...

 ie do the ;jsessionid= sessionID
 yourself .

 David


 Neil Aggarwal wrote:

 Jan:
 
 I am using repsonse.encodeURL, but it does not add the session id
 when the hostname is different.
 
 Thanks,
  Neil.
 
 --
 Neil Aggarwal
 JAMM Consulting, Inc.(972) 612-6056, http://www.JAMMConsulting.com
 Custom Internet DevelopmentWebsites, Ecommerce, Java, databases
 
 
 -Original Message-
 From: Pekník Jan [mailto:[EMAIL PROTECTED]]
 Sent: Monday, April 15, 2002 8:53 AM
 To: 'Tomcat Users List'
 Subject: RE: Session Tacking across hostnames?
 
 
 I think this would help :
 
 when you switch from HTTP to HTTPS, add JSESSIONID to that url
 by calling
 response.encodeURL(url)
 
 -Jan
 
 -Original Message-
 From: Neil Aggarwal [mailto:[EMAIL PROTECTED]]
 Sent: Sunday, April 14, 2002 6:49 AM
 To: Tomcat-User
 Subject: Session Tacking across hostnames?
 
 
 Hello:
 
 I am using Apache 1.3 and Tomcat 4.0.3.
 
 For an application we are building, we are using a shared SSL
 certificate
 so the hostname has to be different for http and https.  For example,
 public pages are loaded from
 http://www.futurescope.com/fscope/myPage.jsp
 and private pages are loaded from
 http://www.JAMMConsulting.com/fscope/privatePage.jsp
 
 Unforutnately, when we switch from http to https or vice versa, we lose
 track of the session.  Is there a way to keep the session is this
 instance?
 
 Thanks,
 Neil.
 
 --
 Neil Aggarwal
 JAMM Consulting, Inc.(972) 612-6056, http://www.JAMMConsulting.com
 Custom Internet DevelopmentWebsites, Ecommerce, Java, databases
 
 
 
 
 
 ---
 Odchozí zpráva neobsahuje viry.
 Zkontrolováno antivirovým systémem AVG (http://www.grisoft.cz).
 Verze: 6.0.346 / Virová báze: 194 - datum vydání: 10.4. 2002
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 



 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Session Tacking across hostnames?

2002-04-13 Thread Neil Aggarwal

Hello:

I am using Apache 1.3 and Tomcat 4.0.3.

For an application we are building, we are using a shared SSL certificate
so the hostname has to be different for http and https.  For example,
public pages are loaded from http://www.futurescope.com/fscope/myPage.jsp
and private pages are loaded from
http://www.JAMMConsulting.com/fscope/privatePage.jsp

Unforutnately, when we switch from http to https or vice versa, we lose
track of the session.  Is there a way to keep the session is this
instance?

Thanks,
Neil.

--
Neil Aggarwal
JAMM Consulting, Inc.(972) 612-6056, http://www.JAMMConsulting.com
Custom Internet DevelopmentWebsites, Ecommerce, Java, databases


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Session Tacking across hostnames?

2002-04-13 Thread Neil Aggarwal

Adi:

I tried this, but the problem is that the session id is not encoded
into URLs that are not on the same hostname.

Neil.

--
Neil Aggarwal
JAMM Consulting, Inc.(972) 612-6056, http://www.JAMMConsulting.com
Custom Internet DevelopmentWebsites, Ecommerce, Java, databases


 -Original Message-
 From: Aditya [mailto:[EMAIL PROTECTED]]
 Sent: Saturday, April 13, 2002 11:46 PM
 To: Tomcat Users List
 Subject: Re: Session Tacking across hostnames?


 Hi Neil,

 cookies are bound to the server name, so you can't use cookies
 (the default
 method with Tomcat) to track sessions. If you are not doing
 form-based realm
 authentication, you can use URL rewriting to track the session by setting:

 cookies=false

 for the contexts you are serving (you could also do it for the default
 context).

 I think this is what you are asking.

 Thanks,
 Adi

 On Sat, Apr 13, 2002 at 11:48:40PM -0500, Neil Aggarwal wrote:
  Hello:
 
  I am using Apache 1.3 and Tomcat 4.0.3.
 
  For an application we are building, we are using a shared SSL
 certificate
  so the hostname has to be different for http and https.  For example,
  public pages are loaded from
http://www.futurescope.com/fscope/myPage.jsp
 and private pages are loaded from
 http://www.JAMMConsulting.com/fscope/privatePage.jsp

 Unforutnately, when we switch from http to https or vice versa, we lose
 track of the session.  Is there a way to keep the session is this
 instance?

 Thanks,
   Neil.

 --
 Neil Aggarwal
 JAMM Consulting, Inc.(972) 612-6056, http://www.JAMMConsulting.com
 Custom Internet DevelopmentWebsites, Ecommerce, Java, databases


 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




reloadable=true not working in 4.0.3?

2002-03-13 Thread Neil Aggarwal

Hello:

Is reloadable=true working in 4.0.3?  
Tomcat does not seem to be reloading my classes when I upload a newer
version to the server.

Here is what I put in my /usr/local/jakarta-tomcat-4.0.3/conf/server.xml
file:
!-- BurnRateDiet Context --
Context path=/burnratediet docBase=burnratediet
debug=0 reloadable=true /
I put this in the Host directive for the local host.

I am using Apache 1.3.23 and mod_webapp.

Also, since this is a development server, I wanted to
have all of my contexts reload classes by default.  

Is there a default setting for the reloading of classes?

Thanks,
Neil.

--
Neil Aggarwal
JAMM Consulting, Inc.(972) 612-6056, http://www.JAMMConsulting.com
Custom Internet DevelopmentWebsites, Ecommerce, Java, databases


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: reloadable=true not working in 4.0.3?

2002-03-13 Thread Neil Aggarwal

Jean-Luc:

That worked.  Thanks!

Neil.

--
Neil Aggarwal
JAMM Consulting, Inc.(972) 612-6056, http://www.JAMMConsulting.com
Custom Internet DevelopmentWebsites, Ecommerce, Java, databases


 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Jean-Luc BEAUDET
 Sent: Wednesday, March 13, 2002 10:54 AM
 To: Tomcat Users List
 Subject: Re: reloadable=true not working in 4.0.3?


 Neil Aggarwal a écrit :

  Hello:
 
  Is reloadable=true working in 4.0.3?
  Tomcat does not seem to be reloading my classes when I upload a newer
  version to the server.
 
  Here is what I put in my /usr/local/jakarta-tomcat-4.0.3/conf/server.xml
  file:
  !-- BurnRateDiet Context --
  Context path=/burnratediet docBase=burnratediet
  debug=0 reloadable=true /
  I put this in the Host directive for the local host.
 
  I am using Apache 1.3.23 and mod_webapp.
 
  Also, since this is a development server, I wanted to
  have all of my contexts reload classes by default.
 
  Is there a default setting for the reloading of classes?
 
  Thanks,
  Neil.
 
  --
  Neil Aggarwal
  JAMM Consulting, Inc.(972) 612-6056, http://www.JAMMConsulting.com
  Custom Internet DevelopmentWebsites, Ecommerce, Java, databases
 
  --
  To unsubscribe:   mailto:[EMAIL PROTECTED]
  For additional commands: mailto:[EMAIL PROTECTED]
  Troubles with the list: mailto:[EMAIL PROTECTED]

 It had been such a mess all around it !

 I give yu my code:

 !-- Define an Apache-Connector Service --
   Service name=Tomcat-Apache

 Connector
 className=org.apache.catalina.connector.warp.WarpConnector

port=8025 minProcessors=5 maxProcessors=75
enableLookups=true appBase=webapps
acceptCount=10 debug=0/

 !-- Replace localhost with what your Apache ServerName is set to
 --
 Engine className=org.apache.catalina.connector.warp.WarpEngine
 name=Apache appBase=webapps defaulthost=MyServer.com 

 DefaultContext reloadable=true/

Valve className=org.apache.catalina.valves.AccessLogValve
directory=Logs prefix=local_access_log. suffix=.txt
pattern=common /

 !-- Global logger unless overridden at lower levels --
 Logger className=org.apache.catalina.logger.FileLogger
 prefix=apache_log. suffix=.txt
 timestamp=true/

 !-- Because this Realm is here, an instance will be shared globally
 --
 Realm className=org.apache.catalina.realm.MemoryRealm /

 Host name=MyServer.com debug=10 appBase=webapps
 unpackWARs=true 

  !-- Tomcat Manager Context --
  Context path=/manager docBase=manager privileged=true/

 /Host

 /Engine

   /Service


 The best way is via the manager facilities.
 To do so yu DO have to declare the Host, like in the code below,
 so that it
 is available thru the warp connector via:

 WebAppDeploy manager conn /manager/

 Hope this help.

 Jean-Luc B :O)




 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: How to get webapp name

2001-12-17 Thread Neil Aggarwal

Micael:

I am looking for the name of the web application.

For example, if I look at http://dev.leads-unlimited.com/leads/index.jsp

The webapp name is leads.

It is the same name as the directory that contains the
JSP files.

Thanks,
Neil.

--
Neil Aggarwal
JAMM Consulting, Inc.(972) 612-6056, http://www.JAMMConsulting.com
Custom Internet DevelopmentWebsites, Ecommerce, Java, databases

 -Original Message-
 From: Micael Padraig Og mac Grene [mailto:[EMAIL PROTECTED]]
 Sent: Sunday, December 16, 2001 4:04 PM
 To: Tomcat Users List
 Subject: Re: How to get webapp name
 
 
 At 02:29 PM 12/16/01 -0600, you wrote:
 Hello:
 
 Is there a way to get the webapp name in a JSP page?
 
 Thanks,
  Neil.
 
 
 Hi, Neil,
 
 Cannot tell what ou want here.  Try stating it differently.  What do you 
 mean by webapp?
 
 -- micael
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




How to get webapp name

2001-12-16 Thread Neil Aggarwal

Hello:

Is there a way to get the webapp name in a JSP page?

Thanks,
Neil.

--
Neil Aggarwal
JAMM Consulting, Inc.(972) 612-6056, http://www.JAMMConsulting.com
Custom Internet DevelopmentWebsites, Ecommerce, Java, databases

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Session tracking across virtual hosts?

2001-12-09 Thread Neil Aggarwal

Craig:

Does the alias directive work in tomcat 3.2.3?

Here is what I put in my server.xml file:
Host name=dev.jammconsulting.com
  Aliasdev.leads-unlimited.com/Alias
  Context path=/sessionTest docBase=webapps2/sessionTest /
/Host

You can try it by visiting
http://dev.JAMMConsulting.com/sessionTest/index.jsp

But, when I try visiting
http://dev.leads-unlimited.com/sessionTest/index.jsp
I get an error.

Thanks,
Neil.

--
Neil Aggarwal
JAMM Consulting, Inc.(972) 612-6056, http://www.JAMMConsulting.com
Custom Internet DevelopmentWebsites, Ecommerce, Java, databases

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Craig R. McClanahan
 Sent: Friday, December 07, 2001 10:38 PM
 To: Tomcat Users List
 Subject: RE: Session tracking across virtual hosts?




 On Fri, 7 Dec 2001, Neil Aggarwal wrote:

  Date: Fri, 7 Dec 2001 21:14:47 -0600
  From: Neil Aggarwal [EMAIL PROTECTED]
  Reply-To: Tomcat Users List [EMAIL PROTECTED]
  To: Tomcat Users List [EMAIL PROTECTED]
  Subject: RE: Session tracking across virtual hosts?
 
  Craig:
 
  It is the same webapp, not two different ones.  We just
  need to access it in two different ways, depending
  on if we are using http or https.
 
  There has to be a way to do this since it is the SAME
  application.
 

 Try the Alias element inside a Host element.  That declares the second
 host name to be an alias of the real one, and shares the same pool of
 webapps underneath.


  Thanks,
  Neil.
 

 Craig


  --
  Neil Aggarwal
  JAMM Consulting, Inc.(972) 612-6056, http://www.JAMMConsulting.com
  Custom Internet DevelopmentWebsites, Ecommerce, Java, databases
 
   -Original Message-
   From: [EMAIL PROTECTED]
   [mailto:[EMAIL PROTECTED]]On Behalf Of Craig R.
 McClanahan
   Sent: Friday, December 07, 2001 6:13 PM
   To: Tomcat Users List
   Subject: Re: Session tracking across virtual hosts?
  
  
  
  
   On Fri, 7 Dec 2001, Neil Aggarwal wrote:
  
Date: Fri, 7 Dec 2001 13:18:32 -0600
From: Neil Aggarwal [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat-User [EMAIL PROTECTED]
Subject: Session tracking across virtual hosts?
   
Hello:
   
I am developing a web application that requires session tracking.
   
Because we are using a virtual host with a shared SSL certificate,
we need to track sessions using two different hosts.  For example,
we need to use URLs like:
   
http://www.virtdomain.com/appName/page.jsp
and
https://www.JAMMConsulting.com/appName/page.jsp
   
Session tracking does not work across this scenario since the
domains are different.
   
  
   By definition, sessions are scoped to a single web application, so you
   cannot even share them across two webapps on the same virtual host.
   You will need to use some other mechanism to share information between
   webapps -- perhaps using a database, or EJBs, or something like that.
  
   Craig
  
  
  
   --
   To unsubscribe:   mailto:[EMAIL PROTECTED]
   For additional commands: mailto:[EMAIL PROTECTED]
   Troubles with the list: mailto:[EMAIL PROTECTED]
 
  --
  To unsubscribe:   mailto:[EMAIL PROTECTED]
  For additional commands: mailto:[EMAIL PROTECTED]
  Troubles with the list: mailto:[EMAIL PROTECTED]
 
 


 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Session tracking across virtual hosts?

2001-12-07 Thread Neil Aggarwal

Hello:

I am developing a web application that requires session tracking.

Because we are using a virtual host with a shared SSL certificate,
we need to track sessions using two different hosts.  For example,
we need to use URLs like:

http://www.virtdomain.com/appName/page.jsp
and
https://www.JAMMConsulting.com/appName/page.jsp

Session tracking does not work across this scenario since the
domains are different.  

Is there a way around this?  I tried calling response.encodeURL()
on the URLs to the shared domain, but this did not help.

If I could force the URL to contain the session ID, then I think
I would have a solution.

Any suggestions on how to do that?

I am using Tomcat 3.2.3 behind Apache.

Thanks,
Neil.

--
Neil Aggarwal
JAMM Consulting, Inc.(972) 612-6056, http://www.JAMMConsulting.com
Custom Internet DevelopmentWebsites, Ecommerce, Java, databases

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Session tracking across virtual hosts?

2001-12-07 Thread Neil Aggarwal

Craig:

It is the same webapp, not two different ones.  We just
need to access it in two different ways, depending
on if we are using http or https.

There has to be a way to do this since it is the SAME
application.

Thanks,
Neil.

--
Neil Aggarwal
JAMM Consulting, Inc.(972) 612-6056, http://www.JAMMConsulting.com
Custom Internet DevelopmentWebsites, Ecommerce, Java, databases

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Craig R. McClanahan
 Sent: Friday, December 07, 2001 6:13 PM
 To: Tomcat Users List
 Subject: Re: Session tracking across virtual hosts?
 
 
 
 
 On Fri, 7 Dec 2001, Neil Aggarwal wrote:
 
  Date: Fri, 7 Dec 2001 13:18:32 -0600
  From: Neil Aggarwal [EMAIL PROTECTED]
  Reply-To: Tomcat Users List [EMAIL PROTECTED]
  To: Tomcat-User [EMAIL PROTECTED]
  Subject: Session tracking across virtual hosts?
 
  Hello:
 
  I am developing a web application that requires session tracking.
 
  Because we are using a virtual host with a shared SSL certificate,
  we need to track sessions using two different hosts.  For example,
  we need to use URLs like:
 
  http://www.virtdomain.com/appName/page.jsp
  and
  https://www.JAMMConsulting.com/appName/page.jsp
 
  Session tracking does not work across this scenario since the
  domains are different.
 
 
 By definition, sessions are scoped to a single web application, so you
 cannot even share them across two webapps on the same virtual host.
 You will need to use some other mechanism to share information between
 webapps -- perhaps using a database, or EJBs, or something like that.
 
 Craig
 
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Apache + Tomcat Virtual Host not loading web.xml

2001-09-06 Thread Neil Aggarwal

Larry:

The JkMount is in the apache httpd.conf file, but the web.xml
should be read by tomcat when it starts up.  Apache is not
even in the picture yet.

I think the problem is that tomcat is either:
1. Not processing the web.xml.
2. Not finding the setup servlet.

I dont think this has anything to do with the servlet 
mappings of apache.

Thanks,
Neil.

--
Neil Aggarwal
JAMM Consulting, Inc.(972) 612-6056, http://www.JAMMConsulting.com
Custom Internet DevelopmentWebsites, Ecommerce, Java, databases

 -Original Message-
 From: Larry Isaacs [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, September 06, 2001 7:48 AM
 To: '[EMAIL PROTECTED]'
 Subject: RE: Apache + Tomcat Virtual Host not loading web.xml
 
 
 I don't think you have a servlet mapping until you add
 a servlet-mapping entry to your web.xml.  I could be
 wrong, but I don't believe the Servlet spec guarantees
 you can access the servlet by name with just a
 servlet-name.
 
 That nitpick aside, I assume you are using Tomcat 3.2.x.
 Neither mod_jk or mod_jserv pass web.xml information
 to Apache.  All Apache knows about Tomcat's contexts
 is what it gets from the config file(s).  You will need to
 manually add the servlet mappings you need,
 JkMount /setup ajp13 in your case.
 
 Tomcat 3.3 tries to support this a little better by including
 servlet mappings in the auto-generated config file.
 However, this is not the default behavior for generating
 the config file.  Instead, the default is to map all
 requests related to a Tomcat context, and not have Apache
 serve static files.  This helps insure that the behavior
 defined in the web.xml file functions properly.
 
 You can try by specifying JkMount / ajp13 and
 JkMount /* ajp13.  Note that in spite of this, Apache
 will still serve an index.html without giving Tomcat
 a chance to serve the request.
 
 Hope this helps.
 
 Larry
 
  -Original Message-
  From: Neil Aggarwal [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, September 05, 2001 7:49 PM
  To: Tomcat-User
  Subject: Apache + Tomcat Virtual Host not loading web.xml
  
  
  Hello:
  
  I am trying to set-up a virtual host on my set-up with
  apache and tomcat.
  
  Here is what I did:
  
  I added this to the htpd.conf file:
  VirtualHost [IP Address]
DocumentRoot /home/myhost/public-html
ServerName myhost.JAMMConsulting.com
JkMount /*.jsp ajp13
JkMount /servlet/* ajp13
Directory /home/myhost/public-html/WEB-INF
  deny from all
  Options None
/Directory
  /VirtualHost
  
  
  I added the following to tomcat's server.xml:
  Host name=myhost.JAMMConsulting.com
Context path= docBase=/home/myhost/public-html debug=0/
  /Host
  
  I put the following web.xml in the directory
  /home/myhost/public-html/WEB-INF:
  ?xml version=1.0 encoding=ISO-8859-1?
  
  !DOCTYPE web-app
  PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN
  http://java.sun.com/j2ee/dtds/web-app_2_2.dtd;
  
  web-app
  servlet
servlet-name
  setup
/servlet-name
  servlet-class
  SetupServlet
  /servlet-class
  init-param
  param-nameDbName/param-name
  param-valuemydb/param-value
  /init-param
  init-param
  param-nameDbUser/param-name
  param-valuemyuser/param-value
  /init-param
  init-param
  param-nameDbPassword/param-name
  param-value[password]/param-value
  /init-param
  load-on-startup1/load-on-startup
  /servlet
  /web-app
  I restarted both apache and tomcat.
  
  The setup servlet is there to create a database pool, but it
  is not getting loaded.  I tried putting some logging in the
  SetupServlet and it does not get called.
  
  I manually visited
  http://myhost.JAMMConsulting.com/servlet/SetupServlet
  and it worked fine.
  
  So, apparently the web.xml is not being loaded by the
  web application.
  
  Any ideas?
  
  Thanks,
  Neil.
  
  --
  Neil Aggarwal
  JAMM Consulting, Inc.(972) 612-6056, http://www.JAMMConsulting.com
  Custom Internet DevelopmentWebsites, Ecommerce, Java, databases
  



Apache + Tomcat Virtual Host not loading web.xml

2001-09-05 Thread Neil Aggarwal

Hello:

I am trying to set-up a virtual host on my set-up with
apache and tomcat.

Here is what I did:

I added this to the htpd.conf file:
VirtualHost [IP Address]
  DocumentRoot /home/myhost/public-html
  ServerName myhost.JAMMConsulting.com
  JkMount /*.jsp ajp13
  JkMount /servlet/* ajp13
  Directory /home/myhost/public-html/WEB-INF
deny from all
Options None
  /Directory
/VirtualHost


I added the following to tomcat's server.xml:
Host name=myhost.JAMMConsulting.com
  Context path= docBase=/home/myhost/public-html debug=0/
/Host

I put the following web.xml in the directory
/home/myhost/public-html/WEB-INF:
?xml version=1.0 encoding=ISO-8859-1?

!DOCTYPE web-app
PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN
http://java.sun.com/j2ee/dtds/web-app_2_2.dtd;

web-app
servlet
  servlet-name
setup
  /servlet-name
servlet-class
SetupServlet
/servlet-class
init-param
param-nameDbName/param-name
param-valuemydb/param-value
/init-param
init-param
param-nameDbUser/param-name
param-valuemyuser/param-value
/init-param
init-param
param-nameDbPassword/param-name
param-value[password]/param-value
/init-param
load-on-startup1/load-on-startup
/servlet
/web-app
I restarted both apache and tomcat.

The setup servlet is there to create a database pool, but it
is not getting loaded.  I tried putting some logging in the
SetupServlet and it does not get called.

I manually visited
http://myhost.JAMMConsulting.com/servlet/SetupServlet
and it worked fine.

So, apparently the web.xml is not being loaded by the
web application.

Any ideas?

Thanks,
Neil.

--
Neil Aggarwal
JAMM Consulting, Inc.(972) 612-6056, http://www.JAMMConsulting.com
Custom Internet DevelopmentWebsites, Ecommerce, Java, databases




[Fwd: Virtual host in Tomcat 3.2.1 thros NullPointer]

2001-04-23 Thread Neil Aggarwal

Hello:

Has anyone seen this problem

Thanks,
Neil.

--
Neil Aggarwal
JAMM Consulting, Inc. -- (972) 612-6056, http://www.JAMMConsulting.com
Custom Internet Development -- Java, JSP, servlets, databases


Hello:

I am trying to set-up Tomcat 3.2.1 as a standalone servlet container
for virtual hosts.

I downloaded the tomcat 3.2.1 binary distribution, dearchived it,
and then made these modifications to server.xml:

1. Changed the HttpContentHandler to port 80 so that it
would repond to normal web requests.
2. In the ContextManager section, I added these lines:
Host name=xxx.xxx.xxx.xxx 
Context path=
debug=1
docbase=webapps/host1 /
/Host

After starting tomcat, I tried to visit http://xxx.xxx.xxx.xxx
and I got this error message:
Error: 500

Location: /

Internal Servlet Error:

java.lang.NullPointerException
at org.apache.tomcat.util.FileUtil.isAbsolute(FileUtil.java:289)
at
org.apache.tomcat.core.Context.getAbsolutePath(Context.java:257)
at org.apache.tomcat.core.Context.getRealPath(Context.java:791)
at
org.apache.tomcat.request.StaticInterceptor.requestMap(StaticInterceptor.java:191)
at
org.apache.tomcat.core.ContextManager.processRequest(ContextManager.java:820)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:771)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:210)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
at java.lang.Thread.run(Thread.java:498)


Any ideas what is causing this?

Thanks,
Neil.

--
Neil Aggarwal
JAMM Consulting, Inc. -- (972) 612-6056, http://www.JAMMConsulting.com
Custom Internet Development -- Java, JSP, servlets, databases





[Fwd: Multiple IP based virtual hosts in Tomcat 4]

2001-04-23 Thread Neil Aggarwal

Hello:

Has anyone seen this problem

Thanks,
Neil.

--
Neil Aggarwal
JAMM Consulting, Inc. -- (972) 612-6056, http://www.JAMMConsulting.com
Custom Internet Development -- Java, JSP, servlets, databases


Hello:

I am trying to set-up multiple IP based virtual hosts in 
Tomcat 4.0 Beta 3 running as a Standalone container.

I downloaded the 4.0b3 binary of tomcat, dearchived it,
and modified the following items in the server.xml
file:

In the Service name=Tomcat-Standalone section,
I changed the HttpConnector to use port 80 so that
it would respond to normal web requests.

In the Engine section, below the Host section for localhost,
I added the following lines:
  Host name=xxx.xxx.xxx.xxx debug=1 appBase=webapps
unpackWARs=true
Context path= docBase=host1
/Context
  /Host

  Host name=yyy.yyy.yyy.yyy debug=1 appBase=webapps
unpackWARs=true
Context path= docBase=host2
/Context
  /Host

Then, I started tomcat.  When I visit http://xxx.xxx.xxx.xxx,
I get the index.jsp file from the host1 directory as expected.

But when I visit http://yyy.yyy.yyy.yyy, I get this message:
HTTP Status 503 - This application is not currently
available

The requested service (This application is not currently available) is
not currently available. 

Any idea why this is occurring?

Thanks,
Neil.

--
Neil Aggarwal
JAMM Consulting, Inc. -- (972) 612-6056, http://www.JAMMConsulting.com
Custom Internet Development -- Java, JSP, servlets, databases





Re: [Fwd: Virtual host in Tomcat 3.2.1 thros NullPointer]

2001-04-23 Thread Neil Aggarwal

Danny:

I change my server.xml to:
Host name=xxx.xxx.xxx.xxx 
Context path=/
debug=1
docbase=webapps/host1 /
/Host

And I still get this error:
Error: 500

Location: /

Internal Servlet Error:

java.lang.NullPointerException
at org.apache.tomcat.util.FileUtil.isAbsolute(FileUtil.java:289)
at
org.apache.tomcat.core.Context.getAbsolutePath(Context.java:257)
at org.apache.tomcat.core.Context.getRealPath(Context.java:791)
at
org.apache.tomcat.request.StaticInterceptor.requestMap(StaticInterceptor.java:191)
at
org.apache.tomcat.core.ContextManager.processRequest(ContextManager.java:820)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:771)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:210)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
at java.lang.Thread.run(Thread.java:498)

Any other ideas?

Thanks,
Neil.

Danny Angus wrote:
 
 Context path=
 should be
 Context path=/
 for hits to the path root
 
  -Original Message-
  From: Neil Aggarwal [mailto:[EMAIL PROTECTED]]
  Sent: Monday, April 23, 2001 5:17 PM
  To: tomcat users list
  Subject: [Fwd: Virtual host in Tomcat 3.2.1 thros NullPointer]
 
 
  Hello:
 
  Has anyone seen this problem
 
  Thanks,
Neil.
 
  --
  Neil Aggarwal
  JAMM Consulting, Inc. -- (972) 612-6056, http://www.JAMMConsulting.com
  Custom Internet Development -- Java, JSP, servlets, databases

--
Neil Aggarwal
JAMM Consulting, Inc. -- (972) 612-6056, http://www.JAMMConsulting.com
Custom Internet Development -- Java, JSP, servlets, databases



Re: [Fwd: Multiple IP based virtual hosts in Tomcat 4]

2001-04-23 Thread Neil Aggarwal

Danny:

I change my tomcat 4 server.xml file to:
  Host name=xxx.xxx.xxx.xxx debug=1 appBase=webapps
unpackWARs=true
Context path=/ docBase=host1
/Context
  /Host

  Host name=yyy.yyy.yyy.yyy debug=1 appBase=webapps
unpackWARs=true
Context path=/ docBase=host2
/Context
  /Host

When I got to xxx.xxx.xxx.xxx, I get:
HTTP Status 404 - /index.jsp

The requested resource (/index.jsp) is not available. 

When I go to yyy.yyy.yyy.yyy, I get nothing, the browser 
just sits there and loads nothing. Eventually, it times out.

Any more ideas?

Thanks,
Neil.

Danny Angus wrote:
 
 Context path=
 should probably be
 Context path=/
 too
 
  -Original Message-
  From: Neil Aggarwal [mailto:[EMAIL PROTECTED]]
  Sent: Monday, April 23, 2001 5:17 PM
  To: tomcat users list
  Subject: [Fwd: Multiple IP based virtual hosts in Tomcat 4]
 
 
  Hello:
 
  Has anyone seen this problem
 
  Thanks,
Neil.
 
  --
  Neil Aggarwal
  JAMM Consulting, Inc. -- (972) 612-6056, http://www.JAMMConsulting.com
  Custom Internet Development -- Java, JSP, servlets, databases

--
Neil Aggarwal
JAMM Consulting, Inc. -- (972) 612-6056, http://www.JAMMConsulting.com
Custom Internet Development -- Java, JSP, servlets, databases



Multiple IP based virtual hosts in Tomcat 4

2001-04-19 Thread Neil Aggarwal

Hello:

I am trying to set-up multiple IP based virtual hosts in 
Tomcat 4.0 Beta 3 running as a Standalone container.

I downloaded the 4.0b3 binary of tomcat, dearchived it,
and modified the following items in the server.xml
file:

In the Service name="Tomcat-Standalone" section,
I changed the HttpConnector to use port 80 so that
it would respond to normal web requests.

In the Engine section, below the Host section for localhost,
I added the following lines:
  Host name="xxx.xxx.xxx.xxx" debug="1" appBase="webapps"
unpackWARs="true"
Context path="" docBase="host1"
/Context
  /Host

  Host name="yyy.yyy.yyy.yyy" debug="1" appBase="webapps"
unpackWARs="true"
Context path="" docBase="host2"
/Context
  /Host

Then, I started tomcat.  When I visit http://xxx.xxx.xxx.xxx,
I get the index.jsp file from the host1 directory as expected.

But when I visit http://yyy.yyy.yyy.yyy, I get this message:
HTTP Status 503 - This application is not currently
available

The requested service (This application is not currently available) is
not currently available. 

Any idea why this is occurring?

Thanks,
Neil.

--
Neil Aggarwal
JAMM Consulting, Inc. -- (972) 612-6056, http://www.JAMMConsulting.com
Custom Internet Development -- Java, JSP, servlets, databases



Virtual host in Tomcat 3.2.1 thros NullPointer

2001-04-19 Thread Neil Aggarwal

Hello:

I am trying to set-up Tomcat 3.2.1 as a standalone servlet container
for virtual hosts.

I downloaded the tomcat 3.2.1 binary distribution, dearchived it,
and then made these modifications to server.xml:

1. Changed the HttpContentHandler to port 80 so that it
would repond to normal web requests.
2. In the ContextManager section, I added these lines:
Host name="xxx.xxx.xxx.xxx" 
Context path=""
debug="1"
docbase="webapps/host1" /
/Host

After starting tomcat, I tried to visit http://xxx.xxx.xxx.xxx
and I got this error message:
Error: 500

Location: /

Internal Servlet Error:

java.lang.NullPointerException
at org.apache.tomcat.util.FileUtil.isAbsolute(FileUtil.java:289)
at
org.apache.tomcat.core.Context.getAbsolutePath(Context.java:257)
at org.apache.tomcat.core.Context.getRealPath(Context.java:791)
at
org.apache.tomcat.request.StaticInterceptor.requestMap(StaticInterceptor.java:191)
at
org.apache.tomcat.core.ContextManager.processRequest(ContextManager.java:820)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:771)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:210)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
at java.lang.Thread.run(Thread.java:498)


Any ideas what is causing this?

Thanks,
Neil.

--
Neil Aggarwal
JAMM Consulting, Inc. -- (972) 612-6056, http://www.JAMMConsulting.com
Custom Internet Development -- Java, JSP, servlets, databases



Session tracking not working

2001-03-23 Thread Neil Aggarwal

Hello:

I have tried tomcat 3.2.1 and 3.2.2 (4.0 bombed so I could not
try it) and I am getting this problem:

I am creating a member-based site.  Each tiem a member
logs in, I create a User object for them and store it
as a session attribute.

Each page (In its header) checks for the presence of
of that session attribute before showing the page.

For some reason, the member pages are coming up in a
different session and the user is taken to a page
that they are not logged it.

Is there a bug with the session tracking in Tomcat?

Thanks,
Neil.

--
Neil Aggarwal
JAMM Consulting, Inc. -- (972) 612-6056, http://www.JAMMConsulting.com
Custom Internet Development -- Java, JSP, servlets, databases



Automatic startup works, shutdown does not

2001-02-15 Thread Neil Aggarwal

Hello:

I am running Tomcat 3.2.1 on RedHat Linux 7.0.
I am trying to get tomcat to automatically start and stop when I reboot
my server.

My server is not local, so I am looking thru /var/log/messages.  

I seeing messages for when tomcat starts up:

Feb 15 12:44:22 neil235 tomcat: Starting tomcat:
Feb 15 12:44:22 neil235 tomcat: Guessing TOMCAT_HOME from tomcat.sh to
/usr/loca
l/jakarta-tomcat-3.2.1/bin/..
Feb 15 12:44:22 neil235 tomcat: Setting TOMCAT_HOME to
/usr/local/jakarta-tomcat
-3.2.1/bin/..
Feb 15 12:44:22 neil235 tomcat: Using classpath:
/usr/local/jakarta-tomcat-3.2.1
/bin/../lib/ant.jar:/usr/local/jakarta-tomcat-3.2.1/bin/../lib/jasper.jar:/usr/l
ocal/jakarta-tomcat-3.2.1/bin/../lib/jaxp.jar:/usr/local/jakarta-tomcat-3.2.1/bi
n/../lib/parser.jar:/usr/local/jakarta-tomcat-3.2.1/bin/../lib/servlet.jar:/usr/
local/jakarta-tomcat-3.2.1/bin/../lib/test:/usr/local/jakarta-tomcat-3.2.1/bin/.
./lib/webserver.jar:/usr/local/j2sdk1.3.0/lib/tools.jar
Feb 15 12:44:23 neil235 rc: Starting tomcat:  succeeded

But, I dont see any messages among the shutdown messages in
that file when the server shuts down for a reboot.

Here is exactly what I did:

First, I placed the following lines in a file /etc/rc.d/init.d/tomcat:
#!/bin/sh
# Starts tomcat.
#
# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

# See how we were called.
case "$1" in
  start)
echo -n "Starting tomcat: "
export JAVA_HOME=/usr/local/j2sdk1.3.0
/usr/local/jakarta-tomcat-3.2.1/bin/startup.sh
RETVAL=$?
;;
  stop)
echo -n "Shutting down tomcat: "
/usr/local/jakarta-tomcat-3.2.1/bin/shutdown.sh
echo
RETVAL=$?
;;
  restart)
/usr/local/jakarta-tomcat-3.2.1/bin/shutdown.sh
/usr/local/jakarta-tomcat-3.2.1/bin/startup.sh
;;
  *)
echo "Usage: tomcat {start|stop|restart}"
exit 1
esac

exit $RETVAL

Next, I issued the following commands:
chmod +x /etc/init.d/tomcat
rm -f /etc/rc3.d/S75tomcat
rm -f /etc/rc0.d/K25tomcat
rm -f /etc/rc6.d/K25tomcat
ln -s /etc/rc.d/init.d/tomcat /etc/rc3.d/S75tomcat
ln -s /etc/rc.d/init.d/tomcat /etc/rc0.d/K25tomcat
ln -s /etc/rc.d/init.d/tomcat /etc/rc6.d/K25tomcat

Finally, I rebooted the server:
/sbin/reboot

I did check that I can run the commands manually
/etc/rc.d/init.d/tomcat start
/etc/rc.d/init.d/tomcat stop
Work as I intend them to do so.

I just dont understand why this is not working.  This makes
no sense to me.  The startup command is working.  I dont 
understand why the stop command is not -- it uses the same
file.

Anybody have any ideas?

Thanks,
Neil.

--
Neil Aggarwal
JAMM Consulting, Inc. -- (972) 612-6056, http://www.JAMMConsulting.com
Custom Internet Development -- Java, JSP, servlets, databases

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




Re: Automatic startup works, shutdown does not

2001-02-15 Thread Neil Aggarwal

Steve:

OK, I moved the export JAVE_HOME to the top-level outside the
case statement and I am still not getting a shutdown message.

Thanks
Neil.


 You must set JAVA_HOME in all cases not just "startup"

--
Neil Aggarwal
JAMM Consulting, Inc. -- (972) 612-6056, http://www.JAMMConsulting.com
Custom Internet Development -- Java, JSP, servlets, databases

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




Re: Automatic startup works, shutdown does not

2001-02-15 Thread Neil Aggarwal

Peter:

Yes, I am seeing many shutdown messages.  Just not one for tomcat.

Neil.


"Peter B. West" wrote:
 
 Neil,
 
 Are you seeing any output from other /etc/rc6.d/K* processes on reboot?
 
 Peter
 
 Neil Aggarwal wrote:
 
  Hello:
 
  I am running Tomcat 3.2.1 on RedHat Linux 7.0.
  I am trying to get tomcat to automatically start and stop when I reboot
  my server.
 
  My server is not local, so I am looking thru /var/log/messages.
 
  I seeing messages for when tomcat starts up:
 
  Feb 15 12:44:22 neil235 tomcat: Starting tomcat:
  Feb 15 12:44:22 neil235 tomcat: Guessing TOMCAT_HOME from tomcat.sh to
  /usr/loca
  l/jakarta-tomcat-3.2.1/bin/..
  Feb 15 12:44:22 neil235 tomcat: Setting TOMCAT_HOME to
  /usr/local/jakarta-tomcat
  -3.2.1/bin/..
  Feb 15 12:44:22 neil235 tomcat: Using classpath:
  /usr/local/jakarta-tomcat-3.2.1
  /bin/../lib/ant.jar:/usr/local/jakarta-tomcat-3.2.1/bin/../lib/jasper.jar:/usr/l
  ocal/jakarta-tomcat-3.2.1/bin/../lib/jaxp.jar:/usr/local/jakarta-tomcat-3.2.1/bi
  n/../lib/parser.jar:/usr/local/jakarta-tomcat-3.2.1/bin/../lib/servlet.jar:/usr/
  local/jakarta-tomcat-3.2.1/bin/../lib/test:/usr/local/jakarta-tomcat-3.2.1/bin/.
  ./lib/webserver.jar:/usr/local/j2sdk1.3.0/lib/tools.jar
  Feb 15 12:44:23 neil235 rc: Starting tomcat:  succeeded
 
  But, I dont see any messages among the shutdown messages in
  that file when the server shuts down for a reboot.
 
  Here is exactly what I did:
 
  First, I placed the following lines in a file /etc/rc.d/init.d/tomcat:
  #!/bin/sh
  # Starts tomcat.
  #
  # Source function library.
  . /etc/rc.d/init.d/functions
 
  RETVAL=0
 
  # See how we were called.
  case "$1" in
start)
  echo -n "Starting tomcat: "
  export JAVA_HOME=/usr/local/j2sdk1.3.0
  /usr/local/jakarta-tomcat-3.2.1/bin/startup.sh
  RETVAL=$?
  ;;
stop)
  echo -n "Shutting down tomcat: "
  /usr/local/jakarta-tomcat-3.2.1/bin/shutdown.sh
  echo
  RETVAL=$?
  ;;
restart)
  /usr/local/jakarta-tomcat-3.2.1/bin/shutdown.sh
  /usr/local/jakarta-tomcat-3.2.1/bin/startup.sh
  ;;
*)
  echo "Usage: tomcat {start|stop|restart}"
  exit 1
  esac
 
  exit $RETVAL
 
  Next, I issued the following commands:
  chmod +x /etc/init.d/tomcat
  rm -f /etc/rc3.d/S75tomcat
  rm -f /etc/rc0.d/K25tomcat
  rm -f /etc/rc6.d/K25tomcat
  ln -s /etc/rc.d/init.d/tomcat /etc/rc3.d/S75tomcat
  ln -s /etc/rc.d/init.d/tomcat /etc/rc0.d/K25tomcat
  ln -s /etc/rc.d/init.d/tomcat /etc/rc6.d/K25tomcat
 
  Finally, I rebooted the server:
  /sbin/reboot
 
  I did check that I can run the commands manually
  /etc/rc.d/init.d/tomcat start
  /etc/rc.d/init.d/tomcat stop
  Work as I intend them to do so.
 
  I just dont understand why this is not working.  This makes
  no sense to me.  The startup command is working.  I dont
  understand why the stop command is not -- it uses the same
  file.
 
  Anybody have any ideas?
 
  Thanks,
  Neil.
 
 
 --
 Peter B. West  [EMAIL PROTECTED]  http://powerup.com.au/~pbwest
 "Lord, to whom shall we go?"
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]

--
Neil Aggarwal
JAMM Consulting, Inc. -- (972) 612-6056, http://www.JAMMConsulting.com
Custom Internet Development -- Java, JSP, servlets, databases

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




Re: Appplication not responding (ajpv12_handle_response, error writing back to server)

2001-01-29 Thread Neil Aggarwal

I forgot to mention my environment:
RedHat 7 SMP
Tomcat 3.2.1
Apache 1.3.14

Thanks,
Neil.

Neil Aggarwal wrote:

 Hello:

 I tried to search the archive for this, but the search function is down.

 Sometimes my application stops responding and I am getting this message
 in the mod_jk.log:
 [jk_ajp12_worker.c (596)]: ajpv12_handle_response, error writing back to
 server

 Does anyone know what this means?

 Thanks,
 Neil.

 --
 Neil Aggarwal
 JAMM Consulting, Inc. -- (972) 612-6056, http://www.JAMMConsulting.com
 Custom Internet Development -- Java, JSP, servlets, databases

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

--
Neil Aggarwal
JAMM Consulting, Inc. -- (972) 612-6056, http://www.JAMMConsulting.com
Custom Internet Development -- Java, JSP, servlets, databases



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




No response from tomcat

2001-01-27 Thread Neil Aggarwal

Hello:

Several times, my application stops responding.  When I 
look in the /usr/local/jakarta-tomcat-3.2.1/logs/mod_jk.log
file, I am getting this message:

[jk_ajp12_worker.c (596)]: ajpv12_handle_response, error writing back to
server

Does anyone know what is causing this problem?  

I am using apache 1.3.14, tomcat 3.2.1, on a redhat 7.0
dual-processor machine.

I am using the autogenerated mod_jk.conf-auto file.
Here is the line that I am using in my httpd.conf file:

include /usr/local/jakarta-tomcat-3.2.1/conf/mod_jk.conf-auto


Thanks,
Neil.

--
Neil Aggarwal
JAMM Consulting, Inc. -- (972) 612-6056, http://www.JAMMConsulting.com
Custom Internet Development -- Java, JSP, servlets, databases

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




How to include from a non-local URL?

2001-01-25 Thread Neil Aggarwal

Hello:

I hve a machine runnng an application that generates a piece
of content that I want to include in a JSP page.

According to the jsp include tag docs, I can only include 
a local document using it.

Is there a way to include the result of a general URL?

Thanks,
Neil.

--
Neil Aggarwal
JAMM Consulting, Inc. -- (972) 612-6056, http://www.JAMMConsulting.com
Custom Internet Development -- Java, JSP, servlets, databases

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




Re: Tomcat alternative authentication

2001-01-01 Thread Neil Aggarwal

Charles:

I have created a set of installation notes on Apache, Java, and
Tomcat in our Reading Room. I was able to set-up Basic 
authentication in Tomcat.

Take a look at http://www.JAMMConsulting.com and click
on the reading room button.

I hope this helps.

Neil.


--
Neil Aggarwal
JAMM Consulting, Inc. -- (972) 612-6056, http://www.JAMMConsulting.com
Custom Internet Development -- Java, JSP, servlets, databases

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




Re: Anyone got security-context working in Tomcat?

2000-12-29 Thread Neil Aggarwal

Craig:

Yes, that was it!  Thanks!

To summarize for those that are still having trouble:

To make Tomcat require authentication for a give URL, add
these lines in the web-app tag in the web.xml file for
a tomcat application (NOTE: The URL pattern should not include the
application's context). Here is an example:
security-constraint
web-resource-collection
web-resource-nameAdminServlet/web-resource-name
url-pattern/servlet/AdminServlet/url-pattern
http-methodGET/http-method
http-methodPOST/http-method
/web-resource-collection
auth-constraint
role-nameadmin/role-name
/auth-constraint
/security-constraint
login-config
auth-methodBASIC/auth-method
realm-nameAdmin/realm-name
/login-config
security-role
role-nameadmin/role-name
/security-role

The passwords need to be placed in the 
/usr/local/jakarta-tomcat-3.2.1/conf/tomcat-users.xml file:
  user name="admin"  password="[password]" roles="admin" /


Thanks,
    Neil.

--
Neil Aggarwal
JAMM Consulting, Inc. -- (972) 612-6056, http://www.JAMMConsulting.com
Custom Internet Development -- Java, JSP, servlets, databases

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




Is the archive search down?

2000-12-27 Thread Neil Aggarwal

Hello:

I am trying to find a previous article on authentication
in Tomcat, but it looks like the Tomcat User Archive search function 
is not responding.

Is it working for anyone else?

Thanks,
Neil.

--
Neil Aggarwal
JAMM Consulting, Inc. -- (972) 612-6056, http://www.JAMMConsulting.com
Custom Internet Development -- Java, JSP, servlets, databases



Re: Anyone got security-context working in Tomcat?

2000-12-27 Thread Neil Aggarwal

David:

I am trying to protect a servlet within my web application.
I want the rest of it to be accessible except for that
servlet.

Based on my reading the servlet 2.3 specification, I 
added the following lines to my application's web.xml file:
security-role
role-nameadmin/role-name
/security-role
security-constraint
web-resource-collection
web-resource-nameAdminServlet/web-resource-name
url-pattern/videosearch/servlet/AdminServlet/url-pattern
http-methodGET/http-method
http-methodPOST/http-method
/web-resource-collection
auth-constraint
role-nameadmin/role-name
/auth-constraint
/security-constraint

But, when I visit /videosearch/servlet/AdminServlet, I get
the result from the servlet without it asking for a login.

Also, I dont understand how I can set-up the password.

Any guidance would really help.

Thanks,
Neil.

 Yes. I use it along with a JDBCRealm. What problem are you having?

--
Neil Aggarwal
JAMM Consulting, Inc. -- (972) 612-6056, http://www.JAMMConsulting.com
Custom Internet Development -- Java, JSP, servlets, databases



Confused about authentication

2000-12-26 Thread Neil Aggarwal

Hello:

I am confused about how I can get users to authenticate
themselves before accessing a servlet in my web application.

I tried to look at th archive of this list, but the search
function is broken.

Therefore, I have been reading the servlet 2.3 specification and 
added the following lines to my application's web.xml file:
security-role
role-nameadmin/role-name
/security-role
security-constraint
web-resource-collection
web-resource-nameAdminServlet/web-resource-name
url-pattern/videosearch/servlet/AdminServlet/url-pattern
http-methodGET/http-method
http-methodPOST/http-method
/web-resource-collection
auth-constraint
role-nameadmin/role-name
/auth-constraint
/security-constraint

But, when I visit /videosearch/servlet/AdminServlet, I get
the result from the servlet without it asking for a login.

Also, I dont understand how I can set-up the password.

Any guidance would really help.


Thanks,
Neil.

--
Neil Aggarwal
JAMM Consulting, Inc. -- (972) 612-6056, http://www.JAMMConsulting.com
Custom Internet Development -- Java, JSP, servlets, databases



Re: error while trying to create mod_jk for tomcat3.2

2000-12-20 Thread Neil Aggarwal

Hello:

Take a look at my install notes at:
http://www.jammconsulting.com/InstallNotes/InstallTomcat3_2.txt

It describes how I was able to get Apache 1.3.14 and Tomcat 3.2.1
installed on my server.

I hope this helps.

Neil.

--
Neil Aggarwal
JAMM Consulting, Inc. -- (972) 612-6056, http://www.JAMMConsulting.com
Custom Internet Development -- Java, JSP, servlets, databases

On Wed, 20 Dec 2000, Srinivas, Rajesh wrote:

 hi,
   I am new to unix and i am trying to create mok_jk.so. i am getting the
 following errors when i execute the following command,
 
 apxs -o mod_jk.so -DSOLARIS -I../jk -I/usr/java1.2/include
 -I/usr/java1.2/include/solaris -c *.c ../jk/*.c
 
 apxs:Error: Sorry, no DSO support for Apache available
 apxs:Error: under your platform. Make sure the Apache
 apxs:Error: module mod_so is compiled into your server
 apxs:Error: binary `/usr/local/apache/bin/httpd'. 
 
 I have installed ActivePerl5.6 as well as Apache1.3.
 
 thanks in advance,
 Rajesh
 
 




RE: mod_jk.so wont compile on Linux

2000-12-19 Thread Neil Aggarwal

Dave:

With all of the documentation in all of the places that I have found,
it is more like trying to find the one line that pertains to what
I am looking for. 

Thanks for the help.  I am trying to write up my own little doc on
how to get apache 1.3.14 and tomcat 3.2 set-up on Linux.
Once I do this, I will send it out to this list so that others have 
a simple procedure to follow if they need it.

Thanks,
Neil.

--
Neil Aggarwal
JAMM Consulting, Inc. -- (972) 612-6056, http://www.JAMMConsulting.com
Custom Internet Development -- Java, JSP, servlets, databases

On Tue, 19 Dec 2000, Dave Newton wrote:

 I'm thinking that maybe a very small mini-FAQ might be
 in order here!!!
 
  I am trying to compile the mod_jk.so on Redhat Linux.
 
 Try following the documentation where it says that if this
 happens to try:
 
 gcc -shared -o mod_jk.so *.o
 
 That fixed it for me, although the HP-UX and AIX folks
 are having some further issues.
 
 Dave
 




SOLVED: apache 1.3.14, tomcat 3.2.1, Linux

2000-12-19 Thread Neil Aggarwal

Hello:

With a LOT of help from people on this list, I finally
got apache 1.3.14 and Tomcat 3.2.1 configured and working on 
my system.

Here is the exact procedure that I used to get apache 1.3.14 and
tomcat 3.2.1 to work on my Linux system.

I hope this helps some of the dazed and confused out there!

Thanks,
Neil.



--
Neil Aggarwal
JAMM Consulting, Inc. -- (972) 612-6056, http://www.JAMMConsulting.com
Custom Internet Development -- Java, JSP, servlets, databases


Installing apache 1.3.14 and tomcat 3.2 on a Linux system

This assumes that you already have the Blackdown java 1.3 VM
installed in /usr/local/java and that you are using bash

Login as root

cd ~
vi .bashrc and add these lines:
export TOMCAT_HOME=/usr/local/jakarta-tomcat-3.2.1
export JAVA_HOME=/usr/local/java
export PATH=$JAVA_HOME/bin:$PATH

Logout and log back in to make these changes effective.

cd /usr/local
Download the file http://httpd.apache.org/dist/apache_1.3.14.tar.gz
De-archive it.
cd apache_1.3.14
./configure --prefix /usr/local/apache_1.3.14_bin
--enable-module=rewrite --enable-shared=rewrite
make
make install

cd /usr/local
Download the file 
http://jakarta.apache.org/builds/tomcat/release/v3.2.1/src/jakarta-tomcat-3.2.1-src.tar.gz

Dearchive it.
cd jakarta-tomcat-3.2.1-src/src/native/apache1.3
cp Makefile.linux Makefile
Edit the Makefile to change the APXS= line to:
APXS=/usr/local/apache_1.3.14_bin/bin/apxs
make  

This will build all of the *.o files, but will fail on
the build of mod_jk.so, so then enter this command:
gcc -shared -o mod_jk.so *.o

cp mod_jk.so /usr/local/apache_1.3.14_bin/libexec

cd /usr/local
Download the file 
http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.2.1/bin/jakarta-tomcat-3.2.1.tar.gz

Dearchive it
cd jakarta-tomcat-3.2.1/conf
vi server.xml and add the following lines in the Connectors section
!-- Apache AJP13 support --
Connector className="org.apache.tomcat.service.PoolTcpConnector"
  Parameter name="handler" value="org.apache.tomcat.service.connector.A
jp13ConnectionHandler"/
  Parameter name="port" value="8009"/
/Connector

Start and stop tomcat to create the auto configuration files:
cd ../bin
./startup.sh
./shutdown.sh

vi /usr/local/apache_1.3.14_bin/conf/httpd.conf
Add the following lines to the end of that file:
# Load the tomcat configuration file
include /usr/local/jakarta-tomcat-3.2.1/conf/mod_jk.conf-auto

Add the following lines to /etc/rc.d/rc.local:
export APACHE_HOME=/usr/local/apache_1.3.14_bin 
export TOMCAT_HOME=/usr/local/jakarta-tomcat-3.2.1
export JAVA_HOME=/usr/local/java
export PATH=$JAVA_HOME/bin:$PATH
$TOMCAT_HOME/bin/startup.sh
$APACHE_HOME/bin/apachectl start

Reboot the server:
/sbin/reboot

Test the configuration by visiting:
http://[server name]
You should get the apache congratulations page.

Vist this URL
http://[server name]/examples
You should get a page with directories for servlet and jsp examples.
Try a few of them.



RE: How to password-protect a servlet?

2000-12-19 Thread Neil Aggarwal


I am not sure I understand what you are saying here, can you please
clarify?

My web application resides in the directory
/usr/local/jakarta-tomcat/webapps/videosearch

What I am trying to do is to get Apache to protect one of the servlets
in that application, but leave the rest of the application with open
access.

Is there a way to do this?

Thanks,
Neil.


 I posted an answer to this question about 2 weeks ago.  I found that if you
 put the Tomcat directory for a particular context inside the Apache document
 path, Apache will then pop up the logon dialog for pages destined for
 Tomcat.

--
Neil Aggarwal
JAMM Consulting, Inc. -- (972) 612-6056, http://www.JAMMConsulting.com
Custom Internet Development -- Java, JSP, servlets, databases






RE: SOLVED: apache 1.3.14, tomcat 3.2.1, Linux

2000-12-19 Thread Neil Aggarwal

Dave:

I temporarily put my document up at the following URL:

http://www.JAMMConsulting.com/InstallNotes/InstallTomcat3_2.txt

When I get a chance, I am going to create a section in the Reading Room
section of our web site to house this kind of stuff.

Thanks,
Neil.

--
Neil Aggarwal
JAMM Consulting, Inc. -- (972) 612-6056, http://www.JAMMConsulting.com
Custom Internet Development -- Java, JSP, servlets, databases

On Tue, 19 Dec 2000, Dave Newton wrote:

  I can put it up on my site if you think it would be helpful.
 
 Considering how many people have asked the same questions, and
 how many times myself and others have answered, I think it'd
 be pretty handy to have a "go look here" link w/ actual 
 instructions.
 
 I think the project might benefit from the doc as well, maybe
 slightly redone to fit in with their style.
 
 Dave
 




How to password-protect a servlet?

2000-12-18 Thread Neil Aggarwal

Hello:

I am using Apache 1.3.12 with Tomcat 3.1 and I wanted to 
password protect a servlet running on Tomcat with the 
Apache password mechanism.

In my httpd.conf file, I placed the following lines:
LocationMatch /videosearch/servlet/AdminServlet
AuthName "VideoSearch Admin"
AuthType Basic
AuthUserFile /usr/local/apache/conf/vidadmin.password
require valid-user
/LocationMatch

But, it did not ask me for a password. But, if I change the location
match to:
LocationMatch /test
AuthName "VideoSearch Admin"
AuthType Basic
AuthUserFile /usr/local/apache/conf/vidadmin.password
require valid-user
/LocationMatch

(The only thing I changed is the location to a directory called
test)

Everything works fine in this case.

Is Tomcat intercepting the URL before apache has a chance to
check if it needs to ask for a password?

Is there a way to use Apache's authentication for URLs that
point to Tomcat?

If not, does Tomcat have authentication capabilities?

Thanks,
    Neil.

--
Neil Aggarwal
JAMM Consulting, Inc. -- (972) 612-6056, http://www.JAMMConsulting.com
Custom Internet Development -- Java, JSP, servlets, databases






Not finding index.html file

2000-11-30 Thread Neil Aggarwal

Hello:

I am using tomcat 3.1.

I create a directory for my web application in the web apps directory.

When I got to /myapp/index.html, I get the index.html file, but
when I go to /myapp, I get a 404 not found.

Apache does load index.html files for other directories.

Does tomcat load index.html files?  If so, how do I configure it
to do so?

Thanks,
Neil.

--
Neil Aggarwal
JAMM Consulting, Inc. -- (972) 612-6056, http://www.JAMMConsulting.com
Custom Internet Development -- Java, JSP, servlets, databases



Directory problem

2000-11-29 Thread Neil Aggarwal

Hello:

I am trying to use tomcat with apache and am having a
problem with my virtual host directory.

In my httpd.conf file, I added index.jsp to my listing
of index files:
DirectoryIndex index.jsp index.php index.html index.htm index.shtml
index.cgi

I also have the following virtual host defined:
VirtualHost 216.65.31.3
  DocumentRoot /home/httpd/videosearch

Directory "/home/httpd/videosearch"
  Options Indexes FollowSymLinks
  AllowOverride None

  Order allow,deny
  Allow from all
/Directory

/VirtualHost

And I used this line to include my jakarta config file:
include /usr/local/jakarta-tomcat/conf/tomcat.conf

My tomcat.conf file is:
LoadModule jserv_module /etc/httpd/modules/mod_jserv.so

IfModule mod_jserv.c
# Do not edit! 
ApJServManual on
ApJServDefaultProtocol ajpv12
ApJServSecretKey DISABLED
ApJServMountCopy on
ApJServLogLevel notice

ApJServDefaultPort 8007

AddType text/jsp .jsp
AddHandler jserv-servlet .jsp

ApJServMount /examples /root

/IfModule

I want files with a .jsp extension to be processed by tomcat 
and other files handled via Apache. 

According to the virtual host directive, when I visit
http://216.65.31.3
I should get the files from /home/httpd/videosearch directory.
But, when I do so, I get the file:
/usr/local/jakarta-tomcat/webapps/ROOT/index.html\
which is not what I wanted.

Also, when I try to load the URL:
http://216.65.31.3/index.jsp
I get a 404 not found error.

This file I wanted to load was:
/home/httpd/videosearch/index.jsp
Which I know is there.

Also, If I try to load this URL
http://216.65.31.3/test.html
It loads the file /home/httpd/videosearch/test.html
which is what I wanted.

Any ideas?

Thanks,
Neil.

--
Neil Aggarwal
JAMM Consulting, Inc. -- (972) 612-6056, http://www.JAMMConsulting.com
Custom Internet Development -- Java, JSP, servlets, databases



Location of mod_jserv.so in tomcat-apache.conf

2000-11-29 Thread Neil Aggarwal

Hello:

In my tomcat-apache.conf file, there is this line:
LoadModule jserv_module libexec/mod_jserv.so

My apache installation uses a modules directory (even though
I am on Linux). 

Where do I set how this line is generated?

If I change this line, it will be overwritten the next time
tomcat starts.

Thanks, 
Neil.

--
Neil Aggarwal
JAMM Consulting, Inc. -- (972) 612-6056, http://www.JAMMConsulting.com
Custom Internet Development -- Java, JSP, servlets, databases



wrapper.classpath not working?

2000-11-29 Thread Neil Aggarwal

Hello:

I added the following line to my wrapper.classpath
in the tomcat.properties file:
wrapper.classpath=/usr/local/mm.mysql-2.0.2-bin.jar

But, in my test servlet, I printed the classpath and
I got this:
/usr/local/jakarta-tomcat/classes:.:/usr/local/jakarta-tomcat/lib/ant.jar:/usr/local/jakarta-tomcat/lib/jasper.jar:/usr/local/jakarta-tomcat/lib/servlet.jar:/usr/local/jakarta-tomcat/lib/test:/usr/local/jakarta-tomcat/lib/webserver.jar:/usr/local/jakarta-tomcat/lib/xml.jar:/usr/local/java/lib/tools.jar

Is the wrapper.classpath property disabled in Tomcat 3.1?


Thanks,
Neil.


--
Neil Aggarwal
JAMM Consulting, Inc. -- (972) 612-6056, http://www.JAMMConsulting.com
Custom Internet Development -- Java, JSP, servlets, databases