HTTP Status 501 - Error

2003-04-01 Thread mgp2
Hi all.

I have a servlet that to load it I obtain the following error:

 HTTP Status 501 - The ??M??654??jGET method isn't define in RFC 2068 
specification and does not support the API Servlet.
 Description: The server does not support the functionality needed to fulfill 
this request.

For solve this error the user has to reload this servlet and work fine.

How can I solve this
problem??


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



AJP,IIS - losing request parameters

2003-04-01 Thread Hans Liebenberg
Hi,

I'm experiencing things directly from the twilight zone here!

I have a very basic html form. I submit the form to my tomcat application
running on port 8080,
and I retrieve the parameters just fine as exepected.

But, when running the application configured to use ajp13, IIS and the isapi
redirector I sometimes don't receive any form parameters on submission. I
know this sounds bizarre, but I was hoping someone else out there has a
similar experience.

Thankyou



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



RE: Casting DBCP Connection to OracleConnection - Solved IT!

2003-04-01 Thread Marco Rossi
Now it's working!!
Thanks guys!

I'm sorry, but i think to have an old release of commons-dbcp.jar, and i don't' find 
the getDelegate() method. It's in org.apache.commons.dbcp.PoolableConnection class??

In my tomcat common/lib; apparently it is the debug version of Oracle's
jdbc implentation. Download classes12.zip ( and rename to classes12.jar
) from Oracle site.

Sundar

-Original Message-
From: Marco Rossi [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 31, 2003 11:25 AM
To: Tomcat Users List
Subject: RE: Casting DBCP Connection to OracleConnection - Solved IT!

Where do you find ojdbc_g.jar?

I was using ojdbc_g.jar instead of classes12.zip ( i.e classes12.jar )

Sundar

-Original Message-
From: Chakravarthy, Sundar 
Sent: Monday, March 31, 2003 11:11 AM
To: Tomcat Users List
Subject: RE: Casting DBCP Connection to OracleConnection

Strange .. the getDelegate().getClass().getName() returns
oracle.jdbc.driver.OracleConnection . But the cast fails at runtime.

Sundar

-Original Message-
From: Filip Hanik [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 31, 2003 11:05 AM
To: Tomcat Users List
Subject: RE: Casting DBCP Connection to OracleConnection

hi Sundar,
as an alternative, why don't you print the class names to know what you
are
doing

for example

System.out.println(delegate=+conn.getDelegate().getClass().getName())
;

and do that for all of the things you try to cast, that way you can see
what
you are accessing before you try to cast it

Filip

 -Original Message-
 From: Chakravarthy, Sundar [mailto:[EMAIL PROTECTED]
 Sent: Monday, March 31, 2003 7:57 AM
 To: Tomcat Users List
 Subject: RE: Casting DBCP Connection to OracleConnection



 Run-time failure using both getInnermostDelegate() and getDelegate().
 Any other alternatives ?

 -Sundar

 -Original Message-
 From: Tim Funk [mailto:[EMAIL PROTECTED]
 Sent: Monday, March 31, 2003 10:49 AM
 To: Tomcat Users List
 Subject: Re: Casting DBCP Connection to OracleConnection

 Compile fail or run-time fail?

 If compile fail - you need a nightly of dbcp.
 If run-time fail, you may need to use getInnermostDelegate() instead

 -Tim

 Chakravarthy, Sundar wrote:
  I tried the following with no success,
 
  1. PoolableConnection pc = (PoolableConnection)conn;
  2. OracleConnection oc = (OracleConnection)pc.getDelegate();
 
  Fails in line 2
 
  -Sundar
 
 
  -Original Message-
  From: Tim Funk [mailto:[EMAIL PROTECTED]
  Sent: Monday, March 31, 2003 10:34 AM
  To: Tomcat Users List
  Subject: Re: Casting DBCP Connection to OracleConnection
 
  All dbcp objects have a getDelegate() method (I think). But you'll
 need
  to do 2 casts.
  - dbcpConn = (DBCPClassCast)conn-- The dbcp connection
  - myOraConn = (OraClassCast)dbcpConn.getDelegate() -- Get the
  underlying implementation
 
  Look at the DBCP javadocs for the correct class names.
 
  BUT you'll need to use a nightly build of dbcp to do this since the
  version shipped with tomcat doesn't have the getDeletgate()
methods.
 
  -Tim
 
  Marco Rossi wrote:
 
 I have the same problem. If you find a solution, please reply
 
 
 
 HI,
 
 I am using Tomcat 4.1.18 with Oracle 9i. When I try to cast the
 Connection returned from DBCP to OracleConnection I get a
 ClassCastException .
 
 Anyone here know how to cast correctly ?
 
 Thanks
 
 
 
 
 
-
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail:
[EMAIL PROTECTED]
 
 
 
-
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail:
[EMAIL PROTECTED]
 
 
 


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


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




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


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


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

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


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

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

RE: Tomcat on Solaris 2.9

2003-04-01 Thread David Godfrey
I use Tomcat 4.1.18 on Solaris 9, running j2sdk1.4.1, with the system fully
patched with no problems

Rgds

D

-Original Message-
From: Steve Gums [mailto:[EMAIL PROTECTED] 
Sent: 31 March 2003 23:28
To: Tcat Users
Subject: Tomcat on Solaris 2.9


Is anyone out there running tomcat 4.1.24 or 4.1.18 on Solaris 2.9? If you
are have you seen any issues with tomcat locking up?

Steve Gums

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

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



Byte Ranges

2003-04-01 Thread Donie Kelly
Hi all

Can anybody explain how my service can support byte ranges in the GET
request. When data is requested from our application it comes from a
database and we cannot ask it for a specific range of bytes. 

My question is, will Tomcat look after this automatically and discard the
leading bytes if required and stop at the end byte range?

Thanks for any insights...
Donie

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



Taglib on tomcat 4.1.24

2003-04-01 Thread [EMAIL PROTECTED]
Hi everyone,

I wrote some taglibs which are running on tomcat 3.3, and use 
a body content.
For example, there is one for formatting buttons position on 
the page in functions of their type (action on the form or 
link). The idea of it is to create a dynamic spearation 
between the two types of buttons and let the actions ones 
allways at the same palce in tha page. It work with a main tag 
call buttons with a body content and nested tags button 
which update buttons property during the compilation (and 
particularly a boolean variable used for designed the first 
action button).
So each button increase a value into button for giving the 
number total of buttons involved in the print out and when the 
first button action is found, the boolean variable is set to 
true (instanced at false a the declaration), then at the end 
of the button tag, it format the page in function of the 
updated values.
This tag works perfectly, but I choose to work with Struts 
1.1, so i have to migrate to tomcat 4.1.24. 
But now, my tag works when I call the jsp at the first time, 
but if I refresh it (or I call back it) it ignores the boolean 
variable like if it was not reinitialised at the running of 
the tag! So I am a bit confused about the way to fix it, 
perhaps the new tomcat manager keep to much things in cache... 
So if you have any ideas, I can be very useful!!!
If you had not understood all my explanation (because of my 
English) do not hesitate to ask me more precision.

Cheers for the help
Pierre


Accédez au courrier électronique de La Poste : www.laposte.net ; 
3615 LAPOSTENET (0,34€/mn) ; tél : 08 92 68 13 50 (0,34€/mn)




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



RE: Taglib on tomcat 4.1.24

2003-04-01 Thread Simon MacMullen
 perhaps the new tomcat manager keep to much things in cache... 

Absolutely. Tag instances may be re-used. This means you can only do setup for your 
tag at the last minute in doStartTag().

See

http://www.mail-archive.com/[EMAIL PROTECTED]/msg00846.html

for more info, explained more articulately.

Cheers, Simon

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



Re: Not starting with j2ee.jar in /lib direcotry

2003-04-01 Thread Ramsay Domloge
I believe that using j2ee.jar will screw with Tomcat's own codebase. You 
should use a JavaMail extension instead See 
http://java.sun.com/products/javamail/ to download just the JavaMail 
extension.

R

Alexandre Alvarez Martini Santos wrote:

Hello,
I put j2ee.jar in /common/lib directory and Tomcat4.1 did NOT start. 
It did not start when I put in jre/lib/ext as well.
Why?
I need some classes to use JavaMail.
Could you help me, please?
Thanks in advance,
al.

 

   

   
   A R K E M E D I A   T E C H N O L O G I E S   L T D 
   
  VIEW POINTBASING VIEWBASINGSTOKEHAMPSHIRERG21 4RG
   
 http://www.arkemedia.com  
   
mailto:[EMAIL PROTECTED]  
   
Tel : +44 1256 869 200  Fax : +44 1256 329 119 
   

   
The information in this e-mail and in any attachments is confidential and  
is intended solely for the attention and use of the named addressee(s).
   

   
If you are not the intended recipient, or a person responsible for passing 
it on to the intended recipient, you are not authorised to hold a copy of  
this information and you must therefore not disclose, copy, distribute, or 
retain this message or any part of it. MAILTO:[EMAIL PROTECTED]  
   




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


RE: Byte Ranges

2003-04-01 Thread Ralph Einfeldt
AFAIK you have to implement it on your own
if the datasource is not a file.

To see how to implement it you might have a look at 
the tomcat source:

http://cvs.apache.org/viewcvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/servlets/DefaultServlet.java?rev=HEADcontent-type=text/vnd.viewcvs-markup

(Sorry for the line wraps)

 -Original Message-
 From: Donie Kelly [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, April 01, 2003 11:25 AM
 To: Tomcat Users List (E-mail)
 Subject: Byte Ranges
 
 Can anybody explain how my service can support byte ranges in the GET
 request. When data is requested from our application it comes from a
 database and we cannot ask it for a specific range of bytes. 
 
 My question is, will Tomcat look after this automatically and 
 discard the
 leading bytes if required and stop at the end byte range?
 

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



gzip compression in Coyote on 4.1.24

2003-04-01 Thread Ronald Klop
Hello,

Sorry if this is send twice, but I think my previous mail got lost in 
cyberspace somewhere. (Can't even find it in my Sent-box.)

I'm trying to use gzip compression with tomcat 4.1.24. And it doesn't 
work, because it checks if content-type is 'text/html', but this fails 
if the content-type is 'text/html; charset=us-ascii'.
So compression='force' is the only way to use compression, but this also 
compresses image/gif, etc.

Does anybody else use this?

I made a bugreport with a (possible) fix. See bug 18073 (made by myself) 
and 2820 [1].

Greetings,

Ronald.

[1]
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18073
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2820


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


RE: Tomcat on Solaris 2.9

2003-04-01 Thread mech
I used Tomcat 4.1.18 on Solaris 9 (Tomcat Manager app says: Apache
Tomcat/4.1.18  1.4.0_00-b05  Sun Microsystems Inc.  SunOS  5.9  sparc)
Had some problems with Tomcat hanging in connection with https/ssl.
Maybe also combined with some logging problem. At least that's what I
found out from my log files.

Since I read the bug fixes list of Tomcat 4.1.24 about ssl, i just
finished migration. I guess I'll see in short, if the update solved my
problems.

mech

 -Original Message-
 From: David Godfrey [mailto:[EMAIL PROTECTED] 
 Sent: Dienstag, 1. April 2003 11:04
 To: 'Tomcat Users List'
 Subject: RE: Tomcat on Solaris 2.9
 
 
 I use Tomcat 4.1.18 on Solaris 9, running j2sdk1.4.1, with 
 the system fully patched with no problems
 
 Rgds
 
 D
 
 -Original Message-
 From: Steve Gums [mailto:[EMAIL PROTECTED] 
 Sent: 31 March 2003 23:28
 To: Tcat Users
 Subject: Tomcat on Solaris 2.9
 
 
 Is anyone out there running tomcat 4.1.24 or 4.1.18 on 
 Solaris 2.9? If you are have you seen any issues with tomcat 
 locking up?
 
 Steve Gums
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


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



user principal, realm

2003-04-01 Thread Oliver Wulff
Hi

Can I implement a filter which sets the current principal, so that calls to
request.getUserPrincipal().getName() succeed?

In our company, an apache server in front of tomcat authenticates the
client and delegates the user principal as an http header attribute. I want
to read this principal and set the user principal in a filter. Can I do
this?

Thanks for your help!

Oliver






*** BITTE BEACHTEN ***
Diese Nachricht (wie auch allfällige Anhänge dazu) beinhaltet
möglicherweise vertrauliche oder gesetzlich geschützte Daten oder
Informationen. Zum Empfang derselben ist (sind) ausschliesslich die
genannte(n) Person(en) bestimmt. Falls Sie diese Nachricht
irrtümlicherweise erreicht hat, sind Sie höflich gebeten, diese unter
Ausschluss jeder Reproduktion zu zerstören und die absendende Person
umgehend zu benachrichtigen. Vielen Dank für Ihre Hilfe.



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



RE: user principal, realm

2003-04-01 Thread Ralph Einfeldt
Although I havn't tried it, I guess yes.

I think you have to define your own RequestWrapper
that lets you set the principal.

 -Original Message-
 From: Oliver Wulff [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, April 01, 2003 2:42 PM
 To: [EMAIL PROTECTED]
 Subject: user principal, realm
 
 
 Can I implement a filter which sets the current principal, so 
 that calls to
 request.getUserPrincipal().getName() succeed?
 
 In our company, an apache server in front of tomcat authenticates the
 client and delegates the user principal as an http header  attribute. 
 I want to read this principal and set the user principal in a filter. 
 Can I do this?
 

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



RE: Taglib on tomcat 4.1.24

2003-04-01 Thread Arnaud HERITIER
doStartTag ??? 
isn't it doEndTag ??

If you release your properties at the end of the doStartTag, you can't use
them in the body.

But if I use the doEndTag, Shawn says that doEndTag() is not necessarily
called at the end of every invocation (in cases of abnormal termination --
e.g., an exception thrown inside a tag's body or by one of its methods)

I have the same problem than Pierre and didn't understand why.

Now I know and I'll correct my taglibs.

But why the release() method isn't called between two uses of the same tag
??

Is it a performance issue ???


Arnaud.

 -Message d'origine-
 De : Simon MacMullen [mailto:[EMAIL PROTECTED]
 Envoyé : mardi 1 avril 2003 12:00
 À : Tomcat Users List
 Objet : RE: Taglib on tomcat 4.1.24
 
 
  perhaps the new tomcat manager keep to much things in cache... 
 
 Absolutely. Tag instances may be re-used. This means you can 
 only do setup for your tag at the last minute in doStartTag().
 
 See
 
 http://www.mail-archive.com/[EMAIL PROTECTED]/msg
 00846.html
 
 for more info, explained more articulately.
 
 Cheers, Simon
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

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

Single sign on problem!!

2003-04-01 Thread Madhavi Thottempudi
Bringing the post up!!

Any suggestions on this?? Please let me know...Thanks
-M
At 17:22 28/03/2003 +, you wrote:
Hi there!
I am trying to use Single sign on feature of tomcat and got stuck.
My problem is - even after configuring my webapps (all running under 
tomcat) for single sign-on,
when i change to a different app, it is asking me to authenticate again.

I must be missing something that ties all these webapps, but don't know 
what it is.
Here is what I have done -
---
In server.xml:

   Engine name=Standalone defaultHost=localhost debug=0
  Realm  className=org.apache.catalina.realm.JDBCRealm debug=99
  driverName=sun.jdbc.odbc.JdbcOdbcDriver
   connectionURL=jdbc:odbc:singleSignOn
   userTable=STUDENT userNameCol=USERNAME 
userCredCol=PASSWORD
  userRoleTable=ROLES roleNameCol=USERROLE /

  Host name=localhost debug=0 appBase=webapps unpackWARs=true

 Valve className=org.apache.catalina.authenticator.SingleSignOn
   debug=0/
---
In web.xml of each application:
  security-constraint
web-resource-collection
  web-resource-nameWebapp safe access .../web-resource-name
  url-pattern/addPackage.do/url-pattern
  url-pattern/delPackage.do/url-pattern
  http-methodGET/http-method
  http-methodPOST/http-method
/web-resource-collection
auth-constraint
  role-nameadmin/role-name
  role-namevisitor/role-name
  role-nameauthor/role-name
/auth-constraint
/security-constraint
  login-config
auth-methodFORM/auth-method
form-login-config
  form-login-pagexLogin.do/form-login-page
  form-error-page/index.jsp/form-error-page
/form-login-config
  /login-config
---
Is there anything else I have to do??? Any help on this would be greatly 
appreciated.

Also, can anybody point me to a place which has more information on this 
feature.
So far, I have found only this: 
http://www.ingrid.org/jajakarta/tomcat/tomcat-4.0b5/src/catalina/docs/singlesignon.html
Thanks.

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


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


RE: Taglib on tomcat 4.1.24

2003-04-01 Thread Simon MacMullen
   perhaps the new tomcat manager keep to much things in cache... 

  Absolutely. Tag instances may be re-used. This means you can 
  only do setup for your tag at the last minute in doStartTag().

 doStartTag ??? 
 isn't it doEndTag ??

Well, I meant get things ready for your tag, not clean up after (as you seem to be 
implying) and I specifically meant as opposed to in constructors, instance 
initialisers, property writers, etc.

 But if I use the doEndTag, Shawn says that doEndTag() is not 
 necessarily
 called at the end of every invocation (in cases of abnormal 
 termination --
 e.g., an exception thrown inside a tag's body or by one of 
 its methods)

If you want to clear up after each invocation, I think you want doFinally() method on 
the interface TryCatchFinally?

 But why the release() method isn't called between two uses of 
 the same tag
 ??
 
 Is it a performance issue ???

Presumably the release() method is intended to release heavyweight objects used by the 
tag, so yes.

Cheers, Simon

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



Re: Single sign on problem!!

2003-04-01 Thread Gabriel Santonja
On Tue, 01 Apr 2003 13:54:23 +0100
Madhavi Thottempudi [EMAIL PROTECTED] wrote:

 Bringing the post up!!
 
 Any suggestions on this?? Please let me know...Thanks
 -M
Ok, I'm not sure but 
1) Is your realm correctly configure?. Are you sure that your realm isn't
protect only your context. Try to place your realm in the host or the
engine (The doc is good for this) test with 4.1.24 because 4.0.4 may
be have some problem.
Test with memory realm.

2) Try to use the SSO capabilite: 
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/host.html#Single%20Sign%20On

in server.xml
 Valve className=org.apache.catalina.authenticator.SingleSignOn  debug=0/

bye bye.

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



which connector to use in order to get client cert

2003-04-01 Thread Mark W. Webb
Is there a way to have a servlet get the client certificate that was 
used to connect to apache?  

I have tomcat 4.1.24 running as the backend to apache 2.0.44.  Clients 
set up a mutually authenticated SSL connection to apache, and all 
servlet requests get forwarded to tomcat.  What connector should I use 
in order to allow the forwarding of not only the servlet request, but 
also the certificate so that the servlet can identify the user?

thank you.



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


Re: Single sign on problem!!

2003-04-01 Thread Madhavi Thottempudi
Hi !
Thanks for UR reply. I am doing everything U were suggesting me to (pls see 
my previous mail).
I know that the realm is working well, because it is authenticating the 
user properly and yes, I did put that under engine level.

The problem I am having is that it's asking me to re-authenticate when I 
move from one webapp to another.
So, I was wondering if I have to mention the list of webapps that use this 
single sign on feature somewhere...IS that so??

-M


Ok, I'm not sure but
1) Is your realm correctly configure?. Are you sure that your realm isn't
protect only your context. Try to place your realm in the host or the
engine (The doc is good for this) test with 4.1.24 because 4.0.4 may
be have some problem.
Test with memory realm.
2) Try to use the SSO capabilite:
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/host.html#Single%20Sign%20On
in server.xml
 Valve 
className=org.apache.catalina.authenticator.SingleSignOn  debug=0/

bye bye.

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


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


Tomcat Crush

2003-04-01 Thread Gregory Rouchotas
Hello all,
I am running tomcat 4.0.4 on solaris8.
 
I get a very strange problem where with no specific reason tomcat
produces the following error
In the Catalina_log:
 
2003-04-01 19:12:54 Ajp13Processor[8009][9] process: invoke
java.net.SocketException: Socket closed
at java.net.SocketOutputStream.socketWrite0(Native Method)
at
java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
at
java.net.SocketOutputStream.write(SocketOutputStream.java:126)
at org.apache.ajp.Ajp13.send(Ajp13.java:525)
at org.apache.ajp.RequestHandler.finish(RequestHandler.java:495)
at org.apache.ajp.Ajp13.finish(Ajp13.java:395)
at
org.apache.ajp.tomcat4.Ajp13Response.finishResponse(Ajp13Response.java:1
96)
at
org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:464)
at
org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:551)
at java.lang.Thread.run(Thread.java:536)
 
This continues for sometime. The system has about 300 concurrent users
at any given time.
The after about 8 hours tomcat will crush.
 
Any ideas what might be causing this.
Thanks in advance,
 
Greg


Re: Single sign on problem!!

2003-04-01 Thread Gabriel Santonja
On Tue, 01 Apr 2003 14:29:57 +0100
Madhavi Thottempudi [EMAIL PROTECTED] wrote:

 Hi !
 Thanks for UR reply. I am doing everything U were suggesting me to
 (pls see my previous mail).
 I know that the realm is working well, because it is authenticating
 the user properly and yes, I did put that under engine level.
 
 The problem I am having is that it's asking me to re-authenticate when
 I move from one webapp to another.
 So, I was wondering if I have to mention the list of webapps that use
 this single sign on feature somewhere...IS that so??
No. ... if yes i don't know where :).

But : 
I'm using the 4.1.24 (because of some bug in realm authentication) and i
use realm with the sso and 2 servlets and it work. 

If it doesn't work with that i can give you a part of my configuration
in private.

bye.

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



RE: Taglib on tomcat 4.1.24

2003-04-01 Thread Arnaud HERITIER


 -Message d'origine-
 De : Simon MacMullen [mailto:[EMAIL PROTECTED]
 Envoyé : mardi 1 avril 2003 15:05
 À : Tomcat Users List
 Objet : RE: Taglib on tomcat 4.1.24
 
 
perhaps the new tomcat manager keep to much things in cache... 
 
   Absolutely. Tag instances may be re-used. This means you can 
   only do setup for your tag at the last minute in doStartTag().
 
  doStartTag ??? 
  isn't it doEndTag ??
 
 Well, I meant get things ready for your tag, not clean up 
 after (as you seem to be implying) and I specifically meant 
 as opposed to in constructors, instance initialisers, 
 property writers, etc.

I'm agree with you but what about properties used by the tag ??
For instances variables I can reset them in the begin of doStartTag.
But for an optional attribute of a tag I can't.
If for example I have a property foo :

String foo = ;

If I use a first time the tag with this property :
mylib:mytag foo=bar/

and a second time without this property
mylib:mytag/

In the second time my property is always setted to bar and not to .
I can't reset it manually in the doStartTag because I will delete the value
is the property is setted.

How can I manage this ???

Have you an idea ??


Cheers Arnaud .

 
  But if I use the doEndTag, Shawn says that doEndTag() is not 
  necessarily
  called at the end of every invocation (in cases of abnormal 
  termination --
  e.g., an exception thrown inside a tag's body or by one of 
  its methods)
 
 If you want to clear up after each invocation, I think you 
 want doFinally() method on the interface TryCatchFinally?
 
  But why the release() method isn't called between two uses of 
  the same tag
  ??
  
  Is it a performance issue ???
 
 Presumably the release() method is intended to release 
 heavyweight objects used by the tag, so yes.
 
 Cheers, Simon
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

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

Can not shotdown Tomcat server 4.1.24

2003-04-01 Thread Jianqing Cao
To whom it may concern,

I have successfully downloaded and installed Tomcat4.1.24 version to my 
Window 2000 machine.Whenever I start up my machine it will start up 
automatically.
I, however,  could not shutdown it by either clicking on the Stop Tomcat 
manu or typing command shutdown under %CATALINA_HOME%\bin diectory but get 
the error information as following:

Using CATALINA_BASE:   C:\Program Files\Apache Group\Tomcat 4.1
Using CATALINA_HOME:   C:\Program Files\Apache Group\Tomcat 4.1
Using CATALINA_TMPDIR: C:\Program Files\Apache Group\Tomcat 4.1\temp
Using JAVA_HOME:   C:\jdk1.3.1_07
Catalina.stop: java.net.ConnectException: Connection refused: connect
java.net.ConnectException: Connection refused: connect
  at java.net.PlainSocketImpl.socketConnect(Native Method)
  at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:350)
  at 
java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:137)
  at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:124)
  at java.net.Socket.init(Socket.java:268)
  at java.net.Socket.init(Socket.java:95)
  at org.apache.catalina.startup.Catalina.stop(Catalina.java:581)
  at org.apache.catalina.startup.Catalina.execute(Catalina.java:402)
  at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
  at java.lang.reflect.Method.invoke(Native Method)
  at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
.

I using JDK1.3.1_07 version and add all jaxp-1.2.2 jar files to my 
LOCALCLASSPATH
environment variable. Please tell me why?

Thanks,

JC





_
MSN 8 with e-mail virus protection service: 2 months FREE*  
http://join.msn.com/?page=features/virus

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


Urgent

2003-04-01 Thread sanjay
Hi,
I am using Tomcat 4.0..I have set all the paths.When
as a test i try to access the url
http://localhost:8080/index.html I only get a blank
page.No error is displayed.
Pla help me out.
Thanks
Sanjay

__
Do you Yahoo!?
Yahoo! Tax Center - File online, calculators, forms, and more
http://platinum.yahoo.com

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



gzip compression in Coyote from 4.1.24

2003-04-01 Thread Ronald Klop
Hello,

Can somebody confirm if gzip compression works in Tomcat 4.1.24?
I have found that it is not working if the Content-Type contains extra 
info like ';charset=us-ascii'.

The only bug reports I can find about this are: 18073 (made by myself) 
and 2820 [1].

I am wondering if other people are using this feature?

Greetings,

Ronald.

[1]
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2820
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18073


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


Re: Single sign on problem!!

2003-04-01 Thread Madhavi Thottempudi
Hi Gabriel!
I really appreciate your help. Thanks.
I will try SSO on 4.1.24 and let you know how it goes.
btw, my mail id is [EMAIL PROTECTED]

regards,
M
On Tue, 01 Apr 2003 14:29:57 +0100

 Hi !
 Thanks for UR reply. I am doing everything U were suggesting me to
 (pls see my previous mail).
 I know that the realm is working well, because it is authenticating
 the user properly and yes, I did put that under engine level.

 The problem I am having is that it's asking me to re-authenticate when
 I move from one webapp to another.
 So, I was wondering if I have to mention the list of webapps that use
 this single sign on feature somewhere...IS that so??
No. ... if yes i don't know where :).
But :
I'm using the 4.1.24 (because of some bug in realm authentication) and i
use realm with the sso and 2 servlets and it work.
If it doesn't work with that i can give you a part of my configuration
in private.
bye.

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


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


Problem running jsp pages

2003-04-01 Thread Donie Kelly









Hi all



I cannot get any jsp pages to run at all.
All I get is this



StandardContext[]: Servlet threw load() exception

javax.servlet.ServletException:
Servlet.init() for servlet jsp threw exception

 at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:871)

 at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3267)

 at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3384)

 at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)

 at org.apache.catalina.core.StandardHost.start(StandardHost.java:612)

 at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)

 at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:307)

 at org.apache.catalina.core.StandardService.start(StandardService.java:388)

 at
