What is correct for workers.properties.minimal

2005-09-27 Thread David Thielen
Hi;

 

I'm running Tomcat 5.5 on Windows 2003/IIS 6.0 using isapi_redirect

 

The isapi_redirect.exe installer creates a worker.properties.minimal of:

  worker.list=wlb,jkstatus

  worker.ajp13w.type=ajp13

  worker.ajp13w.host=localhost

  worker.ajp13w.port=8009

  worker.wlb.type=lb

  worker.wlb.balance_workers=ajp13w

  worker.jkstatus.type=status

 

While the docs show one of:

  worker.list=ajp13w

  worker.ajp13w.type=ajp13

  worker.ajp13w.host=localhost

  worker.ajp13w.port=8009

 

First, what use is the load balancing if I have just one server running one
instance of Tomcat? Does it load balance within that one instance?

 

Second, what is jkstatus for?

 

Thanks - dave

 

 

David Thielen

303-499-2544

www.windwardreports.com

 



Please verify this is correct: Need multiple virtual directories for isapi_redirector

2005-09-27 Thread David Thielen
Note: I looked and looked and couldn't find this documented.

Hi;

I want to make sure this is correct:

If you want to run Tomcat against multiple websites, not just the default
website, this is what I have had to do.

This is on Windows 2003/IIS 6.0.

I removed isapi_redirector.dll from the default web site ISAPI Filters and
put it in the parent "Web Sites" ISAPI Filter properties.

I added a jakarta virtual directory for each website (and I have a lot.).

Now it appears to work.

??? - thanks - dave



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



isapi_redirect expert?

2005-09-27 Thread David Thielen
Hi;

 

I understand it is a big no-no to ask user questions on this list. But I
have three questions about isapi_redirect that no one on the user list seems
to know the answer to.

 

If I can post them here and I get an answer, I would be happy to write up
the solution for posting on the tomcat site as I know others are hitting
these same questions.

 

??? - Thanks - dave

 

David Thielen

303-499-2544

www.windwardreports.com

 



Re: JSP won't work unless have package in taglib .java file

2003-04-04 Thread David Thielen
> Hi;
>
> If I have a tld object (ie TemplateDesc.java) with no project and place it
> in WEB-INF/classes - it won't work. But if I give it a package name and
> place it in WEB-INF/classes/package - then it works.
>
> The problem seems to be that with no package it generates the code:
> TemplateDesc _jspx_th_tl_TP_0 = (TemplateDesc)
> _jspx_tagPool_tl_TP.get(com.windwardreports.TemplateDesc.class);
>
> but with the package it generates:
> com.windwardreports.TemplateDesc _jspx_th_tl_TP_0 =
> (com.windwardreports.TemplateDesc)
> _jspx_tagPool_tl_TP.get(com.windwardreports.TemplateDesc.class);
>
> which makes sense. But why can it find it as part of a package but not
with
> no package?
>
> thanks - dave


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



JSP won't work unless have package in taglib .java file

2003-04-02 Thread David Thielen
Hi;

If I have a tld object (ie TemplateDesc.java) with no project and place it
in WEB-INF/classes - it won't work. But if I give it a package name and
place it in WEB-INF/classes/package - then it works.

The problem seems to be that with no package it generates the code:
TemplateDesc _jspx_th_tl_TP_0 = (TemplateDesc)
_jspx_tagPool_tl_TP.get(com.windwardreports.TemplateDesc.class);

but with the package it generates:
com.windwardreports.TemplateDesc _jspx_th_tl_TP_0 =
(com.windwardreports.TemplateDesc)
_jspx_tagPool_tl_TP.get(com.windwardreports.TemplateDesc.class);

which makes sense. But why can it find it as part of a package but not with
no package?

thanks - dave


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



Why does Tomcat use xerces under java 1.4 instead of the internal jvm classes?

2003-04-02 Thread David Thielen


thanks - dave

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



Why does Tomcat use xerces under java 1.4 instead of the internal jvm classes?

2003-04-01 Thread David Thielen


thanks - dave

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



Re: HttpSessionBindingListener.valueUnbound() not called

2003-03-30 Thread David Thielen
That makes a lot of sense - thank you.

