How to route requests by URL

2002-04-12 Thread Rick Snide

I know how to setup an application such as www.mywebsite.com/myapp so that Tomcat 
knows what to do with URLs that have the "/myapp" appended - to setup security, etc. 


Are we also able to have something like myapp.mywebsite.com such that Tomcat knows 
what to do with it?  I would like to do this and route it to webapps/myapp


Thanks in advance. 




How to route requests by URL

2002-04-10 Thread Rick Snide

I know how to setup an application such as www.mywebsite.com/myapp so that Tomcat 
knows what to do with URLs that have the "/myapp" appended - to setup security, etc. 
 
Are we also able to have something like myapp.mywebsite.com such that Tomcat knows 
what to do with it?  I would like to do this and route it to webapps/myapp
 
Thanks in advance.



Session Tracking / User Authentication

2002-04-10 Thread Rick Roberts

Can anyone point me to a good reference for handling session tracking 
and user authentication?

All I'm trying to do is authenticate a user (form based) and redirect 
them to the login page if their session times out.

It should be pretty simple, but I'm having trouble with it and I can't 
find any good reference material on the subject.

I have "JSP Professional" (1st Ed.) but the example does not work with 
Tomcat.

Any help appreciated.

Thanks,

Rick


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




Session Management without Cookies

2002-04-09 Thread Rick Roberts

Can someone point me to a good example of how to do Session Management 
using JSP but without using Cookies?

Thanks,

Rick


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




Re: Session already invalidated

2002-04-09 Thread Rick Roberts

Maybe Im asking the wrong question.

Does anyone have a code snipet that demonstrates how to do Session 
management without using cookies?

The example I found in the book "Professional JSP" is not working for me.

Thanks in advance.


Rick Roberts


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




Re: Session already invalidated

2002-04-09 Thread Rick Roberts

This seems reasonable to me.  In fact someone had suggested this in the 
archives some months ago to someone elses query about this same issue.

But when I do this.  The exception is still passed to my error page.

Do you know of anyway to prevent that?

Thanks for the help.

Rick



Jeff Larsen wrote:

> Part of the problem may be that you're grabbing a session object
> that you have stored in your own data structure. Tomcat doesn't
> know anything about your monitor HashMap and is not going to update
> it when it invalidates a timed-out session.  
> 
> Why don't you do this:
> 
>   try {
> oldSession.invalidate();
>   } catch (IllegalStateException ise) {
> // do nothing, if it's already invalidated, we're happy
>   }
> 
> Jeff
> 
> 



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




Re: Session already invalidated

2002-04-09 Thread Rick Roberts

I'm not sure what you are trying to tell me.

If you are wondering if the monitor bean works, the answer is yes it does.

If I do what you suggest:

// Got user.  Do they already have a session?
if ( !monitor.containsKey(user) ){
   // There's _NOT_ an old session for this user - invalidate it
   HttpSession oldSession = (HttpSession)monitor.get(user);
   oldSession.invalidate();
}

Then, I get:
java.lang.NullPointerException
  at checkLogin_1._jspService(checkLogin_1.java:135)

at "oldSession.invalidate()"

It seems that when tomcat tries to invalidate() a session.  I get an 
error that says the session is already invalidated.  But, I know the 
session is not already invalidated.

Is this a tomcat bug?


Thanks,

Rick


Dominic Parry wrote:

>>if( monitor.containsKey(user)){
>>
> 
> Check what if this returns true of false for "has a session". Try 
> 
> if !(monitor.containsKey(user)){
> 
> see if the case where the user has no session now works.
> 
> Hope this helps.
> 
> 



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




Session already invalidated

2002-04-09 Thread Rick Roberts

I have the book "Professional JSP" (1st Edition).
Chapter 5 has some session management code that does not work.
I have searched the different newsgroups and tomcat archives, and have 
found where others have asked this question but I can't find where 
anyone has answered it.

The problem is that whenever "oldSession.invalidate()" is called; I get 
the following error message:

java.lang.IllegalStateException: getAttributeNames: Session already 
invalidated

I am using Tomcat 3.3, JDK 1.3.1_01 and Apache on RedHat Linux 7.2.

Here is the problem code:

---

<%@ page language="java" import="java.util.*" errorPage="error1.jsp"%>


   




<%
  String username = request.getParameter( "username" );
  String password = request.getParameter( "password" );
  loginBean.setUserName( username );
  loginBean.setPassword( password );

  String display = "index.html";
  User user = loginBean.authenticate();
  if( user != null ){
user.setIPAddr(request.getRemoteHost());
// Got user.  Do they already have a session?
if( monitor.containsKey(user)){
  // There's an old session for this user - invalidate it
  HttpSession oldSession = (HttpSession)monitor.get(user);
  String sID1 = oldSession.getId();
  System.out.println("Existing Session detected: " + sID1);
  oldSession.invalidate();
}

session.setAttribute("user", user);
monitor.put(user, session);
String sID = session.getId();
System.out.println("Session Created: " + sID);

session.setMaxInactiveInterval(300);

display="browse.jsp";
  }
%>





Any help greatly appreciated.

Thanks,

Rick Roberts


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




RE: Problems using own XML parser

2002-03-12 Thread Rick K

Maybe you covered this before, but:
Why doesn't Xerces meet your needs?

I'm not much of an XML expert, I'm just curious.


--- John Wadkin <[EMAIL PROTECTED]> wrote:
> Charlie,
> 
> It seems from:
> 
>
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6374
> 
>
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6628
> 
> That webApps *can't* have their own parser. Stuck
> with Xerces 1, then! Taken
> a week to find that out :)
> 
> Thanks,
>  
> John
>  
> Quote for the week:
>  
> The stupid neither forgive nor forget; the naive
> forgive and forget; the
> wise forgive but do not forget.
>  
> Thomas Szasz, The Second Sin (1973)
> 
> 
> -Original Message-
> From: Cox, Charlie [mailto:[EMAIL PROTECTED]]
> Sent: 12 March 2002 16:27
> To: 'Tomcat Users List'
> Subject: RE: Problems using own XML parser
> 
> 
> see the archives or bugzilla as this was addressed
> in 4.0.3 or 4.0.4b1(I
> don't remember which one)
> 
> Charlie
> 
> > -Original Message-
> > From: John Wadkin [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, March 12, 2002 10:59 AM
> > To: 'Tomcat Users List'
> > Subject: RE: Problems using own XML parser
> > 
> > 
> > I'm not privy to the workings of the servlet.
> There's a 
> > properties file I
> > edit to indicate the name of the SAX driver:
> > 
> > #Xerces
> >
> sax.driver.name=org.apache.xerces.parsers.SAXParser
> > 
> > OR
> > 
> > #Aelfred
> > sax.driver.name=com.microstar.xml.SAXDriver  
> > 
> > Xerces works fine, but Aelfred doesn't. The driver
> names are 
> > correct and as
> > I said, TomCat does load aelfred.jar
> > 
> > Yes - I too would like to know if it's possible to
> use another parser!
> > 
> > Thanks,
> >  
> > John
> >  
> > Quote for the week:
> >  
> > The stupid neither forgive nor forget; the naive
> forgive and 
> > forget; the
> > wise forgive but do not forget.
> >  
> > Thomas Szasz, The Second Sin (1973)
> > 
> > 
> > -Original Message-
> > From: Evguenia Krylova
> [mailto:[EMAIL PROTECTED]]
> > Sent: 12 March 2002 15:52
> > To: Tomcat Users List
> > Subject: RE: Problems using own XML parser
> > 
> > 
> > Isn't it that udner Tomcat 4x you can specify
> class path for a 
> > context in server.xml. I saw something like this
> in the 
> > comments portion of server.xml. I have not tried
> this, but would 
> > like to know if you found a way to use another
> parser with Tomcat.
> > 
> > I assume you don't use JAXP API's but call
> alphred's classes 
> > directly. 
> > 
> > Ev
> > 
> > -Original Message-
> > From: John Wadkin [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, March 12, 2002 9:31 AM
> > To: Tomcat Users List (E-mail)
> > Subject: RE: Problems using own XML parser
> > 
> > 
> > All,
> > 
> > I'd appreciate a response on this otherwise I'll
> just have to 
> > assume that
> > TomCat allows only xerces.jar as a parser.
> > The "jsp errors" I mention relate to the default
> servlet for 
> > jsp. I tried
> > commenting out (in conf/web.xml) all references to
> this 
> > servlet - it just
> > created more errors!
> > The docs give the impression that it's a "simple"
> case of 
> > moving xerces.jar
> > and putting your own parser in /WEB-INF/lib, but
> this just 
> > doesn't work.
> > 
> > Thanks,
> >  
> > John
> >  
> > 
> > -Original Message-
> > From: John Wadkin 
> > Sent: 09 March 2002 03:04
> > To: Tomcat Users List (E-mail)
> > Subject: Problems using own XML parser
> > 
> > 
> > All,
> > 
> > Tomcat 4.0.1
> > Apache 1.3
> > mod_WebApp
> > Solaris 8
> > 
> > I'm trying to use the aelfred parser in a servlet.
> I've read 
> > the docs on
> > class loaders and XML but no luck so far.
> > 
> > I moved xerces.jar from common/lib to server/lib
> and 
> > re-started TomCat. A
> > couple of errors appeared in catalina.out relating
> to the 
> > default servlet
> > for jsp's. So I put xerces.jar back in common/lib.
> > I put the aelfred.jar in my web app's WEB-INF/lib
> directory 
> > and re-started
> > TomCat. I expected errors relating to the fact
> that two XML 
> > parsers existed
> > - there weren't any. The logs show that
> aelfred.jar has loaded but the
> > servlet throws a ClassNotFoundException.
> > 
> > Any ideas? The servlet does work with Aelfred at
> another site 
> > and it works
> > fine with the xerces parser in common/lib.
> > 
> > The reason I'm trying to use Aelfred is that I'm
> told it's faster than
> > Xerces. Is this a fair comment?
> > 
> > Thanks,
> > 
> > John
> 
> --
> To unsubscribe:  
> 
> For additional commands:
> 
> Troubles with the list:
> 
> 


__
Do You Yahoo!?
Try FREE Yahoo! Mail - the world's greatest free email!
http://mail.yahoo.com/

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




RE: XSL problem with upgrade to 4.0.3

2002-03-06 Thread Mangi, Rick

Moving those jars fixed it. Thanks a bunch!

-Original Message-
From: Remy Maucherat [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 05, 2002 7:50 PM
To: Tomcat Users List
Subject: Re: XSL problem with upgrade to 4.0.3


> Sorry, hit send my mistake.
>
> Here's the exception:
>
> - Root Cause -
> javax.servlet.jsp.JspTagException: InsertTag Exception:
> javax.servlet.ServletException: javax/xml/transform/Source
> at com.zcm.common.taglib.InsertTag.doEndTag(Unknown Source)

4.0.3 is identical to 4.0.2 for this, so both have the same bug, which is
described here:
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6374

4.0.4 beta 1 fixes the bug.
A workaround could be moving Xalan and the javax.xml.transform classes to
common/lib.

Remy



This email and any attachments are confidential and may be 
legally privileged. No confidentiality or privilege is waived 
or lost by any transmission in error.  If you are not the 
intended recipient you are hereby notified that any use, 
printing, copying or disclosure is strictly prohibited.  
Please delete this email and any attachments, without 
printing, copying, forwarding or saving them and notify the 
sender immediately by reply e-mail.  Zurich Capital Markets 
and its affiliates reserve the right to monitor all e-mail 
communications through its networks.  Unless otherwise 
stated, any pricing information in this e-mail is indicative 
only, is subject to change and does not constitute an offer 
to enter into any transaction at such price and any terms in 
relation to any proposed transaction are indicative only and 
subject to express final confirmation.

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




RE: XSL problem with upgrade to 4.0.3

2002-03-05 Thread Mangi, Rick

Sorry, hit send my mistake.

Here's the exception:

- Root Cause -
javax.servlet.jsp.JspTagException: InsertTag Exception:
javax.servlet.ServletException: javax/xml/transform/Source
at com.zcm.common.taglib.InsertTag.doEndTag(Unknown Source)
at
org.apache.jsp.TopicsTempl$jsp._jspService(TopicsTempl$jsp.java:172)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:202)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.
java:683)
at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatch
er.java:431)
at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher
.java:355)
at com.zcm.common.control.MainServlet.performTask(Unknown Source)
at com.zcm.common.control.MainServlet.doGet(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
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.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:2343)
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.valves.AccessLogValve.invoke(AccessLogValve.java:468)
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)
at
org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:429)
at
org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:495)
at java.lang.Thread.run(Thread.java:484)

>  -Original Message-
> From: Mangi, Rick  
> Sent: Tuesday, March 05, 2002 6:39 PM
> To:   [EMAIL PROTECTED]
> Subject:  XSL problem with upgrade to 4.0.3
> 
> I recently upgraded from 4.0 to 4.0.3 to try to fix a problem I was having
> with LDAP. Good news, the LDAP stuff works better with 4.03. Bad news, my
> XSL stuff stopped working. 
> 
> I tried moving the xalan libs out of common/lib and into the server lib
> (and btw: whoever wrote the docs on that you should be more clear about
> where the jasper lib stuff goes). That didn't work.
> 
> I keep getting these errors :
> 
> 
> 
> 
This email and any attachments are confidential and may be 
legally privileged. No confidentiality or privilege is waived 
or lost by any transmission in error.  If you are not the 
intended recipient you are hereby notified that any use, 
printing, copying or disclosure is strictly prohibited.  
Please delete this email and any attachments, without 
printing, copying, forwarding or saving them and notify the 
sender immediately by re

XSL problem with upgrade to 4.0.3

2002-03-05 Thread Mangi, Rick

I recently upgraded from 4.0 to 4.0.3 to try to fix a problem I was having
with LDAP. Good news, the LDAP stuff works better with 4.03. Bad news, my
XSL stuff stopped working. 

I tried moving the xalan libs out of common/lib and into the server lib (and
btw: whoever wrote the docs on that you should be more clear about where the
jasper lib stuff goes). That didn't work.

I keep getting these errors :




This email and any attachments are confidential and may be 
legally privileged. No confidentiality or privilege is waived 
or lost by any transmission in error.  If you are not the 
intended recipient you are hereby notified that any use, 
printing, copying or disclosure is strictly prohibited.  
Please delete this email and any attachments, without 
printing, copying, forwarding or saving them and notify the 
sender immediately by reply e-mail.  Zurich Capital Markets 
and its affiliates reserve the right to monitor all e-mail 
communications through its networks.  Unless otherwise 
stated, any pricing information in this e-mail is indicative 
only, is subject to change and does not constitute an offer 
to enter into any transaction at such price and any terms in 
relation to any proposed transaction are indicative only and 
subject to express final confirmation.

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




Re: StaticInterceptor replacement in 4.0.x

2002-03-05 Thread Rick Szeto

Thank you for your help Craig, it is greatly appreciated.

Rick

>>> [EMAIL PROTECTED] 03/05/02 01:34PM >>>


On Tue, 5 Mar 2002, Rick Szeto wrote:

> Date: Tue, 05 Mar 2002 13:10:21 -0500
> From: Rick Szeto <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED] 
> Subject: StaticInterceptor replacement in 4.0.x
>
> Hi all,
> I need to find a way to disable directory listing in tomcat 4.0.x.
> This previously was accomplished StaticInterceptor, but I have not found
> an equivalent Valve in 4.0.x. Any help would be greatly appreciated.
>
> P.S. And no, putting index.html in every directory is not a feasible nor
> a satisfactory solution.
>

Directory listings in Tomcat 4 are created by the "default" file-serving
servlet that also serves static content.  This servlet is configured in
the "$CATALINA_HOME/conf/web.xml" file that defines servlet-based services
for all web applications - in particular, see the "listings" init
parameter.

> Rick
>

Craig


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



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




StaticInterceptor replacement in 4.0.x

2002-03-05 Thread Rick Szeto

Hi all, 
I need to find a way to disable directory listing in tomcat 4.0.x. This previously 
was accomplished StaticInterceptor, but I have not found an equivalent Valve in 4.0.x.
Any help would be greatly appreciated.

P.S. And no, putting index.html in every directory is not a feasible nor a 
satisfactory solution.

Rick 


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




RE: J2EE, JSP, SERVLETS

2002-02-25 Thread Rick K


--- Keith Ng <[EMAIL PROTECTED]> wrote:
> nono
> dun get me wrong
> im currently doing a J2EE project based on
> servlets/jsp/javamail/jdbc/possibly EJB(low
> possibility)
> there are 2 things i need to do.
> 
> 1)i need to noe if i ve been missing out on some of
> the capabilities, which
> i did not implement
> 2) i need to write in my report the major advantages
> my web application has
> over the others. I noe jsp/servlets are the best
> around but i cant quite
> explain.
> 
> However, some kind souls have emailed me and
> explained to me and help clear
> some of my doubts.

Please share your conclusions.

To throw in my two cents regarding servlets over other
technologies:

ASP: It's from Microsoft, and a lot of people don't
trust Microsoft. Plus their solutions are easy to
initially implement but difficult to maintain and
extend. Plus it's ONLY from Microsoft. So if you like
ASP but don't like how MS treats you or how much they
charge, you have nowhere to go.

PHP: I haven't done much with PHP, but I think a
couple of disadvantages compared to servlets/JSP are:
1.I don't think PHP can handle threads. 2. Unlike
Java, PHP really can't be used in non-web apps.

ColdFusion: Don't know much about it. But again I
believe there is only one vendor.




__
Do You Yahoo!?
Yahoo! Sports - Coverage of the 2002 Olympic Games
http://sports.yahoo.com

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




Re: J2EE, JSP, SERVLETS

2002-02-25 Thread Rick K

--- Keith Ng <[EMAIL PROTECTED]> wrote:
> Hi guys
> 
> There has been a question thats bugging me for qute
> some time. I noticed
> many bank sites, or big companies use JSP/SERVLETS
> for their websites. Is
> there a particular reason why jsp/servlets are
> preferred over
> asp/php/coldfusion? I even realise a site
> (dbs.com.sg)using applet textfield
> as their forms ... isit supposed to be more secure
> this way? Can someone
> clear my doubts? thanks

