RE: Tomcat dies... help!

2001-08-15 Thread Martin van den Bemt

There are some bugs in ajp12 which can cause this. Since ajp12 is frozen and
not as fast as ajp13 it is best to use ajp13 or the old mod_jserv.

Mvgr,
martin

> -Original Message-
> From: Sahar Madani [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, August 16, 2001 3:01 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Tomcat dies... help!
>
>
> Did anyone answer this one yet.
> I get this in one of my servers.  Both using jdk1.2.2
> tail mod_jk.log
> [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 111
> [jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1
>
> Any ideas? thanks in advance.
>




AW: IBM JDK

2001-08-15 Thread Kursad . Kayatuerk

For one year we are using it on our server. And this package is faster than
the sun's package.

-Ursprüngliche Nachricht-
Von: Mike McGuinness [mailto:[EMAIL PROTECTED]]
Gesendet am: Dienstag, 14. August 2001 18:21
An: [EMAIL PROTECTED]
Betreff: IBM JDK

Has anyone tried IBM jdk/runtime environment on Linux with Tomcat 3.2.3?

I'v got sun jdk 1.3, running on Red Hat 7.1, with apache 1.3.20, and 
tomcat 3.2.3.
I was wondering how or if IBM's jdk/runtime works.

Mike



Elementary question about Tomcat

2001-08-15 Thread Bhamidi Krishna

Hi,

I am posting a very elementary question about Tomcat.

I have written a JSP application that I want to use undes tomcat. Do I need 
to place it under examples/jsp? I placed the application in the jsp 
directory level, Tomcat looks for class files under examples/web-inf whereas 
the class files are under (my directory)/web-inf.

Can I configure Tomcat to read jsp files and class files in my own directory 
other than under examples/jsp and examples/web-inf? I searched around but 
could not find documentation anywhere.

Thankyou,
Krishna.

_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp




RE: My JSP pages are freezing !!

2001-08-15 Thread PREETHY MANOHAR

Hi Christian,

try this code in the jsp
<%
  response.setHeader("Cache-Control","no-cache");
  response.setHeader("Pragma","no-cache");
  response.setDateHeader ("Expires", 0);
%>

Preethy

>From: "James, Stuart" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
>Subject: RE: My JSP pages are freezing !!
>Date: Wed, 15 Aug 2001 14:06:21 +0100
>
>is it possible your browser is caching the result? if so add the following
>to the footer of the page,
>
>
>
> 
> 
> 
> 
>
>
>or put a system.out.println inside the jsp page to display when its being
>called and finished running
>
>-Original Message-
>From: Rob S. [mailto:[EMAIL PROTECTED]]
>Sent: Wednesday, August 15, 2001 1:58 PM
>To: [EMAIL PROTECTED]
>Subject: Re: My JSP pages are freezing !!
>
>
>Hi Christian,
>
>Not to be skeptical, but it doesn't *sound* like a Tomcat problem.  As 
>well,
>the page isn't "freezing" per se, which would imply some sort of time-out,
>it's just looking the same when you hit it again.  You'll need to provide
>more detail about the page if you want help, but I'm reluctant to solve 
>your
>JSP programming problems .
>
>- r
>
>On Wed, 15 Aug 2001 08:51:41 -0300 [EMAIL PROTECTED] wrote:
> > Hello all ! I have tomcat 3.3  with apache and it seems work fine
> > until now. I have a JSP page that receive
> > only one param , execute a query in a database (interbase) , and
> > make the output.
> > All work fine during some time but suddenly, when i execute the page
> >
> > with different values for the param, the output
> > is always the same , i.e., the output always show the answer not matter
> > what value i put for the param.
> > It seems like the page freezing with an old value .
> >
> >Christian
>
>
>
>
>___
>Email Disclaimer
>
>This communication is for the attention of the
>named recipient only and should not be passed
>on to any other person. Information relating to
>any company or security, is for information
>purposes only and should not be interpreted as
>a solicitation or offer to buy or sell any security.
>The information on which this communication is based
>has been obtained from sources we believe to be reliable,
>but we do not guarantee its accuracy or completeness.
>All expressions of opinion are subject to change
>without notice.  All e-mail messages, and associated attachments,
>are subject to interception and monitoring for lawful business purposes.
>___


_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp




Rejected Message

2001-08-15 Thread Administrator

The attached mail message has been rejected for the following reason:

Could not extract file 'MANIFEST.MF' from archive '[5]Calendar.jar'.

Additional Information:

It could be that either the file is password protected or else corrupted.  Make sure 
that you check the attachment manually and virus check it before you approve it. 

WARNING: The archive file could contain VIRUS infected files!!!





Amos,

I fixed a few things for you. Try my version.

#1: There was no need to keep allocating StringBuffers, I just passed the output
PrintWriter.
#2: I fixed your form action to use the request context path for the action
instead of hard-coding it.
#3. I added a call to out.flush () before your out.close () as I suggested
before to force the output stream to flush.

Let me know if it runs fast now...

Jonathan   

Reply Separator
Subject:Re: Re[2]: Servlet Runs SLow
Author: [EMAIL PROTECTED]
Date:   8/15/2001 9:42 AM

Jonathan,

Attached are the servlet and object files
i'm new to Java, so my design may be poor.  Let me
know if you have any questions.

Thanks,
   -Amos

--- Jonathan Pierce <[EMAIL PROTECTED]>
wrote:
> The problem is probably something you are doing in
> your servlet. 
> Try hitting the /examples/servlet/SnoopServlet in
> your action instead of your
> /jd/Calendar call and see if it is fast.
> 
>  If you want, send me the source to your servlet and
> I'll take a look at what
> you are doing that Netscape is sensitive to. 
> 
> Perhaps you are not flushing the output stream in
> your response.
> 
> Reply
> Separator
> Subject:Re: Servlet Runs SLow
> Author: [EMAIL PROTECTED]
> Date:   8/15/2001 9:10 AM
> 
> Sorry, I'm out of ideas.  The servlets I'm working
> on work fine in both
> Netscape and IE.  You may want to try to collect
> some more information
> (log begin/end times in the servlet, use a network
> monitor to see what
> is happening, try different Netscape settings) and
> see if anything
> unusual is happening.
> 
> Jim
> 
> --- "A.L." <[EMAIL PROTECTED]> wrote:
> > The first time I load the page in Netscape
> everything
> > seems fine,  it loads almost instantaneously. 
> > However, when I submit the query to change the
> month
> > calendar, netscape takes a while to reload the
> page
> > and show the new calendar.  I can see that TOmcat
> > receives the request immediately, and I assume
> that
> > since Netscape appears to be loading it receives
> the
> > response immediatley.
> > 
> > Thanks,
> >   -Amos
> > 
> > 
> > --- Jim Seach <[EMAIL PROTECTED]> wrote:
> > > I copied the html into a static file and was
> able to
> > > bring it up
> > > immediately in Netscape 4.76, so it doesn't
> appear
> > > to be the contents
> > > of the form that is the problem.
> > > 
> > > Does it take a long time to display, or does it
> just
> > > not appear to
> > > finish loading?  I have also noticed that
> sometimes
> > > even after the page
> > > has loaded, Netscape still appears to be
> working. 
> > > So far, I have just
> > > ignored it.
> > > 
> > > Jim
> > > 
> > > --- "A.L." <[EMAIL PROTECTED]> wrote:
> > > > Below is the code that is returned:
> > > > 
> > > > It seems that Netscape might have problems
> with
> > > the
> > > > FORM data.  It does seem as if the server is
> > > sending
> > > > the reponse immediately.  Or maybe it is
> having
> > > > trouble with the javascript functions... Any
> > > > suggestions
> > > > 
> > > > (I am only running TOmcat by the way)
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > > Calendar
> > > > 
> > > > 
> > > > 
> > > > 
> > > >  January 
> > > >  February
> > > >  March
> > > >  April
> > > >  May
> > > >  June
> > > > 
> > > > 
> > > > 
> > > > March2001 > > > NAME="date2"ACTION="/jd/Calendar"> > > type=hidden
> > > > NAME="d"> language="JavaScript">function
> > > > choose(n){document.date2.d.value =
> > > >
> > >
> >
>
n;document.date2.submit();} td> > > > href="javascript:choose(1)">1 > > > href="javascript:choose(2)">2 > > >
> > >
> >
>
href="javascript:choose(3)">3 > > > href="javascript:choose(4)">4 > > > href="javascript:choose(5)">5 > > > href="javascript:choose(6)">6 > > > href="javascript:choose(7)">7 > > > href="javascript:choose(8)">8 > > > href="javascript:choose(9)">9 > > >
> > >
> >
>
href="javascript:choose(10)">10 > > > href="javascript:choose(11)">11 > > > href="javascript:choose(12)">12 > > > href="javascript:choose(13)">13 > > > href="javascript:choose(14)">14 > > > href="javascript:choose(15)">15 > > > href="javascript:choose(16)">16 > > >
> > >
> >
>
href="javascript:choose(17)">17 > > > href="javascript:choose(18)">18 > > > href="javascript:choose(19)">19 > > > href="javascript:choose(20)">20 > > > href="javascript:choose(21)">21 > > > href="javascript:choose(22)">22 > > > href="javascript:choose(23)">23 > > >
> > >
> >
>
href="javascript:choose(24)">24 > > > href="javascript:choose(25)">25 > > > href="javascript:choose(26)"

Re: FW: catalina SSL

2001-08-15 Thread Christopher Cain

Quoting "Craig R. McClanahan" <[EMAIL PROTECTED]>:

> On Thu, 16 Aug 2001, Pier P. Fumagalli wrote:
> 
> > OH SSL GURU! :) :) Do you have any clue  (Reply to all so it'll go
> in
> > tomcat-users too!)

Don't worry, baby. The SSL doctor is in session ;-)

> > Hi
> > I'm getting used to Tomcat but not enough to get it work.
> > Trying to install the SSL connector, but always getting a java IO
> exception,
> > "keystore tampered".
> 
> That's one I've never seen before.
> 
> Have you followed the instructions (inside server.xml) exactly?

"Keystore tampered ..." usually indictates that the keystore did not like the 
password it was given. You should have gotten a "no suitable provider" 
exception if you didn't have your java.security file set up right, so I'll 
assume you do. The exaxt steps to get SSL working are listed a little further 
down.

> > I'm a complete newbie either in tomcat or in ssl, so I
> > surely didn't do things right. Is there a good tutorial for this (I
> mean for
> > catalina and ssl) , because most of litterature is relevant only for
> Tomcat
> > previous versions, and Sun's documentation deals with java classes,
> not with
> > applications that needs to be configurated through server.xml.

I'm currently working on exactly such a document. :)

> > So, do I have to make changes to the catalina.bat, to include (in
> the
> > dostartsecure / dorunsecure) the lines:
> > -Djava.protocol.handler.pkgs=\com.sun.net.ssl.internal.www.protocol
> > 
> 
> Is there really supposed to be a backslash (\) before "com.sun" ?
>
> You can avoid the need to modify catalina.bat by setting an
> appropriate
> value for the CATALINA_OPTS environment variable to the set of
> properties
> you want to pass.  But I've not had to do this.

There are no changes whatsoever necessary to run SSL aside from what is 
documented in server.xml. Here are the exact steps:

1. Download JSSE and put the three jar files in {JAVA_HOME}\jre\lib\ext (it's 
not necessary to put them in the CLASSPATH unless your own classes rely on them)

2. DO NOT put the three files anywhere in the internal Tomcat tree (lib, 
server/lib, or common/lib). This will hose you.

3. Add the following line to your {JAVA_HOME}\jre\lib\security\java.security 
file (in the first section of settings, you'll see it):

   security.provider.9=com.sun.net.ssl.internal.ssl.Provider

The number is simply the order in which the JVM attempts to find suitable 
security providers. Just pick one that is not already in use by any 
existing "security.provider..." lines.

4. Execute the following in a terminal command-line:

   keytool -genkey -alias tomcat -keyalg RSA

It will start asking you questions about your cert. The only really crucial 
ones are when it asks you for a password (at two different times). You must use 
the same password in both places. You can type in the Tomcat default, which 
is "changeit" (all lowercase), or you can make up your own.

5. Uncomment the secure connector in {TC_HOME}\conf\server.xml

6. If you specified a password other than "changeit" when generating the 
keystore, edit the  tag nested within the relevant  tag. 
Add an attribute called "KeystorePass" with the value of your password. Your 
 tag should now look something like this:



If you just used "changeit", you can skip this step.

That's it. When you start Catalina up, it should now be running a secure socket 
on the specified port (8443 by default). No modifications to catalina.bat or 
any additional JVM parameters are necessary.

Note: Since I am addressing your specific problem, I left out the whole issue 
of where Tomcat looks for the keystore file in the above step-by-step. Tomcat 
obviously found the keystore file where it expected it in your case, but other 
users referencing this thread should be aware that I glossed over the whole 
keystore location issue. You can read all about it in my upcoming SSL guide =)

> > Do I have to make include a specific keystore in the catalina.policy
> using
> > policytool.exe?

Nope, that shouldn't be necessary.

> > How to modify the tomcat server.xml 's ssl connector to show the
> keystore
> > and keypass?

KeystoreFile and KeystorePass attributes on the  tag are where you put 
custom values, if either the location or password are anything other than the 
defaults.

> > Thanks for any hint on this wild matter.

You are quite welcome :)

> > France, Bordeaux, xml and gay pride.

That sounds like the possible anwers to a multiple choice question ;-)

Let me know if you have any other problems. I would recommend undoing whatever 
changes you made to Catalina.bat, including any JVM parameters you may have 
added, and following the above steps from scratch.

Good luck!

- Christopher



RE: Newbie help needed: installing TOMCAT on linux

2001-08-15 Thread Bob Wilson

Did you have a look at the documentation on the Apache site?  That's a 
pretty good starting place.  This is where I got started and I'm running 
Apache 1.3.20, Tomcat 3.2.3, Jetspeed 1.3a1, JDK 1.3.0_03 on SuSE Linux 7.1. 
  I suspect your setup will be very similar.

Here are a few sites to help...

www.apache.org

www.e-gineer.com/instructions/install-apache1xx-on-linux.phtml

I also found a really good article by doing a Google.com search in the user 
groups.  Search for 'apache'.  You should be able to come across an article 
by Chad ([EMAIL PROTECTED]) with the subject Apache Tomcat using mod_jk on 
Linux.

Newsgroup is comp.os.linux.networking

Hope this helps!

Bob.

_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp




Re: ISAPI Filter

2001-08-15 Thread Pier P. Fumagalli

Dave Finch at [EMAIL PROTECTED] wrote:

> Does anyone know where I can get the source code for the ISAPI filter?

What ISAPI filter? Mod_jk? They're in CVS.

Pier




Re: Newbie help needed: installing TOMCAT on linux

2001-08-15 Thread Pier P. Fumagalli

Dave Lopez at [EMAIL PROTECTED] wrote:

> How can I configure tomcat and apache to run on my redhat 7.1? thanks...

Read the documentation? It could help sometimes.




RE: Newbie help needed: installing TOMCAT on linux

2001-08-15 Thread Rob S.

Try the documentation for the version of Tomcat you're using at
http://jakarta.apache.org/tomcat/index.html

- r

> -Original Message-
> From: Dave Lopez [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, August 15, 2001 9:14 PM
> To: [EMAIL PROTECTED]
> Subject: Newbie help needed: installing TOMCAT on linux
>
>
> How can I configure tomcat and apache to run on my redhat 7.1? thanks...
>




ISAPI Filter

2001-08-15 Thread Dave Finch

Does anyone know where I can get the source code for the ISAPI filter?
 
TIA,
 
Dave Finch



RE: Servlet Runs SLow

2001-08-15 Thread Alberto Gobbi

Hi,
I am having the same problem, and for me the reason is that when I am
running tomcat and netscape on the same mashine, netscape will use all the
cputime while waiting for the answer from tomcat. This is stupid since
netscape could just stay idle, but that is how it is. so as long as netscape
is in the foreground (active window) tomcat will get only very litle of the
cpu. To see this just keep taskmanager running sorted on %cpu usage, yuo
will see netscape using 99% of the cpu while doing nothing.
To solve this problem you can do the following:
- run tomcat on different server.
- increase the priority of tomcat.
- decrease the priority of netscape.

Alberto


-Original Message-
From: Jim Seach [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 15, 2001 09:10
To: [EMAIL PROTECTED]
Subject: Re: Servlet Runs SLow


Sorry, I'm out of ideas.  The servlets I'm working on work fine in both
Netscape and IE.  You may want to try to collect some more information
(log begin/end times in the servlet, use a network monitor to see what
is happening, try different Netscape settings) and see if anything
unusual is happening.

Jim

--- "A.L." <[EMAIL PROTECTED]> wrote:
> The first time I load the page in Netscape everything
> seems fine,  it loads almost instantaneously. 
> However, when I submit the query to change the month
> calendar, netscape takes a while to reload the page
> and show the new calendar.  I can see that TOmcat
> receives the request immediately, and I assume that
> since Netscape appears to be loading it receives the
> response immediatley.
> 
> Thanks,
>   -Amos
> 
> 
> --- Jim Seach <[EMAIL PROTECTED]> wrote:
> > I copied the html into a static file and was able to
> > bring it up
> > immediately in Netscape 4.76, so it doesn't appear
> > to be the contents
> > of the form that is the problem.
> > 
> > Does it take a long time to display, or does it just
> > not appear to
> > finish loading?  I have also noticed that sometimes
> > even after the page
> > has loaded, Netscape still appears to be working. 
> > So far, I have just
> > ignored it.
> > 
> > Jim
> > 
> > --- "A.L." <[EMAIL PROTECTED]> wrote:
> > > Below is the code that is returned:
> > > 
> > > It seems that Netscape might have problems with
> > the
> > > FORM data.  It does seem as if the server is
> > sending
> > > the reponse immediately.  Or maybe it is having
> > > trouble with the javascript functions... Any
> > > suggestions
> > > 
> > > (I am only running TOmcat by the way)
> > > 
> > > 
> > > 
> > > 
> > > 
> > > Calendar
> > > 
> > > 
> > > 
> > > 
> > >  January 
> > >  February
> > >  March
> > >  April
> > >  May
> > >  June
> > > 
> > > 
> > > 
> > > March2001 > > NAME="date2"ACTION="/jd/Calendar"> > type=hidden
> > > NAME="d">function
> > > choose(n){document.date2.d.value =
> > >
> >
>
n;document.date2.submit();} > > href="javascript:choose(1)">1 > > href="javascript:choose(2)">2 > >
> >
> href="javascript:choose(3)">3 > > href="javascript:choose(4)">4 > > href="javascript:choose(5)">5 > > href="javascript:choose(6)">6 > > href="javascript:choose(7)">7 > > href="javascript:choose(8)">8 > > href="javascript:choose(9)">9 > >
> >
> href="javascript:choose(10)">10 > > href="javascript:choose(11)">11 > > href="javascript:choose(12)">12 > > href="javascript:choose(13)">13 > > href="javascript:choose(14)">14 > > href="javascript:choose(15)">15 > > href="javascript:choose(16)">16 > >
> >
> href="javascript:choose(17)">17 > > href="javascript:choose(18)">18 > > href="javascript:choose(19)">19 > > href="javascript:choose(20)">20 > > href="javascript:choose(21)">21 > > href="javascript:choose(22)">22 > > href="javascript:choose(23)">23 > >
> >
> href="javascript:choose(24)">24 > > href="javascript:choose(25)">25 > > href="javascript:choose(26)">26 > > href="javascript:choose(27)">27 > > href="javascript:choose(28)">28 > > href="javascript:choose(29)">29 > > href="javascript:choose(30)">30 > >
> >
> href="javascript:choose(31)">31
> > > 
> > > First_Name
> > > Amos
> > > Jeff
> > > Steve
> > > Cathy
> > > Patricia
> > > Cary
> > > Tom
> > > 
> > > 
> > > 
> > > 
> > > 
> > > --- Jim Seach <[EMAIL PROTECTED]> wrote:
> > > > I agree - it's worth looking at the client.  Do
> > you
> > > > have any large
> > > > tables?  I have had problems in the past with
> > > > Netscape taking a long
> > > > time (> 5 min) to load tables with several
> > thousand
> > > > rows.
> > > > 
> > > > Jim
> > > > 
> > > > --- Denis Haskin <[EMAIL PROTECTED]>
> > wrote:
> > > > > Do you know for sure the difference in 'load'
> > time
> > > > is at the server,
> > > > > and 
> > > > > not at the client?  What's the content coming
> > back
> > > > from the server? 
> > > > > I 
> > > > > would grab a copy of that, put it in a file,
> > and
> > > > load that in IE and 
> > > > > Netscape to see if there's any difference in
> > load
> > > > times.
> > > > > 
> > > > > I suppose it's possible that IE and Netscape
> > are
> > > > sending different
> > > >

Re: Newbie: IIS5/Tomcat3.2.3/Win2000sp1 -- please Help!!

2001-08-15 Thread Michael . Solitario


1. Check if you have localhost:8080
2. Try rebooting

Mike




Please respond to [EMAIL PROTECTED]

To:   <[EMAIL PROTECTED]>
cc:
Subject:  Newbie:  IIS5/Tomcat3.2.3/Win2000sp1 -- please Help!!



> Newbie:  IIS5/Tomcat3.2.3/Win2000sp1
>
> I apologize in advance if this appears to be a stupid question,
> however, I have not been able to figure out an answer:
>
>I am attempting to integrate IIS5 with Tomcat 3.2.3.  After
> performing the following, I recieve errors.  Any suggestions would be
> appreciated.
>
>1)  Installed Tomcat 3.2.3 and downloaded isapi_redirect.dll
>VERIFIED:  Tomcat and IIS both work independantly, I can
> load
> http://localhost:8080/examples/jsp/index.html
> directly through tomcat.
>
>2)  I followed the IIS-Tomcat HOW TO exactly.  I added these
> entries to the registry
>
> 1)  a Key called:  Apache Software Foundation/Jakarta
> Isapi Redirector/ 1.0
> 2)  String Value:  extension_uri =
> /jakarta/isapi_redirect.dll
> 3)  String Value:  log_file =
> C:\jakarta-tomcat-3.2.3\logs\isapi.log
> 4)  String VAlue:  worker_file =
> C:\jakarta-tomcat-3.2.3\conf\workers.properties
> 5)  String Value:  worker_mount_file =
> C:\jakarta-tomcat-3.2.3\conf\uriworkermap.properties
> 6)  String Value:  log_level = debug
>
>I have verified all of these registry entries
>3)  I went into IIS management console and added virtual
> directory /jakarta (with execute access) pointing to
> C:\jakarta-tomcat-3.2.3\bin\win32\i386 with contents of
> isapi_redirect.dll
>4)  Set up isapi filter on the default website for IIS pointing
> to isapi_redirect.dll in C:\jakarta-tomcat-3.2.3\bin\win32\i386.
>5)  Filter shows green arrow
>7) start up tomcat -- no error produced
>6)  Restart IIS from services (and web publisher)
>
>NOTE: workers.properties has only 3 changes
> 1) changed:  workers.tomcat_home=C:\jakarta-tomcat-3.2.3
> 2) changed:  workers.java_home=C:\jdk1.3.1
> 3)  Commented out all info for ajp13 worker
>
>NOTE: uriworkermap.properties has NOT been changed
>
>NOW  . . .  I go to http://localhost/examples/jsp/index.html and
> i recieve an error stateing:
>
>inetinfo.exe application error
>
>the instruction at "0x100042c0" referenced memory at
> "0x100042c0".  The memory could not be "read".
>
>
> Further the browser shows a "The page cannot be displayed" error
> Also, the isapi log says the following:
>
> [Jack Rudnick]  [jk_uri_worker_map.c (156)]: Into
> jk_uri_worker_map_t::uri_worker_map_alloc
[jk_uri_worker_map.c (196)]: Into
jk_uri_worker_map_t::uri_worker_map_open
[jk_uri_worker_map.c (211)]: jk_uri_worker_map_t::uri_worker_map_open,
rule map size is 2
[jk_uri_worker_map.c (267)]: Into
jk_uri_worker_map_t::uri_worker_map_open, match rule /servlet/=ajp12 was
added
[jk_uri_worker_map.c (267)]: Into
jk_uri_worker_map_t::uri_worker_map_open, match rule /examples/=ajp12
was added
[jk_uri_worker_map.c (296)]: Into
jk_uri_worker_map_t::uri_worker_map_open, there are 2 rules
[jk_uri_worker_map.c (317)]: jk_uri_worker_map_t::uri_worker_map_open,
done
[jk_worker.c (82)]: Into wc_open
[jk_worker.c (207)]: Into build_worker_map, creating 1 workers
[jk_worker.c (213)]: build_worker_map, creating worker ajp12
[jk_worker.c (138)]: Into wc_create_worker
[jk_worker.c (152)]: wc_create_worker, about to create instance ajp12 of
ajp12
[jk_ajp12_worker.c (264)]: Into ajp12_worker_factory
[jk_worker.c (161)]: wc_create_worker, about to validate and init ajp12
[jk_ajp12_worker.c (182)]: Into jk_worker_t::validate
[jk_ajp12_worker.c (194)]: In jk_worker_t::validate for worker ajp12
contact is localhost:8007
[jk_worker.c (177)]: wc_create_worker, done
[jk_worker.c (223)]: build_worker_map, removing old ajp12 worker
[jk_worker.c (235)]: build_worker_map, done
[jk_worker.c (102)]: wc_open, done
[jk_isapi_plugin.c (408)]: HttpFilterProc started
[jk_isapi_plugin.c (429)]: In HttpFilterProc test redirection of
/examples/jsp/index.html
[jk_uri_worker_map.c (345)]: Into jk_uri_worker_map_t::map_uri_to_worker
[jk_uri_worker_map.c (407)]: jk_uri_worker_map_t::map_uri_to_worker,
Found a match ajp12
[jk_isapi_plugin.c (439)]: HttpFilterProc [/examples/jsp/index.html] is
a servlet url - should redirect to ajp12
[jk_isapi_plugin.c (461)]: HttpFilterProc check if
[/examples/jsp/index.html] is points to the web-inf directory
[jk_uri_worker_map.c (176)]: Into
jk_uri_worker_map_t::uri_worker_map_free
[jk_uri_worker_map.c (327)]: Into
jk_uri_worker_map_t::uri_worker_map_close
[jk_uri_worker_map.c (335)]: jk_uri_worker_map_t::uri_worker_map_close,
NULL parameter
[jk_uri_worker_map.c (185)]: In
jk_uri_worker_map_t::uri_worker_map_free, NULL parameters
[jk_worker.c (109)]: Into wc_close
[jk_worker.c (111)]: wc_close, done