- dave


- Original Message -
From: "Hans Bergsten" <[EMAIL PROTECTED]>
To: "Tomcat Developers List" <[EMAIL PROTECTED]>
Sent: Sunday, March 30, 2003 5:54 PM
Subject: Re: HttpSessionBindingListener.valueUnbound() not called


> David Thielen wrote:
> > One note to the below:
> >
> > It does call it on a timeout under 4.1.24 (it did not do that in
4.1.18).
> > But it does not call it if Tomcat is reloaded or exits - which according
to
> > the spec it is supposed to do.
>
> Two things:
> 1) When you stop Tomcat, it saves all session data to disk; it does not
> terminate the sessions at this time, so don't expect a valueUnbound()
> call immediately at stop. When Tomcat is restarted, it loads all
> session data again and eventually calls valueUnbound() when it finds
> that the session has timed out. Also note that it only checks for
> timeouts every 1 second, so that's the shortest time-out value that
> is honored.
> 2) In order to save and reload the session data, all objects in the
> session must be serializable, e.g. implement java.io.Serializable.
> Your FileList class doesn't, so it can be saved and reloaded, hence
> the valueUnbound() method is never called after a restart.
>
> Arguably, there's still a bug here. There's a comment in the Standard-
> Session class for the method that saves the session data that any object
> that is not serializable "will be unbound from the session, with
> appropriate actions if it implements HttpSessionBindingListener," which
> I assume mean valueUnbound() will be called. I don't see any signs of
> this being done, however. You may want to file a bug report about this.
>
> For a class that implements Serializable, however, everything seems to
> work as it should in 4.1.24.
>
> Hans
>
> > - Original Message -
> > From: "David Thielen" <[EMAIL PROTECTED]>
> > To: ""Hans Bergsten"" <[EMAIL PROTECTED]>
> > Cc: "Tomcat - dev" <[EMAIL PROTECTED]>
> > Sent: Sunday, March 30, 2003 1:04 PM
> > Subject: Re: HttpSessionBindingListener.valueUnbound() not called
> >
> >
> > Nope - with 4.1.24 I still get called for valueBound() but not
> > valueUnbound().
> >
> > Any other ideas?
> >
> >
> > code:
> >
> > public class FileList implements HttpSessionBindingListener {
> > public void valueBound(HttpSessionBindingEvent event) {
> > event.getSession().getServletContext().log( "bind" );
> > }
> >
> > public void valueUnbound(HttpSessionBindingEvent event) {
> >     // never logged
> > event.getSession().getServletContext().log( "unbind" );
> > }
> > }
> >
> >
> >
> >
> >
> > - Original Message -
> > From: "Hans Bergsten" <[EMAIL PROTECTED]>
> > To: "Tomcat Developers List" <[EMAIL PROTECTED]>
> > Sent: Saturday, March 29, 2003 2:19 PM
> > Subject: Re: HttpSessionBindingListener.valueUnbound() not called
> >
> >
> >
> >>David Thielen wrote:
> >>
> >>>Hi;
> >>>
> >>>I have an object that implements HttpSessionBindingListener. It calls
> >>>valueBound fine. But it never calls valueUnbound. Not when it times out
> >>
> > and
> >
> >>>not when Tomcat is closed. I am running 4.1.18.
> >>>
> >>>Any ideas?
> >>
> >>It works fine in TC 4.1.24, so you may want to upgrade.
> >>
> >>Hans
> >>--
> >>Hans Bergsten<[EMAIL PROTECTED]>
> >>Gefion Software   <http://www.gefionsoftware.com/>
> >>Author of O'Reilly's "JavaServer Pages", covering JSP 1.2 and JSTL 1.0
> >>Details at<http://TheJSPBook.com/>
> >>
> >>
> >>-
> >>To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
>
> --
> Hans Bergsten<[EMAIL PROTECTED]>
> Gefion Software   <http://www.gefionsoftware.com/>
> Author of O'Reilly's "JavaServer Pages", covering JSP 1.2 and JSTL 1.0
> Details at<http://TheJSPBook.com/>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


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



Re: HttpSessionBindingListener.valueUnbound() not called