org.apache.catalina.core.StandardServer.start(StandardServer.java:505)

 at
org.apache.catalina.startup.Catalina.start(Catalina.java:776)

 at
org.apache.catalina.startup.Catalina.execute(Catalina.java:681)

 at
org.apache.catalina.startup.Catalina.process(Catalina.java:179)

 at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

 at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

 at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

 at
java.lang.reflect.Method.invoke(Method.java:324)

 at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)

- Root Cause -

java.lang.ClassCastException

 at
javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilderFactory.java:93)

 at
org.apache.jasper.parser.ParserUtils.parseXMLDocument(ParserUtils.java:183)

 at
org.apache.jasper.compiler.TldLocationsCache.processWebDotXml(TldLocationsCache.java:165)

 at
org.apache.jasper.compiler.TldLocationsCache.init(TldLocationsCache.java:138)

 at
org.apache.jasper.EmbededServletOptions.init(EmbededServletOptions.java:324)

 at
org.apache.jasper.servlet.JspServlet.init(JspServlet.java:266)

 at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:852)

 at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3267)

 at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3384)

 at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)

 at
org.apache.catalina.core.StandardHost.start(StandardHost.java:612)



Any ideas on what is wrong?

Thanks

Donie






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

Re: Can not shotdown Tomcat server 4.1.24

2003-04-01 Thread Konrad Rusz
Hello.

Your Tomcat is started by Windows service and you cannot stop it using
'shutdown.bat' command. You have to type (in command prompt) net stop
apache tomcat 4.1 - if it is, of course,  correct name for your Tomcat
service. Shutdown.bat command is used only if you started your Tomcat by
startup.bat command.

Regards,
Konrad Rusz


- Original Message -
From: Jianqing Cao [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Tuesday, April 01, 2003 3:39 AM
Subject: Can not shotdown Tomcat server 4.1.24



 To whom it may concern,

 I have successfully downloaded and installed Tomcat4.1.24 version to my
 Window 2000 machine.Whenever I start up my machine it will start up
 automatically.
 I, however,  could not shutdown it by either clicking on the Stop Tomcat
 manu or typing command shutdown under %CATALINA_HOME%\bin diectory but
get
 the error information as following:

 Using CATALINA_BASE:   C:\Program Files\Apache Group\Tomcat 4.1
 Using CATALINA_HOME:   C:\Program Files\Apache Group\Tomcat 4.1
 Using CATALINA_TMPDIR: C:\Program Files\Apache Group\Tomcat 4.1\temp
 Using JAVA_HOME:   C:\jdk1.3.1_07
 Catalina.stop: java.net.ConnectException: Connection refused: connect
 java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:350)
at
 java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:137)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:124)
at java.net.Socket.init(Socket.java:268)
at java.net.Socket.init(Socket.java:95)
at org.apache.catalina.startup.Catalina.stop(Catalina.java:581)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:402)
at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at java.lang.reflect.Method.invoke(Native Method)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
 .

 I using JDK1.3.1_07 version and add all jaxp-1.2.2 jar files to my
 LOCALCLASSPATH
 environment variable. Please tell me why?

 Thanks,


 JC





 _
 MSN 8 with e-mail virus protection service: 2 months FREE*
 http://join.msn.com/?page=features/virus


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



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



Re: Urgent

2003-04-01 Thread Becker
Hi,

try the
http://193.174.127.135:8080/index.jsp

By Schorsch