Does anyone have any ideas about this??  What is the potential problem?
I am in dire need of any assitance

Thanks in advance for any suggestions that anyone may have


Newbie help needed: installing TOMCAT on linux

2001-08-15 Thread Dave Lopez

How can I configure tomcat and apache to run on my redhat 7.1? thanks...



Re: Tomcat dies... help!

2001-08-15 Thread Sahar Madani

Did anyone answer this one yet.
I get this in one of my servers.  Both using jdk1.2.2
tail mod_jk.log
[jk_connect.c (143)]: jk_open_socket, connect() failed errno = 111
[jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1

Any ideas? thanks in advance.

Ronald Vyhmeister wrote:

> Tomcat is having serious problems which only happen at night when the usage goes 
>light... go figure.  here's the one consistent thing I know.  It gives this error and 
>then dies...
>
> [jk_ajp13_worker.c (203)]: connection_tcp_get_message: Error - jk_tcp_socket_rec
> vfull failed
> [jk_ajp13_worker.c (621)]: Error reading request
> [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 146
> [jk_ajp13_worker.c (173)]: In jk_endpoint_t::connect_to_tomcat, failed errno = 1
> 46
> ...
>
> What is wrong?  What can I do to fix it?
>
> Thanks!
>
> Ron Vyhmeister

--
Sahar Madani





Re: FW: catalina SSL

2001-08-15 Thread Craig R. McClanahan



On Thu, 16 Aug 2001, Pier P. Fumagalli wrote:

> OH SSL GURU! :) :) Do you have any clue  (Reply to all so it'll go in
> tomcat-users too!)
> 
> Pier
> 
> -- Forwarded Message
> From: "cib" <[EMAIL PROTECTED]>
> Reply-To: [EMAIL PROTECTED]
> Date: Wed, 15 Aug 2001 20:17:58 +0200
> To: "Tomcat User Mail list" <[EMAIL PROTECTED]>
> Subject: catalina SSL
> 
> Hi
> I'm getting used to Tomcat but not enough to get it work.
> Trying to install the SSL connector, but always getting a java IO exception,
> "keystore tampered".

That's one I've never seen before.

Have you followed the instructions (inside server.xml) exactly?

> I'm a complete newbie either in tomcat or in ssl, so I
> surely didn't do things right. Is there a good tutorial for this (I mean for
> catalina and ssl) , because most of litterature is relevant only for Tomcat
> previous versions, and Sun's documentation deals with java classes, not with
> applications that needs to be configurated through server.xml.
> 
> So, do I have to make changes to the catalina.bat, to include (in the
> dostartsecure / dorunsecure) the lines:
> -Djava.protocol.handler.pkgs=\com.sun.net.ssl.internal.www.protocol
> 

Is there really supposed to be a backslash (\) before "com.sun" ?

You can avoid the need to modify catalina.bat by setting an appropriate
value for the CATALINA_OPTS environment variable to the set of properties
you want to pass.  But I've not had to do this.

> Do I have to make include a specific keystore in the catalina.policy using
> policytool.exe?
> 
> How to modify the tomcat server.xml 's ssl connector to show the keystore
> and keypass?
> 
> Thanks for any hint on this wild matter.
> 
> Cib
> 
> France, Bordeaux, xml and gay pride.
> 
> 
> -- End of Forwarded Message
> 
> 

Craig





Re: Tomcat embedded in Apache

2001-08-15 Thread Pier P. Fumagalli

Kemp Randy-W18971 at [EMAIL PROTECTED] wrote:

> I found an article at http://www.linuxdevices.com/articles/AT7102892618.
> The article says this
> Apache 2.0 -- This is still in alpha now, with beta and final releases due
> at monthly intervals. It is faster and runs on more operating systems with
> the same level of stability as on Unix, and also supports dynamically
> loadable modules better. The Tomcat Java engine is built-in, enabling Apache
> to natively run Java Servlets and Java Server Pages.
> 
> Does that mean that the Tomcat engine will be part of the Apache download?


Nope...

Pier




Re: I can't get TOMCAT 4b6 and IIS5 to work over SSL

2001-08-15 Thread Pier P. Fumagalli

Curtis Dougherty at [EMAIL PROTECTED] wrote:

> I have Tomcat 4b6
> IIS 5
> Win2K
> 
> I have the redirect working...I think
> I have an SSL Certificate installed and working on my Win2K box
> 
> 
> When I request the INDEX.JSP page from my site
> https://mysite.someplace.com/fooey
> I GET the file AND I see the SSL icon on the browser but the ONLY thing my
> stupid browser shows is the UNCOMPILED JSP CODE
> Why is that?
> 
> When I point my browser to http://mysite.someplace.com:8080/fooey I GET
> COMPILED JSP code that RUNS.
> What am I doing wrong - Besides running IIS5 (the suits made me do it).

I don't quite get how IIS 5 gets into the picture...

Pier




Re: I can't get TOMCAT 4b6 and IIS5 to work over SSL

2001-08-15 Thread Craig R. McClanahan



On Wed, 15 Aug 2001, Curtis Dougherty wrote:

> I have Tomcat 4b6
> IIS 5
> Win2K
> 
> I have the redirect working...I think
> I have an SSL Certificate installed and working on my Win2K box
> 
> 
> When I request the INDEX.JSP page from my site
> https://mysite.someplace.com/fooey
> I GET the file AND I see the SSL icon on the browser but the ONLY thing my
> stupid browser shows is the UNCOMPILED JSP CODE
> Why is that?
> 
> When I point my browser to http://mysite.someplace.com:8080/fooey I GET
> COMPILED JSP code that RUNS.
> What am I doing wrong - Besides running IIS5 (the suits made me do it).
> 
> 
> - cd -
> 
> 

Tomcat 4 doesn't yet have a web connector for IIS.  That's in the future
plans.  You're probably just seeing IIS serve the file as static content.

Craig





I can't get TOMCAT 4b6 and IIS5 to work over SSL

2001-08-15 Thread Curtis Dougherty

I have Tomcat 4b6
IIS 5
Win2K

I have the redirect working...I think
I have an SSL Certificate installed and working on my Win2K box


When I request the INDEX.JSP page from my site
https://mysite.someplace.com/fooey
I GET the file AND I see the SSL icon on the browser but the ONLY thing my
stupid browser shows is the UNCOMPILED JSP CODE
Why is that?

When I point my browser to http://mysite.someplace.com:8080/fooey I GET
COMPILED JSP code that RUNS.
What am I doing wrong - Besides running IIS5 (the suits made me do it).


- cd -






Include issues?

2001-08-15 Thread Dan Garcia

I have a site where jsp pages do a lot of includes...  I'm using a 
cron job script calling a wget to check that the site is still up, and
i have something that'll page/email me if anything's wrong with the page.

What i'm seeing occur often is wget will only end up getting a partial
page back, and the 'boundry' of where this ends is almost always the end
of an include (e.g. it seems like a page gets included, and once it gets
included, processing stops).

I'm not seeing terribly many errors in the logs show up, at least nothing
relating to this - but I am seeing a LOT of the connection reset by peer
messages (which someone else, from the archives i searched/read, seemed
to feel was a mostly harmless error).

Any thoughts on why this would be happening?  I'm running jakarta 3.2.1, 
using ajp1.3, apache 1.3.12, a redhat 7.1 based box with IBM's 1.3 jdk, sr6.

--Dg





jakarta-tomcat-3.2.3.zip "conf" files are blank

2001-08-15 Thread Shawn

I put in the conf files I had been using for 3.2.2 and 3.2.3 seems to be
working fine.  Could that lead to some problems I haven't discovered yet?

Shawn




Re: Tomcat 4.0 and IIS

2001-08-15 Thread Pier P. Fumagalli

Patrick Peralta at [EMAIL PROTECTED] wrote:

> Hello List,
> 
> I've looked around on the website and mail list archives, but I can't seem
> to find out how to set up IIS to redirect to Tomcat 4.0.  I've read this
> document:
> 
> http://jakarta.apache.org/tomcat/tomcat-3.3-doc/tomcat-iis-howto.html
> 
> but it's for 3.3.  It does not appear to apply to 4.0.
> 
> Can anyone point me to documentation that gives directions on how to do
> this?

You can't use TC4.0 w/ IIS (yet!)... :)

Pier




RE: Newbie help needed: error running JSP

2001-08-15 Thread Rob S.

Well, of course the stack will be container-specific =)  In WebLogic, the
exception will be something like com.weblogic.blah.foo with a different
message.  The exception message there seemed descriptive enough to debug.

- r

> -Original Message-
> From: Kenneth Litwak [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, August 15, 2001 7:09 PM
> To: [EMAIL PROTECTED]
> Subject: RE: Newbie help needed: error running JSP
>
>
> Rob S. wrote:
> ot to be a jerk or anything, your "newbie help"
> questions are fine and all,
> but the problem is that the only connection they
> have to Tomcat is that
> you're using the container.
>
> It's like if I emailed the GCC or Visual Studio
> lists saying, "how come I'm
> getting all of these memory leaks in my
> programs?"  See what I'm saying?
> You really should pick up a book on JSPs /
> Servlets...
>
>Rob, I understand your point.  The reason I posted
> here is that the stack trace appears to me completley
> unique to Tomcat. Weblogic might produce totally
> different information, as might Websphere as might the
> J2EE RI.  I don't know what from the stack trace is
> unique to Tomcat, and therefore a config error I've
> made, and what is common to all JSP engines.  How do
> you know the diference?  Thanks.
>
> Ken
>
> __
> Do You Yahoo!?
> Make international calls for as low as $.04/minute with Yahoo! Messenger
> http://phonecard.yahoo.com/
>




RE: Newbie help needed: error running JSP

2001-08-15 Thread Kenneth Litwak

Thanks Jann for the help.  That's what I ndeed to
know:  where to look for the error.

Ken

__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/



RE: Newbie help needed: error running JSP

2001-08-15 Thread Jann VanOver

Look at the line:
 
jsp.f_00025rm._0002fjsp_0002fform_0002fForm_0002ejspForm_jsp_0._jspService(_
0002fjsp_0002fform_0002fForm_0002ejspForm_jsp_0.java:122)

THIS is where your error occurred.  Tomcat compiled your JSP page into the
named java file.  Look in your tomcat\work directory for this file.  It will
be in a folder named for your context.  Look at line 122 in that file and
see where it found a problem.  You can usually tell from that what you did
wrong.

I only worked with JRUN for a short while, but I seem to remember that it
was much nicer than Tomcat in this one respect, giving you the line number
back into your .jsp file instead of making you dig through the java file.

-Original Message-
From: Kenneth Litwak [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 15, 2001 3:35 PM
To: [EMAIL PROTECTED]
Subject: Newbie help needed: error running JSP


   I just ran my first JSP that uses a form and got an
error. Unfortunately, the stack trace doesn't tell me
where in the JSP the error occured (that I can tell)
or where in my helper bean the problem ight be.  I'd
heard that JSPs are hard to debug, and now I see why. 
The JSP engine is not very helpful with what's wrong. 
Here's the stack trace, followed by the JSP code.

Location: /examples/jsp/form/Form.jsp

Internal Servlet Error:

org.apache.jasper.JasperException: Attempted a bean
operation on a null object.
at
org.apache.jasper.runtime.JspRuntimeLibrary.handleGetProperty(JspRuntimeLibr
ary.java:424)
at
jsp.f_00025rm._0002fjsp_0002fform_0002fForm_0002ejspForm_jsp_0._jspService(_
0002fjsp_0002fform_0002fForm_0002ejspForm_jsp_0.java:122)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:177)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
at
org.apache.tomcat.core.Handler.service(Handler.java:286)
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.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:484)

JSP code:







User Registration



 
First Name 



Last Name






E-Mail 







What languages do you program in?

Java   
C++ 
C
Perl  
COBOL
VB





How often can we notify you regarding your
interests?

Weekly  
Monthly   
Quarterly 





 






<%-- Create the bean only when the form is posted --%>
<%
if (request.getMethod().equals("POST"))
 {
%>

<%-- provide a setProperty tag and ensure that the
setter methods are invoked via introspection 
--%>





You submitted:
First Name:
<%-- invoke the getter method to display the firstName
using the getProperty tag --%>

Last Name:
<%-- invoke the getter method to display the lastName
using the getProperty tag --%>

Email:
<%-- invoke the getter method to display the email
address using the getProperty tag 

--%>
Languages:
<%
   String[] lang = formHandler.getLanguages();
   if (!lang[0].equals("1")) 
   {
out.println("");
for (int i=0; i"+lang[i]);
out.println("");
   }
   else out.println("Nothing was selected");
%>
Notification:
<%-- invoke the getter method to display the
notification status using the getProperty tag 
--%>


<%
}
%>




I think this would be better as an attachment but lots
of mailing lists don't like those, so ugly or not,
there it is.  Thanks.

Ken

__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/



RE: Newbie help needed: error running JSP

2001-08-15 Thread Kenneth Litwak

Rob S. wrote:
ot to be a jerk or anything, your "newbie help" 
questions are fine and all,
but the problem is that the only connection they 
have to Tomcat is that
you're using the container.

It's like if I emailed the GCC or Visual Studio 
lists saying, "how come I'm
getting all of these memory leaks in my 
programs?"  See what I'm saying?
You really should pick up a book on JSPs / 
Servlets...

   Rob, I understand your point.  The reason I posted
here is that the stack trace appears to me completley
unique to Tomcat. Weblogic might produce totally
different information, as might Websphere as might the
J2EE RI.  I don't know what from the stack trace is
unique to Tomcat, and therefore a config error I've
made, and what is common to all JSP engines.  How do
you know the diference?  Thanks.

Ken

__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/



RE: auto-reload classes

2001-08-15 Thread Martin van den Bemt

Still assuming 3.x, sorry ;-)) 

> -Original Message-
> From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, August 16, 2001 12:29 AM
> To: [EMAIL PROTECTED]
> Subject: RE: auto-reload classes
> 
> 
> 
> 
> > >-Original Message-
> > >From: Martin van den Bemt [mailto:[EMAIL PROTECTED]]
> > >Sent: Wednesday, August 15, 2001 4:57 PM
> > >To: [EMAIL PROTECTED]
> > >Subject: RE: auto-reload classes
> > >
> > >
> > >set the reloadable="true" in you server.xml or other main xml 
> files (in the
> > >webapp config). Reloading is only possible for servlets btw, 
> so not classes
> > >used by servlets.
> > 
> 
> Just for the record, the last sentence is *not* true for Tomcat 4.  It
> reloads if *any* previously loaded class is recompiled.
> 
> Craig
> 
> 
> 



RE: Newbie help needed: error running JSP

2001-08-15 Thread Rob S.

Hiya Ken,

Not to be a jerk or anything, your "newbie help" questions are fine and all,
but the problem is that the only connection they have to Tomcat is that
you're using the container.

It's like if I emailed the GCC or Visual Studio lists saying, "how come I'm
getting all of these memory leaks in my programs?"  See what I'm saying?
You really should pick up a book on JSPs / Servlets...

- r