2003-03-30 Thread David Thielen
One note to the below:

It does call it on a timeout under 4.1.24 (it did not do that in 4.1.18).
But it does not call it if Tomcat is reloaded or exits - which according to
the spec it is supposed to do.

thanks - dave


- Original Message -
From: "David Thielen" <[EMAIL PROTECTED]>
To: ""Hans Bergsten"" <[EMAIL PROTECTED]>
Cc: "Tomcat - dev" <[EMAIL PROTECTED]>
Sent: Sunday, March 30, 2003 1:04 PM
Subject: Re: HttpSessionBindingListener.valueUnbound() not called


Nope - with 4.1.24 I still get called for valueBound() but not
valueUnbound().

Any other ideas?


code:

public class FileList implements HttpSessionBindingListener {
public void valueBound(HttpSessionBindingEvent event) {
event.getSession().getServletContext().log( "bind" );
}

public void valueUnbound(HttpSessionBindingEvent event) {
// never logged
event.getSession().getServletContext().log( "unbind" );
}
}





- Original Message -
From: "Hans Bergsten" <[EMAIL PROTECTED]>
To: "Tomcat Developers List" <[EMAIL PROTECTED]>
Sent: Saturday, March 29, 2003 2:19 PM
Subject: Re: HttpSessionBindingListener.valueUnbound() not called


> David Thielen wrote:
> > Hi;
> >
> > I have an object that implements HttpSessionBindingListener. It calls
> > valueBound fine. But it never calls valueUnbound. Not when it times out
and
> > not when Tomcat is closed. I am running 4.1.18.
> >
> > Any ideas?
>
> It works fine in TC 4.1.24, so you may want to upgrade.
>
> Hans
> --
> Hans Bergsten<[EMAIL PROTECTED]>
> Gefion Software   <http://www.gefionsoftware.com/>
> Author of O'Reilly's "JavaServer Pages", covering JSP 1.2 and JSTL 1.0
> Details at<http://TheJSPBook.com/>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


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



Re: HttpSessionBindingListener.valueUnbound() not called

2003-03-30 Thread David Thielen
Nope - with 4.1.24 I still get called for valueBound() but not valueUnbound().

Any other ideas?


code:

public class FileList implements HttpSessionBindingListener {
public void valueBound(HttpSessionBindingEvent event) {
event.getSession().getServletContext().log( "bind" );
}
 
public void valueUnbound(HttpSessionBindingEvent event) {
// never logged
event.getSession().getServletContext().log( "unbind" );
}
}





- Original Message - 
From: "Hans Bergsten" <[EMAIL PROTECTED]>
To: "Tomcat Developers List" <[EMAIL PROTECTED]>
Sent: Saturday, March 29, 2003 2:19 PM
Subject: Re: HttpSessionBindingListener.valueUnbound() not called


> David Thielen wrote:
> > Hi;
> > 
> > I have an object that implements HttpSessionBindingListener. It calls
> > valueBound fine. But it never calls valueUnbound. Not when it times out and
> > not when Tomcat is closed. I am running 4.1.18.
> > 
> > Any ideas?
> 
> It works fine in TC 4.1.24, so you may want to upgrade.
> 
> Hans
> -- 
> Hans Bergsten<[EMAIL PROTECTED]>
> Gefion Software   <http://www.gefionsoftware.com/>
> Author of O'Reilly's "JavaServer Pages", covering JSP 1.2 and JSTL 1.0
> Details at<http://TheJSPBook.com/>
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

HttpSessionBindingListener.valueUnbound() not called

2003-03-29 Thread David Thielen
Hi;

I have an object that implements HttpSessionBindingListener. It calls
valueBound fine. But it never calls valueUnbound. Not when it times out and
not when Tomcat is closed. I am running 4.1.18.

Any ideas?

thanks - dave


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



HttpSessionBindingListener.valueUnbound() not called

2003-03-28 Thread David Thielen
Hi;

I have an object that implements HttpSessionBindingListener. It calls
valueBound fine. But it never calls valueUnbound. Not when it times out and
not when Tomcat is closed. I am running 4.1.18.

Any ideas?

thanks - dave


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