- Original Message - 
From: sanjay [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, April 01, 2003 12:38 PM
Subject: Urgent


 Hi,
 I am using Tomcat 4.0..I have set all the paths.When
 as a test i try to access the url
 http://localhost:8080/index.html I only get a blank
 page.No error is displayed.
 Pla help me out.
 Thanks
 Sanjay
 
 __
 Do you Yahoo!?
 Yahoo! Tax Center - File online, calculators, forms, and more
 http://platinum.yahoo.com
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

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



classcastexception in bootstrap.jar though the jars are loaded

2003-04-01 Thread David Wahlund
Hi,
I'm unable to start Tomcat due to ClassNotFoundException.
The classpath to bootstrap.jar and tools.jar is correct and defined. And the
home directory too.
All the jars are loaded, but still I get a classcastexception.
Under what cirumstances could this occur? It there anything[system
variables,classpath,etc] else that needs to be set?
As seen below the classloader loads catalina.jar but throw an
classnotfoundexception when its unable to locate
org.apache.catalina.mbeans.ServerLifecycleListener which i contained in that
jar.

Regards,
David

### Debug log ###
Using CATALINA_BASE: E:\tomcat
Using CATALINA_HOME: E:\tomcat
Using CATALINA_TMPDIR: E:\tomcat\temp
Using JAVA_HOME: E:\jdk1.4
_RUNJAVA: E:\jdk1.4\bin\java
_EXECJAVA: start Tomcat E:\jdk1.4\bin\java
JAVA_OPTS:
CATALINA_OPTS:
DEBUG_OPTS:
JAVA_ENDORSED_DIRS: E:\tomcat\bin;E:\tomcat\common\endorsed
CLASSPATH: E:\jdk1.4\lib\tools.jar;E:\tomcat\bin\bootstrap.jar
CATALINA_BASE: E:\tomcat
_RUNJAVA JAVA_OPTS CATALINA_OPTS
DEBUG_OPTS -Djava.endorsed.dirs=JAVA_ENDORSED_DIRS -classpath
CLASSPATH -Dcatalina.base=CATALINA_BASE -Dcatalina.home=CATALINA_HOME 
-Djava.io.tmpdir=CATALINA_TMPDIR MAINCLASS CMD_LINE_ARGS ACTION
ClassLoaderFactory: Creating new class loader
ClassLoaderFactory: Including directory E:\tomcat\common\classes
ClassLoaderFactory: Including jar file
E:\tomcat\common\endorsed\xercesImpl.jar
ClassLoaderFactory: Including jar file
E:\tomcat\common\endorsed\xmlParserAPIs.jar
ClassLoaderFactory: Including jar file E:\tomcat\common\lib\activation.jar
ClassLoaderFactory: Including jar file E:\tomcat\common\lib\ant.jar
ClassLoaderFactory: Including jar file
E:\tomcat\common\lib\commons-collections.jar
ClassLoaderFactory: Including jar file E:\tomcat\common\lib\commons-dbcp.jar
ClassLoaderFactory: Including jar file
E:\tomcat\common\lib\commons-logging-api.jar
ClassLoaderFactory: Including jar file E:\tomcat\common\lib\commons-pool.jar
ClassLoaderFactory: Including jar file E:\tomcat\common\lib\j2ee.jar
ClassLoaderFactory: Including jar file
E:\tomcat\common\lib\jasper-compiler.jar
ClassLoaderFactory: Including jar file
E:\tomcat\common\lib\jasper-runtime.jar
ClassLoaderFactory: Including jar file
E:\tomcat\common\lib\jdbc2_0-stdext.jar
ClassLoaderFactory: Including jar file E:\tomcat\common\lib\jndi.jar
ClassLoaderFactory: Including jar file E:\tomcat\common\lib\jta.jar
ClassLoaderFactory: Including jar file E:\tomcat\common\lib\mail.jar
ClassLoaderFactory: Including jar file
E:\tomcat\common\lib\naming-common.jar
ClassLoaderFactory: Including jar file
E:\tomcat\common\lib\naming-factory.jar
ClassLoaderFactory: Including jar file
E:\tomcat\common\lib\naming-resources.jar
ClassLoaderFactory: Including jar file E:\tomcat\common\lib\servlet.jar
ClassLoaderFactory: Including jar file E:\tomcat\common\lib\tools.jar
ClassLoaderFactory: Creating new class loader
ClassLoaderFactory: Including directory E:\tomcat\server\classes
ClassLoaderFactory: Including jar file E:\tomcat\server\lib\catalina-ant.jar
ClassLoaderFactory: Including jar file E:\tomcat\server\lib\catalina.jar
ClassLoaderFactory: Including jar file
E:\tomcat\server\lib\commons-beanutils.jar
ClassLoaderFactory: Including jar file
E:\tomcat\server\lib\commons-digester.jar
ClassLoaderFactory: Including jar file
E:\tomcat\server\lib\commons-logging.jar
ClassLoaderFactory: Including jar file
E:\tomcat\server\lib\commons-modeler.jar
ClassLoaderFactory: Including jar file E:\tomcat\server\lib\jaas.jar
ClassLoaderFactory: Including jar file
E:\tomcat\server\lib\jakarta-regexp-1.2.jar
ClassLoaderFactory: Including jar file E:\tomcat\server\lib\mx4j-jmx.jar
ClassLoaderFactory: Including jar file
E:\tomcat\server\lib\servlets-common.jar
ClassLoaderFactory: Including jar file
E:\tomcat\server\lib\servlets-default.jar
ClassLoaderFactory: Including jar file
E:\tomcat\server\lib\servlets-invoker.jar
ClassLoaderFactory: Including jar file
E:\tomcat\server\lib\servlets-manager.jar
ClassLoaderFactory: Including jar file
E:\tomcat\server\lib\servlets-webdav.jar
ClassLoaderFactory: Including jar file
E:\tomcat\server\lib\tomcat-coyote.jar
ClassLoaderFactory: Including jar file
E:\tomcat\server\lib\tomcat-http11.jar
ClassLoaderFactory: Including jar file E:\tomcat\server\lib\tomcat-jk.jar
ClassLoaderFactory: Including jar file E:\tomcat\server\lib\tomcat-jk2.jar
ClassLoaderFactory: Including jar file E:\tomcat\server\lib\tomcat-util.jar
ClassLoaderFactory: Including jar file E:\tomcat\server\lib\tomcat-warp.jar
ClassLoaderFactory: Creating new class loader
ClassLoaderFactory: Including directory E:\tomcat\shared\classes
Bootstrap: Loading startup class
Bootstrap: Setting startup class properties
Bootstrap: Calling startup class process() method
XmlMapper: Debug level: 999
XmlMapper: Validating = false
XmlMapper: Set locator :
[EMAIL PROTECTED]
XmlMapper: new className org.apache.catalina.core.StandardServer Server
StandardServer[8005]
XmlMapper: setProperty(class org.apache.catalina.core.StandardServer

Re: DataSource misconfigured?

2003-04-01 Thread Jacob Kjome
Are you using a finally bock to close your connections?  You might be 
reaching the maximum connections allowed in the pool for DBCP.  Please 
provide an example of a query statement where you do try/catch/finally.  If 
you are not checking if your connections are not null and then making a 
last ditch attempt to close them in the finally block, then that may very 
well be the problem.

Also, your URL should have ?autoReconnect=true appended to the url 
value since you are using MySQL.

Jake

At 10:29 PM 3/31/2003 -0700, you wrote:
Hello Again Everyone! I know I have already sent out a message or three
about this, but I need to resolve it pretty quickly.  I found a work around,
but I would like a sanity check from those of you who really understand this
stuff.  I included a method that I wrote to get Connections, You can see the
old and the new along side each other.  The manual method allows me to
query till the cows come home.. The Resource method gives me 12 DB hits on
4.1.18 and 5 on 4.1.24 (tested on both solaris 8 and 9) before it appears to
hang.  Oddly enough I can't pinpoint what is hanging because I have added
log statements to this method and it appears to be working.. but
substituting those two lines below removes the issue, so I believe it is
returning an invalid connection or something that I don't understand.
Thanks for any time spent on reading this!

   / Method Start /
   public static Connection getConnection () throws Exception {
  Connection connection;
  try {
 /*** Old Version
 Context ctx = new InitialContext ();
 if ( ctx == null )
throw new Exception (No Context);
 DataSource ds;
 ds = (DataSource)ctx.lookup (java:comp/env/jdbc/CIHDB);
 if ( ds != null )
  connection = ds.getConnection();
 else {
   return null;
 }//end of else
  End of old version */
 Class.forName (com.mysql.jdbc.Driver).newInstance();
 connection = DriverManager.getConnection (
  jdbc:mysql://localhost/cih,
  User,PassWord);
  }//end of try
  catch ( Exception e ) {
 throw (e);
  }//end of catch
  return connection;
   }//end getConnection
/* Web.xml definition
   resource-ref
  description
 Resource reference to a factory for java.sql.Connection
 instance that may be used for talking to a particular
 database that is configured in the server.xml file
  /description
  res-ref-namejdbc/CIHDB/res-ref-name
  res-typejavax.sql.DataSource/res-type
  res-authContainer/res-auth
   /resource-ref
/** server.xml
Context path=/cih docBase=cih debug=0
 reloadable=true crossContext=true
   Logger className=org.apache.catalina.logger.FileLogger
   prefix=localhost_CIH. suffix=.txt
   timestamp=true/
   Resource name=jdbc/CIHDB
 auth=Container
 type=javax.sql.DataSource/
   ResourceParams name=jdbc/CIHDB
  parameter
 namefactory/name
valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
  /parameter
  parameter
 nameusername/name
 valueUser/value
  /parameter
  parameter
 namepassword/name
 valuePassword/value
  /parameter
  parameter
 namedriverClassName/name
 valuecom.mysql.jdbc.Driver/value
  /parameter
  parameter
 nameurl/name
 valuejdbc:mysql://localhost/cih/value
  /parameter
  parameter
 nameremoveAdandoned/name
 valuetrue/value
  /parameter
  parameter
 nameremoveAdandonedTimeout/name
 value120/value
  /parameter
  parameter
 nameMaxActive/name
 value50/value
  /parameter
  parameter
 nameMaxIdle/name
 value10/value
  /parameter
  parameter
 nameMaxWait/name
 value200/value
  /parameter
   /ResourceParams
  /Context
Steve Gums

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


RE: Tomcat Crush

2003-04-01 Thread Shapira, Yoav

Howdy,
There's always a specific reason ;)  It's hardly ever obvious,
unfortunately.

In this case, could it be because the client closes the browser or goes
to another web page while the request to your site is processing?


Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Gregory Rouchotas [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 01, 2003 8:24 AM
To: [EMAIL PROTECTED]
Subject: Tomcat Crush

Hello all,
I am running tomcat 4.0.4 on solaris8.

I get a very strange problem where with no specific reason tomcat
produces the following error
In the Catalina_log:

2003-04-01 19:12:54 Ajp13Processor[8009][9] process: invoke
java.net.SocketException: Socket closed
at java.net.SocketOutputStream.socketWrite0(Native Method)
at
java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
at
java.net.SocketOutputStream.write(SocketOutputStream.java:126)
at org.apache.ajp.Ajp13.send(Ajp13.java:525)
at
org.apache.ajp.RequestHandler.finish(RequestHandler.java:495)
at org.apache.ajp.Ajp13.finish(Ajp13.java:395)
at
org.apache.ajp.tomcat4.Ajp13Response.finishResponse(Ajp13Response.java:
1
96)
at
org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:464)
at
org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:551)
at java.lang.Thread.run(Thread.java:536)

This continues for sometime. The system has about 300 concurrent users
at any given time.
The after about 8 hours tomcat will crush.

Any ideas what might be causing this.
Thanks in advance,

Greg



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


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



RE: Tomcat on Solaris 2.9

2003-04-01 Thread Shapira, Yoav

Howdy,
Yes to your first question, no to your second.  All is good.  Make
you're your Solaris servers contains the OS patches required by the JDK.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Steve Gums [mailto:[EMAIL PROTECTED]
Sent: Monday, March 31, 2003 5:28 PM
To: Tcat Users
Subject: Tomcat on Solaris 2.9

Is anyone out there running tomcat 4.1.24 or 4.1.18 on Solaris 2.9?
If you are have you seen any issues with tomcat locking up?

Steve Gums

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




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


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



Re: Can Tomcat (Servlet) read the DocumentRoot from an Apache web server?

2003-04-01 Thread Jacob Kjome
Are you running out of the ROOT directory?  If so, then that is 
correct.  The real path of / is relative to your context so it would give 
you the absolute path to the root of your context, whichever context that 
isthat is if you are running from a directory and not directly from a 
.war file, in which case getRealPath() would return null.

Jake

At 09:56 PM 3/31/2003 -0800, you wrote:
Hi,

I have Apache and Tomcat hooked-up using the mod_jk connector. I was
wondering if Tomcat (or a Java Servlet running on Tomcat) is able to
read the DocumentRoot of the Apache web server. I used the following
code in my Servlet:
String doc_root = getServletContext().getRealPath(/);
out.println(doc_root =  + doc_root);
but doc_root comes out as the Tomcat ROOT directory path, and not the
Apache DocumentRoot path. Is what I am looking for even possible? I know
there are ways, but most of these involve hard-coding the path in
Tomcat's config files (virtual host definitions and stuff like that).  I
am trying to avoid hard-coding the path anywhere in Tomcat.
Thanks,

Steve Cromer
[EMAIL PROTECTED]
[EMAIL PROTECTED]


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


Applet -Tomcat 4.1.

2003-04-01 Thread Alberto A C A S Magalhães
**
Este email assim como os ficheiros que possa ter em anexo são confidenciais
e para uso exclusivo da pessoa ou organização para o qual foi enviado.
Se recebeu este email por engano por favor notifique [EMAIL PROTECTED]

Esta nota confirma que esta mensagem foi verificada pelo MIMEsweeper
não tendo sido encontrados virus.

www.mimesweeper.com
***

Hi,
I build a small applet, that is called by an index.html. When I deploy it on
TOMCAT, it gives an error:ClassNotFound.
Anynone can help me?
Thanks...


RE: Applet -Tomcat 4.1.

2003-04-01 Thread Shapira, Yoav

Howdy,
Make sure your applet archive/codebase attributes are correct.  Make sure all the 
classes the applet needs are indeed compiled and placed in the location named by the 
archive/codebase attribute.  Make sure the server is up and running properly without 
errors.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Alberto A C A S Magalhães [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 01, 2003 9:39 AM
To: Tomcat Users List
Subject: Applet -Tomcat 4.1.

**
Este email assim como os ficheiros que possa ter em anexo são confidenciais
e para uso exclusivo da pessoa ou organização para o qual foi enviado.
Se recebeu este email por engano por favor notifique [EMAIL PROTECTED]

Esta nota confirma que esta mensagem foi verificada pelo MIMEsweeper
não tendo sido encontrados virus.

www.mimesweeper.com
***

Hi,
I build a small applet, that is called by an index.html. When I deploy it
on
TOMCAT, it gives an error:ClassNotFound.
Anynone can help me?
Thanks...



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


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



RE: Applet -Tomcat 4.1.

2003-04-01 Thread Alberto A C A S Magalhães
**
Este email assim como os ficheiros que possa ter em anexo são confidenciais
e para uso exclusivo da pessoa ou organização para o qual foi enviado.
Se recebeu este email por engano por favor notifique [EMAIL PROTECTED]

Esta nota confirma que esta mensagem foi verificada pelo MIMEsweeper
não tendo sido encontrados virus.

www.mimesweeper.com
***

For building an APPLET, is necessary using a JAR file? 

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: terça-feira, 1 de Abril de 2003 15:53
To: Tomcat Users List
Subject: RE: Applet -Tomcat 4.1.


Howdy,
Make sure your applet archive/codebase attributes are correct.  Make sure
all the classes the applet needs are indeed compiled and placed in the
location named by the archive/codebase attribute.  Make sure the server is
up and running properly without errors.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Alberto A C A S Magalhães [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 01, 2003 9:39 AM
To: Tomcat Users List
Subject: Applet -Tomcat 4.1.

**
Este email assim como os ficheiros que possa ter em anexo são confidenciais
e para uso exclusivo da pessoa ou organização para o qual foi enviado.
Se recebeu este email por engano por favor notifique [EMAIL PROTECTED]

Esta nota confirma que esta mensagem foi verificada pelo MIMEsweeper
não tendo sido encontrados virus.

www.mimesweeper.com
***

Hi,
I build a small applet, that is called by an index.html. When I deploy it
on
TOMCAT, it gives an error:ClassNotFound.
Anynone can help me?
Thanks...



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


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

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



Re: Applet -Tomcat 4.1.

2003-04-01 Thread Jacob Kjome
Just make sure that the library that the applet is pointing to is publicly 
available.  This means that it does *not* go in WEB-INF/lib.  Put it where 
you put your static html, jsp's, images, css, and other public stuff.

Jake

At 03:39 PM 4/1/2003 +0100, you wrote:
**
Este email assim como os ficheiros que possa ter em anexo são confidenciais
e para uso exclusivo da pessoa ou organização para o qual foi enviado.
Se recebeu este email por engano por favor notifique [EMAIL PROTECTED]
Esta nota confirma que esta mensagem foi verificada pelo MIMEsweeper
não tendo sido encontrados virus.
www.mimesweeper.com
***
Hi,
I build a small applet, that is called by an index.html. When I deploy it on
TOMCAT, it gives an error:ClassNotFound.
Anynone can help me?
Thanks...


Antwort: RE: user principal, realm

2003-04-01 Thread Oliver Wulff

I took a look to JavaDoc and saw that all methods are deprecated. Is it
really the right way? My first thought was that it's very low level.
Doesn't there exist an easier solution for my problem?

**
Oliver Wulff
Zürich Versicherungs-Gesellschaft
IA4, CoC Middleware
Postfach, 8085 Zürich
Telefon: +41- 1 628 58 07
Fax: +41 - 1 623 58 07
E-Mail: mailto:[EMAIL PROTECTED]



   
   
  Ralph Einfeldt 
   
  [EMAIL PROTECTED] An:  Tomcat Users List [EMAIL 
PROTECTED]   
  ime-isc.de Kopie:   
   
  Thema:   RE: user principal, realm   
   
  01.04.2003 14:50 
   
  Bitte antworten an   
   
  Tomcat Users List  
   
   
   
   
   




Although I havn't tried it, I guess yes.

I think you have to define your own RequestWrapper
that lets you set the principal.

 -Original Message-
 From: Oliver Wulff [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, April 01, 2003 2:42 PM
 To: [EMAIL PROTECTED]
 Subject: user principal, realm


 Can I implement a filter which sets the current principal, so
 that calls to
 request.getUserPrincipal().getName() succeed?

 In our company, an apache server in front of tomcat authenticates the
 client and delegates the user principal as an http header  attribute.
 I want to read this principal and set the user principal in a filter.
 Can I do this?


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






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



Form Auth

2003-04-01 Thread Michael D. Kirkpatrick
I am not quite sure if this question is suitable for this mailing list.  If
not, please forgive me.

I am using the form authentication for adding security to one of my apps.
Since this app will be in use with several web sites, I am forced to pass
something like ?site=somesite in my url.
The problem that I am running into is that on the actual login form, I do not
have access to the original query string.
The login page has 2 links: Create account and Recover Password.
I need that original query string so I can reference the proper web site's
information.
What I have access to is the query string of /some_app/login.jsp?name=value
for displaying the login screen.
That query is what I have placed in web.xml.

So here is my question.  How can I capture the original query string or make
the query string in web.xml dynamic?

I am also looking for mailing lists for the following:
Struts Questions
General Java Questions
J2EE Questions

If anyone can point me in the right direction, it would be greatly
appreciated.

Thanks in advance.


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



RE: Applet -Tomcat 4.1.

2003-04-01 Thread Shapira, Yoav

Howdy,
No it's not necessary to use a jar file.  It's probably a good idea though.  Perhaps 
you will find an applet tutorial useful:
http://java.sun.com/docs/books/tutorial/applet/

This list is supposed to be used for tomcat-specific questions, and is a heavily 
trafficked list as is.  Please try to develop the applet as shown in the above 
tutorial, and once you have it working stand-alone and want to deploy to tomcat, give 
that a shot and let us know if you run into any problems.  Good luck ;)

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Alberto A C A S Magalhães [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 01, 2003 9:52 AM
To: 'Tomcat Users List'
Subject: RE: Applet -Tomcat 4.1.

**
Este email assim como os ficheiros que possa ter em anexo são confidenciais
e para uso exclusivo da pessoa ou organização para o qual foi enviado.
Se recebeu este email por engano por favor notifique [EMAIL PROTECTED]

Esta nota confirma que esta mensagem foi verificada pelo MIMEsweeper
não tendo sido encontrados virus.

www.mimesweeper.com
***

For building an APPLET, is necessary using a JAR file?

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: terça-feira, 1 de Abril de 2003 15:53
To: Tomcat Users List
Subject: RE: Applet -Tomcat 4.1.


Howdy,
Make sure your applet archive/codebase attributes are correct.  Make sure
all the classes the applet needs are indeed compiled and placed in the
location named by the archive/codebase attribute.  Make sure the server is
up and running properly without errors.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Alberto A C A S Magalhães [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 01, 2003 9:39 AM
To: Tomcat Users List
Subject: Applet -Tomcat 4.1.

**
Este email assim como os ficheiros que possa ter em anexo são
confidenciais
e para uso exclusivo da pessoa ou organização para o qual foi enviado.
Se recebeu este email por engano por favor notifique [EMAIL PROTECTED]

Esta nota confirma que esta mensagem foi verificada pelo MIMEsweeper
não tendo sido encontrados virus.

www.mimesweeper.com
***

Hi,
I build a small applet, that is called by an index.html. When I deploy it
on
TOMCAT, it gives an error:ClassNotFound.
Anynone can help me?
Thanks...



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


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

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




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


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



RE: book on EJB

2003-04-01 Thread Jeremy Whitlock
Chris,
I tried Jonas and JBoss and never got them working correctly
with Tomcat.  I use OpenEJB as it's easy to get working and is
accessible via Tomcat with very minor configuration.  If you would like
any help setting it up, let me know.  Later, Jeremy

-Original Message-
From: Chris Shen [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 31, 2003 4:45 PM
To: [EMAIL PROTECTED]
Subject: RE: book on EJB

Thanks for the recommendations, guys. i will be sure to check it out.
What 
do you guys think of JBoss just out of curiosity?






From: Jeremy Whitlock [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Subject: RE: book on EJB
Date: Mon, 31 Mar 2003 16:21:42 -0700

Chris,
   I second that.  It's a great book.  You'll need an EJB container
as well and I suggest OpenEJB.  It can be found here:

http://openejb.sourceforge.net

   It integrates tightly into Tomcat and is very simple to
install/configure/use.  I'd love to help you out with it if you go that
direction.  Later, Jeremy

-Original Message-
From: Dmitry Sklyut [mailto:[EMAIL PROTECTED]
Sent: Monday, March 31, 2003 4:21 PM
To: 'Tomcat Users List'
Subject: RE: book on EJB

www.theserverside.com

Download Ed Roman's book

-Original Message-
From: Chris Shen [mailto:[EMAIL PROTECTED]
Sent: Monday, March 31, 2003 6:20 PM
To: [EMAIL PROTECTED]
Subject: book on EJB


i am an intermediate lvl jsp/servlet developer and would like to learn
ejb.
i am looking for a good tutorial/reference for novice/intermediate ejb
developers. any suggestions?

Chris

_
STOP MORE SPAM with the new MSN 8 and get 2 months FREE*
http://join.msn.com/?page=features/junkmail


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



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



_
Help STOP SPAM with the new MSN 8 and get 2 months FREE*  
http://join.msn.com/?page=features/junkmail


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



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



RE: Tomcat 4 As A Windows Service

2003-04-01 Thread Longley, Andrew
The main issue this does not *seem* to resolve, unless I am missing
something, is that there does not seem to be a place here for properly
configuring the ports for a second or third tomcat on the same machine.
Additional Tomcats need their own ports, correct?

One solution to this *may* be to edit the service you just created
(i.e., open up properties for the service), and add an additional
parameter using the -config parameter.  I believe (not sure) the syntax
is
  -config conf/server.xml
where each instance would presumably use a different server.xml (named
appropriately) and specifying different ports.  The conf/ is a relative
path to your Tomcat home directory, however you *may* be able to fully
specify a path to a unique server.xml file.  I believe this is NT
service speak for the -F option (bin\Tomcat.exe -F server.xml) that
existed at least in Tomcat 3.2.

One thing I'm still looking for an answer to is how to specify a
different classpath for a second or third Tomcat service, other than the

-Djava.class.path parameter, i.e., the equivalent of the old
wrapper.properties file (assuming wrapper.properties is no longer
supported in Tomcat 4.1).  Anyone have any info on this?  The classpath
in web.xml doesn't seem to work for me, unless I have the syntax wrong.

Andrew Longley

-Original Message-
From: Jacob Kjome [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 31, 2003 8:23 PM
To: Tomcat Users List
Subject: Re: Tomcat 4 As A Windows Service


See:
http://www.mattkelli.com/tech/tomcat/ntservice.htm

Jake

At 05:52 PM 3/31/2003 -0600, you wrote:
Hi,

I have a need for multiple tomcats on Windows.  I can't find any doco
on
the jakarta website for doing this.

Installing Tomat and choosing the NT Service option doesn't help me
because I need multiple tomcats, not just one.

I'm using Tomcat 4.0.6.  I can install one tomcat as a service with
tomcat.exe, but how do I set %CATALINA_BASE% so I can install more than
one
service and have it point to the right conf files?

Any help would be greatly appreciated.

Thanks,
Tom Johnson



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

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



Re: Form Auth

2003-04-01 Thread Henning Heil
Hi Michael,

 Michael D. Kirkpatrick wrote on 01.04.2003 17:05 

I am not quite sure if this question is suitable for this mailing list.  If
not, please forgive me.
[snip]

So here is my question.  How can I capture the original query string or make
the query string in web.xml dynamic?
in general I would not recommend to set the string in the web.xml.
first part of your question: you can read out any parameter of a post or 
get string by request.getParameter(String parametername);
second part: there are multiple ways to manipulate the request 
parameters: java - request.setAttribute(String attributename, String 
value); or by hidden fields in html forms or with select-fields which 
are submitted . . .

I would suggest:

read out the site the user is coming from with

String mysite = request.getParameter(site);

(of course you have to add this to the string somewhere on the original 
page)

write it to newly generated links:

out.println(passwordsubmitter.jsp?site= + mysite);

or sth like this . . .

I am also looking for mailing lists for the following:
   Struts Questions
there's one on the apache.org site I think - struts  . . .

   General Java Questions
   J2EE Questions
no mailing but extremely cool  helpful people there and also mailing 
mechanisms to keep track of your threads:
http://forums.java.sun.com/

If anyone can point me in the right direction, it would be greatly
appreciated.
Thanks in advance.
 

Have fun,

Henning

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


javac: invalid flag: C:\Program

2003-04-01 Thread Roar Skullestad
I moved my webapp to another Tomcat installation, and I now get an exception that 
indicates that the java file name parameter to javac is truncated (javac: invalid 
flag: C:\Program).
All other webapps works fine.
Any ideas?
- Roar
org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: -1 in the jsp file: null

Generated servlet error:
Project base dir set to: C:\Program Files\Apache Group\Tomcat 4.1
Detected Java version: 1.4 in: C:\j2sdk1.4.1_02\jre
Detected OS: Windows XP
[javac] index_jsp.java added as C:\Program Files\Apache Group\Tomcat 
4.1\work\Standalone\localhost\nacka\index_jsp.class doesn't exist.
[javac] Since fork is true, ignoring compiler setting.
[javac] Compiling 1 source file
[javac] Using external javac compiler
[javac] Since fork is true, ignoring compiler setting.
[javac] Compilation arguments:
[javac] '-classpath'
[javac] 'C:\Program Files\Apache Group\Tomcat 

RE: javac: invalid flag: C:\Program

2003-04-01 Thread Shapira, Yoav

Howdy,
Spaces in file paths are evil... You need to ensure the full path is
quoted (c:\program files...) or use a path without spaces, e.g. by
re-installing tomcat in c:\tomcat4.1 or something like that.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Roar Skullestad [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 01, 2003 9:59 AM
To: [EMAIL PROTECTED]
Subject: javac: invalid flag: C:\Program

I moved my webapp to another Tomcat installation, and I now get an
exception that indicates that the java file name parameter to javac is
truncated (javac: invalid flag: C:\Program).
All other webapps works fine.
Any ideas?
- Roar
org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: -1 in the jsp file: null

Generated servlet error:
Project base dir set to: C:\Program Files\Apache Group\Tomcat 4.1
Detected Java version: 1.4 in: C:\j2sdk1.4.1_02\jre
Detected OS: Windows XP
[javac] index_jsp.java added as C:\Program Files\Apache
Group\Tomcat
4.1\work\Standalone\localhost\nacka\index_jsp.class doesn't exist.
[javac] Since fork is true, ignoring compiler setting.
[javac] Compiling 1 source file
[javac] Using external javac compiler
[javac] Since fork is true, ignoring compiler setting.
[javac] Compilation arguments:
[javac] '-classpath'
[javac] 'C:\Program Files\Apache Group\Tomcat
4.1\bin\bootstrap.jar;C:\idega\webs\nacka\idegaweb\bundles\com.idega.bl
ock.
banner.bundle\classes;C:\idega\webs\nacka\idegaweb\bundles\com.idega.bl
ock.
boxoffice.bundle\classes;C:\idega\webs\nacka\idegaweb\bundles\com.idega
.blo
ck.building.bundle\classes;C:\idega\webs\nacka\idegaweb\bundles\com.ide
ga.b
lock.calendar.bundle\classes;C:\idega\webs\nacka\idegaweb\bundles\com.i
dega
.block.contract.bundle\classes;C:\idega\webs\nacka\idegaweb\bundles\com
.ide
ga.block.dictionary.bundle\classes;C:\idega\webs\nacka\idegaweb\bundles
\com
.idega.block.documents.bundle\classes;C:\idega\webs\nacka\idegaweb\bund
les\
com.idega.block.email.bundle\classes;C:\idega\webs\nacka\idegaweb\bundl
es\c
om.idega.block.forum.bundle\classes;C:\idega\webs\nacka\idegaweb\bundle
s\co
m.idega.block.image.bundle\classes;C:\idega\webs\nacka\idegaweb\bundles
\com
.idega.block.importer.bundle\classes;C:\idega\webs\nacka\idegaweb\bundl
es\c
om.idega.block.login.bundle\classes;C:\idega\webs\nacka\idegaweb\bundle
s\co
m.idega.block.media.bundle\classes;C:\idega\webs\nacka\idegaweb\bundles
\com
.idega.block.messenger.bundle\classes;C:\idega\webs\nacka\idegaweb\bund
les\
com.idega.block.navigation.bundle\classes;C:\idega\webs\nacka\idegaweb\
bund
les\com.idega.block.news.bundle\classes;C:\idega\webs\nacka\idegaweb\bu
ndle
s\com.idega.block.poll.bundle\classes;C:\idega\webs\nacka\idegaweb\bund
les\
com.idega.block.process.bundle\classes;C:\idega\webs\nacka\idegaweb\bun
dles
\com.idega.block.questions.bundle\classes;C:\idega\webs\nacka\idegaweb\
bund
les\com.idega.block.quote.bundle\classes;C:\idega\webs\nacka\idegaweb\b
undl
es\com.idega.block.reports.bundle\classes;C:\idega\webs\nacka\idegaweb\
bund
les\com.idega.block.school.bundle\classes;C:\idega\webs\nacka\idegaweb\
bund
les\com.idega.block.staff.bundle\classes;C:\idega\webs\nacka\idegaweb\b
undl
es\com.idega.block.text.bundle\classes;C:\idega\webs\nacka\idegaweb\bun
dles
\com.idega.block.trade.bundle\classes;C:\idega\webs\nacka\idegaweb\bund
les\
com.idega.block.websearch.bundle\classes;C:\idega\webs\nacka\idegaweb\b
undl
es\com.idega.builder.bundle\classes;C:\idega\webs\nacka\idegaweb\bundle
s\co
m.idega.core.bundle\classes;C:\idega\webs\nacka\idegaweb\bundles\com.id
ega.
core.user.bundle\classes;C:\idega\webs\nacka\idegaweb\bundles\com.idega
.dev
eloper.bundle\classes;C:\idega\webs\nacka\idegaweb\bundles\com.idega.id
egaw
eb.bundle\classes;C:\idega\webs\nacka\idegaweb\bundles\com.idega.user.b
undl
e\classes;C:\idega\webs\nacka\idegaweb\bundles\se.idega.idegaweb.commun
e.bu
ndle\classes;C:\idega\webs\nacka\WEB-INF\classes;C:\idega\webs\nacka\WE
B-
INF\lib\activation.jar;C:\idega\webs\nacka\WEB-
INF\lib\ant.jar;C:\idega\webs\nacka\WEB-
INF\lib\classes12.jar;C:\idega\webs\nacka\WEB-
INF\lib\connector.jar;C:\idega\webs\nacka\WEB-
INF\lib\cvslib.jar;C:\idega\webs\nacka\WEB-
INF\lib\cvslib_trunk.jar;C:\idega\webs\nacka\WEB-
INF\lib\ejb.jar;C:\idega\webs\nacka\WEB-
INF\lib\firebirdjmx.jar;C:\idega\webs\nacka\WEB-
INF\lib\firebirdsql.jar;C:\idega\webs\nacka\WEB-
INF\lib\hsqldb.jar;C:\idega\webs\nacka\WEB-
INF\lib\iText.jar;C:\idega\webs\nacka\WEB-
INF\lib\icu4j.jar;C:\idega\webs\nacka\WEB-INF\lib\idega-
jmodule.jar;C:\idega\webs\nacka\WEB-
INF\lib\informixjdbc.jar;C:\idega\webs\nacka\WEB-
INF\lib\interclient.jar;C:\idega\webs\nacka\WEB-INF\lib\itext-
xml.jar;C:\idega\webs\nacka\WEB-
INF\lib\iwtravel.jar;C:\idega\webs\nacka\WEB-
INF\lib\jaas.jar;C:\idega\webs\nacka\WEB-
INF\lib\jai_codec.jar;C:\idega\webs\nacka\WEB-
INF\lib\jai_core.jar;C:\idega\webs\nacka\WEB-INF\lib\jakarta-poi-1.5.1-

OT: PreparedStatement with dynamic parameter list

2003-04-01 Thread Chakravarthy, Sundar

Has anyone constructed a PreparedStatement where the number of ?s ( i.e
bind variables ) is unknown at compile time  ?

Is there any support of that in JDBC ?

Thanks

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



DriverclassName is required (mysql)

2003-04-01 Thread Mark.Gargan
Hi Folks,
I'm trying to install jUDDI in my tomcat installation.
The installation is from the java webservices pack from the sun site. 
I'm trying to setup mysql as the underlying database for the UDDI
Registry.
 
I've inserted the following context into the server.xml as instructed in
the JNDI howto Datasources guide.
 
!-- MYSQL datasource for jUDDI--
Context path=/DBTest docBase=DBTest debug=5
reloadable=true crossContext=true
   Logger className=org.apache.catalina.logger.FileLogger
prefix=localhost_DBTest_log. suffix=.txt timestamp=true /
 
   Resource name=jdbc/TestDB auth=Container
type=javax.sql.DataSource /
 
   ResourceParams name=jdbc/TestDB
  parameter
 namefactory/name
 
 
valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
  /parameter
 
!-- Maximum number of
dB connections in pool. Make sure you
 configure your
mysqld max_connections large enough to handle
 all of your db
connections. Set to 0 for no limit.
 --
  parameter
 namemaxActive/name
 
 value100/value
  /parameter
 
!-- Maximum number of
idle dB connections to retain in pool.
 Set to 0 for no
limit.
 --
  parameter
 namemaxIdle/name
 
 value30/value
  /parameter
 
!-- Maximum time to
wait for a dB connection to become available
 in ms, in this
example 10 seconds. An Exception is thrown if
 this timeout is
exceeded.  Set to -1 to wait indefinitely.
 --
 
  parameter
 namemaxWait/name
 
 value1/value
  /parameter
 
!-- MySQL dB username
and password for dB connections  --

  parameter
 nameusername/name
 
 valuejavauser/value
  /parameter
 
  parameter
 namepassword/name
 
 valuejavadude/value
  /parameter
 
!-- Class name for mm.mysql JDBC driver --

  parameter
 namedriverClassName/name
 
 valueorg.gjt.mm.mysql.Driver/value
  /parameter
 
!-- The JDBC connection
url for connecting to your MySQL dB.
 The
autoReconnect=true argument to the url makes sure that the
 mm.mysql JDBC
Driver will automatically reconnect if mysqld closed the
 connection.
mysqld by default closes idle connections after 8 hours.
 --
  parameter
 nameurl/name
 
 
valuejdbc:mysql://localhost:3306/javatest?autoReconnect=true/value
  /parameter
   /ResourceParams
/Context 
 
Unfortunately when I go to call the test.jsp which in turn makes a call
to the init method in the foo class :-
 
public void init() {
try{
  Context ctx = new InitialContext();
  if(ctx == null ) 
  throw new Exception(Boom - No Context);
 
  DataSource ds = 
(DataSource)ctx.lookup(
   java:comp/env/jdbc/TestDB);
 
  if (ds != null) {
Connection conn = ds.getConnection();
  
if(conn != null)  {
foo = Got Connection +conn.toString();
Statement stmt = conn.createStatement();
ResultSet rst = 
stmt.executeQuery(
  select id, foo, bar from testdata);
if(rst.next()) {
   foo=rst.getString(2);
   bar=rst.getInt(3);
}
conn.close();
}
  }
}catch(Exception e) {
  e.printStackTrace();
}
}
 
it begins to resolve the DataSource and then throws the following
exception..
 
javax.naming.NamingException: DbcpDataSourceFactory:  driverClassName is
required
  at

Re: javac: invalid flag: C:\Program

2003-04-01 Thread Andy Meadows
Or, you could use the short file name.  For Program Files, this is typically
Progra~1.  However, you can find this by running dir /x.  This will
display your short 8.3 no spaces filename.

Andy

- Original Message -
From: Shapira, Yoav [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, April 01, 2003 10:34 AM
Subject: RE: javac: invalid flag: C:\Program



 Howdy,
 Spaces in file paths are evil... You need to ensure the full path is
 quoted (c:\program files...) or use a path without spaces, e.g. by
 re-installing tomcat in c:\tomcat4.1 or something like that.

 Yoav Shapira
 Millennium ChemInformatics


 -Original Message-
 From: Roar Skullestad [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, April 01, 2003 9:59 AM
 To: [EMAIL PROTECTED]
 Subject: javac: invalid flag: C:\Program
 
 I moved my webapp to another Tomcat installation, and I now get an
 exception that indicates that the java file name parameter to javac is
 truncated (javac: invalid flag: C:\Program).
 All other webapps works fine.
 Any ideas?
 - Roar
 org.apache.jasper.JasperException: Unable to compile class for JSP
 
 An error occurred at line: -1 in the jsp file: null
 
 Generated servlet error:
 Project base dir set to: C:\Program Files\Apache Group\Tomcat 4.1
 Detected Java version: 1.4 in: C:\j2sdk1.4.1_02\jre
 Detected OS: Windows XP
 [javac] index_jsp.java added as C:\Program Files\Apache
 Group\Tomcat
 4.1\work\Standalone\localhost\nacka\index_jsp.class doesn't exist.
 [javac] Since fork is true, ignoring compiler setting.
 [javac] Compiling 1 source file
 [javac] Using external javac compiler
 [javac] Since fork is true, ignoring compiler setting.
 [javac] Compilation arguments:
 [javac] '-classpath'
 [javac] 'C:\Program Files\Apache Group\Tomcat
 4.1\bin\bootstrap.jar;C:\idega\webs\nacka\idegaweb\bundles\com.idega.bl
 ock.
 banner.bundle\classes;C:\idega\webs\nacka\idegaweb\bundles\com.idega.bl
 ock.
 boxoffice.bundle\classes;C:\idega\webs\nacka\idegaweb\bundles\com.idega
 .blo
 ck.building.bundle\classes;C:\idega\webs\nacka\idegaweb\bundles\com.ide
 ga.b
 lock.calendar.bundle\classes;C:\idega\webs\nacka\idegaweb\bundles\com.i
 dega
 .block.contract.bundle\classes;C:\idega\webs\nacka\idegaweb\bundles\com
 .ide
 ga.block.dictionary.bundle\classes;C:\idega\webs\nacka\idegaweb\bundles
 \com
 .idega.block.documents.bundle\classes;C:\idega\webs\nacka\idegaweb\bund
 les\
 com.idega.block.email.bundle\classes;C:\idega\webs\nacka\idegaweb\bundl
 es\c
 om.idega.block.forum.bundle\classes;C:\idega\webs\nacka\idegaweb\bundle
 s\co
 m.idega.block.image.bundle\classes;C:\idega\webs\nacka\idegaweb\bundles
 \com
 .idega.block.importer.bundle\classes;C:\idega\webs\nacka\idegaweb\bundl
 es\c
 om.idega.block.login.bundle\classes;C:\idega\webs\nacka\idegaweb\bundle
 s\co
 m.idega.block.media.bundle\classes;C:\idega\webs\nacka\idegaweb\bundles
 \com
 .idega.block.messenger.bundle\classes;C:\idega\webs\nacka\idegaweb\bund
 les\
 com.idega.block.navigation.bundle\classes;C:\idega\webs\nacka\idegaweb\
 bund
 les\com.idega.block.news.bundle\classes;C:\idega\webs\nacka\idegaweb\bu
 ndle
 s\com.idega.block.poll.bundle\classes;C:\idega\webs\nacka\idegaweb\bund
 les\
 com.idega.block.process.bundle\classes;C:\idega\webs\nacka\idegaweb\bun
 dles
 \com.idega.block.questions.bundle\classes;C:\idega\webs\nacka\idegaweb\
 bund
 les\com.idega.block.quote.bundle\classes;C:\idega\webs\nacka\idegaweb\b
 undl
 es\com.idega.block.reports.bundle\classes;C:\idega\webs\nacka\idegaweb\
 bund
 les\com.idega.block.school.bundle\classes;C:\idega\webs\nacka\idegaweb\
 bund
 les\com.idega.block.staff.bundle\classes;C:\idega\webs\nacka\idegaweb\b
 undl
 es\com.idega.block.text.bundle\classes;C:\idega\webs\nacka\idegaweb\bun
 dles
 \com.idega.block.trade.bundle\classes;C:\idega\webs\nacka\idegaweb\bund
 les\
 com.idega.block.websearch.bundle\classes;C:\idega\webs\nacka\idegaweb\b
 undl
 es\com.idega.builder.bundle\classes;C:\idega\webs\nacka\idegaweb\bundle
 s\co
 m.idega.core.bundle\classes;C:\idega\webs\nacka\idegaweb\bundles\com.id
 ega.
 core.user.bundle\classes;C:\idega\webs\nacka\idegaweb\bundles\com.idega
 .dev
 eloper.bundle\classes;C:\idega\webs\nacka\idegaweb\bundles\com.idega.id
 egaw
 eb.bundle\classes;C:\idega\webs\nacka\idegaweb\bundles\com.idega.user.b
 undl
 e\classes;C:\idega\webs\nacka\idegaweb\bundles\se.idega.idegaweb.commun
 e.bu
 ndle\classes;C:\idega\webs\nacka\WEB-INF\classes;C:\idega\webs\nacka\WE
 B-
 INF\lib\activation.jar;C:\idega\webs\nacka\WEB-
 INF\lib\ant.jar;C:\idega\webs\nacka\WEB-
 INF\lib\classes12.jar;C:\idega\webs\nacka\WEB-
 INF\lib\connector.jar;C:\idega\webs\nacka\WEB-
 INF\lib\cvslib.jar;C:\idega\webs\nacka\WEB-
 INF\lib\cvslib_trunk.jar;C:\idega\webs\nacka\WEB-
 INF\lib\ejb.jar;C:\idega\webs\nacka\WEB-
 INF\lib\firebirdjmx.jar;C:\idega\webs\nacka\WEB-
 INF\lib\firebirdsql.jar;C:\idega\webs\nacka\WEB-
 INF\lib\hsqldb.jar;C:\idega\webs\nacka\WEB-
 

Re: Form Auth

2003-04-01 Thread Michael D. Kirkpatrick
It returns null.

I noticed that it places all the POST/GET information into a session to be
re-submitted to the actual page after successful login.  Know of a way that I can
access the session information to extract a specific string in it?



Henning Heil wrote:

 Hi Michael,

  Michael D. Kirkpatrick wrote on 01.04.2003 17:05 

 I am not quite sure if this question is suitable for this mailing list.  If
 not, please forgive me.
 
 [snip]
 
 So here is my question.  How can I capture the original query string or make
 the query string in web.xml dynamic?
 
 in general I would not recommend to set the string in the web.xml.
 first part of your question: you can read out any parameter of a post or
 get string by request.getParameter(String parametername);
 second part: there are multiple ways to manipulate the request
 parameters: java - request.setAttribute(String attributename, String
 value); or by hidden fields in html forms or with select-fields which
 are submitted . . .

 I would suggest:

 read out the site the user is coming from with

 String mysite = request.getParameter(site);

 (of course you have to add this to the string somewhere on the original
 page)

 write it to newly generated links:

 out.println(passwordsubmitter.jsp?site= + mysite);

 or sth like this . . .

 I am also looking for mailing lists for the following:
 Struts Questions
 
 there's one on the apache.org site I think - struts  . . .

 General Java Questions
 J2EE Questions
 
 no mailing but extremely cool  helpful people there and also mailing
 mechanisms to keep track of your threads:
 http://forums.java.sun.com/

 If anyone can point me in the right direction, it would be greatly
 appreciated.
 
 Thanks in advance.
 
 
 Have fun,

 Henning

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


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



RE: tomcat 4.1.18 NT service

2003-04-01 Thread Cox, Charlie
I had this same prob on 4.0.x and the bug I had opened was labelled as a
'worksforme' since they could not reproduce it(bug 4524). It happened on a
clean install of win2k that only had office 2k I think. I think it was a
problem with the JavaService that was used with tomcat since tomcat worked
fine through the tomcat.bat file.

I ended up using the old jk_nt_service.exe(which I still use,btw) by
following the directions here:
http://www.mail-archive.com/[EMAIL PROTECTED]/msg35196.html
(replace references to 3.2 with 3.3)

Charlie

 -Original Message-
 From: Andrew Garnett [mailto:[EMAIL PROTECTED]
 Sent: Saturday, March 29, 2003 8:00 AM
 To: [EMAIL PROTECTED]
 Subject: Re: tomcat 4.1.18 NT service
 
 
 Yes Larry, that's the weird thing - everything looks
 fine until the hang, then the Iexplorer globe just
 keeps rotating. No response, no timeout, nothing in
 the log, it just goes on... I'll try to leave it
 overnight to see if it eventually returns.
 The worst part is that it does actually work for a
 brief few minutes, so the config can't be that bad.
 
 meantime, I've installed on another NT4 box, and got
 exactly the same. I got the .exe from the apache site,
 so I'm hoping someone else has seen it.
 
 Any ideas gladly accepted...
 Andy 
 =  Larry Meadors Larry.Meadors () plumcreek !
 com
 
 
 Did you look in the logs?
 
  [EMAIL PROTECTED] 03/28/03 10:14 AM 
 All,
 The tomcat-4.1.18.exe installs perfectly as a service
 on my NT 4 box, starts up tomcat service happily, and
 immediately responds on port 8080 with the example
 servlets.
 Then within a minute or two, it stops responding
 completely - just hangs with no output anywhere.
 
 If I startup using the bat files in DOS, everything
 runs fine.
 Any ideas ?
 Thanks,
 Andy
 
 
 
 __
 Yahoo! Plus
 For a better Internet experience
 http://www.yahoo.co.uk/btoffer
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

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



Multiple coyote jk2 connectors?

2003-04-01 Thread Quinton McCombs
How do you configure two coyote jk2 connectors on the same server?  I
have tried assigning different ports for each one but they both take the
port specified in jk2.properties.  Is it possible to define multiple
ports in jk2.properties?Is there some setting for the connector to
specify the properties file?


Quinton McCombs
NequalsOne - HealthCare marketing tools
mailto:[EMAIL PROTECTED]
http://www.NequalsOne.com 


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



Re: Form Auth

2003-04-01 Thread Nelson Brito
Hi,
I'm very new with tomcat and perhaps this question is a bit too
dumb... but i'd like to know if i can still use apache as my web
server, and load some sort of a tomcat module to serv my jsp??
like i do with php...
i can't find any doc about this on the manual :-(

Thank you very much,
nb

Nelson de Brito
Dept. de Quimica  |
Fac. de Ciencias do Porto | tel. +351226082841
R. do Campo Alegre| fax. +351226082959
4169-007 Porto|


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



Re: OT: PreparedStatement with dynamic parameter list

2003-04-01 Thread John Turner
The SQL parameter passed to java.sql.Connection.preparedStatement() is a 
String.  You can write whatever logic you want to build that string, 
including counting the number of arguments obtained from somewhere else and 
building the right number of placeholders accordingly.  Probably won't be 
very elegant, but certainly possible.

John

On Tue, 1 Apr 2003 10:36:14 -0500, Chakravarthy, Sundar 
[EMAIL PROTECTED] wrote:

Has anyone constructed a PreparedStatement where the number of ?s ( i.e
bind variables ) is unknown at compile time  ?
Is there any support of that in JDBC ?

Thanks

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



--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: OT: PreparedStatement with dynamic parameter list

2003-04-01 Thread Larry Meadors
Here are a couple of options for this:

The open-source ibatis database framework (www.ibatis.com) lets you do
this.

Another home-grown solution would be to create a StringBuffer for your
SQL, and a map for the parameters. Then you can prepare the statement,
and iterate through the map setting the parameters.

Larry

 [EMAIL PROTECTED] 04/01/03 08:37 AM 

Has anyone constructed a PreparedStatement where the number of ?s ( i.e
bind variables ) is unknown at compile time  ?


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



JNDI browser

2003-04-01 Thread Mark.Gargan
Hi there,
  There's a jndi-browser available for jboss3.x. I was wondering
if it was application to tomcat 4.x as well? If not is there a jndi
browser available?
 
Thanks,
Mark.
 


RE: Tomcat Crush

2003-04-01 Thread Gregory Rouchotas
I don't think so. I have monitored the Catalina_log while stopping the
request of completely closing the window but the exception did not
appear.
If it is that is there anything I can do to prevent tomcat from
crushing?
Could it be something else?

Thanks

Greg


-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: 01 April 2003 15:35
To: Tomcat Users List
Subject: RE: Tomcat Crush


Howdy,
There's always a specific reason ;)  It's hardly ever obvious,
unfortunately.

In this case, could it be because the client closes the browser or goes
to another web page while the request to your site is processing?


Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Gregory Rouchotas [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 01, 2003 8:24 AM
To: [EMAIL PROTECTED]
Subject: Tomcat Crush

Hello all,
I am running tomcat 4.0.4 on solaris8.

I get a very strange problem where with no specific reason tomcat
produces the following error
In the Catalina_log:

2003-04-01 19:12:54 Ajp13Processor[8009][9] process: invoke
java.net.SocketException: Socket closed
at java.net.SocketOutputStream.socketWrite0(Native Method)
at
java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
at
java.net.SocketOutputStream.write(SocketOutputStream.java:126)
at org.apache.ajp.Ajp13.send(Ajp13.java:525)
at
org.apache.ajp.RequestHandler.finish(RequestHandler.java:495)
at org.apache.ajp.Ajp13.finish(Ajp13.java:395)
at
org.apache.ajp.tomcat4.Ajp13Response.finishResponse(Ajp13Response.java:
1
96)
at
org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:464)
at
org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:551)
at java.lang.Thread.run(Thread.java:536)

This continues for sometime. The system has about 300 concurrent users
at any given time.
The after about 8 hours tomcat will crush.

Any ideas what might be causing this.
Thanks in advance,

Greg



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


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




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



Re: Form Auth

2003-04-01 Thread Michael D. Kirkpatrick
Search for mod_jk

It is rather easy to setup.  You run your apache web server on port 80
(default).
You run Tomcat on port 8080 (default).
You use mod_jk to define *.do and *.jsp to be served with Tomcat.
Note: Tomcat's home directory is different then Apache's.  You will have
to play with some settings or create aliases.

Nelson Brito wrote:

 Hi,
 I'm very new with tomcat and perhaps this question is a bit too
 dumb... but i'd like to know if i can still use apache as my web
 server, and load some sort of a tomcat module to serv my jsp??
 like i do with php...
 i can't find any doc about this on the manual :-(

 Thank you very much,
 nb

 Nelson de Brito
 Dept. de Quimica  |
 Fac. de Ciencias do Porto | tel. +351226082841
 R. do Campo Alegre| fax. +351226082959
 4169-007 Porto|

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


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



RE: Tomcat Crush

2003-04-01 Thread Shapira, Yoav

Howdy,
As you can see from the stack trace, the exception is from the AJP
connector, not from tomcat internally.  I also wouldn't qualify this as
a tomcat crash (and certainly not as a crush ;)) because the JVM doesn't
stop and the server responds to further requests.

Until you can reliably reproduce this, you're not likely to be able to
stop it...

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Gregory Rouchotas [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 01, 2003 10:46 AM
To: 'Tomcat Users List'
Subject: RE: Tomcat Crush

I don't think so. I have monitored the Catalina_log while stopping the
request of completely closing the window but the exception did not
appear.
If it is that is there anything I can do to prevent tomcat from
crushing?
Could it be something else?

Thanks

Greg


-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: 01 April 2003 15:35
To: Tomcat Users List
Subject: RE: Tomcat Crush


Howdy,
There's always a specific reason ;)  It's hardly ever obvious,
unfortunately.

In this case, could it be because the client closes the browser or goes
to another web page while the request to your site is processing?


Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Gregory Rouchotas [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 01, 2003 8:24 AM
To: [EMAIL PROTECTED]
Subject: Tomcat Crush

Hello all,
I am running tomcat 4.0.4 on solaris8.

I get a very strange problem where with no specific reason tomcat
produces the following error
In the Catalina_log:

2003-04-01 19:12:54 Ajp13Processor[8009][9] process: invoke
java.net.SocketException: Socket closed
at java.net.SocketOutputStream.socketWrite0(Native Method)
at
java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
at
java.net.SocketOutputStream.write(SocketOutputStream.java:126)
at org.apache.ajp.Ajp13.send(Ajp13.java:525)
at
org.apache.ajp.RequestHandler.finish(RequestHandler.java:495)
at org.apache.ajp.Ajp13.finish(Ajp13.java:395)
at
org.apache.ajp.tomcat4.Ajp13Response.finishResponse(Ajp13Response.java
:
1
96)
at
org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:464)
at
org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:551)
at java.lang.Thread.run(Thread.java:536)

This continues for sometime. The system has about 300 concurrent users
at any given time.
The after about 8 hours tomcat will crush.

Any ideas what might be causing this.
Thanks in advance,

Greg



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


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




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




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


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



thank you

2003-04-01 Thread Nelson Brito
Thank you very much!

nelson

On Tue, 1 Apr 2003, Michael D. Kirkpatrick wrote:

 Search for mod_jk

Nelson de Brito
Dept. de Quimica  |
Fac. de Ciencias do Porto | tel. +351226082841
R. do Campo Alegre| fax. +351226082959
4169-007 Porto|


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



Re: Single sign on problem!!

2003-04-01 Thread Madhavi Thottempudi
Hi Gabriel!

But :
I'm using the 4.1.24 (because of some bug in realm authentication) and i
use realm with the sso and 2 servlets and it work.
SSO still doesn't work for me, even on Tomcat 4.1.24
Obviously I am doing something wrong either in my configuration file or
in the way I access them.
If it doesn't work with that i can give you a part of my configuration
in private.
Can you pls send me an example of how you did it. My email id is 
[EMAIL PROTECTED]
Thanks for your time and help!!
- M

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


RE: Tomcat Crush

2003-04-01 Thread Gregory Rouchotas
I agree with all this but the end result is that for some reason the
Tomcat process dies after a certain amount of time that these exceptions
happen. Give that as you say it looks like the connector is causing this
what can I do to stop it from happening? Could it be the version of the
connector? If not what else might it be?

Thanks

Greg

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: 01 April 2003 17:06
To: Tomcat Users List
Subject: RE: Tomcat Crush


Howdy,
As you can see from the stack trace, the exception is from the AJP
connector, not from tomcat internally.  I also wouldn't qualify this as
a tomcat crash (and certainly not as a crush ;)) because the JVM doesn't
stop and the server responds to further requests.

Until you can reliably reproduce this, you're not likely to be able to
stop it...

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Gregory Rouchotas [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 01, 2003 10:46 AM
To: 'Tomcat Users List'
Subject: RE: Tomcat Crush

I don't think so. I have monitored the Catalina_log while stopping the
request of completely closing the window but the exception did not
appear.
If it is that is there anything I can do to prevent tomcat from
crushing?
Could it be something else?

Thanks

Greg


-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: 01 April 2003 15:35
To: Tomcat Users List
Subject: RE: Tomcat Crush


Howdy,
There's always a specific reason ;)  It's hardly ever obvious,
unfortunately.

In this case, could it be because the client closes the browser or goes
to another web page while the request to your site is processing?


Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Gregory Rouchotas [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 01, 2003 8:24 AM
To: [EMAIL PROTECTED]
Subject: Tomcat Crush

Hello all,
I am running tomcat 4.0.4 on solaris8.

I get a very strange problem where with no specific reason tomcat
produces the following error
In the Catalina_log:

2003-04-01 19:12:54 Ajp13Processor[8009][9] process: invoke
java.net.SocketException: Socket closed
at java.net.SocketOutputStream.socketWrite0(Native Method)
at
java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
at
java.net.SocketOutputStream.write(SocketOutputStream.java:126)
at org.apache.ajp.Ajp13.send(Ajp13.java:525)
at
org.apache.ajp.RequestHandler.finish(RequestHandler.java:495)
at org.apache.ajp.Ajp13.finish(Ajp13.java:395)
at
org.apache.ajp.tomcat4.Ajp13Response.finishResponse(Ajp13Response.java
:
1
96)
at
org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:464)
at
org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:551)
at java.lang.Thread.run(Thread.java:536)

This continues for sometime. The system has about 300 concurrent users
at any given time.
The after about 8 hours tomcat will crush.

Any ideas what might be causing this.
Thanks in advance,

Greg



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


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




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




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


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




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



RE: Tomcat Crush

2003-04-01 Thread Shapira, Yoav

Howdy,
Perhaps it is worth your time to try a different connector.  But I think
it's more worth your time to be able to reproduce this consistently.
Have you searched Bugzilla for related bugs?

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Gregory Rouchotas [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 01, 2003 11:13 AM
To: 'Tomcat Users List'
Subject: RE: Tomcat Crush

I agree with all this but the end result is that for some reason the
Tomcat process dies after a certain amount of time that these
exceptions
happen. Give that as you say it looks like the connector is causing
this
what can I do to stop it from happening? Could it be the version of the
connector? If not what else might it be?

Thanks

Greg

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: 01 April 2003 17:06
To: Tomcat Users List
Subject: RE: Tomcat Crush


Howdy,
As you can see from the stack trace, the exception is from the AJP
connector, not from tomcat internally.  I also wouldn't qualify this as
a tomcat crash (and certainly not as a crush ;)) because the JVM
doesn't
stop and the server responds to further requests.

Until you can reliably reproduce this, you're not likely to be able to
stop it...

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Gregory Rouchotas [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 01, 2003 10:46 AM
To: 'Tomcat Users List'
Subject: RE: Tomcat Crush

I don't think so. I have monitored the Catalina_log while stopping the
request of completely closing the window but the exception did not
appear.
If it is that is there anything I can do to prevent tomcat from
crushing?
Could it be something else?

Thanks

Greg


-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: 01 April 2003 15:35
To: Tomcat Users List
Subject: RE: Tomcat Crush


Howdy,
There's always a specific reason ;)  It's hardly ever obvious,
unfortunately.

In this case, could it be because the client closes the browser or
goes
to another web page while the request to your site is processing?


Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Gregory Rouchotas [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 01, 2003 8:24 AM
To: [EMAIL PROTECTED]
Subject: Tomcat Crush

Hello all,
I am running tomcat 4.0.4 on solaris8.

I get a very strange problem where with no specific reason tomcat
produces the following error
In the Catalina_log:

2003-04-01 19:12:54 Ajp13Processor[8009][9] process: invoke
java.net.SocketException: Socket closed
at java.net.SocketOutputStream.socketWrite0(Native Method)
at
java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
at
java.net.SocketOutputStream.write(SocketOutputStream.java:126)
at org.apache.ajp.Ajp13.send(Ajp13.java:525)
at
org.apache.ajp.RequestHandler.finish(RequestHandler.java:495)
at org.apache.ajp.Ajp13.finish(Ajp13.java:395)
at
org.apache.ajp.tomcat4.Ajp13Response.finishResponse(Ajp13Response.jav
a
:
1
96)
at
org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:464
)
at
org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:551)
at java.lang.Thread.run(Thread.java:536)

This continues for sometime. The system has about 300 concurrent
users
at any given time.
The after about 8 hours tomcat will crush.

Any ideas what might be causing this.
Thanks in advance,

Greg



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


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




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




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


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




-
To unsubscribe, e-mail: [EMAIL 

Deployment trouble: Directory Listing For /

2003-04-01 Thread Philip S. Wachtel
Hi there,

I just joined the list, so if this question has been asked recently, please
forgive me.

I'm using Tomcat 4.1 on Redhat 7.3.  I know that the server is working as
the admin application seems to work, although it mangles the server.xml file
pretty good.

The trouble I'm having is that although I can see that my servlet is
deployed, I can't make the mapping work.  I know the servelt is deployed
because debugging information in the init() method is showing up in the
logs.

When I go to the url: http://myserver.com:8080/news?rdfFileName=healthcare

I just get: Directory Listing For / ... with no files in the list.

(Note: When I press enter, the browser replaces the url with almost the same
on, but with an extra slash:
http://nagios.cnsmail.com:8080/news/?rdfFileName=moreover_healthcare)

The log shows:
2003-04-01 11:18:09 StandardContext[/news]: Mapping contextPath='/news' with
requestURI='/news/' and relativeURI='/'
2003-04-01 11:18:09 StandardContext[/news]:   Trying exact match
2003-04-01 11:18:09 StandardContext[/news]:   Trying prefix match
2003-04-01 11:18:09 StandardContext[/news]:   Trying extension match
2003-04-01 11:18:09 StandardContext[/news]:   Trying default match
2003-04-01 11:18:09 StandardContext[/news]:  Mapped to servlet 'default'
with servlet path '/' and path info 'null' and update=true

I did not add any special config in the server.xml file -- only in the
web.xml file in the WEB-INF dir:
?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-nameNews Feed/display-name
  description
News Feed Application
  /description

  !-- Action Servlet Configuration --
  servlet
servlet-namenews/servlet-name
servlet-class
  philservlet.PhilServlet
/servlet-class

load-on-startup2/load-on-startup
  /servlet

  !-- Action Servlet Mapping --
  servlet-mapping
servlet-namenews/servlet-name
url-pattern/news/url-pattern
  /servlet-mapping
/web-app


Why, oh, why is this happening?
I appreciate your suggestions.

Regards,
Philip


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



RE: Deployment trouble: Directory Listing For /

2003-04-01 Thread Alberto A C A S Magalhães
**
Este email assim como os ficheiros que possa ter em anexo são confidenciais
e para uso exclusivo da pessoa ou organização para o qual foi enviado.
Se recebeu este email por engano por favor notifique [EMAIL PROTECTED]

Esta nota confirma que esta mensagem foi verificada pelo MIMEsweeper
não tendo sido encontrados virus.

www.mimesweeper.com
***

Do u have defined your servlet in web.xml of news context?

-Original Message-
From: Philip S. Wachtel [mailto:[EMAIL PROTECTED] 
Sent: terça-feira, 1 de Abril de 2003 17:29
To: Tomcat Users List
Subject: Deployment trouble: Directory Listing For /

Hi there,

I just joined the list, so if this question has been asked recently, please
forgive me.

I'm using Tomcat 4.1 on Redhat 7.3.  I know that the server is working as
the admin application seems to work, although it mangles the server.xml file
pretty good.

The trouble I'm having is that although I can see that my servlet is
deployed, I can't make the mapping work.  I know the servelt is deployed
because debugging information in the init() method is showing up in the
logs.

When I go to the url: http://myserver.com:8080/news?rdfFileName=healthcare

I just get: Directory Listing For / ... with no files in the list.

(Note: When I press enter, the browser replaces the url with almost the same
on, but with an extra slash:
http://nagios.cnsmail.com:8080/news/?rdfFileName=moreover_healthcare)

The log shows:
2003-04-01 11:18:09 StandardContext[/news]: Mapping contextPath='/news' with
requestURI='/news/' and relativeURI='/'
2003-04-01 11:18:09 StandardContext[/news]:   Trying exact match
2003-04-01 11:18:09 StandardContext[/news]:   Trying prefix match
2003-04-01 11:18:09 StandardContext[/news]:   Trying extension match
2003-04-01 11:18:09 StandardContext[/news]:   Trying default match
2003-04-01 11:18:09 StandardContext[/news]:  Mapped to servlet 'default'
with servlet path '/' and path info 'null' and update=true

I did not add any special config in the server.xml file -- only in the
web.xml file in the WEB-INF dir:
?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-nameNews Feed/display-name
  description
News Feed Application
  /description

  !-- Action Servlet Configuration --
  servlet
servlet-namenews/servlet-name
servlet-class
  philservlet.PhilServlet
/servlet-class

load-on-startup2/load-on-startup
  /servlet

  !-- Action Servlet Mapping --
  servlet-mapping
servlet-namenews/servlet-name
url-pattern/news/url-pattern
  /servlet-mapping
/web-app


Why, oh, why is this happening?
I appreciate your suggestions.

Regards,
Philip


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

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



tomcat IIS configuration please help

2003-04-01 Thread Warren Sweetman
can anybody assist in the configuration of the isapi_connector2.dll and =
associated files.  My configuration is as follows

W2k
Tomcat 4.1.18
IIS=20
isapi_redirector2.dll

I cant get request for jsps or servlets to be forwarded by IIS to tomcat =
for some reason.  It seems that the dll is not being loaded.

jk2.properties :

# THIS FILE MAY BE OVERRIDEN AT RUNTIME. MAKE SURE TOMCAT IS STOPED
## WHEN YOU EDIT THE FILE.

## COMMENTS WILL BE _LOST_

## DOCUMENTATION OF THE FORMAT IN JkMain javadoc.

# Set the desired handler list
 handler.list=3Dapr,request,channelJni
#
# Override the default port for the socketChannel
 channelSocket.port=3D8019
# Default:=20
 channelUnix.file=3D${jkHome}/work/jk2.socket
# Just to check if the the config  is working
 shm.file=3D${jkHome}/work/jk2.shm

# In order to enable jni use any channelJni directive
 channelJni.disabled =3D 0
# And one of the following directives:

 apr.jniModeSo=3D/opt/apache2/modules/mod_jk2.so

# If set to inprocess the mod_jk2 will Register natives itself
# This will enable the starting of the Tomcat from mod_jk2
 apr.jniModeSo=3Dinprocess

woker2.properties

# Define the communication channel
[channel.socket:localhost:8009]
info=3DAjp13 forwarding over socket
tomcatId=3Dlocalhost:8009


# define the worker
[ajp13:localhost:8009]
channel=3Dchannel.socket:localhost:8009


# Uri mapping. This says that any incoming connection to any file
# under /jetty/ should be handled the worker defined above

[uri:/*.jsp]
worker=3Dajp13:localhost:8009

[uri:/servlet/*]
worker=3Dajp13:localhost:8009


I also get the following in stdout.log

Bootstrap: Create Catalina server
Bootstrap: Starting service
ServerLifecycleListener: createMBeans: MBeanException
java.lang.Exception: ManagedBean is not found with Ajp13Connector
at org.apache.catalina.mbeans.MBeanUtils.createMBean(MBeanUtils.jav=
a:224)
at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(=
ServerLifecycleListener.java:369)
at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(=
ServerLifecycleListener.java:777)
at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(=
ServerLifecycleListener.java:751)
at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(=
ServerLifecycleListener.java:339)
at org.apache.catalina.mbeans.ServerLifecycleListener.lifecycleEven=
t(ServerLifecycleListener.java:206)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lif=
ecycleSupport.java:166)
at org.apache.catalina.core.StandardServer.start(StandardServer.jav=
a:2182)
at org.apache.catalina.startup.CatalinaService.start(CatalinaServic=
e.java:273)
at java.lang.reflect.Method.invoke(Native Method)
at org.apache.catalina.startup.BootstrapService.start(BootstrapServ=
ice.java:245)
at org.apache.catalina.startup.BootstrapService.main(BootstrapServi=
ce.java:307)
Starting service Tomcat-Standalone
Apache Tomcat/4.1.18
Bootstrap: Service started


but everything seems ok in the catalina log

2003-04-01 16:58:04 Ajp13Connector[8009] Opening server socket on all host =
IP addresses
2003-04-01 16:58:04 Ajp13Connector[8009] Starting background thread
2003-04-01 16:58:04 Ajp13Processor[8009][0] Starting background thread
2003-04-01 16:58:04 Ajp13Processor[8009][1] Starting background thread
2003-04-01 16:58:04 Ajp13Processor[8009][2] Starting background thread
2003-04-01 16:58:04 Ajp13Processor[8009][3] Starting background thread
2003-04-01 16:58:04 Ajp13Processor[8009][4] Starting background thread




PLEASE HELP

kind regards,

Warren Sweetman
Principal Web Developer
Web Development
ISD
Legal Services Commission
tel. 020 77590122
ext no 2122
tag no 011370


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

JSP pages will not work for me. Please help

2003-04-01 Thread Donie Kelly
Hi all, I posted this earlier and no response and I've been looking at it
ever since to no avail. I have two machines behind a load balancer ant he
jsp pages work on one and not the other. Both machine use the same release
of software for both jdk and tomcat and our application is identical on both
machine.
 
Something is obviously different on the non-working machine but as you can
see the exception is not too helpful.
 
Please cast an over it if you have time and maybe you can see something I'm
missing.
 
StandardContext[]: Servlet  threw load() exception
javax.servlet.ServletException: Servlet.init() for servlet jsp threw
exception
at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:871)
at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:
3267)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3384)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
at
org.apache.catalina.core.StandardHost.start(StandardHost.java:612)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:307)
at
org.apache.catalina.core.StandardService.start(StandardService.java:388)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:505)
at org.apache.catalina.startup.Catalina.start(Catalina.java:776)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
- Root Cause -
java.lang.ClassCastException
at
javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilderFactory.
java:93)
at
org.apache.jasper.parser.ParserUtils.parseXMLDocument(ParserUtils.java:183)
at
org.apache.jasper.compiler.TldLocationsCache.processWebDotXml(TldLocationsCa
che.java:165)
at
org.apache.jasper.compiler.TldLocationsCache.init(TldLocationsCache.java:1
38)
at
org.apache.jasper.EmbededServletOptions.init(EmbededServletOptions.java:32
4)
at org.apache.jasper.servlet.JspServlet.init(JspServlet.java:266)
at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:852)
at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:
3267)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3384)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
at
org.apache.catalina.core.StandardHost.start(StandardHost.java:612)
 
Thanks
Donie


RE: tomcat IIS configuration please help

2003-04-01 Thread Alberto A C A S Magalhães
**
Este email assim como os ficheiros que possa ter em anexo são confidenciais
e para uso exclusivo da pessoa ou organização para o qual foi enviado.
Se recebeu este email por engano por favor notifique [EMAIL PROTECTED]

Esta nota confirma que esta mensagem foi verificada pelo MIMEsweeper
não tendo sido encontrados virus.

www.mimesweeper.com
***

Did you add entries to Registry?

-Original Message-
From: Warren Sweetman [mailto:[EMAIL PROTECTED] 
Sent: terça-feira, 1 de Abril de 2003 17:36
To: [EMAIL PROTECTED]
Subject: tomcat IIS configuration please help

can anybody assist in the configuration of the isapi_connector2.dll and =
associated files.  My configuration is as follows

W2k
Tomcat 4.1.18
IIS=20
isapi_redirector2.dll

I cant get request for jsps or servlets to be forwarded by IIS to tomcat =
for some reason.  It seems that the dll is not being loaded.

jk2.properties :

# THIS FILE MAY BE OVERRIDEN AT RUNTIME. MAKE SURE TOMCAT IS STOPED
## WHEN YOU EDIT THE FILE.

## COMMENTS WILL BE _LOST_

## DOCUMENTATION OF THE FORMAT IN JkMain javadoc.

# Set the desired handler list
 handler.list=3Dapr,request,channelJni
#
# Override the default port for the socketChannel
 channelSocket.port=3D8019
# Default:=20
 channelUnix.file=3D${jkHome}/work/jk2.socket
# Just to check if the the config  is working
 shm.file=3D${jkHome}/work/jk2.shm

# In order to enable jni use any channelJni directive
 channelJni.disabled =3D 0
# And one of the following directives:

 apr.jniModeSo=3D/opt/apache2/modules/mod_jk2.so

# If set to inprocess the mod_jk2 will Register natives itself
# This will enable the starting of the Tomcat from mod_jk2
 apr.jniModeSo=3Dinprocess

woker2.properties

# Define the communication channel
[channel.socket:localhost:8009]
info=3DAjp13 forwarding over socket
tomcatId=3Dlocalhost:8009


# define the worker
[ajp13:localhost:8009]
channel=3Dchannel.socket:localhost:8009


# Uri mapping. This says that any incoming connection to any file
# under /jetty/ should be handled the worker defined above

[uri:/*.jsp]
worker=3Dajp13:localhost:8009

[uri:/servlet/*]
worker=3Dajp13:localhost:8009


I also get the following in stdout.log

Bootstrap: Create Catalina server
Bootstrap: Starting service
ServerLifecycleListener: createMBeans: MBeanException
java.lang.Exception: ManagedBean is not found with Ajp13Connector
at org.apache.catalina.mbeans.MBeanUtils.createMBean(MBeanUtils.jav=
a:224)
at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(=
ServerLifecycleListener.java:369)
at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(=
ServerLifecycleListener.java:777)
at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(=
ServerLifecycleListener.java:751)
at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(=
ServerLifecycleListener.java:339)
at org.apache.catalina.mbeans.ServerLifecycleListener.lifecycleEven=
t(ServerLifecycleListener.java:206)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lif=
ecycleSupport.java:166)
at org.apache.catalina.core.StandardServer.start(StandardServer.jav=
a:2182)
at org.apache.catalina.startup.CatalinaService.start(CatalinaServic=
e.java:273)
at java.lang.reflect.Method.invoke(Native Method)
at org.apache.catalina.startup.BootstrapService.start(BootstrapServ=
ice.java:245)
at org.apache.catalina.startup.BootstrapService.main(BootstrapServi=
ce.java:307)
Starting service Tomcat-Standalone
Apache Tomcat/4.1.18
Bootstrap: Service started


but everything seems ok in the catalina log

2003-04-01 16:58:04 Ajp13Connector[8009] Opening server socket on all host =
IP addresses
2003-04-01 16:58:04 Ajp13Connector[8009] Starting background thread
2003-04-01 16:58:04 Ajp13Processor[8009][0] Starting background thread
2003-04-01 16:58:04 Ajp13Processor[8009][1] Starting background thread
2003-04-01 16:58:04 Ajp13Processor[8009][2] Starting background thread
2003-04-01 16:58:04 Ajp13Processor[8009][3] Starting background thread
2003-04-01 16:58:04 Ajp13Processor[8009][4] Starting background thread




PLEASE HELP

kind regards,

Warren Sweetman
Principal Web Developer
Web Development
ISD
Legal Services Commission
tel. 020 77590122
ext no 2122
tag no 011370



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



RE: Deployment trouble: Directory Listing For /

2003-04-01 Thread Shapira, Yoav

Howdy,
Is the web.xml you quoted in the ROOT context or in your own context?
The url-pattern in web.xml is relative to the context root.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Philip S. Wachtel [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 01, 2003 11:29 AM
To: Tomcat Users List
Subject: Deployment trouble: Directory Listing For /

Hi there,

I just joined the list, so if this question has been asked recently,
please
forgive me.

I'm using Tomcat 4.1 on Redhat 7.3.  I know that the server is working
as
the admin application seems to work, although it mangles the server.xml
file
pretty good.

The trouble I'm having is that although I can see that my servlet is
deployed, I can't make the mapping work.  I know the servelt is
deployed
because debugging information in the init() method is showing up in the
logs.

When I go to the url:
http://myserver.com:8080/news?rdfFileName=healthcare

I just get: Directory Listing For / ... with no files in the list.

(Note: When I press enter, the browser replaces the url with almost the
same
on, but with an extra slash:
http://nagios.cnsmail.com:8080/news/?rdfFileName=moreover_healthcare)

The log shows:
2003-04-01 11:18:09 StandardContext[/news]: Mapping contextPath='/news'
with
requestURI='/news/' and relativeURI='/'
2003-04-01 11:18:09 StandardContext[/news]:   Trying exact match
2003-04-01 11:18:09 StandardContext[/news]:   Trying prefix match
2003-04-01 11:18:09 StandardContext[/news]:   Trying extension match
2003-04-01 11:18:09 StandardContext[/news]:   Trying default match
2003-04-01 11:18:09 StandardContext[/news]:  Mapped to servlet
'default'
with servlet path '/' and path info 'null' and update=true

I did not add any special config in the server.xml file -- only in the
web.xml file in the WEB-INF dir:
?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-nameNews Feed/display-name
  description
News Feed Application
  /description

  !-- Action Servlet Configuration --
  servlet
servlet-namenews/servlet-name
servlet-class
  philservlet.PhilServlet
/servlet-class

load-on-startup2/load-on-startup
  /servlet

  !-- Action Servlet Mapping --
  servlet-mapping
servlet-namenews/servlet-name
url-pattern/news/url-pattern
  /servlet-mapping
/web-app


Why, oh, why is this happening?
I appreciate your suggestions.

Regards,
Philip


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




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


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



Re: Form Auth

2003-04-01 Thread Jeff Tulley
I just found out that this is a known problem with the Coyote
connectors, both the HTTP connector and the JkHandler connector.
There is some code not implemented or something, and there is already a
bug report in bugzilla.

To verify if we are talking about the same thing, go back to using an
old non-Coyote connector and see if your form parameters
are preserved across the login.

This really needs to be fixed.  You can vote on the bug, it is #10229

Jeff Tulley  ([EMAIL PROTECTED])
(801)861-5322
Novell, Inc., The Leading Provider of Net Business Solutions
http://www.novell.com

 [EMAIL PROTECTED] 4/1/03 8:40:36 AM 
It returns null.

I noticed that it places all the POST/GET information into a session to
be
re-submitted to the actual page after successful login.  Know of a way
that I can
access the session information to extract a specific string in it?



Henning Heil wrote:

 Hi Michael,

  Michael D. Kirkpatrick wrote on 01.04.2003 17:05 

 I am not quite sure if this question is suitable for this mailing
list.  If
 not, please forgive me.
 
 [snip]
 
 So here is my question.  How can I capture the original query string
or make
 the query string in web.xml dynamic?
 
 in general I would not recommend to set the string in the web.xml.
 first part of your question: you can read out any parameter of a post
or
 get string by request.getParameter(String parametername);
 second part: there are multiple ways to manipulate the request
 parameters: java - request.setAttribute(String attributename,
String
 value); or by hidden fields in html forms or with select-fields
which
 are submitted . . .

 I would suggest:

 read out the site the user is coming from with

 String mysite = request.getParameter(site);

 (of course you have to add this to the string somewhere on the
original
 page)

 write it to newly generated links:

 out.println(passwordsubmitter.jsp?site= + mysite);

 or sth like this . . .

 I am also looking for mailing lists for the following:
 Struts Questions
 
 there's one on the apache.org site I think - struts  . . .

 General Java Questions
 J2EE Questions
 
 no mailing but extremely cool  helpful people there and also
mailing
 mechanisms to keep track of your threads:
 http://forums.java.sun.com/ 

 If anyone can point me in the right direction, it would be greatly
 appreciated.
 
 Thanks in advance.
 
 
 Have fun,

 Henning


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



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


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



RE: DataSource misconfigured?

2003-04-01 Thread Steve Gums
Thanks Jacob!
My problem was an unsuccessful close on one of my major servlets.  Just a
lame oversight on my part that caused a large headache.  So for everyone
else...REMEMBER to close your connections!

Steve

-Original Message-
From: Jacob Kjome [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 01, 2003 7:39 AM
To: Tomcat Users List
Subject: Re: DataSource misconfigured?



Are you using a finally bock to close your connections?  You might be
reaching the maximum connections allowed in the pool for DBCP.  Please
provide an example of a query statement where you do try/catch/finally.  If
you are not checking if your connections are not null and then making a
last ditch attempt to close them in the finally block, then that may very
well be the problem.

Also, your URL should have ?autoReconnect=true appended to the url
value since you are using MySQL.

Jake

At 10:29 PM 3/31/2003 -0700, you wrote:
Hello Again Everyone! I know I have already sent out a message or three
about this, but I need to resolve it pretty quickly.  I found a work
around,
but I would like a sanity check from those of you who really understand
this
stuff.  I included a method that I wrote to get Connections, You can see
the
old and the new along side each other.  The manual method allows me to
query till the cows come home.. The Resource method gives me 12 DB hits
on
4.1.18 and 5 on 4.1.24 (tested on both solaris 8 and 9) before it appears
to
hang.  Oddly enough I can't pinpoint what is hanging because I have added
log statements to this method and it appears to be working.. but
substituting those two lines below removes the issue, so I believe it is
returning an invalid connection or something that I don't understand.

Thanks for any time spent on reading this!

/ Method Start /
public static Connection getConnection () throws Exception {

   Connection connection;
   try {
  /*** Old Version
  Context ctx = new InitialContext ();
  if ( ctx == null )
 throw new Exception (No Context);
  DataSource ds;
  ds = (DataSource)ctx.lookup (java:comp/env/jdbc/CIHDB);
  if ( ds != null )
   connection = ds.getConnection();
  else {
return null;
  }//end of else
   End of old version */
  Class.forName (com.mysql.jdbc.Driver).newInstance();
  connection = DriverManager.getConnection (
   jdbc:mysql://localhost/cih,
   User,PassWord);
   }//end of try
   catch ( Exception e ) {
  throw (e);
   }//end of catch
   return connection;
}//end getConnection