> -Original Message-
> From: Kenneth Litwak [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, August 15, 2001 6:35 PM
> To: [EMAIL PROTECTED]
> Subject: Newbie help needed: error running JSP
>
>
>I just ran my first JSP that uses a form and got an
> error. Unfortunately, the stack trace doesn't tell me
> where in the JSP the error occured (that I can tell)
> or where in my helper bean the problem ight be.  I'd
> heard that JSPs are hard to debug, and now I see why.
> The JSP engine is not very helpful with what's wrong.
> Here's the stack trace, followed by the JSP code.
>
> Location: /examples/jsp/form/Form.jsp
>
> Internal Servlet Error:
>
> org.apache.jasper.JasperException: Attempted a bean
> operation on a null object.
> at
> org.apache.jasper.runtime.JspRuntimeLibrary.handleGetProperty(JspR
> untimeLibrary.java:424)
> at
> jsp.f_00025rm._0002fjsp_0002fform_0002fForm_0002ejspForm_jsp_0._js
> pService(_0002fjsp_0002fform_0002fForm_0002ejspForm_jsp_0.java:122)
> at
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
> at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
> org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(Jsp
> Servlet.java:177)
> at
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
> at
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
> at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
> org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
> at
> org.apache.tomcat.core.Handler.service(Handler.java:286)
> at
> org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
> at
> org.apache.tomcat.core.ContextManager.internalService(ContextManag
> er.java:797)
> at
> org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
> at
> org.apache.tomcat.service.http.HttpConnectionHandler.processConnec
> tion(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:484)
>
> JSP code:
> 
> 
>  method=post>
> 
> 
>
> 
> User Registration
> 
>
> 
> 
> First Name
> 
> 
> 
> Last Name
> 
> 
> 
>
> 
> 
> E-Mail
> 
> 
> 
> 
>
> 
> 
> What languages do you program in?
> 
>  value="Java">Java  
>  value="C++">C++ 
>  value="C">C
>  value="Perl">Perl  
>  value="COBOL">COBOL
>  value="VB">VB
> 
> 
>
> 
> 
> How often can we notify you regarding your
> interests?
> 
>  checked>Weekly  
>  value="Monthly">Monthly  
>  value="Quarterly">Quarterly
> 
> 
>
> 
> 
>   type="reset"  value="Reset">
> 
> 
>
> 
> 
> 
> <%-- Create the bean only when the form is posted --%>
> <%
> if (request.getMethod().equals("POST"))
>  {
> %>
>  class="com.shopping.FormBean">
> <%-- provide a setProperty tag and ensure that the
> setter methods are invoked via introspection
> --%>
> 
> 
> 
> 
> 
> You submitted:
> First Name:
> <%-- invoke the getter method to display the firstName
> using the getProperty tag --%>
>  property="firstName"/>
> Last Name:
> <%-- invoke the getter method to display the lastName
> using the getProperty tag --%>
>  property="lastName"/>
> Email:
> <%-- invoke the getter method to display the email
> address using the getProperty tag
>  property="email"/>
> --%>
> Languages:
> <%
>String[] lang = formHandler.getLanguages();
>if (!lang[0].equals("1"))
>{
> out.println("");
> for (int i=0; i out.println(""+lang[i]);
> out.println("");
>}
>else out.println("Nothing was selected");
> %>
> Notification:
> <%-- invoke the getter method to display the
> notification status using the getProperty tag
> --%>
>  property="notify"/>
> 
> <%
> }
> %>
> 
> 
> 
>
> I think this would be better as an attachment but lots
> of mailing lists don't like those, so ugly or not,
> there it is.  Thanks.
>
> Ken
>
> __
> Do You Yahoo!?
> Make international calls for as low as $.04/minute with Yahoo! Messenger
> http://phonecard.yahoo.com/
>




jakarta-tomcat-3.2.3.zip "conf" files are blank

2001-08-15 Thread Jesse_Perez





I've been using Tomcat 3.2.1 for last 8 months and decided to upgrade to 3.2.3.
I downloaded "jakarta-tomcat-3.2.3.zip" but all the files in the "conf"
directory are blank.
I downloaded a second time but still bad files.

This is supposed to be a Release build.

Has anyone else experienced this?

 thanks, Jesse Perez
  Candle Corp





I can't get TOMCAT 4b6 and IIS5 to work over SSL

2001-08-15 Thread Curtis Dougherty

I have Tomcat 4b6
IIS 5
Win2K

I have the redirect working...I think
I have an SSL Certificate installed and working on my Win2K box


When I request the INDEX.JSP page from my site
https://mysite.someplace.com/fooey
I GET the file AND I see the SSL icon on the browser but the ONLY thing my
stupid browser shows is the UNCOMPILED JSP CODE
Why is that?

When I point my browser to http://mysite.someplace.com:8080/fooey I GET
COMPILED JSP code that RUNS.
What am I doing wrong - Besides running IIS5 (the suits made me do it).


- cd -




Newbie help needed: error running JSP

2001-08-15 Thread Kenneth Litwak

   I just ran my first JSP that uses a form and got an
error. Unfortunately, the stack trace doesn't tell me
where in the JSP the error occured (that I can tell)
or where in my helper bean the problem ight be.  I'd
heard that JSPs are hard to debug, and now I see why. 
The JSP engine is not very helpful with what's wrong. 
Here's the stack trace, followed by the JSP code.

Location: /examples/jsp/form/Form.jsp

Internal Servlet Error:

org.apache.jasper.JasperException: Attempted a bean
operation on a null object.
at
org.apache.jasper.runtime.JspRuntimeLibrary.handleGetProperty(JspRuntimeLibrary.java:424)
at
jsp.f_00025rm._0002fjsp_0002fform_0002fForm_0002ejspForm_jsp_0._jspService(_0002fjsp_0002fform_0002fForm_0002ejspForm_jsp_0.java:122)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:177)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
at
org.apache.tomcat.core.Handler.service(Handler.java:286)
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
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:484)

JSP code:







User Registration



 
First Name 



Last Name






E-Mail 







What languages do you program in?

Java   
C++ 
C
Perl  
COBOL
VB





How often can we notify you regarding your
interests?

Weekly  
Monthly   
Quarterly 





 






<%-- Create the bean only when the form is posted --%>
<%
if (request.getMethod().equals("POST"))
 {
%>

<%-- provide a setProperty tag and ensure that the
setter methods are invoked via introspection 
--%>





You submitted:
First Name:
<%-- invoke the getter method to display the firstName
using the getProperty tag --%>

Last Name:
<%-- invoke the getter method to display the lastName
using the getProperty tag --%>

Email:
<%-- invoke the getter method to display the email
address using the getProperty tag 

--%>
Languages:
<%
   String[] lang = formHandler.getLanguages();
   if (!lang[0].equals("1")) 
   {
out.println("");
for (int i=0; i"+lang[i]);
out.println("");
   }
   else out.println("Nothing was selected");
%>
Notification:
<%-- invoke the getter method to display the
notification status using the getProperty tag 
--%>


<%
}
%>




I think this would be better as an attachment but lots
of mailing lists don't like those, so ugly or not,
there it is.  Thanks.

Ken

__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/



RE: auto-reload classes

2001-08-15 Thread Craig R. McClanahan



> >-Original Message-
> >From: Martin van den Bemt [mailto:[EMAIL PROTECTED]]
> >Sent: Wednesday, August 15, 2001 4:57 PM
> >To: [EMAIL PROTECTED]
> >Subject: RE: auto-reload classes
> >
> >
> >set the reloadable="true" in you server.xml or other main xml files (in the
> >webapp config). Reloading is only possible for servlets btw, so not classes
> >used by servlets.
> 

Just for the record, the last sentence is *not* true for Tomcat 4.  It
reloads if *any* previously loaded class is recompiled.

Craig





RE: auto-reload classes

2001-08-15 Thread Erwin Moller

At 04:56 PM 8/15/01 -0500, you wrote:
>Thanks, man.
>
>Does setting "reloadable=true" affect performance much?
>
>-Original Message-
>From: Martin van den Bemt [mailto:[EMAIL PROTECTED]]
>Sent: Wednesday, August 15, 2001 4:57 PM
>To: [EMAIL PROTECTED]
>Subject: RE: auto-reload classes
>
>
>set the reloadable="true" in you server.xml or other main xml files (in the
>webapp config). Reloading is only possible for servlets btw, so not classes
>used by servlets.

Yep, Martin is right. 
It takes the fun right out of reloadable=true, don't you think so?
When you put objects in your servletcontext or in a session you will also
have to restart Tomcat because of nullpointerexceptions... 
(Do you guys also have a restart-tomcat-batchfile?)

Okay, my advise would be: Do not rely on reloadable is true if your
servlets do anything more than pitting out a straitforward response.

Good luck,
Erwin

>
>Mvgr,
>Martin
>
>> -Original Message-
>> From: Mills, Theo [mailto:[EMAIL PROTECTED]]
>> Sent: Wednesday, August 15, 2001 11:50 PM
>> To: '[EMAIL PROTECTED]'
>> Subject: auto-reload classes
>>
>>
>> Where is the option to toggle the auto-reload classes capability? In other
>> words, i make a change to a class in my WEB-INF/classes directory. Don't I
>> normally need to restart tomcat? Is there an option that avoids a restart?
>>
>> -Theo
>>
>
>




RE: auto-reload classes

2001-08-15 Thread Martin van den Bemt

It does.. Every request triggers a check if the file has been in updated and
changed, so if you have a lot of hits, it will be noticable.. Since
reloading (at least my experience) is not the most stable (it can have some
strange results..) thing that could happen to you, I would not use it in
production environments anyway. For development it is ok.. If you have 10
servlets and 600 supporting classes, reloading doesn't help very much...
(catalina should handle this properly btw..)

In tomcat 3.3 (now beta) you can select ( is default as far as I know)  to
do context reloading, which I personally prefer while developing..

Mvgr,
Martin

> -Original Message-
> From: Mills, Theo [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, August 15, 2001 11:56 PM
> To: '[EMAIL PROTECTED]'
> Subject: RE: auto-reload classes
>
>
> Thanks, man.
>
> Does setting "reloadable=true" affect performance much?
>
> -Original Message-
> From: Martin van den Bemt [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, August 15, 2001 4:57 PM
> To: [EMAIL PROTECTED]
> Subject: RE: auto-reload classes
>
>
> set the reloadable="true" in you server.xml or other main xml
> files (in the
> webapp config). Reloading is only possible for servlets btw, so
> not classes
> used by servlets.
>
> Mvgr,
> Martin
>
> > -Original Message-
> > From: Mills, Theo [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, August 15, 2001 11:50 PM
> > To: '[EMAIL PROTECTED]'
> > Subject: auto-reload classes
> >
> >
> > Where is the option to toggle the auto-reload classes
> capability? In other
> > words, i make a change to a class in my WEB-INF/classes
> directory. Don't I
> > normally need to restart tomcat? Is there an option that avoids
> a restart?
> >
> > -Theo
> >
>




Re: Trouble running a servlet

2001-08-15 Thread Tim O'Neil

At 02:46 PM 8/15/2001, you wrote:
>   I'm trying to run Tomcat on W2K disconnected from
>the Internet.  In asking for help, I got one reply
>which said
>What solved the last of my disconnected-laptop
>issues (on Win98 at least)
>was adding a LOCALHOST entry in
>"c:\windows\hosts" (create it if needed):
>
>   127.0.0.1 localhost
>
>Win98 looks here first before it tries accessing
>your configured DNS
>servers, which is when it would try to access the
>network.
>
>Unfortunately, my system already has hosts files and
>they all include 127.0.01 localhost.  Thanks.

No, it MUST be "127.0.0.1", what you have there is
a typo. Also, there's only one file it should be in,
"hosts". Anything else is a mistake or a Microsoft
machination (LMHOSTS is not a traditional network config
file). If that's not working for you try addressing
your server as "http://127.0.0.1/"; + your tomcat examples
dir, that will work.




Re: auto-reload classes

2001-08-15 Thread Bo Xu

"Mills, Theo" wrote:

> Where is the option to toggle the auto-reload classes capability? In other
> words, i make a change to a class in my WEB-INF/classes directory. Don't I
> normally need to restart tomcat? Is there an option that avoids a restart?
>
> -Theo

the auto-reloading of TC4.0-b6/b7 works well, if you update a class, after
a while(perhaps it is before next accessing of this class), this updated class

has already been auto-reloaded, so you don't need to restart TOMCAT.



Bo
Aug.15, 2001






RE: auto-reload classes

2001-08-15 Thread Mills, Theo

Thanks, man.

Does setting "reloadable=true" affect performance much?

-Original Message-
From: Martin van den Bemt [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 15, 2001 4:57 PM
To: [EMAIL PROTECTED]
Subject: RE: auto-reload classes


set the reloadable="true" in you server.xml or other main xml files (in the
webapp config). Reloading is only possible for servlets btw, so not classes
used by servlets.

Mvgr,
Martin

> -Original Message-
> From: Mills, Theo [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, August 15, 2001 11:50 PM
> To: '[EMAIL PROTECTED]'
> Subject: auto-reload classes
>
>
> Where is the option to toggle the auto-reload classes capability? In other
> words, i make a change to a class in my WEB-INF/classes directory. Don't I
> normally need to restart tomcat? Is there an option that avoids a restart?
>
> -Theo
>



RE: auto-reload classes

2001-08-15 Thread Martin van den Bemt

set the reloadable="true" in you server.xml or other main xml files (in the
webapp config). Reloading is only possible for servlets btw, so not classes
used by servlets.

Mvgr,
Martin

> -Original Message-
> From: Mills, Theo [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, August 15, 2001 11:50 PM
> To: '[EMAIL PROTECTED]'
> Subject: auto-reload classes
>
>
> Where is the option to toggle the auto-reload classes capability? In other
> words, i make a change to a class in my WEB-INF/classes directory. Don't I
> normally need to restart tomcat? Is there an option that avoids a restart?
>
> -Theo
>




auto-reload classes

2001-08-15 Thread Mills, Theo

Where is the option to toggle the auto-reload classes capability? In other
words, i make a change to a class in my WEB-INF/classes directory. Don't I
normally need to restart tomcat? Is there an option that avoids a restart?

-Theo



Re: Trouble running a servlet

2001-08-15 Thread Kenneth Litwak

  I'm trying to run Tomcat on W2K disconnected from
the Internet.  In asking for help, I got one reply
which said
What solved the last of my disconnected-laptop 
issues (on Win98 at least)  
was adding a LOCALHOST entry in 
"c:\windows\hosts" (create it if needed):

  127.0.0.1 localhost

Win98 looks here first before it tries accessing 
your configured DNS
servers, which is when it would try to access the 
network.

Unfortunately, my system already has hosts files and
they all include 127.0.01 localhost.  Thanks.


Ken


__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/



public key for signature on jakarta-tomcat-3.2.3-src.tar.gz not found

2001-08-15 Thread Aaron Seth

I just downloaded Tomcat 3.2.3 and before even attempting to build it
I have a problem: it appears that the signature on
jakarta-tomcat-3.2.3-src.tar.gz doesn't match any of the Apache
developer signatures in the KEYS file distributed at
http://www.apache.org/dist/

(It also appears that someone else pointed out this very same problem
awhile back, but I didn't see any replies in the mailing list
archives, so I'll inquire again).

I'm using GNUPG 1.0.6 on FreeBSD 4.3 to attempt to check the
signature.

asc@mauinui: ~> gpg /tmp/jakarta-tomcat-3.2.3-src.tar.gz.asc
gpg: Signature made Tue Jul 17 07:38:39 2001 HST using DSA key ID 45ABB45D
gpg: Can't check signature: public key not found

asc@mauinui: ~> gpg --import KEYS
gpg: key 2719AF35: not changed
gpg: key A99F75DD: not changed
gpg: key A0BB71C1: not changed
gpg: key 08C975E5: not changed
gpg: key DD919C31: not changed
gpg: key 940A64BD: not changed
gpg: key 631B5749: not changed
gpg: key 49A563D9: not changed
gpg: key 2F90A69D: not changed
gpg: key BA20321D: no valid user IDs
gpg: this may be caused by a missing self-signature
gpg: key 26BB437D: not changed
gpg: key 45B91DF1: no valid user IDs
gpg: this may be caused by a missing self-signature
gpg: key 163751F5: not changed
gpg: key EE65E321: not changed
gpg: key FDE534D1: not changed
gpg: key EC140B81: not changed
gpg: key F08E012A: not changed
gpg: key F88341D9: not changed
gpg: key 28AA55C5: not changed
gpg: key C808A7BF: not changed
gpg: key 00ADEBF5: not changed
gpg: key 62C48B29: not changed
gpg: key 10FDE075: not changed
gpg: Total number processed: 23
gpg:   w/o user IDs: 2
gpg:  unchanged: 21

Maybe I'm overly paranoid, but I can't help thinking about the
not-too-long-ago compromise of the Apache.org site.  Any suggestions
for how to remedy this problem?

Thanks-

Aaron



Re: interesting mistake in the tomcat implementation jsp standart.

2001-08-15 Thread Craig R. McClanahan

This is a user error.

It is not valid to reference pageContext outside the actual execution of
the tag.  Once doEndTag() is called, none of the instance variables have
any valid values.


Craig McClanahan


On Wed, 15 Aug 2001, YMikulski wrote:

> Hello!
> I found a mistake in implementation jsp standart.
> Please, look at this code and comments in it.
> --
> package test;
> 
> import javax.servlet.*;
> import javax.servlet.http.*;
> import javax.servlet.jsp.*;
> import javax.servlet.jsp.tagext.*;
> 
> public class TestTag extends TagSupport implements
> HttpSessionBindingListener, java.io.Serializable {
> 
>   public final int doEndTag() throws JspException {
> pageContext.getSession().setAttribute("stat.notify", this);
>   }
> 
>   public void valueUnbound(HttpSessionBindingEvent event) {
>// MISTAKE!!!
>// When session expires or we execute session.invalidate(),
>// valueUnbound method is called and pageContext.getServletContext()
>// returns null!!! (in this example: context is null).
>ServletContext context = pageContext.getServletContext();
>   }
> }
> 
> Regards, Yauheni Mikulski
> 
> 
> 
> 




Adding RdHtLnxCMB@netscape.net to tomcat-user mailing list

2001-08-15 Thread RdHtLnxCMB




__
Your favorite stores, helpful shopping tools and great gift ideas. Experience the 
convenience of buying online with Shop@Netscape! http://shopnow.netscape.com/

Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/




interesting mistake in the tomcat implementation jsp standart.

2001-08-15 Thread YMikulski

Hello!
I found a mistake in implementation jsp standart.
Please, look at this code and comments in it.
--
package test;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import javax.servlet.jsp.tagext.*;

public class TestTag extends TagSupport implements
HttpSessionBindingListener, java.io.Serializable {

  public final int doEndTag() throws JspException {
pageContext.getSession().setAttribute("stat.notify", this);
  }

  public void valueUnbound(HttpSessionBindingEvent event) {
   // MISTAKE!!!
   // When session expires or we execute session.invalidate(),
   // valueUnbound method is called and pageContext.getServletContext()
   // returns null!!! (in this example: context is null).
   ServletContext context = pageContext.getServletContext();
  }
}

Regards, Yauheni Mikulski






Re: mod_jk.so + apache

2001-08-15 Thread David Smith

I place mod_jk.so in my /etc/httpd/modules directory and then used
LoadModule jk_modulemodules/mod_jk.so

in httpd.conf.  Either case, check where your mod_jk.so file is and set the 
LoadModule directive to it.  Either absolute or relative path to /etc/httpd 
should work.

I'm also on a Mandrake 8 box, so individual OS and/or Apache install mileage 
may very.

--David Smith

On Tuesday 14 August 2001 09:09 pm, you wrote:
> >My probleme:
> >when I try to start apache:
> >
> >#apachectl start
> >Starting httpd: Syntax error on line 774 of /etc/httpd/conf/httpd.conf:
> >Invalid command 'JkMount', perhaps mis-spelled or defined by a module
> >not included in the server configuration
> >[FAILED]
> >
> >Thank you
> >
> >Yann Sagon
>
> you have this line in your httpd.conf -
> LoadModule jk_module  libexec/mod_jk.so
>
> maybe it should be -
> LoadModule jk_module  /etc/httpd/libexec/mod_jk.so
>
> I'm just as new to this as you are so I'm probably wrong :)



Ajp12Interceptor, tomcatAuthentication="false" not functioning ?

2001-08-15 Thread Joe Van Demark

I'm running Apache/tomcat 3.3 Beta with jserv.

My server.xml contains the following RequestInterceptor tag/element

  

But it doesn't seem that tomcatAuthentication is actually disabled.

Looking at the code I see the following

The AjpInteceptor instantiates both AjpRequest and AjpResponse objects.
The instantiation of AjpRequest in turn instantiates an instance of Ajp12
which is where we read off the stream from jserv.

Both AjpInterceptor and Ajp12 default tomcatAuthentication to true.

when Ajp12 is reading the stream it will ignore the remote users if
tomcat Authentication is true.

if (isTomcatAuthentication())
dummy=readString(ajpin, null);
else

which is what is happening.

It would seem to me given the Request interceptor definition
in server.xml that Ajp12 should be reading the remote user,
i.e. tomcatAuthentication is false.

Since Ajp12Interceptor instantiates Ajp12 I would expect given
the server.xml def it would make a call to Ajp12 to set tomcat
authentication to false. This might possible occur in the
processConnection method:


if( reqA==null || resA==null ) {
reqA = new AJP12Request();
reqA.setSecret( secret );
((AJP12Request)reqA).setTomcatAuthentication(
isTomcatAuthentication());
resA=new AJP12Response();
cm.initRequest( reqA, resA );
}

But it would require that the local instance field tomcatAuthentication 
be set to false
if it were to work at all. None of this is happening as far as I can tell.

Basically I don't see a path through the code which would disable 
tomcatAuthentication
that corresponds the the server.xml Request Intercepter definition.

The only way I've been able to disable the tomcatAuthentication and read 
a remote_user
off the jserv stream was to modify Ajp12, defaulting 
tomcatAuthentication to false.

Any insight would be appreciated.

-- 

Joe Van Demark
[EMAIL PROTECTED]





Re: db connection denied access

2001-08-15 Thread Tim O'Neil

At 11:49 AM 8/15/2001, you wrote:
>If you're going to be using MySQL, do yourself a favor and buy this book:
>
>http://www.amazon.com/exec/obidos/ASIN/0735709211/qid=997901246/sr=2-2/107-4
>535935-5049369

Or, do yourself a bigger favor and use Postgres.




RE: Newbie: How do I rebuild Tomcat under Win2k

2001-08-15 Thread Tim O'Neil

At 12:38 PM 8/15/2001, you wrote:
>Having just been through this, start here:
>
>http://jakarta.apache.org/tomcat/index.html
>
>Download what you need and install/configure according to the information
>presented therein.

Michael, what did you use, DevStudio, or something like
Ming32 or GNU for Win32 or...?





RE: Newbie: How do I rebuild Tomcat under Win2k

2001-08-15 Thread Michael Reeves

Having just been through this, start here:

http://jakarta.apache.org/tomcat/index.html

Download what you need and install/configure according to the information
presented therein.

Sincerely,

Michael L. Reeves (c)?(c)

-Original Message-
From: Peter L. Markowsky [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 15, 2001 1:02 PM
To: Jason Koeninger
Cc: [EMAIL PROTECTED]
Subject: Newbie: How do I rebuild Tomcat under Win2k

I'm really green at this so please bear with me, How does one step by step
rebuild Tomcat under a WIN32 enviroment. I'm currently using a p3 500mhz
win2k professional machine.

Thanks in advance,
Pete Markowsky




Tomcat 4.0 and IIS

2001-08-15 Thread Patrick Peralta

Hello List,

I've looked around on the website and mail list archives, but I can't seem
to find out how to set up IIS to redirect to Tomcat 4.0.  I've read this
document:

http://jakarta.apache.org/tomcat/tomcat-3.3-doc/tomcat-iis-howto.html

but it's for 3.3.  It does not appear to apply to 4.0.

Can anyone point me to documentation that gives directions on how to do
this?

Thanks!
Patrick



Newbie: IIS5/Tomcat3.2.3/Win2000sp1 -- please Help!!

2001-08-15 Thread Jack Rudnick


> Newbie:  IIS5/Tomcat3.2.3/Win2000sp1
> 
> I apologize in advance if this appears to be a stupid question,
> however, I have not been able to figure out an answer:
> 
>   I am attempting to integrate IIS5 with Tomcat 3.2.3.  After
> performing the following, I recieve errors.  Any suggestions would be
> appreciated.
> 
>   1)  Installed Tomcat 3.2.3 and downloaded isapi_redirect.dll
>   VERIFIED:  Tomcat and IIS both work independantly, I can
> load
>  http://localhost:8080/examples/jsp/index.html
> directly through tomcat.
> 
>   2)  I followed the IIS-Tomcat HOW TO exactly.  I added these
> entries to the registry
> 
>   1)  a Key called:  Apache Software Foundation/Jakarta
> Isapi Redirector/ 1.0
>   2)  String Value:  extension_uri =
> /jakarta/isapi_redirect.dll
>   3)  String Value:  log_file =
> C:\jakarta-tomcat-3.2.3\logs\isapi.log
>   4)  String VAlue:  worker_file =
> C:\jakarta-tomcat-3.2.3\conf\workers.properties
>   5)  String Value:  worker_mount_file =
> C:\jakarta-tomcat-3.2.3\conf\uriworkermap.properties
>   6)  String Value:  log_level = debug
> 
>   I have verified all of these registry entries
>   3)  I went into IIS management console and added virtual
> directory /jakarta (with execute access) pointing to
> C:\jakarta-tomcat-3.2.3\bin\win32\i386 with contents of
> isapi_redirect.dll
>   4)  Set up isapi filter on the default website for IIS pointing
> to isapi_redirect.dll in C:\jakarta-tomcat-3.2.3\bin\win32\i386.
>   5)  Filter shows green arrow
>   7) start up tomcat -- no error produced
>   6)  Restart IIS from services (and web publisher)
> 
>   NOTE: workers.properties has only 3 changes
>   1) changed:  workers.tomcat_home=C:\jakarta-tomcat-3.2.3
>   2) changed:  workers.java_home=C:\jdk1.3.1
>   3)  Commented out all info for ajp13 worker
> 
>   NOTE: uriworkermap.properties has NOT been changed
> 
>   NOW  . . .  I go to http://localhost/examples/jsp/index.html and
> i recieve an error stateing:
> 
>   inetinfo.exe application error
> 
>   the instruction at "0x100042c0" referenced memory at
> "0x100042c0".  The memory could not be "read".
> 
> 
> Further the browser shows a "The page cannot be displayed" error
> Also, the isapi log says the following:
> 
>[Jack Rudnick]  [jk_uri_worker_map.c (156)]: Into
> jk_uri_worker_map_t::uri_worker_map_alloc
[jk_uri_worker_map.c (196)]: Into
jk_uri_worker_map_t::uri_worker_map_open
[jk_uri_worker_map.c (211)]: jk_uri_worker_map_t::uri_worker_map_open,
rule map size is 2
[jk_uri_worker_map.c (267)]: Into
jk_uri_worker_map_t::uri_worker_map_open, match rule /servlet/=ajp12 was
added
[jk_uri_worker_map.c (267)]: Into
jk_uri_worker_map_t::uri_worker_map_open, match rule /examples/=ajp12
was added
[jk_uri_worker_map.c (296)]: Into
jk_uri_worker_map_t::uri_worker_map_open, there are 2 rules
[jk_uri_worker_map.c (317)]: jk_uri_worker_map_t::uri_worker_map_open,
done
[jk_worker.c (82)]: Into wc_open
[jk_worker.c (207)]: Into build_worker_map, creating 1 workers
[jk_worker.c (213)]: build_worker_map, creating worker ajp12
[jk_worker.c (138)]: Into wc_create_worker
[jk_worker.c (152)]: wc_create_worker, about to create instance ajp12 of
ajp12
[jk_ajp12_worker.c (264)]: Into ajp12_worker_factory
[jk_worker.c (161)]: wc_create_worker, about to validate and init ajp12
[jk_ajp12_worker.c (182)]: Into jk_worker_t::validate
[jk_ajp12_worker.c (194)]: In jk_worker_t::validate for worker ajp12
contact is localhost:8007
[jk_worker.c (177)]: wc_create_worker, done
[jk_worker.c (223)]: build_worker_map, removing old ajp12 worker 
[jk_worker.c (235)]: build_worker_map, done
[jk_worker.c (102)]: wc_open, done
[jk_isapi_plugin.c (408)]: HttpFilterProc started
[jk_isapi_plugin.c (429)]: In HttpFilterProc test redirection of
/examples/jsp/index.html
[jk_uri_worker_map.c (345)]: Into jk_uri_worker_map_t::map_uri_to_worker
[jk_uri_worker_map.c (407)]: jk_uri_worker_map_t::map_uri_to_worker,
Found a match ajp12
[jk_isapi_plugin.c (439)]: HttpFilterProc [/examples/jsp/index.html] is
a servlet url - should redirect to ajp12
[jk_isapi_plugin.c (461)]: HttpFilterProc check if
[/examples/jsp/index.html] is points to the web-inf directory
[jk_uri_worker_map.c (176)]: Into
jk_uri_worker_map_t::uri_worker_map_free
[jk_uri_worker_map.c (327)]: Into
jk_uri_worker_map_t::uri_worker_map_close
[jk_uri_worker_map.c (335)]: jk_uri_worker_map_t::uri_worker_map_close,
NULL parameter
[jk_uri_worker_map.c (185)]: In
jk_uri_worker_map_t::uri_worker_map_free, NULL parameters
[jk_worker.c (109)]: Into wc_close
[jk_worker.c (111)]: wc_close, done