Why does it bug you that big companies use servlets
and JSP? Why do you have doubts about Java? 



__
Do You Yahoo!?
Yahoo! Sports - Coverage of the 2002 Olympic Games
http://sports.yahoo.com

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




Periodically Refresh Application Bean?

2002-01-12 Thread Rick Roberts

I have an application that has a bean with application scope.
I would like to run a cron job once a day to refresh the data in this 
bean.  It would be nice if I did not have to restart Tomcat everytime. 
Anyone know how I could do this?

Thanks,

-- 
***
* Rick Roberts*
* Advanced Information Technologies, Inc. *
***


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




Re: DecodeInterceptor: Charset from session ISO-8859-1

2002-01-11 Thread Rick Roberts

Thanks.  You are correct.

In server.xml, I changed:



To the following:



I no longer get that message.

Rick


Larry Isaacs wrote:

> It's a nuisance message.  You can set the debug level
> on DecodeInterceptor to "-1" to turn it off.
> 
> You can also try the Tomcat 3.3.1 Dev nightly from:
> 
> http://jakarta.apache.org/builds/jakarta-tomcat/nightly-3.3/
> 
> which was updated to not output this message by default.
> 
> Cheers,
> Larry



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




DecodeInterceptor: Charset from session ISO-8859-1

2002-01-11 Thread Rick Roberts

What does this message mean?

   DecodeInterceptor: Charset from session ISO-8859-1

Tomcat generates this message every time I refresh a JSP page.
Is it something that I should be concerned about?
Or, is it a nuisance message?  If so, can I disable it?

Thanks,

-- 
***
* Rick Roberts*
* Advanced Information Technologies, Inc. *
***


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




Re: Vectors? Why does this not work?

2002-01-10 Thread Rick Roberts

 >>First, you should take this question to another forum since this one 
is about the Tomcat >>Servlet Container.

I'm actually building a bean for a Tomcat JSP app that I am working on. 
 I presented the code this way to simplify my description of the problem.

 >>Second, you probably need to do some basic Java learning since this.

I feel like an idiot.

 >>Third, you are using static variables to hold your names.

That is it
I looked at this for hours and never noticed "static".

Basically:

1. I'm an idiot.
2. And you quickly pointed that out.
3. I'm grateful.

Thanks,
Rick



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




Vectors? Why does this not work?

2002-01-10 Thread Rick Roberts

Why does this simple example not work?
I am using Tomcat 3.3 and JDK 1.3.1_01 and Redhat Linux 7.2

Thanks,

==

// SimpleClass.java
// A Simple Class
public class SimpleClass extends Object{
private static String last_name;
private static String first_name;
private static String middle_name;

// Constructor
public SimpleClass() {
this.last_name = null;
this.first_name = null;
this.middle_name = null;
}

public void setLastName( String val ) {
this.last_name = val;
}

public String getLastName( ) {
return this.last_name;
}

public void setFirstName( String val ) {
this.first_name = val;
}

public String getFirstName( ) {
return this.first_name;
}

public void setMiddleName( String val ) {
this.middle_name = val;
}

public String getMiddleName( ) {
return this.middle_name;
}

public String getFullName( ) {
return this.last_name + (this.first_name == null ? "" : ", " + 
this.first_name) + (this.middle_name == null ? "" : " " + this.middle_name);
}

}// class SimpleClass



// VectorTest.java
// A Simple Vector Test
import java.util.*;

import SimpleClass;

class VectorTest{

public static void main( String args[] ){
Vector v = new Vector();

String firstNames[] = {
"George",
"John",
"Thomas",
"James",
"James",
"John",
"Andrew",
"Martin",
"William",
"John",
"James",
"Zachary",
"Millard",
"Franklin",
"James"
};

String lastNames[] = {
"Washington",
"Adams",
"Jefferson",
"Madison",
"Monroe",
"Adams",
"Jackson",
"Buren",
"Harrison",
"Tyler",
"Polk",
"Taylor",
"Filmore",
"Pierce",
"Buchanan"
};

System.out.println( "\nPut class in Vector." );
for( int i=0; i<15; i++ ){
SimpleClass inClass = new SimpleClass();
inClass.setFirstName( firstNames[i] );
inClass.setLastName( lastNames[i] );
System.out.println( i + ": " + inClass.getFullName() );
v.addElement( inClass );
}

System.out.println( "\n\nRetrieve class from Vector." );
for( int i=0; i<15; i++ ){
SimpleClass outClass = (SimpleClass)v.elementAt( i );
System.out.println( i + ": " + outClass.getFullName() );
}

} //main()

}//class VectorTest
=

Here is my output:

[projects]# java VectorTest

Put class in Vector.
0: Washington, George
1: Adams, John
2: Jefferson, Thomas
3: Madison, James
4: Monroe, James
5: Adams, John
6: Jackson, Andrew
7: Buren, Martin
8: Harrison, William
9: Tyler, John
10: Polk, James
11: Taylor, Zachary
12: Filmore, Millard
13: Pierce, Franklin
14: Buchanan, James


Retrieve class from Vector.
0: Buchanan, James
1: Buchanan, James
2: Buchanan, James
3: Buchanan, James
4: Buchanan, James
5: Buchanan, James
6: Buchanan, James
7: Buchanan, James
8: Buchanan, James
9: Buchanan, James
10: Buchanan, James
11: Buchanan, James
12: Buchanan, James
13: Buchanan, James
14: Buchanan, James

-- 
***
* Rick Roberts*
* Advanced Information Technologies, Inc. *
***



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




Valid tags in web.xml

2002-01-04 Thread Morris, Rick

Is there a reference telling what tags are allowed in the web.xml file and
what they mean?

Thanks

Rick Morris
Brightpoint North America
Voice: 317-707-2312
Fax: 317-707-2161



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




Problem building tomcat 4

2002-01-02 Thread Rick Bosch

I have all the associated downloads but when I compile i get a bunch of
these

[javac] Compiling 4 source files to
/Users/jakarta-tomcat-4.0.1-src/catalina/build/server/classes
[javac] Compiling 280 source files to
/Users/jakarta-tomcat-4.0.1-src/catalina/build/server/classes
[javac] 
/Users/jakarta-tomcat-4.0.1-src/catalina/src/share/org/apache/catalina/loade
r/StandardLoader.java:87: cannot resolve symbol
[javac] symbol  : class DirContextURLStreamHandlerFactory
[javac] location: package resources
[javac] import 
org.apache.naming.resources.DirContextURLStreamHandlerFactory;
[javac]^
[javac] 
/Users/jakarta-tomcat-4.0.1-src/catalina/src/share/org/apache/catalina/loade
r/WebappLoader.java:89: cannot resolve symbol
[javac] symbol  : class DirContextURLStreamHandlerFactory
[javac] location: package resources
[javac] import 
org.apache.naming.resources.DirContextURLStreamHandlerFactory;
[javac]^
[javac] 
/Users/jakarta-tomcat-4.0.1-src/catalina/src/share/org/apache/naming/resourc
es/FileDirContext.java:95: cannot resolve symbol
[javac] symbol  : class NamingContextBindingsEnumeration
[javac] location: package naming
[javac] import org.apache.naming.NamingContextBindingsEnumeration;


the .java files are right there I dont get why the compiler doesent see
them.  I also tried to look up the compile statement in the build.xml to see
if the naming directorues were included but its not there there in the newer
version , I guess I have to look harder.


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




Re: JAXP

2001-12-13 Thread Rick R

I have found that SAX is pretty much the same whether
you use JAXP or Xerces. I know IBM has some articles
on their site.

http://www-106.ibm.com/developerworks/java/?loc=dwmain

--- [EMAIL PROTECTED] wrote:
>   Hi all,
> 
>   Does anyone know of a site that has good JAXP
> examples?
> Thanks, BB.
> 
> --



__
Do You Yahoo!?
Check out Yahoo! Shopping and Yahoo! Auctions for all of
your unique holiday gifts! Buy at http://shopping.yahoo.com
or bid at http://auctions.yahoo.com

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




Re: Best JDK For Tomcat ?

2001-11-28 Thread Rick R

One consideration other than speed:
I know on Linux that the jdb does not work with the
Sun JDK 1.3, but it does work in the IBM JDK 1.3.


--- Laurent Michenaud <[EMAIL PROTECTED]> wrote:
> Hi,
> 
> I would like you to comment these results, tell me
> about your
> experiences, and tell me about which jdk is best for
> a Tomcat...
> 
> I'm testing the different jdk with a litte Test.java
> 
> Here's the following execution time :
> 
> sun jdk1.2.2_rev9 => 16 seconds
> sun jdk1.3.1_01 => 2 seconds
> ibm jdk1.1.8 => more than 2 minutes, it didnot
> finish.
> ibm jdk1.3 => 3 seconds
> 
> 
> 
> Here the Test.java i've done :
> ( u may think about revelent instructions to add in
> it, please
> tell me about ):
> 
> public class Test
> {
> 
> public static void main( String args[] )
> {
>Integer i ;
>String t ;
>for( int cpt = 0 ; cpt < 50 ; cpt++ )
>{
>   cpt++ ;
>   cpt-- ;
>   t = new String("12345");
>   i = new Integer("12345");
>   i.toString();
>}
> }
> }
> 
> 
> 
> 
> 
> 
> Michenaud Laurent
> - Adeuza -
> [ Développeur Web - Administrateur Réseau 
> 
> --
> To unsubscribe:  
> 
> For additional commands:
> 
> Troubles with the list:
> 
> 


__
Do You Yahoo!?
Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month.
http://geocities.yahoo.com/ps/info1

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




Re: installing Tomcat on MAC

2001-11-26 Thread Rick Bosch

use the "java" application from the mrj and make sure you include all the
jars and then the main as it is called in the tomcat script in the bin
folder.

sorry i cant be more detailed, but that will give you a start.  You would be
better off going to macosX

rick

> From: sara frucht <[EMAIL PROTECTED]>
> Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Date: Mon, 26 Nov 2001 13:11:43 -0800
> To: mailto:
> Subject: installing Tomcat on MAC
> 
> Hi - I need instructions on how to install Tomcat on the Mac.  I am running
> OS 8.6 on a power Mac.  I saw in your archives that Basil Bourque already
> answered this question, but the link he provided,
> www.rainwatersoft.com/java4u/tomcat_on_macintosh/index.html
> is no longer valid.  Do you have an updated link, or some other place where
> I can get instructions?By the way, I have Java developement tools for
> writing and running applets already.  Is Tomcat all I need to write and run
> JSP's?  Thank you.
> Sara Frucht
> 
> 
> 
> --
> To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> For additional commands: <mailto:[EMAIL PROTECTED]>
> Troubles with the list: <mailto:[EMAIL PROTECTED]>


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




Re: Linux Hotspot JVM choice for Tomcat

2001-11-21 Thread Rick R

I noticed that for JDK1.3 on Linux, jdb did not work
with the Sun JDK, but it did work with the IBM JDK.

--- Endre_Stølsvik <[EMAIL PROTECTED]> wrote:
> On Wed, 21 Nov 2001, keiths wrote:
> But try out IBM's JRE 1.3 too! On my linux system,
> it seems like it's
> about 4 times faster (really!), but this _has_ to be
> an error, I presume.
> But anyways, check it out!
> 
> 
> -- 
> Mvh,
> Endre
> 
> 
 


__
Do You Yahoo!?
Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month.
http://geocities.yahoo.com/ps/info1

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




RE: Java and double

2001-11-14 Thread Mangi, Rick

Ya, I've seen that one before. use the java.math package. 

-Original Message-
From: Laurent Michenaud [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 14, 2001 10:39 AM
To: [EMAIL PROTECTED]
Subject: Java and double


Hi,

Excuse me... this mail shouldnot be on this mailing list but
it is an hurry.

public class TestDouble
{
  static public void main(String args[]) {

double val = 0.5055 * 1000 ;
System.out.println( val );
  }
}

This program gives me the following results :
505.44

I've tried with Sun Jdk 1.2.2rev9, Sun jdk1.3.1 and Ibm Jdk 1.3.1.

Have u got informations about this ?
Can u try too ?

Thanks a lot and sorry again

Bye

Michenaud Laurent
- Adeuza -
[ Développeur Web - Administrateur Réseau ]


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


This email and any attachments are confidential and may be 
legally privileged. No confidentiality or privilege is waived 
or lost by any transmission in error.  If you are not the 
intended recipient you are hereby notified that any use, 
printing, copying or disclosure is strictly prohibited.  
Please delete this email and any attachments, without 
printing, copying, forwarding or saving them and notify the 
sender immediately by reply e-mail.  Zurich Capital Markets 
and its affiliates reserve the right to monitor all e-mail 
communications through its networks.  Unless otherwise 
stated, any pricing information in this e-mail is indicative 
only, is subject to change and does not constitute an offer 
to enter into any transaction at such price and any terms in 
relation to any proposed transaction are indicative only and 
subject to express final confirmation.

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




RE: intranet authentication with win2k

2001-11-13 Thread Mangi, Rick

Have you implemented this with tomcat running on *nix? Or only on win2k?

-Original Message-
From: Bongiorno, Christian [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 13, 2001 2:11 PM
To: 'Tomcat Users List'
Subject: RE: intranet authentication with win2k


What we have done is integrate NT authentication into a Tomcat realm. Using
WIN2k you can use either the com.sun.security.auth packages to Use
NTLoginModule (this only works on windows and only for the currently logged
in user). Or you can use the Krb5 security module same group ... OR... you
can use the fact that every WIN2k domain controller has an LDAP server in it
as well ( active directory), login to it with DOMAIN credentials and query a
custom attribute for roles. Be forwarned that Active Directory does not play
by the LDAP rules. What a suprise!

See

http://java.sun.com/j2se/1.4/docs/guide/security/jaas/spec/

-Original Message-
From: Mangi, Rick [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 13, 2001 2:05 PM
To: 'Tomcat Users List'
Subject: RE: intranet authentication with win2k


yes, once the person is logged into the web application. The question is,
how do I get them logged into the web application without having to prompt
for a user/pass.

Rick


-Original Message-
From: John M. Corro [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 13, 2001 2:57 PM
To: Tomcat Users List
Subject: Re: intranet authentication with win2k


I'm not as familiar w/ NT security either, but it sounds like (from a Java
programming standpoint) the getRemoteUser() method is your best bet.  If I
remember correctly, it returns the username *if* the user has logged in (in
this case through NT security) or null otherwise.
- Original Message -
From: "Mangi, Rick" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, November 13, 2001 9:49 AM
Subject: intranet authentication with win2k


> Greetings tomcat users!
>
> This question is 1/2 tomcat 1/2 apache. I'm developing an intranet site.
The
> users logon with NT authentication onto our local network. The intranet is
> running tomcat/apache on solaris. I'm wondering if anyone has a solution
for
> authenticating these users on the intranet without them having to log onto
a
> separate system. I know there is an apache module for tying apache
> authentication to NT security (and I assume it's easy enough to pass this
on
> to tomcat). But we're thinking of moving to the win2k "native security"
> system which I know nothing about.
>
> has anyone tackled this before? Any suggestions?
>
> Thanks,
>
> Rick
>
>
> Please pardon the long winded legal stuff below...
>
>
>
>
> This email and any attachments are confidential and may be
> legally privileged. No confidentiality or privilege is waived
> or lost by any transmission in error.  If you are not the
> intended recipient you are hereby notified that any use,
> printing, copying or disclosure is strictly prohibited.
> Please delete this email and any attachments, without
> printing, copying, forwarding or saving them and notify the
> sender immediately by reply e-mail.  Zurich Capital Markets
> and its affiliates reserve the right to monitor all e-mail
> communications through its networks.  Unless otherwise
> stated, any pricing information in this e-mail is indicative
> only, is subject to change and does not constitute an offer
> to enter into any transaction at such price and any terms in
> relation to any proposed transaction are indicative only and
> subject to express final confirmation.
>
> --
> To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> For additional commands: <mailto:[EMAIL PROTECTED]>
> Troubles with the list: <mailto:[EMAIL PROTECTED]>
>
>
>


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


This email and any attachments are confidential and may be 
legally privileged. No confidentiality or privilege is waived 
or lost by any transmission in error.  If you are not the 
intended recipient you are hereby notified that any use, 
printing, copying or disclosure is strictly prohibited.  
Please delete this email and any attachments, without 
printing, copying, forwarding or saving them and notify the 
sender immediately by reply e-mail.  Zurich Capital Markets 
and its affiliates reserve the right to monitor all e-mail 
communications through its networks.  Unless otherwise 
stated, any pricing information in this e-mail is indicative 
only, is subject to change and does not constitute an offer 
to enter into any transaction at such price and any terms in 
relation to any proposed transaction are indicative only and 
subject to express final confirmation.

--
To uns

RE: intranet authentication with win2k

2001-11-13 Thread Mangi, Rick

yes, once the person is logged into the web application. The question is,
how do I get them logged into the web application without having to prompt
for a user/pass.

Rick


-Original Message-
From: John M. Corro [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 13, 2001 2:57 PM
To: Tomcat Users List
Subject: Re: intranet authentication with win2k


I'm not as familiar w/ NT security either, but it sounds like (from a Java
programming standpoint) the getRemoteUser() method is your best bet.  If I
remember correctly, it returns the username *if* the user has logged in (in
this case through NT security) or null otherwise.
- Original Message -
From: "Mangi, Rick" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, November 13, 2001 9:49 AM
Subject: intranet authentication with win2k


> Greetings tomcat users!
>
> This question is 1/2 tomcat 1/2 apache. I'm developing an intranet site.
The
> users logon with NT authentication onto our local network. The intranet is
> running tomcat/apache on solaris. I'm wondering if anyone has a solution
for
> authenticating these users on the intranet without them having to log onto
a
> separate system. I know there is an apache module for tying apache
> authentication to NT security (and I assume it's easy enough to pass this
on
> to tomcat). But we're thinking of moving to the win2k "native security"
> system which I know nothing about.
>
> has anyone tackled this before? Any suggestions?
>
> Thanks,
>
> Rick
>
>
> Please pardon the long winded legal stuff below...
>
>
>
>
> This email and any attachments are confidential and may be
> legally privileged. No confidentiality or privilege is waived
> or lost by any transmission in error.  If you are not the
> intended recipient you are hereby notified that any use,
> printing, copying or disclosure is strictly prohibited.
> Please delete this email and any attachments, without
> printing, copying, forwarding or saving them and notify the
> sender immediately by reply e-mail.  Zurich Capital Markets
> and its affiliates reserve the right to monitor all e-mail
> communications through its networks.  Unless otherwise
> stated, any pricing information in this e-mail is indicative
> only, is subject to change and does not constitute an offer
> to enter into any transaction at such price and any terms in
> relation to any proposed transaction are indicative only and
> subject to express final confirmation.
>
> --
> To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> For additional commands: <mailto:[EMAIL PROTECTED]>
> Troubles with the list: <mailto:[EMAIL PROTECTED]>
>
>
>


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


This email and any attachments are confidential and may be 
legally privileged. No confidentiality or privilege is waived 
or lost by any transmission in error.  If you are not the 
intended recipient you are hereby notified that any use, 
printing, copying or disclosure is strictly prohibited.  
Please delete this email and any attachments, without 
printing, copying, forwarding or saving them and notify the 
sender immediately by reply e-mail.  Zurich Capital Markets 
and its affiliates reserve the right to monitor all e-mail 
communications through its networks.  Unless otherwise 
stated, any pricing information in this e-mail is indicative 
only, is subject to change and does not constitute an offer 
to enter into any transaction at such price and any terms in 
relation to any proposed transaction are indicative only and 
subject to express final confirmation.

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




intranet authentication with win2k

2001-11-13 Thread Mangi, Rick

Greetings tomcat users! 

This question is 1/2 tomcat 1/2 apache. I'm developing an intranet site. The
users logon with NT authentication onto our local network. The intranet is
running tomcat/apache on solaris. I'm wondering if anyone has a solution for
authenticating these users on the intranet without them having to log onto a
separate system. I know there is an apache module for tying apache
authentication to NT security (and I assume it's easy enough to pass this on
to tomcat). But we're thinking of moving to the win2k "native security"
system which I know nothing about. 

has anyone tackled this before? Any suggestions?

Thanks,

Rick


Please pardon the long winded legal stuff below...




This email and any attachments are confidential and may be 
legally privileged. No confidentiality or privilege is waived 
or lost by any transmission in error.  If you are not the 
intended recipient you are hereby notified that any use, 
printing, copying or disclosure is strictly prohibited.  
Please delete this email and any attachments, without 
printing, copying, forwarding or saving them and notify the 
sender immediately by reply e-mail.  Zurich Capital Markets 
and its affiliates reserve the right to monitor all e-mail 
communications through its networks.  Unless otherwise 
stated, any pricing information in this e-mail is indicative 
only, is subject to change and does not constitute an offer 
to enter into any transaction at such price and any terms in 
relation to any proposed transaction are indicative only and 
subject to express final confirmation.

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




RE: Welcome to the Tomcat 4.0 F.A.Q. on-line forum.

2001-11-01 Thread Mangi, Rick

Gotcha. I eagerly await the "opposite" :-)

-Original Message-


"I'm still figuring out how to do the opposite", means, give me some time...
I think that keeping up with mod_webapp, dealing with the
jakarta-tomcat-services, moving mailing list server and keeping you all
happy is a little _lot_ for 4 days :) :) :)