/* Web.xml definition
resource-ref
   description
  Resource reference to a factory for java.sql.Connection
  instance that may be used for talking to a particular
  database that is configured in the server.xml file
   /description
   res-ref-namejdbc/CIHDB/res-ref-name
   res-typejavax.sql.DataSource/res-type
   res-authContainer/res-auth
/resource-ref

/** server.xml
 Context path=/cih docBase=cih debug=0
  reloadable=true crossContext=true

Logger className=org.apache.catalina.logger.FileLogger
prefix=localhost_CIH. suffix=.txt
timestamp=true/

Resource name=jdbc/CIHDB
  auth=Container
  type=javax.sql.DataSource/

ResourceParams name=jdbc/CIHDB
   parameter
  namefactory/name

valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
   /parameter
   parameter
  nameusername/name
  valueUser/value
   /parameter
   parameter
  namepassword/name
  valuePassword/value
   /parameter
   parameter
  namedriverClassName/name
  valuecom.mysql.jdbc.Driver/value
   /parameter
   parameter
  nameurl/name
  valuejdbc:mysql://localhost/cih/value
   /parameter
   parameter
  nameremoveAdandoned/name
  valuetrue/value
   /parameter
   parameter
  nameremoveAdandonedTimeout/name
  value120/value
   /parameter
   parameter
  nameMaxActive/name
  value50/value
   /parameter
   parameter
  nameMaxIdle/name
  value10/value
   /parameter
   parameter
  nameMaxWait/name
  value200/value
   /parameter
/ResourceParams
   /Context

Steve Gums



RE: tomcat IIS configuration please help

2003-04-01 Thread Warren Sweetman
Yes I have spent a few hrs checking up that I had done what I was supposed to do.   I 
have followed the small bits of instruction that I could find but no joy.  que 
chingadera.  I have connected apache to tomcat on a number of occassions without 
problem.  Its just when I get to IIS that the problems start arising 

kind regards,

Warren Sweetman
Principal Web Developer
Web Development
ISD
Legal Services Commission
tel. 020 77590122
ext no 2122
tag no 011370

 [EMAIL PROTECTED] 01/04/2003 17:32:23 
**
Este email assim como os ficheiros que possa ter em anexo são confidenciais
e para uso exclusivo da pessoa ou organização para o qual foi enviado.
Se recebeu este email por engano por favor notifique [EMAIL PROTECTED] 

Esta nota confirma que esta mensagem foi verificada pelo MIMEsweeper
não tendo sido encontrados virus.

www.mimesweeper.com 
***

Did you add entries to Registry?

-Original Message-
From: Warren Sweetman [mailto:[EMAIL PROTECTED] 
Sent: terça-feira, 1 de Abril de 2003 17:36
To: [EMAIL PROTECTED] 
Subject: tomcat IIS configuration please help

can anybody assist in the configuration of the isapi_connector2.dll and =
associated files.  My configuration is as follows

W2k
Tomcat 4.1.18
IIS=20
isapi_redirector2.dll

I cant get request for jsps or servlets to be forwarded by IIS to tomcat =
for some reason.  It seems that the dll is not being loaded.

jk2.properties :

# THIS FILE MAY BE OVERRIDEN AT RUNTIME. MAKE SURE TOMCAT IS STOPED
## WHEN YOU EDIT THE FILE.

## COMMENTS WILL BE _LOST_

## DOCUMENTATION OF THE FORMAT IN JkMain javadoc.

# Set the desired handler list
 handler.list=3Dapr,request,channelJni
#
# Override the default port for the socketChannel
 channelSocket.port=3D8019
# Default:=20
 channelUnix.file=3D${jkHome}/work/jk2.socket
# Just to check if the the config  is working
 shm.file=3D${jkHome}/work/jk2.shm

# In order to enable jni use any channelJni directive
 channelJni.disabled =3D 0
# And one of the following directives:

 apr.jniModeSo=3D/opt/apache2/modules/mod_jk2.so

# If set to inprocess the mod_jk2 will Register natives itself
# This will enable the starting of the Tomcat from mod_jk2
 apr.jniModeSo=3Dinprocess

woker2.properties

# Define the communication channel
[channel.socket:localhost:8009]
info=3DAjp13 forwarding over socket
tomcatId=3Dlocalhost:8009


# define the worker
[ajp13:localhost:8009]
channel=3Dchannel.socket:localhost:8009


# Uri mapping. This says that any incoming connection to any file
# under /jetty/ should be handled the worker defined above

[uri:/*.jsp]
worker=3Dajp13:localhost:8009

[uri:/servlet/*]
worker=3Dajp13:localhost:8009


I also get the following in stdout.log

Bootstrap: Create Catalina server
Bootstrap: Starting service
ServerLifecycleListener: createMBeans: MBeanException
java.lang.Exception: ManagedBean is not found with Ajp13Connector
at org.apache.catalina.mbeans.MBeanUtils.createMBean(MBeanUtils.jav=
a:224)
at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(=
ServerLifecycleListener.java:369)
at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(=
ServerLifecycleListener.java:777)
at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(=
ServerLifecycleListener.java:751)
at org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(=
ServerLifecycleListener.java:339)
at org.apache.catalina.mbeans.ServerLifecycleListener.lifecycleEven=
t(ServerLifecycleListener.java:206)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lif=
ecycleSupport.java:166)
at org.apache.catalina.core.StandardServer.start(StandardServer.jav=
a:2182)
at org.apache.catalina.startup.CatalinaService.start(CatalinaServic=
e.java:273)
at java.lang.reflect.Method.invoke(Native Method)
at org.apache.catalina.startup.BootstrapService.start(BootstrapServ=
ice.java:245)
at org.apache.catalina.startup.BootstrapService.main(BootstrapServi=
ce.java:307)
Starting service Tomcat-Standalone
Apache Tomcat/4.1.18
Bootstrap: Service started


but everything seems ok in the catalina log

2003-04-01 16:58:04 Ajp13Connector[8009] Opening server socket on all host =
IP addresses
2003-04-01 16:58:04 Ajp13Connector[8009] Starting background thread
2003-04-01 16:58:04 Ajp13Processor[8009][0] Starting background thread
2003-04-01 16:58:04 Ajp13Processor[8009][1] Starting background thread
2003-04-01 16:58:04 Ajp13Processor[8009][2] Starting background thread
2003-04-01 16:58:04 Ajp13Processor[8009][3] Starting background thread
2003-04-01 16:58:04 Ajp13Processor[8009][4] Starting background thread




PLEASE HELP

kind regards,

Warren Sweetman
Principal Web Developer
Web Development
ISD
Legal Services Commission
tel. 020 77590122
ext no 2122
tag no 011370




Seperate tomcats - one apache

2003-04-01 Thread Steve Harris
Hi all,

I'm having some fun with some applications supplied to us that may be
casuing a problem wiht each other, i.e. one application may be causing the
whole tocat environment to fail - thus affecting the others.

I'm toying with the idea of trying to run a signle apache but with
multiple tomcats - one per application. Does anyone have any views on this
?

Cheers - Steve


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



Re: Deployment trouble: Directory Listing For /

2003-04-01 Thread Philip S. Wachtel
Hi there,

Thanks for your help.

In the main server.xml file, I have only:
Context path= docBase=ROOT debug=0/
as a context.

I have a directory:
/var/tomcat4/webapps that contains news.xml
This file contains:
__
Context path=/news docBase=../server/webapps/news
debug=9 privileged=true

 Logger className=org.apache.catalina.logger.FileLogger
 prefix=news_log. suffix=.txt
  timestamp=true/

/Context


In ../server/webapps/news/WEB-INF, there's a file called web.xml, which is
included below.

Does this answer your question?

Thanks!
Philip

- Original Message -
From: Shapira, Yoav [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, April 01, 2003 11:40 AM
Subject: RE: Deployment trouble: Directory Listing For /



Howdy,
Is the web.xml you quoted in the ROOT context or in your own context?
The url-pattern in web.xml is relative to the context root.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Philip S. Wachtel [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 01, 2003 11:29 AM
To: Tomcat Users List
Subject: Deployment trouble: Directory Listing For /

Hi there,

I just joined the list, so if this question has been asked recently,
please
forgive me.

I'm using Tomcat 4.1 on Redhat 7.3.  I know that the server is working
as
the admin application seems to work, although it mangles the server.xml
file
pretty good.

The trouble I'm having is that although I can see that my servlet is
deployed, I can't make the mapping work.  I know the servelt is
deployed
because debugging information in the init() method is showing up in the
logs.

When I go to the url:
http://myserver.com:8080/news?rdfFileName=healthcare

I just get: Directory Listing For / ... with no files in the list.

(Note: When I press enter, the browser replaces the url with almost the
same
on, but with an extra slash:
http://nagios.cnsmail.com:8080/news/?rdfFileName=moreover_healthcare)

The log shows:
2003-04-01 11:18:09 StandardContext[/news]: Mapping contextPath='/news'
with
requestURI='/news/' and relativeURI='/'
2003-04-01 11:18:09 StandardContext[/news]:   Trying exact match
2003-04-01 11:18:09 StandardContext[/news]:   Trying prefix match
2003-04-01 11:18:09 StandardContext[/news]:   Trying extension match
2003-04-01 11:18:09 StandardContext[/news]:   Trying default match
2003-04-01 11:18:09 StandardContext[/news]:  Mapped to servlet
'default'
with servlet path '/' and path info 'null' and update=true

I did not add any special config in the server.xml file -- only in the
web.xml file in the WEB-INF dir:
?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-nameNews Feed/display-name
  description
News Feed Application
  /description

  !-- Action Servlet Configuration --
  servlet
servlet-namenews/servlet-name
servlet-class
  philservlet.PhilServlet
/servlet-class

load-on-startup2/load-on-startup
  /servlet

  !-- Action Servlet Mapping --
  servlet-mapping
servlet-namenews/servlet-name
url-pattern/news/url-pattern
  /servlet-mapping
/web-app


Why, oh, why is this happening?
I appreciate your suggestions.

Regards,
Philip


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




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


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



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



Re: Seperate tomcats - one apache

2003-04-01 Thread John Turner
I've been trying to do it for over a day, with mod_jk, with no luck.

I think at this point I will have to use 2 complete installs of Tomcat...up 
'til now I have trying to use one install of Tomcat but two instances via 
CATALINA_BASE.

John

On Tue, 01 Apr 2003 08:46:11 -0800 (PST), Steve Harris [EMAIL PROTECTED] 
wrote:

Hi all,

I'm having some fun with some applications supplied to us that may be
casuing a problem wiht each other, i.e. one application may be causing 
the
whole tocat environment to fail - thus affecting the others.

I'm toying with the idea of trying to run a signle apache but with
multiple tomcats - one per application. Does anyone have any views on 
this
?

Cheers - Steve

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



--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Form Auth

2003-04-01 Thread Michael D. Kirkpatrick
Ok.

For configuration and some implementation, I am still a newbie here.  How
do you change the connector to a non-Coyote one?  Which one would you
recomend? Where can I find it?

Jeff Tulley wrote:

 I just found out that this is a known problem with the Coyote
 connectors, both the HTTP connector and the JkHandler connector.
 There is some code not implemented or something, and there is already a
 bug report in bugzilla.

 To verify if we are talking about the same thing, go back to using an
 old non-Coyote connector and see if your form parameters
 are preserved across the login.

 This really needs to be fixed.  You can vote on the bug, it is #10229

 Jeff Tulley  ([EMAIL PROTECTED])
 (801)861-5322
 Novell, Inc., The Leading Provider of Net Business Solutions
 http://www.novell.com

  [EMAIL PROTECTED] 4/1/03 8:40:36 AM 
 It returns null.

 I noticed that it places all the POST/GET information into a session to
 be
 re-submitted to the actual page after successful login.  Know of a way
 that I can
 access the session information to extract a specific string in it?

 Henning Heil wrote:

  Hi Michael,
 
   Michael D. Kirkpatrick wrote on 01.04.2003 17:05 
 
  I am not quite sure if this question is suitable for this mailing
 list.  If
  not, please forgive me.
  
  [snip]
  
  So here is my question.  How can I capture the original query string
 or make
  the query string in web.xml dynamic?
  
  in general I would not recommend to set the string in the web.xml.
  first part of your question: you can read out any parameter of a post
 or
  get string by request.getParameter(String parametername);
  second part: there are multiple ways to manipulate the request
  parameters: java - request.setAttribute(String attributename,
 String
  value); or by hidden fields in html forms or with select-fields
 which
  are submitted . . .
 
  I would suggest:
 
  read out the site the user is coming from with
 
  String mysite = request.getParameter(site);
 
  (of course you have to add this to the string somewhere on the
 original
  page)
 
  write it to newly generated links:
 
  out.println(passwordsubmitter.jsp?site= + mysite);
 
  or sth like this . . .
 
  I am also looking for mailing lists for the following:
  Struts Questions
  
  there's one on the apache.org site I think - struts  . . .
 
  General Java Questions
  J2EE Questions
  
  no mailing but extremely cool  helpful people there and also
 mailing
  mechanisms to keep track of your threads:
  http://forums.java.sun.com/
 
  If anyone can point me in the right direction, it would be greatly
  appreciated.
  
  Thanks in advance.
  
  
  Have fun,
 
  Henning
 
 
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]

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

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


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



How to implements JavaBean in Tomcat 4.1.x in Win 2000 and solaris

2003-04-01 Thread Carlos Alberto Peláez Ayala
Hello Friends,
Iam a beggining in the use of javabeans and jsp pages.
I try to run this example:

The file login7.jsp:
jsp:useBean id=FormBean class=userinfo.FormBean/
jsp:setProperty name=FormBean property=*/
HTML
HEAD
TITLEForm Example/TITLE
/HEAD
BODY BGCOLOR=#cc
% if (request.getParameter(name)==null
  request.getParameter(email) == null) { %
CENTER
H2User Info Request Form /H2
form method=GET action=process2.jsp
P
Your name: input type=text name=name size=27
p
Your email: input type=text name=email size=27
P
input type=submit value=Process
/FORM
/CENTER
% } else { %
P
BYou have provided the following info/B:
P
BName/B: jsp:getProperty name=FormBean property=name/
P
BEmail/B: jsp:getProperty name=FormBean property=email/
% } %
/BODY
/HTML


