troubles in web.xml file ? tomcat can't find dtd.

2002-05-14 Thread staginfo-ar

Hi,
I've created new apps and add a new context in server.xml. I want to add a
new web.xml in the /WEB-INF.

I put this line at the beginning of web.xml.

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

But when I launched TOMCAT, An xml-Mapper error appears ( couldn't find
dtd ).
What can I do? I think the line isn't good, could you send me another one.
Thanks.
Jc



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




RE: Starting TOmcat at Bootup

2002-05-14 Thread Tomasz . Ciolek

Yes.

you also need to add it as links in the rc.0 through rc.6 directorries. just
have a look at what ssh or sendmail does

regards
Tomasz Ciolek

--
Tomasz M. Ciolek
Systems Administrator - CSIRO Entomology
Phone: 02-62464391 * Fax: 02-62464000
 

 -Original Message-
 From: Johnny [mailto:[EMAIL PROTECTED]] 
 Sent: Tuesday, 14 May 2002 17:00 
 To: Tomcat Users List
 Subject: RE: Starting TOmcat at Bootup
 
 
 
  Hi Carlos,
 
  In my Redhat v7.2 machine, I added the tomcat bootup file 
 (followed your
 script) inside init.d folder, but it's still not working. 
 Did I miss out
 something?
 
  Johnny.
 
 -Original Message-
 From: Carlos [mailto:[EMAIL PROTECTED]]
 Sent: Monday, May 13, 2002 9:33 PM
 To: 'Tomcat Users List'
 Subject: RE: Starting TOmcat at Bootup
 
 
 Hi Abraham,
 
 I am using a script that is very similar to one that I found 
 in earlier
 postings of this forum.  I created it with the webadmin, named it
 tomcat, and it installed n init.d.  It seem to start tomcat well in
 Linux RedHat v7.x.  I did not link it to the user tomcat like the
 postings of your e-mail suggest.
 
 Anyways, I would appreciate any comments about the script 
 that follows:
 
 
 #!/bin/sh
 # description: Starting Tomcat at bootup
 # chkconfig: 2345 99 00
 #
 
 # Source function library
 . /etc/rc.d/init.d/functions
 
 # See how we are called
 case $1 in
 start)
   echo -n Starting tomcat: 
   export JAVA_HOME=/opt/IBMJava2-131
 
 export CATALINA_HOME=/usr/local/jakarta-tomcat-4.0.1
 
   /usr/local/jakarta-tomcat-4.0.1/bin/startup.sh
 
   echo
   touch /var/lock/subsys/tomcat
   ;;
 stop)
   echo -n Shutting down tomcat: 
 
   export JAVA_HOME=/opt/IBMJava2-131
 export CATALINA_HOME=/usr/local/jakarta-tomcat-4.0.1
 
   /usr/local/jakarta-tomcat-4.0.1/bin/shutdown.sh
   rm -f /var/lock/subsys/tomcat
   ;;
 restart)
 $0 stop
 $0 start
 ;;
 *)
   echo Usage: $0 { start | stop|restart|reload|status }
 exit 1
   ;;
 esac
 exit 0
 
 Carlos Oliva
 Senior Programmer/Analyst
 Positive Business Solutions, Inc.
 Cincinnati, OH 45240-1640
 (513) 772 - 2255 ext 129
 [EMAIL PROTECTED]
 Yahoo ID: ramboid_1997
 
 
 
 --
 To unsubscribe, e-mail:   
 mailto:tomcat-user- [EMAIL PROTECTED]
 For 
 additional commands, 
 e-mail: mailto:[EMAIL PROTECTED]
 

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




mod_webapp

2002-05-14 Thread KL OOI

Can I use mod_webapp on MS W2K ? How and where to get?
I need to Apache 1.3 + Tomcat 4 run on MS W2K. 
Any recommendation?



Servlet doesn't return after init()

2002-05-14 Thread Will Sargent

Hi everybody,

I'm new to Tomcat, although I know servlets pretty well.  I have a 
problem with my XML-RPC application; I can get the servlet to run fine 
as a stand alone, and I can register it as a servlet, but somehow I 
can't get any response back from it after it loads.

I'm using Log4J as the logging service, and although I can get the 
initial log, I don't get any response from the doGet() or doPost() 
methods -- and I've tried System.out.println() on both of them without 
response.

I've also turned on verbosity=4 on everything I could lay hands on and 
turned on the RequestValueDumper... but no luck.  I have absolutely no 
idea why I can't map http://localhost:8080/bookie to my servlet.

Here's my web.xml file in case you know what I'm doing wrong.

Any clue as to what I should do next?  I'd love to be able to see what 
every request to tomcat was doing...

Will.


?xml version=1.0 encoding=ISO-8859-1?

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

web-app

  display-nameBookie/display-name
  descriptionThe Bookie Servlet/description

  context-param
param-namewebmaster/param-name
param-value[EMAIL PROTECTED]/param-value
description
  The EMAIL address of the administrator to whom questions
  and comments about this application should be addressed.
/description
  /context-param
  
  servlet
servlet-nameBookieServlet/servlet-name
servlet-classcom.tersesystems.bookie.service.xmlrpc.BookieServlet/servlet-class

init-param
  param-namelogging/param-name
  param-valued:/home/wsargent/work/bookie/server/conf/log_server.properties/param-value
  description
The location of the log4j logging file.
  /description
/init-param

init-param
  param-nameprofile/param-name
  param-valued:/home/wsargent/work/bookie/server/conf/profile.properties/param-value
  description
The location of the user profile. 
  /description
/init-param

load-on-startup5/load-on-startup
  /servlet
  
  servlet-mapping
servlet-nameBookieServlet/servlet-name
url-pattern/bookie/url-pattern
  /servlet-mapping
  
/web-app



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


Re: VM size increases.

2002-05-14 Thread Phillip Morelock

 Hi Toru,
 I'm using jdbc-odbc driver to connect to SQL server.
 Regards
 Rajesh

That's your problem

This is NOT a production quality driver, it's a JDBC type 1 hack.  It's got
known problems and Sun specifically tells you to use it for testing only.

I recommend MS's beta SQL Server driver (which I believe but don't know
for sure is mostly a repackaging of a commercial product from Merant)...it's
quite good, robust, and fast for most purposes, although it may have some
hidden problems that I personally have not run across.

Wait, I just checked -- evidently it is no longer beta!
 http://msdn.microsoft.com/downloads/default.asp?URL=/downloads/sample.asp?u
rl=/MSDN-FILES/027/001/779/msdncompositedoc.xml

good luck -- this is what I use -- now I will have to upgrade my customers
to the release version.
fillup

On 5/13/02 10:20 PM, Rajesh Mishra [EMAIL PROTECTED] wrote:

 Hi Toru,
 I'm using jdbc-odbc driver to connect to SQL server.
 Regards
 Rajesh
 
 -Original Message-
 From: Toru Watanabe [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, May 14, 2002 10:45 AM
 To: Tomcat Users List
 Subject: Re: VM size increases.
 
 
 Hi Rajesh,
 
 Let me know about your JDBC.
 I suppose you are using JNI for Database connectivity.
 
 Regards,
 Watanabe
 
 In the message VM size increases.
 
 [EMAIL PROTECTED]
 Rajesh Mishra [EMAIL PROTECTED] wrote:
 
 
 Rajesh I'm using Tomcat3.2 and SQL server2000. I'm facing two
 Rajesh problems mentioned below..
 
 Rajesh 1.The VM size of Tomcat's java.exe process increases gradually
 Rajesh and it doesn't come down. As a result machine hangs.I've
 Rajesh closed database connections and Resultset's everywhere I
 Rajesh accessed database.
 
 Rajesh 2. On running Web Application Stress testing tool for 2 days
 Rajesh(with 10 threads and 4 socket multiplier), Tomcat crashes.
 
 Rajesh Rajesh
 
 Rajesh --
 Rajesh To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 Rajesh For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 


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




Re: Servlet doesn't return after init()

2002-05-14 Thread Phillip Morelock

 turned on the RequestValueDumper... but no luck.  I have absolutely no
 idea why I can't map http://localhost:8080/bookie to my servlet.

 servlet-mapping
   servlet-nameBookieServlet/servlet-name
   url-pattern/bookie/url-pattern
 /servlet-mapping

is it as simple as it should be??
http://localhost:8080/bookie/bookie  instead

Remember that webapps are in contexts -- basically top level directory
paths under /  .  So if you put your stuff in /webapps/bookie , then you
actually have a bookie context and your bookie servlet is a part of that.
Or if you put it in some other folder...then that's the top-level directory
path.  the only way a servlet will work the way you're trying to do it is if
you have it installed in /webapps/ROOT , which is the context for
http://localhost:8080/; .  The above URL that you wrote causes Tomcat to
look for a bookie context -- the default document for that context.

hope this helps
fillup


On 5/14/02 12:31 AM, Will Sargent [EMAIL PROTECTED] wrote:

 Hi everybody,
 
 I'm new to Tomcat, although I know servlets pretty well.  I have a
 problem with my XML-RPC application; I can get the servlet to run fine
 as a stand alone, and I can register it as a servlet, but somehow I
 can't get any response back from it after it loads.
 
 I'm using Log4J as the logging service, and although I can get the
 initial log, I don't get any response from the doGet() or doPost()
 methods -- and I've tried System.out.println() on both of them without
 response.
 
 I've also turned on verbosity=4 on everything I could lay hands on and
 turned on the RequestValueDumper... but no luck.  I have absolutely no
 idea why I can't map http://localhost:8080/bookie to my servlet.
 
 Here's my web.xml file in case you know what I'm doing wrong.
 
 Any clue as to what I should do next?  I'd love to be able to see what
 every request to tomcat was doing...
 
 Will.
 
 ?xml version=1.0 encoding=ISO-8859-1?
 
 !DOCTYPE web-app PUBLIC '-//Sun Microsystems, Inc.//DTD Web Application
 2.3//EN' 'http://java.sun.com/dtd/web-app_2_3.dtd'
 
 web-app
 
 display-nameBookie/display-name
 descriptionThe Bookie Servlet/description
 
 context-param
   param-namewebmaster/param-name
   param-value[EMAIL PROTECTED]/param-value
   description
 The EMAIL address of the administrator to whom questions
 and comments about this application should be addressed.
   /description
 /context-param
 
 servlet
   servlet-nameBookieServlet/servlet-name
   
 servlet-classcom.tersesystems.bookie.service.xmlrpc.BookieServlet/servlet-c
 lass
   
   init-param
 param-namelogging/param-name
 
 param-valued:/home/wsargent/work/bookie/server/conf/log_server.properties/p
 aram-value
 description
   The location of the log4j logging file.
 /description
   /init-param
   
   init-param
 param-nameprofile/param-name
 
 param-valued:/home/wsargent/work/bookie/server/conf/profile.properties/para
 m-value
 description
   The location of the user profile.
 /description
   /init-param
   
   load-on-startup5/load-on-startup
 /servlet
 
 servlet-mapping
   servlet-nameBookieServlet/servlet-name
   url-pattern/bookie/url-pattern
 /servlet-mapping
 
 /web-app
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]


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




Re: troubles in web.xml file ? tomcat can't find dtd.

2002-05-14 Thread Håkon Hansen

On Tue, 14 May 2002 08:37:16 +0200
[EMAIL PROTECTED] wrote:

 http://java.sun.com/dtd/web-app_2_3.dtd

Generally, you might try to download the dtd in your browser.
This will tell you if it exists (this one does) - in which
case your 'not found' error is a networking problem.

Or you might try to read the dtd yourself to see if your
syntax checks out.

However - in your case: Notice that part of your statement
(-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN)
calls for version 2.2, the dtd you are trying to use says
version 2.3 (http://java.sun.com/dtd/web-app_2_3.dtd).

I suggest you agree on one version ...

-- 

Haakon Hansen
Norway

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




mod_jk vs WARP connector

2002-05-14 Thread KL OOI

Hi all,

What is the major difference in between of mod_jk and warp connector?
Any performance issue? Which is better?
Any input?

Thanks.
KL



Session variables

2002-05-14 Thread Benjamin Fonzé [benja . be]

Hello !
I have a few questions concerning the session object.
 
On the Java Sun web site, I can read this about the HttpSession
interface :
“The servlet container uses this interface to create a session between
an HTTP client and an HTTP server. The session persists for a specified
time period, across more than one connection or page request from the
user. A session usually corresponds to one user, who may visit a site
many times. The server can maintain a session in many ways such as using
cookies or rewriting URLs.”
 
My browser is configured to refuse the cookies, and I’ve no cookies on
my disk, my conclusion is that Tomcat does not use cookies.
But I’ve no URL rewriting either (Except if that’s invisible !?? Like
the POST method of a form !?)
 
I really need to know how that’s implemented by HttpSession, is someone
can help me ?
 
Another question…
I use Tomcat 3.3a, and I’m worrying if the security of these session is
good ?
Is that possible for a hacker to recuperate the session variables of a
server ?

Thanks a lot !
Benja.



RE: automatic login

2002-05-14 Thread Collins, Jim

Hi Craig,

Could you please send the URL for the UML diagrams, I could not find them.

Thanks.

Jim.

 -Original Message-
 From: Mats Nyberg [mailto:[EMAIL PROTECTED]]
 Sent: 10 May 2002 20:42
 To: Tomcat Users List
 Subject: Re: automatic login
 
 
 
 
 Craig R. McClanahan wrote:
 
 
 On Fri, 10 May 2002, Mats Nyberg wrote:
 
 Date: Fri, 10 May 2002 20:00:51 +0200
 From: Mats Nyberg [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Subject: Re: automatic login
 
 locking myself in is no problem; this is an app running on 
 a collegue's
 (peter antman @ jboss) heavily patched version of a JBoss 
 2.something
 loaded with tomcat and jboss dependencies.
 
 do you know the internals of the 
 accessinterceptor/authentification process
 in tomcat?
 
 
 I'd *better* know it, because I wrote it ... :-)
 
 straight to the source, huh
 ;)
 
 
 
 Look in package org.apache.catalina.authenticator in the 
 Tomcat source
 code for the implementation classes that implement the various login
 methods.  
 
 using 3.2, dude
 :(
 
 You'll need to understand quite a bit about Tomcat's internal
 architecture for this to work 
 
 I do
 
 -- there are some UML diagrams and such
 stuff in the Catalina Documentation part of the tomcat-docs webapp.
 
 However, I'm afraid that I'm not going to be able to assist 
 you any, due
 to time constraints.
 
 hey, i know i'm on a seller's market here ;)
 
 got an idea, though.
 I'll be back
 
 by the way, vincenzo: your idea worked - will write HOWTO for the list
 
 
 
 Craig
 
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 
 
 
 
 
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 


PLEASE READ: The information contained in this email is confidential
and intended for the named recipient(s) only. If you are not an intended
recipient of this email you must not copy, distribute or take any 
further action in reliance on it and you should delete it and notify the
sender immediately. Email is not a secure method of communication and 
Nomura International plc cannot accept responsibility for the accuracy
or completeness of this message or any attachment(s). Please examine this
email for virus infection, for which Nomura International plc accepts
no responsibility. If verification of this email is sought then please
request a hard copy. Unless otherwise stated any views or opinions
presented are solely those of the author and do not represent those of
Nomura International plc. This email is intended for informational
purposes only and is not a solicitation or offer to buy or sell
securities or related financial instruments. Nomura International plc is
regulated by the Financial Services Authority and is a member of the
London Stock Exchange.



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




Digest authentication with Memory Realm

2002-05-14 Thread Shimon Crown

Using the default memory realm I have modified the Tomcat server.xml to
store the passwords encrypted as follows :

Realm className=org.apache.catalina.realm.MemoryRealm digest=MD5 /

This works fine.

For my tests I would also like to use digest authorization to transfer the
password over the wire. To do this I put the following in my web.xml file

login-config
  auth-methodDIGEST/auth-method
/login-config

When I access the protected web page from a browser (Mozilla or IE5.5) I get
the appropriate login dialog box. However I can't log in from either
browser. What am I doing wrong.

Shimon Crown

(Note - I know that using memory realm isn't a great idea but it is useful
for the testing phase).


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




isapi_redirect multiple IIS sites

2002-05-14 Thread Binopoulos Alexandros

Hi all,
I've created a web site with the use of servlets for its dynamic content
(tomcat 4) and IIS 4 for its static content. Tomcat and IIS talk through the
isapi_redirect dll. Now I want to add another site that talks to tomcat but
the isapi_redirect filter does not work. Is there a way to have multiple
sites on IIS talking to one running tomcat  instance?

Thanks to all.
Alexandros

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




Re: Tomcat 4 and external JNDI in general - or JBoss 3 in particular

2002-05-14 Thread Håkon Hansen

[ ... ] I fail to see the authoritative, working example as to how Tomcat is 
configured to allow an application to connect with external EJB resources. [ ... ]

Replying to my own posting, I just found out that RC1 of a bundle of JBoss 3.0.0 and 
Tomcat 4.0.3 is available at http://www.jboss.org/binary.jsp, that might just 
eliminate the problem altogether.

Still, a little documentation would be nice.


Yours,

Haakon Hansen
Norway


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




RE: VM size increases.

2002-05-14 Thread Gurmeet

Hi fillup,

Does the driver for which you have provided the URL, work with sql server
7.0 as on the site it says that it is for SQL Server 2000 and the SPz?

Gurmeet

-Original Message-
From: Phillip Morelock [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 14, 2002 1:04 PM
To: Tomcat Users List
Subject: Re: VM size increases.


 Hi Toru,
 I'm using jdbc-odbc driver to connect to SQL server.
 Regards
 Rajesh

That's your problem

This is NOT a production quality driver, it's a JDBC type 1 hack.  It's got
known problems and Sun specifically tells you to use it for testing only.

I recommend MS's beta SQL Server driver (which I believe but don't know
for sure is mostly a repackaging of a commercial product from Merant)...it's
quite good, robust, and fast for most purposes, although it may have some
hidden problems that I personally have not run across.

Wait, I just checked -- evidently it is no longer beta!
 http://msdn.microsoft.com/downloads/default.asp?URL=/downloads/sample.asp?u
rl=/MSDN-FILES/027/001/779/msdncompositedoc.xml

good luck -- this is what I use -- now I will have to upgrade my customers
to the release version.
fillup

On 5/13/02 10:20 PM, Rajesh Mishra [EMAIL PROTECTED] wrote:

 Hi Toru,
 I'm using jdbc-odbc driver to connect to SQL server.
 Regards
 Rajesh

 -Original Message-
 From: Toru Watanabe [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, May 14, 2002 10:45 AM
 To: Tomcat Users List
 Subject: Re: VM size increases.


 Hi Rajesh,

 Let me know about your JDBC.
 I suppose you are using JNI for Database connectivity.

 Regards,
 Watanabe

 In the message VM size increases.

 [EMAIL PROTECTED]
 Rajesh Mishra [EMAIL PROTECTED] wrote:


 Rajesh I'm using Tomcat3.2 and SQL server2000. I'm facing two
 Rajesh problems mentioned below..

 Rajesh 1.The VM size of Tomcat's java.exe process increases gradually
 Rajesh and it doesn't come down. As a result machine hangs.I've
 Rajesh closed database connections and Resultset's everywhere I
 Rajesh accessed database.

 Rajesh 2. On running Web Application Stress testing tool for 2 days
 Rajesh(with 10 threads and 4 socket multiplier), Tomcat crashes.

 Rajesh Rajesh

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


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

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



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


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




mod_webapp for apache under windows 98

2002-05-14 Thread pascal GEND

Hi,

does anyone use mod_webapp for apache under windows 98?
Where to find it?

Pascal



no webapps or root context tomcat 3.3.1 rpm linux 7.2

2002-05-14 Thread Edam Cheeseman

Hi list,

I found a couple of posts regarding this problem in the archives, but no fix 
or explanation posted that I could find.

I've just installed 3.3.1 on linux 7.2 from the rpm.
My webapps directory is where it should be: /var/tomcat3/webapps, but its 
empty.
Therefore I have no root context and although tomcat is up and running and 
accepting requests on port 8080 I get 404's on every request.

I installed from the following rpm: tomcat3-3.3.1-4.noarch.rpm
have I got the wrong rpm? or do I need to install the webapps seperately? 
everything else is installed fine, all my tomcat directories are where they 
should be.

This is what tomcat gives me in the console when I request 
http://localhost:8080

2002-05-14 10:00:39 - ContextManager: Assertion failed: container==null (no 
Default Context?)
2002-05-14 10:00:39 - Ctx() : Status code:404 request:R( /) msg:null

(BTW: thanks to Henri Gomez for the RPM readme, it was a big help - nothing 
I could find in there about this problem though)

Any clues greatly appreciated!

Thanks,

Paul



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


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




I get arround...

2002-05-14 Thread Markus Garscha

Hi!

i try to adapt the validator-example vom struts to my on app. i copied
the web.xml, registration.jsp, RegistrationAction.java,
RegistrationForm.java and made the relevant changes in
struts-config.xml.

i build a .war and deloy it but tomcat shows the following exception:
2002-05-14 12:05:54 StandardContext[/adr]: Servlet /adr threw load()
exception
javax.servlet.UnavailableException: Parsing error processing resource
path /WEB-INF/struts-config.xml
at
org.apache.struts.action.ActionServlet.initApplicationConfig(ActionServlet.java:818)
at
org.apache.struts.action.ActionServlet.init(ActionServlet.java:418)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:916)
at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:808)
at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3266)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3395)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:785)
[...]