Pier


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


This email and any attachments are confidential and may be 
legally privileged. No confidentiality or privilege is waived 
or lost by any transmission in error.  If you are not the 
intended recipient you are hereby notified that any use, 
printing, copying or disclosure is strictly prohibited.  
Please delete this email and any attachments, without 
printing, copying, forwarding or saving them and notify the 
sender immediately by reply e-mail.  Zurich Capital Markets 
and its affiliates reserve the right to monitor all e-mail 
communications through its networks.  Unless otherwise 
stated, any pricing information in this e-mail is indicative 
only, is subject to change and does not constitute an offer 
to enter into any transaction at such price and any terms in 
relation to any proposed transaction are indicative only and 
subject to express final confirmation.

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




RE: Welcome to the Tomcat 4.0 F.A.Q. on-line forum.

2001-11-01 Thread Mangi, Rick

let me clarify.

I support the idea of a forum whole hartedly. I think it will cut down on
repeat questions and answers. It will allow people to post much more
detailed suggestions and solutions since you know that your posting will
survive past 24 hours. 

However

If I'm reading Pier's instructions correctly, then having to check at the
bottom of a message for a link to tell you that this is a posting from the
forum and directing you to click on the link and reply at the forum... that
won't work. 

I suggest rethinking that strategy and either separate the two (email
list/forum) completely, or come up with a system whereby people can post to
the form via email reply to the message.

Rick