and the file FormBean.java:

package userinfo;
import java.io.*;

public class FormBean implements Serializable

  private String name;
  private String email;
  public FormBean()

   name = null;
   email = null;
  }
  public void setName(String name)

   this.name = name;
  }
  public String getName()

   return name;
  }
  public void setEmail(String email)

   this.email = email;
  }
  public String getEmail()

   return email;
  }
}



When i try to run the login7.jsp in my browser, appear the follow error:

HTTP Status 500 -




type Exception report

message

description The server encountered an internal error () that prevented it
from fulfilling this request.

exception

org.apache.jasper.JasperException: userinfo.FormBean
at
org.apache.jasper.compiler.BeanRepository.getBeanType(BeanRepository.java:18
3)
at
org.apache.jasper.compiler.Generator$GenerateVisitor.visit(Generator.java:69
1)
at org.apache.jasper.compiler.Node$GetProperty.accept(Node.java:552)
at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:1028)
at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:1070)
at org.apache.jasper.compiler.Node$Visitor.visit(Node.java:1076)
at org.apache.jasper.compiler.Node$Root.accept(Node.java:232)
at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:1028)
at org.apache.jasper.compiler.Generator.generate(Generator.java:1871)
at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:238)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:351)
at
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:4
74)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:1
84)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:260)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
.java:493)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at

