RE: Where to locate class files

2002-08-21 Thread Ron Day

Are you using packages for your java code? If not that is your problem.

The default package is NOT the "classes" directory, but "org.apache.jsp", so
if you don't explicitly use a package name, and put your class files in
"classes", Tomcat will not find them.

Use a package name such as com.pk1.pk2 and put a directory structure
com/pk1/pk2/ under classes. Put your class files in pk2.

Ron

-Original Message-
From: Barry Martin [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 21, 2002 5:41 PM
To: 'Tomcat Users List'
Subject: Where to locate class files


I am developing an order form to run on Tomcat. The book I have says to
store the class files in \webapps\root\web-inf\classes
directory. The html file is located in the root directory and runs fine but
when calling the jsp the error is:Class org.apache.jsp.Spud not found.  Is
this the correct directory to store class files? Any ideas appreciated.

Barry Martin


--
To unsubscribe, e-mail:

For additional commands, e-mail:





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




RE: Where to locate class files

2002-08-21 Thread Ron Day

almoststart your package in "classes" directory

-Original Message-
From: Andrew Conrad [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 21, 2002 7:43 PM
To: 'Tomcat Users List'; [EMAIL PROTECTED]
Subject: RE: Where to locate class files


Here is your problem

Make your class part of a package, then reproduce the package in the
WEB-INF

For instance, if you call your package  com.MyFiles   put the Java file
in WEB-INF/com/MyFiles

Then in you jsp, do an import  com.MyFiles.Spud

- Andrew

> -Original Message-
> From: Barry Martin [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, August 21, 2002 7:20 PM
> To: 'Tomcat Users List'
> Subject: RE: Where to locate class files
>
>
> Sure Peter,
>
> Here you go. Here is the html,jsp and java code.
>
> Thanks, Barry
>
> -Original Message-
> From: Peter T. Abplanalp [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, August 21, 2002 5:04 PM
> To: 'Tomcat Users List'
> Subject: Re: Where to locate class files
>
>
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> On Wed, Aug 21, 2002 at 05:00:08PM -0600, Barry Martin wrote:
> > Thanks Peter,
>
> welcome.
>
> > The WEB-INF directory is in uppercase. I have tried
> restarting tomcat.
> This
> > is in a testing environment with tomcat running standalone
> on a win2k
> > box. The version of tomcat is 4.0.1. For the class file in
> question I
> > simply typed the java code in notepad and saved the .java
> to \classes
> > and then compiled from the command prompt which saved the
> .class file
> > in the same directory. It compiled fine.
>
> well, it seems you've done everything according to the law.
> forgive me for asking but you did name the class Spud and put
> it in Spud.java, right?  can you post the code that calls
> Spud and the code for Spud?
>
> - --
> Peter Abplanalp
>
> Email:   [EMAIL PROTECTED]
> PGP: pgp.mit.edu
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.0.7 (GNU/Linux)
>
> iD8DBQE9ZBx8ggA8sH0iRXQRAkNWAJ0QM/vCHa8oKSoglc29mHTu++3DTwCfR8ta
> 2n4EbkNtX6LmI6HtMKFy5Ws=
> =eWDw
> -END PGP SIGNATURE-
>
> --
> To unsubscribe, e-mail:
>  [EMAIL PROTECTED]>
> For
> additional commands,
> e-mail: 
>
>


--
To unsubscribe, e-mail:

For additional commands, e-mail:





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




RE: Where to locate class files

2002-08-21 Thread Ron Day

No, only servlets are registered in web.xml. You really do need to use
packages believe me...

-Original Message-
From: Barry Martin [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 21, 2002 9:02 PM
To: 'Tomcat Users List'
Subject: RE: Where to locate class files


Could I also modify the web.xml file to point to my class files?

Barry

-Original Message-----
From: Ron Day [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 21, 2002 6:51 PM
To: Tomcat Users List
Subject: RE: Where to locate class files


almoststart your package in "classes" directory

-Original Message-
From: Andrew Conrad [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 21, 2002 7:43 PM
To: 'Tomcat Users List'; [EMAIL PROTECTED]
Subject: RE: Where to locate class files


Here is your problem

Make your class part of a package, then reproduce the package in the
WEB-INF

For instance, if you call your package  com.MyFiles   put the Java file
in WEB-INF/com/MyFiles

Then in you jsp, do an import  com.MyFiles.Spud

- Andrew

> -Original Message-
> From: Barry Martin [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, August 21, 2002 7:20 PM
> To: 'Tomcat Users List'
> Subject: RE: Where to locate class files
>
>
> Sure Peter,
>
> Here you go. Here is the html,jsp and java code.
>
> Thanks, Barry
>
> -Original Message-
> From: Peter T. Abplanalp [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, August 21, 2002 5:04 PM
> To: 'Tomcat Users List'
> Subject: Re: Where to locate class files
>
>
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> On Wed, Aug 21, 2002 at 05:00:08PM -0600, Barry Martin wrote:
> > Thanks Peter,
>
> welcome.
>
> > The WEB-INF directory is in uppercase. I have tried
> restarting tomcat.
> This
> > is in a testing environment with tomcat running standalone
> on a win2k
> > box. The version of tomcat is 4.0.1. For the class file in
> question I
> > simply typed the java code in notepad and saved the .java
> to \classes
> > and then compiled from the command prompt which saved the
> .class file
> > in the same directory. It compiled fine.
>
> well, it seems you've done everything according to the law.
> forgive me for asking but you did name the class Spud and put
> it in Spud.java, right?  can you post the code that calls
> Spud and the code for Spud?
>
> - --
> Peter Abplanalp
>
> Email:   [EMAIL PROTECTED]
> PGP: pgp.mit.edu
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.0.7 (GNU/Linux)
>
> iD8DBQE9ZBx8ggA8sH0iRXQRAkNWAJ0QM/vCHa8oKSoglc29mHTu++3DTwCfR8ta
> 2n4EbkNtX6LmI6HtMKFy5Ws=
> =eWDw
> -END PGP SIGNATURE-
>
> --
> To unsubscribe, e-mail:
> <mailto:tomcat-user-> [EMAIL PROTECTED]>
> For
> additional commands,
> e-mail: <mailto:[EMAIL PROTECTED]>
>
>


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




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



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


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




Off topis - building pc's

2002-09-07 Thread Ron Day

Sorry its off topic

Anyone have a good site for how to build a PC ??

Ron


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




RE: Simple Bean not working but Servlet/JSP Working

2002-09-22 Thread Ron Day

You have to put your java classes in a package. If you do not, and put 
the class files in WEB-INF/classes then Tomcat cannot find them because 
this is not the default package location for Tomcat.

Bottom line: always use pacjages for your classes !

ron


-Original Message-
From: "Manoj Kithany" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Date: Sun, 22 Sep 2002 20:59:03 +
Subject: RE: Simple Bean not working but Servlet/JSP Working

> Hi Mr. Reynir,
> 
> THANKS for reply. I have already removed the package name from the 
> FormBean.java file.
> 
> Please help.
> 
> Thanks!
> 
> Manoj G. Kithany
> 
> 
> >From: Reynir Hübner <[EMAIL PROTECTED]>
> >Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
> >To: "Tomcat Users List" <[EMAIL PROTECTED]>
> >Subject: RE: Simple Bean not working but Servlet/JSP Working
> >Date: Sun, 22 Sep 2002 20:47:21 -
> >
> >do you have the bean specified in a package ?
> >either put it into a package (and the correct "folder") as 
> >/classes/com/domain/packagename/FormBean.class
> >and then use this (with import line), or remove the package 
> >com.domain.packagename; from the file, and it should work.
> >
> >hope it helps
> >[EMAIL PROTECTED]
> >
> >
> >
> >
> >
> > > -Original Message-
> > > From: Manoj Kithany [mailto:[EMAIL PROTECTED]]
> > > Sent: 22. september 2002 20:47
> > > To: [EMAIL PROTECTED]
> > > Subject: Simple Bean not working but Servlet/JSP Working
> > >
> > >
> > > Hi Experts,
> > >
> > > I tried a simple JSP/Servlet applications and it worked. I am
> > > using Apache
> > > 1.3.26 + (Jboss 3.0.3, Tomcat 4.0.4 bundle)
> > >
> > > Now, I am trying for simple Bean Application with
> > > JSP/Servlets and Html
> > > pages. My directory structure is :
> > >
> > > /kithany (root)
> > > /kithany/register.html
> > > /kithany/success.jsp
> > > /kithany/retry.jsp
> > > /kithany/process.jsp (bean)
> > > /kithany/WEB-INF/web.xml
> > > /kithany/WEB-INF/classes/FormBean.java
> > > /kithany/WEB-INF/classes/FormBean.class
> > > /kithany/META-INF/application.xml
> > >
> > > Then, I create the kithany.war file as shown below:
> > >
> > > #cd /kithany
> > > #jar -cvfM kithany.war .
> > >
> > > I then put the "kithany.war" file in
> > > /jboss/server/default/deploy directory
> > > and  In your browser type:
> > >
> > > http://IP_ADDR_ESS:8080/kithany/register.html
> > >
> > > which works fine. In my "register.html" file my action is  > > action="/kithany/process.jsp" method=post>
> > > When I click the SUBMIT button in "register.html" form (which
> > > then calls
> > > bean and servelte), I get following Error - wonder why.
> > >
> > > --
> > > --
> > > Apache Tomcat/4.0.3 - HTTP Status 500 - Internal Server Error -
> that
> > > prevented it from fulfilling this request
> > >
> > > org.apache.jasper.JasperException: Unable to compile class for
> JSP
> > > An error occurred at line: 10 in the jsp file: /process.jsp
> > >
> > > Generated servlet error:
> > > /jboss-3.0.0_tomcat-4.0.3/catalina/work/localhost/kithany/proc
> > > ess$jsp.java:72:
> > > Class org.apache.jsp.FormBean not found.
> > > FormBean formHandler = null;
> > > ^
> > >
> > > An error occurred at line: 10 in the jsp file: /process.jsp
> > >
> > > Generated servlet error:
> > > /jboss-3.0.0_tomcat-4.0.3/catalina/work/localhost/kithany/proc
> > > ess$jsp.java:75:
> > > Class org.apache.jsp.FormBean not found.
> > >   formHandler= (FormBean)
> > > ^
> > > An error occurred at line: 10 in the jsp file: /process.jsp
> > >
> > > Generated servlet error:
> > > /jboss-3.0.0_tomcat-4.0.3/catalina/work/localhost/kithany/proc
> > > ess$jsp.java:80:
> > > Class org.apache.jsp.FormBean not found.
> > >   formHandler = (FormBean)
> > > java.beans.Beans.instantiate(this.getClass().getClassLoader(),
> > >  "FormBean");
> > >
> > > --
> > > --
> > >
> > > My process.jsp file is:
> > > --
> > > --
> > > <%@ page import="java.util.*" %>
> > >
> > > <%!
> > > ResourceBundle bundle =null;
> > > public void jspInit() {
> > >   bundle = ResourceBundle.getBundle("forms");
> > >   }
> > > %>
> > >
> > >  > > scope="request">  ** THIS
> > > IS MY LINE 10
> > > 
> > > 
> > >
> > > <%
> > >if (formHandler.validate()) {
> > > %>
> > >  > > page="<%=bundle.getString(\"/kithany/process.success\")%>"/>
> > > <%
> > >}  else {
> > > %>
> > >  > > page="<%=bundle.getString(\"/kithany/process.retry\")%>"/>
> > > <%
> > >}
> > > %>
> > > --
> > > --
> > >
> > > My web.xml file is as shown below:
> > > --
> > > -
> > > 
> > > 
> > >

RE: Simple Bean not working but Servlet/JSP Working

2002-09-23 Thread Ron Day

You have to put your java classes in a package. If you do not, and put 
the class files in WEB-INF/classes then Tomcat cannot find them because 
this is not the default package location for Tomcat.

Bottom line: always use pacjages for your classes !

ron


-Original Message-
From: "Manoj Kithany" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Date: Sun, 22 Sep 2002 20:59:03 +
Subject: RE: Simple Bean not working but Servlet/JSP Working

> Hi Mr. Reynir,
> 
> THANKS for reply. I have already removed the package name from the 
> FormBean.java file.
> 
> Please help.
> 
> Thanks!
> 
> Manoj G. Kithany
> 
> 
> >From: Reynir Hübner <[EMAIL PROTECTED]>
> >Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
> >To: "Tomcat Users List" <[EMAIL PROTECTED]>
> >Subject: RE: Simple Bean not working but Servlet/JSP Working
> >Date: Sun, 22 Sep 2002 20:47:21 -
> >
> >do you have the bean specified in a package ?
> >either put it into a package (and the correct "folder") as 
> >/classes/com/domain/packagename/FormBean.class
> >and then use this (with import line), or remove the package 
> >com.domain.packagename; from the file, and it should work.
> >
> >hope it helps
> >[EMAIL PROTECTED]
> >
> >
> >
> >
> >
> > > -Original Message-
> > > From: Manoj Kithany [mailto:[EMAIL PROTECTED]]
> > > Sent: 22. september 2002 20:47
> > > To: [EMAIL PROTECTED]
> > > Subject: Simple Bean not working but Servlet/JSP Working
> > >
> > >
> > > Hi Experts,
> > >
> > > I tried a simple JSP/Servlet applications and it worked. I am
> > > using Apache
> > > 1.3.26 + (Jboss 3.0.3, Tomcat 4.0.4 bundle)
> > >
> > > Now, I am trying for simple Bean Application with
> > > JSP/Servlets and Html
> > > pages. My directory structure is :
> > >
> > > /kithany (root)
> > > /kithany/register.html
> > > /kithany/success.jsp
> > > /kithany/retry.jsp
> > > /kithany/process.jsp (bean)
> > > /kithany/WEB-INF/web.xml
> > > /kithany/WEB-INF/classes/FormBean.java
> > > /kithany/WEB-INF/classes/FormBean.class
> > > /kithany/META-INF/application.xml
> > >
> > > Then, I create the kithany.war file as shown below:
> > >
> > > #cd /kithany
> > > #jar -cvfM kithany.war .
> > >
> > > I then put the "kithany.war" file in
> > > /jboss/server/default/deploy directory
> > > and  In your browser type:
> > >
> > > http://IP_ADDR_ESS:8080/kithany/register.html
> > >
> > > which works fine. In my "register.html" file my action is  > > action="/kithany/process.jsp" method=post>
> > > When I click the SUBMIT button in "register.html" form (which
> > > then calls
> > > bean and servelte), I get following Error - wonder why.
> > >
> > > --
> > > --
> > > Apache Tomcat/4.0.3 - HTTP Status 500 - Internal Server Error -
> that
> > > prevented it from fulfilling this request
> > >
> > > org.apache.jasper.JasperException: Unable to compile class for
> JSP
> > > An error occurred at line: 10 in the jsp file: /process.jsp
> > >
> > > Generated servlet error:
> > > /jboss-3.0.0_tomcat-4.0.3/catalina/work/localhost/kithany/proc
> > > ess$jsp.java:72:
> > > Class org.apache.jsp.FormBean not found.
> > > FormBean formHandler = null;
> > > ^
> > >
> > > An error occurred at line: 10 in the jsp file: /process.jsp
> > >
> > > Generated servlet error:
> > > /jboss-3.0.0_tomcat-4.0.3/catalina/work/localhost/kithany/proc
> > > ess$jsp.java:75:
> > > Class org.apache.jsp.FormBean not found.
> > >   formHandler= (FormBean)
> > > ^
> > > An error occurred at line: 10 in the jsp file: /process.jsp
> > >
> > > Generated servlet error:
> > > /jboss-3.0.0_tomcat-4.0.3/catalina/work/localhost/kithany/proc
> > > ess$jsp.java:80:
> > > Class org.apache.jsp.FormBean not found.
> > >   formHandler = (FormBean)
> > > java.beans.Beans.instantiate(this.getClass().getClassLoader(),
> > >  "FormBean");
> > >
> > > --
> > > --
> > >
> > > My process.jsp file is:
> > > --
> > > --
> > > <%@ page import="java.util.*" %>
> > >
> > > <%!
> > > ResourceBundle bundle =null;
> > > public void jspInit() {
> > >   bundle = ResourceBundle.getBundle("forms");
> > >   }
> > > %>
> > >
> > >  > > scope="request">  ** THIS
> > > IS MY LINE 10
> > > 
> > > 
> > >
> > > <%
> > >if (formHandler.validate()) {
> > > %>
> > >  > > page="<%=bundle.getString(\"/kithany/process.success\")%>"/>
> > > <%
> > >}  else {
> > > %>
> > >  > > page="<%=bundle.getString(\"/kithany/process.retry\")%>"/>
> > > <%
> > >}
> > > %>
> > > --
> > > --
> > >
> > > My web.xml file is as shown below:
> > > --
> > > -
> > > 
> > > 
> > >

tomcat 4.1.12 much slower than Tomcat 4.0.3

2002-11-29 Thread Ron Day
I just installed Tomcat 4.1.12.

But now my tomcat 4.0.3 webapps run about 10 times slower.

Anyone have any ideas as to why this may be.

I did not change anything, and it happens for jsp's and servlets !!!

ron


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




RE: tomcat 4.1.12 much slower than Tomcat 4.0.3

2002-11-30 Thread Ron Day
What does this have to do with my problem .

I am getting tired of seeing your pleas for help. Please buy a book !!

R

-Original Message-
From: Steven Burrus [mailto:[EMAIL PROTECTED]]
Sent: Saturday, November 30, 2002 12:36 AM
To: Tomcat Users List
Subject: Re: tomcat 4.1.12 much slower than Tomcat 4.0.3


 I need some help/assistance right away with trying to see a JSP in my
browser!! All that I get for my efforts is a cryptic server error msg.
[404] message saying that the requested resource couldn't be found!


On Fri, 29 Nov 2002 22:47:02 -0600, Ron Day <[EMAIL PROTECTED]> wrote:

> I just installed Tomcat 4.1.12.
>
> But now my tomcat 4.0.3 webapps run about 10 times slower.
>
> Anyone have any ideas as to why this may be.
>
> I did not change anything, and it happens for jsp's and servlets !!!
>
> ron
>
>
> --
> To unsubscribe, e-mail:   <mailto:tomcat-user-
> [EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:tomcat-user-
> [EMAIL PROTECTED]>
>
>



--
Steven Burrus

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


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




RE: tomcat 4.1.12 much slower than Tomcat 4.0.3

2002-11-30 Thread Ron Day
Thanks for the tip.

I understand your first servlet tag, but I do not see why the
servlet-mapping tag is there. Shouldn't this be in the global web.xml file
in /conf.

Any idea why we have to do this "hack"

Ron

-Original Message-
From: Scott Murray [mailto:[EMAIL PROTECTED]]
Sent: Saturday, November 30, 2002 1:31 PM
To: 'Tomcat Users List'
Subject: RE: tomcat 4.1.12 much slower than Tomcat 4.0.3


Ron,

I had the same problem, and fixed it with this same web.xml for all my apps
(this goes in the WEB-INF dir of each app):

*


http://java.sun.com/dtd/web-app_2_3.dtd";>

  
 home
 home
 1
  
 
  invoker
   /servlet/*
 

**

I found that if I preloaded the first servlet (in my case, home) everything
ran OK after that.

Scott


-----Original Message-
From: Ron Day [mailto:[EMAIL PROTECTED]]
Sent: Saturday, November 30, 2002 11:03 AM
To: Tomcat Users List
Subject: RE: tomcat 4.1.12 much slower than Tomcat 4.0.3


What does this have to do with my problem .

I am getting tired of seeing your pleas for help. Please buy a book !!

R

-Original Message-
From: Steven Burrus [mailto:[EMAIL PROTECTED]]
Sent: Saturday, November 30, 2002 12:36 AM
To: Tomcat Users List
Subject: Re: tomcat 4.1.12 much slower than Tomcat 4.0.3


 I need some help/assistance right away with trying to see a JSP in my
browser!! All that I get for my efforts is a cryptic server error msg.
[404] message saying that the requested resource couldn't be found!


On Fri, 29 Nov 2002 22:47:02 -0600, Ron Day <[EMAIL PROTECTED]> wrote:

> I just installed Tomcat 4.1.12.
>
> But now my tomcat 4.0.3 webapps run about 10 times slower.
>
> Anyone have any ideas as to why this may be.
>
> I did not change anything, and it happens for jsp's and servlets !!!
>
> ron
>
>
> --
> To unsubscribe, e-mail:   <mailto:tomcat-user-
> [EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:tomcat-user-
> [EMAIL PROTECTED]>
>
>



--
Steven Burrus

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


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



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


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




RE: tomcat 4.1.12 much slower than Tomcat 4.0.3

2002-11-30 Thread Ron Day
I didn't figure it out, Scott Murray did, I'm waiting for his explanation.

Ron

-Original Message-
From: micael [mailto:[EMAIL PROTECTED]]
Sent: Saturday, November 30, 2002 2:38 PM
To: Tomcat Users List
Subject: RE: tomcat 4.1.12 much slower than Tomcat 4.0.3


How did you ever figure this out, Ron?

At 02:30 PM 11/30/2002 -0500, you wrote:
>Ron,
>
>I had the same problem, and fixed it with this same web.xml for all my apps
>(this goes in the WEB-INF dir of each app):
>
>*
>
>
> PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
> "http://java.sun.com/dtd/web-app_2_3.dtd";>
>
>   
>  home
>  home
>  1
>   
>  
>   invoker
>/servlet/*
>  
>
>**
>
>I found that if I preloaded the first servlet (in my case, home) everything
>ran OK after that.
>
>Scott
>
>
>-Original Message-
>From: Ron Day [mailto:[EMAIL PROTECTED]]
>Sent: Saturday, November 30, 2002 11:03 AM
>To: Tomcat Users List
>Subject: RE: tomcat 4.1.12 much slower than Tomcat 4.0.3
>
>
>What does this have to do with my problem .
>
>I am getting tired of seeing your pleas for help. Please buy a book !!
>
>R
>
>-Original Message-
>From: Steven Burrus [mailto:[EMAIL PROTECTED]]
>Sent: Saturday, November 30, 2002 12:36 AM
>To: Tomcat Users List
>Subject: Re: tomcat 4.1.12 much slower than Tomcat 4.0.3
>
>
>  I need some help/assistance right away with trying to see a JSP in my
>browser!! All that I get for my efforts is a cryptic server error msg.
>[404] message saying that the requested resource couldn't be found!
>
>
>On Fri, 29 Nov 2002 22:47:02 -0600, Ron Day <[EMAIL PROTECTED]> wrote:
>
> > I just installed Tomcat 4.1.12.
> >
> > But now my tomcat 4.0.3 webapps run about 10 times slower.
> >
> > Anyone have any ideas as to why this may be.
> >
> > I did not change anything, and it happens for jsp's and servlets !!!
> >
> > ron
> >
> >
> > --
> > To unsubscribe, e-mail:   <mailto:tomcat-user->
> [EMAIL PROTECTED]>
> > For additional commands, e-mail: <mailto:tomcat-user->
> [EMAIL PROTECTED]>
> >
> >
>
>
>
>--
>Steven Burrus
>
>--
>To unsubscribe, e-mail:
><mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail:
><mailto:[EMAIL PROTECTED]>
>
>
>--
>To unsubscribe, e-mail:
><mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail:
><mailto:[EMAIL PROTECTED]>
>
>
>
>--
>To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>

Micael

---

This electronic mail  transmission and any accompanying documents contain
information belonging to the sender which may be confidential and legally
privileged.  This information is intended only for the use of the
individual or entity to whom this electronic mail transmission was sent as
indicated above. If you are not the intended recipient, any disclosure,
copying, distribution, or action taken in reliance on the contents of the
information contained in this transmission is strictly prohibited.  If you
have received this transmission in error, please delete the message.  Thank
you



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


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




RE: tomcat 4.1.12 much slower than Tomcat 4.0.3

2002-11-30 Thread Ron Day
Yes, I'm aware of that. I was more interested in Scotts servlet tag. Even
more I am hoping someone has a better way to get my 4.1.12 install working
correctly (at same speed as 3.0.4).

ron

-Original Message-
From: micael [mailto:[EMAIL PROTECTED]]
Sent: Saturday, November 30, 2002 2:55 PM
To: Tomcat Users List
Subject: RE: tomcat 4.1.12 much slower than Tomcat 4.0.3


Ron,

You should look at:

http://www.mail-archive.com/tomcat-dev@jakarta.apache.org/msg33723.html

Micael

At 02:45 PM 11/30/2002 -0600, you wrote:
>I didn't figure it out, Scott Murray did, I'm waiting for his explanation.
>
>Ron
>
>-Original Message-
>From: micael [mailto:[EMAIL PROTECTED]]
>Sent: Saturday, November 30, 2002 2:38 PM
>To: Tomcat Users List
>Subject: RE: tomcat 4.1.12 much slower than Tomcat 4.0.3
>
>
>How did you ever figure this out, Ron?
>
>At 02:30 PM 11/30/2002 -0500, you wrote:
> >Ron,
> >
> >I had the same problem, and fixed it with this same web.xml for all my
apps
> >(this goes in the WEB-INF dir of each app):
> >
> >*
> >
> >
> > > PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
> > "http://java.sun.com/dtd/web-app_2_3.dtd";>
> >
> >   
> >  home
> >  home
> >  1
> >   
> >  
> >   invoker
> >/servlet/*
> >  
> >
> >**
> >
> >I found that if I preloaded the first servlet (in my case, home)
everything
> >ran OK after that.
> >
> >Scott
> >
> >
> >-Original Message-
> >From: Ron Day [mailto:[EMAIL PROTECTED]]
> >Sent: Saturday, November 30, 2002 11:03 AM
> >To: Tomcat Users List
> >Subject: RE: tomcat 4.1.12 much slower than Tomcat 4.0.3
> >
> >
> >What does this have to do with my problem .
> >
> >I am getting tired of seeing your pleas for help. Please buy a book !!
> >
> >R
> >
> >-Original Message-
> >From: Steven Burrus [mailto:[EMAIL PROTECTED]]
> >Sent: Saturday, November 30, 2002 12:36 AM
> >To: Tomcat Users List
> >Subject: Re: tomcat 4.1.12 much slower than Tomcat 4.0.3
> >
> >
> >  I need some help/assistance right away with trying to see a JSP in my
> >browser!! All that I get for my efforts is a cryptic server error msg.
> >[404] message saying that the requested resource couldn't be found!
> >
> >
> >On Fri, 29 Nov 2002 22:47:02 -0600, Ron Day <[EMAIL PROTECTED]> wrote:
> >
> > > I just installed Tomcat 4.1.12.
> > >
> > > But now my tomcat 4.0.3 webapps run about 10 times slower.
> > >
> > > Anyone have any ideas as to why this may be.
> > >
> > > I did not change anything, and it happens for jsp's and servlets !!!
> > >
> > > ron
> > >
> > >
> > > --
> > > To unsubscribe, e-mail:   <mailto:tomcat-user->
> > [EMAIL PROTECTED]>
> > > For additional commands, e-mail: <mailto:tomcat-user->
> > [EMAIL PROTECTED]>
> > >
> > >
> >
> >
> >
> >--
> >Steven Burrus
> >
> >--
> >To unsubscribe, e-mail:
> ><mailto:[EMAIL PROTECTED]>
> >For additional commands, e-mail:
> ><mailto:[EMAIL PROTECTED]>
> >
> >
> >--
> >To unsubscribe, e-mail:
> ><mailto:[EMAIL PROTECTED]>
> >For additional commands, e-mail:
> ><mailto:[EMAIL PROTECTED]>
> >
> >
> >
> >--
> >To unsubscribe, e-mail:
><mailto:[EMAIL PROTECTED]>
> >For additional commands, e-mail:
><mailto:[EMAIL PROTECTED]>
>
>Micael
>
>---
>
>This electronic mail  transmission and any accompanying documents contain
>information belonging to the sender which may be confidential and legally
>privileged.  This information is intended only for the use of the
>individual or entity to whom this electronic mail transmission was sent as
>indicated above. If you are not the intended recipient, any disclosure,
>copying, distribution, or action taken in reliance on the contents of the
>information contained in this transmission is strictly prohibited.  If you
>have received this transmission in error, please delete the message.  Thank
>you
>
>
>
>--
>To unsubscribe, e-mail:
><mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail:
><mailto:[EMAIL PROTECTED]>
>
>
>--
>To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
>

RE: tomcat 4.1.12 much slower than Tomcat 4.0.3

2002-11-30 Thread Ron Day
Micael

not start-up but running webapps..

My original post, still happening

**

I just installed Tomcat 4.1.12.

But now my tomcat 4.0.3 webapps run about 10 times slower.

Anyone have any ideas as to why this may be.

I did not change anything, and it happens for jsp's and servlets !!!

**

ron


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




RE: tomcat 4.1.12 much slower than Tomcat 4.0.3

2002-11-30 Thread Ron Day
I tried your suggestion several times, and rebooted as well, but still no
improvement. I can run a simple one form,one servlet example in both tomcat
4.0.3 and 4.1.12 with no code changes. In 4.0.3 the response is
instantaneous, but in 4.1.12 it takes 10-15 seconds for response, and does
this on all subsequent submissions of form. A strange problem !!!

ron

-Original Message-
From: micael [mailto:[EMAIL PROTECTED]]
Sent: Saturday, November 30, 2002 4:38 PM
To: Tomcat Users List
Subject: RE: tomcat 4.1.12 much slower than Tomcat 4.0.3


Ron, the first solution (load on startup) is just for servlets that have a
load of detail to do the first time they start up and has nothing to do
with our situation.  The second part (servlet-mapping) is just creating a
security problem that the release notes explained should not be done.  I
had the problem you had, and as I said, I solved it by rebooting Tomcat and
cleaning out the work directory. I was working at the time with linux
RedHat and had to make sure the work file was completely cleared as
well.  I don't know what happened, but it was with 4.1.12 and it happened
twice.  Both times, restarting Tomcat worked.  Why, I don't know.  Micael

At 02:30 PM 11/30/2002 -0500, you wrote:
>Ron,
>
>I had the same problem, and fixed it with this same web.xml for all my apps
>(this goes in the WEB-INF dir of each app):
>
>*
>
>
> PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
> "http://java.sun.com/dtd/web-app_2_3.dtd";>
>
>   
>  home
>  home
>  1
>   
>  
>   invoker
>/servlet/*
>  
>
>**
>
>I found that if I preloaded the first servlet (in my case, home) everything
>ran OK after that.
>
>Scott
>
>
>-Original Message-
>From: Ron Day [mailto:[EMAIL PROTECTED]]
>Sent: Saturday, November 30, 2002 11:03 AM
>To: Tomcat Users List
>Subject: RE: tomcat 4.1.12 much slower than Tomcat 4.0.3
>
>
>What does this have to do with my problem .
>
>I am getting tired of seeing your pleas for help. Please buy a book !!
>
>R
>
>-Original Message-
>From: Steven Burrus [mailto:[EMAIL PROTECTED]]
>Sent: Saturday, November 30, 2002 12:36 AM
>To: Tomcat Users List
>Subject: Re: tomcat 4.1.12 much slower than Tomcat 4.0.3
>
>
>  I need some help/assistance right away with trying to see a JSP in my
>browser!! All that I get for my efforts is a cryptic server error msg.
>[404] message saying that the requested resource couldn't be found!
>
>
>On Fri, 29 Nov 2002 22:47:02 -0600, Ron Day <[EMAIL PROTECTED]> wrote:
>
> > I just installed Tomcat 4.1.12.
> >
> > But now my tomcat 4.0.3 webapps run about 10 times slower.
> >
> > Anyone have any ideas as to why this may be.
> >
> > I did not change anything, and it happens for jsp's and servlets !!!
> >
> > ron
> >
> >
> > --
> > To unsubscribe, e-mail:   <mailto:tomcat-user->
> [EMAIL PROTECTED]>
> > For additional commands, e-mail: <mailto:tomcat-user->
> [EMAIL PROTECTED]>
> >
> >
>
>
>
>--
>Steven Burrus
>
>--
>To unsubscribe, e-mail:
><mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail:
><mailto:[EMAIL PROTECTED]>
>
>
>--
>To unsubscribe, e-mail:
><mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail:
><mailto:[EMAIL PROTECTED]>
>
>
>
>--
>To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>

Micael

---

This electronic mail  transmission and any accompanying documents contain
information belonging to the sender which may be confidential and legally
privileged.  This information is intended only for the use of the
individual or entity to whom this electronic mail transmission was sent as
indicated above. If you are not the intended recipient, any disclosure,
copying, distribution, or action taken in reliance on the contents of the
information contained in this transmission is strictly prohibited.  If you
have received this transmission in error, please delete the message.  Thank
you



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


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




tomcat 4.1.12 much slower than Tomcat 4.0.3

2002-12-02 Thread Ron Day
Hi,

I have tried re-installing Tomcat 4.1.12 , moving to JDK1.4.1, but:

My original post, still happening: This is post.

**

I just installed Tomcat 4.1.12.

But now my tomcat 4.0.3 webapps run about 10-20 times slower.
These are my class exercises, ranging from small single servlets to medium
projects.

Anyone have any ideas as to why this may be.

I did not change anything, and it happens for jsp's and servlets !!!

It seems that the tomcat examples work fine !

**

ron



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




RE: tomcat 4.1.12 much slower than Tomcat 4.0.3

2002-12-02 Thread Ron Day
I did not change anything in 4.1.12.

No XML parsing. Same Windows machine, same memory.

If I revert back to 4.0.3 it works fine and faster than 4.1.12.

My test cases are very simple (by design to find reason it is slower)...
most use no 3rd party libaries, a couple use log4j.

Strange huh ??

ron

-Original Message-
From: Reynir Hübner [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 02, 2002 10:29 AM
To: Tomcat Users List
Subject: RE: tomcat 4.1.12 much slower than Tomcat 4.0.3


Hi,

My setup is much faster with tomcat 4.1.12 than 4.0.x

What kind of things are you doing with your servlets/jsps ? Which libraries
are you using ?

Do you do a lot of XML parsing ?

Did you disable tagpooling ?
Do you have less memory assigned to the process than before ?


-reynir


> -Original Message-
> From: Ron Day [mailto:[EMAIL PROTECTED]]
> Sent: 2. desember 2002 16:24
> To: Tomcat Users List
> Subject: tomcat 4.1.12 much slower than Tomcat 4.0.3
>
>
> Hi,
>
> I have tried re-installing Tomcat 4.1.12 , moving to JDK1.4.1, but:
>
> My original post, still happening: This is post.
>
> **
>
> I just installed Tomcat 4.1.12.
>
> But now my tomcat 4.0.3 webapps run about 10-20 times slower.
> These are my class exercises, ranging from small single
> servlets to medium projects.
>
> Anyone have any ideas as to why this may be.
>
> I did not change anything, and it happens for jsp's and servlets !!!
>
> It seems that the tomcat examples work fine !
>
> **
>
> ron
>
>
>
> --
> To unsubscribe, e-mail:
> <mailto:tomcat-user-> [EMAIL PROTECTED]>
> For
> additional commands,
> e-mail: <mailto:[EMAIL PROTECTED]>
>
>

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


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




Beans in packages vs beans not in packages

2002-07-10 Thread Ron Day

Hi,

When I run a webapp with a bean in a package -- say "com.form", everything
works fine. But when I try to run a bean that is not in a package I always
get class not found error.

1)I am using usebean in both cases, one has class name, one has full package
name.
2)Bean has package name in one but no in the other.
3)Bean is in class directory at top level for no package, and in correct
package directory structure for package.

There are no other changes, except to recompile bean, and restart tomcat.

Any help appreciated.

ron




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




RE: Beans in packages vs beans not in packages

2002-07-10 Thread Ron Day

but why does the package version work without the "import"

R

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 10, 2002 5:19 PM
To: Tomcat Users List
Subject: Re: Beans in packages vs beans not in packages



you need to import it using the import statement.
<% import  %>

RS




"Ron Day" <[EMAIL PROTECTED]> on 07/10/2002 05:20:27 PM

Please respond to "Tomcat Users List" <[EMAIL PROTECTED]>

To:<[EMAIL PROTECTED]>
cc:

Subject:Beans in packages vs beans not in packages

Hi,

When I run a webapp with a bean in a package -- say "com.form", everything
works fine. But when I try to run a bean that is not in a package I always
get class not found error.

1)I am using usebean in both cases, one has class name, one has full
package
name.
2)Bean has package name in one but no in the other.
3)Bean is in class directory at top level for no package, and in correct
package directory structure for package.

There are no other changes, except to recompile bean, and restart tomcat.

Any help appreciated.

ron




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










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





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




RE: Beans in packages vs beans not in packages

2002-07-10 Thread Ron Day

I did, but something inside me says there is a class loading inconsistency
here, and it was bugging me.

R

-Original Message-
From: Larry Meadors [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 10, 2002 5:39 PM
To: [EMAIL PROTECTED]
Subject: RE: Beans in packages vs beans not in packages


Just curious: Why not just put it in a package?

>>> [EMAIL PROTECTED] 07/10/02 16:26 PM >>>
but why does the package version work without the "import"


--
To unsubscribe, e-mail:

For additional commands, e-mail:






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




RE: Beans in packages vs beans not in packages

2002-07-10 Thread Ron Day

Thanks Will,

I think I understand what you are saying.

I will always use packages and it won't bite me again.

Thanks

R

-Original Message-
From: Will Hartung [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 10, 2002 6:50 PM
To: Tomcat Users List
Subject: Re: Beans in packages vs beans not in packages


Actually, it's quite simple.

You see, your Java source files only have "package" scope for classes that
are not imported. This means, that your source can only refer to classes
within the same package directly. All others must have a fully qualified
package name (e.g. java.util.Collection) or be imported.

The 'import' statement requires a fully qualified class name, and the class
name includes its package.

Classes that have no 'package' statement are in an Unnamed package.
Typically this Unnamed package is the "Current Directory", which is a
logical name, not "usr.will.javacode.projects.test". But, since the classes
are unnamed, you can't get a fully qualified name for them in your source
code.

Packages are a wonderful thing, but their relationship with path names and
directories (which is an implementation detail) causes SO much confusion for
people.

You can 'import' your classes from the same package, even though its
unnamed, and even though you don't need to, it's "legal".

If you have X.java and Y.java in the same directory, where Y imports X, and
with both files lacking a 'package' statement, the 'import' will work. It's
just unnecessary.

This is why the imports will fail for your classes, even though they're on
the CLASSPATH. You can't properly name them.

Q.E.D, that's why your classes need to be in a package.

Best Regards,

Will Hartung
([EMAIL PROTECTED])


- Original Message -
From: "Ron Day" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, July 10, 2002 3:28 PM
Subject: RE: Beans in packages vs beans not in packages


> but why does the package version work without the "import"
>
> R
>
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, July 10, 2002 5:19 PM
> To: Tomcat Users List
> Subject: Re: Beans in packages vs beans not in packages
>
>
>
> you need to import it using the import statement.
> <% import  %>
>
> RS
>
>
>
>
> "Ron Day" <[EMAIL PROTECTED]> on 07/10/2002 05:20:27 PM
>
> Please respond to "Tomcat Users List" <[EMAIL PROTECTED]>
>
> To:<[EMAIL PROTECTED]>
> cc:
>
> Subject:Beans in packages vs beans not in packages
>
> Hi,
>
> When I run a webapp with a bean in a package -- say "com.form", everything
> works fine. But when I try to run a bean that is not in a package I always
> get class not found error.
>
> 1)I am using usebean in both cases, one has class name, one has full
> package
> name.
> 2)Bean has package name in one but no in the other.
> 3)Bean is in class directory at top level for no package, and in correct
> package directory structure for package.
>
> There are no other changes, except to recompile bean, and restart tomcat.
>
> Any help appreciated.
>
> ron
>
>
>
>
> --
> To unsubscribe, e-mail:   <
> mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <
> mailto:[EMAIL PROTECTED]>
>
>
>
>
>
>
>
>
>
>
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>
>
>
>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>
>



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






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




RE: getRequestURI()

2002-07-10 Thread Ron Day

I haven't tried Tomcat recently, but we have developed a whole web site with
"Resin" using encodeURL, with cookies turned off.It works fine, and as
advertised.

Ron

-Original Message-
From: Eddie Bush [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 11, 2002 12:29 AM
To: Tomcat Users List
Subject: Re: getRequestURI()


I don't believe that's what I said at all =) What I was was that to the
best of my recollection that's how it is supposed to act. Isn't
encodeURL what you're supposed to be able to depend on when cookies are
disabled? If it doesn't list the parameters/cookies in the url ... then
what is it for? =) Ok - here I go digging through the docs *cringe*. Now
... you tell ME what the correct interpretation is:


  encodeURL

public java.lang.String *encodeURL*(java.lang.String url)

Encodes the specified URL by including the session ID in it, or, if
encoding is not needed, returns the URL unchanged. The
implementation of this method includes the logic to determine
whether the session ID needs to be encoded in the URL. For example,
if the browser supports cookies, or session tracking is turned off,
URL encoding is unnecessary.

For robust session tracking, all URLs emitted by a servlet should be
run through this method. Otherwise, URL rewriting cannot be used
with browsers which do not support cookies.


*Parameters:*
|url| - the url to be encoded.*Returns:*
the encoded URL if encoding is needed; the unchanged URL otherwise.


That's off of Sun's JDK docs for J2EE 1.3. I think it danged well better
have the session in it if cookies are off!

I don't know why I was thinking attributes would be there ... the
sessionid is really the only piece you need to track things you are
persisting.

Alex Kachanov wrote:

>Wll Tomcat 4.0.x reference implementation returns:
>
>/index.jsp
>
>Then, that means all AS are wrong and just one Jrun is right?
>
>with best wishes
>Alexander Kachanov
>
>-Original Message-
>From: Eddie Bush [mailto:[EMAIL PROTECTED]]
>Sent: 11 „y„„|„‘ 2002 „s. 11:59
>To: Tomcat Users List
>Subject: Re: getRequestURI()
>
>
>I'd say the first one, but I'm not authoritative.  To the best of my
>recollection, however, that is precisely what encodeURL is there for.
> Hopefully someone else will have something additional to add.  I
>_really_ think it should be the first (including the sessionid - and
>other cookies/params too?).
>
>Regards,
>
>Eddie
>



--
To unsubscribe, e-mail:

For additional commands, e-mail:







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




RE: getRequestURI()

2002-07-10 Thread Ron Day

If cookies are turned on you WON'T see the sessioniD attached !!!
-Original Message-
From: Ron Day [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 11, 2002 12:36 AM
To: Tomcat Users List
Subject: RE: getRequestURI()


I haven't tried Tomcat recently, but we have developed a whole web site with
"Resin" using encodeURL, with cookies turned off.It works fine, and as
advertised.

Ron

-Original Message-
From: Eddie Bush [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 11, 2002 12:29 AM
To: Tomcat Users List
Subject: Re: getRequestURI()


I don't believe that's what I said at all =) What I was was that to the
best of my recollection that's how it is supposed to act. Isn't
encodeURL what you're supposed to be able to depend on when cookies are
disabled? If it doesn't list the parameters/cookies in the url ... then
what is it for? =) Ok - here I go digging through the docs *cringe*. Now
... you tell ME what the correct interpretation is:


  encodeURL

public java.lang.String *encodeURL*(java.lang.String url)

Encodes the specified URL by including the session ID in it, or, if
encoding is not needed, returns the URL unchanged. The
implementation of this method includes the logic to determine
whether the session ID needs to be encoded in the URL. For example,
if the browser supports cookies, or session tracking is turned off,
URL encoding is unnecessary.

For robust session tracking, all URLs emitted by a servlet should be
run through this method. Otherwise, URL rewriting cannot be used
with browsers which do not support cookies.


*Parameters:*
|url| - the url to be encoded.*Returns:*
the encoded URL if encoding is needed; the unchanged URL otherwise.


That's off of Sun's JDK docs for J2EE 1.3. I think it danged well better
have the session in it if cookies are off!

I don't know why I was thinking attributes would be there ... the
sessionid is really the only piece you need to track things you are
persisting.

Alex Kachanov wrote:

>Wll Tomcat 4.0.x reference implementation returns:
>
>/index.jsp
>
>Then, that means all AS are wrong and just one Jrun is right?
>
>with best wishes
>Alexander Kachanov
>
>-Original Message-
>From: Eddie Bush [mailto:[EMAIL PROTECTED]]
>Sent: 11 „y„„|„‘ 2002 „s. 11:59
>To: Tomcat Users List
>Subject: Re: getRequestURI()
>
>
>I'd say the first one, but I'm not authoritative.  To the best of my
>recollection, however, that is precisely what encodeURL is there for.
> Hopefully someone else will have something additional to add.  I
>_really_ think it should be the first (including the sessionid - and
>other cookies/params too?).
>
>Regards,
>
>Eddie
>



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






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



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




RE: Cannot use bean from jsp, but servlet ok. I'm dying!

2002-07-11 Thread Ron Day

Seems like you are mixing jsp action tags and java class instances.

Use  with 

or

Use import in <@...%> tag and create an instance

-Original Message-
From: eric [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 11, 2002 12:18 AM
To: [EMAIL PROTECTED]
Subject: Cannot use bean from jsp, but servlet ok. I'm dying!


Help. Absolutely stuck. Tomcat cannot find my bean classes no matter what
when called from jsp pages. From within servlets no problem.

Here is the jsp
---
<%@ include file="pub_hdr.html" %>



<%= FormBean.getErrorMsg("userName") %>

<%@ include file="pub_ftr.html" %>

Here is the bean

package beans;
import java.util.*;
import java.io.Serializable;
public class FormBean implements Serializable {
  public String userName;
  public FormBean() {}

  public String getUserName() {
return this.userName;
  }
  public void setUserName(String uname) {
this.userName = uname;
  }
}

NO MATTER WHAT, as soon as I access the jsp page. This error comes up.
Generated servlet error: C:\jwsdp-1_0\work\Standard
Engine\localhost\messagesmith\en\users$jsp.java:126: Undefined variable or
class name: FormBean out.print( FormBean.getUserName() );

It certainly seems that TC cannot find the FormBean class which lives here:
C:\jwsdp-1_0\webapps\project\WEB-INF\classes\beans.
I've changed that scope attribute to application or page, but it doesn't
change.
With TC3.x I had to do some configuration in the conf/server.xml file, but
this doesn't seem necessary w/ TC4. All the same I've adding the following
context to the server.xml, but it doesn't help.


Anyone have any ideas? It is killing me. Again, I can instantiate the
FormBean class from within servlets, but not from JSP.

Env:

Win2k Server, jdk1.4.0_01, TC4.0
Classpath=.;C:\jwsdp-1_0\common\lib\servlet.jar;C:\jwsdp-1_0\webapps\project
\WEB-INF\classes;C:\jfreechart-0.9.1\jars\jcommon-0.6.3.jar;C:\jfreechart-0.
9.1\jars\jfreechart-0.9.1.jar;
TOMCAT_HOME=C:\jwsdp-1_0
CATALINA_HOME=C:\jwsdp-1_0
JAVA_HOME=C:\j2sdk1.4.0_01


--
To unsubscribe, e-mail:

For additional commands, e-mail:





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




RE: Cannot use bean from jsp, but servlet ok. I'm dying!

2002-07-11 Thread Ron Day

I just noticed you have usebean and not useBean. If this is how you coded
it, your Bean is not getting instanciated. That will give you the error your
are seeing. Remember JSP Tags are case sensitive.

Ron

-Original Message-
From: eric [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 11, 2002 12:18 AM
To: [EMAIL PROTECTED]
Subject: Cannot use bean from jsp, but servlet ok. I'm dying!


Help. Absolutely stuck. Tomcat cannot find my bean classes no matter what
when called from jsp pages. From within servlets no problem.

Here is the jsp
---
<%@ include file="pub_hdr.html" %>



<%= FormBean.getErrorMsg("userName") %>

<%@ include file="pub_ftr.html" %>

Here is the bean

package beans;
import java.util.*;
import java.io.Serializable;
public class FormBean implements Serializable {
  public String userName;
  public FormBean() {}

  public String getUserName() {
return this.userName;
  }
  public void setUserName(String uname) {
this.userName = uname;
  }
}

NO MATTER WHAT, as soon as I access the jsp page. This error comes up.
Generated servlet error: C:\jwsdp-1_0\work\Standard
Engine\localhost\messagesmith\en\users$jsp.java:126: Undefined variable or
class name: FormBean out.print( FormBean.getUserName() );

It certainly seems that TC cannot find the FormBean class which lives here:
C:\jwsdp-1_0\webapps\project\WEB-INF\classes\beans.
I've changed that scope attribute to application or page, but it doesn't
change.
With TC3.x I had to do some configuration in the conf/server.xml file, but
this doesn't seem necessary w/ TC4. All the same I've adding the following
context to the server.xml, but it doesn't help.


Anyone have any ideas? It is killing me. Again, I can instantiate the
FormBean class from within servlets, but not from JSP.

Env:

Win2k Server, jdk1.4.0_01, TC4.0
Classpath=.;C:\jwsdp-1_0\common\lib\servlet.jar;C:\jwsdp-1_0\webapps\project
\WEB-INF\classes;C:\jfreechart-0.9.1\jars\jcommon-0.6.3.jar;C:\jfreechart-0.
9.1\jars\jfreechart-0.9.1.jar;
TOMCAT_HOME=C:\jwsdp-1_0
CATALINA_HOME=C:\jwsdp-1_0
JAVA_HOME=C:\j2sdk1.4.0_01


--
To unsubscribe, e-mail:

For additional commands, e-mail:





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




RE: Problem calling JAVA BEAN in JSP

2002-07-12 Thread Ron Day

Its a little more complex than this. It is very wise to put beans in
packages, as there are some issues with using the default package for these
classes. Assuming you use a package in the java code, make sure you put the
class files under WEB-INF/classes in the appropriate directory structures
for your packages. i.e "classes" directory is the root for your packages.

-Original Message-
From: Allistair Crossley [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 12, 2002 10:01 AM
To: Tomcat Users List
Subject: RE: Problem calling JAVA BEAN in JSP


as far as I know you just put them in the CLASSES folder of your web app's
WEB-INF folder.

-Original Message-
From: Mahesh Balakrishnan [mailto:[EMAIL PROTECTED]]
Sent: 12 July 2002 09:42
To: [EMAIL PROTECTED]
Subject: Problem calling JAVA BEAN in JSP



Respected Sir/Madam,

we have created a web application in tomcat and added jsp's to a
directory , we are finding problem in calling bean in jsp files... we want
to know where to deploy bean classes in our application.

** DO WE HAVE TO ANY CHANGES IN THE PROPERTIES FILE **

thanking you..


Mahesh


-
Do You Yahoo!?
New! SBC Yahoo! Dial - 1st Month Free & unlimited access


--
To unsubscribe, e-mail:

For additional commands, e-mail:





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




Keep threads seperate please.

2002-07-23 Thread Ron Day

Please START NEW THREADS with NEW EMAIL TITLES please. It is hard to follow
when people start new threads by replying to an old one. And you probably
will not get a good answer either !!

The attached Solaris question was titled "Tomcat and ASP"

ron

-Original Message-
From: Feng Zhou [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 23, 2002 10:29 AM
To: Tomcat Users List
Subject: RE: Tomcat and ASP


Has anybody tried to compile Apache 2.0.39 on Solaris 7 (Sparc)?

I am trying to get Apache/Tomcat working on a SUN box but I got this error
while compiling:


make[3]: Entering directory `/home/fzhou/apache-2.0.39/os/unix'
/bin/sh /home/fzhou/apache-2.0.39/srclib/apr/libtool --silent --mode=compile
gcc
  -g -O2 -pthreads -DNO_DBM_REWRITEMAP-DSOLARIS2=7 -D_POSIX_PTHREAD_SEMA
NTIC
S -D_REENTRANT -DAP_HAVE_DESIGNATED_INITIALIZER   -I/home/fzhou/apache-2.0.3
9/sr
clib/apr/include -I/home/fzhou/apache-2.0.39/srclib/apr-util/include -I/usr/
loca
l/include -I. -I/home/fzhou/apache-2.0.39/os/unix -I/home/fzhou/apache-2.0.3
9/se
rver/mpm/prefork -I/home/fzhou/apache-2.0.39/modules/http -I/home/fzhou/apac
he-2
.0.39/modules/filters -I/home/fzhou/apache-2.0.39/modules/proxy -I/home/fzho
u/ap
ache-2.0.39/include -I/home/fzhou/apache-2.0.39/modules/dav/main  -c unixd.c
&&
touch unixd.lo
unixd.c: In function `unixd_set_global_mutex_perms':
unixd.c:429: `apr_os_global_mutex_t' undeclared (first use in this function)
unixd.c:429: (Each undeclared identifier is reported only once
unixd.c:429: for each function it appears in.)
unixd.c:429: parse error before `osgmutex'
unixd.c:430: `osgmutex' undeclared (first use in this function)
make[3]: *** [unixd.lo] Error 1
make[3]: Leaving directory `/home/fzhou/apache-2.0.39/os/unix'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/fzhou/apache-2.0.39/os/unix'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/fzhou/apache-2.0.39/os'
make: *** [all-recursive] Error 1


And the compilation stops at this point...


I also tried the binary version,  unfortunately that's only available for
Solaris 8.


If anybody has sucessful experience running this on Solaris 7, could you
share some tips? Thanks!


-Feng

--
To unsubscribe, e-mail:

For additional commands, e-mail:



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




RE: Tomcat 4.03 Classpath

2002-07-25 Thread Ron Day

what version was you on before ??

-Original Message-
From: Steve Russell [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 25, 2002 4:18 PM
To: Tomcat Users List
Subject: Tomcat 4.03 Classpath


Hi;

I just upgraded to Tomcat 4.03.

I've got jsps running.except for when they call java classes.
I get a 500 error complaining about not being able to find the classes.

My CLASSPATH echos fine.(its pointing to classes not src )

I checked through the docs looking for changes in how 4.03 handles java
classes versus how 3.02 does.

I couldn't find anything.

Can anyone point me to a FAQ that might handle this issue?

Also where can I find startup options to use with startup.sh ?

Thanks in advance

Steve


--
To unsubscribe, e-mail:

For additional commands, e-mail:



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




RE: Tomcat 4.03 Classpath

2002-07-25 Thread Ron Day

Tomcat 4.0 and above strictly enforces the Servlet 2.2 WebApp directory
structure (3.0 + did not).

Inside "your webapp" folder you put JSP's,html etc. You also need a folder
called WEB-INF (spelling and case important). Inside here are two folders
classes and lib, and your web.xml if you have one. You put your class files
in the classes folder (in full package structure). And I strongly suggest
you use a package. Tomcat does not do well with the default packge.

Ron

-Original Message-
From: Steve Russell [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 25, 2002 4:40 PM
To: Tomcat Users List
Subject: Re: Tomcat 4.03 Classpath


Tomcat 3.2

Ron Day wrote:
> what version was you on before ??
>
> -Original Message-
> From: Steve Russell [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, July 25, 2002 4:18 PM
> To: Tomcat Users List
> Subject: Tomcat 4.03 Classpath
>
>
> Hi;
>
> I just upgraded to Tomcat 4.03.
>
> I've got jsps running.except for when they call java classes.
> I get a 500 error complaining about not being able to find the classes.
>
> My CLASSPATH echos fine.(its pointing to classes not src )
>
> I checked through the docs looking for changes in how 4.03 handles java
> classes versus how 3.02 does.
>
> I couldn't find anything.
>
> Can anyone point me to a FAQ that might handle this issue?
>
> Also where can I find startup options to use with startup.sh ?
>
> Thanks in advance
>
> Steve
>
>
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>
>
>




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




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




RE: Tomcat 4.03 Classpath

2002-07-25 Thread Ron Day

you need to import either way...

-Original Message-
From: Durham David Cntr 805CSS/SCBE [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 25, 2002 4:52 PM
To: Tomcat Users List
Subject: RE: Tomcat 4.03 Classpath


Optionally you can try to import YourClass if you don't want it inside a
package, but you're probably better off putting the class into a package.

Dave

> -Original Message-----
> From: Ron Day [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, July 25, 2002 4:51 PM
> To: Tomcat Users List
> Subject: RE: Tomcat 4.03 Classpath
>
>
> Tomcat 4.0 and above strictly enforces the Servlet 2.2 WebApp
> directory
> structure (3.0 + did not).
>
> Inside "your webapp" folder you put JSP's,html etc. You also
> need a folder
> called WEB-INF (spelling and case important). Inside here are
> two folders
> classes and lib, and your web.xml if you have one. You put
> your class files
> in the classes folder (in full package structure). And I
> strongly suggest
> you use a package. Tomcat does not do well with the default packge.
>
> Ron
>
> -Original Message-
> From: Steve Russell [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, July 25, 2002 4:40 PM
> To: Tomcat Users List
> Subject: Re: Tomcat 4.03 Classpath
>
>
> Tomcat 3.2
>
> Ron Day wrote:
> > what version was you on before ??
> >
> > -Original Message-
> > From: Steve Russell [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, July 25, 2002 4:18 PM
> > To: Tomcat Users List
> > Subject: Tomcat 4.03 Classpath
> >
> >
> > Hi;
> >
> > I just upgraded to Tomcat 4.03.
> >
> > I've got jsps running.except for when they call java classes.
> > I get a 500 error complaining about not being able to find
> the classes.
> >
> > My CLASSPATH echos fine.(its pointing to classes not src )
> >
> > I checked through the docs looking for changes in how 4.03
> handles java
> > classes versus how 3.02 does.
> >
> > I couldn't find anything.
> >
> > Can anyone point me to a FAQ that might handle this issue?
> >
> > Also where can I find startup options to use with startup.sh ?
> >
> > Thanks in advance
> >
> > Steve
> >
> >
> > --
> > To unsubscribe, e-mail:
> > <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail:
> > <mailto:[EMAIL PROTECTED]>
> >
> >
> > --
> > To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> >
> >
> >
>
>
>
>
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>
>
>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>


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


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




RE: Servlet file CAN'T BE COMPILE!!!

2002-07-26 Thread Ron Day

you have not got the servlet package in your classpath.

-Original Message-
From: Wiwi Wiwi [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 26, 2002 12:30 PM
To: [EMAIL PROTECTED]
Subject: Servlet file CAN'T BE COMPILE!!!


dear all, I have found that my j2sdk1.4 couldn't compile servlet, which mean
it gave me back the error message as followed:

can't find package servlet.http*

Previously, everything run well even compiling servlet, now, I really don't
know what is going on with j2sdk1.4, by the way, i've try to compile using
jdk1.4

can somebody give me some solutions???
your help is highly appreciated...
thankzz in advance.

wiwi



_
Chat with friends online, try MSN Messenger: http://messenger.msn.com


--
To unsubscribe, e-mail:

For additional commands, e-mail:



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




RE: tomcat 4.1.12 much slower than Tomcat 4.0.3

2002-12-02 Thread Ron Day
Craig, thanks for suggeations but.

Not 15 seconds, but 10 times slower than 4.0.3

what puzzles me is that environment is identical except that I use 4.1.12
version rather than 4.0.3

No other changes between versions and when I go back to 4.0.3 performance
improves.

ron

-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 02, 2002 11:26 AM
To: Tomcat Users List
Subject: Re: tomcat 4.1.12 much slower than Tomcat 4.0.3




On Mon, 2 Dec 2002, Ron Day wrote:

> Date: Mon, 2 Dec 2002 10:24:26 -0600
> From: Ron Day <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: Tomcat Users List <[EMAIL PROTECTED]>
> Subject: tomcat 4.1.12 much slower than Tomcat 4.0.3
>
> Hi,
>
> I have tried re-installing Tomcat 4.1.12 , moving to JDK1.4.1, but:
>

15 second delays sound like something wierd with your DNS server (perhaps
you've got access logging enabled?) or database.  There's nothing in
Tomcat that would do this -- and, in fact, most users see a performance
boost, especially with JSP pages that use lots of custom tags.

Craig

> My original post, still happening: This is post.
>
> **
>
> I just installed Tomcat 4.1.12.
>
> But now my tomcat 4.0.3 webapps run about 10-20 times slower.
> These are my class exercises, ranging from small single servlets to medium
> projects.
>
> Anyone have any ideas as to why this may be.
>
> I did not change anything, and it happens for jsp's and servlets !!!
>
> It seems that the tomcat examples work fine !
>
> **
>
> ron
>
>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>
>


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


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




RE: tomcat 4.1.12 much slower than Tomcat 4.0.3

2002-12-02 Thread Ron Day
I'll do that , thanks for input

r

-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 02, 2002 11:46 AM
To: 'Tomcat Users List'
Subject: RE: tomcat 4.1.12 much slower than Tomcat 4.0.3



When you say "no other changes" are you taking into account that the
defaults for Tomcat 4.1.12 may be quite a bit different than 4.0.3?  That
is, have you gone through your 4.1.12 server.xml and verified that every
option/parameter is equivalent to the same parameter as the 4.0.3
server.xml, and have you verified that any new parameters or configuration
options in 4.1.12 aren't doing something that you don't expect?

John


> -----Original Message-
> From: Ron Day [mailto:[EMAIL PROTECTED]]
> Sent: Monday, December 02, 2002 12:38 PM
> To: Tomcat Users List
> Subject: RE: tomcat 4.1.12 much slower than Tomcat 4.0.3
>
>
> Craig, thanks for suggeations but.
>
> Not 15 seconds, but 10 times slower than 4.0.3
>
> what puzzles me is that environment is identical except that
> I use 4.1.12
> version rather than 4.0.3
>
> No other changes between versions and when I go back to 4.0.3
> performance
> improves.
>
> ron
>
> -Original Message-
> From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
> Sent: Monday, December 02, 2002 11:26 AM
> To: Tomcat Users List
> Subject: Re: tomcat 4.1.12 much slower than Tomcat 4.0.3
>
>
>
>
> On Mon, 2 Dec 2002, Ron Day wrote:
>
> > Date: Mon, 2 Dec 2002 10:24:26 -0600
> > From: Ron Day <[EMAIL PROTECTED]>
> > Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> > To: Tomcat Users List <[EMAIL PROTECTED]>
> > Subject: tomcat 4.1.12 much slower than Tomcat 4.0.3
> >
> > Hi,
> >
> > I have tried re-installing Tomcat 4.1.12 , moving to JDK1.4.1, but:
> >
>
> 15 second delays sound like something wierd with your DNS
> server (perhaps
> you've got access logging enabled?) or database.  There's nothing in
> Tomcat that would do this -- and, in fact, most users see a
> performance
> boost, especially with JSP pages that use lots of custom tags.
>
> Craig
>
> > My original post, still happening: This is post.
> >
> > **
> >
> > I just installed Tomcat 4.1.12.
> >
> > But now my tomcat 4.0.3 webapps run about 10-20 times slower.
> > These are my class exercises, ranging from small single
> servlets to medium
> > projects.
> >
> > Anyone have any ideas as to why this may be.
> >
> > I did not change anything, and it happens for jsp's and servlets !!!
> >
> > It seems that the tomcat examples work fine !
> >
> > **
> >
> > ron
> >
> >
> >
> > --
> > To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> >
> >
>
>
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>
>
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>

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


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




RE: tomcat 4.1.12 much slower than Tomcat 4.0.3

2002-12-02 Thread Ron Day
Looks like my problem is a IE6 problem.
When I run on Netscape (4.75) it is very fast. !!!

Heard of any IE issues  crazy I know, its html by then.

-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 02, 2002 11:44 AM
To: Tomcat Users List
Subject: RE: tomcat 4.1.12 much slower than Tomcat 4.0.3




On Mon, 2 Dec 2002, Ron Day wrote:

> Date: Mon, 2 Dec 2002 11:37:32 -0600
> From: Ron Day <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: Tomcat Users List <[EMAIL PROTECTED]>
> Subject: RE: tomcat 4.1.12 much slower than Tomcat 4.0.3
>
> Craig, thanks for suggeations but.
>
> Not 15 seconds, but 10 times slower than 4.0.3
>
> what puzzles me is that environment is identical except that I use 4.1.12
> version rather than 4.0.3
>
> No other changes between versions and when I go back to 4.0.3 performance
> improves.
>

Well, obviously nobody has had any useful ideas based on this description
of the problem :-).  The next step would be to create a sample webapp
illustrating the difference for you, and letting some other people try it.
That's the only way I can see to track down what's causing this.

> ron
>

Craig


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


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




RE: tomcat 4.1.12 much slower than Tomcat 4.0.3

2002-12-02 Thread Ron Day
I did a quick and dirty test.
Wrote to console log at last line of servlet, then noticed the time lag was
after this statement was written. Lag of about 8 secs on IE, none on NS
4.75.

R

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 02, 2002 3:03 PM
To: Tomcat Users List
Subject: RE: tomcat 4.1.12 much slower than Tomcat 4.0.3


Hi,
I'm tempted to mark this as off-topic, but maybe not yet ;)

>Heard of any IE issues  crazy I know, its html by then.

Do you specify a strict HTML DTD?  If so, IE6 will render a bit more
slowly.

How did you determine it's a browser issue?  Do you have a
browser-independent (cactus, mockobjects, load, JMeter, whatever) test
you can run against 4.0.3 and then 4.1.12 to verify response time and
latency differences?

Yoav Shapira
Millennium ChemInformatics

--
To unsubscribe, e-mail:

For additional commands, e-mail:



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




Struts-Console-3.1 causes windows to reboot ???

2002-12-03 Thread Ron Day
Anyone else see this strange behavior.

downloaded Struts-console-3.1 to c:\
double click console.bat or run command line...
windows shuts down, then reboots.

Win 2000 sp3
jdk 1.4.1

anyone, or is my machine cookoo



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




RE: Tomcat BOOK List Request

2002-12-03 Thread Ron Day
Are you sure a book will help !

-Original Message-
From: Steve R Burrus [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 03, 2002 5:14 PM
To: [EMAIL PROTECTED]
Subject: Tomcat BOOK List Request


 Hello, as Micael wanted me to do, I am making a formal request of the group
of
any and all good books on Tomcat technology! I want books specifically on
the
subject of deploying either JSP's and/or Servlets in the Tomcat container. I
have
gone WAY TOO DAMN LONG now with an utter inability to do this!

__
Do you Yahoo!?
Yahoo! News - Today's headlines
http://news.yahoo.com

--
To unsubscribe, e-mail:

For additional commands, e-mail:





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




RE: javabean problems

2002-12-08 Thread Ron Day
Your javabeans are not in a package.Tomcat 4.xx does not like this as it
puts it in the default package, and then cannot find it at run time.

Just put your beans in a package, recompile and then add your package
directory structure under the "classes" directory.

i.e if you have com.my.package for a bean mybean.class, then
put mybean.class in webapps/WEB-INF/classes/com/my/package directory

R

-Original Message-
From: Mikael Gvransson [mailto:[EMAIL PROTECTED]]
Sent: Sunday, December 08, 2002 8:48 AM
To: [EMAIL PROTECTED]
Subject: javabean problems


hey,

it seems like i can't run my javabeans.
i'm using tomcat 4.1.12 binary distrubtion.

i get the error "cannot resolve symbol".

and i have no idea what it could be, it's just
a simple bean:

public class JellyBean implements java.io.Serializable {
private String color;

public JellyBean() {
}

public String getColor() {
return color;
}

public void setColor(String newColor) {
color = newColor;
}
}


--
 _  _  . |   _   _  |   [EMAIL PROTECTED]
| )( | | |< (_| (-` |   http://micke.debinary.net


--
To unsubscribe, e-mail:

For additional commands, e-mail:



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




RE: javabean problems

2002-12-08 Thread Ron Day
what is "com".

Either it is part of package name and needs to be added to package to make
it:

package com.testbean;

, or the com directory needs to be removed.

don't use root, use your own webapp.

R

-Original Message-
From: Mikael Gvransson [mailto:[EMAIL PROTECTED]]
Sent: Sunday, December 08, 2002 11:47 AM
To: Tomcat Users List
Subject: Re: javabean problems


On Sun, 8 Dec 2002 11:00:05 -0600
"Ron Day" <[EMAIL PROTECTED]> wrote:

> Your javabeans are not in a package.Tomcat 4.xx does not like this as it
> puts it in the default package, and then cannot find it at run time.
>
> Just put your beans in a package, recompile and then add your package
> directory structure under the "classes" directory.
>
> i.e if you have com.my.package for a bean mybean.class, then
> put mybean.class in webapps/WEB-INF/classes/com/my/package directory
>
> R
>
> -Original Message-
> From: Mikael Gvransson [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, December 08, 2002 8:48 AM
> To: [EMAIL PROTECTED]
> Subject: javabean problems
>
>
> hey,
>
> it seems like i can't run my javabeans.
> i'm using tomcat 4.1.12 binary distrubtion.
>
> i get the error "cannot resolve symbol".
>
> and i have no idea what it could be, it's just
> a simple bean:
>
> public class JellyBean implements java.io.Serializable {
>   private String color;
>
>   public JellyBean() {
>   }
>
>   public String getColor() {
>   return color;
>   }
>
>   public void setColor(String newColor) {
>   color = newColor;
>   }
> }
>
>
> --
>  _  _  . |   _   _  |   [EMAIL PROTECTED]
> | )( | | |< (_| (-` |   http://micke.debinary.net
>
>
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>
>

i tried making a testbean package.
webapps/ROOT/WEB-INF/classes/com/testbean/JellyBean.class

and added in the top of the file:
package testbean;

and


and i got a diffrent error msg:
The server encountered an internal error () that prevented it from
fulfilling this request.

org.apache.jasper.JasperException: testbean.JellyBean
at
org.apache.jasper.compiler.BeanRepository.getBeanType(BeanRepository.java:18
3)
at
org.apache.jasper.compiler.Generator$GenerateVisitor.visit(Generator.java:67
6)
at org.apache.jasper.compiler.Node$GetProperty.accept(Node.java:552)
at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:1028)
at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:1070)
at org.apache.jasper.compiler.Node$Visitor.visit(Node.java:1076)
at org.apache.jasper.compiler.Node$Root.accept(Node.java:232)
[..]
more similar error code ...



--
 _  _  . |   _   _  |   [EMAIL PROTECTED]
| )( | | |< (_| (-` |   http://micke.debinary.net


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


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




RE: 4.1.12 dumps VM, any ideas?

2002-12-10 Thread Ron Day
It could be jdk 1.4.1_01 when I changed to that and tried to run
struts-console, either the jvm was shut down or my machine rebooted. when I
went back to 1.3.1 everything worked fine.

Ron

-Original Message-
From: Will Hartung [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 10, 2002 1:07 PM
To: Tomcat Users List
Subject: 4.1.12 dumps VM, any ideas?


Hi All!

We're just porting our app to 4.1.12. After fighting classpath problems, the
latest and greatest is this:

>From the localhost_log file, the last enry was:

2002-12-09 14:36:57 StandardWrapper[/myApp:invoker]: Loading container
servlet invoker.

On the stdout/stderr of the tomcat container:

bin> sh catalina.sh run
Using CATALINA_BASE:   C:\cygwin\tmp\tomcat\jakarta-tomcat-4.1.12
Using CATALINA_HOME:   C:\cygwin\tmp\tomcat\jakarta-tomcat-4.1.12
Using CATALINA_TMPDIR: C:\cygwin\tmp\tomcat\jakarta-tomcat-4.1.12\temp
Using JAVA_HOME:   c:\JDK1.3
[INFO] Registry - -Loading registry information
[INFO] Registry - -Creating new Registry instance
[INFO] Registry - -Creating MBeanServer
[INFO] Http11Protocol - -Initializing Coyote HTTP/1.1 on port 8080
Starting service Tomcat-Standalone
Apache Tomcat/4.1.12
#
# HotSpot Virtual Machine Error, Internal Error
# Please report this error at
# http://java.sun.com/cgi-bin/bugreport.cgi
#
# Error ID: 43113F32554E54494D45110E4350500290
#

W2K with Cygwin and JVM 1.3

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

Any ideas on how to hunt this kind of thing down? Are app does have a
startup servlet, so it's no doubt within that, but I was hoping for some
general ideas on why this is exploding.

Thanx!

Regards,

Will Hartung
([EMAIL PROTECTED])







--
To unsubscribe, e-mail:

For additional commands, e-mail:





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




RE: How to access /images?

2002-12-11 Thread Ron Day
nice solution.. is there a reason why you didn't make location a static
method ?

R

-Original Message-
From: micael [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 11, 2002 1:23 PM
To: Tomcat Users List
Subject: Re: How to access /images?


Don't know if this helps, but I put a Navigator class in
WEB-INF/classes/navigator/ and by accessing its ClassLoader can always tell
what the paths on the server are.  The sole purpose of this class is to
reveal information not capable of being known prior to startup (e.g. is
this Unix, XP, or Memorex?) and providing this to any part of the whole
deal that needs to know.  The parts can then use the information as they
like.  I usually create another class which gives me the location of the
application itself, which is stored in application scope and everything
from there is up to the individual parts to specify where they are relative
to that.

package navigator;

import java.io.File;
import java.net.URL;

public class Navigator {

 public URL location()
 {

 return
navigator.Navigator.class.getClassLoader().getResource("navigator" +
File.separator + "Navigator.class");

 }

}

At 11:26 AM 12/11/2002 -0600, you wrote:
>Hello Boris,
>
>This issue is much more problematic in servlets.  Since you know which
>directory your .jsp file is relative to your images, I would continue
>using relative paths.  This is what you'd need to do for static html
>files anyway.  For servlets, prepending the context path is probably a
>good idea, but make sure to ask the servlet api what the current
>context path is instead of just assuming your app will always be
>called, for instance, "myapp".  The name could change or it could be
>served off the root context where the context path would be "/" so
>always grab that value dynamically.
>
>Otherwise, use an MVC pattern and access a servlet via a mapping to
>your controller at the root of the context and *only* at the root of
>the context.  That way, you always know where your static resources
>exist relative to the current dynamic page.
>
>Otherwise, you can always pre-pend all static resources with some path
>which maps to a servlet which serves resources out of a classloader.
>You could put your images in a .jar file in some package.  that way,
>no matter where your page is, you always know exactly how to refer to
>the resources since the package name never changes.  The Barracuda
>project has such a servlet called ResourceGateway which you can take a
>look at here.
>http://barracuda.enhydra.org/software/cvs/cvsweb.cgi/Projects/EnhydraOrg/to
olsTech/Barracuda/src/org/enhydra/barracuda/core/helper/servlet/ResourceGate
way.java
>
>Jake
>
>Wednesday, December 11, 2002, 11:03:18 AM, you wrote:
>
>BF> Hi!
>
>BF> What's the preferred way of accessing e.g. images or other JSPs using
>BF> absolute pathnames in a JSP? If I use something like
>BF>  this does not work if the webapp is not
>BF> deployed to the root context. There are some methods in ServletContext
for
>BF> path handling, which should be used for constructing the right path?
>BF> I think it should look like that
>BF> 
>
>BF> Does anybody know what the magicthing should be? At the moment I use
>BF> relative pathnames, but that gets complicated if you really have a lot
of
>BF> JSPs, e.g. you need a lot of ../ if you have nested a lot of
directories.
>
>BF> cu,
>BF> boris
>
>
>
>--
>Best regards,
>  Jacobmailto:[EMAIL PROTECTED]
>
>
>--
>To unsubscribe, e-mail:

>For additional commands, e-mail:


Micael

---

This electronic mail  transmission and any accompanying documents contain
information belonging to the sender which may be confidential and legally
privileged.  This information is intended only for the use of the
individual or entity to whom this electronic mail transmission was sent as
indicated above. If you are not the intended recipient, any disclosure,
copying, distribution, or action taken in reliance on the contents of the
information contained in this transmission is strictly prohibited.  If you
have received this transmission in error, please delete the message.  Thank
you



--
To unsubscribe, e-mail:

For additional commands, e-mail:





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




RE: Connecting Tomcat 4.1.12 with Apache 1.3

2002-12-11 Thread Ron Day
do you have a reference to Robert's "JK2 HOWTO"

-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 11, 2002 3:22 PM
To: 'Tomcat Users List'
Subject: RE: Connecting Tomcat 4.1.12 with Apache 1.3



I'm planning to dig into mod_jk2 this weekend, on RH 7.3.  Robert Sowders
has a good JK2 HOWTO available using Windows.  Aside from pathnames, the
setup should be the same as a *nix/Linux setup.

John


-Original Message-
From: Noel J. Bergman [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 11, 2002 4:11 PM
To: Tomcat Users List
Subject: RE: Connecting Tomcat 4.1.12 with Apache 1.3

John,

> JK/JK2 is the better choice if you are concerned with future growth.
> If you're having problems, perhaps my HOWTOs will help:
> http://www.johnturner.com/howto

You still planning to post mod_jk2 HOWTO soon?  The information for that
appears to be scattered (best source is still the source), and usage
instructions are inconsistent from person to person.

Personally, I like the idea of deprecating the properties file in favor of
doing everything in httpd.conf.  I don't know if that is the approach you're
taking.

--- Noel


--
To unsubscribe, e-mail:

For additional commands, e-mail:


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.419 / Virus Database: 235 - Release Date: 11/13/2002


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.419 / Virus Database: 235 - Release Date: 11/13/2002


--
To unsubscribe, e-mail:

For additional commands, e-mail:




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




RE: long delay in ie

2002-12-12 Thread Ron Day
I experienced exactly the same problem going from 4.0.3 to 4.1.12.

I posted it on this list, but have not resolved it as yet...

I have no images or applets on my pages !

just html

ron

-Original Message-
From: Iqbal, Shamsudeen M [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 12, 2002 12:32 PM
To: [EMAIL PROTECTED]
Subject: long delay in ie


Hello Tomcat users,

I have just upgraded from Tomcat 4.0.4 to 4.1.12.  My application is a .jsp
page(s) with about 10 light weight applets sitting in a page.  When using IE
to access this, there is a very long delay to load the page or the browser
just hangs.  When using Mozilla browser, everything works fine.

Also noted when IE shows the file names it is loading currently on the
status bar, it loads many files quickly but is getting stuck on small .gif
files.  I found two questions on the web related to this situation, one
asking the jar file takes a long time to download when Tomcat is upgraded.
The other asks about why the .gif files would take a long time to download.
But neither questions has been answered.

Has anybody seen or heard similar problems.  Any help is appreciated.
Thanks
-Iqbal


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




RE: long delay in ie

2002-12-12 Thread Ron Day
i'm on 6.0.2800.1106

This is a weird issue since everthing is cool under 4.0.3, but not 4.1.12
for ie.
everthing is cool for all versions with netscape.

Rather than upgrade,you may have to down grade 

R

-Original Message-
From: Iqbal, Shamsudeen M [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 12, 2002 12:56 PM
To: Tomcat Users List
Subject: RE: long delay in ie


Good point.  I have 6.0.2600.CO.  Ron, Can you tell me yours?  May be I
should update the browser and apply all the patches.

-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 12, 2002 12:53 PM
To: 'Tomcat Users List'
Subject: RE: long delay in ie



My company uses IE exclusively, and while we don't use 4.1.x in production
yet, we have been doing a significant amount of testing and have not seen
this problem.

If it works in one browser but not another, it's a browser issue.  Do you
have the latest/greatest (I say that with tongue in cheek) updates to IE?
IE is notorious for breaking critical functionality in between minor
releases.  6.0.01 might work fine, but 6.0.02 might be totally
unusable, etc.

John


> -Original Message-
> From: Ron Day [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, December 12, 2002 1:41 PM
> To: Tomcat Users List
> Subject: RE: long delay in ie
>
>
> I experienced exactly the same problem going from 4.0.3 to 4.1.12.
>
> I posted it on this list, but have not resolved it as yet...
>
> I have no images or applets on my pages !
>
> just html
>
> ron
>
> -Original Message-
> From: Iqbal, Shamsudeen M [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, December 12, 2002 12:32 PM
> To: [EMAIL PROTECTED]
> Subject: long delay in ie
>
>
> Hello Tomcat users,
>
> I have just upgraded from Tomcat 4.0.4 to 4.1.12.  My
> application is a .jsp
> page(s) with about 10 light weight applets sitting in a page.
>  When using IE
> to access this, there is a very long delay to load the page
> or the browser
> just hangs.  When using Mozilla browser, everything works fine.
>
> Also noted when IE shows the file names it is loading currently on the
> status bar, it loads many files quickly but is getting stuck
> on small .gif
> files.  I found two questions on the web related to this
> situation, one
> asking the jar file takes a long time to download when Tomcat
> is upgraded.
> The other asks about why the .gif files would take a long
> time to download.
> But neither questions has been answered.
>
> Has anybody seen or heard similar problems.  Any help is appreciated.
> Thanks
> -Iqbal
>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>

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


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


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




RE: long delay in ie

2002-12-12 Thread Ron Day
that's my understanding also.. good old MS.

-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 12, 2002 1:05 PM
To: 'Tomcat Users List'
Subject: RE: long delay in ie



As far as I know there is no way to downgrade IE or Windows XP.  Once you
are on a rev level, you're there, for better or worse.

John


> -Original Message-
> From: Ron Day [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, December 12, 2002 2:03 PM
> To: Tomcat Users List
> Subject: RE: long delay in ie
>
>
> i'm on 6.0.2800.1106
>
> This is a weird issue since everthing is cool under 4.0.3,
> but not 4.1.12
> for ie.
> everthing is cool for all versions with netscape.
>
> Rather than upgrade,you may have to down grade 
>
> R
>
> -Original Message-
> From: Iqbal, Shamsudeen M [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, December 12, 2002 12:56 PM
> To: Tomcat Users List
> Subject: RE: long delay in ie
>
>
> Good point.  I have 6.0.2600.CO.  Ron, Can you tell me
> yours?  May be I
> should update the browser and apply all the patches.
>
> -Original Message-
> From: Turner, John [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, December 12, 2002 12:53 PM
> To: 'Tomcat Users List'
> Subject: RE: long delay in ie
>
>
>
> My company uses IE exclusively, and while we don't use 4.1.x
> in production
> yet, we have been doing a significant amount of testing and
> have not seen
> this problem.
>
> If it works in one browser but not another, it's a browser
> issue.  Do you
> have the latest/greatest (I say that with tongue in cheek)
> updates to IE?
> IE is notorious for breaking critical functionality in between minor
> releases.  6.0.01 might work fine, but 6.0.02 might be totally
> unusable, etc.
>
> John
>
>
> > -Original Message-
> > From: Ron Day [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, December 12, 2002 1:41 PM
> > To: Tomcat Users List
> > Subject: RE: long delay in ie
> >
> >
> > I experienced exactly the same problem going from 4.0.3 to 4.1.12.
> >
> > I posted it on this list, but have not resolved it as yet...
> >
> > I have no images or applets on my pages !
> >
> > just html
> >
> > ron
> >
> > -Original Message-
> > From: Iqbal, Shamsudeen M [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, December 12, 2002 12:32 PM
> > To: [EMAIL PROTECTED]
> > Subject: long delay in ie
> >
> >
> > Hello Tomcat users,
> >
> > I have just upgraded from Tomcat 4.0.4 to 4.1.12.  My
> > application is a .jsp
> > page(s) with about 10 light weight applets sitting in a page.
> >  When using IE
> > to access this, there is a very long delay to load the page
> > or the browser
> > just hangs.  When using Mozilla browser, everything works fine.
> >
> > Also noted when IE shows the file names it is loading
> currently on the
> > status bar, it loads many files quickly but is getting stuck
> > on small .gif
> > files.  I found two questions on the web related to this
> > situation, one
> > asking the jar file takes a long time to download when Tomcat
> > is upgraded.
> > The other asks about why the .gif files would take a long
> > time to download.
> > But neither questions has been answered.
> >
> > Has anybody seen or heard similar problems.  Any help is
> appreciated.
> > Thanks
> > -Iqbal
> >
> >
> > --
> > To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>
>
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>

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


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




RE: long delay in ie

2002-12-12 Thread Ron Day
using Tomcat as web server

-Original Message-
From: Jeff Tulley [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 12, 2002 5:21 PM
To: [EMAIL PROTECTED]
Subject: RE: long delay in ie


Turn off HTTP 1.1 in your browser and see what happens then.  I've seen a
case when the web server (Netscape Enterprise Server??) had HTTP1.1 issues
and had behavior similar to this - some requests would come through, some
wouldn't.  It's worth a try.

Also, are you using Tomcat's HTTP stack or a separate web server?  Which
one?

> > -Original Message-
> > From: Ron Day [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, December 12, 2002 1:41 PM
> > To: Tomcat Users List
> > Subject: RE: long delay in ie
> >
> >
> > I experienced exactly the same problem going from 4.0.3 to 4.1.12.
> >
> > I posted it on this list, but have not resolved it as yet...
> >
> > I have no images or applets on my pages !
> >
> > just html
> >
> > ron
> >
> > -Original Message-
> > From: Iqbal, Shamsudeen M [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, December 12, 2002 12:32 PM
> > To: [EMAIL PROTECTED]
> > Subject: long delay in ie
> >
> >
> > Hello Tomcat users,
> >
> > I have just upgraded from Tomcat 4.0.4 to 4.1.12.  My
> > application is a .jsp
> > page(s) with about 10 light weight applets sitting in a page.
> >  When using IE
> > to access this, there is a very long delay to load the page
> > or the browser
> > just hangs.  When using Mozilla browser, everything works fine.
> >
> > Also noted when IE shows the file names it is loading
> currently on the
> > status bar, it loads many files quickly but is getting stuck
> > on small .gif
> > files.  I found two questions on the web related to this
> > situation, one
> > asking the jar file takes a long time to download when Tomcat
> > is upgraded.
> > The other asks about why the .gif files would take a long
> > time to download.
> > But neither questions has been answered.
> >
> > Has anybody seen or heard similar problems.  Any help is
> appreciated.
> > Thanks
> > -Iqbal
> >
> >
> > --
> > To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>
>
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>

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

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


Jeff Tulley  ([EMAIL PROTECTED])
(801)861-5322
Novell, Inc., the leading provider of Net business solutions
http://www.novell.com


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


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




RE: You used to make your servlet work, but what about a JSP page with a bean?

2003-01-14 Thread Ron Day
Is your bean in a package? If not Tomcat will not find it in the default
package.

just add "package com.mypackage" to bean source, and put class file in
classes/com/mypackage

ron

-Original Message-
From: Wilson Snook [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 14, 2003 4:31 PM
To: Tomcat Users List
Subject: You used  to make your servlet work, but what
about a JSP page with a bean?


I am a newbie experiencing a very frustrating problem.  I have a web
application that uses a packaged javabean.  When I create a web application
with the correct directory structure under the 'webapps' directory (see
below), having created a context in 'server.xml', going to the localhost
page produces the following error:

 HTTP Status 500: ...JasperException: Cannot find any information on
property 'uName' in a bean of type 'coreBeans.FormBean'...

BUT...if I move this application's components in the appropriate directories
under the 'examples' folder, it works (therefore the JSP page and the bean
are not broken in any way).

BUT...if I leave the webapp where it is and disable the bean, the JSP page
works (although that's not a lot of use ) even if I use JSP statements in
it.  I do have Apache HTTP server on this machine, but I mention it without
knowing how this would be relevant in any way.

AND...I tested another web application that uses a servlet and this would
not work either.  HOWEVER...I fixed that by using a suitable
 tag in 'web.xml'.  Unfortunately, I don't think I can do
this with a bean (or can I?).

Does anyone out there know:
1) why my webapp can't find the bean class?
2) why mapping a servlet solves a similar problem for a JSP page using
it?
3) how I can get my webapp to find the bean class?

I won't at this stage post the webapp JSP page, bean code or xml since I
know they work if placed under the 'examples' directory.

This problem has been driving me nuts for nearly a week and if anybody could
shed some light upon it I think I would be close to ecstatic.

TIA,

Wilson

::Tomcat 4.1.18
::Apache 2.043
::Win2K


My directory structure is:

%TOMCAT_HOME%/webapps/core/
-->index.jsp
-->WEB-INF/classes/coreBeans/FormBean.class

My context in 'server.xml' is:



The (unmodified) virtual host is


  



--
To unsubscribe, e-mail:

For additional commands, e-mail:



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




RE: You used to make your servlet work, but what about a JSP page with a bean?

2003-01-14 Thread Ron Day
No, your syntax is correct. Must be another problem.

sorry

-Original Message-
From: Wilson Snook [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 14, 2003 4:56 PM
To: Tomcat Users List
Subject: Re: You used  to make your servlet work, but
what about a JSP page with a bean?


Thanks Ron, but please note bean is declared to be in:

package coreBeans;

and directory structure is

%TOMCAT_HOME%/webapps/core/WEB-INF/classes/coreBeans/FormBean.class

AFAIK that is the correct form, unless you are saying that it has to be:

package com.coreBeans;

and

%TOMCAT_HOME%/webapps/core/WEB-INF/classes/com/coreBeans/FormBean.class

instead.

Also, note bean works if the application components are moved to appropriate
directories under the 'examples' folder.  I'm pretty sure the bean is not
the problem.  It seems to me Tomcat cannot 'see' the class even though it is
in the right place (I think).

Wilson

- Original Message -
From: "Ron Day" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, January 14, 2003 10:38 PM
Subject: RE: You used  to make your servlet work, but what
about a JSP page with a bean?


> Is your bean in a package? If not Tomcat will not find it in the default
> package.
>
> just add "package com.mypackage" to bean source, and put class file in
> classes/com/mypackage
>
> ron
>
> -Original Message-
> From: Wilson Snook [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, January 14, 2003 4:31 PM
> To: Tomcat Users List
> Subject: You used  to make your servlet work, but what
> about a JSP page with a bean?
>
>
> I am a newbie experiencing a very frustrating problem.  I have a web
> application that uses a packaged javabean.  When I create a web
application
> with the correct directory structure under the 'webapps' directory (see
> below), having created a context in 'server.xml', going to the localhost
> page produces the following error:
>
>  HTTP Status 500: ...JasperException: Cannot find any information on
> property 'uName' in a bean of type 'coreBeans.FormBean'...
>
> BUT...if I move this application's components in the appropriate
directories
> under the 'examples' folder, it works (therefore the JSP page and the bean
> are not broken in any way).
>
> BUT...if I leave the webapp where it is and disable the bean, the JSP page
> works (although that's not a lot of use ) even if I use JSP statements
in
> it.  I do have Apache HTTP server on this machine, but I mention it
without
> knowing how this would be relevant in any way.
>
> AND...I tested another web application that uses a servlet and this would
> not work either.  HOWEVER...I fixed that by using a suitable
>  tag in 'web.xml'.  Unfortunately, I don't think I can do
> this with a bean (or can I?).
>
> Does anyone out there know:
> 1) why my webapp can't find the bean class?
> 2) why mapping a servlet solves a similar problem for a JSP page using
> it?
> 3) how I can get my webapp to find the bean class?
>
> I won't at this stage post the webapp JSP page, bean code or xml since I
> know they work if placed under the 'examples' directory.
>
> This problem has been driving me nuts for nearly a week and if anybody
could
> shed some light upon it I think I would be close to ecstatic.
>
> TIA,
>
> Wilson
>
> ::Tomcat 4.1.18
> ::Apache 2.043
> ::Win2K
>
> 
> My directory structure is:
>
> %TOMCAT_HOME%/webapps/core/
> -->index.jsp
> -->WEB-INF/classes/coreBeans/FormBean.class
>
> My context in 'server.xml' is:
>
> 
>
> The (unmodified) virtual host is
>
> unpackWARs="true" autoDeploy="true">
>append="true"  />
>
>
>
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>
>
>



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


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




RE: strange response.getAttribute problem

2003-01-23 Thread Ron Day
getAttribute returns 'Object'. You need to cast it to 'String'

Ron

-Original Message-
From: Erik Price [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 23, 2003 4:16 PM
To: Tomcat Users List
Subject: strange response.getAttribute problem


In my index.jsp file, I have the following snippet of code:

" />

I'm trying to capture the value of the "dest" URL parameter.  I tried
setting it as an attribute in the response object that redirects to
index.jsp, and that didn't work.  But I thought for sure that if I
hardcoded it into the URL, it would work.  Strangely, if I call
index.jsp with the following URL:

domain.com:8080/webapp/index.jsp?dest=/test/path

Then the JSP renders as such:





any idea why the GET attribute's not getting pulled into the JSP?


Thanks,

Erik


--
To unsubscribe, e-mail:

For additional commands, e-mail:



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




RE: strange response.getAttribute problem

2003-01-23 Thread Ron Day
also its request.getAttribute, not response.getAttribute.

-Original Message-
From: Erik Price [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 23, 2003 4:16 PM
To: Tomcat Users List
Subject: strange response.getAttribute problem


In my index.jsp file, I have the following snippet of code:

" />

I'm trying to capture the value of the "dest" URL parameter.  I tried
setting it as an attribute in the response object that redirects to
index.jsp, and that didn't work.  But I thought for sure that if I
hardcoded it into the URL, it would work.  Strangely, if I call
index.jsp with the following URL:

domain.com:8080/webapp/index.jsp?dest=/test/path

Then the JSP renders as such:





any idea why the GET attribute's not getting pulled into the JSP?


Thanks,

Erik


--
To unsubscribe, e-mail:

For additional commands, e-mail:



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




RE: Why won't anyone help me out??

2003-02-04 Thread Ron Day
Have you considered another occupationmaybe a Diplomat !!

Ron

-Original Message-
From: Steve Burrus [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 04, 2003 3:36 PM
To: [EMAIL PROTECTED]
Subject: Why won't anyone help me out??



Well, seeing how no one, so far, has seen fit to respond back to my "plea
for help/assistance", I will re-post this from late last nite!! I am getting
quite desperate the longer that I have to go on without getting this right!



Hello again, Filip, I tried to "package up" the 2 required files, login.jsp
and
LDAPAuth.java into a newly created "org.burrus.test" folder, and then
compiled them
into that same folder/directory to create 2 .class files, but then when I
tried to
run the whole program in my JBuilder 8, I STILL got, for my efforts, the old
505
server error page:

Apache Tomcat/4.0.6 - HTTP Status 500 - Internal Server Errortype Exception
reportmessage Internal Server Errordescription The server encountered an
internal error
(Internal Server Error) that prevented it from fulfilling this
request.exception
org.apache.jasper.JasperException: Unable to compile class for JSPNote:
sun.tools.javac.Main has been deprecated.


An error occurred at line: 4 in the jsp file: /login.jsp

Generated servlet error:
C:\Documents and Settings\Steven R.
Burrus\jbproject\thirdjavaproj\Tomcat\work\login$jsp.java:64: Class
org.apache.jsp.LDAPAuthBean not found.
LDAPAuthBean auth = null;
^


An error occurred at line: 4 in the jsp file: /login.jsp

Generated servlet error:
C:\Documents and Settings\Steven R.
Burrus\jbproject\thirdjavaproj\Tomcat\work\login$jsp.java:67: Class
org.apache.jsp.LDAPAuthBean not found.
auth= (LDAPAuthBean)
   ^


An error occurred at line: 4 in the jsp file: /login.jsp

Generated servlet error:
C:\Documents and Settings\Steven R.
Burrus\jbproject\thirdjavaproj\Tomcat\work\login$jsp.java:72: Class
org.apache.jsp.LDAPAuthBean not found.
auth = (LDAPAuthBean)
java.beans.Beans.instantiate(this.getClass().getClassLoader(),
"LDAPAuthBean");
^
Note: C:\Documents and Settings\Steven R.
Burrus\jbproject\thirdjavaproj\Tomcat\work\login$jsp.java uses or overrides
a deprecated API.  Recompile with
"-deprecation" for details.
3 errors, 2 warnings

 at org.apache.jasper.compiler.Compiler.compile(Compiler.java:285)
 at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:548)
 at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe
rvlet.java:176)
 at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:188)
 at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
 at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
 at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:190)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
 at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2
46)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
 at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
 at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
 at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 

RE: servlet URL

2003-02-07 Thread Ron Day
Will,

How can you resist ?

-Original Message-
From: Steve Burrus [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 07, 2003 2:28 PM
To: Tomcat Users List
Subject: Re: servlet URL



will, this has NOTHING to do with what you responded to, i.e., whatever
problem some Tomcat user had, but I was honestly wondering why you haven't
seen fit to respond back to my email to u some time ago, like some 10 days
to 2 weeks ago?!!

 Don't you respect me enough to respond back to my rather "creative", I
thought, email posting to you?!! And, I hope to God that I am not starting
another so-called "flame war" again, heaven knows that I have personally
been involved in enough of them recently! So, please Will, IF you still have
my email to you, kindly respond back to me. My "impression" of you would be
greatly improved if you would. :)


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




RE: MY ATTITUDE

2003-02-11 Thread Ron Day
Dear Abby,

Please help Steve.

-Original Message-
From: Steve Burrus [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 11, 2003 4:31 PM
To: Tomcat Users List; [EMAIL PROTECTED]
Subject: RE: MY ATTITUDE


Well, well, Jim, aren't just flat too damned *cute* for yer own good?!!! You
think that what u said makes me feel any better?: "Steve,Don't go away mad,
just go away!" How on earth is your *crappy* response back to me gonna help
me out w. my long series of problems? I'll bet that you really don't care
about my *measly* problems at all. Am I right?





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




RE: newbie installation problem

2003-02-12 Thread Ron Day
Redhat Package Management (Redhat make a version of Linux)

-Original Message-
From: Steve Burrus [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 12, 2003 1:59 PM
To: Tomcat Users List
Subject: RE: newbie installation problem


Excuse my ignorance please, but what does RPM stand for exactly?? I guess
that the PM is "package management".


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




RE: Fw: Fight war

2003-02-13 Thread Ron Day
At least the odd threads were somewhat related to tomcat.

-Original Message-
From: Rasputin [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 13, 2003 9:34 AM
To: Tomcat Users List; [EMAIL PROTECTED]
Subject: Re: Fw: Fight war


* Jonathan Discount <[EMAIL PROTECTED]> [0223 15:23]:
> Keep this crap off the list!  Find some other way
> to send out your ignorant drivel.

That's a little harsh, especially considering we've all put up with
dozens of odd threads this week.

But this is a chain letter:

http://groups.google.com/groups?q=unicwash.org&ie=UTF-8&oe=UTF-8&hl=en&btnG=
Google+Search

if you want to stop the war, mail your MP or
congressman, or march.



> -Original Message-
> From: Evgeniy Strokin [mailto:[EMAIL PROTECTED]]
> [EMAIL PROTECTED]
> Subject: Fwd: Fw: Fight war

> The United States are actually going to start a war.
> Today the balance of power is pretty much uneven,
> which may lead
> to a World War III. If you want to protest as well:
> UNO is collecting
> signatures to prevent this from happening. Please
> copy this mail into a new one,
> sign at the end of the list and send it to
> everybody in your
> adress book. If you receive this list with more than
> 600 names, send a copy of it to: [EMAIL PROTECTED]
>
> If you should decide not to sign this petition,
> please forward it anyway.
> Thanks.

--
One cannot make an omelette without breaking eggs -- but it is amazing
how many eggs one can break without making a decent omelette.
-- Professor Charles P. Issawi
Rasputin :: Jack of All Trades - Master of Nuns

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


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




RE: Log4J and tomcat

2003-02-13 Thread Ron Day
Try putting log4j.jar in your WEB-INF/lib directory, and your log4j.props in
your classes directory.
or
set up a servlet that loads on startup that uses the log4j method to define
the path to your prop file, in the init().

-Original Message-
From: Sloan Seaman [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 12, 2003 3:23 PM
To: [EMAIL PROTECTED]
Subject: Log4J and tomcat


I'm deploying a war file using tomcat and I wish to use Apache's common
logging api to log things (log4j behind the scenes).

For some reason my configuration file seems to be getting ignored but my
log.info msgs are showing up in the console window for Tomcat.

Can someone tell me why this is happening?

How do I get my app to use my log4j conf file?

Thanks!
--
Sloan



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


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




RE: MY ATTITUDE

2003-02-13 Thread Ron Day
Steve,

GFYYA-H


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




RE: Sessions without Cookies?

2003-02-17 Thread Ron Day
no server configuration, just use response.encodeURL() with every href, and
form action. If you want, there are custom tags out there that will give you
more compact code.

Ron

-Original Message-
From: Joe Tomcat [mailto:[EMAIL PROTECTED]]
Sent: Saturday, February 15, 2003 2:50 PM
To: Tomcat Users List
Subject: Sessions without Cookies?


Hello Tomcatistinarians (or is it Tomcatistadors y Tomcatistadoras?),

I have a web app which keeps a bunch of useful information in the
session objects, and it absolutely must work on some clients that don't
support cookies.  I know, that is annoying, but it's something I can't
do anything about.  So, I am trying to figure out what is the best way
to do this within jsp.  It seems like url rewriting is the only way to
go.  There are links all over the place so I want to do this in a way
which is efficient and readable for me, the page designer.  Do I need to
configure anything in the server, also?

Thanks!



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


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




RE: crontab problems

2003-02-25 Thread Ron Day
Would you expand on option 2.

Why is this a thread rather than a java app that is started on system
startup ?

Ron

-Original Message-
From: Hannes Schmidt [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 25, 2003 12:50 PM
To: Tomcat Users List
Subject: Re: crontab problems


There's not a single JVM per machine. Even if the JVM running Tomcat inside
it is crashed, it's prefectly ok to start another one testing for the
existence or availability of Tomcat and/or a webapp. That will work. It's
just that this solution is a little awkward. Let me summarize the
alternatives:

1) A cronjob shell script using wget as John suggested.

2) A Java Thread running in a different UNIX process, i.e. JVM which
repeatedly tests the webapp's availability like I suggested in my first
posting. That thread runs in a loop and is NOT started regularly by cron but
once when the system starts (aka. init script).

Aside from that, your primary goal should be to get rid of the crash. Ever
tried downgrading to a 1.3 JDK?

- Original Message -
From: "Turner, John" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Tuesday, February 25, 2003 6:16 PM
Subject: RE: crontab problems


>
> No, I guess that would work.  It just seems to be needlessly complicated
and
> resource intensive.  You normally don't consider a program crashing as
> normal behavior.  The point of a monitoring application is for it to NEVER
> crash, and continually check some other application.
>
> Think about itcron launches your program to see if Tomcat is started.
> Well, Tomcat isn't.  That's a given, considering that the JVM just
crashed.
> A circle.  See?  Your application is Tomcat, not the JVM.
>
> My point is that if you can successfully retrieve output from Tomcat,
> generated by either a servlet or a JSP, all is well.  Tomcat is happy, the
> JVM is happy, all is well.  If you can't, something is wrong, and you have
> to restart anyway.  Seems simpler to me, but I guess there will always be
> different ways to do things.
>
> Heck, if this happens alot, you'd probably just be better off profiling
your
> application, finding out WHY it happens (maybe something could be
rewritten
> or re-architected to avoid triggering those bugs), and possibly just
> determining that a restart every other day or something is sufficient.  In
> that case, just set up a cron job to run at 4 AM your time 3 times a week
> that restarts Tomcat, without even bothering to check status.
>
> The typcial goal for a monitoring application is to alert you that
something
> is wrong...not to treat something that goes wrong as a normal event.
>
> John
>
> > -Original Message-
> > From: Ayhan Peker [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, February 25, 2003 12:06 PM
> > To: Tomcat Users List
> > Subject: RE: crontab problems
> >
> >
> > Am I right to think that if jvm crashes...Once writing to
> > core file is
> > finished, jvm can be restarted..(that is what we have been doing--jvm
> > crashes, of course tomcat too)
> > AND crontab say 5 min later..launches this java programme, which will
> > restart tomcat..this is not a thread..just a java
> > programme...that is the
> > reason I am trying to launch it from crontab...
> >
> > When jvm crashes it writes its report..and goes away from the
> > memory..You
> > can still launch a java programme after this crash (like
> > launching tomcat
> > again after the crash)..
> >
> > ..
> >
> > --tomcat running
> > --jvm crashes..
> > --crontab launches my watcher (written in java)
> > --my application checks if tomcat is running...and restarts
> > is necessary..
> > --if my programme is running at the time of crash..my
> > programme crashes
> > too...but 5 min later my programme is activated by crontab again..
> >
> >
> > Am I missing something here?
> >
> > Take care..
> >
> > Ayhan
> >
> >
> >
> > At 10:12 AM 2/25/03 -0500, you wrote:
> >
> > >Well, if the JVM is "crashed", how can a program or
> > application written in
> > >Java help you manage Tomcat?  That was the point.
> > >
> > >John
> > >
> > > > -Original Message-
> > > > From: Ayhan Peker [mailto:[EMAIL PROTECTED]
> > > > Sent: Tuesday, February 25, 2003 9:43 AM
> > > > To: Tomcat Users List
> > > > Subject: RE: crontab problems
> > > >
> > > >
> > > > I have no problems with tomcat...
> > > >
> > > > But sometimes under heavy load jvm 1.4 crashes...
> > > > see the links:
> > > >
> > > > Ok this is the bug:
> > > >
> > http://developer.java.sun.com/developer/bugParade/bugs/4779653.html
> > > > unfortunately it is closed, affects 1.4.1 and will not
> > > > apparently be fixed.
> > > > It oiccurs in large apps under load.on Linux and Solaris (
> > > > and most likely
> > > > Windows )
> > > > It is related to / a copy of the following bug which
> > > >
> > http://developer.java.sun.com/developer/bugParade/bugs/4724356.html
> > > >
> > > >
> > > >
> > > >
> > > > what is the best suggestion?
> > > >
> > > > just trying to determine if

RE: Script for checking remote server

2003-02-25 Thread Ron Day
Use java code very similar to that in the recent post by Hannes Schmidt (see
Tues 02/25/2003:5.29AM)

I run something like this out of a thread that I initiate in the init method
of my main servlet. It can call a java class to send email or whatever.

ron

-Original Message-
From: tomcat guy [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 25, 2003 1:06 PM
To: Tomcat Users List
Subject: Script for checking remote server


What does everyone use to check the status of a remote server?

I am needing a script (or what have you) that will validate that my Tomcat
server is up and running on timed intervals.  If the server is down, I need
to post to a web page that sends either (or both) an email & a msg to my
cell phone (think I have this part figured out).

Anyone care to share some code?  Or offer some ideas?

It would be very much appreciated!
Thanks,
Chris


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



RE: Script for checking remote server

2003-02-25 Thread Ron Day
Will you get a jsp if Apache is down ??

-Original Message-
From: Mike Jackson [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 25, 2003 1:07 PM
To: Tomcat Users List
Subject: RE: Script for checking remote server


I use a script that uses wget to retrieve pages from the server.  If I can't
get a jsp I know that tomcat is down, if I can't get an html I know apache
is down.  I'll post something in a bit.

--mikej
-=-
mike jackson
[EMAIL PROTECTED]

> -Original Message-
> From: tomcat guy [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, February 25, 2003 11:06 AM
> To: Tomcat Users List
> Subject: Script for checking remote server
>
>
> What does everyone use to check the status of a remote server?
>
> I am needing a script (or what have you) that will validate that
> my Tomcat server is up and running on timed intervals.  If the
> server is down, I need to post to a web page that sends either
> (or both) an email & a msg to my cell phone (think I have this
> part figured out).
>
> Anyone care to share some code?  Or offer some ideas?
>
> It would be very much appreciated!
> Thanks,
> Chris



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


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



RE: Script for checking remote server

2003-02-25 Thread Ron Day
that was my point

-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 25, 2003 1:50 PM
To: 'Tomcat Users List'
Subject: RE: Script for checking remote server



It wouldn't matter...if Apache is down, the entire application is down.

John


> -Original Message-----
> From: Ron Day [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, February 25, 2003 2:09 PM
> To: Tomcat Users List
> Subject: RE: Script for checking remote server
> 
> 
> Will you get a jsp if Apache is down ??
> 
> -Original Message-
> From: Mike Jackson [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, February 25, 2003 1:07 PM
> To: Tomcat Users List
> Subject: RE: Script for checking remote server
> 
> 
> I use a script that uses wget to retrieve pages from the 
> server.  If I can't
> get a jsp I know that tomcat is down, if I can't get an html 
> I know apache
> is down.  I'll post something in a bit.
> 
> --mikej
> -=-
> mike jackson
> [EMAIL PROTECTED]
> 
> > -Original Message-
> > From: tomcat guy [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, February 25, 2003 11:06 AM
> > To: Tomcat Users List
> > Subject: Script for checking remote server
> >
> >
> > What does everyone use to check the status of a remote server?
> >
> > I am needing a script (or what have you) that will validate that
> > my Tomcat server is up and running on timed intervals.  If the
> > server is down, I need to post to a web page that sends either
> > (or both) an email & a msg to my cell phone (think I have this
> > part figured out).
> >
> > Anyone care to share some code?  Or offer some ideas?
> >
> > It would be very much appreciated!
> > Thanks,
> > Chris
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

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


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



RE: Script for checking remote server

2003-02-25 Thread Ron Day
I assume you are agreeing with me, and Hannes ?

-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 25, 2003 1:59 PM
To: 'Tomcat Users List'
Subject: RE: Script for checking remote server



Monitoring the process table with ps doesn't tell you if your application is
available.  It just tells you if the OS thinks your application (Tomcat) is
running.

To remotely monitor/test a web application, your monitor application must
make a full HTTP/HTTPS request and check the content returned as the
response for an indicator that all is well.  Anything else is false
security.

John

> -Original Message-----
> From: Ron Day [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, February 25, 2003 2:07 PM
> To: Tomcat Users List
> Subject: RE: Script for checking remote server
>
>
> Use java code very similar to that in the recent post by
> Hannes Schmidt (see
> Tues 02/25/2003:5.29AM)
>
> I run something like this out of a thread that I initiate in
> the init method
> of my main servlet. It can call a java class to send email or
> whatever.
>
> ron
>
> -Original Message-
> From: tomcat guy [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, February 25, 2003 1:06 PM
> To: Tomcat Users List
> Subject: Script for checking remote server
>
>
> What does everyone use to check the status of a remote server?
>
> I am needing a script (or what have you) that will validate
> that my Tomcat
> server is up and running on timed intervals.  If the server
> is down, I need
> to post to a web page that sends either (or both) an email &
> a msg to my
> cell phone (think I have this part figured out).
>
> Anyone care to share some code?  Or offer some ideas?
>
> It would be very much appreciated!
> Thanks,
> Chris
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>

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


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



RE: crontab problems

2003-02-25 Thread Ron Day
Thanks , two questions...

1) Does the URL creation have to be inside the while loop ?
2) Shouldn't the if statement test be:

   (! con.getContentLength() > 0)

rather than

   (con.getContentLength() > 0)

Ron

-Original Message-
From: Hannes Schmidt [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 25, 2003 2:06 PM
To: Tomcat Users List
Subject: Re: crontab problems


> Would you expand on option 2.

A Java thread is a sequence of execution of Java bytecode on a JVM.
Obviously, there can be multiple threads per JVM. A JVM is a native
operating system process interpreting (sometimes compiling on the fly) the
bytecode of at least one Java thread. Since there can be multiple processes
per machine, there can be multiple JVMs per machine. Ideally, these JVMs are
completely separated, at least their address space (memory) is. Sometimes an
operating system provides native threads. These are threads of execution of
machine instructions on the real machine. There can be multiple native
threads per native process. Thus, it is possible to map native threads to
Java threads: the JVM process contains multiple real threads, each executing
one thread of bytecode. I don't think the Sun's JVM does that, but I'm not
sure.

You just have to make sure that the monitoring thread is not executed inside
the same JVM that runs the application to be monitored.

> Why is this a thread rather than a java app that is started on system
> startup ?

Option 2 IS a Java application. It consists of a single Java thread (the one
running the main() method). But it is started only once and it repeats
internally - note the infinite while() loop. A cronjob is a Unix process
that is repeated externally. I use the term externally, because it is
started all over again periodically by an 'higher power', i.e. CRON.
Cronjobs don't usually contain infinite loops. Whether to use internal or
external repetition depends on the situation: external repetetion is more
time consuming but it releases all resources, e.g. memory after each
iteration. Internal repetition is fast but it blocks resources forever,
basically. So if something needs to be executed once every minute I would
strongly suggest internal repetition. If it needs to run once a day only, I
would suggest external repetition.

import java.net.*;
public class Main {
public void main( String[] args ) {
while(true) {
URL url = new URL( "http://localhost:8080/examples"; );
URLConnection con = url.openConnection();
con.setUseCaches( false );
con.connect();
if( con.getContentLength() > 0 ) {
// restart tomcat
}
// cleanup
Thread.getCurrentThread().sleep( 100 ); // or so, I'm not sure
}
}
}


- Original Message -
From: "Ron Day" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, February 25, 2003 8:00 PM
Subject: RE: crontab problems


>
>
> Ron
>
> -Original Message-
> From: Hannes Schmidt [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, February 25, 2003 12:50 PM
> To: Tomcat Users List
> Subject: Re: crontab problems
>
>
> There's not a single JVM per machine. Even if the JVM running Tomcat
inside
> it is crashed, it's prefectly ok to start another one testing for the
> existence or availability of Tomcat and/or a webapp. That will work. It's
> just that this solution is a little awkward. Let me summarize the
> alternatives:
>
> 1) A cronjob shell script using wget as John suggested.
>
> 2) A Java Thread running in a different UNIX process, i.e. JVM which
> repeatedly tests the webapp's availability like I suggested in my first
> posting. That thread runs in a loop and is NOT started regularly by cron
but
> once when the system starts (aka. init script).
>
> Aside from that, your primary goal should be to get rid of the crash. Ever
> tried downgrading to a 1.3 JDK?
>
> - Original Message -
> From: "Turner, John" <[EMAIL PROTECTED]>
> To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
> Sent: Tuesday, February 25, 2003 6:16 PM
> Subject: RE: crontab problems
>
>
> >
> > No, I guess that would work.  It just seems to be needlessly complicated
> and
> > resource intensive.  You normally don't consider a program crashing as
> > normal behavior.  The point of a monitoring application is for it to
NEVER
> > crash, and continually check some other application.
> >
> > Think about itcron launches your program to see if Tomcat is
started.
> > Well, Tomcat isn't.  That's a given, considering that the JVM just
> crashed.
> > A cir

RE: Script for checking remote server

2003-02-25 Thread Ron Day
The published code had errors, but the idea of  getting a connection
(url.openConnection)and testing response code in header with
con.setRequestMethod("HEAD") and con.getResponseCode() should work like your
example of a JSP.

-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 25, 2003 2:46 PM
To: 'Tomcat Users List'
Subject: RE: Script for checking remote server



I don't think so...the last example I saw was making system calls to ps and
looking for a particular entry in the process table, and the other one I saw
was just checking to see if a response came back (a 404 or 500 or other
error is a valid response but not the one you want).  That doesn't do
anything.  Perhaps I missed another example that was posted.

John

> -----Original Message-
> From: Ron Day [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, February 25, 2003 3:37 PM
> To: Tomcat Users List
> Subject: RE: Script for checking remote server
>
>
> I assume you are agreeing with me, and Hannes ?
>
> -Original Message-
> From: Turner, John [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, February 25, 2003 1:59 PM
> To: 'Tomcat Users List'
> Subject: RE: Script for checking remote server
>
>
>
> Monitoring the process table with ps doesn't tell you if your
> application is
> available.  It just tells you if the OS thinks your
> application (Tomcat) is
> running.
>
> To remotely monitor/test a web application, your monitor
> application must
> make a full HTTP/HTTPS request and check the content returned as the
> response for an indicator that all is well.  Anything else is false
> security.
>
> John
>
> > -Original Message-
> > From: Ron Day [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, February 25, 2003 2:07 PM
> > To: Tomcat Users List
> > Subject: RE: Script for checking remote server
> >
> >
> > Use java code very similar to that in the recent post by
> > Hannes Schmidt (see
> > Tues 02/25/2003:5.29AM)
> >
> > I run something like this out of a thread that I initiate in
> > the init method
> > of my main servlet. It can call a java class to send email or
> > whatever.
> >
> > ron
> >
> > -Original Message-
> > From: tomcat guy [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, February 25, 2003 1:06 PM
> > To: Tomcat Users List
> > Subject: Script for checking remote server
> >
> >
> > What does everyone use to check the status of a remote server?
> >
> > I am needing a script (or what have you) that will validate
> > that my Tomcat
> > server is up and running on timed intervals.  If the server
> > is down, I need
> > to post to a web page that sends either (or both) an email &
> > a msg to my
> > cell phone (think I have this part figured out).
> >
> > Anyone care to share some code?  Or offer some ideas?
> >
> > It would be very much appreciated!
> > Thanks,
> > Chris
> >
> >
> >
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>

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


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



RE: crontab problems

2003-02-25 Thread Ron Day
Does the URL instantiation have to be inside the while loop ??

-Original Message-
From: Hannes Schmidt [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 25, 2003 3:56 PM
To: Tomcat Users List
Subject: Re: crontab problems


Right. My sample code wasn't meant to be 100% correct. I wanted to show the
big picture. Yes, it should be

(! con.getContentLength() > 0)

an yes even that wouldn't work as John explained. So this is my second
guess:

import java.net.*;
import java.io.*;
public class Main {
public void main( String[] args ) {
while(true) {
URL url = new URL( "http://localhost:8080/mywebapp/ping.jsp"; );
URLConnection con = url.openConnection();
con.setUseCaches( false );
con.connect();
try {
InputStream is = con.getInputStream();
InputStreamReader isr = new InputStreamReader( is );
BufferedReader br = new BuffererdReader( isr );
String line;
boolean success = false;
while( null != ( line = br.readLine() ) {
if( -1 != line.indexOf( "!!!SUCCESS!!!" ) {
success = true;
}
}
// ... close streams etc.
if( ! success ) {
// restart tomcat
}
} catch( Exception e ) {
// handle exceptions
}
// ... cleanup
Thread.currentThread().sleep( 60 * 1000 );
}
}
}


- Original Message -
From: "Turner, John" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Tuesday, February 25, 2003 9:53 PM
Subject: RE: crontab problems


>
> Still won't work.  A 404, 500, or other error will have a content length
> greater than 0.  That's bad.
>
> John
>
> > -Original Message-
> > From: Ron Day [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, February 25, 2003 3:43 PM
> > To: Tomcat Users List
> > Subject: RE: crontab problems
> >
> >
> > Thanks , two questions...
> >
> > 1) Does the URL creation have to be inside the while loop ?
> > 2) Shouldn't the if statement test be:
> >
> >(! con.getContentLength() > 0)
> >
> > rather than
> >
> >(con.getContentLength() > 0)
> >
> > Ron
> >
> > -Original Message-
> > From: Hannes Schmidt [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, February 25, 2003 2:06 PM
> > To: Tomcat Users List
> > Subject: Re: crontab problems
> >
> >
> > > Would you expand on option 2.
> >
> > A Java thread is a sequence of execution of Java bytecode on a JVM.
> > Obviously, there can be multiple threads per JVM. A JVM is a native
> > operating system process interpreting (sometimes compiling on
> > the fly) the
> > bytecode of at least one Java thread. Since there can be
> > multiple processes
> > per machine, there can be multiple JVMs per machine. Ideally,
> > these JVMs are
> > completely separated, at least their address space (memory)
> > is. Sometimes an
> > operating system provides native threads. These are threads
> > of execution of
> > machine instructions on the real machine. There can be multiple native
> > threads per native process. Thus, it is possible to map
> > native threads to
> > Java threads: the JVM process contains multiple real threads,
> > each executing
> > one thread of bytecode. I don't think the Sun's JVM does
> > that, but I'm not
> > sure.
> >
> > You just have to make sure that the monitoring thread is not
> > executed inside
> > the same JVM that runs the application to be monitored.
> >
> > > Why is this a thread rather than a java app that is started
> > on system
> > > startup ?
> >
> > Option 2 IS a Java application. It consists of a single Java
> > thread (the one
> > running the main() method). But it is started only once and it repeats
> > internally - note the infinite while() loop. A cronjob is a
> > Unix process
> > that is repeated externally. I use the term externally, because it is
> > started all over again periodically by an 'higher power', i.e. CRON.
> > Cronjobs don't usually contain infinite loops. Whether to use
> > internal or
> > external repetition depends on the situation: external
> > repetetion is more
> > time consuming but it releases all resources, e.g. memory after each
> > iteration. Internal rep

RE: crontab problems

2003-02-25 Thread Ron Day
I have code very similar to this that does work... except
whenever I get an unknowHostException, it seems to be cached somewhere until
I bounce Tomcat. My code actually pulses another website (in a thread every
3 minutes)that is on the network, rather than check Tomcat. In place of your
streams, I actually set the request method to "HEAD", and interrogate the
Response Code. This is easy to do in HTTPURLConnection.

I instantiate the URL outside the loop (and hence only once), and I am
wondering if this is the source of my problem. I plan to test it ASAP.

ron

-Original Message-
From: Hannes Schmidt [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 25, 2003 6:27 PM
To: Tomcat Users List
Subject: Re: crontab problems


Probably not. But the connection does have to be inside the loop. Keep in
mind that this is a concept. I have never compiled or tested that code ...

- Original Message -----
From: "Ron Day" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, February 25, 2003 11:09 PMnstantiate the URL outside my loop
Subject: RE: crontab problems


> Does the URL instantiation have to be inside the while loop ??
>
> -Original Message-
> From: Hannes Schmidt [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, February 25, 2003 3:56 PM
> To: Tomcat Users List
> Subject: Re: crontab problems
>
>
> Right. My sample code wasn't meant to be 100% correct. I wanted to show
the
> big picture. Yes, it should be
>
> (! con.getContentLength() > 0)
>
> an yes even that wouldn't work as John explained. So this is my second
> guess:
>
> import java.net.*;
> import java.io.*;
> public class Main {
> public void main( String[] args ) {
> while(true) {
> URL url = new URL(
"http://localhost:8080/mywebapp/ping.jsp"; );
> URLConnection con = url.openConnection();
> con.setUseCaches( false );
> con.connect();
> try {
> InputStream is = con.getInputStream();
> InputStreamReader isr = new InputStreamReader( is );
> BufferedReader br = new BuffererdReader( isr );
> String line;
> boolean success = false;
> while( null != ( line = br.readLine() ) {
> if( -1 != line.indexOf( "!!!SUCCESS!!!" ) {
> success = true;
> }
> }
> // ... close streams etc.
> if( ! success ) {
> // restart tomcat
> }
> } catch( Exception e ) {
> // handle exceptions
> }
> // ... cleanup
> Thread.currentThread().sleep( 60 * 1000 );
> }
> }
> }
>
>
> - Original Message -
> From: "Turner, John" <[EMAIL PROTECTED]>
> To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
> Sent: Tuesday, February 25, 2003 9:53 PM
> Subject: RE: crontab problems
>
>
> >
> > Still won't work.  A 404, 500, or other error will have a content length
> > greater than 0.  That's bad.
> >
> > John
> >
> > > -Original Message-
> > > From: Ron Day [mailto:[EMAIL PROTECTED]
> > > Sent: Tuesday, February 25, 2003 3:43 PM
> > > To: Tomcat Users List
> > > Subject: RE: crontab problems
> > >
> > >
> > > Thanks , two questions...
> > >
> > > 1) Does the URL creation have to be inside the while loop ?
> > > 2) Shouldn't the if statement test be:
> > >
> > >(! con.getContentLength() > 0)
> > >
> > > rather than
> > >
> > >(con.getContentLength() > 0)
> > >
> > > Ron
> > >
> > > -Original Message-
> > > From: Hannes Schmidt [mailto:[EMAIL PROTECTED]
> > > Sent: Tuesday, February 25, 2003 2:06 PM
> > > To: Tomcat Users List
> > > Subject: Re: crontab problems
> > >
> > >
> > > > Would you expand on option 2.
> > >
> > > A Java thread is a sequence of execution of Java bytecode on a JVM.
> > > Obviously, there can be multiple threads per JVM. A JVM is a native
> > > operating system process interpreting (sometimes compiling on
> > > the fly) the
> > > bytecode of at least one Java thread. Since there can be
> > > multiple processes
> > > per machine, there can be multiple JVMs per machine. Ideally,
> > > thes

RE: crontab problems

2003-02-25 Thread Ron Day
Sorry, I wasn't very clear.

I have a Struts application. My heartbeat thread that checks the other
server, is spawned from the init method of the controller servlet, so
bouncing tomcat restarts the heartbeat thread.

My issue is, once the heartbeat program gets an UnknownHostException , for
some reason. The heartbeat program keeps thinking there is a
UnknownHostException until it is restarted (by bouncing Tomcat), just like
it was cached somewhere. I was thinking that getting the URL object every
time though the loop may solve this.

I'm not sure what else would cause it.

The DNS issue clears up , but the heartbeat still thinks there is an
exception.

-Original Message-
From: Hannes Schmidt [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 25, 2003 8:02 PM
To: Tomcat Users List
Subject: Re: crontab problems


I attached a version of my sample code that actually works (JDK used 1.4.1).

Regarding your problem: I don't understand why bouncing Tomcat would resolve
a DNS problem. The UnknownHostException is a indication that something is
wrong with DNS or the resolver library.

- Original Message -----
From: "Ron Day" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, February 26, 2003 1:37 AM
Subject: RE: crontab problems


> I have code very similar to this that does work... except
> whenever I get an unknowHostException, it seems to be cached somewhere
until
> I bounce Tomcat. My code actually pulses another website (in a thread
every
> 3 minutes)that is on the network, rather than check Tomcat. In place of
your
> streams, I actually set the request method to "HEAD", and interrogate the
> Response Code. This is easy to do in HTTPURLConnection.
>
> I instantiate the URL outside the loop (and hence only once), and I am
> wondering if this is the source of my problem. I plan to test it ASAP.
>
> ron
>



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



RE: crontab problems

2003-02-25 Thread Ron Day
No Code attached ???

-Original Message-
From: Hannes Schmidt [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 25, 2003 8:02 PM
To: Tomcat Users List
Subject: Re: crontab problems


I attached a version of my sample code that actually works (JDK used 1.4.1).

Regarding your problem: I don't understand why bouncing Tomcat would resolve
a DNS problem. The UnknownHostException is a indication that something is
wrong with DNS or the resolver library.

- Original Message -
From: "Ron Day" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, February 26, 2003 1:37 AM
Subject: RE: crontab problems


> I have code very similar to this that does work... except
> whenever I get an unknowHostException, it seems to be cached somewhere
until
> I bounce Tomcat. My code actually pulses another website (in a thread
every
> 3 minutes)that is on the network, rather than check Tomcat. In place of
your
> streams, I actually set the request method to "HEAD", and interrogate the
> Response Code. This is easy to do in HTTPURLConnection.
>
> I instantiate the URL outside the loop (and hence only once), and I am
> wondering if this is the source of my problem. I plan to test it ASAP.
>
> ron
>



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



RE: crontab problems

2003-02-26 Thread Ron Day
Do you know which class cache the negative response

-Original Message-
From: Ralph Einfeldt [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 26, 2003 2:07 AM
To: Tomcat Users List
Subject: RE: crontab problems


Because the underlying classes sometimes cache a negative
response, so you have to restart tomcat to enable a new 
lookup. (That's not specific to tomcat)

> -Original Message-
> From: Hannes Schmidt [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, February 26, 2003 3:02 AM
> To: Tomcat Users List
> Subject: Re: crontab problems
> 
> Regarding your problem: I don't understand why bouncing 
> Tomcat would resolve a DNS problem. The UnknownHostException 
> is a indication that something is wrong with DNS or the
> resolver library.
> 

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


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



RE: crontab problems

2003-02-26 Thread Ron Day
Good Morning (bad weather here in Dallas)

Thanks for the detailed look at this..

The exception is thrown by the getResponseCode() method of
HttpURLConnection.

Running Linux (2.4 kernel,redhat 7.2) and Sun jdk (1.4.0).

R

-Original Message-
From: Hannes Schmidt [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 26, 2003 6:01 AM
To: Tomcat Users List
Subject: Re: crontab problems


Good morning!

When I deliberately use a non-existing hostname in order to force the lookup
to fail, the exception is thrown in a method indirectly called by
HttpURLConnection.connect(). This means that the lookup is not done in the
URL class, which in turn means that moving the URL instantiation into the
loop won't help anything.

java.net.UnknownHostException: swww.hannesschmidt.de
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:153)
at java.net.Socket.connect(Socket.java:426)
at java.net.Socket.connect(Socket.java:376)
at sun.net.NetworkClient.doConnect(NetworkClient.java:139)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:386)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:602)
at sun.net.www.http.HttpClient.(HttpClient.java:303)
at sun.net.www.http.HttpClient.(HttpClient.java:264)
at sun.net.www.http.HttpClient.New(HttpClient.java:336)
at sun.net.www.http.HttpClient.New(HttpClient.java:317)
at sun.net.www.http.HttpClient.New(HttpClient.java:312)
at
sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.j
ava:481)
at
sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:4
72)
at UrlWatchdog.main(UrlWatchdog.java:31)

Where do you get your excepetion? My guts is telling me that the lookup
result is cached by the operating system rather than a Java class. On the
other hand, caching a negative result should never be done by anything. So
the behaviour you illustrated is really strange. What platform does your
webapp run on?

- Original Message -
From: "Ron Day" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, February 26, 2003 9:27 AM
Subject: RE: crontab problems


> Do you know which class cache the negative response
>
> -Original Message-
> From: Ralph Einfeldt [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, February 26, 2003 2:07 AM
> To: Tomcat Users List
> Subject: RE: crontab problems
>
>
> Because the underlying classes sometimes cache a negative
> response, so you have to restart tomcat to enable a new
> lookup. (That's not specific to tomcat)
>
> > -Original Message-
> > From: Hannes Schmidt [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, February 26, 2003 3:02 AM
> > To: Tomcat Users List
> > Subject: Re: crontab problems
> >
> > Regarding your problem: I don't understand why bouncing
> > Tomcat would resolve a DNS problem. The UnknownHostException
> > is a indication that something is wrong with DNS or the
> > resolver library.
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


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


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



RE: crontab problems

2003-02-26 Thread Ron Day
I checked the properties file and I am using defaults, so cache on
unsuccessful should be 10 secs. Mine is sure acting like it is "Forever"
(until new jvm is started)

ron

-Original Message-
From: Ralph Einfeldt [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 26, 2003 6:36 AM
To: Tomcat Users List
Subject: RE: crontab problems


It's the java implementation that does the caching, as java implements
the lookup on it's own and doesn't use the operating system functions
for that. (That doesn't mean that the operating system or the resolver
lib is not caching, but that is independent
of the java problem.)

The lookup behaviour can be configured, have a look at:
http://java.sun.com/j2se/1.4/docs/guide/net/properties.html#nct
http://java.sun.com/j2se/1.4/docs/guide/net/properties.html#ncnt

> -Original Message-
> From: Hannes Schmidt [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, February 26, 2003 1:01 PM
> To: Tomcat Users List
> Subject: Re: crontab problems
>
> Where do you get your excepetion? My guts is telling me that
> the lookup result is cached by the operating system rather
> than a Java class. On the other hand, caching a negative result
> should never be done by anything.

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


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



RE: JDK DNS cache (was Re: crontab problems)

2003-02-26 Thread Ron Day
I do not understand this question at all ?

jsp has page scope, session has session scope ???

-Original Message-
From: Michael Micek [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 26, 2003 12:54 PM
To: Tomcat Users List
Subject: JDK DNS cache (was Re: crontab problems)


On Wed, Feb 26, 2003 at 06:57:11AM -0500, Tim Funk wrote:
> Ron Day wrote:
> >Do you know which class cache the negative response

> Its a JDK issue.

> (IIRC) Successful (and unsucessful?) DNS lookups are cached forever 
> during the life of the JVM.

The web application developer I'm supporting has instructed me to ask:

Would this be true if the jsp or session didn't have application scope?
If it isn't true for session scope then it's a design not JDK issue..


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


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



RE: request parameter question ...

2003-03-26 Thread Ron Day
Attributes and Parameters are different. Parameters only arrive as part
of a querystring or in a form post. Attributes are more general, and can be
set by the programmer. That said, they are set and read using different
methods. several responses to your post suggested using xxx?param=yy or
using a forward. Both these will set a parameter that you can read with
getParameter.

-Original Message-
From: Mufaddal Khumri [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 26, 2003 3:02 AM
To: Tomcat Users List
Subject: Re: request parameter question ...


I guess if i use setAttribute ... i have to use getAttribute ... thats
the reason i get the blank string .. coz i was using getParameter

my problem is that the jsp uses getParameter ... it would have been
good if i could have used the same method regardless as how the
parameter was set.

On Thursday, March 27, 2003, at 02:37  AM, Filip Hanik wrote:

> that is what request.setAttribute is there for.
>
> you can also look at JSP forward, that allows you to set parameters,
> not sure how this translates to a servlet
>
> http://java.sun.com/products/jsp/syntax/1.1/syntaxref1110.html
>
>
> filip
>
>> -Original Message-
>> From: Mufaddal Khumri [mailto:[EMAIL PROTECTED]
>> Sent: Wednesday, March 26, 2003 12:33 AM
>> To: Tomcat List
>> Subject: request parameter question ...
>>
>>
>> Hi ,
>>
>> In my servlet I have the following code:
>>
>> String str = request.getParameter("name");
>>
>> if(str.equals("xyz") == true)
>> {
>>  str = "ChangedName";
>>  request.setParameter("name", str);   //
>> <- how
>> do i do this ??? There is no method as request.setParameter()
>> }
>>
>> try
>> {
>>  String path = "/SomeJSP.jsp"
>>
>> getServletConfig().getServletContext().getRequestDispatcher(pa
>> th).forwar
>> d(request, response);
>> }
>> catch(Exception ex)
>> {
>>  ex.printStackTrace();
>> }
>>
>> one way to do it would be to append the parameter and its
>> changed value
>> to the path:
>> String path = "/SomeJSP.jsp?name=str";
>>
>> But is there some method like setParameter to do what I want to do ?
>>
>> Thanks.
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


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


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



RE: request parameter question ...

2003-03-26 Thread Ron Day
Don't need to do this. You can use a requestDispatcher in servlet to perform
a forward (BTW: that's ultimately what a jsp relies on anyway !!)

Ron

-Original Message-
From: Filip Hanik [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 26, 2003 3:36 PM
To: Tomcat Users List
Subject: RE: request parameter question ...


then I would suggest to make your servlet into a jsp page, and that way you
can use the jsp:forward to pass parameters

Filip

> -Original Message-
> From: Mufaddal Khumri [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, March 26, 2003 1:02 AM
> To: Tomcat Users List
> Subject: Re: request parameter question ...
>
>
> I guess if i use setAttribute ... i have to use getAttribute
> ... thats
> the reason i get the blank string .. coz i was using getParameter
>
> my problem is that the jsp uses getParameter ... it would have been
> good if i could have used the same method regardless as how the
> parameter was set.
>
> On Thursday, March 27, 2003, at 02:37  AM, Filip Hanik wrote:
>
> > that is what request.setAttribute is there for.
> >
> > you can also look at JSP forward, that allows you to set
> parameters,
> > not sure how this translates to a servlet
> >
> > http://java.sun.com/products/jsp/syntax/1.1/syntaxref1110.html
> >
> >
> > filip
> >
> >> -Original Message-
> >> From: Mufaddal Khumri [mailto:[EMAIL PROTECTED]
> >> Sent: Wednesday, March 26, 2003 12:33 AM
> >> To: Tomcat List
> >> Subject: request parameter question ...
> >>
> >>
> >> Hi ,
> >>
> >> In my servlet I have the following code:
> >>
> >> String str = request.getParameter("name");
> >>
> >> if(str.equals("xyz") == true)
> >> {
> >>str = "ChangedName";
> >>request.setParameter("name", str);   //
> >> <- how
> >> do i do this ??? There is no method as request.setParameter()
> >> }
> >>
> >> try
> >> {
> >>String path = "/SomeJSP.jsp"
> >>
> >> getServletConfig().getServletContext().getRequestDispatcher(pa
> >> th).forwar
> >> d(request, response);
> >> }
> >> catch(Exception ex)
> >> {
> >>ex.printStackTrace();
> >> }
> >>
> >> one way to do it would be to append the parameter and its
> >> changed value
> >> to the path:
> >> String path = "/SomeJSP.jsp?name=str";
> >>
> >> But is there some method like setParameter to do what I
> want to do ?
> >>
> >> Thanks.
> >>
> >>
> >>
> -
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail:
> [EMAIL PROTECTED]
> >>
> >>
> >
> >
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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


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



RE: What's the defaukt Admin user id/password

2004-11-30 Thread Ron Day
sorry, but some people are too important to send helpful replies.

There is no default id/password for either the manager or admin apps.
You set up your own in the conf/tomcat-users.xml:

for tomcat/tomcat as id/password use:

  
  
  

Don't forget the college fund. PYOFW

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 30, 2004 3:07 PM
To: Tomcat Users List; [EMAIL PROTECTED]
Subject: RE: What's the defaukt Admin user id/password



Hi,
RTFM:
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/manager-howto.html#Confi
guring%20Manager%20Application%20Access.

Yoav Shapira http://www.yoavshapira.com


>-Original Message-
>From: Venkat & Radha Venkataramanan
[mailto:[EMAIL PROTECTED]
>Sent: Tuesday, November 30, 2004 3:58 PM
>To: 'Tomcat Users List'
>Subject: What's the defaukt Admin user id/password
>
>Hello:
>
>Can somebody tell me what the default admin user id/password is?
Thanks.
>
>
>VENKAT & RADHA VENKATARAMANANPhone:
>1-201-358-0001
>324 St. Mary Street
>Hillsdale, NJ 07642
>[EMAIL PROTECTED]
>
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




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


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





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