-Original Message-
From: Timothy Fisher [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 01, 2001 9:28 AM
To: Tomcat Users List
Subject: RE: Welcome to the Tomcat 4.0 F.A.Q. on-line forum.


I think the forums are a GREAT addition!

--- "Mangi, Rick" <[EMAIL PROTECTED]> wrote:
> Pier,
> 
> I don't think this makes a whole lot of sense. I
> understand the advantages
> of a forum vs. a mailing list, but requiring people
> to look for a link at
> the bottom and then register to reply... it just
> ain't gonna happen, and
> you're going to spend a lot of time reminding people
> to check if it's a
> message from the forum. I'd suggest you filter on
> the subject fields and
> have an agent subscribed to the mailing list
> automatically posting the
> messages up there.
> 
> Being a realist... I don't see this working.
> 
> Rick
> 
> 
> -Original Message-
> From: Pier Fumagalli [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, October 31, 2001 10:41 PM
> To: [EMAIL PROTECTED]
> Subject: Welcome to the Tomcat 4.0 F.A.Q. on-line
> forum.
> 
> 
> In the effort of better managing our resources
> Apache wide, and specifically
> in our case in the scope of the Jakarta project,
> here is a little new
> addition to our set of "tools". A web-based forum
> system.
> 
> Some of you have asked "why" do we need a forum,
> aren't our mailing lists
> enough to support our needs? My reply is simple, we
> need both.
> 
> The on-line forum, first of all, allows you do a
> couple of nifty things that
> people asked: search messages in an intelligent way
> (our mail archives
> already do so, but most of the time, the precision
> of their search engine is
> not, well, the best you can get).
> 
> Plus, each question there is organized and threaded
> better than any Email
> client can do (there is a big discussion about how
> to interpret the
> In-Reply-To header, and some popular email clients
> "forget" to include it in
> messages), and the topics are way more visible than
> on a mailing list with
> an average of more than 200 messages a day.
> 
> There are some more features, like: wouldn't it be
> nice to be able to be
> notified and receive replies only to MY particular
> question, avoiding all
> the other hundreds of emails that flow daily to your
> mail client? Well, a
> web forum allows you to do that, you can create a
> thread, the one with your
> little particular problem, and "watch it", being
> notified via email about
> what replies I got only to my problem. Or looking
> and being notified about
> that little problem I had and was reported by
> another guy... All that can be
> done only thru a well-managed forum, and the current
> internet-mail system is
> not sufficient to achieve that.
> 
> And PLUS, every message you send thru the web-forum
> is actually "mirrored"
> on our mailing list (I'm still figuring out how to
> do the opposite, but
> given enough brainpower -which I don't have at the
> moment - I'm sure I can
> do that!), so everyone will see it (nope, you won't
> loose visibility, and
> you don't have to post your messages twice).
> 
> I just a couple of little favors to ask you all. If
> you see a message coming
> from the web-forum (and you will recognize it by the
> lines at the bottom of
> the message, take this one for example), and you
> want to reply, don't simply
> hit "reply" on your client, but instead click on the
> link at the bottom, and
> respond on-line. Your message will be archieved,
> stored, and you won't have
> to reply to the same question anymore. And if you
> want to reply to someone
> on the list, before doing so, check whether the same
> question has already
> been answered on the forum. The more we use it now,
> the less we'll have to
> use it in the future.
> 
> Last little question, please, if you

RE: Welcome to the Tomcat 4.0 F.A.Q. on-line forum.

2001-11-01 Thread Mangi, Rick

Pier,

I don't think this makes a whole lot of sense. I understand the advantages
of a forum vs. a mailing list, but requiring people to look for a link at
the bottom and then register to reply... it just ain't gonna happen, and
you're going to spend a lot of time reminding people to check if it's a
message from the forum. I'd suggest you filter on the subject fields and
have an agent subscribed to the mailing list automatically posting the
messages up there.

Being a realist... I don't see this working.

Rick


-Original Message-
From: Pier Fumagalli [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 31, 2001 10:41 PM
To: [EMAIL PROTECTED]
Subject: Welcome to the Tomcat 4.0 F.A.Q. on-line forum.


In the effort of better managing our resources Apache wide, and specifically
in our case in the scope of the Jakarta project, here is a little new
addition to our set of "tools". A web-based forum system.

Some of you have asked "why" do we need a forum, aren't our mailing lists
enough to support our needs? My reply is simple, we need both.

The on-line forum, first of all, allows you do a couple of nifty things that
people asked: search messages in an intelligent way (our mail archives
already do so, but most of the time, the precision of their search engine is
not, well, the best you can get).

Plus, each question there is organized and threaded better than any Email
client can do (there is a big discussion about how to interpret the
In-Reply-To header, and some popular email clients "forget" to include it in
messages), and the topics are way more visible than on a mailing list with
an average of more than 200 messages a day.

There are some more features, like: wouldn't it be nice to be able to be
notified and receive replies only to MY particular question, avoiding all
the other hundreds of emails that flow daily to your mail client? Well, a
web forum allows you to do that, you can create a thread, the one with your
little particular problem, and "watch it", being notified via email about
what replies I got only to my problem. Or looking and being notified about
that little problem I had and was reported by another guy... All that can be
done only thru a well-managed forum, and the current internet-mail system is
not sufficient to achieve that.

And PLUS, every message you send thru the web-forum is actually "mirrored"
on our mailing list (I'm still figuring out how to do the opposite, but
given enough brainpower -which I don't have at the moment - I'm sure I can
do that!), so everyone will see it (nope, you won't loose visibility, and
you don't have to post your messages twice).

I just a couple of little favors to ask you all. If you see a message coming
from the web-forum (and you will recognize it by the lines at the bottom of
the message, take this one for example), and you want to reply, don't simply
hit "reply" on your client, but instead click on the link at the bottom, and
respond on-line. Your message will be archieved, stored, and you won't have
to reply to the same question anymore. And if you want to reply to someone
on the list, before doing so, check whether the same question has already
been answered on the forum. The more we use it now, the less we'll have to
use it in the future.

Last little question, please, if you see something wrong or offensive on the
forum, please notify <mailto:[EMAIL PROTECTED]>, and we'll be
able to remove it...

Thanks for listening...

Pier

---
This message has been posted through the Jakarta Tomcat 4.0 F.A.Q.
on line forum, and can be seen at:
<http://nagoya.apache.org:8080/jive/thread.jsp?forum=1&thread=3>
For more informations about the on-line Jakarta forums, please go to:
<http://nagoya.apache.org:8080/jive/>
---

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


This email and any attachments are confidential and may be 
legally privileged. No confidentiality or privilege is waived 
or lost by any transmission in error.  If you are not the 
intended recipient you are hereby notified that any use, 
printing, copying or disclosure is strictly prohibited.  
Please delete this email and any attachments, without 
printing, copying, forwarding or saving them and notify the 
sender immediately by reply e-mail.  Zurich Capital Markets 
and its affiliates reserve the right to monitor all e-mail 
communications through its networks.  Unless otherwise 
stated, any pricing information in this e-mail is indicative 
only, is subject to change and does not constitute an offer 
to enter into any transaction at such price and any terms in 
relation to any proposed transaction

RE: Shutdown Tomcat

2001-10-31 Thread Mangi, Rick

Yowza!

It's usually 30-40 seconds for me... 30 minutes, something is very wrong.


-Original Message-
From: Martin Mauri [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 31, 2001 2:30 PM
To: Tomcat Users List
Subject: Re: Shutdown Tomcat


Rick,

The last time I did the process below, I waited up to 30 minutes and nothing
happened, how much am I supposed to wait then??

> If you call shutdown.sh (or tomcat.sh stop) and then do ps -eaf |grep java
> you will most likely see the process still running for a while. Once it
goes
> away you can restart. It won't restart 'cuz it hasn't shut down yet...
> hence, the port is still bound.
>
>
>
> -Original Message-
> From: Martin Mauri [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, October 31, 2001 1:47 PM
> To: Tomcat Users List
> Subject: Re: Shutdown Tomcat
>
>
> Hi,
>
> I'm facing the same problem with Tomcat 3.2.1
>
> When I call "tomcat.sh stop" it shows the PATH used for the classes and
then
> it says "Stop Tomcat". But when I try to restart it typing "tomcat.sh
> start", it gives the following error:
>
> FATAL:java.net.BindException: Address already in use
> java.net.BindException: Address already in use
> at java.net.PlainSocketImpl.socketBind(Native Method)
> at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:408)
> at java.net.ServerSocket.(ServerSocket.java:170)
> at java.net.ServerSocket.(ServerSocket.java:121)
> at
>
org.apache.tomcat.net.DefaultServerSocketFactory.createSocket(DefaultServerS
> ocketFactory.java:97)
> at
>
org.apache.tomcat.service.PoolTcpEndpoint.startEndpoint(PoolTcpEndpoint.java
> :239)
> at
>
org.apache.tomcat.service.PoolTcpConnector.start(PoolTcpConnector.java:188)
> at
> org.apache.tomcat.core.ContextManager.start(ContextManager.java:527)
> at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:202)
> at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235)
>
> Of course, it's a socket error meaning that it wasn't actually stopped...
>
> Ok, I can't figure out why...
>
>
>
>
>
>
>
> > I see the same problems that Evan mentions (solaris). It takes about
30-45
> > seconds to shutdown on a devel server with no users and only 1 (albeit
> > large) servlet and a few dozen JSPs. Don't have any JDBC connections or
> > anything else like that.
> >
> > Similarly, startup takes about 15-20 seconds. On windows it takes about
5
> > seconds.
> >
> > -Original Message-
> > From: Steve Brunton [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, October 31, 2001 1:29 PM
> > To: Tomcat Users List
> > Subject: Re: Shutdown Tomcat
> >
> >
> > Evan Swanson wrote:
> > >
> > > Yeah, I have been wondering the same thing.
> > >
> > > On unix is seems that you have to kill the process.
> > > Shutdown.bat and shutdown.sh do not seem to stop the Tomcat process.
> > > I am guessing they just log off all of the sessions 'gracefully'
> > > You then have to manually kill the process?
> > >
> > > I am not sure if this is a problem with tomcat or it is supposed to be
> > that
> > > way.
> > >
> > > It seems to be the same effect when you use the manager application to
> > > shutdown tomcat so I am guessing that it was designed to work that
way.
> > >
> > > I have been unable to find any doco on the subject.
> > >
> > > Does anybody know a better way of shutting down the server than
killing
> > the
> > > process?
> > >
> >
> >
> >   I've got Tomcat 4.0.1/JDK1.3.1_01 shutting down happily on Solaris x86
> > just spiffy like. It does seem to take it a while to spool everything
> > down. Currently it's only loading about 10 servlets and if I tail the
> > output log as the thing is shutting down I can see it hitting all the
> > destroy() methods and shutting down JNDI, JDBC and LDAP connections.
> > Make sure that all your servlets clean up after themselves and it should
> > shutdown fine.
> >
> >
> >
> > This email and any attachments are confidential and may be
> > legally privileged. No confidentiality or privilege is waived
> > or lost by any transmission in error.  If you are not the
> > intended recipient you are hereby notified that any use,
> > printing, copying or disclosure is strictly prohibited.
> > Please delete this email and any attachments, without
> > printing, copying, forwarding or saving them and notif

RE: Shutdown Tomcat

2001-10-31 Thread Mangi, Rick

If you call shutdown.sh (or tomcat.sh stop) and then do ps -eaf |grep java
you will most likely see the process still running for a while. Once it goes
away you can restart. It won't restart 'cuz it hasn't shut down yet...
hence, the port is still bound.



-Original Message-
From: Martin Mauri [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 31, 2001 1:47 PM
To: Tomcat Users List
Subject: Re: Shutdown Tomcat


Hi,

I'm facing the same problem with Tomcat 3.2.1

When I call "tomcat.sh stop" it shows the PATH used for the classes and then
it says "Stop Tomcat". But when I try to restart it typing "tomcat.sh
start", it gives the following error:

FATAL:java.net.BindException: Address already in use
java.net.BindException: Address already in use
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:408)
at java.net.ServerSocket.(ServerSocket.java:170)
at java.net.ServerSocket.(ServerSocket.java:121)
at
org.apache.tomcat.net.DefaultServerSocketFactory.createSocket(DefaultServerS
ocketFactory.java:97)
at
org.apache.tomcat.service.PoolTcpEndpoint.startEndpoint(PoolTcpEndpoint.java
:239)
at
org.apache.tomcat.service.PoolTcpConnector.start(PoolTcpConnector.java:188)
at
org.apache.tomcat.core.ContextManager.start(ContextManager.java:527)
at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:202)
at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235)

Of course, it's a socket error meaning that it wasn't actually stopped...

Ok, I can't figure out why...







> I see the same problems that Evan mentions (solaris). It takes about 30-45
> seconds to shutdown on a devel server with no users and only 1 (albeit
> large) servlet and a few dozen JSPs. Don't have any JDBC connections or
> anything else like that.
>
> Similarly, startup takes about 15-20 seconds. On windows it takes about 5
> seconds.
>
> -Original Message-
> From: Steve Brunton [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, October 31, 2001 1:29 PM
> To: Tomcat Users List
> Subject: Re: Shutdown Tomcat
>
>
> Evan Swanson wrote:
> >
> > Yeah, I have been wondering the same thing.
> >
> > On unix is seems that you have to kill the process.
> > Shutdown.bat and shutdown.sh do not seem to stop the Tomcat process.
> > I am guessing they just log off all of the sessions 'gracefully'
> > You then have to manually kill the process?
> >
> > I am not sure if this is a problem with tomcat or it is supposed to be
> that
> > way.
> >
> > It seems to be the same effect when you use the manager application to
> > shutdown tomcat so I am guessing that it was designed to work that way.
> >
> > I have been unable to find any doco on the subject.
> >
> > Does anybody know a better way of shutting down the server than killing
> the
> > process?
> >
>
>
>   I've got Tomcat 4.0.1/JDK1.3.1_01 shutting down happily on Solaris x86
> just spiffy like. It does seem to take it a while to spool everything
> down. Currently it's only loading about 10 servlets and if I tail the
> output log as the thing is shutting down I can see it hitting all the
> destroy() methods and shutting down JNDI, JDBC and LDAP connections.
> Make sure that all your servlets clean up after themselves and it should
> shutdown fine.
>
>
>
> This email and any attachments are confidential and may be
> legally privileged. No confidentiality or privilege is waived
> or lost by any transmission in error.  If you are not the
> intended recipient you are hereby notified that any use,
> printing, copying or disclosure is strictly prohibited.
> Please delete this email and any attachments, without
> printing, copying, forwarding or saving them and notify the
> sender immediately by reply e-mail.  Zurich Capital Markets
> and its affiliates reserve the right to monitor all e-mail
> communications through its networks.  Unless otherwise
> stated, any pricing information in this e-mail is indicative
> only, is subject to change and does not constitute an offer
> to enter into any transaction at such price and any terms in
> relation to any proposed transaction are indicative only and
> subject to express final confirmation.
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:



--
To unsubscribe, e-mail:

For additional commands, e-mail:



This email and any attachments are confidential and may be 
legally privileged. No confidentiality or privilege is waived 
or lost by any transmission in error.  If you are not the 
intended recipient you are hereby notified that any use, 
printing, copying or disclosure is strictly prohibited.  
Please delete this email and any attachments, without 
printing, copying, forwarding or saving them and notify the 
sender immediately by reply e-mail.  Zurich Capital Markets 
and its affiliates reserve the right to m

RE: Shutdown Tomcat

2001-10-31 Thread Mangi, Rick

I see the same problems that Evan mentions (solaris). It takes about 30-45
seconds to shutdown on a devel server with no users and only 1 (albeit
large) servlet and a few dozen JSPs. Don't have any JDBC connections or
anything else like that.

Similarly, startup takes about 15-20 seconds. On windows it takes about 5
seconds.

-Original Message-
From: Steve Brunton [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 31, 2001 1:29 PM
To: Tomcat Users List
Subject: Re: Shutdown Tomcat


Evan Swanson wrote:
> 
> Yeah, I have been wondering the same thing.
> 
> On unix is seems that you have to kill the process.
> Shutdown.bat and shutdown.sh do not seem to stop the Tomcat process.
> I am guessing they just log off all of the sessions 'gracefully'
> You then have to manually kill the process?
> 
> I am not sure if this is a problem with tomcat or it is supposed to be
that
> way.
> 
> It seems to be the same effect when you use the manager application to
> shutdown tomcat so I am guessing that it was designed to work that way.
> 
> I have been unable to find any doco on the subject.
> 
> Does anybody know a better way of shutting down the server than killing
the
> process?
> 


  I've got Tomcat 4.0.1/JDK1.3.1_01 shutting down happily on Solaris x86
just spiffy like. It does seem to take it a while to spool everything
down. Currently it's only loading about 10 servlets and if I tail the
output log as the thing is shutting down I can see it hitting all the
destroy() methods and shutting down JNDI, JDBC and LDAP connections.
Make sure that all your servlets clean up after themselves and it should
shutdown fine.



This email and any attachments are confidential and may be 
legally privileged. No confidentiality or privilege is waived 
or lost by any transmission in error.  If you are not the 
intended recipient you are hereby notified that any use, 
printing, copying or disclosure is strictly prohibited.  
Please delete this email and any attachments, without 
printing, copying, forwarding or saving them and notify the 
sender immediately by reply e-mail.  Zurich Capital Markets 
and its affiliates reserve the right to monitor all e-mail 
communications through its networks.  Unless otherwise 
stated, any pricing information in this e-mail is indicative 
only, is subject to change and does not constitute an offer 
to enter into any transaction at such price and any terms in 
relation to any proposed transaction are indicative only and 
subject to express final confirmation.

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




RE: Problem with mod_webapps and com.oreilly.servlet

2001-10-31 Thread Mangi, Rick

Just follow the directions on the tomcat site for integrating 3.2 with
Apache, you'll have to download a copy of 3.2 and grab the
workers.properties file from that distribution. otherwise it's just like 3.2



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 31, 2001 10:20 AM
To: Tomcat Users List
Subject: RE: Problem with mod_webapps and com.oreilly.servlet


could someone point me to a howto on the apj13 connector? (Apache1.3 and
Tomcat 4.0.1)

Thanks,

Scott Archer
[EMAIL PROTECTED]



 

    "Mangi, Rick"

  
group.com>cc:

  Subject: RE: Problem with
mod_webapps and com.oreilly.servlet   
10/31/2001

09:18 AM

Please respond

to "Tomcat

Users List"

 

 





it's a known bug with the warp connector. Use the ajp13 connector and it
should work.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 31, 2001 9:33 AM
To: [EMAIL PROTECTED]
Subject: Problem with mod_webapps and com.oreilly.servlet


Tomcat 4.01 + Apache 1.3
I have mod_webapps installed, and everything works fine except when I try
to use the com.oreilly.servlet package to try to upload a file via
http.(multipart form)
The same servlet works fine when connecting directly to tomcat standalone
(8080) but when going through the apache web server and the mod_webapps
connector I get corrupted files (jpegs).

It sounds very similar to the first bug described here
http://www.servlets.com/soapbox/bugs.html

Is there any way to patch the source or work around this?
(I'm running virutal hosts so i'd like to use the warp connector)

Thanks,

Scott Archer
[EMAIL PROTECTED]



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


This email and any attachments are confidential and may be
legally privileged. No confidentiality or privilege is waived
or lost by any transmission in error.  If you are not the
intended recipient you are hereby notified that any use,
printing, copying or disclosure is strictly prohibited.
Please delete this email and any attachments, without
printing, copying, forwarding or saving them and notify the
sender immediately by reply e-mail.  Zurich Capital Markets
and its affiliates reserve the right to monitor all e-mail
communications through its networks.  Unless otherwise
stated, any pricing information in this e-mail is indicative
only, is subject to change and does not constitute an offer
to enter into any transaction at such price and any terms in
relation to any proposed transaction are indicative only and
subject to express final confirmation.

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


This email and any attachments are confidential and may be 
legally privileged. No confidentiality or privilege is waived 
or lost by any transmission in error.  If you are not the 
intended recipient you are hereby notified that any use, 
printing, copying or disclosure is strictly prohibited.  
Please delete this email and any attachments, without 
printing, copying, forwarding or saving them and notify the 
sender immediately by reply e-mail.  Zurich Capital Markets 
and its affiliates reserve the right to monitor all e-mail 
communications through its networks.  Unless otherwise 
stated, any pricing information in this e-mail is indicative 
only, is subject to change and does not constitute an offer 
to enter into any transaction at such price and any terms in 
relation to any proposed transaction are indicative only and 
subject to express final confirmation.

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




RE: Problem with mod_webapps and com.oreilly.servlet

2001-10-31 Thread Mangi, Rick

it's a known bug with the warp connector. Use the ajp13 connector and it
should work.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 31, 2001 9:33 AM
To: [EMAIL PROTECTED]
Subject: Problem with mod_webapps and com.oreilly.servlet


Tomcat 4.01 + Apache 1.3
I have mod_webapps installed, and everything works fine except when I try
to use the com.oreilly.servlet package to try to upload a file via
http.(multipart form)
The same servlet works fine when connecting directly to tomcat standalone
(8080) but when going through the apache web server and the mod_webapps
connector I get corrupted files (jpegs).

It sounds very similar to the first bug described here
http://www.servlets.com/soapbox/bugs.html

Is there any way to patch the source or work around this?
(I'm running virutal hosts so i'd like to use the warp connector)

Thanks,

Scott Archer
[EMAIL PROTECTED]



--
To unsubscribe, e-mail:

For additional commands, e-mail:



This email and any attachments are confidential and may be 
legally privileged. No confidentiality or privilege is waived 
or lost by any transmission in error.  If you are not the 
intended recipient you are hereby notified that any use, 
printing, copying or disclosure is strictly prohibited.  
Please delete this email and any attachments, without 
printing, copying, forwarding or saving them and notify the 
sender immediately by reply e-mail.  Zurich Capital Markets 
and its affiliates reserve the right to monitor all e-mail 
communications through its networks.  Unless otherwise 
stated, any pricing information in this e-mail is indicative 
only, is subject to change and does not constitute an offer 
to enter into any transaction at such price and any terms in 
relation to any proposed transaction are indicative only and 
subject to express final confirmation.

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




RE: Viewing this mailing list online

2001-10-26 Thread Mangi, Rick

http://mikal.org/interests/java/tomcat/index.jsp

You can read, but you can't participate.

-Original Message-
From: Donie Kelly [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 26, 2001 5:56 AM
To: '[EMAIL PROTECTED]'
Subject: Viewing this mailing list online


Can we view this mailing list online rather that receive it by e-mail. It's
currently running at hundreds of messages per day (a testament to how
popular Tomcat is)

Regards
Donie


This email and any attachments are confidential and may be 
legally privileged. No confidentiality or privilege is waived 
or lost by any transmission in error.  If you are not the 
intended recipient you are hereby notified that any use, 
printing, copying or disclosure is strictly prohibited.  
Please delete this email and any attachments, without 
printing, copying, forwarding or saving them and notify the 
sender immediately by reply e-mail.  Zurich Capital Markets 
and its affiliates reserve the right to monitor all e-mail 
communications through its networks.  Unless otherwise 
stated, any pricing information in this e-mail is indicative 
only, is subject to change and does not constitute an offer 
to enter into any transaction at such price and any terms in 
relation to any proposed transaction are indicative only and 
subject to express final confirmation.



RE: Tomcat vs. Apache/Tomcat

2001-10-26 Thread Mangi, Rick

If you look back through the list archives I think you'll find this topic
has been beaten to death several times. 

-Original Message-
From: Timothy Fisher [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 25, 2001 2:03 PM
To: [EMAIL PROTECTED]
Subject: Tomcat vs. Apache/Tomcat


Can someone explain the advantages of using Tomcat
with Apache, as opposed to using Tomcat as both web
server and app server?

Thanks,
Tim


This email and any attachments are confidential and may be 
legally privileged. No confidentiality or privilege is waived 
or lost by any transmission in error.  If you are not the 
intended recipient you are hereby notified that any use, 
printing, copying or disclosure is strictly prohibited.  
Please delete this email and any attachments, without 
printing, copying, forwarding or saving them and notify the 
sender immediately by reply e-mail.  Zurich Capital Markets 
and its affiliates reserve the right to monitor all e-mail 
communications through its networks.  Unless otherwise 
stated, any pricing information in this e-mail is indicative 
only, is subject to change and does not constitute an offer 
to enter into any transaction at such price and any terms in 
relation to any proposed transaction are indicative only and 
subject to express final confirmation.



RE: URGENT, Tomcat & MySQL problems

2001-10-23 Thread Mangi, Rick

I'm not a MySQL user, but I really don't think you should EVER put anything
directly in the JRE directory. It should go either in your Tomcat lib or
better yet (if application specific) in your WEB-INF/lib directory.

-Original Message-
From: Paul Davies [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 23, 2001 11:57 AM
To: [EMAIL PROTECTED]
Subject: URGENT, Tomcat & MySQL problems


Hi guys,
I am getting the following error:

javax.servlet.ServletException: No suitable driver
at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java:457)
at
org.apache.jsp.ivf_0005fclinic_0005fsearch$jsp._jspService(ivf_0005fclinic_0
005fsearch$jsp.java:145)
..

and I believe that I have the driver installed in the
correct place.  I am running Tomcat 4.0 with MySQL
3.23.43 with Redhat Linux 7.1.  I placed the
'mm.mysql-2.0.4-bin.jar' file in
/usr/java/jdk1.3.1/jre/lib/ext directory (as
instructed by some solutions in the mailing list) but
the driver still will not work.

In my 'server.xml' file I have the following Realm
defined :



In my .jsp page the extract where the exception occurs
is :

  String MM_centres_web_database_DRIVER =
"org.gjt.mm.mysql.Driver";
String
MM_centres_web_database_USERNAME = "website";
String
MM_centres_web_database_PASSWORD = "user";
String MM_centres_web_database_STRING
= "jdbc:mysql://linuxsvr.hfea.gov.uk/dba";
// end
// HTML // begin
[file="/Connections/centres_web_database.jsp";from=(10,2);to=(14,2)]
out.write("\r\n\r\n\r\n\r\n  ");

// end
// HTML // begin
[file="/ivf_clinic_search.jsp";from=(2,58);to=(3,0)]
out.write("\r\n");

// end
// begin
[file="/ivf_clinic_search.jsp";from=(3,2);to=(12,0)]

Driver DriverRecordset1 =
(Driver)Class.forName(MM_centres_web_database_DRIVER).newInstance();
Connection ConnRecordset1 =
DriverManager.getConnection(MM_centres_web_database_STRING,MM_centres_web_da
tabase_USERNAME,MM_centres_web_database_PASSWORD);
PreparedStatement StatementRecordset1
= ConnRecordset1.prepareStatement("SELECT * FROM
DBA.region_pg");
ResultSet Recordset1 =
StatementRecordset1.executeQuery();
boolean Recordset1_isEmpty =
!Recordset1.next();
boolean Recordset1_hasData =
!Recordset1_isEmpty;
Object Recordset1_data;
int Recordset1_numRows = 0;
// end

I have completely run out of ideas as to why this
exception is occuring, I would be very grateful for
any suggestions as my manager is breathing down my
neck!
Thanks again,
Paul




Nokia Game is on again. 
Go to http://uk.yahoo.com/nokiagame/ and join the new
all media adventure before November 3rd.



RE: multipart form data

2001-10-23 Thread Mangi, Rick

Use the servlet package from o'reilly at www.servlets.com

They have a bunch of utilitites for accessing the form data.

-Original Message-
From: Henry [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 22, 2001 5:47 PM
To: [EMAIL PROTECTED]
Subject: multipart form data


In a FORM data that uses POST method, I need to upload a file
as well as other string data.

according to oreily, forms should be ENCTYPE="multipart/form-data",
however, when this thing is added, all the inputs in the form
can not be reached by
request.getParameter(...)

how can i fix it?


below is the html:



...

below is the servlet:
 public void service(HttpServletRequest request,HttpServletResponse
response)
throws ServletException, IOException
{
Enumeration paramNames = request.getParameterNames();
while(paramNames.hasMoreElements()) {
String paramName = (String)paramNames.nextElement();



RE: USE TOMCAT INSTEAD OF IIS

2001-10-18 Thread Mangi, Rick

Like any well planned out software project the ideal solution is derived
from the requirements. There are very few broad statements such as "Maybe
for large volume servers, but for smaller servers (<10 requests per second)
it is NOT WORTHWHILE to do something else than Tomcat standalone" that hold
true over the course of time.

Is the only requirement for a web project the # of users and traffic? I have
yet to come across such a project, and I've been at this for quite a long
time. What are the security requirements? Do you have any legacy cgi code
that tomcat can't handle well? Will you need to add any? Are you sure?

I'm not sure why people are so afraid to configure up apache. If you can get
tomcat configured you most certainly can get apache running. It's much
simpler (not that tomcat is hard). 9/10 times apache can be configured and
running on a box in about 5 minutes if you know what you're doing. I'm
currently installing tomcat/apache for a new intranet. The requirements
didn't start out necessitating apache (based on load and feature requests),
but I thought that I might as well just in case. There's a lot of static
images, why bother tomcat with those tasks. In the back of my mind I knew
that something would creep in. Sure enough, just today we decided to try to
authenticate users against the NT domain. I'm sure someone out there is
going to tell me how to do that from tomcat, but it will probably require a
bunch of new code and be a major hassle. Guess what, Apache has a module for
it (and I'm running on solaris). 

IMHO the software industry is full of stories about packages that died
trying to do too much. OO programming is all about modularizing code.
Doesn't that transfer to server software as well? Tomcat is a servlet
engine. Apache is a webserver. Sure tomcat can serve .gifs, and I could
write a novel in Outlook, but I'd rather use a word processor. If we push
the tomcat engine towards being a fully featured webserver isn't it
eventually going to bloat? Won't the task we asked it to do (handle
servlet/jsp requests) wind up suffering?

Anyway, that's just my opinion. 

Rick


-Original Message-
From: Peter Mutsaers [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 18, 2001 7:39 PM
To: [EMAIL PROTECTED]
Subject: Re: USE TOMCAT INSTEAD OF IIS


>> "Rui" == Rui Miguel Seabra <[EMAIL PROTECTED]> writes:

Rui> No.

Rui> Use apache web server instead of iis or tomcat webserver.

Rui> Even the configuration is MUCH MUCH easier (and safer even in
Rui> default config).

Maybe for large volume servers, but for smaller servers (<10 requests
per second) it is NOT WORTHWHILE to do something else than Tomcat
standalone.

It is way easier to configure tomcat standalone than configure two
programs (tomcat and apache) plus the connector between tomcat and
apache. 

Also, if most of your pages are mostly dynamic, relaying everything
through apache will only slow down compared to direct access to the
servlet engine (tomcat).

Only for high volume static pages I would recommend (maybe) adding
apache.

Maybe the optimal would be to have two servers, one for dynamic stuff
and one for static stuff (the images etc). The dynamic pages refer to
the other server (apache) for larger static data. Thus you get the
best of two worlds: direct access to the servlets without
deviation/routing through apache, and faster(?) access to static data
through apache. B.t.w. SUN claims a java webserver/servlet engine
should be able to reach the same performance for static data as
dedicated webservers, but I haven't done any benchmarks.

I can only say that after using Apache+Tomcat for our (internal) app
for 1 users at about 20 requests per second, we ditched Apache and
went to Tomcat (version 4) standalone. This simplyfied configuration
and improved performance.

-- 
Peter Mutsaers  |  Dübendorf| UNIX - Live free or die
[EMAIL PROTECTED]  |  Switzerland  | Sent via FreeBSD 4.3-stable



Tomcat slow to shutdown on Solaris

2001-10-18 Thread Mangi, Rick


My tomcat process is taking about 30-60 seconds to shutdown the
tomcat-apache service.

Any ideas why?

Rick



RE: multipart requests

2001-10-18 Thread Mangi, Rick

But keep in mind that the license for the com.oreilly.servlet code requires
that you own the book...

-Original Message-
From: James Yap [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 18, 2001 11:56 AM
To: [EMAIL PROTECTED]
Subject: RE: multipart requests



If you don't have a copy but would like to have a peek at the examples,
here's the link
http://www.servlets.com/jservlet2/examples/index.html


> It's an O'Reilly book by Hunter & Crawford. The O'Reilly servlet
> package (com.oreilly.servlet) is the code
> that goes along with the book.
>
>
> -Original Message-
> From: Matt Dilley [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, October 18, 2001 6:34 AM
> To: [EMAIL PROTECTED]
> Subject: Re: multipart requests
>
>
> Mark Muffett wrote:
>
>>Matt
>>
>>I used the O'reilly packages and they worked fine (I did the example
>>from Java Servlet Programming, then adapted it) - what's your
>>conguration and what errors do you get ?
>>
>>Mark Muffett
>>
>>- Original Message -
>>From: "Matt Dilley" <[EMAIL PROTECTED]>
>>To: <[EMAIL PROTECTED]>
>>Sent: Wednesday, October 17, 2001 3:24 PM
>>Subject: multipart requests
>>
>>
>>>hi
>>>
>>>Does anyone know where I can get hold of a multipart request servlet
>>>that will allow me to upload .jpg and .gif image files to the jsp
>>>server?
>>>
>>>I have tried the o'reilly packages, but it always failes to upload any
>>>image files
>>>
>>>Many thanks
>>>
>>>Matt
>>>
>>>
>>
>>
> java servlet programming?
> where can I find that?





RE: multipart requests

2001-10-18 Thread Mangi, Rick

It's an O'Reilly book by Hunter & Crawford. The O'Reilly servlet package
(com.oreilly.servlet) is the code
that goes along with the book.


-Original Message-
From: Matt Dilley [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 18, 2001 6:34 AM
To: [EMAIL PROTECTED]
Subject: Re: multipart requests


Mark Muffett wrote:

>Matt
>
>I used the O'reilly packages and they worked fine (I did the example from
>Java Servlet Programming, then adapted it) - what's your conguration and
>what errors do you get ?
>
>Mark Muffett
>
>- Original Message -
>From: "Matt Dilley" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Wednesday, October 17, 2001 3:24 PM
>Subject: multipart requests
>
>
>>hi
>>
>>Does anyone know where I can get hold of a multipart request servlet
>>that will allow me to upload .jpg and .gif image files to the jsp server?
>>
>>I have tried the o'reilly packages, but it always failes to upload any
>>image files
>>
>>Many thanks
>>
>>Matt
>>
>>
>
>
java servlet programming?
where can I find that?




RE: Is JAR necessary after running?

2001-10-18 Thread Mangi, Rick

Out of curiosity, why would you want to do that?

-Original Message-
From: Jim Cheesman [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 18, 2001 3:11 AM
To: [EMAIL PROTECTED]
Subject: Re: Is JAR necessary after running?


At 04:52 AM 18/10/01, you wrote:
> Hi all,
>
> If Tomcat is startup already,
> Can I delete servlet.jar?


Quick answer: try!
Real answer, at least on Win2000: no. Unless you're actually using a 
different servlet.jar to the one you think you are.

How to fake a delete on Win2000: overwrite the jar with another one, this 
time empty.


Jim


--

   *   Jim Cheesman   *
 Trabajo: 
[EMAIL PROTECTED] - (34)(91) 724 9200 x 2360
   Evil is 
not all bad.




RE: Is tomcat4 and jdk1.4beta2 combination okay?

2001-10-02 Thread Beem Rickey L (Rick) CNIN

In your registry, make sure HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java
Development Kit\1.4\JavaHome is set correctly, then reinstall Tomcat 4.0.

If I remember correctly, if you have Netscape 6 installed it sets this to
point to the JRE instead of the JDK.  This prevents the Tomcat 4.0 installer
from copying tools.jar to "Apache Tomcat 4.0\common\lib".

-Original Message-
From: Ali Manji [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 02, 2001 8:25 AM
To: [EMAIL PROTECTED]
Subject: RE: Is tomcat4 and jdk1.4beta2 combination okay?


Yes jdk1.4beta2 does have a tools.jar and the JAVA_HOME var does point to 
it.  I am now thinking that something is wrong with the Tomcat config files,

because if I run catalina.bat directly I seem to be okay and the shipped 
samples seem to be okay, yet when I start Tomcat via Start->Programs->Apache

Tomcat 4.0->Start Tomcat then things don't work.  Weird eh?

*
Ali M. Manji
*



>From: Randy Layman <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Subject: RE: Is tomcat4 and jdk1.4beta2 combination okay?
>Date: Tue, 2 Oct 2001 08:22:02 -0400
>
>
>   Tomcat is indicating that it can't find JavaC (thus the Class Not
>Found for sun.tools.javac.Main).  Does jdk1.4 still have a tools.jar file?
>Is it in your classpath for Tomcat? (i.e. is your JAVA_HOME set such that
>JAVA_HOME/lib/tools.jar exists)
>
>   Randy
>
> > -Original Message-
> > From: Ali Manji [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, October 02, 2001 8:39 AM
> > To: [EMAIL PROTECTED]
> > Subject: Is tomcat4 and jdk1.4beta2 combination okay?
> >
> >
> > > I recently upgraded my JDK to use jdk1.4 beta 2 and am
> > running tomcat 4.0
> > > the most recent release driver and I am haviing trouble
> > running any of the
> > > shipped samples (like numberguess jsp).  The error I get is
> > just below, is
> > > this a known problem?
> > >
> > > A Servlet Exception Has Occurred
> > > Root Cause:
> > > java.lang.NoClassDefFoundError: sun/tools/javac/Main
> > > at
> > >
> > org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaComp
> > iler.java:128)
> > > at org.apache.jasper.compiler.Compiler.compile(Compiler.java:271)
> > > at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:543)
> > > at
> > >
> > org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfN
> > ecessary(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:1264)
> > > at
> > >
> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilt
> > er(Application
> > > FilterChain.java:247)
> > > at
> > >
> > org.apache.catalina.core.ApplicationFilterChain.doFilter(Appli
> > cationFilterCh
> > > ain.java:193)
> > > at
> > >
> > org.apache.catalina.core.StandardWrapperValve.invoke(StandardW
> > rapperValve.ja
> > > va:243)
> > > at
> > >
> > org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> > ipeline.java:5
> > > 66)
> > > at
> > >
> > org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
> > ine.java:472)
> > > at
> > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> > > at
> > >
> > org.apache.catalina.core.StandardContextValve.invoke(StandardC
> > ontextValve.ja
> > > va:215)
> > > at
> > >
> > org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> > ipeline.java:5
> > > 66)
> > > at
> > >
> > org.apache.catalina.authenticator.AuthenticatorBase.invoke(Aut
> > henticatorBase
> > > .java:472)
> > > at
> > >
> > org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> > ipeline.java:5
> > > 64)
> > > at
> > >
> > org.apache.catalina.valves.CertificatesValve.invoke(Certificat
> > esValve.java:2
> > > 46)
> > > at
> > >
> > org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> > ipeline.java:5
> > > 64)
> > > at
> > >
> > org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
> > ine.java:472)
> > > at
> > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> > > at
> > >
> > org.apache.catalina.core.StandardContext.invoke(StandardContex
> > t.java:2366)
> > > at
> > >
> > org.apache.catalina.core.StandardHostValve.invoke(StandardHost
> > Valve.java:164
> > > )
> > > at
> > >
> > org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> > ipeline.java:5
> > > 66)
> > > at
> > >
> > org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValv
> > e.java:462)
> > > at
> > >
> > org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> > ipeline.java:5
> > > 64)
> > > at
> > >
> > org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
> > ine.java:472)
> > 

RE: sun/tools/javac/Main not found while running Tomcat 4 as a service on Windows 2000

2001-09-20 Thread Beem Rickey L (Rick) CNIN

The Tomcat 4.0 install script, jakarta-tomcat-4.0-src\tomcat.nsi, references
HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Development Kit\1.4\JavaHome to
copy tools.jar to the "Apache Tomcat 4.0\common\lib" folder.  If JavaHome
doesn't point to the JDK but to the JRE as in my case tools.jar won't get
copied.  Either manually copy it there or correct the registry entry and
reinstall.

Here's the revelant secion of tomcat.nsi:

  ReadRegStr $2 HKLM "SOFTWARE\JavaSoft\Java Development Kit\$1" "JavaHome"

  CopyFiles "$2\lib\tools.jar" "$INSTDIR\common\lib" 4500
 
-Original Message-
From: Beem Rickey L (Rick) CNIN 
Sent: Thursday, September 20, 2001 9:13 AM
To: Beem Rickey L (Rick) CNIN; '[EMAIL PROTECTED]'
Subject: RE: sun/tools/javac/Main not found while running Tomcat 4 as a
service on Windows 2000


Sorry for the mix up.

The work around is to copy \jdk1.4\lib\tools.jar to the Apache Tomcat
4.0\common\lib folder.

-Original Message-
From: Beem Rickey L (Rick) CNIN 
Sent: Thursday, September 20, 2001 9:10 AM
To: '[EMAIL PROTECTED]'
Subject: RE: sun/tools/javac/Main not found while running Tomcat 4 as a
service on Windows 2000


A work around that works is to copy \jdk1.4\lib\tools.jar to the Apache
Tomcat 4.0\bin folder.  Tomcat will then find tools.jar.

Check in your registry.  I had HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java
Development Kit\1.4\JavaHome set to C:\JavaSoft\JRE\1.4 for some reason.
The JDK install did not set this correctly.  I set it to point to C:\jdk1.4,
but it didn't fix the problem.

-Original Message-
From: asheesh [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 19, 2001 9:01 PM
To: [EMAIL PROTECTED]
Subject: Re: sun/tools/javac/Main not found while running Tomcat 4 as a
service on Windows 2000


Same problem with me, when i upgraded my tomcat 3.1 to tomcat 4.0 , and my
tomcat 3.1 stoped compiling all the new JSP pages, where as all pages work
fine with tomcat4.0

I hope some one can help us in this.

cheers
asheesh


- Original Message -
From: Beem Rickey L (Rick) CNIN <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, September 20, 2001 4:21 AM
Subject: sun/tools/javac/Main not found while running Tomcat 4 as a service
on Windows 2000


> I'm having the following problem only on Windows 2000 with Sun's JDK 1.4.
> It
> works with Windows NT 4.0 and Sun's JDK 1.3.1.
>
> My JAVA_HOME and CATALINA_HOME environment variables are properly set.
>
> While running Tomcat 4 as a service on Windows 2000 I get the following
> error
> when accessing any JSP page that isn't already compiled:
>
> java.lang.NoClassDefFoundError: sun/tools/javac/Main
>
> I believe sun.tools.javac.Main is called while the JSP page is compiled,
and
> is
> containted in C:\jdk1.4\lib\tools.jar.
>
> For testing, delete all the files and folders in the "Apache Tomcat
> 4.0\work"
> directory to force a recompile of the JSP pages.
>
> When I run Tomcat 4 from the command line with startup.bat it tells me
that
> C:\jdk1.4\lib\tools.jar is included in the CLASSPATH and JSP pages compile
> and
> work as expected.  If I start Tomcat 4 as a service it doesn't seem to be
> using
> the same CLASSPATH or isn't finding C:\jdk1.4\lib\tools.jar.
>



RE: sun/tools/javac/Main not found while running Tomcat 4 as a service on Windows 2000

2001-09-20 Thread Beem Rickey L (Rick) CNIN

Sorry for the mix up.

The work around is to copy \jdk1.4\lib\tools.jar to the Apache Tomcat
4.0\common\lib folder.

-Original Message-
From: Beem Rickey L (Rick) CNIN 
Sent: Thursday, September 20, 2001 9:10 AM
To: '[EMAIL PROTECTED]'
Subject: RE: sun/tools/javac/Main not found while running Tomcat 4 as a
service on Windows 2000


A work around that works is to copy \jdk1.4\lib\tools.jar to the Apache
Tomcat 4.0\bin folder.  Tomcat will then find tools.jar.

Check in your registry.  I had HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java
Development Kit\1.4\JavaHome set to C:\JavaSoft\JRE\1.4 for some reason.
The JDK install did not set this correctly.  I set it to point to C:\jdk1.4,
but it didn't fix the problem.

-Original Message-
From: asheesh [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 19, 2001 9:01 PM
To: [EMAIL PROTECTED]
Subject: Re: sun/tools/javac/Main not found while running Tomcat 4 as a
service on Windows 2000


Same problem with me, when i upgraded my tomcat 3.1 to tomcat 4.0 , and my
tomcat 3.1 stoped compiling all the new JSP pages, where as all pages work
fine with tomcat4.0

I hope some one can help us in this.

cheers
asheesh


- Original Message -
From: Beem Rickey L (Rick) CNIN <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, September 20, 2001 4:21 AM
Subject: sun/tools/javac/Main not found while running Tomcat 4 as a service
on Windows 2000


> I'm having the following problem only on Windows 2000 with Sun's JDK 1.4.
> It
> works with Windows NT 4.0 and Sun's JDK 1.3.1.
>
> My JAVA_HOME and CATALINA_HOME environment variables are properly set.
>
> While running Tomcat 4 as a service on Windows 2000 I get the following
> error
> when accessing any JSP page that isn't already compiled:
>
> java.lang.NoClassDefFoundError: sun/tools/javac/Main
>
> I believe sun.tools.javac.Main is called while the JSP page is compiled,
and
> is
> containted in C:\jdk1.4\lib\tools.jar.
>
> For testing, delete all the files and folders in the "Apache Tomcat
> 4.0\work"
> directory to force a recompile of the JSP pages.
>
> When I run Tomcat 4 from the command line with startup.bat it tells me
that
> C:\jdk1.4\lib\tools.jar is included in the CLASSPATH and JSP pages compile
> and
> work as expected.  If I start Tomcat 4 as a service it doesn't seem to be
> using
> the same CLASSPATH or isn't finding C:\jdk1.4\lib\tools.jar.
>



RE: sun/tools/javac/Main not found while running Tomcat 4 as a service on Windows 2000

2001-09-20 Thread Beem Rickey L (Rick) CNIN

A work around that works is to copy \jdk1.4\lib\tools.jar to the Apache
Tomcat 4.0\bin folder.  Tomcat will then find tools.jar.

Check in your registry.  I had HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java
Development Kit\1.4\JavaHome set to C:\JavaSoft\JRE\1.4 for some reason.
The JDK install did not set this correctly.  I set it to point to C:\jdk1.4,
but it didn't fix the problem.

-Original Message-
From: asheesh [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 19, 2001 9:01 PM
To: [EMAIL PROTECTED]
Subject: Re: sun/tools/javac/Main not found while running Tomcat 4 as a
service on Windows 2000


Same problem with me, when i upgraded my tomcat 3.1 to tomcat 4.0 , and my
tomcat 3.1 stoped compiling all the new JSP pages, where as all pages work
fine with tomcat4.0

I hope some one can help us in this.

cheers
asheesh


- Original Message -
From: Beem Rickey L (Rick) CNIN <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, September 20, 2001 4:21 AM
Subject: sun/tools/javac/Main not found while running Tomcat 4 as a service
on Windows 2000


> I'm having the following problem only on Windows 2000 with Sun's JDK 1.4.
> It
> works with Windows NT 4.0 and Sun's JDK 1.3.1.
>
> My JAVA_HOME and CATALINA_HOME environment variables are properly set.
>
> While running Tomcat 4 as a service on Windows 2000 I get the following
> error
> when accessing any JSP page that isn't already compiled:
>
> java.lang.NoClassDefFoundError: sun/tools/javac/Main
>
> I believe sun.tools.javac.Main is called while the JSP page is compiled,
and
> is
> containted in C:\jdk1.4\lib\tools.jar.
>
> For testing, delete all the files and folders in the "Apache Tomcat
> 4.0\work"
> directory to force a recompile of the JSP pages.
>
> When I run Tomcat 4 from the command line with startup.bat it tells me
that
> C:\jdk1.4\lib\tools.jar is included in the CLASSPATH and JSP pages compile
> and
> work as expected.  If I start Tomcat 4 as a service it doesn't seem to be
> using
> the same CLASSPATH or isn't finding C:\jdk1.4\lib\tools.jar.
>



Re: Tomcat & OSX

2001-09-19 Thread Rick Mann

on 9/19/01 7:15 AM, jason lane at [EMAIL PROTECTED] wrote:

> Ok thanks, I'll give that a try. I logged onto the Manager and I see
> that WebDAV & the manager are running but examples are not. Anyway
> thanks, I'll let you know the result.

How did you decompress and unpack the archive? I'm running Tomcat
successfully, and found that if I used StuffIt Expander to untar the
archive, then files with names longer than the HFS filename limit had their
names truncated, and that kept some of the examples from running.

However, using tar from the command line works great.


Roderick Mann   rmann @ latencyzero.com.sansspam





sun/tools/javac/Main not found while running Tomcat 4 as a service on Windows 2000

2001-09-19 Thread Beem Rickey L (Rick) CNIN

I'm having the following problem only on Windows 2000 with Sun's JDK 1.4.
It 
works with Windows NT 4.0 and Sun's JDK 1.3.1.

My JAVA_HOME and CATALINA_HOME environment variables are properly set.

While running Tomcat 4 as a service on Windows 2000 I get the following
error 
when accessing any JSP page that isn't already compiled:

java.lang.NoClassDefFoundError: sun/tools/javac/Main

I believe sun.tools.javac.Main is called while the JSP page is compiled, and
is 
containted in C:\jdk1.4\lib\tools.jar.

For testing, delete all the files and folders in the "Apache Tomcat
4.0\work" 
directory to force a recompile of the JSP pages.

When I run Tomcat 4 from the command line with startup.bat it tells me that 
C:\jdk1.4\lib\tools.jar is included in the CLASSPATH and JSP pages compile
and 
work as expected.  If I start Tomcat 4 as a service it doesn't seem to be
using 
the same CLASSPATH or isn't finding C:\jdk1.4\lib\tools.jar.



Using a custom action as input to another tag's attribute?

2001-09-18 Thread Rick Mann

I wrote a nifty set of custom actions (under the prefix "lz" below) that
lets me write JSP code like this:

<% int parentCatID = 1 %>



">




Now, this works, except for the tag  passed as the value
to the "value" attribute of . Is it not possible to do this? I
can have a Java expression like <%= foo.doSomething() %> in there, but I was
saddened to see that putting a JSP tag in there does not seem to work.

I've tested the tag outside of the  tag, and it works as
expected.

The  tag creates a URL of the form:

"catalog.jsp?categoryID=XX"

where "XX" is the value supposedly returned by .

Is this not possible, or do I need to change something?

TIA,


Roderick Mann   rmann @ latencyzero.com.sansspam





JNDI Realms and Win2000 Active Directory

2001-09-18 Thread Lawson, Rick

Has anybody successfully used Active Directory as a source for JNDI Realms
in Tomcat 4.0?

If so, I can dump ASP at last...

Rick Lawson
Infrastructure Specialist
Napp Pharmaceutical Holdings



___
CONFIDENTIALITY NOTICE

The information contained in this e-mail is intended only for the individual or entity 
to whom it is addressed.  It may contain confidential and privileged information and 
if you are not an intended recipient, you must not copy, distribute or take any action 
in reliance on it.  If you have received this e-mail in error, please notify the 
sender and destroy and delete the message from your computer.

_
This message has been checked for all known viruses by UUNET delivered 
through the MessageLabs Virus Control Centre. For further information visit
http://www.uk.uu.net/products/security/virus/



Is there a way to override where Catalina looks for the conf andwebapps directories?

2001-09-10 Thread Rick Mann

If I could set a command-line options or (better yet) an environment
variable to specify the location of the conf and webapp directories, it
would make upgrading to newer versions of Tomcat much easier.

That way, I could have all of my webapps and my configuration files in one
place, and I could add new versions of tomcat without worrying about
modifying a web app or conf file.

Is there a good way to do this? Thanks,


Roderick Mann   rmann @ latencyzero.com.sansspam





Error 500 in Tomcat Servlet initialization under jk_nt_service

2001-09-10 Thread Rick Hodgson

I've encountered an error which I've not seen discussed in any thread.

I get a null pointer exception when I attempt to execute my servlet via
Tomcat running under the jk_nt_service.exe module.

If I stop the "Jakarta" service and run "Tomcat" as a forground process,

my servlet works as expected.

Note, I get the exact same error if I run "Tomcat" via the "JavaService"

module mentioned in the TC3.2.3 documentation.

Also, my servlet is indirectly invoked via a "Do It" web page. This "Do
It" page is being correctly processed by "Tomcat as NT service".

Environment:
jdk1.3.1
j2sdkee1.2.1
IIS 5.5/sp1
Tomcat3.2.3 (dated 07/17/2001)
Win2K/sp2

Installed, configured and tested Tomcat3.2.3 with supplied "/examples".

Installed, configured and tested Tomcat3.2.3 "jk_nt_service.exe" with
supplied "/examples".

Deployed and configured my "ebiz" servlet in "webapps/ebiz".

Any attempt to invoke the servlet "Rwh_Ebiz_Svlt" fails with the
following:

-
Error: 500
Location: /ebiz/Rwh_Ebiz_Svlt
Internal Servlet Error:

java.lang.NullPointerException
 at java.lang.ClassLoader.resolveClass0(Native Method)
 at java.lang.ClassLoader.resolveClass(ClassLoader.java:588)
 at
org.apache.tomcat.loader.AdaptiveClassLoader.loadClass(AdaptiveClassLoader.java:518)

 at
org.apache.tomcat.loader.AdaptiveServletLoader.loadClass(AdaptiveServletLoader.java:174)

 at
org.apache.tomcat.core.ServletWrapper.loadServlet(ServletWrapper.java:265)

 at org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:289)
 at org.apache.tomcat.core.Handler.service(Handler.java:254)
 at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
 at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:812)

 at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
 at
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection(Ajp12ConnectionHandler.java:166)

 at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)

 at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)

 at java.lang.Thread
-

As can be seen, "Tomcat" does parse and attempt to load
"/ebiz/Rwh_Ebiz_Svlt" but fails.

The "stderr.log" from "Tomcat as service" shows the following extra line

in its exception handler:

-
2001-09-07 17:23:24 - Ctx( /ebiz ): Exception in: R( /ebiz +
Rwh_Ebiz_Svlt + null) - java.lang.NullPointerException
-

Also, we have "tracing" in our servlet code. The tracing never starts.
I.E. The ClassLoader invoked by Jakarta fails before our Servlet class
initialization.

Anyone else encounter this problem? Anyone have a solution?

Rick W. Hodgson




Re: Latest and Greatest Tomcat 4 Documentation

2001-09-09 Thread Rick Mann

Sorry...found the latest latest...thanks! I'll try this out and let you know
if I have problems.

Thanks again!


Roderick Mann   rmann @ latencyzero.com.sansspam





Re: Do the online Catalina docs reflect top-of-tree?

2001-09-08 Thread Rick Mann

on 9/8/01 7:15 PM, Craig R. McClanahan at [EMAIL PROTECTED] wrote:

> I am updating the "experimental" docs on the web site (which will end up
> being official in the final release) every couple of days or so.  Look for
> another update tomorrow, documenting how to configure JNDI resources.

Thanks! That's exactly what I seek.


Roderick Mann   rmann @ latencyzero.com.sansspam





Do the online Catalina docs reflect top-of-tree?

2001-09-08 Thread Rick Mann

Or do I need to check out the nightly sources to get the latest docs?


Roderick Mann   rmann @ latencyzero.com.sansspam





Error: 500 in jk_nt_service.exe; not "logoff" error

2001-09-07 Thread Rick Hodgson

I've encountered an error which I've not seen discussed in any thread.

I get a null pointer exception when I attempt to execute my servlet via
Tomcat running under the jk_nt_service.exe module.

If I stop the "Jakarta" service and run "Tomcat" as a forground process,
my servlet works as expected.

Note, I get the exact same error if I run "Tomcat" via the "JavaService"
module mentioned in the TC3.2.3 documentation.

Also, my servlet is indirectly invoked via a "Do It" web page. This "Do
It" page is being correctly processed by "Tomcat as NT service".

Environment:
jdk1.3.1
j2sdkee1.2.1
IIS 5.5/sp1
Tomcat3.2.3 (dated 07/17/2001)
Win2K/sp2

Installed, configured and tested Tomcat3.2.3 with supplied "/examples".

Installed, configured and tested Tomcat3.2.3 "jk_nt_service.exe" with
supplied "/examples".

Deployed and configured my "ebiz" servlet in "webapps/ebiz".

Any attempt to invoke the servlet "Rwh_Ebiz_Svlt" fails with the
following:

-
Error: 500
Location: /ebiz/Rwh_Ebiz_Svlt
Internal Servlet Error:

java.lang.NullPointerException
 at java.lang.ClassLoader.resolveClass0(Native Method)
 at java.lang.ClassLoader.resolveClass(ClassLoader.java:588)
 at
org.apache.tomcat.loader.AdaptiveClassLoader.loadClass(AdaptiveClassLoader.java:518)

 at
org.apache.tomcat.loader.AdaptiveServletLoader.loadClass(AdaptiveServletLoader.java:174)

 at
org.apache.tomcat.core.ServletWrapper.loadServlet(ServletWrapper.java:265)

 at org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:289)
 at org.apache.tomcat.core.Handler.service(Handler.java:254)
 at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
 at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:812)

 at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
 at
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection(Ajp12ConnectionHandler.java:166)

 at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)

 at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)

 at java.lang.Thread