Does anyone have any ideas about this??  What is the potential problem?
I am in dire need of any assitance

Thanks in advance for any suggestions that anyone may have

Jack
[EMAIL PROTECTED]

>   
> 



Tomcat stops serving requests...Please help

2001-08-15 Thread Venu Babu

Hi! 
I posted this message  couple of days back. I didn't get any response. So I
am posting again.
Please help us out.
we are using Tomcat 3.2.1 with Apache http server. We are using this
setup in production. After running 3 days, Tomcat stopped serving requests
and throws null pointer exception when tried to access any JSP. See the
exception below...

Internal Servlet Error:
java.lang.NullPointerException at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
at org.apache.tomcat.core.Handler.service(Handler.java:286)
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at
org.apache.tomcat.service.connector.Ajp13ConnectionHandler.processConnection
(Ajp13ConnectionHandler.java:160)
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:484)

Before this happened, there were some "Connection reset by peer" errors.
Can someone please help us on this.

 



RE: Does the servlet security model work with the J2EE Blueprint MVC?

2001-08-15 Thread Craig R. McClanahan



On Wed, 15 Aug 2001, Lin, Zhongwu wrote:

> I have a question about the last paragraph of you answer.
> 
>   [Lin, Zhongwu]  
>   can you explain in more detail on the last paragraph:
>   put those JSP pages inside the /WEB-INF
>   directory.  This works because the container will refuse to serve
> anything
>   under /WEB-INF directly to the user, but RequestDispatcher.forward()
> can
>   still be used to display them.
>   [Lin, Zhongwu]  How do I reference those JSP pages inmy app?
>   should I do like:
>   /WEB_INF/mypage.jsp   
> 
> > > -Jerome
> > 
> > Craig McClanahan
> > 
> 

Let's start with a simple experiment.  Start up Tomcat and request the
following URL:

  http://localhost:8080/examples/WEB-INF/web.xml

What happens?  You get a 404 error, even though the web.xml file is really
there.  This is based on a Servlet Specification restriction that
*nothing* inside the "/WEB-INF" directory may be served directly to a
client in response to a request.

However, it is legal to access these contents from within a servlet or JSP
page, or access them through a request dispatcher.  For example, I could
read the contents of web.xml myself like this:

  InputStream is =
   getServletContext().getResourceAsStream("/WEB-INF/web.xml");

or, if I have a JSP page "foo.jsp" in the /WEB-INF directory, I can do
this:

  RequestDispatcher rd =
   getServletContext().getRequestDispatcher("/WEB-INF/foo.jsp");
  rd.forward(request, response);

or (from a JSP page):

  

This works because the access is from *inside* the web app, whereas the
following request (from a client) will generate a 404:

  http://localhost:8080/examples/WEB-INF/foo.jsp

In summary, if you are using an MVC style application architecture like
that proposed in J2EE Blueprints (or in Struts), you can easily make it
impossible for your users to navigate directly to a page without going
through the controller first.

Craig





Re: Re[2]: Re[2]: Servlet Runs SLow

2001-08-15 Thread A.L.

Jonathan,
  Thank you very much.  It may take me a little while,
but I am going to make every effort to understand the
improvements you made.
   I will say, that netscape is loading the html much
quicker.  Nevertheless, once in a while it does take a
while to load the page...  Sometimes it even loads the
page, but continues to appear as if more data is
loading.  I guess that these are just netscape issues.

-Amos Lieberman





--- Jonathan Pierce <[EMAIL PROTECTED]>
wrote:
> Amos,
> 
> I fixed a few things for you. Try my version.
> 
> #1: There was no need to keep allocating
> StringBuffers, I just passed the output
> PrintWriter.
> #2: I fixed your form action to use the request
> context path for the action
> instead of hard-coding it.
> #3. I added a call to out.flush () before your
> out.close () as I suggested
> before to force the output stream to flush.
> 
> Let me know if it runs fast now...
> 
> Jonathan   
> 
> Reply
> Separator
> Subject:Re: Re[2]: Servlet Runs SLow
> Author: [EMAIL PROTECTED]
> Date:   8/15/2001 9:42 AM
> 
> Jonathan,
> 
> Attached are the servlet and object files
> i'm new to Java, so my design may be poor.  Let me
> know if you have any questions.
> 
> Thanks,
>-Amos
> 
> --- Jonathan Pierce <[EMAIL PROTECTED]>
> wrote:
> > The problem is probably something you are doing in
> > your servlet. 
> > Try hitting the /examples/servlet/SnoopServlet in
> > your action instead of your
> > /jd/Calendar call and see if it is fast.
> > 
> >  If you want, send me the source to your servlet
> and
> > I'll take a look at what
> > you are doing that Netscape is sensitive to. 
> > 
> > Perhaps you are not flushing the output stream in
> > your response.
> > 
> > Reply
> > Separator
> > Subject:Re: Servlet Runs SLow
> > Author: [EMAIL PROTECTED]
> > Date:   8/15/2001 9:10 AM
> > 
> > Sorry, I'm out of ideas.  The servlets I'm working
> > on work fine in both
> > Netscape and IE.  You may want to try to collect
> > some more information
> > (log begin/end times in the servlet, use a network
> > monitor to see what
> > is happening, try different Netscape settings) and
> > see if anything
> > unusual is happening.
> > 
> > Jim
> > 
> > --- "A.L." <[EMAIL PROTECTED]> wrote:
> > > The first time I load the page in Netscape
> > everything
> > > seems fine,  it loads almost instantaneously. 
> > > However, when I submit the query to change the
> > month
> > > calendar, netscape takes a while to reload the
> > page
> > > and show the new calendar.  I can see that
> TOmcat
> > > receives the request immediately, and I assume
> > that
> > > since Netscape appears to be loading it receives
> > the
> > > response immediatley.
> > > 
> > > Thanks,
> > >   -Amos
> > > 
> > > 
> > > --- Jim Seach <[EMAIL PROTECTED]> wrote:
> > > > I copied the html into a static file and was
> > able to
> > > > bring it up
> > > > immediately in Netscape 4.76, so it doesn't
> > appear
> > > > to be the contents
> > > > of the form that is the problem.
> > > > 
> > > > Does it take a long time to display, or does
> it
> > just
> > > > not appear to
> > > > finish loading?  I have also noticed that
> > sometimes
> > > > even after the page
> > > > has loaded, Netscape still appears to be
> > working. 
> > > > So far, I have just
> > > > ignored it.
> > > > 
> > > > Jim
> > > > 
> > > > --- "A.L." <[EMAIL PROTECTED]> wrote:
> > > > > Below is the code that is returned:
> > > > > 
> > > > > It seems that Netscape might have problems
> > with
> > > > the
> > > > > FORM data.  It does seem as if the server is
> > > > sending
> > > > > the reponse immediately.  Or maybe it is
> > having
> > > > > trouble with the javascript functions... Any
> > > > > suggestions
> > > > > 
> > > > > (I am only running TOmcat by the way)
> > > > > 
> > > > > 
> > > > > 
> > > > > 
> > > > > 
> > > > > Calendar
> > > > > 
> > > > > 
> > > > > 
> > > > > 
> > > > >  January 
> > > > >  February
> > > > >  March
> > > > >  April
> > > > >  May
> > > > >  June
> > > > > 
> > > > > 
> > > > > 
> > > > > March2001 > > > > NAME="date2"ACTION="/jd/Calendar"> > > > type=hidden
> > > > > NAME="d"> > language="JavaScript">function
> > > > > choose(n){document.date2.d.value =
> > > > >
> > > >
> > >
> >
>
n;document.date2.submit();} > td> > > > > href="javascript:choose(1)">1 > > > > href="javascript:choose(2)">2 > > > >
> > > >
> > >
> >
>
href="javascript:choose(3)">3 > > > > href="javascript:choose(4)">4 > > > > href="javascript:choose(5)">5 > > > > href="javascript:choose(6)">6 > > > > href="javascript:choose(7)">7 > > > > href="javascript:choose(8)">8 > > > > href="javascript:choose(9)">9 > > > >
> > > >
> > >
> >
>
href="javascript:choose(10)">10 > > > >
> href="javascript:choose(11)">11 > > > >
> href="javascript:choose(12)">12 > > > >
> href="javascript:choose(13)">13 > > > >
> href="javascript:choose(14)">14 > > > >
> href="javascript:choose(15)">15

Re: db connection denied access

2001-08-15 Thread Jeff Kilbride

You need to read chapters 4.2 and 4.3 of the MySQL manual:

http://www.mysql.com/doc/P/r/Privilege_system.html
http://www.mysql.com/doc/U/s/User_Account_Management.html

MySQL has a somewhat strange privilege system for granting access to the
database. But it's very flexible, once you learn it.

If you're going to be using MySQL, do yourself a favor and buy this book:

http://www.amazon.com/exec/obidos/ASIN/0735709211/qid=997901246/sr=2-2/107-4
535935-5049369

It's invaluable.

--jeff

- Original Message -
From: "Richard Draucker" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, August 15, 2001 8:04 AM
Subject: db connection denied access


> This is odd and I'm stumped.  I have a simple db connection class in a jar
> under ~app/WEB-INF/lib.  I have a servlet under ~app/WEB-INF/classes that
> imports this connection class.  The mm.mysql driver jar also resides in
this
> WEB-INF/lib.
> The servlet accesses the connection class just fine.  But, when the
> connection class attempts a connection to the database I get the error:
>
> java.sql.SQLException: Server configuration denies access to data source
>
> However, if I cut 'n paste the code from the connection class into the
> servlet I have no problem with the connection or data retrieval.
>
> FYI:
> RH7.1 new installation
> jdk 1.3.1
> Tomcat 3.2.1
> MySQL 3.2.2
>
>
> --
> Richard Draucker [EMAIL PROTECTED]
> Protected-Data.Com www.protected-data.com
> Remote Data Support For Web Developers
>




catalina SSL

2001-08-15 Thread cib

Hi
I'm getting used to Tomcat but not enough to get it work.
Trying to install the SSL connector, but always getting a java IO exception,
"keystore tampered". I'm a complete newbie either in tomcat or in ssl, so I
surely didn't do things right. Is there a good tutorial for this (I mean for
catalina and ssl) , because most of litterature is relevant only for Tomcat
previous versions, and Sun's documentation deals with java classes, not with
applications that needs to be configurated through server.xml.

So, do I have to make changes to the catalina.bat, to include (in the
dostartsecure / dorunsecure) the lines:
-Djava.protocol.handler.pkgs=\com.sun.net.ssl.internal.www.protocol

Do I have to make include a specific keystore in the catalina.policy using
policytool.exe?

How to modify the tomcat server.xml 's ssl connector to show the keystore
and keypass?

Thanks for any hint on this wild matter.

Cib

France, Bordeaux, xml and gay pride.





Re[2]: Re[2]: Servlet Runs SLow

2001-08-15 Thread Jonathan Pierce

Amos,

I fixed a few things for you. Try my version.

#1: There was no need to keep allocating StringBuffers, I just passed the output
PrintWriter.
#2: I fixed your form action to use the request context path for the action
instead of hard-coding it.
#3. I added a call to out.flush () before your out.close () as I suggested
before to force the output stream to flush.

Let me know if it runs fast now...

Jonathan   

Reply Separator
Subject:Re: Re[2]: Servlet Runs SLow
Author: [EMAIL PROTECTED]
Date:   8/15/2001 9:42 AM

Jonathan,

Attached are the servlet and object files
i'm new to Java, so my design may be poor.  Let me
know if you have any questions.

Thanks,
   -Amos