but struts-config.xml seems to be right (i copied and tried serveral
times)

in the browser the follown error is shown:
org.apache.jasper.JasperException: XML parsing error on file
/WEB-INF/struts-bean.tld: Internal Error: File
/javax/servlet/jsp/resources/web-jsptaglibrary_1_1.dtd not found
at
org.apache.jasper.parser.ParserUtils.parseXMLDocument(ParserUtils.java:226)
at
org.apache.jasper.compiler.TagLibraryInfoImpl.parseTLD(TagLibraryInfoImpl.java:283)
at
org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.java:219)
at
org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.java:174)

why can't it find web-jsptaglibrary_1_1.dtd when it is found in the
original example

whats wrong?

thanx for your help
markus


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




;jsessionid and 404 File Not Found :(

2002-05-14 Thread mario libraro

Hi to all listmates,

I manage a linux box with Apache 1.3.19 and Tomcat 3.2.3 with many
servlet applications running.

Now I need to use url rewriting to let sites working with Explorer 6 too
(that have cookies disabled by default). So I used encodeURL(url) to
generate all links. 
But if I use the port 8080 to navigate *all works fine*.
When i use port 80 (Apache) it gets confused with ; before
jsessionid and rewrites it as a %3b giving this error:

Not Found (404)
Original request: /fiaipmail/servlet/fiaipmail%3bjsessionid=vzq94u3641
Not found request: /fiaipmail/servlet/fiaipmail%3bjsessionid=vzq94u3641 

 here is rewriting  ---^^^


I searched through the web and I put both:

IfModule mod_rewrite.c
   RewriteEngine on
   RewriteRule ^(/.*;jsessionid=.*)$ $1 [T=jserv-servlet]
/IfModule

* AND/OR *

Location /.*;jsessionid=.*
SetHandler jserv-servlet
/Location


in httpd.conf (as someone suggested me) but... it *still doesn't
works..* I inserted it both inside VirtualHost * directive and outside
it too... No way!!


Is there a way to avoid Apace get confused by ; ? Can someone help me??



--
Mario Libraro
GMUC
--\|/ (__) gmu'..
\|/   `\--(oo)  gmu'..
||(__)
Fulltrading S.p.A.  ||w--||\|/
-\
Sede di Roma:   | /\  ASCII |
Via Dora, 7 | \ /  Ribbon|
00198 Roma (RM) |  X   Campaign  |
Tel  +39 06 8845203 | / \  Against   |
Fax  +39 06 8845227 |  HTML Mail |
-|
Sede di Bari:|
Centro Direzionale Il Baricentro |
70010 Casamassima (BA)   |
Tel  +39 080 6970153 |
Fax  +39 080 4572485 |
Tech Support: 199 714 879/

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




Re: VM size increases.

2002-05-14 Thread Java Team

Hi

Have you used any pooling software?How can you achieved connection
pooling?.
Actually we had same problem and we got the solution.
Give more details on that will help to identify the problem.

Regards
VelmurganP
([EMAIL PROTECTED])
SoftSolutions
Chennai.



- Original Message -
From: Rajesh Mishra [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, May 14, 2002 10:19 AM
Subject: VM size increases.



 I'm using Tomcat3.2 and SQL server2000. I'm facing two problems mentioned
 below..

 1.The VM size of Tomcat's java.exe process increases gradually and it
 doesn't come down. As a result machine hangs.I've closed database
 connections and Resultset's everywhere I accessed database.

 2. On running Web Application Stress testing tool for 2 days (with 10
 threads and 4 socket multiplier), Tomcat crashes.

 Rajesh



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




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




Re: no webapps or root context tomcat 3.3.1 rpm linux 7.2

2002-05-14 Thread Edam Cheeseman

From: Edam Cheeseman [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: no webapps or root context tomcat 3.3.1 rpm linux 7.2
Date: Tue, 14 May 2002 09:52:35 +

Hi list,

I found a couple of posts regarding this problem in the archives, but no 
fix
or explanation posted that I could find.

I've just installed 3.3.1 on linux 7.2 from the rpm.
My webapps directory is where it should be: /var/tomcat3/webapps, but its
empty.
Therefore I have no root context and although tomcat is up and running and
accepting requests on port 8080 I get 404's on every request.

I installed from the following rpm: tomcat3-3.3.1-4.noarch.rpm
have I got the wrong rpm? or do I need to install the webapps seperately?
everything else is installed fine, all my tomcat directories are where they
should be.

This is what tomcat gives me in the console when I request
http://localhost:8080

2002-05-14 10:00:39 - ContextManager: Assertion failed: container==null (no
Default Context?)
2002-05-14 10:00:39 - Ctx() : Status code:404 request:R( /) msg:null

(BTW: thanks to Henri Gomez for the RPM readme, it was a big help - nothing
I could find in there about this problem though)

Any clues greatly appreciated!

Thanks,

Paul



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


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



ok, I copied over the ROOT directory from a windows install of tomcat on 
another machine and everything seems to be ok, I can create new webapps fine 
and the contextx are recognised by tomcat on startup. I'm a little confused 
though - was this a problem with the RPM or is there a good reason for not 
installing the default context or the admin and example contexts?

apologies if I'm being stoopid, but I can't think of any good reasons for 
the RPM not installing at least the ROOT context by default.

cheers, Paul

_
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


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




problem starting tomcat and apache on windows 95 for the first time

2002-05-14 Thread Geoffrey Khan

Hello,

I posted this message a few days ago but didn't get a reply, so maybe if I 
post again I will. :-)

I am having problems running Tomcat 4.0.3 with my Apache 1.3.20 web server 
and am emailing this list to see if any one can help me get it working.

I am running both these applications on Windows 95 and both are working fine 
on their own  ie. I can initialise Tomcat as a stand-alone no problem and 
can use Apache (for PHP, etc) no problem as well.

I’ve followed the steps in the Tomcat installation notes whereby I have:

1.  Placed the mod_webapp.so file in the Modules directory of Apache 1.3.20.
2.  Placed libapr.dll in the Modules directory of Apache 1.3.20.
3.  Placed libapr.dll in C:\WINDOWS\system (as advised by the Galatea Flash 
Guide page (http://www.galatea.com/flashguides/apache-tomcat-4-win32.xml). I 
have also tried to start Apache without copying this file to the WINDOWS 
directory and I still have error messages).
4.  Added AddModule mod_webapp.c to Apache httpd.conf file.
5.  Added LoadModule webapp_module modules/mod_webapp.so to Apache httpd.conf 
file.
6.  Added:
WebAppConnection conn  warp  localhost:8008
WebAppDeploy examplesconn  /examples
WebAppInfo /webapp-info

to  VirtualHost * /VirtualHost tags at the end of the httpd.conf file. 
*Note these tags are # out. Is this correct?

When I start up Apache I get the error message:

Cannot add module via name 'mod_webapp.c' not in list of loaded modules

When I # out the AddModule directive I get the error message:

Cannot load c:program files/apache group/apache/modules/mod_webapp.so into 
server: (31) A device attached to the system is not functioning.

Can someone please offer any advice as I have followed the directives listed 
in the Tomcat notes (plus the one’s on the previously mentioned Galatea 
site) and it still isn’t working?

Additionally, when I do get the two working together will I have any 
problems if I upgrade my OS? I am looking to upgrade to Windows 98SE very 
soon and wonder if I may encounter problems if I do upgrade?


Many thanks,


Geoff Khan








_
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com


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




Doing some work when an image is requested

2002-05-14 Thread Ben Rometsch

Hi there,

I dont think this has been asked before...Apologies if it has. 

I want to trigger Tomcat (4.0.3) into doing some work (writing a record
to a DB, so ideally I want to execute a javabean method) when a specific
image is requested. Is there any way of doing this?

Many thanks,
Ben Rometsch


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




Requested ressource is not available!! File constructor

2002-05-14 Thread staginfo-ar

Hi,
I use the File class in a jsp. When I run it with Tomcat, I have this error
: http status 404: Error report.
I think I have a problem with the pathname I have put in File constructor.
What's the default directory in this constructor? can I have an example
please.
Thanks
Jc


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




Re: Doing some work when an image is requested

2002-05-14 Thread Simon Stewart

On Tue, May 14, 2002 at 12:42:31PM +0100, Ben Rometsch wrote:
 Hi there,
 
 I dont think this has been asked before...Apologies if it has. 
 
 I want to trigger Tomcat (4.0.3) into doing some work (writing a record
 to a DB, so ideally I want to execute a javabean method) when a specific
 image is requested. Is there any way of doing this?

Couldn't you just put a filter in front of the request? Tomcat
supports them, and it's simple to set up and non-intrusive.

Cheers,

Simon

-- 
I like to torture my plants by watering them with ice cubes.
 Steven Wright

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




Re: VM size increases.

2002-05-14 Thread Wagner Danda

Hi Philip,

do you know any memory leak associated with the Oracle Thin JDBC driver?

Thank you in advance.

-
Wagner Danda
Sun Certified Programmer for JavaT 2 Platform

- Original Message -
From: Phillip Morelock [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, May 14, 2002 4:33 AM
Subject: Re: VM size increases.


 Hi Toru,
 I'm using jdbc-odbc driver to connect to SQL server.
 Regards
 Rajesh

That's your problem

This is NOT a production quality driver, it's a JDBC type 1 hack.  It's got
known problems and Sun specifically tells you to use it for testing only.

I recommend MS's beta SQL Server driver (which I believe but don't know
for sure is mostly a repackaging of a commercial product from Merant)...it's
quite good, robust, and fast for most purposes, although it may have some
hidden problems that I personally have not run across.

Wait, I just checked -- evidently it is no longer beta!
 http://msdn.microsoft.com/downloads/default.asp?URL=/downloads/sample.asp?u
rl=/MSDN-FILES/027/001/779/msdncompositedoc.xml

good luck -- this is what I use -- now I will have to upgrade my customers
to the release version.
fillup

On 5/13/02 10:20 PM, Rajesh Mishra [EMAIL PROTECTED] wrote:

 Hi Toru,
 I'm using jdbc-odbc driver to connect to SQL server.
 Regards
 Rajesh

 -Original Message-
 From: Toru Watanabe [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, May 14, 2002 10:45 AM
 To: Tomcat Users List
 Subject: Re: VM size increases.


 Hi Rajesh,

 Let me know about your JDBC.
 I suppose you are using JNI for Database connectivity.

 Regards,
 Watanabe

 In the message VM size increases.

 [EMAIL PROTECTED]
 Rajesh Mishra [EMAIL PROTECTED] wrote:


 Rajesh I'm using Tomcat3.2 and SQL server2000. I'm facing two
 Rajesh problems mentioned below..

 Rajesh 1.The VM size of Tomcat's java.exe process increases gradually
 Rajesh and it doesn't come down. As a result machine hangs.I've
 Rajesh closed database connections and Resultset's everywhere I
 Rajesh accessed database.

 Rajesh 2. On running Web Application Stress testing tool for 2 days
 Rajesh(with 10 threads and 4 socket multiplier), Tomcat crashes.

 Rajesh Rajesh

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


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

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



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




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




RE: VM size increases.

2002-05-14 Thread Rajesh Mishra

Hi,
I've used DDConnectionBroker.jar pooling software provided free by
DevDaily.com. It gives  connection pooling facility.I've tested the pooling
software with a sample java program but it doesn't seem to have any memory
leak problem.
Is there any other pooling software available which I can use.

Regards
Rajesh





-Original Message-
From: Java Team [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 14, 2002 12:21 PM
To: Tomcat Users List
Subject: Re: VM size increases.


Hi

Have you used any pooling software?How can you achieved connection
pooling?.
Actually we had same problem and we got the solution.
Give more details on that will help to identify the problem.

Regards
VelmurganP
([EMAIL PROTECTED])
SoftSolutions
Chennai.



- Original Message -
From: Rajesh Mishra [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, May 14, 2002 10:19 AM
Subject: VM size increases.



 I'm using Tomcat3.2 and SQL server2000. I'm facing two problems mentioned
 below..

 1.The VM size of Tomcat's java.exe process increases gradually and it
 doesn't come down. As a result machine hangs.I've closed database
 connections and Resultset's everywhere I accessed database.

 2. On running Web Application Stress testing tool for 2 days (with 10
 threads and 4 socket multiplier), Tomcat crashes.

 Rajesh



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




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

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




RE: Doing some work when an image is requested

2002-05-14 Thread Ben Rometsch

Hi There,

Sorry - could you explain a little further? I'm not quite sure where
you're coming from...

Many thanks for the reply,
Ben

-Original Message-
From: Simon Stewart [mailto:[EMAIL PROTECTED]] 
Sent: 14 May 2002 13:14
To: Tomcat Users List
Subject: Re: Doing some work when an image is requested


On Tue, May 14, 2002 at 12:42:31PM +0100, Ben Rometsch wrote:
 Hi there,
 
 I dont think this has been asked before...Apologies if it has.
 
 I want to trigger Tomcat (4.0.3) into doing some work (writing a 
 record to a DB, so ideally I want to execute a javabean method) when a

 specific image is requested. Is there any way of doing this?

Couldn't you just put a filter in front of the request? Tomcat supports
them, and it's simple to set up and non-intrusive.

Cheers,

Simon

-- 
I like to torture my plants by watering them with ice cubes.
 Steven Wright

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


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




Re: automatic login

2002-05-14 Thread Java Team

Hi

Use the following Webster.www.ambysoft.com

Regards
Velmurgan P.


- Original Message -
From: Collins, Jim [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Tuesday, May 14, 2002 2:03 PM
Subject: RE: automatic login


 Hi Craig,

 Could you please send the URL for the UML diagrams, I could not find them.

 Thanks.

 Jim.

  -Original Message-
  From: Mats Nyberg [mailto:[EMAIL PROTECTED]]
  Sent: 10 May 2002 20:42
  To: Tomcat Users List
  Subject: Re: automatic login
 
 
 
 
  Craig R. McClanahan wrote:
 
  
  On Fri, 10 May 2002, Mats Nyberg wrote:
  
  Date: Fri, 10 May 2002 20:00:51 +0200
  From: Mats Nyberg [EMAIL PROTECTED]
  Reply-To: Tomcat Users List [EMAIL PROTECTED]
  To: Tomcat Users List [EMAIL PROTECTED]
  Subject: Re: automatic login
  
  locking myself in is no problem; this is an app running on
  a collegue's
  (peter antman @ jboss) heavily patched version of a JBoss
  2.something
  loaded with tomcat and jboss dependencies.
  
  do you know the internals of the
  accessinterceptor/authentification process
  in tomcat?
  
  
  I'd *better* know it, because I wrote it ... :-)
  
  straight to the source, huh
  ;)
 
  
  
  Look in package org.apache.catalina.authenticator in the
  Tomcat source
  code for the implementation classes that implement the various login
  methods.
  
  using 3.2, dude
  :(
 
  You'll need to understand quite a bit about Tomcat's internal
  architecture for this to work
  
  I do
 
  -- there are some UML diagrams and such
  stuff in the Catalina Documentation part of the tomcat-docs webapp.
  
  However, I'm afraid that I'm not going to be able to assist
  you any, due
  to time constraints.
  
  hey, i know i'm on a seller's market here ;)
 
  got an idea, though.
  I'll be back
 
  by the way, vincenzo: your idea worked - will write HOWTO for the list
 
  
  
  Craig
  
  
  --
  To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
  
  
  
 
 
 
  --
  To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
 


 PLEASE READ: The information contained in this email is confidential
 and intended for the named recipient(s) only. If you are not an intended
 recipient of this email you must not copy, distribute or take any
 further action in reliance on it and you should delete it and notify the
 sender immediately. Email is not a secure method of communication and
 Nomura International plc cannot accept responsibility for the accuracy
 or completeness of this message or any attachment(s). Please examine this
 email for virus infection, for which Nomura International plc accepts
 no responsibility. If verification of this email is sought then please
 request a hard copy. Unless otherwise stated any views or opinions
 presented are solely those of the author and do not represent those of
 Nomura International plc. This email is intended for informational
 purposes only and is not a solicitation or offer to buy or sell
 securities or related financial instruments. Nomura International plc is
 regulated by the Financial Services Authority and is a member of the
 London Stock Exchange.



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




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




Re: Doing some work when an image is requested

2002-05-14 Thread Simon Stewart

Basically, you can define a class that does the work that you want
done, and make it implement the java.servlet.Filter interface. Then in
your web.xml file, you'll need some fragments like:

filter
filter-nameimageFilter/filter-name
filter-classImageFilter/filter-class
/filter

filter-mapping
filter-nameimageFilter/filter-name
url-pattern/*.jpg/url-pattern
/filter-mapping

There are some good tutorials on the subject all over the place, but
the one that I found to be useful in explaining filters was Jason
Hunter's at:

http://www.javaworld.com/javaworld/jw-06-2001/jw-0622-filters.html

HTH.

On Tue, May 14, 2002 at 01:19:57PM +0100, Ben Rometsch wrote:
 Hi There,
 
 Sorry - could you explain a little further? I'm not quite sure where
 you're coming from...
 
 Many thanks for the reply,
 Ben
 
 -Original Message-
 From: Simon Stewart [mailto:[EMAIL PROTECTED]] 
 On Tue, May 14, 2002 at 12:42:31PM +0100, Ben Rometsch wrote:
  
  I want to trigger Tomcat (4.0.3) into doing some work (writing a 
  record to a DB, so ideally I want to execute a javabean method) when a
  specific image is requested. Is there any way of doing this?
 
 Couldn't you just put a filter in front of the request? Tomcat supports
 them, and it's simple to set up and non-intrusive.

Cheers,

Simon

-- 
Premature optimization is the root of all evil.
-- D.E. Knuth

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




mod_jk not mapping uri successfully for servlets on 3.3.1

2002-05-14 Thread Chris Herrmann

Hi,

I'm running Tomcat 3.3.1, Sun Java 1.3.1, and Apache 1.3.23 on Redhat Linux
7.2.

Have been using an earlier version of mod_jk fine for a long time with
Tomcat 3.2.1. I upgraded to 3.3.1 the other night to fix some problems
addressed by 3.3.1, and thought I had it all sussed... insert spooky music
here

mod jk is failing to pass requests for servlets to tomcat properly - it
appears that it's not matching the string /mywebapp/servlet/myservlet
properly, and leaving it to Apache to handle, who promptly returns a 404,
as you expect. jsp files are working fine.

If I surf directly to Tomcat on 8080, the servlets are running fine, so I
think the problem is with mod jk and not Tomcat itself.

If I enable warn level in mod_jk.conf, I see the following:

[Tue May 14 22:47:57 2002]  [jk_uri_worker_map.c (351)]: Into
jk_uri_worker_map_t::map_uri_to_worker
[Tue May 14 22:47:57 2002]  [jk_uri_worker_map.c (368)]: Attempting to map
URI '/testapp/servlet/index'
[Tue May 14 22:47:57 2002]  [jk_uri_worker_map.c (456)]:
jk_uri_worker_map_t::map_uri_to_worker, done without a match


-

The webapp is called testapp. mod_jk.conf looks like:

LoadModule jk_module libexec/mod_jk.so
AddModule mod_jk.c

IfModule mod_jk.c
JkWorkersFile /usr/local/tomcat/conf/jk/workers.properties
JkLogFile  /var/log/tomcat/jk.log
JkLogLevel warn
JkMount /*.jsp ajp13
JkMount /servlet/* ajp13
/IfModule

-

Originally I experienced this problem with Apache 1.3.17, and rebuilt
Apache tonight as 1.3.23 as I was adding PHP support, and figured that it
might shake the monkey off this one's back...

If I add the servlet manually to mod_jk.conf ala...

JkMount /testapp/servlet/index ajp13

then this single servlet works ok... It appears to only be breaking when
it's matching '*'...

Any ideas as to what it could be? What other information do you need?

Cheers,


Chris Herrmann (wishing upon a star tonight...)
Far Edge Technology

p. 02 99553640
f. 02 99547994
m. 0403 393309
http://www.faredge.com.au



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




Re: I get arround...

2002-05-14 Thread Markus Garscha

Ok,

i found the error myself:
i had xerces.jar in my WEB-INF/lib and this parser conflicts with the
jaxp parser provided by tomcat...

markus

* Markus Garscha [EMAIL PROTECTED] [2002-05-14 12:16]:
 Hi!
 
 i try to adapt the validator-example vom struts to my on app. i copied
 the web.xml, registration.jsp, RegistrationAction.java,
 RegistrationForm.java and made the relevant changes in
 struts-config.xml.
 
 i build a .war and deloy it but tomcat shows the following exception:
 2002-05-14 12:05:54 StandardContext[/adr]: Servlet /adr threw load()
 exception
 javax.servlet.UnavailableException: Parsing error processing resource
 path /WEB-INF/struts-config.xml
 at
 org.apache.struts.action.ActionServlet.initApplicationConfig(ActionServlet.java:818)
 at
 org.apache.struts.action.ActionServlet.init(ActionServlet.java:418)
 at javax.servlet.GenericServlet.init(GenericServlet.java:258)
 at
 org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:916)
 at
 org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:808)
 at
 org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3266)
 at
 org.apache.catalina.core.StandardContext.start(StandardContext.java:3395)
 at
 org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:785)
 [...]
 
 but struts-config.xml seems to be right (i copied and tried serveral
 times)
 
 in the browser the follown error is shown:
 org.apache.jasper.JasperException: XML parsing error on file
 /WEB-INF/struts-bean.tld: Internal Error: File
 /javax/servlet/jsp/resources/web-jsptaglibrary_1_1.dtd not found
   at
 org.apache.jasper.parser.ParserUtils.parseXMLDocument(ParserUtils.java:226)
   at
 org.apache.jasper.compiler.TagLibraryInfoImpl.parseTLD(TagLibraryInfoImpl.java:283)
   at
 org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.java:219)
   at
 org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.java:174)
 
 why can't it find web-jsptaglibrary_1_1.dtd when it is found in the
 original example
 
 whats wrong?
 
 thanx for your help
 markus
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 

-- 
---
 Markus Garschaemail: [EMAIL PROTECTED] 
 Patrichsiedlung 32  fon: +49 9142 962749
 91757 Treuchtlingen fax: +49 89 244356966 
 Germany   pgp-keyid: 0xEE18AF3B  
---


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




RE: mod_jk not mapping uri successfully for servlets on 3.3.1

2002-05-14 Thread Larry Isaacs

Hi Chris,

It is not clear if you tried:

JkMount /testapp/servlet/* ajp13

I assume you build the mod_jk.so from Tomcat 3.3.1's source.  Using
a mod_jk from Tomcat 3.2.x has the potential to hang.

Cheers,
Larry

 -Original Message-
 From: Chris Herrmann [mailto:[EMAIL PROTECTED]] 
 Sent: Wednesday, May 15, 2002 5:00 AM
 To: [EMAIL PROTECTED]
 Subject: mod_jk not mapping uri successfully for servlets on 3.3.1
 
 
 Hi,
 
 I'm running Tomcat 3.3.1, Sun Java 1.3.1, and Apache 1.3.23 
 on Redhat Linux
 7.2.
 
 Have been using an earlier version of mod_jk fine for a long time with
 Tomcat 3.2.1. I upgraded to 3.3.1 the other night to fix some problems
 addressed by 3.3.1, and thought I had it all sussed... 
 insert spooky music
 here
 
 mod jk is failing to pass requests for servlets to tomcat 
 properly - it
 appears that it's not matching the string 
 /mywebapp/servlet/myservlet
 properly, and leaving it to Apache to handle, who promptly 
 returns a 404,
 as you expect. jsp files are working fine.
 
 If I surf directly to Tomcat on 8080, the servlets are 
 running fine, so I
 think the problem is with mod jk and not Tomcat itself.
 
 If I enable warn level in mod_jk.conf, I see the following:
 
 [Tue May 14 22:47:57 2002]  [jk_uri_worker_map.c (351)]: Into
 jk_uri_worker_map_t::map_uri_to_worker
 [Tue May 14 22:47:57 2002]  [jk_uri_worker_map.c (368)]: 
 Attempting to map
 URI '/testapp/servlet/index'
 [Tue May 14 22:47:57 2002]  [jk_uri_worker_map.c (456)]:
 jk_uri_worker_map_t::map_uri_to_worker, done without a match
 
 
 -
 
 The webapp is called testapp. mod_jk.conf looks like:
 
 LoadModule jk_module libexec/mod_jk.so
 AddModule mod_jk.c
 
 IfModule mod_jk.c
 JkWorkersFile /usr/local/tomcat/conf/jk/workers.properties
 JkLogFile  /var/log/tomcat/jk.log
 JkLogLevel warn
 JkMount /*.jsp ajp13
 JkMount /servlet/* ajp13
 /IfModule
 
 -
 
 Originally I experienced this problem with Apache 1.3.17, and rebuilt
 Apache tonight as 1.3.23 as I was adding PHP support, and 
 figured that it
 might shake the monkey off this one's back...
 
 If I add the servlet manually to mod_jk.conf ala...
 
 JkMount /testapp/servlet/index ajp13
 
 then this single servlet works ok... It appears to only be 
 breaking when
 it's matching '*'...
 
 Any ideas as to what it could be? What other information do you need?
 
 Cheers,
 
 
 Chris Herrmann (wishing upon a star tonight...)
 Far Edge Technology
 
 p. 02 99553640
 f. 02 99547994
 m. 0403 393309
 http://www.faredge.com.au
 
 
 
 --
 To unsubscribe, e-mail:   
 mailto:tomcat-user- [EMAIL PROTECTED]
 For 
 additional commands, 
 e-mail: mailto:[EMAIL PROTECTED]
 

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




RE: mod_jk not mapping uri successfully for servlets on 3.3.1

2002-05-14 Thread Chris Herrmann

Hi Larry,

No, I haven't tried:

JkMount /testapp/servlet/* ajp13

doing so now...

I upgraded to the latest mod_jk.so as well from jakarta.apache.org. I tried
both with and without eapi support to see if it made a difference (and
rebuilt apache with and without eapi support accordingly. Currently it's
on).

Ok... so... adding your suggestion above works...

Previously, I haven't had to do this. I also tried adding:

JkMount */servlet/* ajp13

doesn't work but:

JkMount /*/servlet/* ajp13

does work.

Has the way mod_jk parses paths changed in the latest version?

Cheers,

Chris


 Hi Chris,

 It is not clear if you tried:

JkMount /testapp/servlet/* ajp13

 I assume you build the mod_jk.so from Tomcat 3.3.1's source.  Using a
 mod_jk from Tomcat 3.2.x has the potential to hang.

 Cheers,
 Larry




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




AJP Connector and SSL

2002-05-14 Thread Shimon Crown

Is it possible to setup Tomcat so that Apache handles all the SSL requests
and I don't need to bother with keystores or anything like that ?

My setup is as follows :

Windows NT 4.0 Apache 2.0.35 and Tomcat 4.0.3. I compiled the Apache to
include mod_ssl and I installed an openssl certificate as my server
certificate. So far so good. When I run Apache it listens for HTTP requests
on port 80 and HTTPS requests on port 443.

Following the instructions in
http://www.galatea.com/flashguides/apache-tomcat-24-win32.xml I setup Tomcat
so it receives regular HTTP requests on Port 80. This was done using the
AJP13 module. This setup refuses to find resources on port 443.  My first
attempt was to add scheme=https like :

 Connector className=org.apache.ajp.tomcat4.Ajp13Connectorport=8009
minProcessors=5 maxProcessors=75  scheme=https Count=10
debug=0/

to the ajp Connector directive This didn't work.


Anyway looking at the AJP documentation it seems that I have to set up an
HTTPs listener inside the Tomcat server.xml and redirect requests to this
and add a redirect directive to this port. So the AJP connector directive
should look like

 Connector className=org.apache.ajp.tomcat4.Ajp13Connectorport=8009
minProcessors=5 maxProcessors=75  redirect=8443  Count=10
debug=0/


Connector className=org.apache.catalina.connector.http.HttpConnector
port=8443 minProcessors=5 maxProcessors=75 enableLookups=true
acceptCount=10 debug=0 scheme=https secure=true
  Factory className=org.apache.catalina.net.SSLServerSocketFactory
clientAuth=false protocol=TLS/
/Connector

I could then redirect all the HTTPS input to this port. However (assuming
this works) I have to set up SSL on Tomcat. I was rather hoping to avoid
this and just use the Apache as the SSL server.

What is the correct thing to do ?

Shimon Crown




any jsp/servlet based groupware solutions out there?

2002-05-14 Thread Vincent Stoessel

Hello,
I was wondering if any one knows of any  jsp/servlet based groupware
projects that are going on. I think that this would be a great example
of a j2ee app that would really showcase java technology.
Anything out there already? Anybody want to start such a project?
Thanks.
-- 
Vincent Stoessel
Linux Systems Developer
vincent xaymaca.com


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




Tomcat doesn’t response when run as service

2002-05-14 Thread Evgeniy Strokin

Hi.
I have two Tomcat 4.0.3 installations in two machines
with Windows 2000. Before I used Tomcat 3.2.3, and I
developed application on one machine, after that I
just removed Tomcat folder from second machine and
copy it from my development box, running Tomcat, it’s
working.
When I moved to Tomcat 4.0.3 I was trying to do the
same trick with this version, I just made extra step –
stop service before removing Tomcat folder and copy it
from my development box. And service started after all
and Tomcat seems started too (I checked logs). But it
doesn’t respond to any requests, and after few
restarting service starts crashing. If I run Tomcat 4
in regular way (not like service) it works. I have
exactly the same environments even the same system
accounts with same password.
Does anybody have idea about that?
Thanks
Jenya


__
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com

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




RE: mod_jk not mapping uri successfully for servlets on 3.3.1

2002-05-14 Thread Larry Isaacs

The jakarta-tomcat-connectors/jk/native sources have small improvements
and bug fixes over that found in jakarta-tomcat/src/native.  One of the
improvements is support for JkMount /*/... that you discovered.

Cheers,
Larry

 -Original Message-
 From: Chris Herrmann [mailto:[EMAIL PROTECTED]] 
 Sent: Wednesday, May 15, 2002 5:21 AM
 To: [EMAIL PROTECTED]
 Subject: RE: mod_jk not mapping uri successfully for servlets on 3.3.1
 
 
 Hi Larry,
 
 No, I haven't tried:
 
 JkMount /testapp/servlet/* ajp13
 
 doing so now...
 
 I upgraded to the latest mod_jk.so as well from 
 jakarta.apache.org. I tried
 both with and without eapi support to see if it made a difference (and
 rebuilt apache with and without eapi support accordingly. 
 Currently it's
 on).
 
 Ok... so... adding your suggestion above works...
 
 Previously, I haven't had to do this. I also tried adding:
 
 JkMount */servlet/* ajp13
 
 doesn't work but:
 
 JkMount /*/servlet/* ajp13
 
 does work.
 
 Has the way mod_jk parses paths changed in the latest version?
 
 Cheers,
 
 Chris
 
 
  Hi Chris,
 
  It is not clear if you tried:
 
 JkMount /testapp/servlet/* ajp13
 
  I assume you build the mod_jk.so from Tomcat 3.3.1's 
 source.  Using a
  mod_jk from Tomcat 3.2.x has the potential to hang.
 
  Cheers,
  Larry
 
 
 
 
 --
 To unsubscribe, e-mail:   
 mailto:tomcat-user- [EMAIL PROTECTED]
 For 
 additional commands, 
 e-mail: mailto:[EMAIL PROTECTED]
 

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




Re: tunneling https through http

2002-05-14 Thread Rich Catlett

Yes, I am trying to access an https site through a proxy.  As I said
before I'm asking this question because the error I get on the client
side - Unrecognized SSL handshake says, as far as I can tell,  that an
https connection is being attempted on an http line.  I have set
debug=99 on the connection, and I am not getting any helpful information
on why the connection is failing.

Rich Catlett

On Tue, 2002-05-14 at 03:54, Graham Leggett wrote:

Rich Catlett wrote:

 I'm trying to tunnel https through a proxy using the CONNECT method.
 tomcat 4.1-dev is running with a connector expection an https connection
 on port 445.

CONNECT only makes sense if you need to access an https site through a
proxy - there is no https through http happening anywhere.

What are you trying to achieve?

Regards,
Graham
-- 
-
[EMAIL PROTECTED]There's a moon
over Bourbon Street
tonight...

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





Re: catalina.LoggerBase class should have public access

2002-05-14 Thread Jeff Larsen

I was whining about this too about a month ago, but I failed
to spark a discussion on this list. So I went to Bugzilla
and entered it as a feature request. Apparently, somebody
agreed with me. If you look at the nightly build source code, 
you will see that LoggerBase is now public and FileLogger is
no longer final. You can now easily subclass FileLogger and
need only override a small number of methods to achieve the 
desired results.

Now it's just a matter of waiting for the next production
quality release (unless you like living on the edge!).

Jeff

- Original Message - 
From: Animesh Chaturvedi - US [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Monday, May 13, 2002 6:03 PM
Subject: catalina.LoggerBase class should have public access


 
 Hi
 
 I have a requirement of a single log file instead of having the default log
 files created on a daily basis. Since I could not configure Tomcat for this,
 I started writing my own MyFileLogger class. I am extending
 org.apache.catalina.logger.LoggerBase and my class is in my own package. But
 since the LoggerBase class does not have public access, it is not accessible
 to other packages. I cannot extend org.apache.catalina.logger.FileLogger
 class as its a final class and I do not wish to change Tomcat code.
 
 Should not this class have public access ? just like
 org.apache.catalina.valves.RequestFilterValve class has public access, and I
 was able to write my own   Valve for AccessControlList.
 
 
 thanks
 
 Animesh
 
 
 --
 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]




Log4j Problem ..... Please help

2002-05-14 Thread Prashant

Hi, 

 

i have a problem to use log4j for two different application.both appication 
on same server.my problem is
1-- i dont know what to do for that.
2-- if i create two different log4.configure file with same file name place 
in both different application /web-inf/class dir. then it will not create 
log file ( i am using file appander for INFO and ERROR)for that. 

 

i am using
Linux redhat7.2(Kernel 2.4.7-10)
Apache 1.3.02
tomcat4
jdk1.3.1
log4j-1.2rc1 

my configuration settings are 

for that i creat one log4j.configure .this file is present in my application 
/web-inf/class dir.
and creating environment variable 
(CATALINA_OPTS=-Dlog4j.configuration=log4j.configure ) in my /etc/profile 
dir in linux redhat7.2 

and logj.configure file is 


# Attach appender INFOLOG to root. Set root level to Level.ERROR .
log4j.rootLogger=DEBUG,INFOLOG,ERRORLOG 

# INFOLOG is set to be a FileAppender sending its output to
# System.out. However, only error messages and above will be printed
# in A1 because INFOLOG's threshold is set to Level.ERROR.
#File Appander
log4j.appender.INFOLOG=org.apache.log4j.FileAppender
log4j.appender.INFOLOG.Threshold=INFO
#pattern layout
log4j.appender.INFOLOG.layout=org.apache.log4j.PatternLayout 

log4j.appender.INFOLOG.File=AcdInfo.log
log4j.appender.INFOLOG.MaxFileSize=100KB
# Keep one backup file
log4j.appender.INFOLOG.MaxBackupIndex=1
log4j.appender.INFOLOG.layout.ConversionPattern=%d %-5p [%t] %c{2} - %m%n 

# for ERRORLOG
# Appender  ERRORLOG  writes to the file test.log in user's home. 

log4j.appender.ERRORLOG=org.apache.log4j.FileAppender
log4j.appender.ERRORLOG.layout=org.apache.log4j.PatternLayout 

log4j.appender.ERRORLOG.Threshold=ERROR
log4j.appender.ERRORLOG.File=AcdError.log 

log4j.appender.ERRORLOG.MaxFileSize=100KB
# Keep one backup file
log4j.appender.ERRORLOG.MaxBackupIndex=1 


# Pattern to output the caller's file name and line number.
log4j.appender.ERRORLOG.layout.ConversionPattern=%d %-5p [%t] %-17c{2} 
(%13F:%L) %3x - %m%n 

 

 

so please help 


prashant sharma
sofware engineer
Euro Rscg sogo Networks Pvt ltd,mumbai

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




tomcat on as400

2002-05-14 Thread PierreBESSON

Hello,

I have to install tomcat on as400, and I'm not an expert with this
system
jdk is included in the os, I have copied tomcat files on the system but I
can't use the script in bin directory...
Can someone tell me how I can achieve my requirement.


Thanks in advance

Pierre


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




REPOST: Problems serving PDF to Netscape browsers

2002-05-14 Thread Jeff Larsen

I've made no progress on this, so let's try again. My dynamic
PDF is working perfectly with MSIE 4, 5, and 6, but I'm still
having problems with Netscape (ver 4 and 6) and the Acrobat 
(ver 4 and 5) plugin. I've tried this on various client machines.

With both NS4 and NS6, I just get a blank screen when I request
my dynamic PDF. They don't even show the Acrobat toolbar. The 
similarities end there.

In NS4, the first request does not launch the AcroRd32.exe 
process. In fact, it fails to read the entire output of the
servlet and Tomcat (4.0.3) spits out a Broken Pipe exception
to the logs. If I hit Reload, however, I get my PDF and the
plugin works. According to the Apache logs, the first unsucessful
request returns 6144 of 21212 bytes before the broken pipe. On
the Reload, the Apache log shows TWO requests returning the
full 21212 bytes and Netscape displays it in the plugin.

In NS6, the first request DOES launch the plugin executable, but
that's as far as it gets. Reload doesn't help. My Apache server
reports the correct number of bytes for the full PDF request, so the
data seems to be getting to the browser. No exceptions are thrown 
by Tomcat.

In both NS4 and NS6, it works if I configure Acrobat to be launched
as an external application instead of a plugin. But it is not a
viable option to impose that configuration on our customers.

I use a servlet mapping that sends requests for xxx.pdf to my
servlet, thus the browser sees a .pdf filename. I also use
setContentType(application/pdf). There are known problems 
with MSIE and unknown ContentLength with PDF so I create the 
PDF in a ByteArrayOutputStream so I can know and set the 
ContentLength before writing to response.getOutputStream().

To take the dynamic nature of the PDF out of the equation, I was 
able to reproduce these problems --sometimes-- when serving static
PDF files via Tomcat.


- Original Message - 
From: Jeff Larsen [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, May 09, 2002 1:44 PM
Subject: Problems serving PDF to Netscape browsers


 I'm running out of hair to pull out here...
 
 My ultimate goal is to serve dynamically generated
 PDF documents generated with iText. I've got it working
 just fine with MSIE. However, I was just getting blank
 pages with Netscape (and it wasn't even showing the toolbar
 for Acrobat). With NS6 I could at least see that it started
 an AcroRd32.exe process, but NS4 didn't even get that far.
 
 So, I did some tests to rule out some variables. I grabbed
 a handful of pre-generated PDF files and stuck them on 
 my Apache 1.3.23 server. All browsers could display the
 PDFs just fine.  Then I set up Tomcat 4.0.3 to server the
 same files directly without going through Apache. MSIE worked, 
 but both NS browsers gave a blank page with no Acrobat plugin
 toolbar. Again NS6 managed to start an Acrobat process, NS4 
 didn't.
 
 My production environment is Apache 1.3.23 and Tomcat 4.0.3
 connected with mod_jk.
 
 
 
 --
 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]




existence of Alias tag in Tomcat 3.3?

2002-05-14 Thread Duane Gran

Tomcat Users,

I was under the impression that there was an Alias tag available within 
a WebApp that would allow multiple domain names to match to one Host 
entry.  For example:

webapps
 Host name=nickmain.spinweb.net
  Context path=
docBase=/usr/local/apache/sites/anotherbigidea.com/htdocs
debug=1
reloadable=true
  /Context
 Aliasanotherbigidea.com/Alias
 Aliaswww.anotherbigidea.com/Alias
 /Host
/webapps

In the example above, the httpd.conf would have a ServerName of 
nickmain.spinweb.net and a ServerAlias of anotherbigidea.com and 
www.anotherbigidea.com.  Is the Alias tag only part of Tomcat 4, or is 
there a way to do this in Tomcat 3 without duplicating the Host tag?  I 
appreciate any comments or suggestions on this, as I mistakenly 
transferred some domains and I'm needing to fix this one pretty quickly.

Duane


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




Solution: existence of Alias tag in Tomcat 3.3?

2002-05-14 Thread Duane Gran

I caught my error.  The description can be found on this page:

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

Basically I had a syntax error with the Alias tag and the tag *must* be 
present before the Context tag.  A corrected version of the webapp below 
would be:

webapps
 Host name=nickmain.spinweb.net
  Alias name=anotherbigidea.com /
  Alias name=www.anotherbigidea.com /
  Context path=
docBase=/usr/local/apache/sites/anotherbigidea.com/htdocs
debug=1
reloadable=true
  /Context
 /Host
/webapps

Duane

On Tuesday, May 14, 2002, at 12:14 PM, Duane Gran wrote:

 Tomcat Users,

 I was under the impression that there was an Alias tag available within 
 a WebApp that would allow multiple domain names to match to one Host 
 entry.  For example:

 webapps
 Host name=nickmain.spinweb.net
  Context path=
docBase=/usr/local/apache/sites/anotherbigidea.com/htdocs
debug=1
reloadable=true
  /Context
 Aliasanotherbigidea.com/Alias
 Aliaswww.anotherbigidea.com/Alias
 /Host
 /webapps

 In the example above, the httpd.conf would have a ServerName of 
 nickmain.spinweb.net and a ServerAlias of anotherbigidea.com and 
 www.anotherbigidea.com.  Is the Alias tag only part of Tomcat 4, or is 
 there a way to do this in Tomcat 3 without duplicating the Host tag?  I 
 appreciate any comments or suggestions on this, as I mistakenly 
 transferred some domains and I'm needing to fix this one pretty quickly.

 Duane


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


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




RE: catalina.LoggerBase class should have public access

2002-05-14 Thread Animesh Chaturvedi - US

Jeff

Thanks for the info.

Animesh

-Original Message-
From: Jeff Larsen [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 14, 2002 7:59 AM
To: Tomcat Users List
Subject: Re: catalina.LoggerBase class should have public access


I was whining about this too about a month ago, but I failed
to spark a discussion on this list. So I went to Bugzilla
and entered it as a feature request. Apparently, somebody
agreed with me. If you look at the nightly build source code, 
you will see that LoggerBase is now public and FileLogger is
no longer final. You can now easily subclass FileLogger and
need only override a small number of methods to achieve the 
desired results.

Now it's just a matter of waiting for the next production
quality release (unless you like living on the edge!).

Jeff

- Original Message - 
From: Animesh Chaturvedi - US [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Monday, May 13, 2002 6:03 PM
Subject: catalina.LoggerBase class should have public access


 
 Hi
 
 I have a requirement of a single log file instead of having the default
log
 files created on a daily basis. Since I could not configure Tomcat for
this,
 I started writing my own MyFileLogger class. I am extending
 org.apache.catalina.logger.LoggerBase and my class is in my own package.
But
 since the LoggerBase class does not have public access, it is not
accessible
 to other packages. I cannot extend org.apache.catalina.logger.FileLogger
 class as its a final class and I do not wish to change Tomcat code.
 
 Should not this class have public access ? just like
 org.apache.catalina.valves.RequestFilterValve class has public access, and
I
 was able to write my own   Valve for AccessControlList.
 
 
 thanks
 
 Animesh
 
 
 --
 To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

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

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




RE: existence of Alias tag in Tomcat 3.3?

2002-05-14 Thread Larry Isaacs

For the Alias element to work in Tomcat 3.3.x, it must preceed
all Context elements.  This requirement has to do with how the
XML is processed and keeping this feature simple to implement.
You can find additional details here:

http://jakarta.apache.org/tomcat/tomcat-3.3-doc/tomcat-ug.html#context_addcust


Cheers,
Larry

 -Original Message-
 From: Duane Gran [mailto:[EMAIL PROTECTED]] 
 Sent: Tuesday, May 14, 2002 12:15 PM
 To: [EMAIL PROTECTED]
 Cc: SpinWeb Admin
 Subject: existence of Alias tag in Tomcat 3.3?
 
 
 Tomcat Users,
 
 I was under the impression that there was an Alias tag 
 available within 
 a WebApp that would allow multiple domain names to match to one Host 
 entry.  For example:
 
 webapps
  Host name=nickmain.spinweb.net
   Context path=
 
 docBase=/usr/local/apache/sites/anotherbigidea.com/htdocs
 debug=1
 reloadable=true
   /Context
  Aliasanotherbigidea.com/Alias
  Aliaswww.anotherbigidea.com/Alias
  /Host
 /webapps
 
 In the example above, the httpd.conf would have a ServerName of 
 nickmain.spinweb.net and a ServerAlias of anotherbigidea.com and 
 www.anotherbigidea.com.  Is the Alias tag only part of Tomcat 
 4, or is 
 there a way to do this in Tomcat 3 without duplicating the 
 Host tag?  I 
 appreciate any comments or suggestions on this, as I mistakenly 
 transferred some domains and I'm needing to fix this one 
 pretty quickly.
 
 Duane
 
 
 --
 To unsubscribe, e-mail:   
 mailto:tomcat-user- [EMAIL PROTECTED]
 For 
 additional commands, 
 e-mail: mailto:[EMAIL PROTECTED]
 

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




Re: tomcat on as400

2002-05-14 Thread David Morris

Pierre,

Last February, Midrange Server published an article I wrote on 
setting up and running Tomcat on the iSeries (AS/400). The article 
is available online at:

http://www.midrangeserver.com/mpo/mpo021402.html 

The article points to an open source site on Source Forge that has 
some basic scripts for starting and running Tomcat on the iSeries. 
They have also published some tips etc. on setup and performance 
of Tomcat and Java that you may be interested in. Most of those are 
in the Guru, and Midrange Programmer areas.

David Morris

 [EMAIL PROTECTED] 05/14/02 09:33AM 
Hello,

I have to install tomcat on as400, and I'm not an expert with this
system
jdk is included in the os, I have copied tomcat files on the system but
I
can't use the script in bin directory...
Can someone tell me how I can achieve my requirement.


Thanks in advance

Pierre

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




Problem Tomcat Starting

2002-05-14 Thread puneet sachar

Hi friends,

Well i'm using the tomcat 4.x series and i have few
question 
regarding tomcat and its seting which has to be done
on autoexe 

1) What is to be done and what should be exact setting
in autoexec
2) what is tomcat_Home 
3) Do we have to explictly add the line in autoexec
4) What all other homes which we have to set Plz tell
me everything 

5) And i already have J2ee server with me and if i
have my autoexec having the classpath as=SET
CLASSPATH=D:\jdk1.3\lib;D:\jdk1.3\lib\tools.jar;D:\j2ee\lib;D:\j2ee\lib\j2ee.jar;D:\j2ee\lib\jhall.jar;D:\j2ee\lib\ejb10deployment.jar;D:\javamail\imap.jar;D:\javamail\mail.jar;D:\javamail\mailapi.jar;D:\javamail\pop3.jar;D:\javamail\smtp.jar;D:\Jturbo\JTurbo.jar;D:\Jturbo\lib\jdbc2_0-stdext;D:\Jturbo\lib\jndi.jar;D:\saxjava-1.0\sax.jar;D:\SMS\SWSMS.jar;D:\xml-writer\xml-writer.jar;D:\DOM2.jar;D:\sax2-r2pre2.jar;D:\xerces.jar;D:\jsdk2.0\lib\jsdk.jar;D:\jsdk2.1\servlet.jar;.;


the J2ee server don't work it showz the error out of
environment space and some exception of noClassFound
. when i start deployment tool 

and when i have autoexec as 
Set classpath=SET
CLASSPATH=D:\jdk1.3\lib;D:\jdk1.3\lib\tools.jar;D:\j2ee\lib;D:\j2ee\lib\j2ee.jar;D:\j2ee\lib\jhall.jar;D:\j2ee\lib\ejb10deployment.jar;.;
it runs fine..

what could be the error 
7) Is it windows Me don't take so many variables in
classpath
or something else

8) Friends i've always problem with autoexec and now
its in my mind ..that i cannot work properly with
autoexec 

so plz tell me all seting of Autoexec
and when i start the autoexec and tomcat , see this
what i'm getting

Out of environment space
Out of environment space
The CATALINA_HOME environment variable is not defined
correctly
This environment variable is needed to run this
program

9) Is the CATALINA_HOME=d:\Apache Tomcat 4.0

10) And do we use EJB also with this latest version of
Tomcat 4.3 

11) and if we want to use servlets , where we put
.class files and if use jsp where we put .jsp files

Plz i need the solutions
I u would like to give the solutions , plz also mail
me at [EMAIL PROTECTED]


Regards
Puneet Sachar


__
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com

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




Re: any jsp/servlet based groupware solutions out there?

2002-05-14 Thread mls


Since subscribing to Tomcat Users list (about a week - rather short
time period for generalizing!) have noticed mostly administrative /
configuration related stuff posted here. The actual use (in terms
of jsp/servlet that you seem interested in) seems seldom(?) 
discussed here.

What specific type of groupware project do you have in mind? Is it
something like a group calendar, white board, or shared creation
of a Tomcat FAQ without (gasp :-) any configuration info...

das

Vincent Stoessel wrote:
 
 Hello,
 I was wondering if any one knows of any  jsp/servlet based groupware
 projects that are going on. I think that this would be a great example
 of a j2ee app that would really showcase java technology.
 Anything out there already? Anybody want to start such a project?
 Thanks.
 --
 Vincent Stoessel
 Linux Systems Developer
 vincent xaymaca.com

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




Exception while accessing manager app from embedded tomcat

2002-05-14 Thread Sankaranarayanan (Ganesh) Ganapathy

Hi All,
I launched the embedded tomcat in my application - it is configured to use memory 
realm. I added a user with the manager role in the tomcat-users.xml file. When I try 
access the manager app I see the following exception enclosed at the bottom of the 
mail. The same thing seems to work fine if I launch the regular tomcat.
Any ideas?
Thanx
Ganesh
type Exception report
message Internal Server Error
description The server encountered an internal error (Internal Server Error) that 
prevented it from fulfilling this request.
exception 
javax.servlet.ServletException: Error allocating a servlet instance
at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java, 
Compiled Code)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
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.java:190)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:528)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java, 
Compiled Code)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
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:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java, Compiled 
Code)
at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java, 
Compiled Code)
at java.lang.Thread.run(Thread.java:479)
root cause 
java.lang.SecurityException: Servlet of class 
org.apache.catalina.servlets.ManagerServlet is privileged and cannot be loaded by this 
web application
at 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:900)
at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java, 
Compiled Code)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
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.java:190)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at 
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:528)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java, 
Compiled Code)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 

how to connect apache on one server to tomcat on another server

2002-05-14 Thread Peter Choe

okay, after pulling out my hair trying to get a mod_jk for freebsd (they 
have it in the ports), i am now trying to configure it so that my apache 
server, cartman, can forward the request for jsp's and servlets to my 
tomcat server, butters.

i have modified the workers.properties on cartman to the following:

worker.ajp13.port=8009
worker.ajp13.host=10.0.0.1 #ip of butters
worker.ajp13.type=ajp13

but when i try it, it only shows the tomcat server on cartman.  do i need 
to do something to the server.xml on butters to have it listen to requests 
from cartman?

Peter


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




Re: any jsp/servlet based groupware solutions out there?

2002-05-14 Thread Rick Fincher

Hi All,

I have a few simple things I could contribute, like a contact database that
lets users share a database of name, address, etc, etc. info.  It uses an
SQL DB but it's all open source.

I'm working on a program to syncronize it with Palm Pilots, but that has a
ways to go.

I've also got a shared calendar program, but I started with somebody else's
code and modified it a lot.  I've asked him for permission to open source
it, so I'll have to wait and see on that one.

I've also got a simple secure messaging web app, it's sort of like simple
e-mail but it's on the database server and you access it via HTTPS so you
can be on the road and send and receive secure messages when you don't have
access to secure mail.  It's set up to send you a regular e-mail to notify
you that you have a secure message wating.

I'm going to add the ability to enclose pdf files, spreadsheets, or MS Word
docments to that app so that you can do things like send and receive
contracts or other sensitive info securely over the web.

I'm sure a lot of folks have little thangs like that that we can pool and
make a nice Tomcat office productivity pack.

Rick

- Original Message -


 What specific type of groupware project do you have in mind? Is it
 something like a group calendar, white board, or shared creation
 of a Tomcat FAQ without (gasp :-) any configuration info...

 das

 Vincent Stoessel wrote:
 
  Hello,
  I was wondering if any one knows of any  jsp/servlet based groupware
  projects that are going on. I think that this would be a great example
  of a j2ee app that would really showcase java technology.
  Anything out there already? Anybody want to start such a project?
  Thanks.



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




Yet Another IIS/Tomcat Problem

2002-05-14 Thread Wagoner, Mark

I have Tomcat 4.0.3/isapi_redirect.dll mostly working on a Win2k server but
get the following in the log file:

[...]
[jk_isapi_plugin.c (439)]: HttpFilterProc [/home] is a servlet url - should
redirect to ajp13
[jk_isapi_plugin.c (461)]: HttpFilterProc check if [/home] is points to the
web-inf directory

then I get a 500 error in the browser.  Nothing appears in the Tomcat access
logs, so it appears the request is never handed off.  The page works fine if
I go directly to Tomcat on port 8080 (using the HTTP 1.1 connector).

Searching the archives I found this problem has been reported before and
changing localhost to the IP address fixed it.  However, I made this
change in my worker.properties file but it did not help.  Is this where the
change should be made or is there something else?

Thanks

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




Re: REPOST: Problems serving PDF to Netscape browsers

2002-05-14 Thread Mihai Gheorghiu

I do the following (call it whatever you want :-|, the reasons are beyond
technical):
I have an applet that calls the servlet that generates the pdf stream. The
applet then saves the stream as a file on the local HDD and opens the file
with Acrobat Reader. Of course you need to check whether the file is already
there, open etc.
HTH

-Original Message-
From: Jeff Larsen [EMAIL PROTECTED]
To: [EMAIL PROTECTED] [EMAIL PROTECTED]
Date: Tuesday, May 14, 2002 12:01 PM
Subject: REPOST: Problems serving PDF to Netscape browsers


I've made no progress on this, so let's try again. My dynamic
PDF is working perfectly with MSIE 4, 5, and 6, but I'm still
having problems with Netscape (ver 4 and 6) and the Acrobat
(ver 4 and 5) plugin. I've tried this on various client machines.

With both NS4 and NS6, I just get a blank screen when I request
my dynamic PDF. They don't even show the Acrobat toolbar. The
similarities end there.

In NS4, the first request does not launch the AcroRd32.exe
process. In fact, it fails to read the entire output of the
servlet and Tomcat (4.0.3) spits out a Broken Pipe exception
to the logs. If I hit Reload, however, I get my PDF and the
plugin works. According to the Apache logs, the first unsucessful
request returns 6144 of 21212 bytes before the broken pipe. On
the Reload, the Apache log shows TWO requests returning the
full 21212 bytes and Netscape displays it in the plugin.

In NS6, the first request DOES launch the plugin executable, but
that's as far as it gets. Reload doesn't help. My Apache server
reports the correct number of bytes for the full PDF request, so the
data seems to be getting to the browser. No exceptions are thrown
by Tomcat.

In both NS4 and NS6, it works if I configure Acrobat to be launched
as an external application instead of a plugin. But it is not a
viable option to impose that configuration on our customers.

I use a servlet mapping that sends requests for xxx.pdf to my
servlet, thus the browser sees a .pdf filename. I also use
setContentType(application/pdf). There are known problems
with MSIE and unknown ContentLength with PDF so I create the
PDF in a ByteArrayOutputStream so I can know and set the
ContentLength before writing to response.getOutputStream().

To take the dynamic nature of the PDF out of the equation, I was
able to reproduce these problems --sometimes-- when serving static
PDF files via Tomcat.


- Original Message -
From: Jeff Larsen [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, May 09, 2002 1:44 PM
Subject: Problems serving PDF to Netscape browsers


 I'm running out of hair to pull out here...

 My ultimate goal is to serve dynamically generated
 PDF documents generated with iText. I've got it working
 just fine with MSIE. However, I was just getting blank
 pages with Netscape (and it wasn't even showing the toolbar
 for Acrobat). With NS6 I could at least see that it started
 an AcroRd32.exe process, but NS4 didn't even get that far.

 So, I did some tests to rule out some variables. I grabbed
 a handful of pre-generated PDF files and stuck them on
 my Apache 1.3.23 server. All browsers could display the
 PDFs just fine.  Then I set up Tomcat 4.0.3 to server the
 same files directly without going through Apache. MSIE worked,
 but both NS browsers gave a blank page with no Acrobat plugin
 toolbar. Again NS6 managed to start an Acrobat process, NS4
 didn't.

 My production environment is Apache 1.3.23 and Tomcat 4.0.3
 connected with mod_jk.



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

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



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




RE: REPOST: Problems serving PDF to Netscape browsers

2002-05-14 Thread Sexton, George

The only tip I can provide is that you need to do the absolute minimum in
your page.

IOW, don't set extraneous headers to disable caching, etc. Really, just set
the content type and shove out the byte stream. You might also check that
you are using a straight output stream, and not a compressed one.

-Original Message-
From: Mihai Gheorghiu [mailto:[EMAIL PROTECTED]]
Sent: 14 May, 2002 12:29 PM
To: [EMAIL PROTECTED]
Subject: Re: REPOST: Problems serving PDF to Netscape browsers


I do the following (call it whatever you want :-|, the reasons are beyond
technical):
I have an applet that calls the servlet that generates the pdf stream. The
applet then saves the stream as a file on the local HDD and opens the file
with Acrobat Reader. Of course you need to check whether the file is already
there, open etc.
HTH

-Original Message-
From: Jeff Larsen [EMAIL PROTECTED]
To: [EMAIL PROTECTED] [EMAIL PROTECTED]
Date: Tuesday, May 14, 2002 12:01 PM
Subject: REPOST: Problems serving PDF to Netscape browsers


I've made no progress on this, so let's try again. My dynamic
PDF is working perfectly with MSIE 4, 5, and 6, but I'm still
having problems with Netscape (ver 4 and 6) and the Acrobat
(ver 4 and 5) plugin. I've tried this on various client machines.

With both NS4 and NS6, I just get a blank screen when I request
my dynamic PDF. They don't even show the Acrobat toolbar. The
similarities end there.

In NS4, the first request does not launch the AcroRd32.exe
process. In fact, it fails to read the entire output of the
servlet and Tomcat (4.0.3) spits out a Broken Pipe exception
to the logs. If I hit Reload, however, I get my PDF and the
plugin works. According to the Apache logs, the first unsucessful
request returns 6144 of 21212 bytes before the broken pipe. On
the Reload, the Apache log shows TWO requests returning the
full 21212 bytes and Netscape displays it in the plugin.

In NS6, the first request DOES launch the plugin executable, but
that's as far as it gets. Reload doesn't help. My Apache server
reports the correct number of bytes for the full PDF request, so the
data seems to be getting to the browser. No exceptions are thrown
by Tomcat.

In both NS4 and NS6, it works if I configure Acrobat to be launched
as an external application instead of a plugin. But it is not a
viable option to impose that configuration on our customers.

I use a servlet mapping that sends requests for xxx.pdf to my
servlet, thus the browser sees a .pdf filename. I also use
setContentType(application/pdf). There are known problems
with MSIE and unknown ContentLength with PDF so I create the
PDF in a ByteArrayOutputStream so I can know and set the
ContentLength before writing to response.getOutputStream().

To take the dynamic nature of the PDF out of the equation, I was
able to reproduce these problems --sometimes-- when serving static
PDF files via Tomcat.


- Original Message -
From: Jeff Larsen [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, May 09, 2002 1:44 PM
Subject: Problems serving PDF to Netscape browsers


 I'm running out of hair to pull out here...

 My ultimate goal is to serve dynamically generated
 PDF documents generated with iText. I've got it working
 just fine with MSIE. However, I was just getting blank
 pages with Netscape (and it wasn't even showing the toolbar
 for Acrobat). With NS6 I could at least see that it started
 an AcroRd32.exe process, but NS4 didn't even get that far.

 So, I did some tests to rule out some variables. I grabbed
 a handful of pre-generated PDF files and stuck them on
 my Apache 1.3.23 server. All browsers could display the
 PDFs just fine.  Then I set up Tomcat 4.0.3 to server the
 same files directly without going through Apache. MSIE worked,
 but both NS browsers gave a blank page with no Acrobat plugin
 toolbar. Again NS6 managed to start an Acrobat process, NS4
 didn't.

 My production environment is Apache 1.3.23 and Tomcat 4.0.3
 connected with mod_jk.



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

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



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


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




CoyoteConnector with SSL no longer works, was Re: [ANNOUNCEMENT] Tomcat 4.0.4 Beta 3 released

2002-05-14 Thread Jonathan Eric Miller

I just noticed that the CoyoteConnector no longer seems to work. I'm using
the config listed below for my server.xml. This worked fine with Tomcat
4.0.4b2-01 and Coyote 1.0b5. Now, it just hangs.

Server port=8005
 shutdown=SHUTDOWN
 debug=0
 Service name=Tomcat-Standalone
  Connector className=org.apache.coyote.tomcat4.CoyoteConnector
   port=80
   minProcessors=5
   maxProcessors=75
   enableLookups=true
   redirectPort=443
   acceptCount=10
   debug=0
   connectionTimeout=2/
  Connector className=org.apache.coyote.tomcat4.CoyoteConnector
   port=443
   minProcessors=5
   maxProcessors=75
   enableLookups=true
   acceptCount=10
   debug=0
   scheme=https
   secure=true
   Factory className=org.apache.catalina.net.SSLServerSocketFactory
clientAuth=false
protocol=TLS/
  /Connector
  Engine name=Standalone
   defaultHost=localhost
   debug=0
   Logger className=org.apache.catalina.logger.FileLogger
prefix=catalina_log.
suffix=.txt
timestamp=true/
   Host name=localhost
debug=0
appBase=webapps
unpackWARs=true
Valve className=org.apache.catalina.valves.AccessLogValve
 directory=logs
 prefix=localhost_access_log.
 suffix=.txt
 pattern=common/
Logger className=org.apache.catalina.logger.FileLogger
 directory=logs
 prefix=localhost_log.
 suffix=.txt
 timestamp=true/
Context path=
 docBase=ROOT
 debug=0
 reloadable=true/
   /Host
  /Engine
 /Service
/Server

Jon

- Original Message -
From: Remy Maucherat [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; [EMAIL PROTECTED];
[EMAIL PROTECTED]
Sent: Saturday, May 11, 2002 6:15 PM
Subject: [ANNOUNCEMENT] Tomcat 4.0.4 Beta 3 released


 The third beta release of Tomcat 4.0.4 has been released. This release
 includes bugfixes and small feature additions over Tomcat 4.0.2/4.0.3
 (please refer to the release notes for the complete list).

 Release notes:

http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.4-b3/RELEAS
 E-NOTES

 Downloads (source and binaries):
 http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.4-b3/

 Remy


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



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




RE: any jsp/servlet based groupware solutions out there?

2002-05-14 Thread Bing Zhang

Since Instant Messaging is very hot now, any thoughts on that? or someone is
already doing that? I remember someone was doing Chat with servlet.

Bing 

-Original Message-
From: Rick Fincher
To: Tomcat Users List
Sent: 5/14/02 12:29 PM
Subject: Re: any jsp/servlet based groupware solutions out there?

Hi All,

I have a few simple things I could contribute, like a contact database
that
lets users share a database of name, address, etc, etc. info.  It uses
an
SQL DB but it's all open source.

I'm working on a program to syncronize it with Palm Pilots, but that has
a
ways to go.

I've also got a shared calendar program, but I started with somebody
else's
code and modified it a lot.  I've asked him for permission to open
source
it, so I'll have to wait and see on that one.

I've also got a simple secure messaging web app, it's sort of like
simple
e-mail but it's on the database server and you access it via HTTPS so
you
can be on the road and send and receive secure messages when you don't
have
access to secure mail.  It's set up to send you a regular e-mail to
notify
you that you have a secure message wating.

I'm going to add the ability to enclose pdf files, spreadsheets, or MS
Word
docments to that app so that you can do things like send and receive
contracts or other sensitive info securely over the web.

I'm sure a lot of folks have little thangs like that that we can pool
and
make a nice Tomcat office productivity pack.

Rick

- Original Message -


 What specific type of groupware project do you have in mind? Is it
 something like a group calendar, white board, or shared creation
 of a Tomcat FAQ without (gasp :-) any configuration info...

 das

 Vincent Stoessel wrote:
 
  Hello,
  I was wondering if any one knows of any  jsp/servlet based groupware
  projects that are going on. I think that this would be a great
example
  of a j2ee app that would really showcase java technology.
  Anything out there already? Anybody want to start such a project?
  Thanks.



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

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




RE: REPOST: Problems serving PDF to Netscape browsers

2002-05-14 Thread Sexton, George

I thought of one other question. What happens if you connect to the http 1.1
connector directly and don't go through mod_jk?

-Original Message-
From: Sexton, George [mailto:[EMAIL PROTECTED]]
Sent: 14 May, 2002 2:36 PM
To: Tomcat Users List
Subject: RE: REPOST: Problems serving PDF to Netscape browsers


The only tip I can provide is that you need to do the absolute minimum in
your page.

IOW, don't set extraneous headers to disable caching, etc. Really, just set
the content type and shove out the byte stream. You might also check that
you are using a straight output stream, and not a compressed one.

-Original Message-
From: Mihai Gheorghiu [mailto:[EMAIL PROTECTED]]
Sent: 14 May, 2002 12:29 PM
To: [EMAIL PROTECTED]
Subject: Re: REPOST: Problems serving PDF to Netscape browsers


I do the following (call it whatever you want :-|, the reasons are beyond
technical):
I have an applet that calls the servlet that generates the pdf stream. The
applet then saves the stream as a file on the local HDD and opens the file
with Acrobat Reader. Of course you need to check whether the file is already
there, open etc.
HTH

-Original Message-
From: Jeff Larsen [EMAIL PROTECTED]
To: [EMAIL PROTECTED] [EMAIL PROTECTED]
Date: Tuesday, May 14, 2002 12:01 PM
Subject: REPOST: Problems serving PDF to Netscape browsers


I've made no progress on this, so let's try again. My dynamic
PDF is working perfectly with MSIE 4, 5, and 6, but I'm still
having problems with Netscape (ver 4 and 6) and the Acrobat
(ver 4 and 5) plugin. I've tried this on various client machines.

With both NS4 and NS6, I just get a blank screen when I request
my dynamic PDF. They don't even show the Acrobat toolbar. The
similarities end there.

In NS4, the first request does not launch the AcroRd32.exe
process. In fact, it fails to read the entire output of the
servlet and Tomcat (4.0.3) spits out a Broken Pipe exception
to the logs. If I hit Reload, however, I get my PDF and the
plugin works. According to the Apache logs, the first unsucessful
request returns 6144 of 21212 bytes before the broken pipe. On
the Reload, the Apache log shows TWO requests returning the
full 21212 bytes and Netscape displays it in the plugin.

In NS6, the first request DOES launch the plugin executable, but
that's as far as it gets. Reload doesn't help. My Apache server
reports the correct number of bytes for the full PDF request, so the
data seems to be getting to the browser. No exceptions are thrown
by Tomcat.

In both NS4 and NS6, it works if I configure Acrobat to be launched
as an external application instead of a plugin. But it is not a
viable option to impose that configuration on our customers.

I use a servlet mapping that sends requests for xxx.pdf to my
servlet, thus the browser sees a .pdf filename. I also use
setContentType(application/pdf). There are known problems
with MSIE and unknown ContentLength with PDF so I create the
PDF in a ByteArrayOutputStream so I can know and set the
ContentLength before writing to response.getOutputStream().

To take the dynamic nature of the PDF out of the equation, I was
able to reproduce these problems --sometimes-- when serving static
PDF files via Tomcat.


- Original Message -
From: Jeff Larsen [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, May 09, 2002 1:44 PM
Subject: Problems serving PDF to Netscape browsers


 I'm running out of hair to pull out here...

 My ultimate goal is to serve dynamically generated
 PDF documents generated with iText. I've got it working
 just fine with MSIE. However, I was just getting blank
 pages with Netscape (and it wasn't even showing the toolbar
 for Acrobat). With NS6 I could at least see that it started
 an AcroRd32.exe process, but NS4 didn't even get that far.

 So, I did some tests to rule out some variables. I grabbed
 a handful of pre-generated PDF files and stuck them on
 my Apache 1.3.23 server. All browsers could display the
 PDFs just fine.  Then I set up Tomcat 4.0.3 to server the
 same files directly without going through Apache. MSIE worked,
 but both NS browsers gave a blank page with no Acrobat plugin
 toolbar. Again NS6 managed to start an Acrobat process, NS4
 didn't.

 My production environment is Apache 1.3.23 and Tomcat 4.0.3
 connected with mod_jk.



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

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



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


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


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




RE: Yet Another IIS/Tomcat Problem

2002-05-14 Thread simpson

i had this same problem and also posted to this list with no replies.
i followed the tomcat docs to the letter to no avail.
someone posted the following url regarding setting up tomcat as a service on
NT
i followed this ( except or the service part ) including the
iis_redirect.dll download and now everything works just fine.

http://members.ozemail.com.au/~lampante/howto/tomcat/iisnt/#4




 -Original Message-
 From: Wagoner, Mark [mailto:[EMAIL PROTECTED]]
 Sent: May 14, 2002 15:39
 To: Tomcat User List (E-mail)
 Subject: Yet Another IIS/Tomcat Problem
 
 
 I have Tomcat 4.0.3/isapi_redirect.dll mostly working on a 
 Win2k server but
 get the following in the log file:
 
 [...]
 [jk_isapi_plugin.c (439)]: HttpFilterProc [/home] is a 
 servlet url - should
 redirect to ajp13
 [jk_isapi_plugin.c (461)]: HttpFilterProc check if [/home] is 
 points to the
 web-inf directory
 
 then I get a 500 error in the browser.  Nothing appears in 
 the Tomcat access
 logs, so it appears the request is never handed off.  The 
 page works fine if
 I go directly to Tomcat on port 8080 (using the HTTP 1.1 connector).
 
 Searching the archives I found this problem has been reported 
 before and
 changing localhost to the IP address fixed it.  However, I made this
 change in my worker.properties file but it did not help.  Is 
 this where the
 change should be made or is there something else?
 
 Thanks
 
 --
 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]




Problem with nonaming

2002-05-14 Thread Emerson Cargnin - MSA

Does the manager has some know bugs in version 4.0.4?
It just don't work, either as http url or as ANT task.

- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, May 14, 2002 5:52 PM
Subject: RE: Yet Another IIS/Tomcat Problem


 i had this same problem and also posted to this list with no replies.
 i followed the tomcat docs to the letter to no avail.
 someone posted the following url regarding setting up tomcat as a service
on
 NT
 i followed this ( except or the service part ) including the
 iis_redirect.dll download and now everything works just fine.

 http://members.ozemail.com.au/~lampante/howto/tomcat/iisnt/#4




  -Original Message-
  From: Wagoner, Mark [mailto:[EMAIL PROTECTED]]
  Sent: May 14, 2002 15:39
  To: Tomcat User List (E-mail)
  Subject: Yet Another IIS/Tomcat Problem
 
 
  I have Tomcat 4.0.3/isapi_redirect.dll mostly working on a
  Win2k server but
  get the following in the log file:
 
  [...]
  [jk_isapi_plugin.c (439)]: HttpFilterProc [/home] is a
  servlet url - should
  redirect to ajp13
  [jk_isapi_plugin.c (461)]: HttpFilterProc check if [/home] is
  points to the
  web-inf directory
 
  then I get a 500 error in the browser.  Nothing appears in
  the Tomcat access
  logs, so it appears the request is never handed off.  The
  page works fine if
  I go directly to Tomcat on port 8080 (using the HTTP 1.1 connector).
 
  Searching the archives I found this problem has been reported
  before and
  changing localhost to the IP address fixed it.  However, I made this
  change in my worker.properties file but it did not help.  Is
  this where the
  change should be made or is there something else?
 
  Thanks
 
  --
  To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
 
 
 

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


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




RE: REPOST: Problems serving PDF to Netscape browsers

2002-05-14 Thread Andy Eastham

Jeff,

As a last resort, you could write the pdf to a temporary directory
accessible via apache, then send the browser a redirect to that file.  That
way, the actual PDF will be served by apache, not Tomcat.  You'll obviously
have to tidy up the generated PDFs periodically, although the temp file
methods in java.io.File should help. Also, java.util.Timer is useful for
writing jobs which do clean up tasks.

This is of course undesirable, but sometimes you just have to do what it
takes to make something work... :-(

Good luck,

Andy

 -Original Message-
 From: Jeff Larsen [mailto:[EMAIL PROTECTED]]
 Sent: 14 May 2002 17:01
 To: [EMAIL PROTECTED]
 Subject: REPOST: Problems serving PDF to Netscape browsers


 I've made no progress on this, so let's try again. My dynamic
 PDF is working perfectly with MSIE 4, 5, and 6, but I'm still
 having problems with Netscape (ver 4 and 6) and the Acrobat
 (ver 4 and 5) plugin. I've tried this on various client machines.

 With both NS4 and NS6, I just get a blank screen when I request
 my dynamic PDF. They don't even show the Acrobat toolbar. The
 similarities end there.

 In NS4, the first request does not launch the AcroRd32.exe
 process. In fact, it fails to read the entire output of the
 servlet and Tomcat (4.0.3) spits out a Broken Pipe exception
 to the logs. If I hit Reload, however, I get my PDF and the
 plugin works. According to the Apache logs, the first unsucessful
 request returns 6144 of 21212 bytes before the broken pipe. On
 the Reload, the Apache log shows TWO requests returning the
 full 21212 bytes and Netscape displays it in the plugin.

 In NS6, the first request DOES launch the plugin executable, but
 that's as far as it gets. Reload doesn't help. My Apache server
 reports the correct number of bytes for the full PDF request, so the
 data seems to be getting to the browser. No exceptions are thrown
 by Tomcat.

 In both NS4 and NS6, it works if I configure Acrobat to be launched
 as an external application instead of a plugin. But it is not a
 viable option to impose that configuration on our customers.

 I use a servlet mapping that sends requests for xxx.pdf to my
 servlet, thus the browser sees a .pdf filename. I also use
 setContentType(application/pdf). There are known problems
 with MSIE and unknown ContentLength with PDF so I create the
 PDF in a ByteArrayOutputStream so I can know and set the
 ContentLength before writing to response.getOutputStream().

 To take the dynamic nature of the PDF out of the equation, I was
 able to reproduce these problems --sometimes-- when serving static
 PDF files via Tomcat.


 - Original Message -
 From: Jeff Larsen [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Thursday, May 09, 2002 1:44 PM
 Subject: Problems serving PDF to Netscape browsers


  I'm running out of hair to pull out here...
 
  My ultimate goal is to serve dynamically generated
  PDF documents generated with iText. I've got it working
  just fine with MSIE. However, I was just getting blank
  pages with Netscape (and it wasn't even showing the toolbar
  for Acrobat). With NS6 I could at least see that it started
  an AcroRd32.exe process, but NS4 didn't even get that far.
 
  So, I did some tests to rule out some variables. I grabbed
  a handful of pre-generated PDF files and stuck them on
  my Apache 1.3.23 server. All browsers could display the
  PDFs just fine.  Then I set up Tomcat 4.0.3 to server the
  same files directly without going through Apache. MSIE worked,
  but both NS browsers gave a blank page with no Acrobat plugin
  toolbar. Again NS6 managed to start an Acrobat process, NS4
  didn't.
 
  My production environment is Apache 1.3.23 and Tomcat 4.0.3
  connected with mod_jk.
 
 
 
  --
  To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]

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





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




Re: REPOST: Problems serving PDF to Netscape browsers

2002-05-14 Thread Jeff Larsen

Direct connection to Tomcat does not help...

And I've tried reconfiguring the headers too. I even
mimicked the exact headers that Apache sends when it 
serves a static PDF file. No luck...

I wish I could run Netscape and Adobe in a debugger!

- Original Message - 
From: Sexton, George [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, May 14, 2002 3:40 PM
Subject: RE: REPOST: Problems serving PDF to Netscape browsers


 I thought of one other question. What happens if you connect to the http 1.1
 connector directly and don't go through mod_jk?
 
 -Original Message-
 From: Sexton, George [mailto:[EMAIL PROTECTED]]
 Sent: 14 May, 2002 2:36 PM
 To: Tomcat Users List
 Subject: RE: REPOST: Problems serving PDF to Netscape browsers
 
 
 The only tip I can provide is that you need to do the absolute minimum in
 your page.
 
 IOW, don't set extraneous headers to disable caching, etc. Really, just set
 the content type and shove out the byte stream. You might also check that
 you are using a straight output stream, and not a compressed one.
 
 -Original Message-
 From: Mihai Gheorghiu [mailto:[EMAIL PROTECTED]]
 Sent: 14 May, 2002 12:29 PM
 To: [EMAIL PROTECTED]
 Subject: Re: REPOST: Problems serving PDF to Netscape browsers
 
 
 I do the following (call it whatever you want :-|, the reasons are beyond
 technical):
 I have an applet that calls the servlet that generates the pdf stream. The
 applet then saves the stream as a file on the local HDD and opens the file
 with Acrobat Reader. Of course you need to check whether the file is already
 there, open etc.
 HTH
 
 -Original Message-
 From: Jeff Larsen [EMAIL PROTECTED]
 To: [EMAIL PROTECTED] [EMAIL PROTECTED]
 Date: Tuesday, May 14, 2002 12:01 PM
 Subject: REPOST: Problems serving PDF to Netscape browsers
 
 
 I've made no progress on this, so let's try again. My dynamic
 PDF is working perfectly with MSIE 4, 5, and 6, but I'm still
 having problems with Netscape (ver 4 and 6) and the Acrobat
 (ver 4 and 5) plugin. I've tried this on various client machines.
 
 With both NS4 and NS6, I just get a blank screen when I request
 my dynamic PDF. They don't even show the Acrobat toolbar. The
 similarities end there.
 
 In NS4, the first request does not launch the AcroRd32.exe
 process. In fact, it fails to read the entire output of the
 servlet and Tomcat (4.0.3) spits out a Broken Pipe exception
 to the logs. If I hit Reload, however, I get my PDF and the
 plugin works. According to the Apache logs, the first unsucessful
 request returns 6144 of 21212 bytes before the broken pipe. On
 the Reload, the Apache log shows TWO requests returning the
 full 21212 bytes and Netscape displays it in the plugin.
 
 In NS6, the first request DOES launch the plugin executable, but
 that's as far as it gets. Reload doesn't help. My Apache server
 reports the correct number of bytes for the full PDF request, so the
 data seems to be getting to the browser. No exceptions are thrown
 by Tomcat.
 
 In both NS4 and NS6, it works if I configure Acrobat to be launched
 as an external application instead of a plugin. But it is not a
 viable option to impose that configuration on our customers.
 
 I use a servlet mapping that sends requests for xxx.pdf to my
 servlet, thus the browser sees a .pdf filename. I also use
 setContentType(application/pdf). There are known problems
 with MSIE and unknown ContentLength with PDF so I create the
 PDF in a ByteArrayOutputStream so I can know and set the
 ContentLength before writing to response.getOutputStream().
 
 To take the dynamic nature of the PDF out of the equation, I was
 able to reproduce these problems --sometimes-- when serving static
 PDF files via Tomcat.
 
 
 - Original Message -
 From: Jeff Larsen [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Thursday, May 09, 2002 1:44 PM
 Subject: Problems serving PDF to Netscape browsers
 
 
  I'm running out of hair to pull out here...
 
  My ultimate goal is to serve dynamically generated
  PDF documents generated with iText. I've got it working
  just fine with MSIE. However, I was just getting blank
  pages with Netscape (and it wasn't even showing the toolbar
  for Acrobat). With NS6 I could at least see that it started
  an AcroRd32.exe process, but NS4 didn't even get that far.
 
  So, I did some tests to rule out some variables. I grabbed
  a handful of pre-generated PDF files and stuck them on
  my Apache 1.3.23 server. All browsers could display the
  PDFs just fine.  Then I set up Tomcat 4.0.3 to server the
  same files directly without going through Apache. MSIE worked,
  but both NS browsers gave a blank page with no Acrobat plugin
  toolbar. Again NS6 managed to start an Acrobat process, NS4
  didn't.
 
  My production environment is Apache 1.3.23 and Tomcat 4.0.3
  connected with mod_jk.
 
 
 
  --
  To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 --
 

Tomcat installation: HTTP Status 404 error message

2002-05-14 Thread Neil Zanella


Hello,

I have just installed Apache Jakarta Tomcat 4.0.3, Java 2 SDK 1.4.0,
and Java 2 SDK EE 1.3.1 on a Red Hat 7.3 Linux platform. I appended
the following lines to my personal ~/.bash_profile file:

export PATH=$PATH:/usr/local/jdk/bin
export JAVA_HOME=/usr/local/j2sdk1.4.0
export CLASSPATH=.:/usr/local/j2sdkee1.3.1/lib/j2ee.jar
export CATALINA_HOME=/usr/local/jakarta-tomcat-4.0.3
export CLASSPATH=$CLASSPATH:/usr/local/saxon/saxon.jar

I can view the following file:

/usr/local/jakarta-tomcat-4.0.3/webapps/ROOT/index.html

by pointing my browser to http://localhost:8080/

However when I tried to run a servlet by creating directory:

/usr/local/jakarta-tomcat-4.0.3/webapps/ROOT/WEB-INF/classes

and placing class file HelloWorldServlet.class there and

accessing http://localhost:8080/servlet/HelloWorldServlet

I get the following error:

Apache Tomcat/4.0.3 - HTTP Status 404 - /servlets/HelloWorldServlet

!!

Why? I can view the example servlet files just fine.
Is there some file such as web.xml or so which I need
to configure to be able to view HelloWorldServlet in
this directory (which I believe is the standard place
where servlets should be put)?

Thanks a lot,

Neil


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




Re: REPOST: Problems serving PDF to Netscape browsers

2002-05-14 Thread Jeff Larsen

As much as it pained me to do so, I tried generating static
files and redirecting, but it still behaved the same way!!!

It's got to be something about iText that the Netscape/Acrobat
combination doesn't like. Too bad there aren't any (free) packages 
better than iText! Has anybody worked with Big Faceless?

Jeff

- Original Message - 
From: Andy Eastham [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, May 14, 2002 3:54 PM
Subject: RE: REPOST: Problems serving PDF to Netscape browsers


 Jeff,
 
 As a last resort, you could write the pdf to a temporary directory
 accessible via apache, then send the browser a redirect to that file.  That
 way, the actual PDF will be served by apache, not Tomcat.  You'll obviously
 have to tidy up the generated PDFs periodically, although the temp file
 methods in java.io.File should help. Also, java.util.Timer is useful for
 writing jobs which do clean up tasks.
 
 This is of course undesirable, but sometimes you just have to do what it
 takes to make something work... :-(
 
 Good luck,
 
 Andy
 
  -Original Message-
  From: Jeff Larsen [mailto:[EMAIL PROTECTED]]
  Sent: 14 May 2002 17:01
  To: [EMAIL PROTECTED]
  Subject: REPOST: Problems serving PDF to Netscape browsers
 
 
  I've made no progress on this, so let's try again. My dynamic
  PDF is working perfectly with MSIE 4, 5, and 6, but I'm still
  having problems with Netscape (ver 4 and 6) and the Acrobat
  (ver 4 and 5) plugin. I've tried this on various client machines.
 
  With both NS4 and NS6, I just get a blank screen when I request
  my dynamic PDF. They don't even show the Acrobat toolbar. The
  similarities end there.
 
  In NS4, the first request does not launch the AcroRd32.exe
  process. In fact, it fails to read the entire output of the
  servlet and Tomcat (4.0.3) spits out a Broken Pipe exception
  to the logs. If I hit Reload, however, I get my PDF and the
  plugin works. According to the Apache logs, the first unsucessful
  request returns 6144 of 21212 bytes before the broken pipe. On
  the Reload, the Apache log shows TWO requests returning the
  full 21212 bytes and Netscape displays it in the plugin.
 
  In NS6, the first request DOES launch the plugin executable, but
  that's as far as it gets. Reload doesn't help. My Apache server
  reports the correct number of bytes for the full PDF request, so the
  data seems to be getting to the browser. No exceptions are thrown
  by Tomcat.
 
  In both NS4 and NS6, it works if I configure Acrobat to be launched
  as an external application instead of a plugin. But it is not a
  viable option to impose that configuration on our customers.
 
  I use a servlet mapping that sends requests for xxx.pdf to my
  servlet, thus the browser sees a .pdf filename. I also use
  setContentType(application/pdf). There are known problems
  with MSIE and unknown ContentLength with PDF so I create the
  PDF in a ByteArrayOutputStream so I can know and set the
  ContentLength before writing to response.getOutputStream().
 
  To take the dynamic nature of the PDF out of the equation, I was
  able to reproduce these problems --sometimes-- when serving static
  PDF files via Tomcat.
 
 
  - Original Message -
  From: Jeff Larsen [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Thursday, May 09, 2002 1:44 PM
  Subject: Problems serving PDF to Netscape browsers
 
 
   I'm running out of hair to pull out here...
  
   My ultimate goal is to serve dynamically generated
   PDF documents generated with iText. I've got it working
   just fine with MSIE. However, I was just getting blank
   pages with Netscape (and it wasn't even showing the toolbar
   for Acrobat). With NS6 I could at least see that it started
   an AcroRd32.exe process, but NS4 didn't even get that far.
  
   So, I did some tests to rule out some variables. I grabbed
   a handful of pre-generated PDF files and stuck them on
   my Apache 1.3.23 server. All browsers could display the
   PDFs just fine.  Then I set up Tomcat 4.0.3 to server the
   same files directly without going through Apache. MSIE worked,
   but both NS browsers gave a blank page with no Acrobat plugin
   toolbar. Again NS6 managed to start an Acrobat process, NS4
   didn't.
  
   My production environment is Apache 1.3.23 and Tomcat 4.0.3
   connected with mod_jk.
  
  
  
   --
   To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
   For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
 
  --
  To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
 
 
 
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]

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




Problem with Tomcat 4

2002-05-14 Thread Ben Ricker

I have a installation of Apache/Tomcat which is working...sort of.

I have everything configured according to the snippets I will post
below. Here is the strangeness: I initially configured Tomcat as
standalone and was able to pull up the servlet app perfectly well.
Everything performed as expected. Now when I call the URL mapped to
Tomcat, I get a blank, well-formed HTML page! That is
'HTMLBODY/BODY/HTML'.

My pertinent configs are below. I setup the workers.properties as
loadbalanced because I could only find a complete config in this form.

--First, My httpd.conf stuff--

# Mod_jk configuration
LoadModulejk_module  libexec/mod_jk.so
AddModule mod_jk.c
JkWorkersFile /usr/local/apache/conf/workers.properties
JkLogFile /usr/local/apache/logs/mod_jk.log
JkLogLevelinfo
JkLogStampFormat [%a %b %d %H:%M:%S %Y] 
JkMount /servlets/* loadbalancer
JkMount /*.jsp loadbalancer

--Next,my workers.properties--

# Using Single Tomcat Instance using AJPV13
#
#workers.tomcat_home=/usr/local/tomcat
#workers.java_home=/usr/local/jdk
ps=/
worker.list=tomcat1, loadbalancer

# Definition for Ajp13 worker (Ajp12 left to readers imagination)
#
worker.tomcat1.port=8009
worker.tomcat1.host=remotehost.wellinx.com
worker.tomcat1.type=ajp13

# Specifies the load balance factor when used with a load balanced
# worker
#
# Note:
# - lbfactor must be  0
# - The lower the lbfactor the less work done by worker
worker.tomcat1.lbfactor=100

# 
# Load Balancer worker
# 

#
# The loadbalancer (type lb) worker performs weighted round-robin
# load balancing with sticky sessions.
# Note:
#   If a worker dies, the load balancer will check its state
#once in a while. Until then all work is redirected to peer
#worker.
worker.loadbalancer.type=lb
worker.loadbalancer.balanced_workers=tomcat1

#
# END workers.properties
#

--Finally, my server.xml stuff--

!-- Define an AJP 1.3 Connector on port 8009 --

Connector className=org.apache.ajp.tomcat4.Ajp13Connector
   port=8009 minProcessors=10 maxProcessors=75
   acceptCount=10 debug=0/

Context path=/servlets
 docBase=/usr/local/tomcat/webapps/servlets
 debug=0
 reloadable=false
   Logger className=org.apache.catalina.logger.FileLogger
   prefix=wellinx- suffix = .log
   timestamp=true/

 /Context


Any ideas why I get a blank page? The logs show that the connection is
being made from the apache server to the java server through port 8009.
Debugging showed that the request was received and finished by Tomcat,
but the response was the blank page.

Thanks!

Ben Ricker
Web Security System Administrator
Wellinx.com



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




Can all virtual hosts use a webapp that is put inside $tomcat_home$/webapps?

2002-05-14 Thread Brandon Cruz

I have many virtual hosts.  Right now, they all access a webapp because I
have set the context to that webapp inside their Host tag in server.xml.
I would like to change it so that all I have to do is put the webapp inside
$tomcat_home$/webapps.  Is this possible so that I can avoid the redundant
entries in server.xml, or does virtual hosting cause a problem with this?  I
am using tomcat 3.2.4, thanks in advance for any help!


Brandon


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




How do filters work with error-page and RequestDispatcher?

2002-05-14 Thread Nathan Vick

I am programming a web application with filters that run XSLT's (using
Xalan) against the XML written out by servlets. I have also created servlets
to serve as error pages by writing out error messages as XML documents,
which then get transformed into user-friendly HTML by filters that use XSLT.
I map these error servlets to a path, and associate certain exceptions with
those paths.

Unfortunately for me, the filters are not used when the error servlets get
called. If I request the path to the error servlets directly from a browser,
then the filters are used. However, when a servlet throws an exception that
is mapped to a path that happens to be filtered, the filters are not used.
(If the path is mapped to a servlet, then the servlet is called, but any
filters mapped to that path are ignored).

If an error-page is mapped to a location that happens to be mapped to 1+
filters and 0 or 1 servlets, are the filter-mapping elements really meant to
be ignored while the servlet-mapping elements are respected?

Does the RequestDispatcher work the same way (ignoring filter-mapping
elements and respecting servlet-mapping elements)?

I have tried to make sense of the Servlet 2.3 spec, but I can not find a
place where it describes how filters work with error-page elements and
RequestDispatcher objects.

Here is a selection from my web.xml file:

  filter
filter-nameDirectoryTemplates/filter-name
description
  Applies the specified XSLT.
/description

filter-classca.capilanocollege.servlet.xml.TemplatesFilter/filter-class
init-param
  param-nametemplatesUrl/param-name
  param-value/directory/directory.xsl/param-value
/init-param
  /filter

  filter
filter-nameDirectoryExceptionTemplates/filter-name
description
  Applies the specified XSLT.
/description

filter-classca.capilanocollege.servlet.xml.TemplatesFilter/filter-class
init-param
  param-nametemplatesUrl/param-name
  param-value/directory/directory-exception.xsl/param-value
/init-param
  /filter

  filter-mapping
filter-nameDirectoryTemplates/filter-name
servlet-nameDirectory/servlet-name
  /filter-mapping

  filter-mapping
filter-nameDirectoryExceptionTemplates/filter-name
servlet-nameDirectoryException/servlet-name
  /filter-mapping

  servlet
servlet-nameDirectory/servlet-name
description
  Searches all employees and administrators working at Capilano College.
/description

servlet-classca.capilanocollege.names.servlets.Directory/servlet-class
load-on-startup/
  /servlet

  servlet
servlet-nameDirectoryException/servlet-name

servlet-classca.capilanocollege.servlet.xml.ExceptionToXmlServlet/servlet
-class
load-on-startup/
  /servlet

  servlet-mapping
servlet-nameDirectory/servlet-name
url-pattern/directory/directory.serv/url-pattern
  /servlet-mapping

  servlet-mapping
servlet-nameDirectoryException/servlet-name
url-pattern/directory/directory-exception.serv/url-pattern
  /servlet-mapping

  error-page

exception-typeca.capilanocollege.names.exceptions.DirectoryException/exce
ption-type
location/directory/directory-exception.serv/location
  /error-page


Thank you so much,
Nathan

~~
Nathan Vick
Programmer/Analyst
Capilano College


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




Form based auth problems with jsessionid in url

2002-05-14 Thread Ingo Bruell

Hi,

i am using tomcat 4.0.3 under jdk1.4.

I have configured form based authentifikation and it works great if
cookies are allowed. but if the client diables cookies (with opera,
mozilla or netscape), and the login form was shown, in the url also a
session is generated. When i submit this form the following error was
shown:

--- snip ---
type Status report

message Invalid direct reference to form login page

description The request sent by the client was syntactically incorrect (Invalid direct 
reference to form login page).
--- snap ---


so long


Ingo Bruell

---
[EMAIL PROTECTED]
[EMAIL PROTECTED]
ICQ# 40377720
OldenburgPGP-Fingerprint: CB01 AE12 B359 87C4 BF1C  953C 8FE7 C648 169E E5FC
Germany  PGP-Public-Key available at pgpkeys.mit.edu



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




Restart Session Persistence

2002-05-14 Thread Bill Boland


Hello all. I've been having a bit of a problem with the restart session
persistence in Tomcat 4.0.3.
I've been examining the documentation on the Manager
(http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/manager.html)
and I saw a few others who were having some problems with it (mainly
with static attributes or JNDI). Even if I wasn't having a problem with
it I may not want session data serialized on the web tier in some
applications (example: for security reasons) while in other it may be a
good thing. Until I figure out why I'm getting some
ClassNotFoundExceptions when the web application is starting up, I
thought I'd throw out this sample snippet from my server.xml that turns
this off for a single web application. It beats deleting the
SESSIONS.ser each time.

Context path=/test
   docBase=C:\webapps\test
   debug=0 
  Manager
className=org.apache.catalina.session.StandardManager pathname= /
/Context

The source code states that if the pathname is null, it will not use
persistence. Not knowing how to set it to null from server.xml, I tried
setting the pathname to an empty value (vs. the default SESSIONS.ser)
and that seems to have disabled it. It didn't really disable it, but it
couldn't create the relative file in the web application's work
directory since it existed as the directory itself. I see exceptions in
my log file...but at least my sessions are no longer persistent for this
one application. You could probably put a bad file name with characters
that are invalid for files of your O/S and get the same results.

Now for the question and answer portion of the show...

Is there a better way to do this? I guess I could create my own custom
Manager class but it seems that 99.9% of this is already there...I just
can't set pathname to null from server.xml (or can I?). If not, do you
think setting pathname to the empty string is a reasonable enhancement
that could be added (possibly to StandardManager.setPathname()) so that
it be turned off (without generating exceptions).

Also, again for security reasons, shouldn't the persistent sessions
(SESSIONS.ser) be deleted once loaded?

Thanks for any thoughts. 

bill



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




RE: mod_jk not mapping uri successfully for servlets on 3.3.1

2002-05-14 Thread Chris Herrmann

Ok... some more information...

JkMount /*/servlet/* ajp13

It turns out, that this line breaks apache! Warning warning warning don't
use it! I just spent 5 hours recompiling apache, checking httpd.conf etc et
al to discover after a few hours sleep and a coffee that it's actually this
line in mod_jk.conf that's breaking my websites right now and not apache
being weird.

Now, to clarify a bit:

- I used to run tomcat 3.2.2, with the mod_jk that was released with it, and
the following line successfully mapped servlets to an ajp13 worker:

JkMount /servlet/* ajp13

- I now run tomcat 3.3.1, with the new mod_jk, and that line does not
successfully map servlets to an ajp13 worker. It fails, saying
map_uri_to_worker, done without a match
- the equivalent line for JSPs works fine for old tomcat  new tomcat - no
problems there.
- I tried adding /*/servlet/* ajp13 as a workaround - maybe the uri match
was failing because of the leading webappname i.e. the uri would look
like: /testapp/servlet/index . Initially, I had success - it was
successfully mapped to an ajp13 worker. However, it also mapped *everything*
else, regardless of how the path looked (html, directories, gifs, jpgs etc
etc etc) that lived in the normal apache htdocs directories. In other words,
tomcat had taken over apache! insert growling tomcat noise here

But, this still leaves me with the basic problem, which is that the stock
standard mod_jk.conf file isn't mapping servlets correctly.

So, some questions...

1. Is my mod_jk.conf file correct?
IfModule mod_jk.c
JkWorkersFile /usr/local/tomcat/conf/jk/workers.properties
JkLogFile  /var/log/tomcat/jk.log
JkLogLevel error
JkMount /*.jsp ajp13
JkMount /servlet/* ajp13
/IfModule

2. Is mod_jk behaving correctly?
3. If mod_jk isn't behaving correctly, how do I fix it / or get more
information from it?

Thanks,

Chris

|-Original Message-
|From: Larry Isaacs [mailto:[EMAIL PROTECTED]]
|Sent: Wednesday, 15 May 2002 00:24
|To: 'Tomcat Users List'
|Subject: RE: mod_jk not mapping uri successfully for servlets on 3.3.1
|
|
|The jakarta-tomcat-connectors/jk/native sources have small improvements
|and bug fixes over that found in jakarta-tomcat/src/native.  One of the
|improvements is support for JkMount /*/... that you discovered.
|
|Cheers,
|Larry
|
| -Original Message-
| From: Chris Herrmann [mailto:[EMAIL PROTECTED]]
| Sent: Wednesday, May 15, 2002 5:21 AM
| To: [EMAIL PROTECTED]
| Subject: RE: mod_jk not mapping uri successfully for
|servlets on 3.3.1
|
|
| Hi Larry,
|
| No, I haven't tried:
|
| JkMount /testapp/servlet/* ajp13
|
| doing so now...
|
| I upgraded to the latest mod_jk.so as well from
| jakarta.apache.org. I tried
| both with and without eapi support to see if it made a
|difference (and
| rebuilt apache with and without eapi support accordingly.
| Currently it's
| on).
|
| Ok... so... adding your suggestion above works...
|
| Previously, I haven't had to do this. I also tried adding:
|
| JkMount */servlet/* ajp13
|
| doesn't work but:
|
| JkMount /*/servlet/* ajp13
|
| does work.
|
| Has the way mod_jk parses paths changed in the latest version?
|
| Cheers,
|
| Chris
|
|
|  Hi Chris,
| 
|  It is not clear if you tried:
| 
| JkMount /testapp/servlet/* ajp13
| 
|  I assume you build the mod_jk.so from Tomcat 3.3.1's
| source.  Using a
|  mod_jk from Tomcat 3.2.x has the potential to hang.
| 
|  Cheers,
|  Larry
|
|
|
|
| --
| To unsubscribe, e-mail:
| mailto:tomcat-user- [EMAIL PROTECTED]
| For
| additional commands,
| e-mail: mailto:[EMAIL PROTECTED]
|
|
|--
|To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]



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




Access Control (IIS - Tomcat)

2002-05-14 Thread Chakradhar Tallam

hi guys,

i got IIS running with Tomcat on Win2K for one of the web applications (all
the traffic goes through IIS). We do authentication to the web application
through IIS. Is there any way of doing access control also through IIS on a
file basis instead of using Tomcat's Realm implementations.

thanks in advance,
ct.



Tomcat: please help: multi user/developer setup

2002-05-14 Thread Neil Zanella


OK. The problem was that the server needs to be restarted each
time a servlet is recompiled. Doing this as root is somewhat
not the best thing to do from a security point of view.
Is there any way that I can give all users on the
system permission to create their own servlets
and run them? How can I configure tomcat to
allow for such a configuration?

I am looking for a configuration where a command like
http://localhost:8080/~janesmith/servlet/HelloWorldServlet

will access janesmith's HelloWorldServlet in some standard location
such as ~janesmith/tomcat/HelloWorldServlet.class or something like that.

Thanks!

Neil

On Tue, 14 May 2002, Neil Zanella wrote:

 
 Hello,
 
 I have just installed Apache Jakarta Tomcat 4.0.3, Java 2 SDK 1.4.0,
 and Java 2 SDK EE 1.3.1 on a Red Hat 7.3 Linux platform. I appended
 the following lines to my personal ~/.bash_profile file:
 
 export PATH=$PATH:/usr/local/jdk/bin
 export JAVA_HOME=/usr/local/j2sdk1.4.0
 export CLASSPATH=.:/usr/local/j2sdkee1.3.1/lib/j2ee.jar
 export CATALINA_HOME=/usr/local/jakarta-tomcat-4.0.3
 export CLASSPATH=$CLASSPATH:/usr/local/saxon/saxon.jar
 
 I can view the following file:
 
 /usr/local/jakarta-tomcat-4.0.3/webapps/ROOT/index.html
 
 by pointing my browser to http://localhost:8080/
 
 However when I tried to run a servlet by creating directory:
 
 /usr/local/jakarta-tomcat-4.0.3/webapps/ROOT/WEB-INF/classes
 
 and placing class file HelloWorldServlet.class there and
 
 accessing http://localhost:8080/servlet/HelloWorldServlet
 
 I get the following error:
 
 Apache Tomcat/4.0.3 - HTTP Status 404 - /servlets/HelloWorldServlet
 
 !!
 
 Why? I can view the example servlet files just fine.
 Is there some file such as web.xml or so which I need
 to configure to be able to view HelloWorldServlet in
 this directory (which I believe is the standard place
 where servlets should be put)?
 
 Thanks a lot,
 
 Neil
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 


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




RE: mod_jk not mapping uri successfully for servlets on 3.3.1

2002-05-14 Thread Jacob Kjome

Hmm... you should have the following as the base minimum for any 
context...in your case, the ROOT context:

IfModule mod_jk.c
JkWorkersFile /usr/local/tomcat/conf/jk/workers.properties
JkLogFile /var/log/tomcat/jk.log

JkLogLevel emerg

# Static files
Alias / /usr/local/tomcat/webapps/ROOT

Directory /usr/local/tomcat/webapps/ROOT
 Options Indexes FollowSymLinks
 DirectoryIndex index.jsp index.html index.htm
/Directory


# Deny direct access to WEB-INF and META-INF
#
Location /WEB-INF/*
 AllowOverride None
 deny from all
/Location

Location /META-INF/*
 AllowOverride None
 deny from all
/Location

JkMount /servlet  ajp13
JkMount /servlet/*  ajp13
JkMount /*.jsp ajp13
/IfModule


That should work fine.

Jake

At 11:36 AM 5/15/2002 +1000, you wrote:
Ok... some more information...

JkMount /*/servlet/* ajp13

It turns out, that this line breaks apache! Warning warning warning don't
use it! I just spent 5 hours recompiling apache, checking httpd.conf etc et
al to discover after a few hours sleep and a coffee that it's actually this
line in mod_jk.conf that's breaking my websites right now and not apache
being weird.

Now, to clarify a bit:

- I used to run tomcat 3.2.2, with the mod_jk that was released with it, and
the following line successfully mapped servlets to an ajp13 worker:

 JkMount /servlet/* ajp13

- I now run tomcat 3.3.1, with the new mod_jk, and that line does not
successfully map servlets to an ajp13 worker. It fails, saying
map_uri_to_worker, done without a match
- the equivalent line for JSPs works fine for old tomcat  new tomcat - no
problems there.
- I tried adding /*/servlet/* ajp13 as a workaround - maybe the uri match
was failing because of the leading webappname i.e. the uri would look
like: /testapp/servlet/index . Initially, I had success - it was
successfully mapped to an ajp13 worker. However, it also mapped *everything*
else, regardless of how the path looked (html, directories, gifs, jpgs etc
etc etc) that lived in the normal apache htdocs directories. In other words,
tomcat had taken over apache! insert growling tomcat noise here

But, this still leaves me with the basic problem, which is that the stock
standard mod_jk.conf file isn't mapping servlets correctly.

So, some questions...

1. Is my mod_jk.conf file correct?
IfModule mod_jk.c
JkWorkersFile /usr/local/tomcat/conf/jk/workers.properties
JkLogFile  /var/log/tomcat/jk.log
JkLogLevel error
JkMount /*.jsp ajp13
JkMount /servlet/* ajp13
/IfModule

2. Is mod_jk behaving correctly?
3. If mod_jk isn't behaving correctly, how do I fix it / or get more
information from it?

Thanks,

Chris

|-Original Message-
|From: Larry Isaacs [mailto:[EMAIL PROTECTED]]
|Sent: Wednesday, 15 May 2002 00:24
|To: 'Tomcat Users List'
|Subject: RE: mod_jk not mapping uri successfully for servlets on 3.3.1
|
|
|The jakarta-tomcat-connectors/jk/native sources have small improvements
|and bug fixes over that found in jakarta-tomcat/src/native.  One of the
|improvements is support for JkMount /*/... that you discovered.
|
|Cheers,
|Larry
|
| -Original Message-
| From: Chris Herrmann [mailto:[EMAIL PROTECTED]]
| Sent: Wednesday, May 15, 2002 5:21 AM
| To: [EMAIL PROTECTED]
| Subject: RE: mod_jk not mapping uri successfully for
|servlets on 3.3.1
|
|
| Hi Larry,
|
| No, I haven't tried:
|
| JkMount /testapp/servlet/* ajp13
|
| doing so now...
|
| I upgraded to the latest mod_jk.so as well from
| jakarta.apache.org. I tried
| both with and without eapi support to see if it made a
|difference (and
| rebuilt apache with and without eapi support accordingly.
| Currently it's
| on).
|
| Ok... so... adding your suggestion above works...
|
| Previously, I haven't had to do this. I also tried adding:
|
| JkMount */servlet/* ajp13
|
| doesn't work but:
|
| JkMount /*/servlet/* ajp13
|
| does work.
|
| Has the way mod_jk parses paths changed in the latest version?
|
| Cheers,
|
| Chris
|
|
|  Hi Chris,
| 
|  It is not clear if you tried:
| 
| JkMount /testapp/servlet/* ajp13
| 
|  I assume you build the mod_jk.so from Tomcat 3.3.1's
| source.  Using a
|  mod_jk from Tomcat 3.2.x has the potential to hang.
| 
|  Cheers,
|  Larry
|
|
|
|
| --
| To unsubscribe, e-mail:
| mailto:tomcat-user- [EMAIL PROTECTED]
| For
| additional commands,
| e-mail: mailto:[EMAIL PROTECTED]
|
|
|--
|To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]



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



Re: Restart Session Persistence

2002-05-14 Thread August Detlefsen

If you want certain session data to not be serialized, just make those
variables transient in whatever bean classes you are using in session.
This will prevent just those variables from being saved.

public class UserBean implements Serializable {

  private String username; 
  private transient String password;  //password won't serialize

//getters and setters, other methods, etc.

}

-August



--- Bill Boland [EMAIL PROTECTED] wrote:
 
 Hello all. I've been having a bit of a problem with the restart
 session
 persistence in Tomcat 4.0.3.
 I've been examining the documentation on the Manager
 (http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/manager.html)
 and I saw a few others who were having some problems with it (mainly
 with static attributes or JNDI). Even if I wasn't having a problem
 with
 it I may not want session data serialized on the web tier in some
 applications (example: for security reasons) while in other it may be
 a
 good thing. Until I figure out why I'm getting some
 ClassNotFoundExceptions when the web application is starting up, I
 thought I'd throw out this sample snippet from my server.xml that
 turns
 this off for a single web application. It beats deleting the
 SESSIONS.ser each time.
 
   Context path=/test
  docBase=C:\webapps\test
  debug=0 
   Manager
 className=org.apache.catalina.session.StandardManager pathname=
 /
   /Context
 
 The source code states that if the pathname is null, it will not use
 persistence. Not knowing how to set it to null from server.xml, I
 tried
 setting the pathname to an empty value (vs. the default SESSIONS.ser)
 and that seems to have disabled it. It didn't really disable it, but
 it
 couldn't create the relative file in the web application's work
 directory since it existed as the directory itself. I see exceptions
 in
 my log file...but at least my sessions are no longer persistent for
 this
 one application. You could probably put a bad file name with
 characters
 that are invalid for files of your O/S and get the same results.
 
 Now for the question and answer portion of the show...
 
 Is there a better way to do this? I guess I could create my own
 custom
 Manager class but it seems that 99.9% of this is already there...I
 just
 can't set pathname to null from server.xml (or can I?). If not, do
 you
 think setting pathname to the empty string is a reasonable
 enhancement
 that could be added (possibly to StandardManager.setPathname()) so
 that
 it be turned off (without generating exceptions).
 
 Also, again for security reasons, shouldn't the persistent sessions
 (SESSIONS.ser) be deleted once loaded?
 
 Thanks for any thoughts. 
 
 bill
 
 
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com

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




RE: Restart Session Persistence

2002-05-14 Thread Bill Boland

Thanks, August. I agree with that and I think that this should be in a
FAQ somewhere on session persistence if it isn't already.

But there are situations where you are using other libraries where you
are not in control of all the transient attributes of the beans. You can
do a lot to prevent the serialization via refactoring, wrapping, etc. It
would be nice just to avoid it all together in some situations. If push
comes to shove, I'll just create my own Manager and be done with it but
it seemed that the StandardManager should/could do this. :)

bill



-Original Message-
From: August Detlefsen [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, May 14, 2002 8:19 PM
To: Tomcat Users List
Subject: Re: Restart Session Persistence

If you want certain session data to not be serialized, just make those
variables transient in whatever bean classes you are using in session.
This will prevent just those variables from being saved.

public class UserBean implements Serializable {

  private String username; 
  private transient String password;  //password won't serialize

//getters and setters, other methods, etc.

}

-August



--- Bill Boland [EMAIL PROTECTED] wrote:
 
 Hello all. I've been having a bit of a problem with the restart
 session
 persistence in Tomcat 4.0.3.
 I've been examining the documentation on the Manager
 (http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/manager.html)
 and I saw a few others who were having some problems with it (mainly
 with static attributes or JNDI). Even if I wasn't having a problem
 with
 it I may not want session data serialized on the web tier in some
 applications (example: for security reasons) while in other it may be
 a
 good thing. Until I figure out why I'm getting some
 ClassNotFoundExceptions when the web application is starting up, I
 thought I'd throw out this sample snippet from my server.xml that
 turns
 this off for a single web application. It beats deleting the
 SESSIONS.ser each time.
 
   Context path=/test
  docBase=C:\webapps\test
  debug=0 
   Manager
 className=org.apache.catalina.session.StandardManager pathname=
 /
   /Context
 
 The source code states that if the pathname is null, it will not use
 persistence. Not knowing how to set it to null from server.xml, I
 tried
 setting the pathname to an empty value (vs. the default SESSIONS.ser)
 and that seems to have disabled it. It didn't really disable it, but
 it
 couldn't create the relative file in the web application's work
 directory since it existed as the directory itself. I see exceptions
 in
 my log file...but at least my sessions are no longer persistent for
 this
 one application. You could probably put a bad file name with
 characters
 that are invalid for files of your O/S and get the same results.
 
 Now for the question and answer portion of the show...
 
 Is there a better way to do this? I guess I could create my own
 custom
 Manager class but it seems that 99.9% of this is already there...I
 just
 can't set pathname to null from server.xml (or can I?). If not, do
 you
 think setting pathname to the empty string is a reasonable
 enhancement
 that could be added (possibly to StandardManager.setPathname()) so
 that
 it be turned off (without generating exceptions).
 
 Also, again for security reasons, shouldn't the persistent sessions
 (SESSIONS.ser) be deleted once loaded?
 
 Thanks for any thoughts. 
 
 bill
 
 
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com

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




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




??? Sitewide JAR Files ???

2002-05-14 Thread Tony LaPaso

Hello,

I don't think this is possible but it can't hurt to ask

I'm using Tomcat v4.0.3 on Win2k.

I have a few JAR files that I would like to be accessible from
within *all* contexts on my web site. In other words, I do not
want to duplicate these JAR files in the WEB-INF/lib directory
for each and every context on my site.

The company that hosts my site, however, only allows me to access
the files in *my* domain so I do not have the luxury of putting
JAR files in, for example, jre/lib/ext where they would be
picked up by other peoples' domains.

I was hoping (I even said a couple prayers) there was a place in
my directory structure I could put these JARs so they would be
accessible to *all* servlets in *all* contexts on *my* site but
obviously not accessible to other domains.

Is this possible?

Thanks very much.

Tony LaPaso




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




REPOST - Digest Authentication with Memory Realm

2002-05-14 Thread Shimon Crown

As nobody answered this question the first time around lets have another go !

Using the default memory realm I have modified the Tomcat server.xml to
store the passwords encrypted as follows :

Realm className=org.apache.catalina.realm.MemoryRealm digest=MD5 /

This works fine.

For my tests I would also like to use digest authorization to transfer the
password over the wire. To do this I put the following in my web.xml file

login-config
  auth-methodDIGEST/auth-method
/login-config

When I access the protected web page from a browser (Mozilla or IE5.5) I get
the appropriate login dialog box. However I can't log in (access denied) from either
browser. What am I doing wrong ?

Shimon Crown

(Note - I know that using memory realm isn't a great idea but it is useful
for the testing phase).




REPOST - AJP Connector and SSL

2002-05-14 Thread Shimon Crown

No reply to this first time around so lets try again.

Is it possible to setup Tomcat so that Apache handles all the SSL requests
and I don't need to bother with keystores or anything like that ?

My setup is as follows :

Windows NT 4.0 Apache 2.0.35 and Tomcat 4.0.3. I compiled the Apache to
include mod_ssl and I installed an openssl certificate as my server
certificate. So far so good. When I run Apache it listens for HTTP requests
on port 80 and HTTPS requests on port 443.

Following the instructions in
http://www.galatea.com/flashguides/apache-tomcat-24-win32.xml I setup Tomcat
so it receives regular HTTP requests on Port 80. This was done using the
AJP13 module. This setup refuses to find resources on port 443.  My first
attempt was to add scheme=https like :

 Connector className=org.apache.ajp.tomcat4.Ajp13Connectorport=8009
minProcessors=5 maxProcessors=75  scheme=https Count=10
debug=0/

to the ajp Connector directive This didn't work.


Anyway looking at the AJP documentation it seems that I have to set up an
HTTPs listener inside the Tomcat server.xml and redirect requests to this
and add a redirect directive to this port. So the AJP connector directive
should look like

 Connector className=org.apache.ajp.tomcat4.Ajp13Connectorport=8009
minProcessors=5 maxProcessors=75  redirect=8443  Count=10
debug=0/


Connector className=org.apache.catalina.connector.http.HttpConnector
port=8443 minProcessors=5 maxProcessors=75 enableLookups=true
acceptCount=10 debug=0 scheme=https secure=true
  Factory className=org.apache.catalina.net.SSLServerSocketFactory
clientAuth=false protocol=TLS/
/Connector

I could then redirect all the HTTPS input to this port. However (assuming
this works) I have to set up SSL on Tomcat. I was rather hoping to avoid
this and just use the Apache as the SSL server.

What is the correct thing to do ?

Shimon Crown




RE: ??? Sitewide JAR Files ???

2002-05-14 Thread Chris Campbell


definitely possible:

put them in TOMCAT_HOME/common/lib

ChrisC

 -Original Message-
 From: Tony LaPaso [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, May 15, 2002 1:36 PM
 To: Tomcat User
 Subject: ??? Sitewide JAR Files ???
 
 
 Hello,
 
 I don't think this is possible but it can't hurt to ask
 
 I'm using Tomcat v4.0.3 on Win2k.
 
 I have a few JAR files that I would like to be accessible from
 within *all* contexts on my web site. In other words, I do not
 want to duplicate these JAR files in the WEB-INF/lib directory
 for each and every context on my site.
 
 The company that hosts my site, however, only allows me to access
 the files in *my* domain so I do not have the luxury of putting
 JAR files in, for example, jre/lib/ext where they would be
 picked up by other peoples' domains.
 
 I was hoping (I even said a couple prayers) there was a place in
 my directory structure I could put these JARs so they would be
 accessible to *all* servlets in *all* contexts on *my* site but
 obviously not accessible to other domains.
 
 Is this possible?
 
 Thanks very much.
 
 Tony LaPaso
 
 
 
 
 --
 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]




Class reloading/ HTTPSession (RE: JVM Bind error)

2002-05-14 Thread kelly, Burrowa


Yes, I am starting a socket listener in a static block
in a servlet, so this should run only once. Only
once, since the classes that I reload are different
from the servlets. Any idea why the static block
of this servlet is run?
Futher, I also observed that my HTTPSession, though
is not New, does not have the attributes that were
put before the class reloading. Is this the expected
behaviour, or am I missing something?

thanks
kB.

 --- Whitcomb, Roger [EMAIL PROTECTED] wrote:
 The JVM Bind means that a socket that the old class
 was bound to is still open and the new version of
 the class is trying to open a socket on the same
 port and can't.  Is there a TCP/IP listener in your
 class??  You might need to put a means of shutdown
 into the class so it will cleanly close any open
 sockets before you try to reload it.
 
 Roger Whitcomb
 Computer Associates
 Senior Software Engineer
 Development
 Phone: +1 408 965 8653
 FAX: +1 408 965 8805
 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
 
 
 
 -Original Message-
 From: kelly, Burrowa [mailto:[EMAIL PROTECTED]]
 Sent: Sunday, May 12, 2002 10:14 PM
 To: Tomcat Users List
 Subject: Re: JVM Bind error
 
 
  During runtime when I change a class file, tomcat 
  4.0.3 is supposed to reload that class(due to
  reloadable=true in server.xml). But instead, I
  get some JVM Bind error.
  
 
 To be more specific, the error is:
 
 WebappClassLoader:   Resource
 '/WEB-INF/classes/TestCC.class' was modified; Date
 is
 now: Mon May 13 10:46:56 IST 2002 Was: Mon May
  13 10:32:40 IST 2002
 java.net.BindException: Address in use: JVM_Bind
 at
 java.net.PlainSocketImpl.socketBind(Native
 Method)
 at

java.net.PlainSocketImpl.bind(PlainSocketImpl.java:452)
 at
 java.net.ServerSocket.init(ServerSocket.java:170)
 at
 java.net.ServerSocket.init(ServerSocket.java:82)
 at
 TestServer.startServer(TestServer.java:22)
 at TestRun.run(TestRun.java:45)
 at java.lang.Thread.run(Thread.java:484)
 Cannot start engine: Address in use: JVM_Bind
 
 
 Any idea about whats going wrong here?
 
 __
 Do You Yahoo!?
 Everything you'll ever need on one web page
 from News and Sport to Email and Music Charts
 http://uk.my.yahoo.com
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
  

__
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

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




TomcatIIS (on different computers )

2002-05-14 Thread staginfo-ar

Hi,
I've tested tomcat with IIS on my computer and It works fine. Now I want to
pass IIS on a different computer ( via a LAN network ). How can I config
Tomcat to do that? Where can I find a tutorial to do that?
Thanks.
Jc


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