-

As can be seen, "Tomcat" does parse and attempt to load
"/ebiz/Rwh_Ebiz_Svlt" but fails.

The "stderr.log" from "Tomcat as service" shows the following extra line
in its exception handler:

-
2001-09-07 17:23:24 - Ctx( /ebiz ): Exception in: R( /ebiz +
Rwh_Ebiz_Svlt + null) - java.lang.NullPointerException
-

Anyone else encounter this problem? Anyone have a solution?

Rick W. Hodgson



Re: does tomcat have the cajones?

2001-09-06 Thread Rick Mann

on 9/6/01 11:24 AM, Denis Haskin at [EMAIL PROTECTED] wrote:

> Er... I think you mean "cojones".  A cajon is a kind of percussion instrument.

Actually, a "cajon" is a drawer. "Caja" is box, so "cajon" could be a big
box (colloquial).

:-)


Roderick Mann   rmann @ latencyzero.com.sansspam





Missing Tomcat 4.0 (experimental) doc links?

2001-09-05 Thread Rick Mann

Many of the links under

http://jakarta.tomcat.org/tomcat/tomcat-4.0-doc-exp/config/

seem to be missing. Are they truly missing? Or are the links to them just
bad? The links in question are on the page

http://jakarta.tomcat.org/tomcat/tomcat-4.0-doc-exp/config/context.html