--- Jonathan Pierce <[EMAIL PROTECTED]>
wrote:
> The problem is probably something you are doing in
> your servlet. 
> Try hitting the /examples/servlet/SnoopServlet in
> your action instead of your
> /jd/Calendar call and see if it is fast.
> 
>  If you want, send me the source to your servlet and
> I'll take a look at what
> you are doing that Netscape is sensitive to. 
> 
> Perhaps you are not flushing the output stream in
> your response.
> 
> Reply
> Separator
> Subject:Re: Servlet Runs SLow
> Author: [EMAIL PROTECTED]
> Date:   8/15/2001 9:10 AM
> 
> Sorry, I'm out of ideas.  The servlets I'm working
> on work fine in both
> Netscape and IE.  You may want to try to collect
> some more information
> (log begin/end times in the servlet, use a network
> monitor to see what
> is happening, try different Netscape settings) and
> see if anything
> unusual is happening.
> 
> Jim
> 
> --- "A.L." <[EMAIL PROTECTED]> wrote:
> > The first time I load the page in Netscape
> everything
> > seems fine,  it loads almost instantaneously. 
> > However, when I submit the query to change the
> month
> > calendar, netscape takes a while to reload the
> page
> > and show the new calendar.  I can see that TOmcat
> > receives the request immediately, and I assume
> that
> > since Netscape appears to be loading it receives
> the
> > response immediatley.
> > 
> > Thanks,
> >   -Amos
> > 
> > 
> > --- Jim Seach <[EMAIL PROTECTED]> wrote:
> > > I copied the html into a static file and was
> able to
> > > bring it up
> > > immediately in Netscape 4.76, so it doesn't
> appear
> > > to be the contents
> > > of the form that is the problem.
> > > 
> > > Does it take a long time to display, or does it
> just
> > > not appear to
> > > finish loading?  I have also noticed that
> sometimes
> > > even after the page
> > > has loaded, Netscape still appears to be
> working. 
> > > So far, I have just
> > > ignored it.
> > > 
> > > Jim
> > > 
> > > --- "A.L." <[EMAIL PROTECTED]> wrote:
> > > > Below is the code that is returned:
> > > > 
> > > > It seems that Netscape might have problems
> with
> > > the
> > > > FORM data.  It does seem as if the server is
> > > sending
> > > > the reponse immediately.  Or maybe it is
> having
> > > > trouble with the javascript functions... Any
> > > > suggestions
> > > > 
> > > > (I am only running TOmcat by the way)
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > > Calendar
> > > > 
> > > > 
> > > > 
> > > > 
> > > >  January 
> > > >  February
> > > >  March
> > > >  April
> > > >  May
> > > >  June
> > > > 
> > > > 
> > > > 
> > > > March2001 > > > NAME="date2"ACTION="/jd/Calendar"> > > type=hidden
> > > > NAME="d"> language="JavaScript">function
> > > > choose(n){document.date2.d.value =
> > > >
> > >
> >
>
n;document.date2.submit();} td> > > > href="javascript:choose(1)">1 > > > href="javascript:choose(2)">2 > > >
> > >
> >
>
href="javascript:choose(3)">3 > > > href="javascript:choose(4)">4 > > > href="javascript:choose(5)">5 > > > href="javascript:choose(6)">6 > > > href="javascript:choose(7)">7 > > > href="javascript:choose(8)">8 > > > href="javascript:choose(9)">9 > > >
> > >
> >
>
href="javascript:choose(10)">10 > > > href="javascript:choose(11)">11 > > > href="javascript:choose(12)">12 > > > href="javascript:choose(13)">13 > > > href="javascript:choose(14)">14 > > > href="javascript:choose(15)">15 > > > href="javascript:choose(16)">16 > > >
> > >
> >
>
href="javascript:choose(17)">17 > > > href="javascript:choose(18)">18 > > > href="javascript:choose(19)">19 > > > href="javascript:choose(20)">20 > > > href="javascript:choose(21)">21 > > > href="javascript:choose(22)">22 > > > href="javascript:choose(23)">23 > > >
> > >
> >
>
href="javascript:choose(24)">24 > > > href="javascript:choose(25)">25 > > > href="javascript:choose(26)">26 > > > href="javascript:choose(27)">27 > > > href="javascript:choose(28)">28 > > > href="javascript:choose(29)">29 > > > href="javascript:choose(30)">30 > > >
> > >
> >
>
href="javascript:choose(31)">31
> > > > 
> > > > First_Name
> > > > Amos
> > > > Jeff
> > > > Steve
> > > > Cathy
> > > > Patricia
> > > > Cary
> > > > Tom
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > > --- Jim Seach <[EMAIL P

RE: Tomcat embedded in Apache

2001-08-15 Thread Martin van den Bemt

As far as I know tomcat is not built into apache. It just integrates well
(as well with other servers)..

Mvgr,
Martin

> -Original Message-
> From: Kemp Randy-W18971 [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, August 15, 2001 7:54 PM
> To: '[EMAIL PROTECTED]'
> Subject: Tomcat embedded in Apache
>
>
>  I found an article at http://www.linuxdevices.com/articles/AT7102892618.
> The article says this
> Apache 2.0 -- This is still in alpha now, with beta and final releases due
> at monthly intervals. It is faster and runs on more operating systems with
> the same level of stability as on Unix, and also supports dynamically
> loadable modules better. The Tomcat Java engine is built-in,
> enabling Apache
> to natively run Java Servlets and Java Server Pages.
>
> Does that mean that the Tomcat engine will be part of the Apache
> download?
>




Newbie: How do I rebuild Tomcat under Win2k

2001-08-15 Thread Peter L. Markowsky

I'm really green at this so please bear with me, How does one step by step
rebuild Tomcat under a WIN32 enviroment. I'm currently using a p3 500mhz
win2k professional machine.

Thanks in advance,
Pete Markowsky





Tomcat embedded in Apache

2001-08-15 Thread Kemp Randy-W18971

 I found an article at http://www.linuxdevices.com/articles/AT7102892618.
The article says this
Apache 2.0 -- This is still in alpha now, with beta and final releases due
at monthly intervals. It is faster and runs on more operating systems with
the same level of stability as on Unix, and also supports dynamically
loadable modules better. The Tomcat Java engine is built-in, enabling Apache
to natively run Java Servlets and Java Server Pages.

Does that mean that the Tomcat engine will be part of the Apache download?  



RE: Does the servlet security model work with the J2EE Blueprint MVC?

2001-08-15 Thread Lin, Zhongwu

I have a question about the last paragraph of you answer.

Regards

Zhongwu

> -Original Message-
> From: Craig R. McClanahan [SMTP:[EMAIL PROTECTED]]
> Sent: Wednesday, August 15, 2001 11:40 AM
> To:   Tomcat User's Group; [EMAIL PROTECTED]
> Subject:  Re: Does the servlet security model work with the J2EE
> Blueprint MVC?
> 
> 
> 
> On Wed, 15 Aug 2001, Jerome Jacobsen wrote:
> 
> > Hello,
> > 
> > The Java Servlet Specification (Version 2.3, Draft 2) under SRV.12.2
> states:
> > 
> > "The security model applies to the static content part of the web
> > application and to servlets within the application that are requested by
> the
> > client. The security model does not apply when a servlet uses the
> > RequestDispatcher to invoke a static resource or servlet using a
> forward()
> > or an include()."
> > 
> 
> In other words, the security constraints are only matched on the initial
> request URI, not on paths passed to getRequestDispatcher().
> 
> > Does this mean that using the MVC architecture with a Web controller as
> > described in the J2EE Blueprints precludes the use of this security
> model?
> > 
> 
> Not at all.  You've got at least a couple of approaches to consider:
> 
> * If your MVC architecture uses different URIs for different logical
>   transactions (i.e. you are using either path mapping or extension
>   mapping to map to the controller component) you can protect those
>   URIs with appropriate security constraints.
> 
> * Your controller component can (in addition to or instead of the
>   restrictions based on security constraints) apply additional role-based
>   checking -- perhaps defined in the configuration settings for the
>   controller -- by calling request.isUserInRole() to check whether the
>   user is authorized for one or more roles.
> 
> * Roles can also be used in the view layer to change the presentation
>   (for example, a manager might have more menu options to choose from
>   than a regular user).
> 
> In an MVC-architected web app, your primary concern is whether the user
> can perform the transaction that they requested.  If they can, you
> naturally want them to see the results of performing that transaction, so
> there is no need to protect the RequestDispatcher.forward() used by the
> controller to forward control to the ultimate view component.
> 
> But what if you have users that try to navigate to your JSP pages directly
> (and perhaps bookmark them).  You can take advantage of a related
> specification requirement, and put those JSP pages inside the /WEB-INF
> directory.  This works because the container will refuse to serve anything
> under /WEB-INF directly to the user, but RequestDispatcher.forward() can
> still be used to display them.
> 
[Lin, Zhongwu]  
can you explain in more detail on the last paragraph:
put those JSP pages inside the /WEB-INF
directory.  This works because the container will refuse to serve
anything
under /WEB-INF directly to the user, but RequestDispatcher.forward()
can
still be used to display them.
[Lin, Zhongwu]  How do I reference those JSP pages inmy app?
should I do like:
/WEB_INF/mypage.jsp   

> > -Jerome
> 
> Craig McClanahan
> 



RE: Does the servlet security model work with the J2EE BlueprintMVC?

2001-08-15 Thread Craig R. McClanahan



On Wed, 15 Aug 2001, Jerome Jacobsen wrote:

> What I meant is the declarative part of the security model.  My app has a
> single Front Controller JSP.  See below.
> 
> <%@ page contentType="text/html;charset=WINDOWS-1252"%>
> "com.gentootech.eip.webclient.controller.EipController"
>scope="application">
> <% ctrl.init(config, application); %>
> 
> 
> 
> 
> Can I *declaratively* control access to the other JSPs by specifying
>  and  elements in the deployment
> descriptor?
> 

Yes, but only if your users are accessing the JSP pages directly.

If you're using the MVC architecture in the recommended fashion, all
requests should flow through the controller, *not* go directly to the
pages.  So, the question is how does the user submit requests to your
controller?

In Struts (disclaimer - I'm the primary author, so I'm more familiar with
it and undoubtedly biased :-) the usual pattern is to use extension
mapping to map requests to the controller.  A common pattern is to is to
use a "*.do" mapping (implying "go do something").  So, a typical URL
would be something like:

  http://www.mycompany.com/myapp/submitPurchaseOrder.do

Now, if I want to manage who can submit purchase orders, it is *this* URL
that I care about protecting.  If the user is allowed to submit purchase
orders, they should be allowed to view the submit confirmation screen that
follows (i.e. where your front controller forwards to after completing the
transaction), right?  Thus, it doesn't need any extra protection.

To avoid users inadvertently or maliciously trying to access JSP pages
directly, you can place them in /WEB-INF as I described earlier.

> Thanks,
> 
> -Jerome
> 
Craig


> -Original Message-
> From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, August 15, 2001 12:40 PM
> To: Tomcat User's Group; [EMAIL PROTECTED]
> Subject: Re: Does the servlet security model work with the J2EE
> Blueprint MVC?
> 
> 
> 
> 
> On Wed, 15 Aug 2001, Jerome Jacobsen wrote:
> 
> > Hello,
> >
> > The Java Servlet Specification (Version 2.3, Draft 2) under SRV.12.2
> states:
> >
> > "The security model applies to the static content part of the web
> > application and to servlets within the application that are requested by
> the
> > client. The security model does not apply when a servlet uses the
> > RequestDispatcher to invoke a static resource or servlet using a forward()
> > or an include()."
> >
> 
> In other words, the security constraints are only matched on the initial
> request URI, not on paths passed to getRequestDispatcher().
> 
> > Does this mean that using the MVC architecture with a Web controller as
> > described in the J2EE Blueprints precludes the use of this security model?
> >
> 
> Not at all.  You've got at least a couple of approaches to consider:
> 
> * If your MVC architecture uses different URIs for different logical
>   transactions (i.e. you are using either path mapping or extension
>   mapping to map to the controller component) you can protect those
>   URIs with appropriate security constraints.
> 
> * Your controller component can (in addition to or instead of the
>   restrictions based on security constraints) apply additional role-based
>   checking -- perhaps defined in the configuration settings for the
>   controller -- by calling request.isUserInRole() to check whether the
>   user is authorized for one or more roles.
> 
> * Roles can also be used in the view layer to change the presentation
>   (for example, a manager might have more menu options to choose from
>   than a regular user).
> 
> In an MVC-architected web app, your primary concern is whether the user
> can perform the transaction that they requested.  If they can, you
> naturally want them to see the results of performing that transaction, so
> there is no need to protect the RequestDispatcher.forward() used by the
> controller to forward control to the ultimate view component.
> 
> But what if you have users that try to navigate to your JSP pages directly
> (and perhaps bookmark them).  You can take advantage of a related
> specification requirement, and put those JSP pages inside the /WEB-INF
> directory.  This works because the container will refuse to serve anything
> under /WEB-INF directly to the user, but RequestDispatcher.forward() can
> still be used to display them.
> 
> > -Jerome
> 
> Craig McClanahan
> 
> 
> 
> 
> 




RE: Does the servlet security model work with the J2EE Blueprint MVC?

2001-08-15 Thread Jerome Jacobsen

What I meant is the declarative part of the security model.  My app has a
single Front Controller JSP.  See below.

<%@ page contentType="text/html;charset=WINDOWS-1252"%>

<% ctrl.init(config, application); %>




Can I *declaratively* control access to the other JSPs by specifying
 and  elements in the deployment
descriptor?

Thanks,

-Jerome

-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 15, 2001 12:40 PM
To: Tomcat User's Group; [EMAIL PROTECTED]
Subject: Re: Does the servlet security model work with the J2EE
Blueprint MVC?




On Wed, 15 Aug 2001, Jerome Jacobsen wrote:

> Hello,
>
> The Java Servlet Specification (Version 2.3, Draft 2) under SRV.12.2
states:
>
> "The security model applies to the static content part of the web
> application and to servlets within the application that are requested by
the
> client. The security model does not apply when a servlet uses the
> RequestDispatcher to invoke a static resource or servlet using a forward()
> or an include()."
>

In other words, the security constraints are only matched on the initial
request URI, not on paths passed to getRequestDispatcher().

> Does this mean that using the MVC architecture with a Web controller as
> described in the J2EE Blueprints precludes the use of this security model?
>

Not at all.  You've got at least a couple of approaches to consider:

* If your MVC architecture uses different URIs for different logical
  transactions (i.e. you are using either path mapping or extension
  mapping to map to the controller component) you can protect those
  URIs with appropriate security constraints.

* Your controller component can (in addition to or instead of the
  restrictions based on security constraints) apply additional role-based
  checking -- perhaps defined in the configuration settings for the
  controller -- by calling request.isUserInRole() to check whether the
  user is authorized for one or more roles.

* Roles can also be used in the view layer to change the presentation
  (for example, a manager might have more menu options to choose from
  than a regular user).

In an MVC-architected web app, your primary concern is whether the user
can perform the transaction that they requested.  If they can, you
naturally want them to see the results of performing that transaction, so
there is no need to protect the RequestDispatcher.forward() used by the
controller to forward control to the ultimate view component.

But what if you have users that try to navigate to your JSP pages directly
(and perhaps bookmark them).  You can take advantage of a related
specification requirement, and put those JSP pages inside the /WEB-INF
directory.  This works because the container will refuse to serve anything
under /WEB-INF directly to the user, but RequestDispatcher.forward() can
still be used to display them.

> -Jerome

Craig McClanahan







Re: Does the servlet security model work with the J2EE BlueprintMVC?

2001-08-15 Thread Craig R. McClanahan



On Wed, 15 Aug 2001, Jerome Jacobsen wrote:

> Hello,
> 
> The Java Servlet Specification (Version 2.3, Draft 2) under SRV.12.2 states:
> 
> "The security model applies to the static content part of the web
> application and to servlets within the application that are requested by the
> client. The security model does not apply when a servlet uses the
> RequestDispatcher to invoke a static resource or servlet using a forward()
> or an include()."
> 

In other words, the security constraints are only matched on the initial
request URI, not on paths passed to getRequestDispatcher().

> Does this mean that using the MVC architecture with a Web controller as
> described in the J2EE Blueprints precludes the use of this security model?
> 

Not at all.  You've got at least a couple of approaches to consider:

* If your MVC architecture uses different URIs for different logical
  transactions (i.e. you are using either path mapping or extension
  mapping to map to the controller component) you can protect those
  URIs with appropriate security constraints.

* Your controller component can (in addition to or instead of the
  restrictions based on security constraints) apply additional role-based
  checking -- perhaps defined in the configuration settings for the
  controller -- by calling request.isUserInRole() to check whether the
  user is authorized for one or more roles.

* Roles can also be used in the view layer to change the presentation
  (for example, a manager might have more menu options to choose from
  than a regular user).

In an MVC-architected web app, your primary concern is whether the user
can perform the transaction that they requested.  If they can, you
naturally want them to see the results of performing that transaction, so
there is no need to protect the RequestDispatcher.forward() used by the
controller to forward control to the ultimate view component.

But what if you have users that try to navigate to your JSP pages directly
(and perhaps bookmark them).  You can take advantage of a related
specification requirement, and put those JSP pages inside the /WEB-INF
directory.  This works because the container will refuse to serve anything
under /WEB-INF directly to the user, but RequestDispatcher.forward() can
still be used to display them.

> -Jerome

Craig McClanahan





Re: Re[2]: Servlet Runs SLow

2001-08-15 Thread A.L.

Jonathan,

Attached are the servlet and object files
i'm new to Java, so my design may be poor.  Let me
know if you have any questions.

Thanks,
   -Amos

--- Jonathan Pierce <[EMAIL PROTECTED]>
wrote:
> The problem is probably something you are doing in
> your servlet. 
> Try hitting the /examples/servlet/SnoopServlet in
> your action instead of your
> /jd/Calendar call and see if it is fast.
> 
>  If you want, send me the source to your servlet and
> I'll take a look at what
> you are doing that Netscape is sensitive to. 
> 
> Perhaps you are not flushing the output stream in
> your response.
> 
> Reply
> Separator
> Subject:Re: Servlet Runs SLow
> Author: [EMAIL PROTECTED]
> Date:   8/15/2001 9:10 AM
> 
> Sorry, I'm out of ideas.  The servlets I'm working
> on work fine in both
> Netscape and IE.  You may want to try to collect
> some more information
> (log begin/end times in the servlet, use a network
> monitor to see what
> is happening, try different Netscape settings) and
> see if anything
> unusual is happening.
> 
> Jim
> 
> --- "A.L." <[EMAIL PROTECTED]> wrote:
> > The first time I load the page in Netscape
> everything
> > seems fine,  it loads almost instantaneously. 
> > However, when I submit the query to change the
> month
> > calendar, netscape takes a while to reload the
> page
> > and show the new calendar.  I can see that TOmcat
> > receives the request immediately, and I assume
> that
> > since Netscape appears to be loading it receives
> the
> > response immediatley.
> > 
> > Thanks,
> >   -Amos
> > 
> > 
> > --- Jim Seach <[EMAIL PROTECTED]> wrote:
> > > I copied the html into a static file and was
> able to
> > > bring it up
> > > immediately in Netscape 4.76, so it doesn't
> appear
> > > to be the contents
> > > of the form that is the problem.
> > > 
> > > Does it take a long time to display, or does it
> just
> > > not appear to
> > > finish loading?  I have also noticed that
> sometimes
> > > even after the page
> > > has loaded, Netscape still appears to be
> working. 
> > > So far, I have just
> > > ignored it.
> > > 
> > > Jim
> > > 
> > > --- "A.L." <[EMAIL PROTECTED]> wrote:
> > > > Below is the code that is returned:
> > > > 
> > > > It seems that Netscape might have problems
> with
> > > the
> > > > FORM data.  It does seem as if the server is
> > > sending
> > > > the reponse immediately.  Or maybe it is
> having
> > > > trouble with the javascript functions... Any
> > > > suggestions
> > > > 
> > > > (I am only running TOmcat by the way)
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > > Calendar
> > > > 
> > > > 
> > > > 
> > > > 
> > > >  January 
> > > >  February
> > > >  March
> > > >  April
> > > >  May
> > > >  June
> > > > 
> > > > 
> > > > 
> > > > March2001 > > > NAME="date2"ACTION="/jd/Calendar"> > > type=hidden
> > > > NAME="d"> language="JavaScript">function
> > > > choose(n){document.date2.d.value =
> > > >
> > >
> >
>
n;document.date2.submit();} td> > > > href="javascript:choose(1)">1 > > > href="javascript:choose(2)">2 > > >
> > >
> >
>
href="javascript:choose(3)">3 > > > href="javascript:choose(4)">4 > > > href="javascript:choose(5)">5 > > > href="javascript:choose(6)">6 > > > href="javascript:choose(7)">7 > > > href="javascript:choose(8)">8 > > > href="javascript:choose(9)">9 > > >
> > >
> >
>
href="javascript:choose(10)">10 > > > href="javascript:choose(11)">11 > > > href="javascript:choose(12)">12 > > > href="javascript:choose(13)">13 > > > href="javascript:choose(14)">14 > > > href="javascript:choose(15)">15 > > > href="javascript:choose(16)">16 > > >
> > >
> >
>
href="javascript:choose(17)">17 > > > href="javascript:choose(18)">18 > > > href="javascript:choose(19)">19 > > > href="javascript:choose(20)">20 > > > href="javascript:choose(21)">21 > > > href="javascript:choose(22)">22 > > > href="javascript:choose(23)">23 > > >
> > >
> >
>
href="javascript:choose(24)">24 > > > href="javascript:choose(25)">25 > > > href="javascript:choose(26)">26 > > > href="javascript:choose(27)">27 > > > href="javascript:choose(28)">28 > > > href="javascript:choose(29)">29 > > > href="javascript:choose(30)">30 > > >
> > >
> >
>
href="javascript:choose(31)">31
> > > > 
> > > > First_Name
> > > > Amos
> > > > Jeff
> > > > Steve
> > > > Cathy
> > > > Patricia
> > > > Cary
> > > > Tom
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > > --- Jim Seach <[EMAIL PROTECTED]> wrote:
> > > > > I agree - it's worth looking at the client. 
> Do
> > > you
> > > > > have any large
> > > > > tables?  I have had problems in the past
> with
> > > > > Netscape taking a long
> > > > > time (> 5 min) to load tables with several
> > > thousand
> > > > > rows.
> > > > > 
> > > > > Jim
> > > > > 
> > > > > --- Denis Haskin <[EMAIL PROTECTED]>
> > > wrote:
> > > > > > Do you know for sure the difference in
> 'load'
> > > time
> > > > > is at the server,
> > > > > > and 
> > > > > > not at the client?  What's the content
> coming
> > > back
> >

Re[2]: Servlet Runs SLow

2001-08-15 Thread Jonathan Pierce

The problem is probably something you are doing in your servlet. 
Try hitting the /examples/servlet/SnoopServlet in your action instead of your
/jd/Calendar call and see if it is fast.

 If you want, send me the source to your servlet and I'll take a look at what
you are doing that Netscape is sensitive to. 

Perhaps you are not flushing the output stream in your response.

Reply Separator
Subject:Re: Servlet Runs SLow
Author: [EMAIL PROTECTED]
Date:   8/15/2001 9:10 AM

Sorry, I'm out of ideas.  The servlets I'm working on work fine in both
Netscape and IE.  You may want to try to collect some more information
(log begin/end times in the servlet, use a network monitor to see what
is happening, try different Netscape settings) and see if anything
unusual is happening.

Jim

--- "A.L." <[EMAIL PROTECTED]> wrote:
> The first time I load the page in Netscape everything
> seems fine,  it loads almost instantaneously. 
> However, when I submit the query to change the month
> calendar, netscape takes a while to reload the page
> and show the new calendar.  I can see that TOmcat
> receives the request immediately, and I assume that
> since Netscape appears to be loading it receives the
> response immediatley.
> 
> Thanks,
>   -Amos
> 
> 
> --- Jim Seach <[EMAIL PROTECTED]> wrote:
> > I copied the html into a static file and was able to
> > bring it up
> > immediately in Netscape 4.76, so it doesn't appear
> > to be the contents
> > of the form that is the problem.
> > 
> > Does it take a long time to display, or does it just
> > not appear to
> > finish loading?  I have also noticed that sometimes
> > even after the page
> > has loaded, Netscape still appears to be working. 
> > So far, I have just
> > ignored it.
> > 
> > Jim
> > 
> > --- "A.L." <[EMAIL PROTECTED]> wrote:
> > > Below is the code that is returned:
> > > 
> > > It seems that Netscape might have problems with
> > the
> > > FORM data.  It does seem as if the server is
> > sending
> > > the reponse immediately.  Or maybe it is having
> > > trouble with the javascript functions... Any
> > > suggestions
> > > 
> > > (I am only running TOmcat by the way)
> > > 
> > > 
> > > 
> > > 
> > > 
> > > Calendar
> > > 
> > > 
> > > 
> > > 
> > >  January 
> > >  February
> > >  March
> > >  April
> > >  May
> > >  June
> > > 
> > > 
> > > 
> > > March2001 > > NAME="date2"ACTION="/jd/Calendar"> > type=hidden
> > > NAME="d">function
> > > choose(n){document.date2.d.value =
> > >
> >
>
n;document.date2.submit();} > > href="javascript:choose(1)">1 > > href="javascript:choose(2)">2 > >
> >
> href="javascript:choose(3)">3 > > href="javascript:choose(4)">4 > > href="javascript:choose(5)">5 > > href="javascript:choose(6)">6 > > href="javascript:choose(7)">7 > > href="javascript:choose(8)">8 > > href="javascript:choose(9)">9 > >
> >
> href="javascript:choose(10)">10 > > href="javascript:choose(11)">11 > > href="javascript:choose(12)">12 > > href="javascript:choose(13)">13 > > href="javascript:choose(14)">14 > > href="javascript:choose(15)">15 > > href="javascript:choose(16)">16 > >
> >
> href="javascript:choose(17)">17 > > href="javascript:choose(18)">18 > > href="javascript:choose(19)">19 > > href="javascript:choose(20)">20 > > href="javascript:choose(21)">21 > > href="javascript:choose(22)">22 > > href="javascript:choose(23)">23 > >
> >
> href="javascript:choose(24)">24 > > href="javascript:choose(25)">25 > > href="javascript:choose(26)">26 > > href="javascript:choose(27)">27 > > href="javascript:choose(28)">28 > > href="javascript:choose(29)">29 > > href="javascript:choose(30)">30 > >
> >
> href="javascript:choose(31)">31
> > > 
> > > First_Name
> > > Amos
> > > Jeff
> > > Steve
> > > Cathy
> > > Patricia
> > > Cary
> > > Tom
> > > 
> > > 
> > > 
> > > 
> > > 
> > > --- Jim Seach <[EMAIL PROTECTED]> wrote:
> > > > I agree - it's worth looking at the client.  Do
> > you
> > > > have any large
> > > > tables?  I have had problems in the past with
> > > > Netscape taking a long
> > > > time (> 5 min) to load tables with several
> > thousand
> > > > rows.
> > > > 
> > > > Jim
> > > > 
> > > > --- Denis Haskin <[EMAIL PROTECTED]>
> > wrote:
> > > > > Do you know for sure the difference in 'load'
> > time
> > > > is at the server,
> > > > > and 
> > > > > not at the client?  What's the content coming
> > back
> > > > from the server? 
> > > > > I 
> > > > > would grab a copy of that, put it in a file,
> > and
> > > > load that in IE and 
> > > > > Netscape to see if there's any difference in
> > load
> > > > times.
> > > > > 
> > > > > I suppose it's possible that IE and Netscape
> > are
> > > > sending different
> > > > > http 
> > > > > headers that are getting handled differently
> > at
> > > > the server, but this 
> > > > > seems unlikely.
> > > > > 
> > > > > Are you sending these requests straight to
> > Tomcat,
> > > > or are they going 
> > > > > through a web server first?
> > > > > 
> > > > > dwh
> > > > > 
> > > >

Re: Servlet Runs SLow

2001-08-15 Thread Jim Seach

Sorry, I'm out of ideas.  The servlets I'm working on work fine in both
Netscape and IE.  You may want to try to collect some more information
(log begin/end times in the servlet, use a network monitor to see what
is happening, try different Netscape settings) and see if anything
unusual is happening.

Jim

--- "A.L." <[EMAIL PROTECTED]> wrote:
> The first time I load the page in Netscape everything
> seems fine,  it loads almost instantaneously. 
> However, when I submit the query to change the month
> calendar, netscape takes a while to reload the page
> and show the new calendar.  I can see that TOmcat
> receives the request immediately, and I assume that
> since Netscape appears to be loading it receives the
> response immediatley.
> 
> Thanks,
>   -Amos
> 
> 
> --- Jim Seach <[EMAIL PROTECTED]> wrote:
> > I copied the html into a static file and was able to
> > bring it up
> > immediately in Netscape 4.76, so it doesn't appear
> > to be the contents
> > of the form that is the problem.
> > 
> > Does it take a long time to display, or does it just
> > not appear to
> > finish loading?  I have also noticed that sometimes
> > even after the page
> > has loaded, Netscape still appears to be working. 
> > So far, I have just
> > ignored it.
> > 
> > Jim
> > 
> > --- "A.L." <[EMAIL PROTECTED]> wrote:
> > > Below is the code that is returned:
> > > 
> > > It seems that Netscape might have problems with
> > the
> > > FORM data.  It does seem as if the server is
> > sending
> > > the reponse immediately.  Or maybe it is having
> > > trouble with the javascript functions... Any
> > > suggestions
> > > 
> > > (I am only running TOmcat by the way)
> > > 
> > > 
> > > 
> > > 
> > > 
> > > Calendar
> > > 
> > > 
> > > 
> > > 
> > >  January 
> > >  February
> > >  March
> > >  April
> > >  May
> > >  June
> > > 
> > > 
> > > 
> > > March2001 > > NAME="date2"ACTION="/jd/Calendar"> > type=hidden
> > > NAME="d">function
> > > choose(n){document.date2.d.value =
> > >
> >
>
n;document.date2.submit();} > > href="javascript:choose(1)">1 > > href="javascript:choose(2)">2 > >
> >
> href="javascript:choose(3)">3 > > href="javascript:choose(4)">4 > > href="javascript:choose(5)">5 > > href="javascript:choose(6)">6 > > href="javascript:choose(7)">7 > > href="javascript:choose(8)">8 > > href="javascript:choose(9)">9 > >
> >
> href="javascript:choose(10)">10 > > href="javascript:choose(11)">11 > > href="javascript:choose(12)">12 > > href="javascript:choose(13)">13 > > href="javascript:choose(14)">14 > > href="javascript:choose(15)">15 > > href="javascript:choose(16)">16 > >
> >
> href="javascript:choose(17)">17 > > href="javascript:choose(18)">18 > > href="javascript:choose(19)">19 > > href="javascript:choose(20)">20 > > href="javascript:choose(21)">21 > > href="javascript:choose(22)">22 > > href="javascript:choose(23)">23 > >
> >
> href="javascript:choose(24)">24 > > href="javascript:choose(25)">25 > > href="javascript:choose(26)">26 > > href="javascript:choose(27)">27 > > href="javascript:choose(28)">28 > > href="javascript:choose(29)">29 > > href="javascript:choose(30)">30 > >
> >
> href="javascript:choose(31)">31
> > > 
> > > First_Name
> > > Amos
> > > Jeff
> > > Steve
> > > Cathy
> > > Patricia
> > > Cary
> > > Tom
> > > 
> > > 
> > > 
> > > 
> > > 
> > > --- Jim Seach <[EMAIL PROTECTED]> wrote:
> > > > I agree - it's worth looking at the client.  Do
> > you
> > > > have any large
> > > > tables?  I have had problems in the past with
> > > > Netscape taking a long
> > > > time (> 5 min) to load tables with several
> > thousand
> > > > rows.
> > > > 
> > > > Jim
> > > > 
> > > > --- Denis Haskin <[EMAIL PROTECTED]>
> > wrote:
> > > > > Do you know for sure the difference in 'load'
> > time
> > > > is at the server,
> > > > > and 
> > > > > not at the client?  What's the content coming
> > back
> > > > from the server? 
> > > > > I 
> > > > > would grab a copy of that, put it in a file,
> > and
> > > > load that in IE and 
> > > > > Netscape to see if there's any difference in
> > load
> > > > times.
> > > > > 
> > > > > I suppose it's possible that IE and Netscape
> > are
> > > > sending different
> > > > > http 
> > > > > headers that are getting handled differently
> > at
> > > > the server, but this 
> > > > > seems unlikely.
> > > > > 
> > > > > Are you sending these requests straight to
> > Tomcat,
> > > > or are they going 
> > > > > through a web server first?
> > > > > 
> > > > > dwh
> > > > > 
> > > > > A.L. wrote:
> > > > > 
> > > > > >Why WOuld a servlet which runs perfectly
> > normal
> > > > in
> > > > > >Explorer take a long time to load in
> > Netscape? 
> > > > On the
> > > > > >Tomcat Console Window I see the request
> > coming in
> > > > > >immediately, but for some reason Netscape
> > won't
> > > > load
> > > > > >quickly.
> > > > > >-Amos
> > > > > >
> > > > >
> > > >
> > >__
> > > > > >Do You Yahoo!?
> > > > > >Make international calls for as low as
> > > 

RE: Servlet Runs SLow

2001-08-15 Thread A.L.


I don't see how it could be the form submission if it
runs fine in explorer.  
Plus I can see Tomcat receive the request immediately
after I submit the form. 

I will meanwhile try to register a start and end time.

-amos




--- Martin van den Bemt <[EMAIL PROTECTED]> wrote:
> so the form submission is probably the problem..
> call a method which
> registers start and endtime, maby that will clear up
> where the problem is..
> 
> Mvgr,
> Martin
> 
> > -Original Message-
> > From: A.L. [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, August 15, 2001 5:52 PM
> > To: [EMAIL PROTECTED]
> > Subject: Re: Servlet Runs SLow
> >
> >
> > The first time I load the page in Netscape
> everything
> > seems fine,  it loads almost instantaneously.
> > However, when I submit the query to change the
> month
> > calendar, netscape takes a while to reload the
> page
> > and show the new calendar.  I can see that TOmcat
> > receives the request immediately, and I assume
> that
> > since Netscape appears to be loading it receives
> the
> > response immediatley.
> >
> > Thanks,
> >   -Amos
> >
> >
> > --- Jim Seach <[EMAIL PROTECTED]> wrote:
> > > I copied the html into a static file and was
> able to
> > > bring it up
> > > immediately in Netscape 4.76, so it doesn't
> appear
> > > to be the contents
> > > of the form that is the problem.
> > >
> > > Does it take a long time to display, or does it
> just
> > > not appear to
> > > finish loading?  I have also noticed that
> sometimes
> > > even after the page
> > > has loaded, Netscape still appears to be
> working.
> > > So far, I have just
> > > ignored it.
> > >
> > > Jim
> > >
> > > --- "A.L." <[EMAIL PROTECTED]> wrote:
> > > > Below is the code that is returned:
> > > >
> > > > It seems that Netscape might have problems
> with
> > > the
> > > > FORM data.  It does seem as if the server is
> > > sending
> > > > the reponse immediately.  Or maybe it is
> having
> > > > trouble with the javascript functions... Any
> > > > suggestions
> > > >
> > > > (I am only running TOmcat by the way)
> > > >
> > > >
> > > >
> > > > 
> > > > 
> > > > Calendar
> > > > 
> > > > 
> > > > 
> > > > 
> > > >  January 
> > > >  February
> > > >  March
> > > >  April
> > > >  May
> > > >  June
> > > > 
> > > > 
> > > > 
> > > > March2001 > > > NAME="date2"ACTION="/jd/Calendar"> > > type=hidden
> > > > NAME="d"> language="JavaScript">function
> > > > choose(n){document.date2.d.value =
> > > >
> > >
> >
>
n;document.date2.submit();}<
> > td> > > > href="javascript:choose(1)">1 > > > href="javascript:choose(2)">2 > > >
> > >
> >
>
href="javascript:choose(3)">3 > > > href="javascript:choose(4)">4 > > > href="javascript:choose(5)">5 > > > href="javascript:choose(6)">6 > > > href="javascript:choose(7)">7 > > > href="javascript:choose(8)">8 > > > href="javascript:choose(9)">9 > > >
> > >
> >
>
href="javascript:choose(10)">10 > > > href="javascript:choose(11)">11 > > > href="javascript:choose(12)">12 > > > href="javascript:choose(13)">13 > > > href="javascript:choose(14)">14 > > > href="javascript:choose(15)">15 > > > href="javascript:choose(16)">16 > > >
> > >
> >
>
href="javascript:choose(17)">17 > > > href="javascript:choose(18)">18 > > > href="javascript:choose(19)">19 > > > href="javascript:choose(20)">20 > > > href="javascript:choose(21)">21 > > > href="javascript:choose(22)">22 > > > href="javascript:choose(23)">23 > > >
> > >
> >
>
href="javascript:choose(24)">24 > > > href="javascript:choose(25)">25 > > > href="javascript:choose(26)">26 > > > href="javascript:choose(27)">27 > > > href="javascript:choose(28)">28 > > > href="javascript:choose(29)">29 > > > href="javascript:choose(30)">30 > > >
> > >
> >
>
href="javascript:choose(31)">31
> > > > 
> > > > First_Name
> > > > Amos
> > > > Jeff
> > > > Steve
> > > > Cathy
> > > > Patricia
> > > > Cary
> > > > Tom
> > > > 
> > > >
> > > > 
> > > > 
> > > >
> > > > --- Jim Seach <[EMAIL PROTECTED]> wrote:
> > > > > I agree - it's worth looking at the client. 
> Do
> > > you
> > > > > have any large
> > > > > tables?  I have had problems in the past
> with
> > > > > Netscape taking a long
> > > > > time (> 5 min) to load tables with several
> > > thousand
> > > > > rows.
> > > > >
> > > > > Jim
> > > > >
> > > > > --- Denis Haskin <[EMAIL PROTECTED]>
> > > wrote:
> > > > > > Do you know for sure the difference in
> 'load'
> > > time
> > > > > is at the server,
> > > > > > and
> > > > > > not at the client?  What's the content
> coming
> > > back
> > > > > from the server?
> > > > > > I
> > > > > > would grab a copy of that, put it in a
> file,
> > > and
> > > > > load that in IE and
> > > > > > Netscape to see if there's any difference
> in
> > > load
> > > > > times.
> > > > > >
> > > > > > I suppose it's possible that IE and
> Netscape
> > > are
> > > > > sending different
> > > > > > http
> > > > > > headers that are getting handled
> differently
> 
=== message truncated ===


__
Do You Yahoo!?
Mak

RE: Servlet Runs SLow

2001-08-15 Thread Cato, Christopher

Netscrape, forms and tables together is a very tricky subject. I recommend
running your HTML output through HoTMetaL to eliminate any errors. I can see
that you are missing a space in the second form opening, between NAME and
ACTION. 

Also, Netscape is very very sensitive on where you open and close your
forms, especially inside tables. Can't seem to remember if it was that you
have to open and close outside the table or if it was inside. I just know
it's sensitive as h**l. Run into this problem quite a few times.

And, yes, Netscape and large tables do not go well together.

/Christopher Cato

> -Original Message-
> From: A.L. [mailto:[EMAIL PROTECTED]]
> Sent: den 15 augusti 2001 17:52
> To: [EMAIL PROTECTED]
> Subject: Re: Servlet Runs SLow
> 
> 
> The first time I load the page in Netscape everything
> seems fine,  it loads almost instantaneously. 
> However, when I submit the query to change the month
> calendar, netscape takes a while to reload the page
> and show the new calendar.  I can see that TOmcat
> receives the request immediately, and I assume that
> since Netscape appears to be loading it receives the
> response immediatley.
> 
> Thanks,
>   -Amos
> 
> 
> --- Jim Seach <[EMAIL PROTECTED]> wrote:
> > I copied the html into a static file and was able to
> > bring it up
> > immediately in Netscape 4.76, so it doesn't appear
> > to be the contents
> > of the form that is the problem.
> > 
> > Does it take a long time to display, or does it just
> > not appear to
> > finish loading?  I have also noticed that sometimes
> > even after the page
> > has loaded, Netscape still appears to be working. 
> > So far, I have just
> > ignored it.
> > 
> > Jim
> > 
> > --- "A.L." <[EMAIL PROTECTED]> wrote:
> > > Below is the code that is returned:
> > > 
> > > It seems that Netscape might have problems with
> > the
> > > FORM data.  It does seem as if the server is
> > sending
> > > the reponse immediately.  Or maybe it is having
> > > trouble with the javascript functions... Any
> > > suggestions
> > > 
> > > (I am only running TOmcat by the way)
> > > 
> > > 
> > > 
> > > 
> > > 
> > > Calendar
> > > 
> > > 
> > > 
> > > 
> > >  January 
> > >  February
> > >  March
> > >  April
> > >  May
> > >  June
> > > 
> > > 
> > > 
> > > March2001 > > NAME="date2"ACTION="/jd/Calendar"> > type=hidden
> > > NAME="d">function
> > > choose(n){document.date2.d.value =
> > >
> >
> n;document.date2.submit();} td> > > href="javascript:choose(1)">1 > > href="javascript:choose(2)">2 > >
> >
> href="javascript:choose(3)">3 > > href="javascript:choose(4)">4 > > href="javascript:choose(5)">5 > > href="javascript:choose(6)">6 > > href="javascript:choose(7)">7 > > href="javascript:choose(8)">8 > > href="javascript:choose(9)">9 > >
> >
> href="javascript:choose(10)">10 > > href="javascript:choose(11)">11 > > href="javascript:choose(12)">12 > > href="javascript:choose(13)">13 > > href="javascript:choose(14)">14 > > href="javascript:choose(15)">15 > > href="javascript:choose(16)">16 > >
> >
> href="javascript:choose(17)">17 > > href="javascript:choose(18)">18 > > href="javascript:choose(19)">19 > > href="javascript:choose(20)">20 > > href="javascript:choose(21)">21 > > href="javascript:choose(22)">22 > > href="javascript:choose(23)">23 > >
> >
> href="javascript:choose(24)">24 > > href="javascript:choose(25)">25 > > href="javascript:choose(26)">26 > > href="javascript:choose(27)">27 > > href="javascript:choose(28)">28 > > href="javascript:choose(29)">29 > > href="javascript:choose(30)">30 > >
> >
> href="javascript:choose(31)">31
> > > 
> > > First_Name
> > > Amos
> > > Jeff
> > > Steve
> > > Cathy
> > > Patricia
> > > Cary
> > > Tom
> > > 
> > > 
> > > 
> > > 
> > > 
> > > --- Jim Seach <[EMAIL PROTECTED]> wrote:
> > > > I agree - it's worth looking at the client.  Do
> > you
> > > > have any large
> > > > tables?  I have had problems in the past with
> > > > Netscape taking a long
> > > > time (> 5 min) to load tables with several
> > thousand
> > > > rows.
> > > > 
> > > > Jim
> > > > 
> > > > --- Denis Haskin <[EMAIL PROTECTED]>
> > wrote:
> > > > > Do you know for sure the difference in 'load'
> > time
> > > > is at the server,
> > > > > and 
> > > > > not at the client?  What's the content coming
> > back
> > > > from the server? 
> > > > > I 
> > > > > would grab a copy of that, put it in a file,
> > and
> > > > load that in IE and 
> > > > > Netscape to see if there's any difference in
> > load
> > > > times.
> > > > > 
> > > > > I suppose it's possible that IE and Netscape
> > are
> > > > sending different
> > > > > http 
> > > > > headers that are getting handled differently
> > at
> > > > the server, but this 
> > > > > seems unlikely.
> > > > > 
> > > > > Are you sending these requests straight to
> > Tomcat,
> > > > or are they going 
> > > > > through a web server first?
> > > > > 
> > > > > dwh
> > > > > 
> > > > > A.L. wrote:
> > > > > 
> > > > > >Why WOuld a servlet which runs perfectly
> > normal
> > > > i

Re: db connection denied access

2001-08-15 Thread Richard Draucker

Thanks, I found the problem.  Probably shoulda posted this on the MySQL 
group, sorry.  Using the host ip in the connection url for the db generates 
the error.  Using 'localhost' or any host name that the database considers 
valid works just fine.  

- Richard



On Wednesday 15 August 2001 11:04 am, you wrote:
> This is odd and I'm stumped.  I have a simple db connection class in a jar
> under ~app/WEB-INF/lib.  I have a servlet under ~app/WEB-INF/classes that
> imports this connection class.  The mm.mysql driver jar also resides in
> this WEB-INF/lib.
> The servlet accesses the connection class just fine.  But, when the
> connection class attempts a connection to the database I get the error:
>
> java.sql.SQLException: Server configuration denies access to data source
>
> However, if I cut 'n paste the code from the connection class into the
> servlet I have no problem with the connection or data retrieval.
>
> FYI:
> RH7.1 new installation
> jdk 1.3.1
> Tomcat 3.2.1
> MySQL 3.2.2

-- 
Richard Draucker [EMAIL PROTECTED]
Protected-Data.Com www.protected-data.com
Remote Data Support For Web Developers




RE: Servlet Runs SLow

2001-08-15 Thread Martin van den Bemt

so the form submission is probably the problem.. call a method which
registers start and endtime, maby that will clear up where the problem is..

Mvgr,
Martin

> -Original Message-
> From: A.L. [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, August 15, 2001 5:52 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Servlet Runs SLow
>
>
> The first time I load the page in Netscape everything
> seems fine,  it loads almost instantaneously.
> However, when I submit the query to change the month
> calendar, netscape takes a while to reload the page
> and show the new calendar.  I can see that TOmcat
> receives the request immediately, and I assume that
> since Netscape appears to be loading it receives the
> response immediatley.
>
> Thanks,
>   -Amos
>
>
> --- Jim Seach <[EMAIL PROTECTED]> wrote:
> > I copied the html into a static file and was able to
> > bring it up
> > immediately in Netscape 4.76, so it doesn't appear
> > to be the contents
> > of the form that is the problem.
> >
> > Does it take a long time to display, or does it just
> > not appear to
> > finish loading?  I have also noticed that sometimes
> > even after the page
> > has loaded, Netscape still appears to be working.
> > So far, I have just
> > ignored it.
> >
> > Jim
> >
> > --- "A.L." <[EMAIL PROTECTED]> wrote:
> > > Below is the code that is returned:
> > >
> > > It seems that Netscape might have problems with
> > the
> > > FORM data.  It does seem as if the server is
> > sending
> > > the reponse immediately.  Or maybe it is having
> > > trouble with the javascript functions... Any
> > > suggestions
> > >
> > > (I am only running TOmcat by the way)
> > >
> > >
> > >
> > > 
> > > 
> > > Calendar
> > > 
> > > 
> > > 
> > > 
> > >  January 
> > >  February
> > >  March
> > >  April
> > >  May
> > >  June
> > > 
> > > 
> > > 
> > > March2001 > > NAME="date2"ACTION="/jd/Calendar"> > type=hidden
> > > NAME="d">function
> > > choose(n){document.date2.d.value =
> > >
> >
> n;document.date2.submit();}<
> td> > > href="javascript:choose(1)">1 > > href="javascript:choose(2)">2 > >
> >
> href="javascript:choose(3)">3 > > href="javascript:choose(4)">4 > > href="javascript:choose(5)">5 > > href="javascript:choose(6)">6 > > href="javascript:choose(7)">7 > > href="javascript:choose(8)">8 > > href="javascript:choose(9)">9 > >
> >
> href="javascript:choose(10)">10 > > href="javascript:choose(11)">11 > > href="javascript:choose(12)">12 > > href="javascript:choose(13)">13 > > href="javascript:choose(14)">14 > > href="javascript:choose(15)">15 > > href="javascript:choose(16)">16 > >
> >
> href="javascript:choose(17)">17 > > href="javascript:choose(18)">18 > > href="javascript:choose(19)">19 > > href="javascript:choose(20)">20 > > href="javascript:choose(21)">21 > > href="javascript:choose(22)">22 > > href="javascript:choose(23)">23 > >
> >
> href="javascript:choose(24)">24 > > href="javascript:choose(25)">25 > > href="javascript:choose(26)">26 > > href="javascript:choose(27)">27 > > href="javascript:choose(28)">28 > > href="javascript:choose(29)">29 > > href="javascript:choose(30)">30 > >
> >
> href="javascript:choose(31)">31
> > > 
> > > First_Name
> > > Amos
> > > Jeff
> > > Steve
> > > Cathy
> > > Patricia
> > > Cary
> > > Tom
> > > 
> > >
> > > 
> > > 
> > >
> > > --- Jim Seach <[EMAIL PROTECTED]> wrote:
> > > > I agree - it's worth looking at the client.  Do
> > you
> > > > have any large
> > > > tables?  I have had problems in the past with
> > > > Netscape taking a long
> > > > time (> 5 min) to load tables with several
> > thousand
> > > > rows.
> > > >
> > > > Jim
> > > >
> > > > --- Denis Haskin <[EMAIL PROTECTED]>
> > wrote:
> > > > > Do you know for sure the difference in 'load'
> > time
> > > > is at the server,
> > > > > and
> > > > > not at the client?  What's the content coming
> > back
> > > > from the server?
> > > > > I
> > > > > would grab a copy of that, put it in a file,
> > and
> > > > load that in IE and
> > > > > Netscape to see if there's any difference in
> > load
> > > > times.
> > > > >
> > > > > I suppose it's possible that IE and Netscape
> > are
> > > > sending different
> > > > > http
> > > > > headers that are getting handled differently
> > at
> > > > the server, but this
> > > > > seems unlikely.
> > > > >
> > > > > Are you sending these requests straight to
> > Tomcat,
> > > > or are they going
> > > > > through a web server first?
> > > > >
> > > > > dwh
> > > > >
> > > > > A.L. wrote:
> > > > >
> > > > > >Why WOuld a servlet which runs perfectly
> > normal
> > > > in
> > > > > >Explorer take a long time to load in
> > Netscape?
> > > > On the
> > > > > >Tomcat Console Window I see the request
> > coming in
> > > > > >immediately, but for some reason Netscape
> > won't
> > > > load
> > > > > >quickly.
> > > > > >-Amos
> > > > > >
> > > > >
> > > >
> > >__
> > > > > >Do You Yahoo!?
> > > > > >Make international calls for as low as
> > > > $.04/minute with Yahoo!
> > > > > M

Re: Servlet Runs SLow

2001-08-15 Thread A.L.

The first time I load the page in Netscape everything
seems fine,  it loads almost instantaneously. 
However, when I submit the query to change the month
calendar, netscape takes a while to reload the page
and show the new calendar.  I can see that TOmcat
receives the request immediately, and I assume that
since Netscape appears to be loading it receives the
response immediatley.

Thanks,
  -Amos


--- Jim Seach <[EMAIL PROTECTED]> wrote:
> I copied the html into a static file and was able to
> bring it up
> immediately in Netscape 4.76, so it doesn't appear
> to be the contents
> of the form that is the problem.
> 
> Does it take a long time to display, or does it just
> not appear to
> finish loading?  I have also noticed that sometimes
> even after the page
> has loaded, Netscape still appears to be working. 
> So far, I have just
> ignored it.
> 
> Jim
> 
> --- "A.L." <[EMAIL PROTECTED]> wrote:
> > Below is the code that is returned:
> > 
> > It seems that Netscape might have problems with
> the
> > FORM data.  It does seem as if the server is
> sending
> > the reponse immediately.  Or maybe it is having
> > trouble with the javascript functions... Any
> > suggestions
> > 
> > (I am only running TOmcat by the way)
> > 
> > 
> > 
> > 
> > 
> > Calendar
> > 
> > 
> > 
> > 
> >  January 
> >  February
> >  March
> >  April
> >  May
> >  June
> > 
> > 
> > 
> > March2001 > NAME="date2"ACTION="/jd/Calendar"> type=hidden
> > NAME="d">function
> > choose(n){document.date2.d.value =
> >
>
n;document.date2.submit();} > href="javascript:choose(1)">1 > href="javascript:choose(2)">2 >
>
href="javascript:choose(3)">3 > href="javascript:choose(4)">4 > href="javascript:choose(5)">5 > href="javascript:choose(6)">6 > href="javascript:choose(7)">7 > href="javascript:choose(8)">8 > href="javascript:choose(9)">9 >
>
href="javascript:choose(10)">10 > href="javascript:choose(11)">11 > href="javascript:choose(12)">12 > href="javascript:choose(13)">13 > href="javascript:choose(14)">14 > href="javascript:choose(15)">15 > href="javascript:choose(16)">16 >
>
href="javascript:choose(17)">17 > href="javascript:choose(18)">18 > href="javascript:choose(19)">19 > href="javascript:choose(20)">20 > href="javascript:choose(21)">21 > href="javascript:choose(22)">22 > href="javascript:choose(23)">23 >
>
href="javascript:choose(24)">24 > href="javascript:choose(25)">25 > href="javascript:choose(26)">26 > href="javascript:choose(27)">27 > href="javascript:choose(28)">28 > href="javascript:choose(29)">29 > href="javascript:choose(30)">30 >
>
href="javascript:choose(31)">31
> > 
> > First_Name
> > Amos
> > Jeff
> > Steve
> > Cathy
> > Patricia
> > Cary
> > Tom
> > 
> > 
> > 
> > 
> > 
> > --- Jim Seach <[EMAIL PROTECTED]> wrote:
> > > I agree - it's worth looking at the client.  Do
> you
> > > have any large
> > > tables?  I have had problems in the past with
> > > Netscape taking a long
> > > time (> 5 min) to load tables with several
> thousand
> > > rows.
> > > 
> > > Jim
> > > 
> > > --- Denis Haskin <[EMAIL PROTECTED]>
> wrote:
> > > > Do you know for sure the difference in 'load'
> time
> > > is at the server,
> > > > and 
> > > > not at the client?  What's the content coming
> back
> > > from the server? 
> > > > I 
> > > > would grab a copy of that, put it in a file,
> and
> > > load that in IE and 
> > > > Netscape to see if there's any difference in
> load
> > > times.
> > > > 
> > > > I suppose it's possible that IE and Netscape
> are
> > > sending different
> > > > http 
> > > > headers that are getting handled differently
> at
> > > the server, but this 
> > > > seems unlikely.
> > > > 
> > > > Are you sending these requests straight to
> Tomcat,
> > > or are they going 
> > > > through a web server first?
> > > > 
> > > > dwh
> > > > 
> > > > A.L. wrote:
> > > > 
> > > > >Why WOuld a servlet which runs perfectly
> normal
> > > in
> > > > >Explorer take a long time to load in
> Netscape? 
> > > On the
> > > > >Tomcat Console Window I see the request
> coming in
> > > > >immediately, but for some reason Netscape
> won't
> > > load
> > > > >quickly.
> > > > >-Amos
> > > > >
> > > >
> > >
> >__
> > > > >Do You Yahoo!?
> > > > >Make international calls for as low as
> > > $.04/minute with Yahoo!
> > > > Messenger
> > > > >http://phonecard.yahoo.com/
> > > > >
> > > > >
> > > > >
> > > > 
> > > > 
> > > 
> > > 
> > >
> __
> > > Do You Yahoo!?
> > > Make international calls for as low as
> $.04/minute
> > > with Yahoo! Messenger
> > > http://phonecard.yahoo.com/
> > 
> > 
> > __
> > Do You Yahoo!?
> > Make international calls for as low as $.04/minute
> with Yahoo!
> > Messenger
> > http://phonecard.yahoo.com/
> 
> 
> __
> Do You Yahoo!?
> Make international calls for as low as $.04/minute
> with Yahoo! Messenger
> 
=== message truncated ===


__

Re: Servlet Runs SLow

2001-08-15 Thread Jim Seach

I copied the html into a static file and was able to bring it up
immediately in Netscape 4.76, so it doesn't appear to be the contents
of the form that is the problem.

Does it take a long time to display, or does it just not appear to
finish loading?  I have also noticed that sometimes even after the page
has loaded, Netscape still appears to be working.  So far, I have just
ignored it.

Jim

--- "A.L." <[EMAIL PROTECTED]> wrote:
> Below is the code that is returned:
> 
> It seems that Netscape might have problems with the
> FORM data.  It does seem as if the server is sending
> the reponse immediately.  Or maybe it is having
> trouble with the javascript functions... Any
> suggestions
> 
> (I am only running TOmcat by the way)
> 
> 
> 
> 
> 
> Calendar
> 
> 
> 
> 
>  January 
>  February
>  March
>  April
>  May
>  June
> 
> 
> 
> March2001 NAME="date2"ACTION="/jd/Calendar"> NAME="d">function
> choose(n){document.date2.d.value =
>
n;document.date2.submit();} href="javascript:choose(1)">1 href="javascript:choose(2)">2 href="javascript:choose(3)">3 href="javascript:choose(4)">4 href="javascript:choose(5)">5 href="javascript:choose(6)">6 href="javascript:choose(7)">7 href="javascript:choose(8)">8 href="javascript:choose(9)">9 href="javascript:choose(10)">10 href="javascript:choose(11)">11 href="javascript:choose(12)">12 href="javascript:choose(13)">13 href="javascript:choose(14)">14 href="javascript:choose(15)">15 href="javascript:choose(16)">16 href="javascript:choose(17)">17 href="javascript:choose(18)">18 href="javascript:choose(19)">19 href="javascript:choose(20)">20 href="javascript:choose(21)">21 href="javascript:choose(22)">22 href="javascript:choose(23)">23 href="javascript:choose(24)">24 href="javascript:choose(25)">25 href="javascript:choose(26)">26 href="javascript:choose(27)">27 href="javascript:choose(28)">28 href="javascript:choose(29)">29 href="javascript:choose(30)">30 href="javascript:choose(31)">31
> 
> First_Name
> Amos
> Jeff
> Steve
> Cathy
> Patricia
> Cary
> Tom
> 
> 
> 
> 
> 
> --- Jim Seach <[EMAIL PROTECTED]> wrote:
> > I agree - it's worth looking at the client.  Do you
> > have any large
> > tables?  I have had problems in the past with
> > Netscape taking a long
> > time (> 5 min) to load tables with several thousand
> > rows.
> > 
> > Jim
> > 
> > --- Denis Haskin <[EMAIL PROTECTED]> wrote:
> > > Do you know for sure the difference in 'load' time
> > is at the server,
> > > and 
> > > not at the client?  What's the content coming back
> > from the server? 
> > > I 
> > > would grab a copy of that, put it in a file, and
> > load that in IE and 
> > > Netscape to see if there's any difference in load
> > times.
> > > 
> > > I suppose it's possible that IE and Netscape are
> > sending different
> > > http 
> > > headers that are getting handled differently at
> > the server, but this 
> > > seems unlikely.
> > > 
> > > Are you sending these requests straight to Tomcat,
> > or are they going 
> > > through a web server first?
> > > 
> > > dwh
> > > 
> > > A.L. wrote:
> > > 
> > > >Why WOuld a servlet which runs perfectly normal
> > in
> > > >Explorer take a long time to load in Netscape? 
> > On the
> > > >Tomcat Console Window I see the request coming in
> > > >immediately, but for some reason Netscape won't
> > load
> > > >quickly.
> > > >-Amos
> > > >
> > >
> > >__
> > > >Do You Yahoo!?
> > > >Make international calls for as low as
> > $.04/minute with Yahoo!
> > > Messenger
> > > >http://phonecard.yahoo.com/
> > > >
> > > >
> > > >
> > > 
> > > 
> > 
> > 
> > __
> > Do You Yahoo!?
> > Make international calls for as low as $.04/minute
> > with Yahoo! Messenger
> > http://phonecard.yahoo.com/
> 
> 
> __
> Do You Yahoo!?
> Make international calls for as low as $.04/minute with Yahoo!
> Messenger
> http://phonecard.yahoo.com/


__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/



Re: Servlet Runs SLow

2001-08-15 Thread Boris Niyazov

I do not think it's a servelt problem. It's probably the browser issue.

  - Boris

>Why WOuld a servlet which runs perfectly normal in
>Explorer take a long time to load in Netscape?  On the
>Tomcat Console Window I see the request coming in
>immediately, but for some reason Netscape won't load
>quickly.
>-Amos
>
>__
>Do You Yahoo!?
>Make international calls for as low as $.04/minute with Yahoo! Messenger
>http://phonecard.yahoo.com/





problems on running build.bat in sample

2001-08-15 Thread Alice Li

Hello, everyone:
 I copied sample directory to C:\tomcat\webapps from
C:\tomcat\doc\appdev. Then I run build.bat which is
 in sample directory. I always get these error messages:
 Registry key 'Software\Javasoft\Java Runtime
Environment\CurrentVersion' has value '1.2', but '1.4' is required.
 Error: could not find java.dll
 Error: could not find Java 2 Runtime Environment.
  
 I am using Tomcat 3.2.3 in Windows Me.
  
 Any advice is really appreciated.
 Thank you very much.
  
 Alice
-- 

Gandalf Graphics Limited



RE: ABSOLUTELY WORLDS NO. 1 ..MEGA !

2001-08-15 Thread Tim O'Neil

At 03:10 PM 8/14/2001, you wrote:
>Look for MEGA and nuke'm

> >Maybe enabling filtering by headers will help. That message had
> >'Precedence: bulk' header.

Nah, you have to use the headers, a legitimate
message could contain the string "MEGA" in its subject
header. Unfortunately you can't count on spammers to be
so gracious as to be sure to include the bulk header
either. Only the technically incompetent ones.




Re: Servlet Runs SLow

2001-08-15 Thread A.L.

Below is the code that is returned:

It seems that Netscape might have problems with the
FORM data.  It does seem as if the server is sending
the reponse immediately.  Or maybe it is having
trouble with the javascript functions... Any
suggestions

(I am only running TOmcat by the way)





Calendar




 January 
 February
 March
 April
 May
 June



March2001function
choose(n){document.date2.d.value =
n;document.date2.submit();}12345678910111213141516171819202122232425262728293031

First_Name
Amos
Jeff
Steve
Cathy
Patricia
Cary
Tom





--- Jim Seach <[EMAIL PROTECTED]> wrote:
> I agree - it's worth looking at the client.  Do you
> have any large
> tables?  I have had problems in the past with
> Netscape taking a long
> time (> 5 min) to load tables with several thousand
> rows.
> 
> Jim
> 
> --- Denis Haskin <[EMAIL PROTECTED]> wrote:
> > Do you know for sure the difference in 'load' time
> is at the server,
> > and 
> > not at the client?  What's the content coming back
> from the server? 
> > I 
> > would grab a copy of that, put it in a file, and
> load that in IE and 
> > Netscape to see if there's any difference in load
> times.
> > 
> > I suppose it's possible that IE and Netscape are
> sending different
> > http 
> > headers that are getting handled differently at
> the server, but this 
> > seems unlikely.
> > 
> > Are you sending these requests straight to Tomcat,
> or are they going 
> > through a web server first?
> > 
> > dwh
> > 
> > A.L. wrote:
> > 
> > >Why WOuld a servlet which runs perfectly normal
> in
> > >Explorer take a long time to load in Netscape? 
> On the
> > >Tomcat Console Window I see the request coming in
> > >immediately, but for some reason Netscape won't
> load
> > >quickly.
> > >-Amos
> > >
> >
> >__
> > >Do You Yahoo!?
> > >Make international calls for as low as
> $.04/minute with Yahoo!
> > Messenger
> > >http://phonecard.yahoo.com/
> > >
> > >
> > >
> > 
> > 
> 
> 
> __
> Do You Yahoo!?
> Make international calls for as low as $.04/minute
> with Yahoo! Messenger
> http://phonecard.yahoo.com/


__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/



Re: db connection denied access

2001-08-15 Thread Rob S.

> java.sql.SQLException: Server configuration denies access to data source

-> 

It's a SQLException, so it looks like you've established a pipe between your code and 
the server (that error message would imply its Tomcat's fault), but in a way the 
*database* server doesn't like.  I'm not sure why MySQL would deny you access...

- r




Re: Servlet Runs SLow

2001-08-15 Thread Jim Seach

I agree - it's worth looking at the client.  Do you have any large
tables?  I have had problems in the past with Netscape taking a long
time (> 5 min) to load tables with several thousand rows.

Jim

--- Denis Haskin <[EMAIL PROTECTED]> wrote:
> Do you know for sure the difference in 'load' time is at the server,
> and 
> not at the client?  What's the content coming back from the server? 
> I 
> would grab a copy of that, put it in a file, and load that in IE and 
> Netscape to see if there's any difference in load times.
> 
> I suppose it's possible that IE and Netscape are sending different
> http 
> headers that are getting handled differently at the server, but this 
> seems unlikely.
> 
> Are you sending these requests straight to Tomcat, or are they going 
> through a web server first?
> 
> dwh
> 
> A.L. wrote:
> 
> >Why WOuld a servlet which runs perfectly normal in
> >Explorer take a long time to load in Netscape?  On the
> >Tomcat Console Window I see the request coming in
> >immediately, but for some reason Netscape won't load
> >quickly.
> >-Amos
> >
> >__
> >Do You Yahoo!?
> >Make international calls for as low as $.04/minute with Yahoo!
> Messenger
> >http://phonecard.yahoo.com/
> >
> >
> >
> 
> 


__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/



Does the servlet security model work with the J2EE Blueprint MVC?

2001-08-15 Thread Jerome Jacobsen

Hello,

The Java Servlet Specification (Version 2.3, Draft 2) under SRV.12.2 states:

"The security model applies to the static content part of the web
application and to servlets within the application that are requested by the
client. The security model does not apply when a servlet uses the
RequestDispatcher to invoke a static resource or servlet using a forward()
or an include()."

Does this mean that using the MVC architecture with a Web controller as
described in the J2EE Blueprints precludes the use of this security model?

-Jerome





Re: Servlet Runs SLow

2001-08-15 Thread Denis Haskin

Do you know for sure the difference in 'load' time is at the server, and 
not at the client?  What's the content coming back from the server?  I 
would grab a copy of that, put it in a file, and load that in IE and 
Netscape to see if there's any difference in load times.

I suppose it's possible that IE and Netscape are sending different http 
headers that are getting handled differently at the server, but this 
seems unlikely.

Are you sending these requests straight to Tomcat, or are they going 
through a web server first?

dwh

A.L. wrote:

>Why WOuld a servlet which runs perfectly normal in
>Explorer take a long time to load in Netscape?  On the
>Tomcat Console Window I see the request coming in
>immediately, but for some reason Netscape won't load
>quickly.
>-Amos
>
>__
>Do You Yahoo!?
>Make international calls for as low as $.04/minute with Yahoo! Messenger
>http://phonecard.yahoo.com/
>
>
>





not working with tomcat 3.2.3

2001-08-15 Thread Taavi Tiirik

I have

...


404
/error404.jsp


...

in my web.xml file and for some reason it is not enough to get
error404.jsp to show up when I hit a non existent page.

Is there some other configuring that is needed in order to
make it working?

I get following debug messages when I access non existent page.jsp
(ta is a name of my webapp):

2001-08-15 16:35:08 - Ctx( /ta ): 404 R( /ta + /page.jsp + null) null
2001-08-15 16:35:15 - Ctx( /ta ): 404 R( /ta + /page.html + null) null

Any ideas of what might be wrong? I am using tomcat 3.2.3 on Win2000
with ie5 (friendly error messages are disabled).

with best wishes,
Taavi





Re: IBM JDK

2001-08-15 Thread Paul Rubenis

Another reason to use IBM's jdk is that IBM will support it.  They will
not support sun's jdk.  It doesn't hurt that IBM's jdk is a very good
implementation.

"James, Stuart" wrote:
> 
> why would you want to run the IBM JDK ? is it faster/better than suns jdk ?
> 

-- 
+-- mailto:[EMAIL PROTECTED] +
| Paul M Rubenis - System Administrator |
| Phone: (612) 624-8337 |
| Fax:   (612) 625-6853 |
+---+
| Any connection between your reality and mine is purely|
| coincidental. |



db connection denied access

2001-08-15 Thread Richard Draucker

This is odd and I'm stumped.  I have a simple db connection class in a jar 
under ~app/WEB-INF/lib.  I have a servlet under ~app/WEB-INF/classes that 
imports this connection class.  The mm.mysql driver jar also resides in this 
WEB-INF/lib.
The servlet accesses the connection class just fine.  But, when the 
connection class attempts a connection to the database I get the error:

java.sql.SQLException: Server configuration denies access to data source

However, if I cut 'n paste the code from the connection class into the 
servlet I have no problem with the connection or data retrieval.

FYI: 
RH7.1 new installation
jdk 1.3.1
Tomcat 3.2.1
MySQL 3.2.2 


-- 
Richard Draucker [EMAIL PROTECTED]
Protected-Data.Com www.protected-data.com
Remote Data Support For Web Developers




Servlet Runs SLow

2001-08-15 Thread A.L.

Why WOuld a servlet which runs perfectly normal in
Explorer take a long time to load in Netscape?  On the
Tomcat Console Window I see the request coming in
immediately, but for some reason Netscape won't load
quickly.
-Amos

__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/



Tomcat and IIS - error with isapi_redirect.dll

2001-08-15 Thread Martin Schaefer

hi,

i'm setting up tomcat to run with iis on winnt server 4. tomcat itself 
is running fine as a service, i can run the examples if i use the tomcat 
port.

i cannot start the isapi filter in IIS, and i get the follwing error in 
the event viewer on startup:

Source: W3SVC Type:Error
The HTTP Filter DLL c:\tomcat\bin\isapi_redirect.dll failed to load
The Data is the error.

the path is correct, i downloaded the dll twice and i have checked all 
the registry entries again and again. has anyone had this problem and 
has anyone got any ideas?

thx

martin




Error Log

2001-08-15 Thread Barnabas Yohannes

Folks,

How are folks at your end doing?  The last time I asked you, you gave me
great ideas.  Folks at my end are pulling their hair tying to solve these
errors from apache server error_log.  After these errors are displayed, the
JSP a page at the tomecat server fails.

Tue Aug 14 16:52:26 2001] [error] [client 63.104.195.176] request failed:
error reading the headers

[Tue Aug 14 19:57:55 2001] [error] [client 63.104.195.182] request
failed:error reading the headers

[Tue Aug 14 22:02:10 2001] [error] [client 63.104.195.182] request
failed:error reading the headers

[Tue Aug 14 23:38:19 2001] [error] [client 63.104.195.182] request
failed:error reading the headers

[Wed Aug 15 00:17:57 2001] [error] [client 63.104.195.182] request
failed:error reading the headers

[Wed Aug 15 01:17:52 2001] [error] [client 210.220.132.95] Client sent
malformed Host header

[Wed Aug 15 02:51:43 2001] [error] [client 63.104.195.182] request failed:
error reading the headers

[Wed Aug 15 05:29:48 2001] [error] [client 63.104.195.182] request failed:
error reading the headers



What I am specially concerned is this error

[Wed Aug 15 01:17:52 2001] [error] [client 210.220.132.95] Client sent
malformed Host header

Do you think some hacker is sending malformed host header from a browser?

Any tip will be hightly apprecated,




RE: My JSP pages are freezing !!

2001-08-15 Thread James, Stuart

is it possible your browser is caching the result? if so add the following
to the footer of the page,









or put a system.out.println inside the jsp page to display when its being
called and finished running 

-Original Message-
From: Rob S. [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 15, 2001 1:58 PM
To: [EMAIL PROTECTED]
Subject: Re: My JSP pages are freezing !!


Hi Christian,

Not to be skeptical, but it doesn't *sound* like a Tomcat problem.  As well,
the page isn't "freezing" per se, which would imply some sort of time-out,
it's just looking the same when you hit it again.  You'll need to provide
more detail about the page if you want help, but I'm reluctant to solve your
JSP programming problems .

- r

On Wed, 15 Aug 2001 08:51:41 -0300 [EMAIL PROTECTED] wrote:
> Hello all ! I have tomcat 3.3  with apache and it seems work fine
> until now. I have a JSP page that receive
> only one param , execute a query in a database (interbase) , and
> make the output.
> All work fine during some time but suddenly, when i execute the page
> 
> with different values for the param, the output
> is always the same , i.e., the output always show the answer not matter
> what value i put for the param.
> It seems like the page freezing with an old value .
> 
>Christian




___
Email Disclaimer

This communication is for the attention of the
named recipient only and should not be passed
on to any other person. Information relating to
any company or security, is for information
purposes only and should not be interpreted as
a solicitation or offer to buy or sell any security.
The information on which this communication is based
has been obtained from sources we believe to be reliable,
but we do not guarantee its accuracy or completeness.
All expressions of opinion are subject to change
without notice.  All e-mail messages, and associated attachments,
are subject to interception and monitoring for lawful business purposes.
___



Re: My JSP pages are freezing !!

2001-08-15 Thread Rob S.

Hi Christian,

Not to be skeptical, but it doesn't *sound* like a Tomcat problem.  As well, the page 
isn't "freezing" per se, which would imply some sort of time-out, it's just looking 
the same when you hit it again.  You'll need to provide more detail about the page if 
you want help, but I'm reluctant to solve your JSP programming problems .

- r

On Wed, 15 Aug 2001 08:51:41 -0300 [EMAIL PROTECTED] wrote:
> Hello all ! I have tomcat 3.3  with apache and it seems work fine
> until now. I have a JSP page that receive
> only one param , execute a query in a database (interbase) , and
> make the output.
> All work fine during some time but suddenly, when i execute the page
> 
> with different values for the param, the output
> is always the same , i.e., the output always show the answer not matter
> what value i put for the param.
> It seems like the page freezing with an old value .
> 
>Christian






My JSP pages are freezing !!

2001-08-15 Thread Christian Cleber

Hello all ! I have tomcat 3.3  with apache and it seems work fine
until now. I have a JSP page that receive
only one param , execute a query in a database (interbase) , and
make the output.
All work fine during some time but suddenly, when i execute the page

with different values for the param, the output
is always the same , i.e., the output always show the answer not matter
what value i put for the param.
It seems like the page freezing with an old value .

   Christian






RE: That annoying ClassNotFoundException again

2001-08-15 Thread Larry Isaacs

I haven't yet played with JDK1.4 yet.  However, comments I have heard
suggest that it may come with an XML parser built in.  I think
Tomcat 3.1 requires xml.jar be used which may be conflicting with
the build in XML parser.  I would recommend upgrading your
Tomcat.

Larry

> -Original Message-
> From: David Epstein [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, August 15, 2001 12:15 AM
> To: [EMAIL PROTECTED]
> Subject: That annoying ClassNotFoundException again
> 
> 
> 
> I'm having the same problem others have had, yet none of the 
> fixes seem to
> work. I'm running an installation that worked just fine on 
> Win2K Server,
> JDK1.3.1, and Tomcat 2.1. When I upgraded to JDK1.4 I started getting:
> 
> java.lang.ClassNotFoundException: com/sun/xml/parser/Parser
> at java.lang.Class.forName0(Native Method)
> at java.lang.Class.forName(Unknown Source)
> at 
> org.xml.sax.helpers.ParserFactory.makeParser(Unknown Source)
> at 
> org.apache.tomcat.util.xml.XmlMapper.readXml(XmlMapper.java:191)
> at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:143)
> at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:163)
> FATAL: configuration error
> java.lang.Exception: Error creating sax parser
> at 
> org.apache.tomcat.util.xml.XmlMapper.readXml(XmlMapper.java:207)
> at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:143)
> at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:163)
> 
> None of the .jar files has been moved from the 
> TOMCAT_HOME\lib directory,
> and this worked fine before. In particular, I have xml.jar in 
> the classpath,
> which has the requested com/sun/xml/parser/Parser class in 
> it. After reading
> the archived newsgroups I tried:
> 
> 1. adding a parser.jar file to TOMCAT_HOME\lib
> 
> 2. checking all other .jar's in the classpath for a conflict on the
> Parser.class file
> 
> 3. moving xml.jar to the JAVA_HOME/lib/ext directory
> 
> Nothing seems to help. Anyone have a good idea, other than 
> just returning to
> the old JDK version? Any hints greatly appreciated.
> 
> 
> 
> David Epstein
> 420 West 118th Street
> Columbia University
> New York, NY 10027
> 212-854-7566 (voice)
> 212-222-0598 (fax)
> http://paradocs.pols.columbia.edu/myweb
> 
> 
> 
> 



RE: Pure Linux Problem: problems with Java 1.3.0_02 on Linux.

2001-08-15 Thread Martin van den Bemt

if the file isn't executable (chmod +x) or you don't have access to that
file, then it also stop... try to start cut from the commandline.. see what
happens (so type /usr/bin/cut , it should give some result), if not, the
file is not there or you don't have enough permissions..

Mvgr,
Martin

> -Original Message-
> From: Allan Kamau [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, August 15, 2001 2:02 PM
> To: [EMAIL PROTECTED]
> Subject: Pure Linux Problem: problems with Java 1.3.0_02 on Linux.
>
>
> Hi,
> This is not a tomcat question sorry of the
> inconvinence.
> I wonder if there is anyone here successfully running
> Java 1.3.x on Red Hat 7.1.
> 
> #java somejavaprogram
> /usr/java/jdk1.3.0_02/bin/java: /usr/bin/cut: No such
> file or directory
> /usr/java/jdk1.3.0_02/bin/i386/native_threads/java:
> error while loading shared libraries: libjvm.so:
> cannot load shared object file: No such file or
> directory
> 
>
> I have followed the instructions from sun's site which
> read that one should install
> compat-libstdc++-6.21-2.9.0.0.i386.rpm to eliminate
> this problem.
> However this particular rpm file is nowhere in the
> internet. I have installed
> compat-libstdc++-6.2-2.9.0.14.i386.rpm but I still get
> the same error. I have ever copied /bin/cut to
> /usr/bin/ without success.
> The Installation instructions from the sun's site
>
> Thank you in advance.
> Allan Kamau.
>
> __
> Do You Yahoo!?
> Make international calls for as low as $.04/minute with Yahoo! Messenger
> http://phonecard.yahoo.com/
>




RE: ABSOLUTELY WORLDS NO. 1 ..MEGA !

2001-08-15 Thread Charlie Cox

I don't know if this is possible or not, but could you
allow messages with 'Tomcat', 'context','mod_jk' etc.,
in the subject and then moderate only the messages
without those keywords.

Of course this guy can post to the list and I still
can't from my subscribed account(outlook's
multipart/alt 'feature'). I guess they haven't fixed
our exchange server yet :(

Charlie

> -Original Message-
> From: Pier P. Fumagalli
[mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, August 14, 2001 5:48 PM
> To: [EMAIL PROTECTED]
> Subject: Re: ABSOLUTELY WORLDS NO. 1 ..MEGA !
> 
> 
> ENTERTAINMENT at [EMAIL PROTECTED]
wrote:
> > 
> > [...]
> 
> Awww... I'm sorry guys... I'll have to enable
moderation 
> (once one gets in,
> we'll be flooded)... Sorry... :( :( :(
> 
> 
> Pier
> 



__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/



Pure Linux Problem: problems with Java 1.3.0_02 on Linux.

2001-08-15 Thread Allan Kamau

Hi,
This is not a tomcat question sorry of the
inconvinence.
I wonder if there is anyone here successfully running
Java 1.3.x on Red Hat 7.1.

#java somejavaprogram
/usr/java/jdk1.3.0_02/bin/java: /usr/bin/cut: No such
file or directory
/usr/java/jdk1.3.0_02/bin/i386/native_threads/java:
error while loading shared libraries: libjvm.so:
cannot load shared object file: No such file or
directory


I have followed the instructions from sun's site which
read that one should install
compat-libstdc++-6.21-2.9.0.0.i386.rpm to eliminate
this problem.
However this particular rpm file is nowhere in the
internet. I have installed
compat-libstdc++-6.2-2.9.0.14.i386.rpm but I still get
the same error. I have ever copied /bin/cut to
/usr/bin/ without success.
The Installation instructions from the sun's site

Thank you in advance.
Allan Kamau.

__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/



RE: ABSOLUTELY WORLDS NO. 1 ..MEGA !

2001-08-15 Thread Randy Layman



> -Original Message-
> From: Dan Garcia [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, August 14, 2001 6:20 PM
> To: [EMAIL PROTECTED]
> Subject: RE: ABSOLUTELY WORLDS NO. 1 ..MEGA !
> 
> 
> On Tue, 14 Aug 2001, Alexey N. Solofnenko wrote:
> > Maybe enabling filtering by headers will help. That message had
> > 'Precedence: bulk' header. 
> 
> All the mailing list messages have Precedence: bulk :)
> 
> What I do on my lists is restrict posting to list members 
> (and I have a 
> secondary list of approved posters for people who subscribe from one
> address, and post from another, it's usually easy to figure those out
> after the first or second bounce and add them to the list)
> 

This is a good idea.  It would also reduce the number of messages where
someone posts without subscribing, then posts again because they didn't see
the answer to their question.

Randy



RE: Tomcat crashes simultaneous more connection above 990+

2001-08-15 Thread Randy Layman


There are lots of other ways that you can crash Tomcat with
concurrent access, like using the JDBC-ODBC bridge.  I would advise you to
look at your application and assume that Tomcat is working just fine.  This
person was talking about high load (hundreds and thousands of concurrent
connection).

You set the max number of concurrent connections in the server.xml
file using the max thread variables.  The normal behavior (i.e. not under
extreme load) is for those extra connections to get 404s or have their
connections refused.

Randy

> -Original Message-
> From: Barnabas Yohannes [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, August 14, 2001 5:56 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Tomcat crashes simultaneous more connection above 990+
> 
> 
> Looks, like my webpage at tomcat is crashing because of many 
> people trying
> to access the page simultaneously.  Where in tomcat do you 
> check to see how
> many concurrent connections are connected?
> 
> - Original Message -
> From: "Leigh Wanstead" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
> Sent: Tuesday, August 14, 2001 4:26 PM
> Subject: Re: Tomcat crashes simultaneous more connection above 990+
> 
> 
> > Does anyone try to apply that theory on Tomcat or Jetty or JBoss?
> >
> >
> > - Original Message -
> > From: "Aravind Naidu" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Saturday, August 11, 2001 5:50 PM
> > Subject: RE: Tomcat crashes simultaneous more connection above 990+
> >
> >
> > > More like a limitation of your JVM on your platform.
> > > Look at the Volano benchmarks on network scalability.
> > > http://www.volano.com/report/index.html
> > >
> > >
> > > -Original Message-
> > > From: Santosh Pasi [mailto:[EMAIL PROTECTED]]
> > > Sent: Monday, 1 January 1601 08:00
> > > To: [EMAIL PROTECTED]
> > > Subject: Tomcat crashes simultaneous more connection above 990+
> > >
> > >
> > > Hi everyone,
> > >
> > > Can anyone know how much simultaneous connections Tomcat 
> can support,
> > > where do I need to change the settings to reflect same.  
> Is no. of max.
> > > connections support ... is somewhat related with no. of 
> connections to
> > > Tomcat.
> > > Yesterday, I tried all combinations .. still as soon as total
> > > connections .. reaches above 990 .. 997(at most) it 
> crashes Tomcat.  And
> > no
> > > more
> > > process of Tomcat is left.  Although Apache adn other 
> applications are
> not
> > > affected.
> > > Is there a no. limitation on child process ... as here 
> child processes
> > > . increases to some what 1048.. and it crashes.
> > > Same thing i tried on AIX 4.5 ... and it supported above 
> 2600 process
> > > adn finally it crashed there.
> > > We are looking for 10,000 - 12000 simulatenous 
> connections .. it means
> > > 1-12000 child process java ... is it problem with 
> java .. we ar
> using
> > > 1.2.2.
> > > Is there any fine tuning that i can do in Tomcat or 
> Apache or Linux?
> > >
> > > Regards,
> > > Santosh Pasi
> > >
> > >
> > >
> > > ---Original Message--
> > > Mailing-List: contact 
> [EMAIL PROTECTED]; run by ezmlm
> > > >Precedence: bulk
> > > >Reply-To: [EMAIL PROTECTED]
> > > >List-Help: 
> > > >List-Unsubscribe: 
> 
> > > >List-Post: 
> > > >To: [EMAIL PROTECTED]
> > > >From: Santosh Pasi<[EMAIL PROTECTED]>
> > > >Cc:
> > > >Reply-To: Santosh Pasi<[EMAIL PROTECTED]>
> > > >Date: Fri, 10 Aug 2001 12:30:04 +0530
> > > >In-Reply-To: [EMAIL PROTECTED]
> > > >Subject: Re: Jakarta crashes simultaneous more 
> connection above 990+
> > > >
> > > >Hi,
> > > >
> > > >Even changing pools setting like
> > > >Increasing the pool size resolved the problem, specifically the
> > > >following parameters (neatly copied from the tomcat users guide)
> > > >
> > > >> > > name="max_threads"
> > > > value="200"/>
> > > >  > > > name="max_spare_threads"
> > > > value="20"/>
> > > >  > > > name="min_spare_threads"
> > > > value="20" />
> > > >
> > > >The values were arbitrary - I stuck mine up to max_threads = 200,
> > > >max_spare_threads=20, min_spare_threads=20
> > > >and lo - the hang problem  went away.
> > > >
> > > >Even I had used options
> > > >
> > > >TOMCAT_OPTS=" -Xms64m"
> > > >
> > > >Didn't solve the problem.
> > > >
> > > >Still same problem.
> > > >
> > > >Regards,
> > > >Santosh Pasi
> > > >
> > > >---Original Message--
> > > >Mailing-List: contact 
> [EMAIL PROTECTED]; run by ezmlm
> > > >>Precedence: bulk
> > > >>Reply-To: [EMAIL PROTECTED]
> > > >>List-Help: 
> > > >>List-Unsubscribe: 
> 
> > > >>List-Post: 
> > > >>To: [EMAIL PROTECTED]
> > > >>From: Santosh Pasi<[EMAIL PROTECT

Re: mod_jk.so + apache

2001-08-15 Thread Yann Sagon

Jonathon Wallen a écrit :
> 
> >
> >My probleme:
Thanks but no, it doesn't change something.

> you have this line in your httpd.conf -
> LoadModule jk_module  libexec/mod_jk.so
> 
> maybe it should be -
> LoadModule jk_module  /etc/httpd/libexec/mod_jk.so
> 
> I'm just as new to this as you are so I'm probably wrong :)



Re: mod_jk.so + apache

2001-08-15 Thread Yann Sagon

matt a écrit :
> 
> how did you know you wanted the eapi mod_jk rather than non?

I didn't know.

I've tried with both of them.
With the noeapi, apache don't start.

I'm using Mandrake, so I guess that they use an enhanced version of
apache.

Yann Sagon



RE: Restarting Tomcat/Apache

2001-08-15 Thread James Bromberger

Hmm... similar to my message on Monday. However, I already have:

> java version "1.3.1"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1-b24)
> Java HotSpot(TM) Client VM (build 1.3.1-b24, mixed mode)

... on Solaris. one; 5 machines work fine, one does not shutdown at all (other than 
kill -9). Interestingly, the one that seems to be having trouble is the Solaris 8 
machine. The other 5 are all Solaris 2.6 (but all the *same* Sun JDK).

  James

-- 
  James Bromberger,
  Senior Web/Systems Administrator, JDV
  +61 8 9268 2909, +61 417 322 500
  Fax: +61 8 9268 0200

>>> [EMAIL PROTECTED] 08/15/01 03:37pm >>>
OK, found the problem.  I was using Sun's JDK 1.3.0_02.  Upgrading to JDK
1.3.1 has solved all the problems.

Thanks for the suggestions though.

Simon

> -Original Message-
> From: Mike McGuinness [mailto:[EMAIL PROTECTED]] 
> Sent: 13 August 2001 21:13
> To: [EMAIL PROTECTED] 
> Subject: Re: Restarting Tomcat/Apache
>
>
> I use jave just about the exact same configuration and I
> don't have the
> problems you state. I have noticed that if I restart tomcat *without*
> restarting apache, there are problems.
>
> To restart I use the following script:
>
> #!/bin/bash
> /usr/apache/bin/apachectl stop
> sleep 2
> /usr/jakarta/dist/tomcat/bin/shutdown.sh
> sleep 2
> /usr/jakarta/dist/tomcat/bin/startup.sh
> sleep 2
> /usr/apache/bin/apachectl start
>
>
> Mike
>
>
> 1. stop .
> 2.
> --- Simon Hardingham <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> > I am having problems restarting Tomcat.  It can be a real
> problem to get
> > Tomcat to shutdown (often requiring a killall java).  Even
> then starting
> > up
> > can be intermittent.  Has anyone else had any problems with
> starting and
> > stopping Tomcat.  System details are:
> >
> > RedHat Linux 7.1 on Intel
> > Tomcat 3.2.3
> > mod_jk (from 3.2.3)
> > Apache 1.3.19
> > servlets with JDBC to PostgresSQL 7.1.2
> >
> > Any thoughts? Development is difficult when restarting is such an
> > effort!
> >
> > Many thanks
> >
> > Simon
> >
> > _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
> > _/ Simon Hardingham - netXtra Ltd - UK  _/
> > _/  Direct Dial: +44 (0) 1787 314890_/
> > _/ Tel: +44 (0) 1787 319393Fax: +44 (0) 1787 319394 _/
> > _/ http://www.netxtra.co.uk [EMAIL PROTECTED] _/
> > _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
> >
> >
>
>
> __
> Do You Yahoo!?
> Send instant messages & get email alerts with Yahoo! Messenger.
> http://im.yahoo.com/ 
>





  1   2   >