Antwort: RE: tomcat 4.1.18 NT service

2003-04-01 Thread Oliver Wulff

I had also a problem with tomcat running as a W2K service. In some cases,
tomcat just hangs. It uses almost 100% of CPU resources. I used the
tomcat.exe to do it which doesn't work.
It works fine, if I execute startup.bat.
It does work now with JavaService.exe from
http://www.alexandriasc.com/software/JavaService/documentation.html

**
Oliver Wulff
Zürich Versicherungs-Gesellschaft
IA4, CoC Middleware
Postfach, 8085 Zürich
Telefon: +41- 1 628 58 07
Fax: +41 - 1 623 58 07
E-Mail: mailto:[EMAIL PROTECTED]



   

  Cox, Charlie   

  [EMAIL PROTECTED] An:  'Tomcat Users List' [EMAIL 
PROTECTED]   
  Kopie:   '[EMAIL PROTECTED]' [EMAIL 
PROTECTED]  
   Thema:   RE: tomcat 4.1.18 NT service   

  01.04.2003 17:46 

  Bitte antworten  

  an Tomcat Users 

  List

   

   





I had this same prob on 4.0.x and the bug I had opened was labelled as a
'worksforme' since they could not reproduce it(bug 4524). It happened on a
clean install of win2k that only had office 2k I think. I think it was a
problem with the JavaService that was used with tomcat since tomcat worked
fine through the tomcat.bat file.

I ended up using the old jk_nt_service.exe(which I still use,btw) by
following the directions here:
http://www.mail-archive.com/[EMAIL PROTECTED]/msg35196.html
(replace references to 3.2 with 3.3)

Charlie

 -Original Message-
 From: Andrew Garnett [mailto:[EMAIL PROTECTED]
 Sent: Saturday, March 29, 2003 8:00 AM
 To: [EMAIL PROTECTED]
 Subject: Re: tomcat 4.1.18 NT service


 Yes Larry, that's the weird thing - everything looks
 fine until the hang, then the Iexplorer globe just
 keeps rotating. No response, no timeout, nothing in
 the log, it just goes on... I'll try to leave it
 overnight to see if it eventually returns.
 The worst part is that it does actually work for a
 brief few minutes, so the config can't be that bad.

 meantime, I've installed on another NT4 box, and got
 exactly the same. I got the .exe from the apache site,
 so I'm hoping someone else has seen it.

 Any ideas gladly accepted...
 Andy
 =  Larry Meadors Larry.Meadors () plumcreek !
 com


 Did you look in the logs?

  [EMAIL PROTECTED] 03/28/03 10:14 AM 
 All,
 The tomcat-4.1.18.exe installs perfectly as a service
 on my NT 4 box, starts up tomcat service happily, and
 immediately responds on port 8080 with the example
 servlets.
 Then within a minute or two, it stops responding
 completely - just hangs with no output anywhere.

 If I startup using the bat files in DOS, everything
 runs fine.
 Any ideas ?
 Thanks,
 Andy



 __
 Yahoo! Plus
 For a better Internet experience
 http://www.yahoo.co.uk/btoffer

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


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






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



RE: How to implements JavaBean in Tomcat 4.1.x in Win 2000 and solaris

2003-04-01 Thread graghupathy
remove the constructor and initialize the variable to null  and try ...

should be 

package userinfo;
import java.io.*;

public class FormBean implements Serializable

  private String name = null;
  private String email = null;

  public void setName(String name)

   this.name = name;
  }
  public String getName()

   return name;
  }
  public void setEmail(String email)

   this.email = email;
  }
  public String getEmail()

   return email;
  }
}



-Original Message-
From: Carlos Alberto Peláez Ayala [mailto:[EMAIL PROTECTED]
Sent: 01 April 2003 18:00
To: [EMAIL PROTECTED]
Subject: How to implements JavaBean in Tomcat 4.1.x in Win 2000 and
solaris


Hello Friends,
Iam a beggining in the use of javabeans and jsp pages.
I try to run this example:

The file login7.jsp:
jsp:useBean id=FormBean class=userinfo.FormBean/
jsp:setProperty name=FormBean property=*/
HTML
HEAD
TITLEForm Example/TITLE
/HEAD
BODY BGCOLOR=#cc
% if (request.getParameter(name)==null
  request.getParameter(email) == null) { %
CENTER
H2User Info Request Form /H2
form method=GET action=process2.jsp
P
Your name: input type=text name=name size=27
p
Your email: input type=text name=email size=27
P
input type=submit value=Process
/FORM
/CENTER
% } else { %
P
BYou have provided the following info/B:
P
BName/B: jsp:getProperty name=FormBean property=name/
P
BEmail/B: jsp:getProperty name=FormBean property=email/
% } %
/BODY
/HTML


and the file FormBean.java:

package userinfo;
import java.io.*;

public class FormBean implements Serializable

  private String name;
  private String email;
  public FormBean()

   name = null;
   email = null;
  }
  public void setName(String name)

   this.name = name;
  }
  public String getName()

   return name;
  }
  public void setEmail(String email)

   this.email = email;
  }
  public String getEmail()

   return email;
  }
}



When i try to run the login7.jsp in my browser, appear the follow error:

HTTP Status 500 -




type Exception report

message

description The server encountered an internal error () that prevented it
from fulfilling this request.

exception

org.apache.jasper.JasperException: userinfo.FormBean
at
org.apache.jasper.compiler.BeanRepository.getBeanType(BeanRepository.java:18
3)
at
org.apache.jasper.compiler.Generator$GenerateVisitor.visit(Generator.java:69
1)
at org.apache.jasper.compiler.Node$GetProperty.accept(Node.java:552)
at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:1028)
at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:1070)
at org.apache.jasper.compiler.Node$Visitor.visit(Node.java:1076)
at org.apache.jasper.compiler.Node$Root.accept(Node.java:232)
at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:1028)
at
org.apache.jasper.compiler.Generator.generate(Generator.java:1871)
at
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:238)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:351)
at
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:4
74)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:1
84)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:260)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
.java:493)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok

RE: Deployment trouble: Directory Listing For /

2003-04-01 Thread Shapira, Yoav

Howdy,
Yes, that answers my question very well.  Given your configuration, the
URL for your servlet is http://yourserver/news/news as the /news
url-pattern is relative to the /news docBase of your webapp.

BTW, I doubt you really mean the privileged=true in news.xml.  It's
more likely a leftover from a copy operation copying admin.xml or
manager.xml.  If you don't need it, remove it ;)

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Philip S. Wachtel [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 01, 2003 11:50 AM
To: Tomcat Users List
Subject: Re: Deployment trouble: Directory Listing For /

Hi there,

Thanks for your help.

In the main server.xml file, I have only:
Context path= docBase=ROOT debug=0/
as a context.

I have a directory:
/var/tomcat4/webapps that contains news.xml
This file contains:
__
Context path=/news docBase=../server/webapps/news
debug=9 privileged=true

 Logger className=org.apache.catalina.logger.FileLogger
 prefix=news_log. suffix=.txt
  timestamp=true/

/Context


In ../server/webapps/news/WEB-INF, there's a file called web.xml, which
is
included below.

Does this answer your question?

Thanks!
Philip

- Original Message -
From: Shapira, Yoav [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, April 01, 2003 11:40 AM
Subject: RE: Deployment trouble: Directory Listing For /



Howdy,
Is the web.xml you quoted in the ROOT context or in your own context?
The url-pattern in web.xml is relative to the context root.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Philip S. Wachtel [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 01, 2003 11:29 AM
To: Tomcat Users List
Subject: Deployment trouble: Directory Listing For /

Hi there,

I just joined the list, so if this question has been asked recently,
please
forgive me.

I'm using Tomcat 4.1 on Redhat 7.3.  I know that the server is working
as
the admin application seems to work, although it mangles the
server.xml
file
pretty good.

The trouble I'm having is that although I can see that my servlet is
deployed, I can't make the mapping work.  I know the servelt is
deployed
because debugging information in the init() method is showing up in
the
logs.

When I go to the url:
http://myserver.com:8080/news?rdfFileName=healthcare

I just get: Directory Listing For / ... with no files in the list.

(Note: When I press enter, the browser replaces the url with almost
the
same
on, but with an extra slash:
http://nagios.cnsmail.com:8080/news/?rdfFileName=moreover_healthcare)

The log shows:
2003-04-01 11:18:09 StandardContext[/news]: Mapping
contextPath='/news'
with
requestURI='/news/' and relativeURI='/'
2003-04-01 11:18:09 StandardContext[/news]:   Trying exact match
2003-04-01 11:18:09 StandardContext[/news]:   Trying prefix match
2003-04-01 11:18:09 StandardContext[/news]:   Trying extension match
2003-04-01 11:18:09 StandardContext[/news]:   Trying default match
2003-04-01 11:18:09 StandardContext[/news]:  Mapped to servlet
'default'
with servlet path '/' and path info 'null' and update=true

I did not add any special config in the server.xml file -- only in the
web.xml file in the WEB-INF dir:
?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-nameNews Feed/display-name
  description
News Feed Application
  /description

  !-- Action Servlet Configuration --
  servlet
servlet-namenews/servlet-name
servlet-class
  philservlet.PhilServlet
/servlet-class

load-on-startup2/load-on-startup
  /servlet

  !-- Action Servlet Mapping --
  servlet-mapping
servlet-namenews/servlet-name
url-pattern/news/url-pattern
  /servlet-mapping
/web-app


Why, oh, why is this happening?
I appreciate your suggestions.

Regards,
Philip


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




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


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



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




This e-mail, including any attachments, is a confidential business 

Using JMX with Tomcat - registering my MBean

2003-04-01 Thread Michael Mattox
I've looked at the same code included in the O'Reilly JMX book but it's not
a big help because it doesn't give any examples in a servlet container.
I've also looked at the SUN RI but it's the same problem.  I have a plain
old java object that is in my service layer.  My Actions call it and it
persists objects.  I'm now trying to turn my service into an MBean, but I
can't seem to register it with the server.  I'm not even sure where this
code should go when running in a servlet container.

If anyone has an example of how to create, register,  use an MBean inside
Tomcat I'd be forever grateful.  I've searched the mailing list archives and
Google and haven't found any examples.

Thanks,
Michael



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



Re: Form Auth

2003-04-01 Thread Jeff Tulley
It is done through server.xml.  I don't know what web server connector
you were using, but if it was Apache and mod_jk, you can still use it.

On Tomcat's side, comment out the Coyote connector, which looks like:
Connector className=org.apache.coyote.tomcat4.CoyoteConnector
   port=8009 minProcessors=5 maxProcessors=75
   enableLookups=true redirectPort=8443
   acceptCount=10 debug=0 connectionTimeout=0
   useURIValidationHack=false
  
protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/

Instead, use:
Connector className=org.apache.ajp.tomcat4.Ajp13Connector
   port=8009 minProcessors=5 maxProcessors=75
   acceptCount=10 debug=0/

The problem is that this connector is deprecated and probably will give
you an MBean exception.

If you want to just verify the problem, you can try it out on an older
but still functional HTTP connector.  Comment out the connector that
looks like:
Connector className=org.apache.coyote.tomcat4.CoyoteConnector
   port=8080 minProcessors=5 maxProcessors=75
   enableLookups=true redirectPort=8443
   acceptCount=100 debug=0 connectionTimeout=2
   useURIValidationHack=false disableUploadTimeout=true
/

And uncomment the one that looks like:

Connector
className=org.apache.catalina.connector.http.HttpConnector
   port=8083 minProcessors=5 maxProcessors=75
   enableLookups=true redirectPort=8443
   acceptCount=10 debug=0 /

You might want to change the port to 8080 and/or change some of the
tuning parameters, max and minProcessors to be the same as they were on
your other connector.

If you form parameters are preserved, then you know that it is the same
issue.

Jeff Tulley  ([EMAIL PROTECTED])
(801)861-5322
Novell, Inc., The Leading Provider of Net Business Solutions
http://www.novell.com

 [EMAIL PROTECTED] 4/1/03 9:59:07 AM 
Ok.

For configuration and some implementation, I am still a newbie here. 
How
do you change the connector to a non-Coyote one?  Which one would you
recomend? Where can I find it?

Jeff Tulley wrote:

 I just found out that this is a known problem with the Coyote
 connectors, both the HTTP connector and the JkHandler connector.
 There is some code not implemented or something, and there is already
a
 bug report in bugzilla.

 To verify if we are talking about the same thing, go back to using
an
 old non-Coyote connector and see if your form parameters
 are preserved across the login.

 This really needs to be fixed.  You can vote on the bug, it is
#10229

 Jeff Tulley  ([EMAIL PROTECTED])
 (801)861-5322
 Novell, Inc., The Leading Provider of Net Business Solutions
 http://www.novell.com 

  [EMAIL PROTECTED] 4/1/03 8:40:36 AM 
 It returns null.

 I noticed that it places all the POST/GET information into a session
to
 be
 re-submitted to the actual page after successful login.  Know of a
way
 that I can
 access the session information to extract a specific string in it?

 Henning Heil wrote:

  Hi Michael,
 
   Michael D. Kirkpatrick wrote on 01.04.2003 17:05 
 
  I am not quite sure if this question is suitable for this mailing
 list.  If
  not, please forgive me.
  
  [snip]
  
  So here is my question.  How can I capture the original query
string
 or make
  the query string in web.xml dynamic?
  
  in general I would not recommend to set the string in the web.xml.
  first part of your question: you can read out any parameter of a
post
 or
  get string by request.getParameter(String parametername);
  second part: there are multiple ways to manipulate the request
  parameters: java - request.setAttribute(String attributename,
 String
  value); or by hidden fields in html forms or with select-fields
 which
  are submitted . . .
 
  I would suggest:
 
  read out the site the user is coming from with
 
  String mysite = request.getParameter(site);
 
  (of course you have to add this to the string somewhere on the
 original
  page)
 
  write it to newly generated links:
 
  out.println(passwordsubmitter.jsp?site= + mysite);
 
  or sth like this . . .
 
  I am also looking for mailing lists for the following:
  Struts Questions
  
  there's one on the apache.org site I think - struts  . . .
 
  General Java Questions
  J2EE Questions
  
  no mailing but extremely cool  helpful people there and also
 mailing
  mechanisms to keep track of your threads:
  http://forums.java.sun.com/ 
 
  If anyone can point me in the right direction, it would be
greatly
  appreciated.
  
  Thanks in advance.
  
  
  Have fun,
 
  Henning
 
 

-
  To unsubscribe, e-mail: [EMAIL PROTECTED]

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


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

RE: Using JMX with Tomcat - registering my MBean

2003-04-01 Thread Shapira, Yoav

Howdy,
This will give you a start:
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/mbeans-descriptor-howto.
html

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Michael Mattox [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 01, 2003 12:04 PM
To: Tomcat Users List
Subject: Using JMX with Tomcat - registering my MBean

I've looked at the same code included in the O'Reilly JMX book but it's
not
a big help because it doesn't give any examples in a servlet container.
I've also looked at the SUN RI but it's the same problem.  I have a
plain
old java object that is in my service layer.  My Actions call it and it
persists objects.  I'm now trying to turn my service into an MBean, but
I
can't seem to register it with the server.  I'm not even sure where
this
code should go when running in a servlet container.

If anyone has an example of how to create, register,  use an MBean
inside
Tomcat I'd be forever grateful.  I've searched the mailing list
archives
and
Google and haven't found any examples.

Thanks,
Michael



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




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


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



Reasons for integrating Tomcat with Apache

2003-04-01 Thread Sreedhar, Dantam
Hi,

Could any one point me some document which explains, why Tomcat should be
integrated with Apache? I am running Tomcat on Solaris 2.8.

Thanks,
Sreedhar

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



Re: Deployment trouble: Directory Listing For /

2003-04-01 Thread Philip S. Wachtel
Oh, man -- that was it!

Bless you.

Philip

- Original Message -
From: Shapira, Yoav [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, April 01, 2003 12:02 PM
Subject: RE: Deployment trouble: Directory Listing For /



Howdy,
Yes, that answers my question very well.  Given your configuration, the
URL for your servlet is http://yourserver/news/news as the /news
url-pattern is relative to the /news docBase of your webapp.

BTW, I doubt you really mean the privileged=true in news.xml.  It's
more likely a leftover from a copy operation copying admin.xml or
manager.xml.  If you don't need it, remove it ;)

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Philip S. Wachtel [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 01, 2003 11:50 AM
To: Tomcat Users List
Subject: Re: Deployment trouble: Directory Listing For /

Hi there,

Thanks for your help.

In the main server.xml file, I have only:
Context path= docBase=ROOT debug=0/
as a context.

I have a directory:
/var/tomcat4/webapps that contains news.xml
This file contains:
__
Context path=/news docBase=../server/webapps/news
debug=9 privileged=true

 Logger className=org.apache.catalina.logger.FileLogger
 prefix=news_log. suffix=.txt
  timestamp=true/

/Context


In ../server/webapps/news/WEB-INF, there's a file called web.xml, which
is
included below.

Does this answer your question?

Thanks!
Philip

- Original Message -
From: Shapira, Yoav [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, April 01, 2003 11:40 AM
Subject: RE: Deployment trouble: Directory Listing For /



Howdy,
Is the web.xml you quoted in the ROOT context or in your own context?
The url-pattern in web.xml is relative to the context root.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Philip S. Wachtel [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 01, 2003 11:29 AM
To: Tomcat Users List
Subject: Deployment trouble: Directory Listing For /

Hi there,

I just joined the list, so if this question has been asked recently,
please
forgive me.

I'm using Tomcat 4.1 on Redhat 7.3.  I know that the server is working
as
the admin application seems to work, although it mangles the
server.xml
file
pretty good.

The trouble I'm having is that although I can see that my servlet is
deployed, I can't make the mapping work.  I know the servelt is
deployed
because debugging information in the init() method is showing up in
the
logs.

When I go to the url:
http://myserver.com:8080/news?rdfFileName=healthcare

I just get: Directory Listing For / ... with no files in the list.

(Note: When I press enter, the browser replaces the url with almost
the
same
on, but with an extra slash:
http://nagios.cnsmail.com:8080/news/?rdfFileName=moreover_healthcare)

The log shows:
2003-04-01 11:18:09 StandardContext[/news]: Mapping
contextPath='/news'
with
requestURI='/news/' and relativeURI='/'
2003-04-01 11:18:09 StandardContext[/news]:   Trying exact match
2003-04-01 11:18:09 StandardContext[/news]:   Trying prefix match
2003-04-01 11:18:09 StandardContext[/news]:   Trying extension match
2003-04-01 11:18:09 StandardContext[/news]:   Trying default match
2003-04-01 11:18:09 StandardContext[/news]:  Mapped to servlet
'default'
with servlet path '/' and path info 'null' and update=true

I did not add any special config in the server.xml file -- only in the
web.xml file in the WEB-INF dir:
?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-nameNews Feed/display-name
  description
News Feed Application
  /description

  !-- Action Servlet Configuration --
  servlet
servlet-namenews/servlet-name
servlet-class
  philservlet.PhilServlet
/servlet-class

load-on-startup2/load-on-startup
  /servlet

  !-- Action Servlet Mapping --
  servlet-mapping
servlet-namenews/servlet-name
url-pattern/news/url-pattern
  /servlet-mapping
/web-app


Why, oh, why is this happening?
I appreciate your suggestions.

Regards,
Philip


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




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


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

RE: Reasons for integrating Tomcat with Apache

2003-04-01 Thread Shapira, Yoav

Howdy,
STFA ;)  Start here:
http://marc.theaimsgroup.com/?l=tomcat-userr=1w=2

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Sreedhar, Dantam [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 01, 2003 12:14 PM
To: [EMAIL PROTECTED]
Subject: Reasons for integrating Tomcat with Apache

Hi,

Could any one point me some document which explains, why Tomcat should
be
integrated with Apache? I am running Tomcat on Solaris 2.8.

Thanks,
Sreedhar

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




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


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



RE: Tomcat 4 As A Windows Service

2003-04-01 Thread Jacob Kjome
I haven't tried this, but you could pass along a 
-Dcatalina.base=%CATALINA_BASE%

When running the batch files to start Tomcat, the environment variable 
CATALINA_BASE, if specified, declares where your custom instance of Tomcat 
is with its own conf/server.xml (along with the other config files).  If it 
isn't specified, CATALINA_BASE ends up being the same as 
CATALNIA_HOME.  Try it out and see if it works for you.

Note that for the instructions to work, you at least need CATALNIA_HOME and 
CATALINA_OPTS defined.

Jake

At 09:24 AM 4/1/2003 -0600, you wrote:
The main issue this does not *seem* to resolve, unless I am missing
something, is that there does not seem to be a place here for properly
configuring the ports for a second or third tomcat on the same machine.
Additional Tomcats need their own ports, correct?
One solution to this *may* be to edit the service you just created
(i.e., open up properties for the service), and add an additional
parameter using the -config parameter.  I believe (not sure) the syntax
is
  -config conf/server.xml
where each instance would presumably use a different server.xml (named
appropriately) and specifying different ports.  The conf/ is a relative
path to your Tomcat home directory, however you *may* be able to fully
specify a path to a unique server.xml file.  I believe this is NT
service speak for the -F option (bin\Tomcat.exe -F server.xml) that
existed at least in Tomcat 3.2.
One thing I'm still looking for an answer to is how to specify a
different classpath for a second or third Tomcat service, other than the
-Djava.class.path parameter, i.e., the equivalent of the old
wrapper.properties file (assuming wrapper.properties is no longer
supported in Tomcat 4.1).  Anyone have any info on this?  The classpath
in web.xml doesn't seem to work for me, unless I have the syntax wrong.
Andrew Longley

-Original Message-
From: Jacob Kjome [mailto:[EMAIL PROTECTED]
Sent: Monday, March 31, 2003 8:23 PM
To: Tomcat Users List
Subject: Re: Tomcat 4 As A Windows Service
See:
http://www.mattkelli.com/tech/tomcat/ntservice.htm
Jake

At 05:52 PM 3/31/2003 -0600, you wrote:
Hi,

I have a need for multiple tomcats on Windows.  I can't find any doco
on
the jakarta website for doing this.

Installing Tomat and choosing the NT Service option doesn't help me
because I need multiple tomcats, not just one.

I'm using Tomcat 4.0.6.  I can install one tomcat as a service with
tomcat.exe, but how do I set %CATALINA_BASE% so I can install more than
one
service and have it point to the right conf files?

Any help would be greatly appreciated.

Thanks,
Tom Johnson



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


Re: Reasons for integrating Tomcat with Apache

2003-04-01 Thread John Turner
http://tomcatfaq.sourceforge.net
http://tomcatfaq.sourceforge.net/apache.html
and, of course, the mailing list archives.

John

On Tue, 1 Apr 2003 22:44:12 +0530, Sreedhar, Dantam Dantam- 
[EMAIL PROTECTED] wrote:

Hi,

Could any one point me some document which explains, why Tomcat should be
integrated with Apache? I am running Tomcat on Solaris 2.8.
Thanks,
Sreedhar
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: DriverclassName is required (mysql)

2003-04-01 Thread Mark.Gargan
Hi Folks,
I was using the Tomcat within the Java WebServices Development
Pack from Sun. I promptly got rid of it cos I like my dos output. 

Now instead of getting the error that the driverClassName is required,
now Tomcat says that it cannot load JDBC class null. This would be fair
enough only I've set the driverClassName property in the server.xml that
describes the datasource to be the org.gjt.mm.mysql.Driver class. It
looks like the name of the parameter that tells the the connection
factory which datasource to use is different to 'driverClassName'. Could
this have changed?

Thanks,
Mark.



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: 01 April 2003 16:51
To: [EMAIL PROTECTED]
Subject: DriverclassName is required (mysql)

Hi Folks,
I'm trying to install jUDDI in my tomcat installation.
The installation is from the java webservices pack from the sun site. 
I'm trying to setup mysql as the underlying database for the UDDI
Registry.
 
I've inserted the following context into the server.xml as instructed in
the JNDI howto Datasources guide.
 
!-- MYSQL datasource for jUDDI--
Context path=/DBTest docBase=DBTest debug=5
reloadable=true crossContext=true
   Logger className=org.apache.catalina.logger.FileLogger
prefix=localhost_DBTest_log. suffix=.txt timestamp=true /
 
   Resource name=jdbc/TestDB auth=Container
type=javax.sql.DataSource /
 
   ResourceParams name=jdbc/TestDB
  parameter
 namefactory/name
 
 
valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
  /parameter
 
!-- Maximum number of
dB connections in pool. Make sure you
 configure your
mysqld max_connections large enough to handle
 all of your db
connections. Set to 0 for no limit.
 --
  parameter
 namemaxActive/name
 
 value100/value
  /parameter
 
!-- Maximum number of
idle dB connections to retain in pool.
 Set to 0 for no
limit.
 --
  parameter
 namemaxIdle/name
 
 value30/value
  /parameter
 
!-- Maximum time to
wait for a dB connection to become available
 in ms, in this
example 10 seconds. An Exception is thrown if
 this timeout is
exceeded.  Set to -1 to wait indefinitely.
 --
 
  parameter
 namemaxWait/name
 
 value1/value
  /parameter
 
!-- MySQL dB username
and password for dB connections  --

  parameter
 nameusername/name
 
 valuejavauser/value
  /parameter
 
  parameter
 namepassword/name
 
 valuejavadude/value
  /parameter
 
!-- Class name for mm.mysql JDBC driver --

  parameter
 namedriverClassName/name
 
 valueorg.gjt.mm.mysql.Driver/value
  /parameter
 
!-- The JDBC connection
url for connecting to your MySQL dB.
 The
autoReconnect=true argument to the url makes sure that the
 mm.mysql JDBC
Driver will automatically reconnect if mysqld closed the
 connection.
mysqld by default closes idle connections after 8 hours.
 --
  parameter
 nameurl/name
 
 
valuejdbc:mysql://localhost:3306/javatest?autoReconnect=true/value
  /parameter
   /ResourceParams
/Context 
 
Unfortunately when I go to call the test.jsp which in turn makes a call
to the init method in the foo class :-
 
public void init() {
try{
  Context ctx = new InitialContext();
  if(ctx == null ) 
  throw new Exception(Boom - No Context);
 
  DataSource ds = 
(DataSource)ctx.lookup(
   

Re: Form Auth

2003-04-01 Thread Michael D. Kirkpatrick
Same thing...

Jeff Tulley wrote:

 It is done through server.xml.  I don't know what web server connector
 you were using, but if it was Apache and mod_jk, you can still use it.

 On Tomcat's side, comment out the Coyote connector, which looks like:
 Connector className=org.apache.coyote.tomcat4.CoyoteConnector
port=8009 minProcessors=5 maxProcessors=75
enableLookups=true redirectPort=8443
acceptCount=10 debug=0 connectionTimeout=0
useURIValidationHack=false

 protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/

 Instead, use:
 Connector className=org.apache.ajp.tomcat4.Ajp13Connector
port=8009 minProcessors=5 maxProcessors=75
acceptCount=10 debug=0/

 The problem is that this connector is deprecated and probably will give
 you an MBean exception.

 If you want to just verify the problem, you can try it out on an older
 but still functional HTTP connector.  Comment out the connector that
 looks like:
 Connector className=org.apache.coyote.tomcat4.CoyoteConnector
port=8080 minProcessors=5 maxProcessors=75
enableLookups=true redirectPort=8443
acceptCount=100 debug=0 connectionTimeout=2
useURIValidationHack=false disableUploadTimeout=true
 /

 And uncomment the one that looks like:

 Connector
 className=org.apache.catalina.connector.http.HttpConnector
port=8083 minProcessors=5 maxProcessors=75
enableLookups=true redirectPort=8443
acceptCount=10 debug=0 /

 You might want to change the port to 8080 and/or change some of the
 tuning parameters, max and minProcessors to be the same as they were on
 your other connector.

 If you form parameters are preserved, then you know that it is the same
 issue.

 Jeff Tulley  ([EMAIL PROTECTED])
 (801)861-5322
 Novell, Inc., The Leading Provider of Net Business Solutions
 http://www.novell.com

  [EMAIL PROTECTED] 4/1/03 9:59:07 AM 
 Ok.

 For configuration and some implementation, I am still a newbie here.
 How
 do you change the connector to a non-Coyote one?  Which one would you
 recomend? Where can I find it?

 Jeff Tulley wrote:

  I just found out that this is a known problem with the Coyote
  connectors, both the HTTP connector and the JkHandler connector.
  There is some code not implemented or something, and there is already
 a
  bug report in bugzilla.
 
  To verify if we are talking about the same thing, go back to using
 an
  old non-Coyote connector and see if your form parameters
  are preserved across the login.
 
  This really needs to be fixed.  You can vote on the bug, it is
 #10229
 
  Jeff Tulley  ([EMAIL PROTECTED])
  (801)861-5322
  Novell, Inc., The Leading Provider of Net Business Solutions
  http://www.novell.com
 
   [EMAIL PROTECTED] 4/1/03 8:40:36 AM 
  It returns null.
 
  I noticed that it places all the POST/GET information into a session
 to
  be
  re-submitted to the actual page after successful login.  Know of a
 way
  that I can
  access the session information to extract a specific string in it?
 
  Henning Heil wrote:
 
   Hi Michael,
  
    Michael D. Kirkpatrick wrote on 01.04.2003 17:05 
  
   I am not quite sure if this question is suitable for this mailing
  list.  If
   not, please forgive me.
   
   [snip]
   
   So here is my question.  How can I capture the original query
 string
  or make
   the query string in web.xml dynamic?
   
   in general I would not recommend to set the string in the web.xml.
   first part of your question: you can read out any parameter of a
 post
  or
   get string by request.getParameter(String parametername);
   second part: there are multiple ways to manipulate the request
   parameters: java - request.setAttribute(String attributename,
  String
   value); or by hidden fields in html forms or with select-fields
  which
   are submitted . . .
  
   I would suggest:
  
   read out the site the user is coming from with
  
   String mysite = request.getParameter(site);
  
   (of course you have to add this to the string somewhere on the
  original
   page)
  
   write it to newly generated links:
  
   out.println(passwordsubmitter.jsp?site= + mysite);
  
   or sth like this . . .
  
   I am also looking for mailing lists for the following:
   Struts Questions
   
   there's one on the apache.org site I think - struts  . . .
  
   General Java Questions
   J2EE Questions
   
   no mailing but extremely cool  helpful people there and also
  mailing
   mechanisms to keep track of your threads:
   http://forums.java.sun.com/
  
   If anyone can point me in the right direction, it would be
 greatly
   appreciated.
   
   Thanks in advance.
   
   
   Have fun,
  
   Henning
  
  
 
 -
   To unsubscribe, e-mail: [EMAIL PROTECTED]

   For additional commands, e-mail:
 [EMAIL 

the latest stable release?

2003-04-01 Thread Xu, William [CC]
http://jakarta.apache.org/tomcat/index.html This page (paragraph 2 in
section Tomcat 4.x) still shows the latest stable release is 4.1.18 as
opposed to 4.1.24. Is there any specific reason for that or just that page
has not been updated? Thanks in advance.

Regards,

William Xu



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



Slightly OT: SocketException with MySQL

2003-04-01 Thread Geoff Peters
I am using Tomcat 4.1.18, MySQL 3.23, newest driver, running on Linux 7.3. Problem is 
similar to others who have posted on this subject, just want some advice (can't seem 
to get a definite answer). 

I'm not using connection pooling. If I walk away and leave the server running for 
several hours, I come back and cannot access the database via the servlet, the 
catalina.out file tells me SQL Error: Communication link failure: 
java.net.SocketException. Happens whether or not I am running TOmcat remotely on or 
the same box as MySQL (i.e. not a network issue). I made sure all of my connection 
objects were close in the destroy() method of each servlet thinking all of the sockets 
were full, still didn't work. I just recently set autoReconnect = true in my 
server.xml realm tag - that doesn't seem to make a difference.  

Should that work? Or, should I be closing the connection object IMMEDIATELY after each 
executeUpdate or executeQuery? Currently am opening a connection in the init() method, 
and killing in the destroy(). 

Any suggestions greatly appreciated!! 

Thanks, Geoff 


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



RE: Seperate tomcats - one apache

2003-04-01 Thread George Sexton
I routinely run via the CATALINA_BASE method for multiple instances and have
no problems.

Using mod_jk, all you have to do is define the connectors to be on different
ports, and then configure each servlet engine to run mod_jk on a different
port.

-Original Message-
From: Steve Harris [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 01, 2003 9:46 AM
To: [EMAIL PROTECTED]
Subject: Seperate tomcats - one apache


Hi all,

I'm having some fun with some applications supplied to us that may be
casuing a problem wiht each other, i.e. one application may be causing the
whole tocat environment to fail - thus affecting the others.

I'm toying with the idea of trying to run a signle apache but with
multiple tomcats - one per application. Does anyone have any views on this
?

Cheers - Steve


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


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



sample openLdap ldif file wont work

2003-04-01 Thread Karamat Adil IHMD
Hi all,
   Can any one tell me why I cant run the sample file that is on the Tomncat
website for adding entries in the OpenLdap directory tree ? The file is as
follows

 --
 # Define a user named 'tomcat'
 dn: cn=tomcat,dc=xxx,dc=com
 cn: tomcat
 userPassword: tomcat
 sn: Tomcat User
 objectClass: person
 
 # Define a user named 'both'
 dn: cn=both,dc=xxx,dc=com
 cn: both
 userPassword: tomcat
 sn: Both User
 objectClass: person
 
 # Define an entry to base role searches on
 dn: dc=roles,dc=xxx,dc=com
 cn: roles
 objectClass: person
 sn: Roles Entry
 
 # Define all members of the 'tomcat' role
 dn: cn=tomcat,dc=roles,dc=xxx,dc=com
 cn: tomcat
 objectClass: groupOfUniqueNames
 uniqueMember: cn=tomcat,dc=xxx,dc=com
 uniqueMember: cn=both,dc=xxx,dc=com
 --
 
 OK it adds the first two entries i.e tomcat and both and then when it tries
 to add the third entry it gives the following message :
 
 adding new entry dc=roles,dc=xxx,dc=com
 ldapadd: update failed: dc=roles,dc=xxx,dc=com
 ldap_add: No such attribute (16)
 additional info: naming attribute 'dc' is not present in entry
 
 
 What am I doing wrong 
 Thanks,
 Adil

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



RE: inconsistencies in Tomcat handling servlet filters...

2003-04-01 Thread Jacob Kjome
Many thanks to Jonathan Leech for pointing out how to fix my problem 
(below).  See the original thread here:
http://marc.theaimsgroup.com/?l=tomcat-userm=104759543729238w=2
and then the code I forgot to attach to the original message here:
http://marc.theaimsgroup.com/?l=tomcat-userm=104759559429435w=2

He asked me to forward it to the list since he isn't a subscribed 
member.  So, here it is (below).  Now the only issue left is why the third 
example I mentioned still doesn't work ...

Given this code

out.write(HRPREHR);
CharResponseWrapper wrapper = new 
CharResponseWrapper((HttpServletResponse) response);
chain.doFilter(request, wrapper);
out.write(wrapper.toString());
out.write(HRPOSTHR);

It prints out everything for jsp pages but only the following for html page...

hrPREhrhtml
head
titleLesson 3/title
/head
body
pThis is a pure test page/p

/body



The missing data is this...

/html
hrPOSThr
I guess this is the one last mystery to solve.   It must have something to 
do with not setting the content length, but why would it affect the 
filtering of html pages and not jsp pages?  H  Anyone have a guess 
as to why this is happening?

Jake


From: Leech, Jonathan [EMAIL PROTECTED]
To: '[EMAIL PROTECTED]' [EMAIL PROTECTED]
Subject: RE: inconsistencies in Tomcat handling servlet filters...
Date: Mon, 31 Mar 2003 11:19:57 -0700
Jake,

I think I can help you out  Do me a favor though and post/forward this
response to the tomcat mailing list because
I'm too lazy to figure out how to subscribe and reply properly.
The simple answer is you need to flush() your PrintWriter.  Do this:
GenericResponseWrapper.java:
PrintWriter writer = null;

public byte[] toByteArray() {
   if (writer != null) writer.flush();
   return output.toByteArray();
}
public String toString() {
   if (writer != null) writer.flush();
   return output.toString();
}
public PrintWriter getWriter() {
   writer = new PrintWriter(getOutputStream(), true);
   return writer;
}
 Questions to answer...

 1.  Why don't all 3 examples produce exactly the same output?  It
 seems to me that they should.
The first example will work fine with the modifications I suggest above.
I don't know what's wrong in the third example, but perhaps it will work as
well.
 2.  Why does using a response wrapper that uses a ByteArrayOutputStream
 (as in GenericResponseWrapper) not work with JSP's?  The original data
 is always unavailable.
flush()ing the PrintWriter cures this.  Incidentally, if your .jsp writes
enough data you will get some data but the rest truncated.
 3.  Why do I have to use a PrintWriter when filtering JSP's?  Why
 can't I use an OutputStream?  Using an OutputStream gets me the same
results
 as #2.
The spec says in the Servlet you've got to use one or the other, but not
both.  You
should be able to relax this constraint in your filter if everything is
kosher.  Perhaps
flushing the PrintWriter properly will fix this as well.
 So, is there anything wrong with my code or is something just goofy in
 Tomcat?
Looks to me like your code would have worked just fine, as mine did, in
older versions
of Tomcat, but that they stopped flushing the PrintWriter for you after the
.jsp runs, at
some point between 4.0.3 and 4.1.18
Sincerely,
Jonathan Leech
Senior Software Engineer
Virtela Communications, Inc.


Re: Seperate tomcats - one apache

2003-04-01 Thread John Turner
It doesn't work at all.  Believe me, I've now spent 14 hours trying to make 
it work.

I posted yesterday exactly what I have done so far (Help with one Apache, 
mod_jk, two Tomcats, no load balancing).

http://host1.com:8080 - Tomcat 1 works great
http://host2.com:8081 - Tomcat 2 works great
Apache Virtual Host host1 (http://host1.com) - Tomcat 1
Apache Virtual Host host2 (http://host2.com) - ALSO Tomcat 1
I've tried many variations of workers.properties, even setting up load- 
balanced workers as suggesting in http://www.ubeans.com/tomcat (private JVM 
section) even though I don't want load-balancing at all.

mod_jk.log:

[Mon Mar 31 16:48:59 2003]  [mod_jk.c (471)]: agsp=80 agsn=host2.com 
hostn=host2.com shostn=host1.com cbsport=0 sport=0
[Mon Mar 31 16:48:59 2003]  [jk_ajp_common.c (1391)]: Into 
jk_worker_t::get_endpoint
...
...
[Mon Mar 31 16:48:59 2003]  [jk_uri_worker_map.c (460)]: Into 
jk_uri_worker_map_t::map_uri_to_worker
[Mon Mar 31 16:48:59 2003]  [jk_uri_worker_map.c (477)]: Attempting to map 
URI '/images/A2_incent.jpg'
[Mon Mar 31 16:48:59 2003]  [jk_uri_worker_map.c (502)]: 
jk_uri_worker_map_t::map_uri_to_worker, Found a context match tomcat1 - /
[Mon Mar 31 16:48:59 2003]  [mod_jk.c (1277)]: Into handler r-proxyreq=0 
r-handler=jakarta-servlet r-notes=1578240 worker=tomcat1
[Mon Mar 31 16:48:59 2003]  [jk_worker.c (132)]: Into 
wc_get_worker_for_name tomcat1
[Mon Mar 31 16:48:59 2003]  [jk_worker.c (136)]: wc_get_worker_for_name, 
done  found a worker

I don't know about you, but line number one there looks pretty fishy to 
me...I have no idea what shostn means (shared host name?), but it 
shouldn't be host1, it should be host2, and the worker found should be 
tomcat2, not tomcat1.

I am definitely open to suggestions on how to make this work, but I can 
tell you that I am no stranger to setting up mod_jk (different port 
numbers, etc), and at this time this DOES NOT work for me with Apache .43, 
Tomcat 4.1.18, Solaris 8, and built-from-source mod_jk.

John

On Tue, 1 Apr 2003 10:46:38 -0700, George Sexton [EMAIL PROTECTED] 
wrote:

I routinely run via the CATALINA_BASE method for multiple instances and 
have
no problems.

Using mod_jk, all you have to do is define the connectors to be on 
different
ports, and then configure each servlet engine to run mod_jk on a 
different
port.

-Original Message-
From: Steve Harris [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 01, 2003 9:46 AM
To: [EMAIL PROTECTED]
Subject: Seperate tomcats - one apache
Hi all,

I'm having some fun with some applications supplied to us that may be
casuing a problem wiht each other, i.e. one application may be causing 
the
whole tocat environment to fail - thus affecting the others.

I'm toying with the idea of trying to run a signle apache but with
multiple tomcats - one per application. Does anyone have any views on 
this
?

Cheers - Steve

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



--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Suggestions needed - customizing authorization

2003-04-01 Thread Barley
Before I dive into hacking a bunch of Tomcat source
code, I would very much like to solicit the opinions of
some more experienced users.

I need a form-login authorization scenario that
integrates with some of my other webapps. Specifically,
I need to know the username, real name and group info
of the person who has logged in.

I used to use Resin, and my solution was something like
this: I created my own custom Authenticator class
(similar to Tomcat Realms). Resin passed the
HttpServletRequest to the Authenticator class. I
queried a MySql database to verify login information,
and then inserted some values from the database into
the HttpSession of the request that was passed. That
way, later on, my apps could look in the session to
find out about arbitrary pieces of information I had
stored about who had logged in.

My initial thought was to create a custom Realm, but I
don't see a way to access the HttpServletRequest that
is seeking authentication. Have I missed something
there?

Does anyone have any other suggestions for
accomplishing what I am trying to do? Is there a way to
access the Principal of a given request after the user
has been authenticated? Would it maybe be possible to
create a custom Principal capable of storing the other
properties I need? Any pointers, suggestions or ideas
would be much appreciated. Also, if you know of any
projects that have already done this, I'd love to check
them out so I'm not reinventing the wheel.

Gregg


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



RE: Seperate tomcats - one apache

2003-04-01 Thread PELOQUIN,JEFFREY (HP-Boise,ex1)
if you remove the vhost for host1 completely from apache to which tomcat do
you get mapped?

-Original Message-
From: John Turner [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 01, 2003 11:10 AM
To: Tomcat Users List
Subject: Re: Seperate tomcats - one apache



It doesn't work at all.  Believe me, I've now spent 14 hours trying to make 
it work.

I posted yesterday exactly what I have done so far (Help with one Apache, 
mod_jk, two Tomcats, no load balancing).

http://host1.com:8080 - Tomcat 1 works great
http://host2.com:8081 - Tomcat 2 works great

Apache Virtual Host host1 (http://host1.com) - Tomcat 1
Apache Virtual Host host2 (http://host2.com) - ALSO Tomcat 1

I've tried many variations of workers.properties, even setting up load- 
balanced workers as suggesting in http://www.ubeans.com/tomcat (private JVM 
section) even though I don't want load-balancing at all.

mod_jk.log:

[Mon Mar 31 16:48:59 2003]  [mod_jk.c (471)]: agsp=80 agsn=host2.com 
hostn=host2.com shostn=host1.com cbsport=0 sport=0
[Mon Mar 31 16:48:59 2003]  [jk_ajp_common.c (1391)]: Into 
jk_worker_t::get_endpoint
...
...
[Mon Mar 31 16:48:59 2003]  [jk_uri_worker_map.c (460)]: Into 
jk_uri_worker_map_t::map_uri_to_worker
[Mon Mar 31 16:48:59 2003]  [jk_uri_worker_map.c (477)]: Attempting to map 
URI '/images/A2_incent.jpg'
[Mon Mar 31 16:48:59 2003]  [jk_uri_worker_map.c (502)]: 
jk_uri_worker_map_t::map_uri_to_worker, Found a context match tomcat1 - /
[Mon Mar 31 16:48:59 2003]  [mod_jk.c (1277)]: Into handler r-proxyreq=0 
r-handler=jakarta-servlet r-notes=1578240 worker=tomcat1
[Mon Mar 31 16:48:59 2003]  [jk_worker.c (132)]: Into 
wc_get_worker_for_name tomcat1
[Mon Mar 31 16:48:59 2003]  [jk_worker.c (136)]: wc_get_worker_for_name, 
done  found a worker

I don't know about you, but line number one there looks pretty fishy to 
me...I have no idea what shostn means (shared host name?), but it 
shouldn't be host1, it should be host2, and the worker found should be 
tomcat2, not tomcat1.

I am definitely open to suggestions on how to make this work, but I can 
tell you that I am no stranger to setting up mod_jk (different port 
numbers, etc), and at this time this DOES NOT work for me with Apache .43, 
Tomcat 4.1.18, Solaris 8, and built-from-source mod_jk.

John

On Tue, 1 Apr 2003 10:46:38 -0700, George Sexton [EMAIL PROTECTED] 
wrote:

 I routinely run via the CATALINA_BASE method for multiple instances and 
 have
 no problems.

 Using mod_jk, all you have to do is define the connectors to be on 
 different
 ports, and then configure each servlet engine to run mod_jk on a 
 different
 port.

 -Original Message-
 From: Steve Harris [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, April 01, 2003 9:46 AM
 To: [EMAIL PROTECTED]
 Subject: Seperate tomcats - one apache


 Hi all,

 I'm having some fun with some applications supplied to us that may be
 casuing a problem wiht each other, i.e. one application may be causing 
 the
 whole tocat environment to fail - thus affecting the others.

 I'm toying with the idea of trying to run a signle apache but with
 multiple tomcats - one per application. Does anyone have any views on 
 this
 ?

 Cheers - Steve


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


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





-- 
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/

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

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



Re: shared resources - a final answer?

2003-04-01 Thread Pat McGroin
Can anyone tell me which is right?
Do shared resources across applications go in $CATALINA_HOME/common or 
$CATALINA_HOME/shared?

The HOWTO doc. says the shared dir. is the place to put these resources.
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html

However, Paul tells me that I need to put jar files under $CATALINA_HOME/common 
directory since they can be seen by both engine and application and that 
$CATALINA_HOME/shared directory are only available to Catalina engine, not my 
applications.
I do not have the WROX book he refers to.

My test worked with a shared JAR file in the common dir. but failed with the JAR file 
in the shared dir. so it appears the doc. is wrong.
Is this a known bug or am I reading the documentation wrong?

Thanks.


-Original Message-
From: Paul Hsu[EMAIL PROTECTED]
To: Pat McGroin[EMAIL PROTECTED]
Date: Mon Mar 31 08:53:29 PST 2003
Subject: Re: shared resources

Todd,

You are right based on HOWTO document. The information I provided to you is
from wrox's professional tomcat book. But your case seems tell us the HOWTO
document is wrong. How do you think?


Paul


- Original Message -
From: Pat McGroin [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Cc: Paul Hsu [EMAIL PROTECTED]
Sent: Monday, March 31, 2003 8:10 AM
Subject: Re: Re: shared resources


 Paul,

 That worked *BUT* the documentation says otherwise:
 http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html

 For classes and resources that must be shared across all web
applications, place unpacked classes and resources under
$CATALINA_HOME/shared/classes, or place JAR files containing those classes
and resources under $CATALINA_HOME/shared/lib.

 This class loader contains additional classes that are made visible to
both Tomcat internal classes and to all web applications. Normally,
application classes should NOT be placed here.

 The $CATALINA_HOME/common/lib contains such JAR files as ant.jar and
servlet.jar so it does not seem like the place for my shared JAR files.

 Is the documentation wrong or is this a bug?
 Or am I just reading the documentation incorrectly?

 Thanks,
 Todd


 -Original Message-
 From: Paul Hsu[EMAIL PROTECTED]
 To: Tomcat Users List[EMAIL PROTECTED]
 Date: Sun Mar 30 19:20:44 PST 2003
 Subject: Re: shared resources

 Todd,
 
 You need to put your jar file under $CATALINA_HOME/common direcotry.
 $CATALINA_HOME/shared directory are only available to Catalina engine,
not
 application but /common can be seen by both engine and application.
 
 Paul
 - Original Message -
 From: Pat McGroin [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Sunday, March 30, 2003 5:32 PM
 Subject: Re: shared resources
 
 
  Craig,
 
  Thanks again for the information.
  The info. you've supplied has been very useful.
  However, my problem remains:
 
  I cannot access the class that resides in a JAR file (utilities.jar) in
 tomcat_home/shared/lib and get a java.lang.NoClassDefFoundError
 
  I am spinning my wheels on this so hopefully some details will shed
some
 light on my problem. I wrote a very simple servlet that attempts to use
the
 class in the shared dir.
 
  
  import com.myco.utilities.CASDate;
  import javax.servlet.http.HttpServlet;
  import javax.servlet.http.HttpServletRequest;
  import javax.servlet.http.HttpServletResponse;
 
  public class Test1 extends HttpServlet {
  //
  public void doGet(HttpServletRequest request, HttpServletResponse
 response) throws javax.servlet.ServletException, java.io.IOException {
 
  System.out.println(GET method of Test1 invloked);
  performTask(request, response);
  }
  //
  public void doPost(HttpServletRequest request, HttpServletResponse
 response) throws javax.servlet.ServletException, java.io.IOException {
 
  System.out.println(POST method of Test1 invloked);
  performTask(request, response);
  }
  /**
  * Test the use of a shared class.
  */
  public void performTask(HttpServletRequest request, HttpServletResponse
 response) {
 
  try {
  java.io.PrintWriter pw = response.getWriter();
  CASDate today = new CASDate();
  pw.println(CASDate today is  + today.toString());
  pw.println(CASDate class loaded...);
  }
  catch(Throwable theException) {
  System.out.println(Error...);
  theException.printStackTrace(System.out);
  }
  }
  }
  
  This is the utility class (some getXXX methods deleted for brevity):
  
  package com.myco.utilities;
 
  import java.util.Calendar;
  import java.util.GregorianCalendar;
 
  public class CASDate {
  private int ccc = 0;
  private int yyy = 0;
  private int mmm = 0;
  private int ddd = 0;
  private int time = 0;
  /**
  * Default constructor is to create CAS date using the current date.
  */
  public CASDate() {
  super();
  GregorianCalendar cal = new GregorianCalendar();
  ccc = 20;
  yyy = cal.get(Calendar.YEAR) - 2000;
  mmm = cal.get(Calendar.MONTH) + 1;
  ddd = cal.get(Calendar.DAY_OF_MONTH);
  }
  /**
  * Return a string in 

Using Ant for tomcat configuration

2003-04-01 Thread srinath narasimhan
Hi

Can Ant be used to configure ( manipulate ) the server.xml in tomcat to
create a host ?


Thanks.
Srinath.


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



  1   2   >