I'm trying to get to the Nested Component "Resources" page.

TIA,


Roderick Mann   rmann @ latencyzero.com.sansspam





Solved: How to complete the link between InitialContext() and?

2001-09-05 Thread Rick Mann

Ah! A simple look in the Server.xml file seems to have answered my question.
However, if anyone has additional input that might help me make sense of
what I just found, that'd be great. Thanks!


Roderick Mann   rmann @ latencyzero.com.sansspam





How to complete the link between InitialContext() and?

2001-09-05 Thread Rick Mann

I've read through Ch.5 of the J2EE 1.3 spec, looked at the Servlet 2.3 spec,
and poked around in the Tomcat docs. I'm not finding an answer to this
question:

How and where do I specify the signon information necessary to create a
proper DataSource object so that I can connect to my DB?

I have a Tomcat 4.0b7 running along with MySQL. I have/will created JDBC
2.0-derived classes to provide me with a DataSource for the MySQL db. I
understand how to specify a  in the web.xml file and I know
how to call InitialContext.lookup() to get a reference to the DataSource.

According to the J2EE 1.3 spec (J2EE.5.4.2, last paragraph), how and where
the specifics of creating a DataSource is up to the "container and resource
manager". Is there documentation on how I specify this in Catalina?

TIA,


Roderick Mann   rmann @ latencyzero.com.sansspam





Re: Is there a way to get the "docBase" property from within aservlet?

2001-09-05 Thread Rick Mann

on 9/1/01 9:48 PM, Craig R. McClanahan at [EMAIL PROTECTED] wrote:

>> Is there a Servlet spec-compliant way to get the webapp's directory's path
>> programmatically, from within a servlet?
> 
> No.
> 
>> Something like calling
>> ServletConfig.getInitParameter("docBase"), but something that's standard,
>> and that does not require me to specify the path explicitly in a
>> configuration file?
>> 
> 
> You are starting from an incorect assumption, that there *is* such a thing
> as a portable "directory path" to a web application.  It is entirely legal
> for a servlet container to run a web application directly from a WAR file
> (in which case there is no expanded directory), or by storing its static
> resources in some other sort of structure (such as being BLOB objects in a
> database).

Okay. I get that. How does one access a resource, then, whether it's a file
in a directory or a file in a WAR file? For example, we have properties
files that specify certain things for our web app. Currently, I provide a
full path, from root, to this file as an init param to a servlet that gets
loaded at context startup.

I'd like to be able to refer to this file relative to the web app's
directory (or within the web app's) .WAR file. Can you tell me how I'd go
about doing this, or what concepts to search for in the documentation to
answer this question?

As always, thanks for your help,


Roderick Mann   rmann @ latencyzero.com.sansspam





How to determine current search path?

2001-09-04 Thread Rick Mann

For debugging purposes, is there a way to determine what class directories
and jar files will be searched, and in what order, for a given context? I'm
happy to insert code into a servlet or JSP to dump this information, but I
want to be sure of the actual search path, considering all environment
variable settings, class loader settings, etc.

Is this possible? Is there a Java class that contains this information to
which I can make this query?

TIA,




Is there a way to get the "docBase" property from within aservlet?

2001-08-27 Thread Rick Mann

Is there a Servlet spec-compliant way to get the webapp's directory's path
programmatically, from within a servlet? Something like calling
ServletConfig.getInitParameter("docBase"), but something that's standard,
and that does not require me to specify the path explicitly in a
configuration file?

TIA,

Rick




Re: configuring tomcat with Win 2000

2001-08-27 Thread Rick Hodgson

There's no difference between the two W** systems.

I used the WNT Tomcat3.2.3 install instructions with the IIS5.0 "howto"
instructions on a W2K/sp2 system with only minor problems.

The main problems are the IIS5.0 "howto" requires a number of changes to
.\conf and the W2K registry. If you don't get things exactly correct, you
may not have a working system.

If you are planning to run TC3.2.3 with Apache on W2k, you'll have an easier
install.

Luck,


RickH


anand wrote:

> Hi,
>
> I need some help in configuring tomcat with Win2000. I am running tomcat
> with WinNT (used the tomcat-IIS how to). Is the procedure for
> configuring with Win2000 also the same.
>
> Pls let me know,
>
> Regards,
> Anand.

--
"Don't worry, Be Happy, Be Happy now..."




Re: Load balancing tomcat and webapp directory location

2001-08-24 Thread Rick Anderson


It seems that this is what I was looking for:
http://jakarta.apache.org/tomcat/tomcat-3.2-doc/Tomcat-Workers-HowTo.html

I have read the mod_jk document and it does not discuss the details of
load balancing tomcat.

http://www.google.com/search?as_q=tomcat&num=10&btnG=Google+Search&as_epq=load+balance&as_oq=&as_eq=&lr=&as_qdr=all&as_occt=any&as_dt=i&as_sitesearch=jakarta.apache.org&safe=off

--Rick
______
Rick Anderson   | [EMAIL PROTECTED]
|_
Rutgers University, Continuous Education & Outreach
Consulting System Administrator,  (732)932-3938
__

On Fri, 24 Aug 2001, David Cassidy wrote:

> I'm sure a million people are going to say
> 
> RTFM
> 
> But I'm nice :)
> 
> Have a look at mod_jk . It is a very nice module and allows 
> apache to send requests through to tomcat.
> You can have more than one apache and more than tomcat - depending
> on how many machines you have :)
> 
> Your webapps setup is a tomcat thing. I tend to copy zero length
> files ( ie blank .jsp pages) onto the area that apache serves from
> so that it can do the checks for index.jsp etc and be happy !
> 
> Happy reading
> 
> David
> 
> 
> Rick Anderson wrote:
> > 
> > We're using tomcat 3.2.3 at the moment and are attempting to configure
> > tomcat so that it can be load balanced behind an apache web server.
> > 
> > Where should the webapps directory be located? Does it need to copied
> > onto
> > each machine running tomcat or can it be located on the apache server?
> > 
> > I haven't found docs on this yet. If some one could point me in the
> > right
> > direction I'd appreciate it.
> > 
> > Thanks,
> > -Rick Anderson
> > 
> > __
> > Rick Anderson   | [EMAIL PROTECTED]
> > |_
> > Rutgers University, Continuous Education & Outreach
> > Consulting System Administrator,  (732)932-3938
> > __
> 




Load balancing tomcat and webapp directory location

2001-08-23 Thread Rick Anderson


We're using tomcat 3.2.3 at the moment and are attempting to configure
tomcat so that it can be load balanced behind an apache web server.

Where should the webapps directory be located? Does it need to copied onto
each machine running tomcat or can it be located on the apache server?

I haven't found docs on this yet. If some one could point me in the right
direction I'd appreciate it.

Thanks,
-Rick Anderson



__
Rick Anderson   | [EMAIL PROTECTED]
|_
Rutgers University, Continuous Education & Outreach
Consulting System Administrator,  (732)932-3938
__




TC3.2.3, W2K Professional and IIS5.0

2001-08-23 Thread Rick Hodgson

I'm having a slightly different problem with TC3.2.3 and IIS5.0.

I do have "isapi_redirect.dll" being initialized by IIS.

Also, IIS, is invoking "isapi_redirect.dll" for an incoming URL request.

The "isapi_redirect.dll" does parse the URL, determine that
"/examples/jsp/index" is a "servlet" URL, determine that "worker"
"ajp12" should handle the request.

However, "isapi_redirect.dll" stops before communicating with the
"worker" "ajp12" and returning "Not Found" to IIS (I'm assuming some
negative response because IIS responds with 404). Note, I'm using the
"http://localhost/examples/jsp/index.html"; URL as recommended by the
TC3.2.3 install notes for IIS. This is a valid directory(s)/file under
the "webapps" directory.

Combinations of software which I've used:
 A.
TC3.2.3
W2K/sp2 Professional
IIS5.0 that comes with W2K Professional
JDK1.2.2
JDK1.3.1
out of process "tomcat" worker
in process "tomcat" worker
 B.
TC3.2.2
W2K/sp2 Professional
IIS5.0 that comes with W2K Professional
JDK1.3.1
out of process "tomcat" worker

The "iis_redirect.reg-auto" does show that my registry entries are
correct.

Under IIS, the "jakarta" filter does have the "up green arrow". Also,
the "isapi.log" is being generated whenever I start IIS (I'm using
log_level=debug).

I have the "connector" for "/examples" set with "debug=10" in order to
see any "connect" activity. There has never been any "connect" activity.
I have verified that "ajp12", and nobody else, is using ports 8080 and
8007.

The last six lines from "logs/isapi.log" are always the same when
"isapi_redirect.dll" is invoked (except for "avp12" (out of process) and
"jni" (in process)).

 Begin log snippet

[jk_isapi_plugin.c (408)]: HttpFilterProc started
[jk_isapi_plugin.c (429)]: In HttpFilterProc test redirection of
/examples/jsp/index.html
[jk_uri_worker_map.c (345)]: Into jk_uri_worker_map_t::map_uri_to_worker

[jk_uri_worker_map.c (407)]: jk_uri_worker_map_t::map_uri_to_worker,
Found a match ajp12
[jk_isapi_plugin.c (439)]: HttpFilterProc [/examples/jsp/index.html] is
a servlet url - should redirect to ajp12
[jk_isapi_plugin.c (461)]: HttpFilterProc check if
[/examples/jsp/index.html] is points to the web-inf directory
  End log snippet


The records from the IIS log:

 Begin log snippet

#Software: Microsoft Internet Information Services 5.0
#Version: 1.0
#Date: 2001-08-23 19:54:28
#Fields: time c-ip cs-method cs-uri-stem sc-status
19:54:28 127.0.0.1 GET /Default.htm 304
19:54:30 127.0.0.1 GET /jakarta/isapi_redirect.dll+ 404
  End log snippet


Any help would be appreciated.


Rick W. Hodgson





Re: JDBC

2001-08-10 Thread Rick Edwards

MS Excel: application/vnd.ms-excel
MIME-Version: 1.0
Message-Id: <0108100800480H.02041@ricke_linux>
Content-Transfer-Encoding: quoted-printable

No, but you're free to do it yourself.

=46rom the mysql.com site ( http://www.mysql.com/doc/J/a/Java.html )
   http://www.mysql.com/downloads/api-jdbc.html
   or
   http://mmmysql.sourceforge.net/ .

Disclaimer: The only JDBC driver I've used is for Informix.

Best of luck.

Rick

On Thursday 09 August 2001 04:47 pm, you wrote:
> Does Tomcat have all the necessary JDBC drivers installed to successful=
ly
> connect to a mysql database?  I will be installing Tomcat on Linux Mand=
rake
> 8with Apache shortly.  And I will be developing JSP programs that use
> MySql.
>
>
> Thanks,
> Michael
> Johnson
>
> -
> This message was sent using Endymion MailMan.
> http://www.endymion.com/products/mailman/



Re: processes don't die

2001-07-17 Thread Rick Bosch

DO you have any servlets or application beans that have threads listening on
any ports of updating data or something like that?

rick

> From: Jeff Hoare <[EMAIL PROTECTED]>
> Reply-To: [EMAIL PROTECTED]
> Date: Wed, 18 Jul 2001 18:14:33 +1000
> To: [EMAIL PROTECTED]
> Subject: processes don't die
> 
> Hi,
> When I use the shutdown script for Tomcat (version 4) it does not stop all
> the java processes. There are 28 java processes normally, however, after
> executing shutdown 23 are still left. If I restart Tomcat they all seem to
> die and then eventually come back (u know the expected 28).
> The processes left after the shutdown are all owned by the same parent so
> terminating them is easy, but does anyone have an idea what is going on. I'm
> using the IBM's jdk1.3 on linux (which uses native threads).
> 
> Jeff




HANDLER THREAD PROBLEM

2001-07-12 Thread Rick Bosch

I was getting this error, I rebuilt and it went away but my buddy is getting
it on his development box.  It happens when you make an http request to
tomcat , I believe its an error in .conf or .xml and I wonder if anyone is
familiar with it.


thanksTIA();
rick


HANDLER THREAD PROBLEM:
java.lang.NullPointerException
java.lang.NullPointerException
at
org.apache.tomcat.core.ContextManager.handleError(ContextManager.java:644)

at org.apache.tomcat.core.ContextManager.service(ContextManager.java:566)

at 
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection
(Ajp12ConnectionHandler.java:156)
at
org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338
)
at java.lang.Thread.run(Thread.java:479)





Re: Nasty OutofMemory problem - possible reason: Cookie name path is a reserved token Exception?

2001-07-10 Thread Rick

do you have a simple application or does it have complex components like rmi
server or pooling.  Look for data structures like pooling that have refrences
that never go away,  It may be something is allocating objects to a thread that
never dies it may help if you set stuff you are not using to null.  Tell us more
about what your application is doing, how moany seperate components does it
utilize and if you run those alone on a server does it still throw the
exception.


good luck
rick

Ben Parker wrote:

> We are facing a very persisitent and nasty OutofMemory problem and have
> narrowed down the possible culprits
>
> SETUP:
>
> Linux 2.2.14 SMP
> Tomcat 3.2.2 binary
> JDK (Sun 1.3)
> Apache 1.3.16 (with mod_usertrack for cookies)
> mod_jk compiled from source (thanks to this list's archives, that helped the
> 99% CPU problem we had earlier!)
>
> PROBLEM:
>
> However much memory we throw at it, after a few hours, Tomcat gives up with
> an OutofMemory Exception.
>
> We gave the JVM 128, 256, 512 and today, 1024M RAM, and still it happens. In
> server.xml, max_threads is set to 150, as is Apache's MaxClients.
>
> There are rarely more than 85 httpd processes runnig, and 40 of those are
> spares. So let's say 50 concurrent users is high for us.
>
> Now, some earlier code used to use a cookie name "path" until we realised it
> is not a good thing. Despite cleaning up whereever we can, we get several of
> these errors on different pages, which seem to precipiate memory leaking or
> wasting:
>
> 2001-07-09 08:35:49 - Ctx( /site ): Exception in: R( /site +
> /africa/index.jsp +
>  null) - java.lang.IllegalArgumentException: Cookie name path is a reserved
> token
>
> We are sure the page is not requesting the cookie, but it is possible the
> browser once had the cookie set in the past from earlier code.
>
> THE QUESTION: How can we catch this error gracefully and stop it eating
> memory? Does this sound like the lilkely culprit? We are also running Jive
> 1.2.4, in case anyone has found any problems with that. How can the cookie
> make a problem if the page is not requesting it?
>
> Any suggestions gratefully received.
>
> Ben Parker
> Nairobi




is there anybody out there, is there anyone at all

2001-06-29 Thread Rick Tully

hey guys,

Ive installed catalina and deployed a web app which requires basic
authentication.
With catalina in standalone mode(using the MemoryRealm), the login pops up
and works as expected.
However, with apache 1.3x and the mod_webapp built from the
jakarta-tomcat-4.0-b5-src, the same web app produces
a login popup but authentication fails. Has anyone tried basic
authentication with apache and catalina?
im hoping its just a silly configuration issue but im at wits end and would
appreciate any help.
thanx, rick



wassup wid dat cat?

2001-06-29 Thread Rick Tully

hey guys,

Ive installed catalina and deployed a web app which requires basic
authentication.
With catalina in standalone mode(using the MemoryRealm), the login pops up
and works as expected.
However, with apache 1.3x and the mod_webapp built from the
jakarta-tomcat-4.0-b5-src, the same web app produces
a login popup but authentication fails. Has anyone tried basic
authentication with apache and catalina?
im hoping its just a silly configuration issue but im at wits end and would
appreciate any help.
thanx, rick



catalina apache authentication

2001-06-28 Thread Rick Tully

hey guys,

Ive installed catalina and deployed a web app which requires basic
authentication.
With catalina in standalone mode(using the MemoryRealm), the login pops up
and works as expected.
However, with apache 1.3x and the mod_webapp built from the
jakarta-tomcat-4.0-b5-src, the same web app produces
a login popup but authentication fails. Has anyone tried basic
authentication with apache and catalina?
im hoping its just a silly configuration issue but im at wits end and would
appreciate any help.
thanx, rick



Help me on Active X and tomcat.

2001-05-07 Thread RODGERS,RICK (HP-Cupertino,ex3)

I have an application using IE explorer 4.X as an Active X control that uses
a window provided to it by the Active X container application.

The problem is that the browser inside the container window can not seem to
connect 
to the Webserver (tomcat). I see no error, its just that I can not
display files trough a URL such
as"http://localhost:8080/examples/jsp/filename";

If anyone has any idea what the problem is it would sure BE APRECIATED!


Rick




RE: Why does Internet Explorer think it is offline?

2001-05-07 Thread RODGERS,RICK (HP-Cupertino,ex3)

 
 

--
Thanks for your info. But please tell me what makes an "active internet

connection" ? I am hooked up to a switch and I have tomcat running on the

system I am using. Doesn't this make for an "active internet connection"?

Rick


[RODGERS,RICK (HP-Cupertino,ex3)]  -Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 07, 2001 1:19 PM
To: [EMAIL PROTECTED]
Subject: Re: Why does Internet Explorer think it is offline?



Your problem has nothing to do with Tomcat, or Apache, or any other server
on 
god's green earth... 

The problem isn't a problem, it's just IE checking for an active internet 
connection and not finding one. Just click "try again" and it'll find the 
server. There is, to my knowledge, no way around it. 

Netscape, BTW, does not behave in this fashion. It's just a MonopolySoft, 
err, Microsoft quirk. 

regards, 
MTiffany 




RE: Why does Internet Explorer think it is offline?

2001-05-07 Thread RODGERS,RICK (HP-Cupertino,ex3)



> 
> I have found that IE really wants to have the HTTP:// in front of the

I do use http. I use "http://localhost/8080/examples/jsp/filename";
> localhost - On mine, it wants to change localhost:8080/whatever to
> local:8080/whatever and I get a similar error to what you mention.

it shortens it to "local"? Thats weird.

> 
> Could this be part of your problem?
> 
> -----Original Message-
> From: RODGERS,RICK (HP-Cupertino,ex3) [mailto:[EMAIL PROTECTED]]
> Sent: Monday, May 07, 2001 11:18 AM
> To: '[EMAIL PROTECTED]'
> Subject: Why does Internet Explorer think it is offline?
> 
> 
> 
> I am using tomcat with IE and am having problems with it.
> Every time I start IE and try and access a Java Server Page or
> servlet through "lolcalhost:8080/examples/jsp" the browser 
> first complains
> that the system is not connected to a network. I then click on
> "try again" and the browser then seems to find the JSPand display it.
> Is there a special setting for tomcat if the system is connected to a
> hub?
> 
> Any thoughts?
> 
> Rick
> 



Why does Internet Explorer think it is offline?

2001-05-07 Thread RODGERS,RICK (HP-Cupertino,ex3)


I am using tomcat with IE and am having problems with it. 
Every time I start IE and try and access a Java Server Page or
servlet through "lolcalhost:8080/examples/jsp" the browser first complains 
that the system is not connected to a network. I then click on
"try again" and the browser then seems to find the JSPand display it.
Is there a special setting for tomcat if the system is connected to a
hub?

Any thoughts?

Rick



Re: Boycott China - please read - your life may depend on it

2001-04-30 Thread Rick Horowitz

Hi,

I'm the person who started this thread (accidentally, if you all 
recall.)  I was hoping that this thread would just die, but unfortunately 
people are still posting.

I suggest we move this discussion to the NNTP newsgroup 
"talk.politics.china" that appears to be heavily used, and appropriate to 
this discussion.

Again, my very sincere apologies for bothering this list, and also with the 
inflammatory nature of my original message. One should always re-read a 
potentially inflammatory message before sending, something I did not do in 
this case.

To the Tomcat list moderator - is it possible to purge the archives of this 
thread so that these messages do, in fact, cease?

Sincerely,

Rick Horowitz


_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com




My apologies

2001-04-26 Thread Rick Horowitz

My sincere apologies to the mailing list for the Boycott China message. I 
sent it by accident, without filtering mailing list addresses from my 
personal email addresses before sending.

Sincerely,



Rick Horowitz


_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com




Boycott China - please read - your life may depend on it

2001-04-26 Thread Rick Horowitz

Hello Everyone,

The following speech, reprinted from www.newsmax.com, was made this Tuesday 
night by U.S. Congressman Dana Rohrabacher of California. I urge you all to 
read every word of this speech. I have been aware of much of the budding 
catastrophe we face regarding China, yet have not seen the issues 
articulated with anything near the clarity that Mr. Rohrabacher does in 
this speech.

My wife and I began boycotting Chinese-made goods about a year ago in 
recognition of the reasons outlined here. I urge every one of you to 
forward this message to everyone in your email list, and begin boycotting 
Chinese goods immediately.

My own brief summary of the issues:

1. Our extreme trade deficit vs. China (nearly $100B per year now) has been 
used for a massive military buildup, with the U.S. as the ultimate target.
2. Russia is selling their most advanced arms to China, capable of 
destroying our aircraft carriers, including a supersonic torpedo technology 
that is far beyond anything that we have and for which we have no defense.
3. Our leading defense contractors, including Loral, Boeing, Hughes, 
Motorola, and others have sold advanced military technology to China over 
the past few years, including technology that now enables Chinese 
nuclear-armed intercontinental ballistic missiles to accurately hit 
American cities, something they were not able to do prior to this transfer 
of technology.
4. The majority of the "partner" companies of U.S. ventures in China are in 
fact owned and operated by the PLA (the People's Liberation Army - the 
Chinese army). These are not commercial interests.
5. The U.S. government (read you and I) have been providing tax breaks to 
American companies to close up factories in the U.S. and reopen them in 
China. These factories transfer advanced technology in many cases, put 
Americans out of work, and provide cash to the Chinese to further their 
military expansion.

I hope these points and the following reprinted speech make you think long 
and hard about our position regarding China, and that you:

1. Start boycotting Chinese-made goods immediately
2. Send this message to everyone on your email list. Please don't be 
embarrassed to take a stand on this. I assure you, it is not my imagination 
that China poses a significant threat to our safety and future, and we are 
giving them the money, technology, and weaponry to carry out their many 
threats already made against our country.

Here's one informational link...I'm sure you can find may others yourself.

PLEASE read Mr. Rohrabacher's speech, below:

http://abcnews.go.com/sections/world/DailyNews/chinamissiles_990409.html
includes, "A Chinese official hinted at launching a nuclear weapon
at Los Angeles in 1996, when U.S. warships confronted
China over missile firings near Taiwan."

Make no mistake about it. The Chinese government is a dictatorship, and is 
very dangerous.

Sincerely,

Rick Horowitz

Rohrabacher Slams U.S. Aid to China

Rep. Dana Rohrabacher
Thursday, April 26, 2001

Editor's note: This is the text of a speech on the House floor by
U.S. Rep. Dana Rohrabacher, R-Calif., Tuesday night.

Mr. Speaker, one month ago, the Communist regime that controls
the mainland of China attacked an American surveillance aircraft
while it was in international waters. After being knocked out of the
sky, 24 American military personnel, the crew of the surveillance
craft, were held hostage for nearly 2 weeks. The Communist
Chinese blamed us and would not return the crew until the United
States was humiliated before the world.

Wake up, America. What is going on here? Large financial interests
in our country whose only goal is exploiting the cheap, near-slave
labor of China have been leading our country down the path to
catastrophe. How much more proof do we need that the so-called
engagement theory is a total failure?

Our massive investment in China, pushed and promoted by
American billionaires and multinational corporations, has created
not a more peaceful, democratic China, but an aggressive
nuclear-armed bully that now threatens the world with its hostile acts
and proliferation. Do the Communist Chinese have to murder
American personnel or attack the United States or our allies with
their missiles before those who blithesomely pontificate about the
civilizing benefits of building the Chinese economy will admit that
China for a decade has been going in the opposite direction than
predicted by the so-called ``free traders.''

'We Have Made a Monstrous Mistake'

We have made a monstrous mistake, and if we do not face reality
and change our fundamental policies, instead of peace, there will be
conflict. Instead of democratic reform, we will see a further
retrenchment of a regime that is run by gangsters and thugs, the
world's worst human rights abusers.

Let us go back to basics. The mainland of China is controlled by a
rigid, Stalinistic Comm

Re: New to user-mailing-list (mod_jk)

2001-04-20 Thread Rick


Ik didnt work !!!

I have been working for 1 hour to reinstall everything
this is what I did (after a clean red hat 7.0 install)

01: cd /tmp/apache1.3.19
02: ./configure --prefix=/usr/local/apache --enable-module=so
03: cd /tmp/php4.0.4
04:
./configure --with-mysql --with-apache=../apache1.3.19 --enable-track-vars
05: make
06:.make install
07: cd /tmp/apache1.3.19
08: ./configure --activate-module=src/modules/php4/libphp4.a
09: make
10: make install
11: cd /tmp/php4.0.4
12: cp php.ini-dist /usr/local/lib/php.ini

*** edit httpd.conf ***
13: AddType application/x-httpd-php .php

 unzip/tar Tomcat to /usr/local/jakarta-tomcat ***
14: cd /usr/local/jakarta-tomcat/bin

 edit tomcat to let tomcat know where the JDK is ***
15: ./startup.sh

 copy mod_jk.so to /apache/libexec ***
*** edit httpd.conf ***
Include "/usr/local/jakarta-tomcat/conf/mod_jk.conf-auto"

16: cd /usr/local/apache/bin
17: ./apachectl start

the SAME error again

-
Sytax error on line 8 of /usr/local/jakarta-tomcat/conf/mod_jk.conf-auto:
Invalid command 'LoadModule', perhaps mis-spelled or defined by a module not
included in the server configuration
./apachectl start: httpd could not be started

-

now I can completey start all over again...
does anybody know the configuration that does enable the use of LoadModule ?

rick

- Original Message -
From: "Wesselmann, Marcus" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, April 20, 2001 2:54 PM
Subject: AW: New to user-mailing-list


Hi,

At compile-time you only have to use --enable-module=so

When Apache is compiled and installed you enable mod_jk with an appropiate
LoadModule entry in httpd.conf.

At least that worked fine for me :)

Regards,

Marcus

-Ursprüngliche Nachricht-
Von: Rick [mailto:[EMAIL PROTECTED]]
Gesendet: Freitag, 20. April 2001 14:16
An: [EMAIL PROTECTED]
Betreff: Re: New to user-mailing-list



sorry to bother you once more with the same question
but before I really configure apache (I might do something wrong, and let me
start all over again)

should I use: --enable-shared or --enable-module=so

in the configuration to enable me to use mod_jk.so

I read the documentation, but this talked about stuff Im not familiar
with...

regards
rick





Re: New to user-mailing-list

2001-04-20 Thread Rick


sorry to bother you once more with the same question
but before I really configure apache (I might do something wrong, and let me
start all over again)

should I use: --enable-shared or --enable-module=so

in the configuration to enable me to use mod_jk.so

I read the documentation, but this talked about stuff Im not familiar
with...

regards
rick





Re: New to user-mailing-list

2001-04-20 Thread Rick


well I used a different Apache-how-to (which was made with php in mind)
after reading the devshed manual I came to the conclusion I needed to
re-install Red Hat (apache configuration was wrong)

and now reinstall like this

cd /tmp/apache1.3.19
./configure --prefix=/usr/local/apache --enable-module=so <- I didn't do
this, that's why I couldnt use LoadModule
cd /tmp/php4.0.4
./configure --with-mysql --with-apache=../apache1.3.19 --enable-track-vars
make
make install
cd /tmp/apache1.3.19
./configure --activate-module=src/modules/php4/libphp4.a
make
make install
cd /tmp/php4.0.4
cp php.ini-dist /usr/local/lib/php.ini
*** edit httpd.conf ***
AddType application/x-httpd-php .php
 unzip/tar Tomcat to 
/usr/local/jakarta-tomcat
cd bin
 edit tomcat to know where the JDK is ***
 Start Tomcat ***
 copy mod_jk.so to /apache/libexec ***
*** edit httpd.conf ***
Include "/usr/local/jakarta-tomcat/conf/mod_jk.conf-auto"

Start Apache


any comments ?

- Original Message -
From: "Wesselmann, Marcus" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, April 20, 2001 12:30 PM
Subject: AW: New to user-mailing-list


mod_jk :
http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/mod_jk-howto.html

Building Apache : http://www.devshed.com/Server_Side/Administration/APACHE/

At least this is, what I used... :)

-Ursprüngliche Nachricht-
Von: Rick [mailto:[EMAIL PROTECTED]]
Gesendet: Freitag, 20. April 2001 12:32
An: [EMAIL PROTECTED]
Betreff: Re: New to user-mailing-list


thank you .. I guess
any howtos you can point me to ?

- Original Message -
From: Wesselmann, Marcus
To: '[EMAIL PROTECTED]'
Sent: Friday, April 20, 2001 12:17 PM
Subject: AW: New to user-mailing-list


Hi,

you need do use mod_jk as an DSO, so mod_so has to be compiled into Apache.
Linking mod_jk statically to Apache isn't trivial nor recommended.

Regards,

Marcus
-Ursprüngliche Nachricht-
Von: Rick [mailto:[EMAIL PROTECTED]]
Gesendet: Freitag, 20. April 2001 12:16
An: [EMAIL PROTECTED]
Betreff: New to user-mailing-list


Hi people,

I'm new to the Tomcat-user-list,
main reason for this was ofcourse an annoying problem with installing Tomcat
the way I want.
I was hoping somebody reading this mail could help me.

My situation is as followes:

I want a JSP Server on Linux with Apache for better stability
I have:

- Red Hat 7.0 (installed without X-Windows)
- MySQL 3.23.35 (RPM)
- Apache 1.3.19 + Php-4.0.4pl1 ( Installed according to docs on
http://www.php.net )
- JDK 1.3 (RPM) fixed the "libstc++-glibc6 versionproblem"
- Tomcat 3.2.1 (Binary dist)


Tomcat works fine
Apache works fine
PHP works fine
MySQL works fine

BUT ... I want to use mod_jk.so for Tomcat/Apache connection
this is where it goes wrong. As far as I understand self-compiling mod_jk.so
is not necissary
(even if I wanted to ... Apache doesnt support DSO here)

I did this:

- move mod_jk.so to: /apache/libexec/
- Start Tomcat
- edit httpd.conf and add the line: Include
"/usr/local/jakarta-tomcat/conf.mod_jk.conf-auto"
- Start Apache

apache wouldn't start..
this is my Consoledump.

Sytax error on line 8 of /usr/local/jakarta-tomcat/conf/mod_jk.conf-auto:
Invalid
command 'LoadModule', perhaps mis-spelled or defined by a module not
included in the serverconfiguration
./apachectl start: httpd could not be started
===

If anybody knows what my problem is or can give me any suggestions...plz
tell me !

Thnx in advance
Rick





Re: New to user-mailing-list

2001-04-20 Thread Rick


would that be the:
./configure --prefix=/usr/local/apache --enable-module=most ?

(you could just told me =)

- Original Message -
From: "Ansgar W. Konermann" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, April 20, 2001 12:36 PM
Subject: Re: New to user-mailing-list


> Hello Rick, hi all,
>
> > Rick wrote:
> [...]
> > (even if I wanted to ... Apache doesnt support DSO here)
>
> As I understand it, DSO means support for dynamic shared
> objects - and mod_jk.so is a dynamic shared object (hence
> the filename .so for Shared Object).
>
> So if Apache does not support DSO, it does not support
> configuration commands which load DSOs, like "LoadModule"
> is one.
>
> > command 'LoadModule', perhaps mis-spelled
> > or defined by a module not included in the serverconfiguration
>   ^^
>
> I suppose that's it...
>
> > If anybody knows what my problem is or can give me any suggestions...plz
> > tell me !
>
> Get an Apache with DSO support enabled, or compile it for yourself if you
> like.
>
> HIH
>
> --
> Best regards,
>
> Ansgar W. Konermann
>
> --- Hello, I am a message footer. -
>





Re: New to user-mailing-list

2001-04-20 Thread Rick



thank you .. I guess
any howtos you can point me to ?
 

  - Original Message - 
  From: 
  Wesselmann, Marcus 
  To: '[EMAIL PROTECTED]' 
  
  Sent: Friday, April 20, 2001 12:17 
  PM
  Subject: AW: New to 
  user-mailing-list
  
  Hi,
   
  you 
  need do use mod_jk as an DSO, so mod_so has to be compiled into Apache. 
  Linking mod_jk statically to Apache isn't trivial nor 
  recommended.
   
  Regards,
   
  Marcus
  
-Ursprüngliche Nachricht-Von: Rick 
[mailto:[EMAIL PROTECTED]]Gesendet: Freitag, 20. April 2001 
12:16An: [EMAIL PROTECTED]Betreff: 
New to user-mailing-list
Hi people,I'm new to the 
Tomcat-user-list,main reason for this was ofcourse an annoying problem 
with installing Tomcatthe way I want.I was hoping somebody reading 
this mail could help me.My situation is as followes:I want a 
JSP Server on Linux with Apache for better stabilityI have:- Red 
Hat 7.0 (installed without X-Windows)- MySQL 3.23.35 (RPM)- Apache 
1.3.19 + Php-4.0.4pl1 ( Installed according to docs onhttp://www.php.net )- JDK 1.3 (RPM) fixed the "libstc++-glibc6 versionproblem"- 
Tomcat 3.2.1 (Binary dist)Tomcat works fineApache works 
finePHP works fineMySQL works fineBUT ... I want to use 
mod_jk.so for Tomcat/Apache connectionthis is where it goes wrong. As 
far as I understand self-compiling mod_jk.sois not necissary(even if 
I wanted to ... Apache doesnt support DSO here)I did this:- 
move mod_jk.so to: /apache/libexec/- Start Tomcat- edit httpd.conf 
and add the line: 
Include"/usr/local/jakarta-tomcat/conf.mod_jk.conf-auto"- Start 
Apacheapache wouldn't start..this is my 
Consoledump.Sytax 
error on line 8 of 
/usr/local/jakarta-tomcat/conf/mod_jk.conf-auto:Invalidcommand 
'LoadModule', perhaps mis-spelled or defined by a module notincluded in 
the serverconfiguration./apachectl start: httpd could not be 
started===If 
anybody knows what my problem is or can give me any 
suggestions...plztell me !Thnx in 
advanceRick


New to user-mailing-list

2001-04-20 Thread Rick



Hi people,I'm new to the 
Tomcat-user-list,main reason for this was ofcourse an annoying problem with 
installing Tomcatthe way I want.I was hoping somebody reading this mail 
could help me.My situation is as followes:I want a JSP Server on 
Linux with Apache for better stabilityI have:- Red Hat 7.0 
(installed without X-Windows)- MySQL 3.23.35 (RPM)- Apache 1.3.19 + 
Php-4.0.4pl1 ( Installed according to docs onhttp://www.php.net )- JDK 1.3 (RPM) fixed the "libstc++-glibc6 versionproblem"- 
Tomcat 3.2.1 (Binary dist)Tomcat works fineApache works 
finePHP works fineMySQL works fineBUT ... I want to use 
mod_jk.so for Tomcat/Apache connectionthis is where it goes wrong. As far as 
I understand self-compiling mod_jk.sois not necissary(even if I wanted 
to ... Apache doesnt support DSO here)I did this:- move 
mod_jk.so to: /apache/libexec/- Start Tomcat- edit httpd.conf and add 
the line: Include"/usr/local/jakarta-tomcat/conf.mod_jk.conf-auto"- 
Start Apacheapache wouldn't start..this is my 
Consoledump.Sytax 
error on line 8 of 
/usr/local/jakarta-tomcat/conf/mod_jk.conf-auto:Invalidcommand 
'LoadModule', perhaps mis-spelled or defined by a module notincluded in the 
serverconfiguration./apachectl start: httpd could not be 
started===If 
anybody knows what my problem is or can give me any suggestions...plztell me 
!Thnx in advanceRick


Core Dump - Again

2001-03-30 Thread Rick Roberts

Everything was beautiful under RedHat 6.2.

I just had to try out the new RH v7.0.

All sorts of things went bad!!!

I got everything running again, except Tomcat.

startup.sh core dumps.

I re-installed Tomcat, using the unmodified tomcat.conf and it still
core dumps.

Any one else seen this?

I need help!!

Thanks,

Rick



upgrade to RH 7.0 now get core dump

2001-03-30 Thread Rick Roberts

I upgraded to Red Hat 7.0.
Many things changed!   =8o

Tomcat core dumps on startup now.
Anyone seen this?
Any sugestions?


Thanks,

Rick



Beans with Tomcat 3.2.1

2001-03-12 Thread Rick Palmer

Please help,

Have installed Tomcat 3.2.1 successfully on W2K and all examples
work fine.  JSPs and servlets that we create also are hunky
dory.

The problem - beans do not work for me.

I reference the bean in the JSP in the usual way (have tried
it with and without the import):

<%@ page import =
"icegroup.beans.MyBean" %>




The error that results when I run the JSP is:
   org.apache.jasper.JasperException:  Attempted a bean
operation on a null object.


I have the bean class in my WEB-INF\classes directory (have also
  tried it in WEB-INF\classes\icegroup\beans).  Have also
tried
  setting the CLASSPATH directly to the class folder in the
Tomcat
  startup script.  ( The bean code is  shown below for
completeness. )

I have been digging into docs and forums for a couple of days
on this one so your ideas and help are greatly appreciated.

Thanks,

Rick Palmer
IceGroup, Inc.


...


package icegroup.beans;

public class MyBean implements java.io.Serializable
{
  private int myint;
  private String mystring;

    public MyBean()
    {
  myint = 1;
  mystring = "MyBean Generated
String";
    }

    public int getMyint()
    { return myint; }

    public void setMyint(int i)
    { myint = i; }

    public String getMystring()
    { return mystring; }

    public void setMystring(String s)
    { mystring = s; }
}






can not run tomcat on redhat7.0

2001-03-05 Thread Rick Yu

Hi,
   I've used jdk1.2.2 and tomcat on redhat6.2 before,it's good. But now when i install 
them on redhat7.0 and run "startup.sh", everything seems ok, but i can not visit port 
8080. Why? I've add correct classpath. 



Rick Yu
[EMAIL PROTECTED]


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




error cannot "LoadModule jk_module libexec/mod_jk.so"

2001-03-04 Thread Rick Yu

Hi,

  I'm using apache-1.3.14 and tomcat-3.2.1, I want to use mod_jk.
 
 I can visit port 8080, every thing is ok.

  Following "Working with mod_jk",I download and copy mod_jk.so to /www/libexec/, then 
chmod a+x mod_jk.so, and modify /usr/local/tomcat/conf/server.xml, and configuring 
Tomcat to use the Ajpv13 protocol, and Include /usr/local/tomcat/conf/mod_jk.conf-auto 
in my httpd.conf. 
  
  Now, I use startup.sh to start tomcat firstly, and use /www/bin/apachectl startssl 
to start apache, but it display

"Syntax error on line 8 of /usr/local/tomcat/conf/mod_jk.conf-auto:
Invalid command 'LoadModule', perhaps mis-spelled or defined by a module not included 
in the server configuration"

  why?


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




Re: Protecting mysql access (was: re: mySQL again)

2001-03-01 Thread Rick Herrick

On our server, we basically grant NO remote access privileges to ANY users, 
including root.  This means that any access to the database has to be done 
from the localhost.  So instead of doing the two normal grants you might 
do, like this:

GRANT SELECT,INSERT,UPDATE ON *.* TO soandso@localhost IDENTIFIED BY 
'password';
GRANT SELECT,INSERT,UPDATE ON *.* TO soandso@"%" IDENTIFIED BY 'password';

The first allows access from the localhost.  The second allows remote 
access.  Just don't do the second.  Then someone has to hack in and get 
local access to the database somehow and if they can do that, then you've 
got other security problems besides MySql!

At 08:01 AM 3/1/2001 -0800, you wrote:
>Slightly off topic, but important!
>
>Having seen way too much in terms of hacking and system compromises, might 
>I suggest you create another, and far less privileged user than root, for 
>accessing mysql.  Unless you've gone into the grant tables and creatd a 
>different mysql superuser and reduced root's priv, then the root login to 
>mysql is like root on unix, superuser, God, etc.  If multiple users have 
>shell access to the tomcat host system, and those same users are not 
>authorized as mysql root, than I know of no way to keep unauthorized eyes 
>from looking at the server.xml file other than by making it sysroot 
>protected. But to do that, you need to run tomcat under root.
>
>If anyone has a good mechanism for securing the server's and/or servlet's 
>credential for db access, I'd certainly love to hear it. That issue has 
>been my one and only thorn in the side since I began switching for 
>perl/cgi (where the solution to that issue is a no-brainer) to using tomcat.
>
>-- Rob
>
>--On Thursday, March 01, 2001 10:19:13 AM +0100 [EMAIL PROTECTED] wrote:
>
>>>Hi!
>>>My connectionURL in server.xml now looks like this:
>>>"jdbc:mysql://localhost/auth?user=root&password=somepassword"
>>>
>>>and tomcat doesn't start up (although there is no error msg or
>>>anything) and when i execute tomcat stop i get the following
>>>exception:
>>>org.xml.sax.SAXParseException: Next character must be ";" terminating
>>>reference to entity "password" and a stack trace follows...
>>>
>>>why is that?
>>
>>I guess you should escape the "&" character in your connectionURL by
>>replacing it with "&", as the XML parser will parse entities like
>>"<" or ""e;" or things like that...
>>
>>Try
>>
>>jdbc:mysql://localhost/auth?user=root&password=somepassword
>>
>>instead, that should work...
>>
>>np: Flanger - Nightbeat 1 (Midnight Sound)
>>
>>-
>>Sent through MailGateway - http://www.ssw.uni-linz.ac.at:2000/
>>Send or read your emails anywhere.
>>-
>>
>>-
>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>For additional commands, email: [EMAIL PROTECTED]
>
>
>
>
>   _ _ _ _   __ _ _ _ _
>  /\_\_\_\_\/\_\ /\_\_\_\_\_\
> /\/_/_/_/_/   /\/_/ \/_/_/_/_/_/  QUIDQUID LATINE DICTUM SIT,
>    /\/_/__\/_/ __/\/_//\/_/  PROFUNDUM VIDITUR
>   /\/_/_/_/_/ /\_\  /\/_//\/_/
>  /\/_/ \/_/  /\/_/_/\/_//\/_/ (Whatever is said in Latin
>  \/_/  \/_/  \/_/_/_/_/ \/_/  appears profound)
>
>  Rob Tanner
>  McMinnville, Oregon
>  [EMAIL PROTECTED]
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, email: [EMAIL PROTECTED]
>

--
Rick Herrick
[EMAIL PROTECTED]
Nothing is amusing in zero gravity...
PGP: http://www.rickherrick.com/pgpkey


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




Calling within and across webapp contexts

2001-02-28 Thread Rick Herrick

I asked the question earlier and never received a response, so I'll try again!

We have a JSP app that's currently running in JRun 2.3.3 (JSP 1.0 
compliant).  When we refer to different directories within the app, we 
always preface with the "context" name, or really the top-level virtual 
directory.  So if you want a common file, you do this:



The problem is that, testing under Tomcat, this doesn't work.  It tries to 
prepend the context name onto the path, so that this becomes 
/CpsAdmin/CpsAdmin/Common/loginForm.jsp.

My questions are:

* Is this part of the JSP 1.1 spec?  It flies in the face of conventional 
usage of path names across the board, i.e. anything that starts with '/' 
means you go to the top-level of the server hierarchy.  What's the rationale?

* Is there anyway to change this and make Tomcat do the "right" thing, i.e. 
see '/' as the server root?

* Does this also mean that you can't call across contexts?  That is, we 
produce our tools as separate items, since customers may install some 
pieces and not others.  But if two tools are installed, they can work 
together and then would need to call across contexts.  I can think of no 
good reason why this shouldn't be permitted, but based on this behavior, it 
does look as if it would.

Thanks in advance for any feedback!  Getting this worked out will help save 
me a TON of time porting over our apps!

Rick Herrick, AKA [EMAIL PROTECTED]
In zero gravity, nothing is amusing.
PGP: http://www.rickherrick.com/pgpkey


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




<    1   2   3   4   5   6   >