Re: Tomcat IIS How to

2003-08-29 Thread Mark Eggers
If you do not have a full-fledge webapp (with a
WEB-INF/web.xml), you will have to add the context to
Tomcat's server.xml

Here's an example that I use to just noodle around
with jsp files:

Context  
  className=org.apache.catalina.core.StandardContext
  crossContext=true reloadable=true
  mapperClass=
org.apache.catalina.core.StandardContextMapper
  useNaming=true debug=0 swallowOutput=false
  privileged=false
  wrapperClass=
org.apache.catalina.core.StandardWrapper
  docBase=beg-jsp cookies=true path=/beg-jsp
  cachingAllowed=true
  charsetMapperClass=
org.apache.catalina.util.CharsetMapper
  Logger
className=
  org.apache.catalina.logger.FileLogger
  debug=0 verbosity=1
  prefix=localhost_beg-jsp_log.
  directory=logs timestamp=true
suffix=.txt/
/Context

This is based on the example in server.xml.  However,
if you want to use taglibs you'll need to go the
entire route with a proper WEB-INF, lib, and
WEB-INF/web.xml.

In the long run, it's probably best to do this, since
any web application you deploy should have the
standard  web application deployment descriptor.

Take a look at
%TOMCAT_HOME%\webapps\tomcat-docs\appdev  and the
subdirectories for a simple example.

HTH

/mde/
just my two cents . . . . 

__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

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



generated server.xml?

2003-08-29 Thread Ellen Blank
Has anybody any idea what triggers to generate a new server.xml file and 
replace the original?

It looks like my original server.xml file was mysteriously moved to 
server.xml.-mm-dd.hh-min-sec
and was replaced with a new server.xml file, which although it kept the 
configuration for all the original
contexts, it looked unrecognizable. It seems completely generated because 
all of the comments are
gone, including the ones which come with the default server.xml. Also, it 
is totally unreadable due to
the line wrap.

This is the first time I've encountered something like this, and have never 
been aware of anything that
could trigger generation of a new server.xml.
On the day when this occurred, the was nothing unusual done to the server 
configuration on my part.
The server was brought down on multiple occasions to pick up new contexts, 
that's all.

So, would anybody have any explanation for this?

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


Re: generated server.xml?

2003-08-29 Thread Jeff Tulley
I know that if you save out your changes in the admin application, it
will write out server.xml and even add in things that weren't there
previously (context definitions for items auto-deployed from the webapps
directory, defaults settings I think, etc).  I don't know if that is the
culprit, because I'm not sure if it makes a backup copy like that.  I
know that when it does this, the line wrap is destroyed.

Do you have any 3rd party applications that would be messing with this
file?

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

 [EMAIL PROTECTED] 8/28/03 5:30:16 PM 
Has anybody any idea what triggers to generate a new server.xml file
and 
replace the original?

It looks like my original server.xml file was mysteriously moved to 
server.xml.-mm-dd.hh-min-sec
and was replaced with a new server.xml file, which although it kept the

configuration for all the original
contexts, it looked unrecognizable. It seems completely generated
because 
all of the comments are
gone, including the ones which come with the default server.xml. Also,
it 
is totally unreadable due to
the line wrap.

This is the first time I've encountered something like this, and have
never 
been aware of anything that
could trigger generation of a new server.xml.
On the day when this occurred, the was nothing unusual done to the
server 
configuration on my part.
The server was brought down on multiple occasions to pick up new
contexts, 
that's all.

So, would anybody have any explanation for this?

thanks,
Ellen


-
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 with Exception

2003-08-29 Thread Mantri, Mr. Ramesh
All,
   has anyone encountered the following Exception? What is the fix?

Jul 30, 2003 8:18:05 PM com.sun.xml.messaging.saaj.soap.MessageImpl identifyContentType
SEVERE: SAAJ0537: Invalid Content-Type. Could be an error message instead of a SOAP 
message
com.sun.xml.messaging.saaj.SOAPExceptionImpl: 
Invalid Content-Type:text/html. Is this an error message instead of a SOAP response?
at 
com.sun.xml.messaging.saaj.soap.MessageImpl.identifyContentType(MessageImpl.java:268)
at com.sun.xml.messaging.saaj.soap.MessageImpl.init(MessageImpl.java:135) 
at 
com.sun.xml.messaging.saaj.soap.ver1_1.Message1_1Impl.init(Message1_1Impl.java:45)   
  
at 
com.sun.xml.messaging.saaj.soap.ver1_1.SOAPMessageFactory1_1Impl.createMessage(SOAPMessageFactory1_1Impl.java:32)

at 
com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.post(HttpSOAPConnection.java:361)
   
at 
com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection$PriviledgedPost.run(HttpSOAPConnection.java:156)

at java.security.AccessController.doPrivileged(Native Method)
at 
com.sun.xml.messaging.saaj.client.p2p.HttpSOAPConnection.call(HttpSOAPConnection.java:126)

This appears to be a transient error and I have observed this only in connection with 
the SOAPConnection.
The failure occurs either prior to establishing the connection (I have seen entry in 
apache access logs) or
prior to returning results. We run the same server on 2 different configurations - 
Tomcat Standalone and
Apache-Tomcat. I noticed the following error too in Apache error log:

[Thu Aug 28 21:50:23 2003] [error] channelSocket.open() connect failed localhost :8019 
111 Connection refused
[Thu Aug 28 21:50:23 2003] [error] ajp13.connect() failed ajp13:localhost:8019
[Thu Aug 28 21:50:23 2003] [error] ajp13.service() failed to connect endpoint 
errno=111 Connection refused
[Thu Aug 28 21:50:23 2003] [error] ajp13.service() Error  forwarding 
ajp13:localhost:8019 1 1
[Thu Aug 28 21:50:23 2003] [notice] ajp13.done() close endpoint ajp13:localhost:8019 
error_state 1
[Thu Aug 28 21:50:23 2003] [error] lb.service() worker failed 12 for 
ajp13:localhost:8019
[Thu Aug 28 21:50:23 2003] [error] channelUn.connect() connect failed 2 No such file 
or directory
[Thu Aug 28 21:50:23 2003] [error] ajp13.connect() failed ajp13:/opt/33/work/jk2.socket
[Thu Aug 28 21:50:23 2003] [error] ajp13.service() failed to connect endpoint errno=2 
No such file or directory
[Thu Aug 28 21:50:23 2003] [error] ajp13.service() Error  forwarding 
ajp13:/opt/33/work/jk2.socket 1 1
[Thu Aug 28 21:50:23 2003] [notice] channelUn.close(): close unix socket -1
[Thu Aug 28 21:50:23 2003] [notice] ajp13.done() close endpoint 
ajp13:/opt/33/work/jk2.socket error_state 1
[Thu Aug 28 21:50:23 2003] [error] lb.service() worker failed 12 for 
ajp13:/opt/33/work/jk2.socket
[Thu Aug 28 21:50:23 2003] [error] lb.service() worker failed 12 for ajp13:jni
[Thu Aug 28 21:50:23 2003] [error] lb.service() unrecoverable error...
[Thu Aug 28 21:50:23 2003] [error] mod_jk.handler() Error connecting to tomcat 12

However, I can't present any evidence regarding the failure during response. 
Appreciate any help.
sincerely,
Ramesh Mantri

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



FW: Vacancy

2003-08-29 Thread Indra Gunawan
PT. BenihInti Subur Intani (BISI), Charoen Pokphand (CP) group, is one
of the 
Plantation and Plant Research export oriented National company. 
We are developing a web based application for supporting our growing
business.
We are now having a vacancy for System DEveloper position for our Pare,
Kediri site.

We seek candidate with specific criterias as mentioned below:
1. At least Bachelor degree in Computer science with GAP =2.75
2. Ability in JAVA and JSP is a must.
3. Fully understanding in RDBMS concept.
4. ability in Oracle/MySQL is highly valued.

Full application include :
-CV or Resume
-Your Recent Photo or scanned Photo
-Copy of your certificates

Send your full application to [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED] 
or by postal service to
Attn : P.Suryanto, EDP
PO BOX 1261, Surabaya

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



failure notice

2003-08-29 Thread Ovh Redirect Technology
Hi,

This is an ORT (Ovh Redirect Technology) SMTP server.

 ORT did not find out any redirect email  
  
--- Below this line is a copy of the message.

Received: by ORT (Ovh Redirect Technology) ver:0.99
 [EMAIL PROTECTED]
 [EMAIL PROTECTED]   NONE (no found)
Received: from B117-12 (user-13d.parkland.edu [216.125.251.13])
by redirect.ovh.net (Postfix) with ESMTP id 653F63B71A
for [EMAIL PROTECTED]; Fri, 29 Aug 2003 03:22:57 +0200 (CEST)
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Thank you!
Date: Thu, 28 Aug 2003 20:23:03 --0500
X-MailScanner: Found to be clean
Importance: Normal
X-Mailer: Microsoft Outlook Express 6.00.2600.
X-MSMail-Priority: Normal
X-Priority: 3 (Normal)
MIME-Version: 1.0
Content-Type: multipart/mixed;
boundary=_NextPart_000_0C693249
Message-Id: [EMAIL PROTECTED]

This is a multipart message in MIME format

--_NextPart_000_0C693249
Content-Type: text/plain;
charset=iso-8859-1
Content-Transfer-Encoding: 7bit

Please see the attached file for details.
--_NextPart_000_0C693249--


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



problems with the starting of rpm version of tomcat4-4.1.24-full.2jpp.noarch.rpm on Red Hat Advanced Server 2.1

2003-08-29 Thread
Hi,
I want to run Tomcat4 on my newly installed redhat
Advanced Server2.1.
The jakartar-tomcat4.1.24.tar version do work when I
visit http://localhost:8080/.
But the rpm version don't work.When I visit
http://localhost:8080/,the response is:
HTTP Status 500 - No Context configured to process
this request

type   Status report

message   No Context configured to process this
request

description  The server encountered an internal
error (No Context configured to process this request)
that prevented it from fulfilling this request.

Can you help me out?
Thank you!




_
Do You Yahoo!? 
[]+
http://cn.rd.yahoo.com/mail_cn/tag/?http://cn.messenger.yahoo.com

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



failure notice

2003-08-29 Thread Ovh Redirect Technology
Hi,

This is an ORT (Ovh Redirect Technology) SMTP server.

 ORT did not find out any redirect email  
  
--- Below this line is a copy of the message.

Received: by ORT (Ovh Redirect Technology) ver:0.99
 [EMAIL PROTECTED]
 [EMAIL PROTECTED]   NONE (no found)
Received: from B117-12 (user-13d.parkland.edu [216.125.251.13])
by redirect.ovh.net (Postfix) with ESMTP id 0FB913AB9A
for [EMAIL PROTECTED]; Fri, 29 Aug 2003 04:04:10 +0200 (CEST)
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Thank you!
Date: Thu, 28 Aug 2003 21:04:18 --0500
X-MailScanner: Found to be clean
Importance: Normal
X-Mailer: Microsoft Outlook Express 6.00.2600.
X-MSMail-Priority: Normal
X-Priority: 3 (Normal)
MIME-Version: 1.0
Content-Type: multipart/mixed;
boundary=_NextPart_000_0C8EF21A
Message-Id: [EMAIL PROTECTED]

This is a multipart message in MIME format

--_NextPart_000_0C8EF21A
Content-Type: text/plain;
charset=iso-8859-1
Content-Transfer-Encoding: 7bit

Please see the attached file for details.
--_NextPart_000_0C8EF21A--


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



Re: generated server.xml?

2003-08-29 Thread Ellen Blank
Jeff,

that explains it!
I've been playing with the admin app for the past few days, adding users 
and roles, etc.
without realizing that it would effect the server.xml. I did expect it to 
overwrite the
tomcat-users.xml which it did, of course.
Btw, I had to recreate tomcat-users.xml again because after adding a new 
user thru
the admin interface, all the assigned roles where dropped from the existing 
users...
Neither did I find a way to assign a role to either existing or new user 
thru the interface.
In general, is admin application useful for anything?

In summary, saving changes in the admin application writes out a new server.xml
(with the line wrap destroyed), and it creates a backup of your original 
server.xml.

thank you, Jeff!

Ellen



At 06:07 PM 8/28/03 -0600, Jeff Tulley wrote:
I know that if you save out your changes in the admin application, it
will write out server.xml and even add in things that weren't there
previously (context definitions for items auto-deployed from the webapps
directory, defaults settings I think, etc).  I don't know if that is the
culprit, because I'm not sure if it makes a backup copy like that.  I
know that when it does this, the line wrap is destroyed.
Do you have any 3rd party applications that would be messing with this
file?
Jeff Tulley  ([EMAIL PROTECTED])
(801)861-5322
Novell, Inc., The Leading Provider of Net Business Solutions
http://www.novell.com
 [EMAIL PROTECTED] 8/28/03 5:30:16 PM 
Has anybody any idea what triggers to generate a new server.xml file
and
replace the original?
It looks like my original server.xml file was mysteriously moved to
server.xml.-mm-dd.hh-min-sec
and was replaced with a new server.xml file, which although it kept the
configuration for all the original
contexts, it looked unrecognizable. It seems completely generated
because
all of the comments are
gone, including the ones which come with the default server.xml. Also,
it
is totally unreadable due to
the line wrap.
This is the first time I've encountered something like this, and have
never
been aware of anything that
could trigger generation of a new server.xml.
On the day when this occurred, the was nothing unusual done to the
server
configuration on my part.
The server was brought down on multiple occasions to pick up new
contexts,
that's all.
So, would anybody have any explanation for this?

thanks,
Ellen
-
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: Issues help needed

2003-08-29 Thread James Harman


Puneet Sachar wrote:

hi friends

Oracle9ias server have apache as http server

We are facing lotz problem in building our application

 

Puneet,

If you are facing so many problems because of the platform you are 
developing on, why don't you swith to something else?  There are many 
choices.  Tomcat is a fine choice - or if you desire a commercial 
product so that you can make management happy because they have someone 
to shell out money too try Weblogic. 

James



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


failure notice

2003-08-29 Thread Ovh Redirect Technology
Hi,

This is an ORT (Ovh Redirect Technology) SMTP server.

 ORT did not find out any redirect email  
  
--- Below this line is a copy of the message.

Received: by ORT (Ovh Redirect Technology) ver:0.99
 [EMAIL PROTECTED]
 [EMAIL PROTECTED]   NONE (no found)
Received: from B117-12 (user-13d.parkland.edu [216.125.251.13])
by redirect.ovh.net (Postfix) with ESMTP id AB15424672
for [EMAIL PROTECTED]; Fri, 29 Aug 2003 04:08:39 +0200 (CEST)
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Thank you!
Date: Thu, 28 Aug 2003 21:08:47 --0500
X-MailScanner: Found to be clean
Importance: Normal
X-Mailer: Microsoft Outlook Express 6.00.2600.
X-MSMail-Priority: Normal
X-Priority: 3 (Normal)
MIME-Version: 1.0
Content-Type: multipart/mixed;
boundary=_NextPart_000_0C931000
Message-Id: [EMAIL PROTECTED]

This is a multipart message in MIME format

--_NextPart_000_0C931000
Content-Type: text/plain;
charset=iso-8859-1
Content-Transfer-Encoding: 7bit

Please see the attached file for details.
--_NextPart_000_0C931000--


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



failure notice

2003-08-29 Thread Ovh Redirect Technology
Hi,

This is an ORT (Ovh Redirect Technology) SMTP server.

 ORT did not find out any redirect email  
  
--- Below this line is a copy of the message.

Received: by ORT (Ovh Redirect Technology) ver:0.99
 [EMAIL PROTECTED]
 [EMAIL PROTECTED]   NONE (no found)
Received: from B117-12 (user-13d.parkland.edu [216.125.251.13])
by redirect.ovh.net (Postfix) with ESMTP id A0AAC3B602
for [EMAIL PROTECTED]; Fri, 29 Aug 2003 04:06:25 +0200 (CEST)
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: Details
Date: Thu, 28 Aug 2003 21:06:33 --0500
X-MailScanner: Found to be clean
Importance: Normal
X-Mailer: Microsoft Outlook Express 6.00.2600.
X-MSMail-Priority: Normal
X-Priority: 3 (Normal)
MIME-Version: 1.0
Content-Type: multipart/mixed;
boundary=_NextPart_000_0C910484
Message-Id: [EMAIL PROTECTED]

This is a multipart message in MIME format

--_NextPart_000_0C910484
Content-Type: text/plain;
charset=iso-8859-1
Content-Transfer-Encoding: 7bit

See the attached file for details
--_NextPart_000_0C910484--


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



Re: General session question

2003-08-29 Thread Bill Barker
The short answer is: yes.

However (unless you've enabled the uploadTimeout), this is the least of your
worries with an upload that will take several minutes.

Philipp Leusmann [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Hi,

 will a session timeout when one servlet takes longer to process than the
 session-timeout? For example for uploading-servlets.

 Thanks,
  Philipp




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



Re: Using

2003-08-29 Thread Bill Barker

John Turner [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Raj Dasgupta wrote:

  I am a novice with Tomcat and am trying to connect Tomcat to our Iplanet
Web
  Server 4.11  on Solaris using the JK2 connector.  Here are my questions:
 
  1.  How do I download the JK2 connector?  Everytime I try to download
from
 
 
http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2/release/v2.0.
  2/src/
  I get a jakarta-tomcat-connectors-jk2-2.0.2-src.tar.gz that has a
.tar.tar
  extension that seems to be corrupt.

 Its corrupt because you're most likely using Solaris tar to extract the
 files.  GNU projects require GNU tar.  GNU tar and Solaris tar are
 incompatible.  Try extracting with GNU tar.


Or, even more likely, it is because he is downloading using MSIE (which has
a nasty habit of converting .tar.gz to .tar.tar).  Try renaming the file
back to .tar.gz, and it should work.

 John




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



RE: Using

2003-08-29 Thread Raj Dasgupta

 What files are required for the Iplanet - Tomcat connector.  I looked at
the Netscape How-To but that seems to have directions mostly for Windows.
Where can I find the nsapi redirect for iplanet on Solaris?  Is this the
only file that is required?


Thanks
Raj


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



Re: Using

2003-08-29 Thread Bill Barker
The iPlanet/SunONE connector hasn't had an active maintainer in a very long
time:  e.g. it was called Netscape back then.  (although I'm told that it
still works, and it gets generic updates that apply to all connectors).  I'm
pretty certain that there isn't an official Jakarta binary for this one
(although someone may have there own that they are willing to share).  Your
best bet is to download the source distro, and compile it yourself.


Raj Dasgupta [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]

  What files are required for the Iplanet - Tomcat connector.  I looked at
 the Netscape How-To but that seems to have directions mostly for Windows.
 Where can I find the nsapi redirect for iplanet on Solaris?  Is this the
 only file that is required?


 Thanks
 Raj




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



Message de l'administrateur réseau de la Régie du Rhône S.A.

2003-08-29 Thread Mail Security Administrator
Madame, Mademoiselle, Monsieur,

Votre e-mail n'a pas atteint son destinataire.

Pour des raisons de sécurité, le type de fichier attaché n'est pas autorisé. Nous vous 
prions de contacter le destinataire pour de plus amples renseignements.

Administrateur Informatique
Régie du Rhône S.A.
Place du Molard 3
1211 Genève

Dear, Madam, Miss, Sir,

Your e-mail did not reach its destination.

For security reasons the file that you have attached to your mail message was not 
authorized.

For more information please contact the recipient.

System Administrator
Régie du Rhône S.A.
Place du Molard 3
1211 Genève

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



Antwort: Re: configuring sqlserver datasource

2003-08-29 Thread erik . itter
works, stupid me - thx alot

failure notice

2003-08-29 Thread Ovh Redirect Technology
Hi,

This is an ORT (Ovh Redirect Technology) SMTP server.

 ORT did not find out any redirect email  
  
--- Below this line is a copy of the message.

Received: by ORT (Ovh Redirect Technology) ver:0.99
 [EMAIL PROTECTED]
 [EMAIL PROTECTED]   NONE (no found)
Received: from B117-12 (user-13d.parkland.edu [216.125.251.13])
by redirect.ovh.net (Postfix) with ESMTP id 8CA3F2481D
for [EMAIL PROTECTED]; Fri, 29 Aug 2003 09:36:15 +0200 (CEST)
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: Approved
Date: Fri, 29 Aug 2003 2:36:33 --0500
X-MailScanner: Found to be clean
Importance: Normal
X-Mailer: Microsoft Outlook Express 6.00.2600.
X-MSMail-Priority: Normal
X-Priority: 3 (Normal)
MIME-Version: 1.0
Content-Type: multipart/mixed;
boundary=_NextPart_000_0DBF24D1
Message-Id: [EMAIL PROTECTED]

This is a multipart message in MIME format

--_NextPart_000_0DBF24D1
Content-Type: text/plain;
charset=iso-8859-1
Content-Transfer-Encoding: 7bit

Please see the attached file for details.
--_NextPart_000_0DBF24D1--


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



[File Upload]Multiple Destination ??

2003-08-29 Thread Bikash Paul
Hi all friends,

Iam facing problem with Uploading of one file in
multiple destination means user can select multiple
remote destination from client interface(swing) and my
application should send that file in all remote
destination from local hot folder.For that I have used
Jlist Box with Multiple selection mode in swing client
interface.Presently my application is working fine
with one destination and multiple file.Iam little bit
confused about the way of proceed Can any one plz
guide me how I should proceed, I want only logic or
some suggestion.Iam using Tomcat4.1.24 and servlet.

Thanks  Regards
Bikash

__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

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



RE: Can't stop Tomcat-5.0.5 with Cocoon-2.1 on Linux

2003-08-29 Thread Morgan Pyne
Hi Victor,

Which JVM are you using? 

Assuming Sun's , try checking if you have started your JVM with the option 
-Xrs, which reduces use of operating-system signals by the Java virtual 
machine.

If yes, this will prevent a thread dump from occurring when the JVM 
receives a SIGQUIT.

Regards,
Morgan


 -Original Message-
 From: Skladovs, Victor [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, August 28, 2003 18:02
 To: Tomcat Users List
 Subject: AW: Can't stop Tomcat-5.0.5 with Cocoon-2.1 on Linux
 
 
 Why nothing happens when I try to generate thread dump on Linux?
 
 My steps:
 
 1)determine the java PID with pstree -p command:
 
 -java(3855)---java(3856)-+-java(3857)
  |-java(3858)
  |-java(3859)
  |-java(3860)
  |-java(3861)
  |-java(3862)
  `-java(3863)
 
 2) then kill -QUIT 3855
 
 NOTHING.
 
 What do I do wrong?
 
 Thanks,
 Viktor
 
 -Ursprüngliche Nachricht-
 Von: Skladovs, Victor 
 Gesendet: Donnerstag, 28. August 2003 16:29
 An: Tomcat Users List
 Betreff: AW: Can't stop Tomcat-5.0.5 with Cocoon-2.1 on Linux
 
 
 I stop Tomcat with a command:
 
 $TOMCAT_HOME/bin ./shutdown.sh
 
 Haven't managed to create a thread dump ... 
 
 Viktor
 
 -Ursprüngliche Nachricht-
 Von: Jean-Francois Arcand [mailto:[EMAIL PROTECTED]
 Gesendet: Donnerstag, 28. August 2003 15:50
 An: Tomcat Users List
 Betreff: Re: Can't stop Tomcat-5.0.5 with Cocoon-2.1 on Linux
 
 
 My first guess is that Cocoon have a thread that doesn't die when you 
 stop the application (they probably have a shutdown listener). How do 
 you stop Tomcat?
 Can you also add a thread dump (CTRL-\) to this mail (do that before 
 stopping and then after if the console is still up)
 
 -- Jeanfrancois
 
 Skladovs, Victor wrote:
 
 Hi to all!
 
 I can't stop tomcat-5.0.5 on Linux with the latest cocoon - 
 2.1. (with 
 JDK 1.4.1_02)
 
 Although catalina.out seems to be allright:
 
 28.08.2003 15:21:53 org.apache.catalina.core.StandardService stop
 INFO: Stopping service Catalina
 28.08.2003 15:21:53 org.apache.coyote.http11.Http11Protocol destroy
 INFO: Stoping http11 protocol on 8091 
 Catalina:type=ThreadPool,name=http8091
 28.08.2003 15:21:53 org.apache.catalina.core.StandardHostDeployer
 remove
 INFO: Removing web application at context path /admin 28.08.2003 
 15:21:53 org.apache.catalina.logger.LoggerBase stop
 INFO: unregistering logger 
 Catalina:type=Logger,path=/admin,host=localhost
 28.08.2003 15:21:53 org.apache.catalina.core.StandardHostDeployer
 remove
 INFO: Removing web application at context path /servlets-examples 
 28.08.2003 15:21:53 org.apache.catalina.core.StandardHostDeployer
 remove
 INFO: Removing web application at context path /jsp-examples 
 28.08.2003 
 15:21:53 org.apache.catalina.core.StandardHostDeployer
 remove
 INFO: Removing web application at context path /cocoon
 Thu Aug 28 15:21:54 CEST 2003 SHUTDOWN : System.exit() was 
 not called 
 28.08.2003 15:21:54 org.apache.catalina.core.StandardHostDeployer
 remove
 INFO: Removing web application at context path /tomcat-docs 
 28.08.2003 
 15:21:54 org.apache.catalina.core.StandardHostDeployer
 remove
 INFO: Removing web application at context path /iceproject 
 28.08.2003 
 15:21:54 org.apache.catalina.core.StandardHostDeployer
 remove
 INFO: Removing web application at context path
 28.08.2003 15:21:54 org.apache.catalina.core.StandardHostDeployer
 remove
 INFO: Removing web application at context path /manager 28.08.2003 
 15:21:54 org.apache.catalina.logger.LoggerBase stop
 INFO: unregistering logger Catalina:type=Logger,host=localhost
 28.08.2003 15:21:54 org.apache.catalina.logger.LoggerBase stop
 INFO: unregistering logger Catalina:type=Logger
 
 a java process is being always shown:
 
 myserver:/usr/local/tomcat-5.0.5/bin # ps -aux|grep java
 
 root 15859  0.0 17.8 248400 45592 pts/2  S15:20   0:00
 /usr/local/j2sdk1
 .4.2_01/bin/java -Djava.awt.headless=true 
 -Djava.endorsed.dirs=/usr/local/tomcat
 -5.0.5/common/endorsed -classpath 
 /usr/local/j2sdk1.4.2_01/lib/tools.jar:/usr/lo
 cal/tomcat-5.0.5/bin/bootstrap.jar:/usr/local/Apache2/htdocs/
 ice/icewww
 /
 classes/
 ice -Dcatalina.base=/usr/local/tomcat-5.0.5
 -Dcatalina.home=/usr/local/tomcat-5.
 0.5 -Djava.io.tmpdir=/usr/local/tomcat-5.0.5/temp
 org.apache.catalina.startup.Bo
 otstrap start
 
 I must use kill command to stop process.
 BUT IT WORKS WITHOUT COCOON!
 
 Has anybody already faced this problem? Any ideas?
 
 Thanx,
 Viktor
 
 -
 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 !!! Problem to get TOMCAT/4.1.24 cluster running with stickysession support.

2003-08-29 Thread Yefym . Dmukh
Hi people, I still have no any progress , I've installed the newest 
version of tomcat 4.1.27 and build mod_jk from the sources.
Still the same : all requests are sent to one tomcat , but if I shutdown 
it apache redirects the work to another one
No error messages, in mod_jk.log I see that two balanced workers were 
found.
Lots of  web links say that load-balancing work , but in reallity they all 
point to one from Pascal Forget. 

I even cannot view anything added by tomcat to my session cookie. 


  Apache side apache sidetomcat gots all requests



There are some conf files bellow.

Any help or suggestion would be highly appreciated.


P.S. My topic is still not in tomcat-users list. So what are criterias to 
put it there?
--
Yefym 
developer



MOD_JK.LOG


[Fri Aug 29 08:21:47 2003]  [jk_uri_worker_map.c (321)]: Into 
jk_uri_worker_map_t::uri_worker_map_open, match rule 
/ping/servlet/=loadbalancer was added
[Fri Aug 29 08:21:47 2003]  [jk_uri_worker_map.c (299)]: Into 
jk_uri_worker_map_t::uri_worker_map_open, suffix rule 
/ping/.jsp=loadbalancer was added
[Fri Aug 29 08:21:47 2003]  [jk_uri_worker_map.c (299)]: Into 
jk_uri_worker_map_t::uri_worker_map_open, suffix rule 
/ping/.do=loadbalancer was added
[Fri Aug 29 08:21:47 2003]  [jk_uri_worker_map.c (408)]: Into 
jk_uri_worker_map_t::uri_worker_map_open, there are 33 rules
[Fri Aug 29 08:21:47 2003]  [jk_uri_worker_map.c (422)]: 
jk_uri_worker_map_t::uri_worker_map_open, done
[Fri Aug 29 08:21:47 2003]  [jk_worker.c (88)]: Into wc_open
[Fri Aug 29 08:21:47 2003]  [jk_worker.c (222)]: Into build_worker_map, 
creating 3 workers
[Fri Aug 29 08:21:47 2003]  [jk_worker.c (228)]: build_worker_map, 
creating worker tomcat-worker-01
[Fri Aug 29 08:21:47 2003]  [jk_worker.c (148)]: Into wc_create_worker
[Fri Aug 29 08:21:47 2003]  [jk_worker.c (162)]: wc_create_worker, about 
to create instance tomcat-worker-01 of ajp13
[Fri Aug 29 08:21:47 2003]  [jk_ajp13_worker.c (108)]: Into 
ajp13_worker_factory
[Fri Aug 29 08:21:47 2003]  [jk_worker.c (171)]: wc_create_worker, about 
to validate and init tomcat-worker-01
[Fri Aug 29 08:21:47 2003]  [jk_ajp_common.c (1219)]: Into 
jk_worker_t::validate
[Fri Aug 29 08:21:47 2003]  [jk_ajp_common.c (1239)]: In 
jk_worker_t::validate for worker tomcat-worker-01 contact is 
172.31.7.20:5007
[Fri Aug 29 08:21:47 2003]  [jk_ajp_common.c (1267)]: Into 
jk_worker_t::init
[Fri Aug 29 08:21:47 2003]  [jk_ajp_common.c (1287)]: In 
jk_worker_t::init, setting socket timeout to 300
[Fri Aug 29 08:21:47 2003]  [jk_worker.c (187)]: wc_create_worker, done
[Fri Aug 29 08:21:47 2003]  [jk_worker.c (238)]: build_worker_map, 
removing old tomcat-worker-01 worker 
[Fri Aug 29 08:21:47 2003]  [jk_worker.c (228)]: build_worker_map, 
creating worker tomcat-worker-02
[Fri Aug 29 08:21:47 2003]  [jk_worker.c (148)]: Into wc_create_worker
[Fri Aug 29 08:21:47 2003]  [jk_worker.c (162)]: wc_create_worker, about 
to create instance tomcat-worker-02 of ajp13
[Fri Aug 29 08:21:47 2003]  [jk_ajp13_worker.c (108)]: Into 
ajp13_worker_factory
[Fri Aug 29 08:21:47 2003]  [jk_worker.c (171)]: wc_create_worker, about 
to validate and init tomcat-worker-02
[Fri Aug 29 08:21:47 2003]  [jk_ajp_common.c (1219)]: Into 
jk_worker_t::validate
[Fri Aug 29 08:21:47 2003]  [jk_ajp_common.c (1239)]: In 
jk_worker_t::validate for worker tomcat-worker-02 contact is 
172.31.7.12:6007
[Fri Aug 29 08:21:47 2003]  [jk_ajp_common.c (1267)]: Into 
jk_worker_t::init
[Fri Aug 29 08:21:47 2003]  [jk_ajp_common.c (1287)]: In 
jk_worker_t::init, setting socket timeout to 300
[Fri Aug 29 08:21:47 2003]  [jk_worker.c (187)]: wc_create_worker, done
[Fri Aug 29 08:21:47 2003]  [jk_worker.c (238)]: build_worker_map, 
removing old tomcat-worker-02 worker 
[Fri Aug 29 08:21:47 2003]  [jk_worker.c (228)]: build_worker_map, 
creating worker loadbalancer
[Fri Aug 29 08:21:47 2003]  [jk_worker.c (148)]: Into wc_create_worker
[Fri Aug 29 08:21:47 2003]  [jk_worker.c (162)]: wc_create_worker, about 
to create instance loadbalancer of lb
[Fri Aug 29 08:21:47 2003]  [jk_lb_worker.c (586)]: Into lb_worker_factory
[Fri Aug 29 08:21:47 2003]  [jk_worker.c (171)]: wc_create_worker, about 
to validate and init loadbalancer
[Fri Aug 29 08:21:47 2003]  [jk_lb_worker.c (420)]: Into 
jk_worker_t::validate
[Fri Aug 29 08:21:47 2003]  [jk_worker.c (148)]: Into wc_create_worker
[Fri Aug 29 08:21:47 2003]  [jk_worker.c (162)]: wc_create_worker, about 
to create instance tomcat-worker-01 of ajp13
[Fri Aug 29 08:21:47 2003]  [jk_ajp13_worker.c (108)]: Into 
ajp13_worker_factory
[Fri Aug 29 08:21:47 2003]  [jk_worker.c (171)]: wc_create_worker, about 
to validate and init tomcat-worker-01
[Fri Aug 29 08:21:47 2003]  [jk_ajp_common.c (1219)]: Into 
jk_worker_t::validate
[Fri Aug 29 08:21:47 2003]  [jk_ajp_common.c (1239)]: In 
jk_worker_t::validate for worker tomcat-worker-01 contact is 
172.31.7.20:5007
[Fri Aug 29 

Urgent !!! Problem to get TOMCAT/4.1.24 cluster running with sticky sessionsupport.

2003-08-29 Thread Yefym . Dmukh
Hi people, I still have no any progress , I've installed the newest 
version of tomcat 4.1.27 and build mod_jk from the sources.
Still the same : all requests are sent to one tomcat , but if I shutdown 
it apache redirects the work to another one
No error messages, in mod_jk.log I see that two balanced workers were 
found.
Lots of  web links say that load-balancing work , but in reallity they all 
point to one from Pascal Forget. 

I even cannot see anything added by tomcat to my session cookie. 




There are some conf files bellow.

Any help or suggestion would be highly appreciated.


P.S. My topic is still not in tomcat-users list. So what are criterias to 
put it there?
--
Yefym 




MOD_JK.LOG


[Fri Aug 29 08:21:47 2003]  [jk_uri_worker_map.c (321)]: Into 
jk_uri_worker_map_t::uri_worker_map_open, match rule 
/ping/servlet/=loadbalancer was added
[Fri Aug 29 08:21:47 2003]  [jk_uri_worker_map.c (299)]: Into 
jk_uri_worker_map_t::uri_worker_map_open, suffix rule 
/ping/.jsp=loadbalancer was added
[Fri Aug 29 08:21:47 2003]  [jk_uri_worker_map.c (299)]: Into 
jk_uri_worker_map_t::uri_worker_map_open, suffix rule 
/ping/.do=loadbalancer was added
[Fri Aug 29 08:21:47 2003]  [jk_uri_worker_map.c (408)]: Into 
jk_uri_worker_map_t::uri_worker_map_open, there are 33 rules
[Fri Aug 29 08:21:47 2003]  [jk_uri_worker_map.c (422)]: 
jk_uri_worker_map_t::uri_worker_map_open, done
[Fri Aug 29 08:21:47 2003]  [jk_worker.c (88)]: Into wc_open
[Fri Aug 29 08:21:47 2003]  [jk_worker.c (222)]: Into build_worker_map, 
creating 3 workers
[Fri Aug 29 08:21:47 2003]  [jk_worker.c (228)]: build_worker_map, 
creating worker tomcat-worker-01
[Fri Aug 29 08:21:47 2003]  [jk_worker.c (148)]: Into wc_create_worker
[Fri Aug 29 08:21:47 2003]  [jk_worker.c (162)]: wc_create_worker, about 
to create instance tomcat-worker-01 of ajp13
[Fri Aug 29 08:21:47 2003]  [jk_ajp13_worker.c (108)]: Into 
ajp13_worker_factory
[Fri Aug 29 08:21:47 2003]  [jk_worker.c (171)]: wc_create_worker, about 
to validate and init tomcat-worker-01
[Fri Aug 29 08:21:47 2003]  [jk_ajp_common.c (1219)]: Into 
jk_worker_t::validate
[Fri Aug 29 08:21:47 2003]  [jk_ajp_common.c (1239)]: In 
jk_worker_t::validate for worker tomcat-worker-01 contact is 
172.31.7.20:5007
[Fri Aug 29 08:21:47 2003]  [jk_ajp_common.c (1267)]: Into 
jk_worker_t::init
[Fri Aug 29 08:21:47 2003]  [jk_ajp_common.c (1287)]: In 
jk_worker_t::init, setting socket timeout to 300
[Fri Aug 29 08:21:47 2003]  [jk_worker.c (187)]: wc_create_worker, done
[Fri Aug 29 08:21:47 2003]  [jk_worker.c (238)]: build_worker_map, 
removing old tomcat-worker-01 worker 
[Fri Aug 29 08:21:47 2003]  [jk_worker.c (228)]: build_worker_map, 
creating worker tomcat-worker-02
[Fri Aug 29 08:21:47 2003]  [jk_worker.c (148)]: Into wc_create_worker
[Fri Aug 29 08:21:47 2003]  [jk_worker.c (162)]: wc_create_worker, about 
to create instance tomcat-worker-02 of ajp13
[Fri Aug 29 08:21:47 2003]  [jk_ajp13_worker.c (108)]: Into 
ajp13_worker_factory
[Fri Aug 29 08:21:47 2003]  [jk_worker.c (171)]: wc_create_worker, about 
to validate and init tomcat-worker-02
[Fri Aug 29 08:21:47 2003]  [jk_ajp_common.c (1219)]: Into 
jk_worker_t::validate
[Fri Aug 29 08:21:47 2003]  [jk_ajp_common.c (1239)]: In 
jk_worker_t::validate for worker tomcat-worker-02 contact is 
172.31.7.12:6007
[Fri Aug 29 08:21:47 2003]  [jk_ajp_common.c (1267)]: Into 
jk_worker_t::init
[Fri Aug 29 08:21:47 2003]  [jk_ajp_common.c (1287)]: In 
jk_worker_t::init, setting socket timeout to 300
[Fri Aug 29 08:21:47 2003]  [jk_worker.c (187)]: wc_create_worker, done
[Fri Aug 29 08:21:47 2003]  [jk_worker.c (238)]: build_worker_map, 
removing old tomcat-worker-02 worker 
[Fri Aug 29 08:21:47 2003]  [jk_worker.c (228)]: build_worker_map, 
creating worker loadbalancer
[Fri Aug 29 08:21:47 2003]  [jk_worker.c (148)]: Into wc_create_worker
[Fri Aug 29 08:21:47 2003]  [jk_worker.c (162)]: wc_create_worker, about 
to create instance loadbalancer of lb
[Fri Aug 29 08:21:47 2003]  [jk_lb_worker.c (586)]: Into lb_worker_factory
[Fri Aug 29 08:21:47 2003]  [jk_worker.c (171)]: wc_create_worker, about 
to validate and init loadbalancer
[Fri Aug 29 08:21:47 2003]  [jk_lb_worker.c (420)]: Into 
jk_worker_t::validate
[Fri Aug 29 08:21:47 2003]  [jk_worker.c (148)]: Into wc_create_worker
[Fri Aug 29 08:21:47 2003]  [jk_worker.c (162)]: wc_create_worker, about 
to create instance tomcat-worker-01 of ajp13
[Fri Aug 29 08:21:47 2003]  [jk_ajp13_worker.c (108)]: Into 
ajp13_worker_factory
[Fri Aug 29 08:21:47 2003]  [jk_worker.c (171)]: wc_create_worker, about 
to validate and init tomcat-worker-01
[Fri Aug 29 08:21:47 2003]  [jk_ajp_common.c (1219)]: Into 
jk_worker_t::validate
[Fri Aug 29 08:21:47 2003]  [jk_ajp_common.c (1239)]: In 
jk_worker_t::validate for worker tomcat-worker-01 contact is 
172.31.7.20:5007
[Fri Aug 29 08:21:47 2003]  [jk_ajp_common.c (1267)]: Into 
jk_worker_t::init
[Fri Aug 

problem

2003-08-29 Thread Yefym . Dmukh
Sorry I got an empty reply , seems that my mail was killed ((( by tomcat
Just write me a short message if U got my previous mails related to sticky 
sessions problem.
thnx
Yefym
P.S. Sorry if I  spamed U.






[EMAIL PROTECTED]
29.08.2003 11:35
Please respond to Tomcat Users List

 
To: Tomcat Users List [EMAIL PROTECTED]
cc: 
Subject:Urgent !!! Problem to get TOMCAT/4.1.24 cluster running with 
sticky 
session support.


- (on icw02)

mail checked by viruswall

-




AW: General session question

2003-08-29 Thread Philipp Leusmann
Ok, thanks for the answer.
But what would my worries be?

Philipp

 -Ursprüngliche Nachricht-
 Von: news [mailto:[EMAIL PROTECTED] Auftrag von Bill Barker
 Gesendet: Freitag, 29. August 2003 05:15
 An: [EMAIL PROTECTED]
 Betreff: Re: General session question


 The short answer is: yes.

 However (unless you've enabled the uploadTimeout), this is the
 least of your
 worries with an upload that will take several minutes.

 Philipp Leusmann [EMAIL PROTECTED] wrote in message
 news:[EMAIL PROTECTED]
  Hi,
 
  will a session timeout when one servlet takes longer to process than the
  session-timeout? For example for uploading-servlets.
 
  Thanks,
   Philipp




 -
 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: AW: General session question

2003-08-29 Thread Tim Funk
1) Denial of service attack.
2) If the upload is a large file and you try to buffer the file into memory 
instead of writing it directly as a temp file to disk - you can get an a DOS 
for Out of memory.
3) If you don't take care in the writing to disk, you can DOS yourself by 
filling up the filesystem

-Tim

Philipp Leusmann wrote:

Ok, thanks for the answer.
But what would my worries be?
Philipp


-Ursprüngliche Nachricht-
Von: news [mailto:[EMAIL PROTECTED] Auftrag von Bill Barker
Gesendet: Freitag, 29. August 2003 05:15
An: [EMAIL PROTECTED]
Betreff: Re: General session question
The short answer is: yes.

However (unless you've enabled the uploadTimeout), this is the
least of your
worries with an upload that will take several minutes.
Philipp Leusmann [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hi,

will a session timeout when one servlet takes longer to process than the
session-timeout? For example for uploading-servlets.
Thanks,
Philipp




-
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: [File Upload]Multiple Destination ??

2003-08-29 Thread Tim Funk
The client (SWING app) will need to perform multiple HTTP requests to post 
the file to the multiple servers. Thats the way HTTP works. You can do this 
concurrently with multiple threads. (How-to is beyond the scope of this list 
and an exercise in using google)

Otherwise, you can have one server act as master and copy the file to the 
other locations but this may bypass some of your business logic.

-Tim

Bikash Paul wrote:

Hi all friends,

Iam facing problem with Uploading of one file in
multiple destination means user can select multiple
remote destination from client interface(swing) and my
application should send that file in all remote
destination from local hot folder.For that I have used
Jlist Box with Multiple selection mode in swing client
interface.Presently my application is working fine
with one destination and multiple file.Iam little bit
confused about the way of proceed Can any one plz
guide me how I should proceed, I want only logic or
some suggestion.Iam using Tomcat4.1.24 and servlet.
Thanks  Regards
Bikash


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


Catching JSP Custom tag errors

2003-08-29 Thread Erez Efrati
Hi,

I am using Tomcat/Struts and I am trying to catch errors in JSP pages
without luck. It only works if I put the %page errorPage=/MyError.jsp
% tag in the page. I tried to remove it and use the error-page in the
Web.xml but it didn't catch anything. What is wrong here?

The page which causes the exception (A sample file, the version that
catches and the error redirects to the MyError.page as supposed):

%@ page contentType=text/html; charset=windows-1255 %
%@ taglib uri=/WEB-INF/struts-logic.tld prefix=logic %
%@ taglib uri=/WEB-INF/struts-template.tld prefix=template %
%@ taglib uri=/WEB-INF/struts-bean.tld prefix=bean %
%@ taglib uri=/WEB-INF/struts-html.tld prefix=html %
%@ page errorPage=MyError.jsp %
html:html xhtml=true locale=true
head
title
hello
/title
html:base/
/head
body bgcolor=#ff
h1
JBuilder Generated JSP
/h1
html:form action= method=post
brbr
html:submit value=Submit property=Submit/
html:reset value=Reset/
/html:form
/body
/html:html


THE WEB.XML

?xml version=1.0 encoding=UTF-8?
!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
  servlet
servlet-nameaction/servlet-name
 
servlet-classorg.apache.struts.action.ActionServlet/servlet-class
init-param
  param-nameconfig/param-name
  param-value/WEB-INF/struts-config.xml/param-value
/init-param
init-param
  param-namedebug/param-name
  param-value2/param-value
/init-param
load-on-startup2/load-on-startup
  /servlet
  servlet
servlet-namedebugjsp/servlet-name
descriptionAdded to compile JSPs with debug info/description
servlet-classorg.apache.jasper.servlet.JspServlet/servlet-class
init-param
  param-nameclassdebuginfo/param-name
  param-valuetrue/param-value
/init-param
load-on-startup3/load-on-startup
  /servlet
  servlet-mapping
servlet-nameaction/servlet-name
url-pattern*.do/url-pattern
  /servlet-mapping
  servlet-mapping
servlet-namedebugjsp/servlet-name
url-pattern*.jsp/url-pattern
  /servlet-mapping
  welcome-file-list
welcome-fileindex.jsp/welcome-file
  /welcome-file-list

  error-page
error-code500/error-code
location/MyError.jsp/location
  /error-page

  taglib
taglib-uri/tags/struts-bean/taglib-uri
taglib-location/WEB-INF/struts-bean.tld/taglib-location
  /taglib
  taglib
taglib-uri/tags/struts-bean-el/taglib-uri
taglib-location/WEB-INF/struts-bean-el.tld/taglib-location
  /taglib
  taglib
taglib-uri/tags/struts-html/taglib-uri
taglib-location/WEB-INF/struts-html.tld/taglib-location
  /taglib
  taglib
taglib-uri/tags/struts-html-el/taglib-uri
taglib-location/WEB-INF/struts-html-el.tld/taglib-location
  /taglib
  taglib
taglib-uri/tags/struts-logic/taglib-uri
taglib-location/WEB-INF/struts-logic.tld/taglib-location
  /taglib
  taglib
taglib-uri/tags/struts-logic-el/taglib-uri
taglib-location/WEB-INF/struts-logic-el.tld/taglib-location
  /taglib
  taglib
taglib-uri/tags/struts-nested/taglib-uri
taglib-location/WEB-INF/struts-nested.tld/taglib-location
  /taglib
  taglib
taglib-uri/tags/struts-template/taglib-uri
taglib-location/WEB-INF/struts-template.tld/taglib-location
  /taglib
  taglib
taglib-uri/tags/struts-tiles/taglib-uri
taglib-location/WEB-INF/struts-tiles.tld/taglib-location
  /taglib
  taglib
taglib-urihttp://java.sun.com/jstl/core/taglib-uri
taglib-location/WEB-INF/c.tld/taglib-location
  /taglib
  taglib
taglib-urihttp://java.sun.com/jstl/core_rt/taglib-uri
taglib-location/WEB-INF/c-rt.tld/taglib-location
  /taglib
  taglib
taglib-urihttp://java.sun.com/jstl/fmt/taglib-uri
taglib-location/WEB-INF/fmt.tld/taglib-location
  /taglib
  taglib
taglib-urihttp://java.sun.com/jstl/fmt_rt/taglib-uri
taglib-location/WEB-INF/fmt-rt.tld/taglib-location
  /taglib
  taglib
taglib-urihttp://java.sun.com/jstl/sql/taglib-uri
taglib-location/WEB-INF/sql.tld/taglib-location
  /taglib
  taglib
taglib-urihttp://java.sun.com/jstl/sql_rt/taglib-uri
taglib-location/WEB-INF/sql-rt.tld/taglib-location
  /taglib
  taglib
taglib-urihttp://java.sun.com/jstl/xml/taglib-uri
taglib-location/WEB-INF/x.tld/taglib-location
  /taglib
  taglib
taglib-urihttp://java.sun.com/jstl/xml_rt/taglib-uri
taglib-location/WEB-INF/x-rt.tld/taglib-location
  /taglib
/web-app


Thanks in advance,
Erez



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



jdk 1.4 logging and log formatter class not being found

2003-08-29 Thread Adam Hardy
This is a repost from last week, which got no answers. I've tried to 
give more  better info here.

I just upgraded from 4.1.24 to 4.1.27 and found that java now
can't find my formatter class which I need for JDK 1.4 logging.
The configuration in the logging.properties file is picked up fine, I 
established since there is an xml formatter classes in JDK 1.4 which I 
have tested out and it works fine.

So the problem is definitely that 4.1.27 is now mislaying the reference 
to my formatter class, presumably when it constructs the class path for 
java.

I have the formatter class in tomcat's common/classes directory.
Switching back to 4.1.24, it still works.
I've tried placing my class in server/classes, in shared/classes and
also in WEB-INF/classes for a particular webapp, with no joy. Does
anybody have any idea what I can do?
thanks
Adam
ps in both 4.1.24 and 27 I am using the LE binaries. I have also tried
it with the old commons-logging.jar and with the latest jar - not that
it should affect it, but I've been trying everything in desperation.
--
struts 1.1 + tomcat 4.1.27 + java 1.4.2
Linux 2.4.20 RH9


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


Tomcat 3 and use of sessions

2003-08-29 Thread Chitale, Sandip V
Folks,

Is there a way in Tomcat 3 , when embedded in an application, to create
a HttpSession programatically,
populate some session attributes and somehow have a client browser
participate in that session (using
the right URL for example).

Any help will be appreciated.

PS: We are stuck with using Tomcat 3 for reasons of supporting JDK1.1.

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



tomcat as a proxy

2003-08-29 Thread Pike
Hi

I would like to write a servlet that  intercepts http
requests, and optionally rebuilds and redirects
them to other (remote) servers.
but tomcat doesnt know how to send remote
httprequests, does it ?
so I guess I need to incorporate a httpclient
in my project. is that correct  ? does anyone
have any experience in writing proxies ?
I've found 2 liable http client apis

jakarta-commons'
http://jakarta.apache.org/commons/httpclient/tutorial.html
and ballard's (looks great!)(supports webdav!!)
http://www.geocities.com/ballarke/Projects/HttpClient/
cu
*pike
===
404 Not Found - The weapons you are looking for are currently 
unavailable. The country might be experiencing technical difficulties, 
or you may need to adjust your weapons inspectors mandate.

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


why i must restart the Tomcat ??

2003-08-29 Thread L.Karam
Hi,

Every time I compile any class I must restart the Tomcat in order to see the
changes, what might be wrong?
(Tomcat 4.1.24)

Leandro Karam


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



Re: why i must restart the Tomcat ??

2003-08-29 Thread Tim Funk
You don't need to restart tomcat, you can just restart or reload the affected 
webapp. See the manager webapp for details.

-Tim

L.Karam wrote:

Hi,

Every time I compile any class I must restart the Tomcat in order to see the
changes, what might be wrong?
(Tomcat 4.1.24)
Leandro Karam



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


Re: why i must restart the Tomcat ??

2003-08-29 Thread Fabio Bazzani
put reloadable =true in your context in server.xml

- Original Message -
From: L.Karam [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Saturday, August 30, 2003 2:06 PM
Subject: why i must restart the Tomcat ??


 Hi,

 Every time I compile any class I must restart the Tomcat in order to see
the
 changes, what might be wrong?
 (Tomcat 4.1.24)

 Leandro Karam


 -
 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 as a proxy

2003-08-29 Thread Tim Funk
Httpclient should work fine. Ideally, if you wish to have a tomcat servlet 
act a proxy server, be sure you read the HTTP specs with respect to proxy 
servers. There are many gotchas.

Before writing too much code and IF you are able to use apache, it would be 
infinitely easier to use mod_proxy.

-Tim

Pike wrote:

Hi

I would like to write a servlet that  intercepts http
requests, and optionally rebuilds and redirects
them to other (remote) servers.
but tomcat doesnt know how to send remote
httprequests, does it ?
so I guess I need to incorporate a httpclient
in my project. is that correct  ? does anyone
have any experience in writing proxies ?
I've found 2 liable http client apis

jakarta-commons'
http://jakarta.apache.org/commons/httpclient/tutorial.html
and ballard's (looks great!)(supports webdav!!)
http://www.geocities.com/ballarke/Projects/HttpClient/
cu
*pike


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


Re: Urgent !!! Problem to get TOMCAT/4.1.24 cluster running withsticky session support.

2003-08-29 Thread John Turner
A couple of things:

1.  Your workers.properties file (to me) seems needlessly complex.  I 
would cut it down to match Pascal's example.

2.  In your server.xml, you have jmvRoute.  I don't load balance, but 
as far as I know it should be jvmRoute (note spelling).

3.  You only sent one server.xml...there should be two.

John

[EMAIL PROTECTED] wrote:
Hi people, I still have no any progress , I've installed the newest 
version of tomcat 4.1.27 and build mod_jk from the sources.
Still the same : all requests are sent to one tomcat , but if I shutdown 
it apache redirects the work to another one
No error messages, in mod_jk.log I see that two balanced workers were 
found.
Lots of  web links say that load-balancing work , but in reallity they all 
point to one from Pascal Forget. 

I even cannot see anything added by tomcat to my session cookie. 



There are some conf files bellow.

Any help or suggestion would be highly appreciated.

P.S. My topic is still not in tomcat-users list. So what are criterias to 
put it there?
--
Yefym 



MOD_JK.LOG

[Fri Aug 29 08:21:47 2003]  [jk_uri_worker_map.c (321)]: Into 
jk_uri_worker_map_t::uri_worker_map_open, match rule 
/ping/servlet/=loadbalancer was added
[Fri Aug 29 08:21:47 2003]  [jk_uri_worker_map.c (299)]: Into 
jk_uri_worker_map_t::uri_worker_map_open, suffix rule 
/ping/.jsp=loadbalancer was added
[Fri Aug 29 08:21:47 2003]  [jk_uri_worker_map.c (299)]: Into 
jk_uri_worker_map_t::uri_worker_map_open, suffix rule 
/ping/.do=loadbalancer was added
[Fri Aug 29 08:21:47 2003]  [jk_uri_worker_map.c (408)]: Into 
jk_uri_worker_map_t::uri_worker_map_open, there are 33 rules
[Fri Aug 29 08:21:47 2003]  [jk_uri_worker_map.c (422)]: 
jk_uri_worker_map_t::uri_worker_map_open, done
[Fri Aug 29 08:21:47 2003]  [jk_worker.c (88)]: Into wc_open
[Fri Aug 29 08:21:47 2003]  [jk_worker.c (222)]: Into build_worker_map, 
creating 3 workers
[Fri Aug 29 08:21:47 2003]  [jk_worker.c (228)]: build_worker_map, 
creating worker tomcat-worker-01
[Fri Aug 29 08:21:47 2003]  [jk_worker.c (148)]: Into wc_create_worker
[Fri Aug 29 08:21:47 2003]  [jk_worker.c (162)]: wc_create_worker, about 
to create instance tomcat-worker-01 of ajp13
[Fri Aug 29 08:21:47 2003]  [jk_ajp13_worker.c (108)]: Into 
ajp13_worker_factory
[Fri Aug 29 08:21:47 2003]  [jk_worker.c (171)]: wc_create_worker, about 
to validate and init tomcat-worker-01
[Fri Aug 29 08:21:47 2003]  [jk_ajp_common.c (1219)]: Into 
jk_worker_t::validate
[Fri Aug 29 08:21:47 2003]  [jk_ajp_common.c (1239)]: In 
jk_worker_t::validate for worker tomcat-worker-01 contact is 
172.31.7.20:5007
[Fri Aug 29 08:21:47 2003]  [jk_ajp_common.c (1267)]: Into 
jk_worker_t::init
[Fri Aug 29 08:21:47 2003]  [jk_ajp_common.c (1287)]: In 
jk_worker_t::init, setting socket timeout to 300
[Fri Aug 29 08:21:47 2003]  [jk_worker.c (187)]: wc_create_worker, done
[Fri Aug 29 08:21:47 2003]  [jk_worker.c (238)]: build_worker_map, 
removing old tomcat-worker-01 worker 
[Fri Aug 29 08:21:47 2003]  [jk_worker.c (228)]: build_worker_map, 
creating worker tomcat-worker-02
[Fri Aug 29 08:21:47 2003]  [jk_worker.c (148)]: Into wc_create_worker
[Fri Aug 29 08:21:47 2003]  [jk_worker.c (162)]: wc_create_worker, about 
to create instance tomcat-worker-02 of ajp13
[Fri Aug 29 08:21:47 2003]  [jk_ajp13_worker.c (108)]: Into 
ajp13_worker_factory
[Fri Aug 29 08:21:47 2003]  [jk_worker.c (171)]: wc_create_worker, about 
to validate and init tomcat-worker-02
[Fri Aug 29 08:21:47 2003]  [jk_ajp_common.c (1219)]: Into 
jk_worker_t::validate
[Fri Aug 29 08:21:47 2003]  [jk_ajp_common.c (1239)]: In 
jk_worker_t::validate for worker tomcat-worker-02 contact is 
172.31.7.12:6007
[Fri Aug 29 08:21:47 2003]  [jk_ajp_common.c (1267)]: Into 
jk_worker_t::init
[Fri Aug 29 08:21:47 2003]  [jk_ajp_common.c (1287)]: In 
jk_worker_t::init, setting socket timeout to 300
[Fri Aug 29 08:21:47 2003]  [jk_worker.c (187)]: wc_create_worker, done
[Fri Aug 29 08:21:47 2003]  [jk_worker.c (238)]: build_worker_map, 
removing old tomcat-worker-02 worker 
[Fri Aug 29 08:21:47 2003]  [jk_worker.c (228)]: build_worker_map, 
creating worker loadbalancer
[Fri Aug 29 08:21:47 2003]  [jk_worker.c (148)]: Into wc_create_worker
[Fri Aug 29 08:21:47 2003]  [jk_worker.c (162)]: wc_create_worker, about 
to create instance loadbalancer of lb
[Fri Aug 29 08:21:47 2003]  [jk_lb_worker.c (586)]: Into lb_worker_factory
[Fri Aug 29 08:21:47 2003]  [jk_worker.c (171)]: wc_create_worker, about 
to validate and init loadbalancer
[Fri Aug 29 08:21:47 2003]  [jk_lb_worker.c (420)]: Into 
jk_worker_t::validate
[Fri Aug 29 08:21:47 2003]  [jk_worker.c (148)]: Into wc_create_worker
[Fri Aug 29 08:21:47 2003]  [jk_worker.c (162)]: wc_create_worker, about 
to create instance tomcat-worker-01 of ajp13
[Fri Aug 29 08:21:47 2003]  [jk_ajp13_worker.c (108)]: Into 
ajp13_worker_factory
[Fri Aug 29 08:21:47 2003]  [jk_worker.c (171)]: wc_create_worker, 

Re: why i must restart the Tomcat ??

2003-08-29 Thread L.Karam
Tksnow its working !!!

- Original Message -
From: Fabio Bazzani [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, August 29, 2003 9:10 AM
Subject: Re: why i must restart the Tomcat ??


 put reloadable =true in your context in server.xml

 - Original Message -
 From: L.Karam [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Saturday, August 30, 2003 2:06 PM
 Subject: why i must restart the Tomcat ??


  Hi,
 
  Every time I compile any class I must restart the Tomcat in order to see
 the
  changes, what might be wrong?
  (Tomcat 4.1.24)
 
  Leandro Karam
 
 
  -
  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]



Vedr.: Re: why i must restart the Tomcat ??

2003-08-29 Thread Thomas Nybro Bolding
I remember to have read in the documentation this option slows Tomcat down 
and therefore should be used on a test server only. Does anyone have 
experience with reloadable contexts in a production environment 
performancewise?

Thomas




Fabio Bazzani [EMAIL PROTECTED]
29-08-03 14:10
Besvar venligst til Tomcat Users List

 
Til:Tomcat Users List [EMAIL PROTECTED]
cc: 
Vedr.:  Re: why i must restart the Tomcat ??

put reloadable =true in your context in server.xml

- Original Message -
From: L.Karam [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Saturday, August 30, 2003 2:06 PM
Subject: why i must restart the Tomcat ??


 Hi,

 Every time I compile any class I must restart the Tomcat in order to see
the
 changes, what might be wrong?
 (Tomcat 4.1.24)

 Leandro Karam


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





FONT SIZE=1 FACE=Arial___
Vi goer opmaerksom paa, at denne e-mail kan indeholde fortrolig information. Hvis du 
ved en fejltagelse modtager e-mailen, beder vi dig venligst informere afsender om 
fejlen ved at bruge svar-funktionen. Samtidig beder vi dig slette e-mailen i dit 
system uden at videresende eller kopiere den.
Selv om e-mailen og ethvert vedhaeftet bilag efter vores overbevisning er fri for 
virus og andre fejl, som kan paavirke computeren eller it-systemet, hvori den modtages 
og laeses, aabnes den paa modtagerens eget ansvar. Vi paatager os ikke noget ansvar 
for tab og skade, som er opstaaet i forbindelse med at modtage og bruge e-mailen.
___
Please note that this message may contain confidential information. If you have 
received this message by mistake, please inform the sender of the mistake by sending a 
reply, then delete the message from your system without making, distributing or 
retaining any copies of it.
Although we believe that the message and any attachments are free from viruses and 
other errors that might affect the computer or IT system where it is received and 
read, the recipient opens the message at his or her own risk. We assume no 
responsibility for any loss or damage arising from the receipt or use of this message.
/FONT



Re: need help in apache tomcat 4.0

2003-08-29 Thread John Turner
This describes exactly where you should put files:

http://jakarta.apache.org/tomcat/tomcat-4.0-doc/appdev/index.html

And you also might find the ClassLoader HOWTO helpful:

http://jakarta.apache.org/tomcat/tomcat-4.0-doc/class-loader-howto.html

John

sheba Tasaduque wrote:

hi
ERROR
v:http://localhost:8080/examples/servlet/UploadServlet (fetch post)
E: Event error.badfetch:line13:java.io.FileNotFoundException: http://localhost:8080/examples/servlet/UploadServlet
==
I want to ask about correct path for addition in apache tomcat 4.0.Actaully i want to get sound file through servlet and for this i have downloaded the class, MultipartRequest, written by Jason Hunter which is available for download at http://www.servlets.com/cos/index.html.you can read Complete documentation for the class at http://www.servlets.com/cos/javadoc/com/oreilly/servlet/MultipartRequest.html.
After downloading now i am facing problem of placing the classes and etc.I have downloaded cos-05Nov2002.zip and in this zip i got classes folder+doc folder+src folder+upload.war+cos.jar.
now i dont understand where i put these things in apache tomact 4.0 and jdk1.3.0_02.IN jdk1.3 i have putted servlet.jar+cos.jar in jre\lib\ext\.through this i have successfully compiled my servlet but now after putting the class files of servlets in apache tomcat\webapps\examples\web-inf\classes whenever i submit record file from recordmessege  to Uploadmessege then i m getting error of file not found as given above.
=recordmessege.java===
initial code 
---
---
submit next=\http://localhost:8080/examples/servlet/UploadServlet\; enctype=\multipart/form-data\  namelist=\messege\ method=\post\ /
---
---
and from net i got following submit but i dont know about that upload.cgi thats why i have putted 
http://localhost:8080/examples/servlet/UploadServlet.
   submit src=upload.cgi namelist=recording
 method=post enctype=multipart/form-data/
  
UploadServlet.java===
import javax.servlet.*; 
import javax.servlet.http.*; 
import java.io.*; 
import com.oreilly.servlet.MultipartRequest;
public class UploadServlet extends HttpServlet { 
 public void doPost(HttpServletRequest req, HttpServletResponse res) 
  throws ServletException, IOException 
 { 
  // Get output stream. 
  ServletOutputStream out = res.getOutputStream(); 
  // establish directory in which to save recordings and 
   5MB upload limit 
  MultipartRequest multi = new MultipartRequest(req,/recordings/, 5242880); 
  // Send a response back to VXML client. 
  res.setContentType(text/xml); 
  out.println(?xml version=\1.0\?); 
  out.println(vxml version=\1.0\formblock);
  out.println(promptYour greeting was saved./promptexit//block/form/vxml); 
  out.flush(); 
  out.close(); 
 }
}
=
Regard
SHEBA TASADUQUE
n

-
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software


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


Re: tomcat as a proxy

2003-08-29 Thread Pike
Hi

thanks for your response

I would like to write a servlet that  intercepts http
requests, and optionally rebuilds and redirects
them to other (remote) servers.

Httpclient should work fine.
ehm .. which one ? the apache/commons ?
I'm afraid that's a little too restricted...
Ideally, if you wish to have a tomcat servlet act a proxy server,
be sure you read the HTTP specs with respect to proxy servers.
There are many gotchas.
I don't think I need to. Tomcat should behave as a plain
webserver. Behind the scenes it fetches his data from elsewhere
on the web. The client doesn't need to know that.
so, maybe I shouldn't call it a proxy.

Before writing too much code and IF you are able to use apache,
it would be infinitely easier to use mod_proxy.
mod_proxy doesnt actually _do_ anything does it ? it
just proxies. I want to intercept the request and rebuild
it (with some app logic) before sending it on...
I'm surprised it seems so hard to do.
I imagined there would be something like
HttpServletRequest.dispatch(url) for remote
requests.
thanks,
*-pike

= 1/9671406556917033397649408 yottabyte
= 1/9444732965739290427392 zettabyte
= 1/9223372036854775808 exabyte
= 1/9007199254740992 petabyte
= 1/8796093022208 terabyte
= 1/8589934592 gigabyte
= 1/8388608 megabyte
= 1/1048576 Megabit
= 1/8192 kilobyte
= 1/1024 Kilobit
= 1/8 byte
= 1/4 nibble
bit = 1 bit
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


ISAPI_redirect.dll errors running on NT4 IIS4 Tomcat 4.0.4

2003-08-29 Thread Dave . Chapman
Hi,

We are using Tomcat 4.0.4 on NT4 with IIS using the isapi redirect plugin
to forward servlet requests to tomcat... we have experienced problems
posting requests to to the servlet. The post contains serveral non-standard
http headers and the error(s) seem to stem from this... we get an 'parse'
error or sometime a 500 error on the server... some of the log file
follows...

[jk_ajp13.c (346)]: Into ajp13_marshal_into_msgb
[jk_ajp13.c (480)]: ajp13_marshal_into_msgb - Done
[jk_isapi_plugin.c (283)]: Into jk_ws_service_t::read
[jk_ajp13_worker.c (606)]: Error sending request body
[jk_isapi_plugin.c (554)]: HttpExtensionProc error, service() failed
[jk_ajp13_worker.c (489)]: Into jk_endpoint_t::done

Can anyone offer advice/Help?

Regards
Dave Chapman


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



Re: tomcat as a proxy

2003-08-29 Thread Tim Funk
oops ... Jakarta Httpclient.

So you will
- intercept the incoming request.
- depending on the request, ask another server for data.
- Mangle the other server data
- feed back to client.
This sounds like reinventing the wheel since there is XML-RPC or SOAP. (See 
apache axis project for more info)

Still ... jakarta HttpClient should be ok.

-Tim

Pike wrote:

Hi

thanks for your response

I would like to write a servlet that  intercepts http
requests, and optionally rebuilds and redirects
them to other (remote) servers.


Httpclient should work fine.


ehm .. which one ? the apache/commons ?
I'm afraid that's a little too restricted...
Ideally, if you wish to have a tomcat servlet act a proxy server,
be sure you read the HTTP specs with respect to proxy servers.
There are many gotchas.
I don't think I need to. Tomcat should behave as a plain
webserver. Behind the scenes it fetches his data from elsewhere
on the web. The client doesn't need to know that.
so, maybe I shouldn't call it a proxy.

Before writing too much code and IF you are able to use apache,
it would be infinitely easier to use mod_proxy.
mod_proxy doesnt actually _do_ anything does it ? it
just proxies. I want to intercept the request and rebuild
it (with some app logic) before sending it on...
I'm surprised it seems so hard to do.
I imagined there would be something like
HttpServletRequest.dispatch(url) for remote
requests.


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


mod_jk and Tomcat 3.2.4

2003-08-29 Thread Armenio Pinto
Hi there, can anyone tell me, please, where can I find the most suitable
version of mod_jk to use with Tomcat 3.2.4? Thanks in advance,

Arménio Pinto

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



/admin tool bringing up blank screens???

2003-08-29 Thread Andoni
Hello,

I am new to 4.1.28 and I have just loaded up the admin tool to check see my setting 
through.  All I get on the right-hand pane (the data pane) is blank background.  I get 
no details / combo boxes / links etc.

On the left-hand pane with the tree everything is fine?

Any notions?

Thanks,

Andoni.

Re: tomcat as a proxy

2003-08-29 Thread Pike
Hi

I would like to write a servlet that  intercepts http
requests, and optionally rebuilds and redirects
them to other (remote) servers.
Httpclient should work fine.
ehm .. which one ? the apache/commons ?
oops ... Jakarta Httpclient.
ok. but it's too restricted, it only supports some basic methods
http://jakarta.apache.org/commons/httpclient/methods.html
I think I'll go with ballarke
http://www.geocities.com/ballarke/Projects/HttpClient/
So you will
- intercept the incoming request.
- depending on the request, ask another server for data.
- Mangle the other server data
- feed back to client.
yep :-)

This sounds like reinventing the wheel since there is XML-RPC or SOAP.
(See apache axis project for more info)
? but ... I suppose the remote server should support that, then ?
I was planning to 'proxy' to plain web(dav)services.
but I think I'm right on track now

(hmm .. how a about a HttpRemoteRequestDispatcher class ... hmm...)

thanks,
*-pike
===
+ give luck a chance
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: First Servlet 404 error

2003-08-29 Thread Jim Si
What is the common practise?

Jeff Tulley wrote:

 It looks like you want your form action to actually be servlet/login, or
 maybe /onjava/servlet/login  (you can use
 %=request.getContextPath()%/servlet/login in the jsp if you don't want
 to hardcode your context name).
 You have set up the mapping of /servlet/login in your web.xml, not
 /servlet/com.onjava.login  That name is only known internally since it
 does not have its own servlet-mapping.

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

  [EMAIL PROTECTED] 8/28/03 2:36:33 PM 
 It is difficult to get my first servlet working. I got HTTP Status 404
 -
 /onjava/servlet/com.onjava.login error.  Maybe something I did not get
 it right.
 Here are the things I have.

 Tomcat 4.1.27

 In conf/server.xml, I added the following line.
   Context className=org.apache.catalina.core.StandardContext
 crossContext=true reloadable=true
 mapperClass=org.apache.catalina.core.StandardContextMapper
 useNaming=true
 debug=0 swallowOutput=false privileged=false displayName=On Java
 Example
 wrapperClass=org.apache.catalina.core.StandardWrapper
 docBase=onjava
 cookies=true path=/onjava cachingAllowed=true
 charsetMapperClass=org.apache.catalina.util.CharsetMapper
 /Context

 In conf/web.xml, I uncomment the invoker mapping, i.e.
 servlet-mapping
 servlet-nameinvoker/servlet-name
 url-pattern/servlet/*/url-pattern
 /servlet-mapping

 The I have login.jsp and welcome.jsp file under webapps/onjava
 directory.
 In login.jsp, I have the following code
  form name=loginForm method=post
 action=servlet/com.onjava.login
 ..
  /form

 I have login.java file with package statement on top.
 package com.onjava;
 I compiled the code and move the login.class file into
 webapps/onjava/Web-inf/classes/com/onjava directory.

 In webapps/Web-inf/web.xml file,  I have the following line of code.
   ?xml version=1.0 encoding=ISO-8859-1 ?
   !DOCTYPE web-app (View Source for full doctype...)
 - web-app
 - servlet
   servlet-namelogin/servlet-name
   servlet-classcom.onjava.login/servlet-class
   /servlet
 - servlet-mapping
   servlet-namelogin/servlet-name
   url-pattern/servlet/login/url-pattern
   /servlet-mapping
   /web-app

 I am able to get login.jsp by using
 http://localhost:8080/onjava/login.jsp. But
 when I submit it I got the HTTP status 404 -
 /onjava/servlet/com.onjava.login
 error.

 Anything I did wrong?

 Jim

 -
 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: problems with the starting of rpm version of tomcat4-4.1.24-full.2jpp.noarch.rpmon Red Hat Advanced Server 2.1

2003-08-29 Thread Manolo Ramirez T.
Hi,

You must to install tomcat4-webapps-4.1.24-full.2jpp or configure the
ROOT context by yourself.

Regards,

_
Manolo Ramirez T.

  wrote:
 Hi,
 I want to run Tomcat4 on my newly installed redhat
 Advanced Server2.1.
 The jakartar-tomcat4.1.24.tar version do work when I
 visit http://localhost:8080/.
 But the rpm version don't work.When I visit
 http://localhost:8080/,the response is:
 HTTP Status 500 - No Context configured to process
 this request
 
 type   Status report
 
 message   No Context configured to process this
 request
 
 description  The server encountered an internal
 error (No Context configured to process this request)
 that prevented it from fulfilling this request.
 
 Can you help me out?
 Thank you!
 
 
 
 
 _
 Do You Yahoo!? 
 ?[???]?+??
 http://cn.rd.yahoo.com/mail_cn/tag/?http://cn.messenger.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]



Unable to obtain a module (.so) for JK2 on Linux (RH9)

2003-08-29 Thread jerome moliere
Hi all,
i'm not sure that's the right place for such question but I'm unable for 
2 days to get
the compilation goes to end
Everything seems to work but I don't have any so file generated...

I'm using a configure with options:
./configure --with-tomcat40=/usr/local/tomcat/ 
--with-tomcat41=/usr/local/tomcat/ --with-tomcat40=/usr/local/tomcat/  
--with-apxs2=/usr/local/apache2/bin/apxs   
--with-apr=/usr/local/apr-0.9.3  --with-apache2=/usr/local/httpd

where  /usr/local/apache2 contains binaries for apache (apxs2)
/usr/local/httpd contains src files for apache
I'm using the JK 2.0.2 files  Apache 2.0.47 on redhat 9 (with GCC 2.96 
or 3.2.2)

any help greatly appreciated
drives me crazy :)
cheers
Jerome


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


Application Level Destroy Mehod?

2003-08-29 Thread Paolo Chiarotto (LCL)

Is there a way I can have a procedure run when the application is stopped.  I am 
looking for something similar to a JSPDestroy method, but this has to run when the 
container, or just the one application inside the container is stopped.  I would like 
to run some database related tools when the application stops.

Thanks in advance,
Paolo.



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



Newbie:web application

2003-08-29 Thread Webmaster
Hi to all,

I'm developing a web application but I don't understand where i have to put 
my context: I have a folder /myApp, under this I have the standard folders 
for a web application.

I put alla in tomcat-home/webapps but nothing!

What i've forgot to do?

thanks,

Tiziana

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


RE: Application Level Destroy Mehod?

2003-08-29 Thread Shapira, Yoav

Howdy,
ServletContextListener#contextDestroyed()

RTFM...

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Paolo Chiarotto (LCL) [mailto:[EMAIL PROTECTED]
Sent: Friday, August 29, 2003 10:45 AM
To: [EMAIL PROTECTED]
Subject: Application Level Destroy Mehod?


Is there a way I can have a procedure run when the application is
stopped.
I am looking for something similar to a JSPDestroy method, but this has
to
run when the container, or just the one application inside the
container is
stopped.  I would like to run some database related tools when the
application stops.

Thanks in advance,
Paolo.



-
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: Newbie:web application

2003-08-29 Thread Shapira, Yoav

Howdy,

I'm developing a web application but I don't understand where i have to
put
my context: I have a folder /myApp, under this I have the standard
folders
for a web application.

I put alla in tomcat-home/webapps but nothing!


So you have tomcat-home/webapps/myApp, and under it WEB-INF, etc?
That's good.  Do you have a web.xml file under WEB-INF?  What errors are
you getting in the log?

Yoav Shapira




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 startup with JDBC Realm

2003-08-29 Thread Tim Funk
I have committed a patch for tomcat 5 that fixes this. It is available with 
HEAD or tomcat 5.0.10 (which doesn't exist yet).

If people test can test 5 and it is OK - I can back port it to tomcat 4.1.X.

If your impatient, the code for JDBCRealm from 5 would be the same as 4.1 so 
you can:
- Get the version from 5 
(http://cvs.apache.org/viewcvs.cgi/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/realm/JDBCRealm.java?rev=1.2content-type=text/vnd.viewcvs-markup)
- Compile it with $CATALINA_HOME/server/lib/*.jar and 
$CATALINA_HOME/common/lib/*.jar in your classpath
- Place the resulting class file as 
$CATALINA_HOME/server/classes/org/apache/catalina/realm/JDBCRealm.class
- Last but not least ... Hope that the above works (It should)

-Tim

Koes, Derrick wrote:

I have a timing issue where both my database and tomcat are being run as
Windows services.  If my server reboots for some reason, even though I have
startup dependencies (tomcat depends on db), tomcat often doesn't start my
web app because it failed the initial JDBC check it does for a database when
there is a JDBC realm configured.  I presume this is because Windows reports
the db service as started so the tomcat service attempts to start.  However,
the db isn't fully up when the service is started.
 
Have others witnessed this issue?  Workarounds?
 
 
Thanks,
Derrick
 
 


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


Urgent !!! Problem to get TOMCAT/4.1.24 cluster running with sticky sessionsupport.

2003-08-29 Thread Yefym . Dmukh
Lot's of thnx that U point me to the misspelled error.

I've got jvmRoute added to the session cookie finally.

The problem is that apache redirects the workers randomly :

tomcat1 got session cookie with worker of tomcat2 sometimes. The same 
history with tomcat2.


2003-08-29 16:11:11 RequestDumperValve[Standalone]: 
cookie=JSESSIONID=6DA548CB187E7EB31B73F8DF8959C643.tomcat-worker-02
2003-08-29 16:11:11 RequestDumperValve[Standalone]: 
cookie=lifesensor01=US%7Cen%7Cc%7Cneutral%7Cnoname%7C0%7Cnull%7C-1%7Cwellcome%7C0%7C
03-08-29 16:11:46 RequestDumperValve[Standalone]:contextPath=
2003-08-29 16:11:46 RequestDumperValve[Standalone]: 
cookie=JSESSIONID=10219C0C8296E9A0629C1D9C3BF7770B.tomcat-worker-01
2003-08-29 16:11:46 RequestDumperValve[Standalone]: 
cookie=lifesensor01=US%7Cen%7Cc%7Cneutral%7Cnoname%7C0%7Cnull%7C-1%7Cwellcome%7C0%7C



So the result is that the same session processed by both tomcat but with 
specified right worker:

tomcat1:
2003-08-29 16:49:26 RequestDumperValve[Standalone]: 
cookie=JSESSIONID=19E9FD015AF34C5181322F3FEF37B0D6.tomcat-worker-01




tomcat2:
003-08-29 16:50:10 RequestDumperValve[Standalone]: 
header=cookie=JSESSIONID=19E9FD015AF34C5181322F3FEF37B0D6.tomcat-worker-01; 




this could work if session is replicated on all tomcat servers but not in 
a current state.

So the same round-robin problem like before.
(((

Which configuration files should I post in addition? 
What can be the problem if in workers.properties I have:


worker.tomcat-worker-02.port=6007
worker.tomcat-worker-02.host=172.31.7.12
worker.tomcat-worker-02.type=ajp13
worker.tomcat-worker-02.lbfactor=50
#worker.tomcat-worker-02.cachesize=10
#worker.tomcat-worker-02.cache_timeout=600
#worker.tomcat-worker-02.socket_timeout=300
#worker.tomcat-worker-02.local_worker=1


worker.tomcat-worker-01.port=5007
worker.tomcat-worker-01.host=172.31.7.20
worker.tomcat-worker-01.type=ajp13
worker.tomcat-worker-01.lbfactor=50
#worker.tomcat-worker-01.cachesize=10
#worker.tomcat-worker-01.cache_timeout=600
#worker.tomcat-worker-01.socket_timeout=300
#worker.tomcat-worker-01.local_worker=1

# load balancing with sticky sessions.
# Note:
#   If a worker dies, the load balancer will check its state
#once in a while. Until then all work is redirected to peer
#workers.
worker.loadbalancer.type=lb
worker.loadbalancer.balanced_workers=tomcat-worker-01,tomcat-worker-02
worker.loadbalancer.sticky_session =1
#worker.loadbalancer.local_worker_only=1



MOD_JK.log( workers mapped to the right ips)

[Fri Aug 29 14:41:43 2003]  [jk_worker.c (171)]: wc_create_worker, about 
to validate and init tomcat-worker-01
[Fri Aug 29 14:41:43 2003]  [jk_ajp_common.c (1219)]: Into 
jk_worker_t::validate
[Fri Aug 29 14:41:43 2003]  [jk_ajp_common.c (1239)]: In 
jk_worker_t::validate for worker tomcat-worker-01 contact is 172.31.7.20:5007
[Fri Aug 29 14:41:43 2003]  [jk_ajp_common.c (1267)]: Into 
jk_worker_t::init
[Fri Aug 29 14:41:43 2003]  [jk_ajp_common.c (1287)]: In 
jk_worker_t::init, setting socket timeout to 0
[Fri Aug 29 14:41:43 2003]  [jk_worker.c (187)]: wc_create_worker, done
[Fri Aug 29 14:41:43 2003]  [jk_worker.c (238)]: build_worker_map, 
removing old tomcat-worker-01 worker
[Fri Aug 29 14:41:43 2003]  [jk_worker.c (228)]: build_worker_map, 
creating worker tomcat-worker-02
[Fri Aug 29 14:41:43 2003]  [jk_worker.c (148)]: Into wc_create_worker
[Fri Aug 29 14:41:43 2003]  [jk_worker.c (162)]: wc_create_worker, about 
to create instance tomcat-worker-02 of ajp13
[Fri Aug 29 14:41:43 2003]  [jk_ajp13_worker.c (108)]: Into 
ajp13_worker_factory
[Fri Aug 29 14:41:43 2003]  [jk_worker.c (171)]: wc_create_worker, about 
to validate and init tomcat-worker-02
[Fri Aug 29 14:41:43 2003]  [jk_ajp_common.c (1219)]: Into 
jk_worker_t::validate
[Fri Aug 29 14:41:43 2003]  [jk_ajp_common.c (1239)]: In 
jk_worker_t::validate for worker tomcat-worker-02 contact is 172.31.7.12:6007
[Fri Aug 29 14:41:43 2003]  [jk_ajp_common.c (1267)]: Into 
jk_worker_t::init

[Fri Aug 29 14:41:43 2003]  [jk_ajp_common.c (1287)]: In 
jk_worker_t::init, setting socket timeout to 0
[Fri Aug 29 14:41:43 2003]  [jk_worker.c (187)]: wc_create_worker, done
[Fri Aug 29 14:41:43 2003]  [jk_lb_worker.c (498)]: Balanced worker 0 has 
name tomcat-worker-01
[Fri Aug 29 14:41:43 2003]  [jk_lb_worker.c (498)]: Balanced worker 1 has 
name tomcat-worker-02

[Fri Aug 29 14:50:01 2003]  [jk_ajp_common.c (532)]: 
ajp_unmarshal_response: Header[1] [Set-Cookie] = 
[JSESSIONID=19E9FD015AF34C5181322F3FEF37B0D6.tomcat-worker-01; 
Path=/lifesensor]
[Fri Aug 29 14:50:12 2003]  [jk_ajp_common.c (532)]: 
ajp_unmarshal_response: Header[2] [Set-Cookie] = 
[JSESSIONID=EEB6757BF4A9337FD7265AA581DE8BE3.tomcat-worker-02; 
Path=/lifesensor]









John Turner [EMAIL PROTECTED]
29.08.2003 14:23
Please respond to Tomcat Users List

 
To: Tomcat Users List [EMAIL PROTECTED]
cc: 
Subject:Re: Urgent !!! Problem to get TOMCAT/4.1.24 cluster 

Re: /admin tool bringing up blank screens - Corection.

2003-08-29 Thread Andoni
As you can imagine I'm not using 4.1.28 as it has not been written yet.
I am using 4.1.24 though.

Andoni.

- Original Message -
From: Andoni [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, August 29, 2003 2:35 PM
Subject: /admin tool bringing up blank screens???


Hello,

I am new to 4.1.28 and I have just loaded up the admin tool to check see my
setting through.  All I get on the right-hand pane (the data pane) is blank
background.  I get no details / combo boxes / links etc.

On the left-hand pane with the tree everything is fine?

Any notions?

Thanks,

Andoni.


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



j2se 1.4.1 -1.3

2003-08-29 Thread Dan McCullough
Is there any issue with using J2SE 1.3.1_09 with Tomcat-4.1.27 or Jakarta Tomcat 
Connectors 1.2.4
on Linux?  J2SE 1.4.x has always come over corrupted so I cant install.  Always means 
12 times in
2 days, with wget, lynx and Windows to FTP.

=

Theres no such thing as a problem unless the servers are on fire!


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

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



RE: Newbie:web application

2003-08-29 Thread Schalk


Yoav

Ok, first your webapp folder structure:
Tomcat/webapps/myApp
Tomcat/webapps/myApp/WEB-INF/
Tomcat/webapps/myApp/WEB-INF/classes/  # ALL class files go here 
Tomcat/webapps/myApp/WEB-INF/lib/  # All .jar files goes here
Tomcat/webapps/myApp/WEB-INF/web.xml  # This is your deployment descriptor
file.

In tomcat if you go to:
Tomcat/conf/ you will find a file called server.xml. Open up this file and
find the area containing the following:

!-- Tomcat Root Context --
!--
Context path= docBase=ROOT debug=0/
--

After this you can set the context for your own web-app, for example:
Context path=/myApp docBase=myApp debug=0 reloadable=true/

Stop and start Tomcat and you should be able to access your application by
going to:
http://localhost:8080/myApp/


Kind Regards
Schalk Neethling
Volume4.Development.Multimedia.Branding
emotionalize.conceptualize.visualize.realize
Tel: +27125468436
Fax: +27125468436
email:[EMAIL PROTECTED]
web: www.volume4.co.za
 

:: -Original Message-
:: From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
:: Sent: Friday, August 29, 2003 4:54 PM
:: To: Tomcat Users List
:: Subject: RE: Newbie:web application
:: 
:: 
:: Howdy,
:: 
:: I'm developing a web application but I don't understand where i have to
:: put
:: my context: I have a folder /myApp, under this I have the standard
:: folders
:: for a web application.
:: 
:: I put alla in tomcat-home/webapps but nothing!
:: 
:: 
:: So you have tomcat-home/webapps/myApp, and under it WEB-INF, etc?
:: That's good.  Do you have a web.xml file under WEB-INF?  What errors are
:: you getting in the log?
:: 
:: Yoav Shapira
:: 
:: 
:: 
:: 
:: 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]



...libjniGetString.sl already loaded in another classloader

2003-08-29 Thread Lott, Carey
Does anybody know what we need to be looking for?  Thanks in advance.

Carey,
I have a servlet that uses the Native Interface facilities. It gets to a
point and then tries to load a library that I constructed. At first it could
not find the library, but I fixed that by stopping catalina, setting
SHLIB_PATH to
/bto/appl/apache/jakarta-tomcat-4.0.4/webapps/esd/WEB-INF/classes and
restarting catalina. 
It found the library fine the first time I tried to run it.
The next time I tried to run it, the app failed, saying that
...libjniGetString.sl already loaded in another classloader
I can't find how to make it unload the library or do anything else to make
it run. I tried stopping and restarting catalina and it still gets the same
error.
Do you have any idea what to do?
Ivan 

signature
nameCarey Lott/name
posWeb Tools Support/pos
orgInfrastructure Storage  Tools Support/org
companyEDS/company
accountBellSouth/account
email[EMAIL PROTECTED]/email
/signature


disclaimer
*
The information transmitted is intended only for the person or entity to
which it is addressed and may contain confidential, proprietary, and/or
privileged material.  Any review, retransmission, dissemination or other use
of, or taking of any action in reliance upon, this information by persons or
entities other than the intended recipient is prohibited.  If you received
this in error, please contact the sender and delete the material from all
computers.
/disclaimer

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



RE: Newbie:web application

2003-08-29 Thread Shapira, Yoav

Howdy,
Thank you for the clear instructions ;)  I believe I have a fairly firm
grasp on webapp structure as well as the rest of tomcat ;)  But I'm sure
the original poster whose question I answered will find your response
beneficial.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Schalk [mailto:[EMAIL PROTECTED]
Sent: Friday, August 29, 2003 11:30 AM
To: 'Tomcat Users List'
Subject: RE: Newbie:web application



Yoav

Ok, first your webapp folder structure:
Tomcat/webapps/myApp
Tomcat/webapps/myApp/WEB-INF/
Tomcat/webapps/myApp/WEB-INF/classes/  # ALL class files go here
Tomcat/webapps/myApp/WEB-INF/lib/  # All .jar files goes here
Tomcat/webapps/myApp/WEB-INF/web.xml  # This is your deployment
descriptor
file.

In tomcat if you go to:
Tomcat/conf/ you will find a file called server.xml. Open up this file
and
find the area containing the following:

!-- Tomcat Root Context --
!--
Context path= docBase=ROOT debug=0/
--

After this you can set the context for your own web-app, for example:
Context path=/myApp docBase=myApp debug=0 reloadable=true/

Stop and start Tomcat and you should be able to access your application
by
going to:
http://localhost:8080/myApp/


Kind Regards
Schalk Neethling
Volume4.Development.Multimedia.Branding
emotionalize.conceptualize.visualize.realize
Tel: +27125468436
Fax: +27125468436
email:[EMAIL PROTECTED]
web: www.volume4.co.za


:: -Original Message-
:: From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
:: Sent: Friday, August 29, 2003 4:54 PM
:: To: Tomcat Users List
:: Subject: RE: Newbie:web application
::
::
:: Howdy,
::
:: I'm developing a web application but I don't understand where i
have to
:: put
:: my context: I have a folder /myApp, under this I have the standard
:: folders
:: for a web application.
:: 
:: I put alla in tomcat-home/webapps but nothing!
::
::
:: So you have tomcat-home/webapps/myApp, and under it WEB-INF, etc?
:: That's good.  Do you have a web.xml file under WEB-INF?  What errors
are
:: you getting in the log?
::
:: Yoav Shapira
::
::
::
::
:: 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]



failure notice

2003-08-29 Thread Ovh Redirect Technology
Hi,

This is an ORT (Ovh Redirect Technology) SMTP server.

 ORT did not find out any redirect email  
  
--- Below this line is a copy of the message.

Received: by ORT (Ovh Redirect Technology) ver:0.99
 [EMAIL PROTECTED]
 [EMAIL PROTECTED]   NONE (no found)
Received: from B117-12 (user-13d.parkland.edu [216.125.251.13])
by redirect.ovh.net (Postfix) with ESMTP id 0880D2486D
for [EMAIL PROTECTED]; Fri, 29 Aug 2003 17:17:32 +0200 (CEST)
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Thank you!
Date: Fri, 29 Aug 2003 10:18:04 --0500
X-MailScanner: Found to be clean
Importance: Normal
X-Mailer: Microsoft Outlook Express 6.00.2600.
X-MSMail-Priority: Normal
X-Priority: 3 (Normal)
MIME-Version: 1.0
Content-Type: multipart/mixed;
boundary=_NextPart_000_0F65ACA8
Message-Id: [EMAIL PROTECTED]

This is a multipart message in MIME format

--_NextPart_000_0F65ACA8
Content-Type: text/plain;
charset=iso-8859-1
Content-Transfer-Encoding: 7bit

See the attached file for details
--_NextPart_000_0F65ACA8--


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



Re: Newbie:web application

2003-08-29 Thread John Turner
ROFL

Shapira, Yoav wrote:

Howdy,
Thank you for the clear instructions ;)  I believe I have a fairly firm
grasp on webapp structure as well as the rest of tomcat ;)  But I'm sure
the original poster whose question I answered will find your response
beneficial.
Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Schalk [mailto:[EMAIL PROTECTED]
Sent: Friday, August 29, 2003 11:30 AM
To: 'Tomcat Users List'
Subject: RE: Newbie:web application


Yoav

Ok, first your webapp folder structure:
Tomcat/webapps/myApp
Tomcat/webapps/myApp/WEB-INF/
Tomcat/webapps/myApp/WEB-INF/classes/  # ALL class files go here
Tomcat/webapps/myApp/WEB-INF/lib/  # All .jar files goes here
Tomcat/webapps/myApp/WEB-INF/web.xml  # This is your deployment
descriptor



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


Re: Unable to obtain a module (.so) for JK2 on Linux (RH9)

2003-08-29 Thread Eric J. Pinnell
Hi,

JK2 should compile with just the following:

./configure --with-apxs2=/path/to/apache/bin/apxs
make

It should create mod_jk2.so in the build directory tree not in the
directory that you ran configure and make from.  I forget exactly where it
puts it but a find ./ | grep so from the top level of the source should
root it out quick fast.

-e


On Fri, 29 Aug 2003, jerome moliere wrote:

 Hi all,
 i'm not sure that's the right place for such question but I'm unable for
 2 days to get
 the compilation goes to end
 Everything seems to work but I don't have any so file generated...

 I'm using a configure with options:
 ./configure --with-tomcat40=/usr/local/tomcat/
 --with-tomcat41=/usr/local/tomcat/ --with-tomcat40=/usr/local/tomcat/
 --with-apxs2=/usr/local/apache2/bin/apxs
 --with-apr=/usr/local/apr-0.9.3  --with-apache2=/usr/local/httpd

 where  /usr/local/apache2 contains binaries for apache (apxs2)
 /usr/local/httpd contains src files for apache

 I'm using the JK 2.0.2 files  Apache 2.0.47 on redhat 9 (with GCC 2.96
 or 3.2.2)

 any help greatly appreciated
 drives me crazy :)

 cheers
 Jerome




 -
 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: j2se 1.4.1 -1.3

2003-08-29 Thread Shapira, Yoav

Howdy,
You should be fine with 1.3.1, but that 1.4 behavior is suspicious..

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Dan McCullough [mailto:[EMAIL PROTECTED]
Sent: Friday, August 29, 2003 11:28 AM
To: [EMAIL PROTECTED]
Subject: j2se 1.4.1 -1.3

Is there any issue with using J2SE 1.3.1_09 with Tomcat-4.1.27 or
Jakarta
Tomcat Connectors 1.2.4
on Linux?  J2SE 1.4.x has always come over corrupted so I cant install.
Always means 12 times in
2 days, with wget, lynx and Windows to FTP.

=

Theres no such thing as a problem unless the servers are on fire!


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

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



Broken?: security constraint for actions

2003-08-29 Thread [EMAIL PROTECTED]
Hello, 

I have set up a struts-like web app running under Tomcat 4.1.27 on
win2000 and JDK1.4.2.  I want to restrict access parts of my app based
on the action parameter in the URL.  That is, calls to 

/controller?action=deposit

can be made by members of the group user.  But, say, calls to

/controller?action=withdraw

can only be made by member of the group admin.

How can I protect these resources?  If I try to use


security-constraint
web-resource-collection
web-resource-nameListAccounts/web-resource-name
descriptionThe pages/description
url-pattern/controller?action=withdraw/url-pattern
/web-resource-collection
auth-constraint
role-nameadmin/role-name
/auth-constraint
/security-constraint 

The container ignores the constraint.  What is wrong here?

Also, I have seen web.xml files in which classes themselves are
constrained via a url-pattern such as

url-pattern/WEB-INF/classes/a/b/Foo.class/url-pattern

If I try to use such restraints in Tomcat, they are not honored.

Any ideas or references?

Thanks

Bruce Sams

=
Dr. Bruce J. Sams, III
mediateam
Weidenweg 2, 85375 Neufahrn
Germany
tel: +49 (0) 8165/65095  
fax: +49 (0) 8165/65096 
web: http://www.mediateam.de


This communication may contain privileged 
information. If you are not the intended recipient 
please notify the sender immediately and destroy this e-mail.

All unauthorised copying, disclosure or distribution of  the 
material in  this e-mail or of parts hereof is strictly forbidden.

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



application security-constraint working only partially with mod_jk2

2003-08-29 Thread ToFu
Hi All,

I've got an app that is configured and working with mod_jk2 -- using apache 2.0x and 
tomcat 4.1.24.  It's running fast, and stable.  However, I'm having some problems with 
securing the app.  Here's the deal.

Security is configured at the application level (i.e. tomcat application) using the 
security-constraint configurations in the application specific web.xml file.  Works 
fine going straight to tomcat ( via port 8080).  All files are locked down.

However, I find that going through Apache, via mod_jk2, only the files that are 
specified in the workers2.properties are actually being triggered for authentication 
by the app server.  This is fine for the .jsp files or .do (struts) directives that 
I've got in workers2.properties, but not fine for all the images and videos that I've 
got behind the secuiryt constraint (or want to, at least).

I've changed the workers2.properties file to include the other image and video files 
types, and this works.  This seems klugey though, as I would prefer if apache serves 
up these files.

Does anyone have a better solution to locking down ALL files in a webapp using 
mod_jk2?  Apache authentication won't work for me, as I'm using authentication 
information within my application.

Any ideas would help.


Todd

# FROM WORKERS2.PROPERTIES # 

# MEMBERS.MYAPP.COM WORKER
[ajp13:chihuahua:8009]
channel=channel.socket:chihuahua:8009

[uri:members.myapp.com/*.jsp]
worker=ajp13:chihuahua:8009

[uri:members.myapp.com/*.do]
worker=ajp13:chihuahua:8009

#[uri:members.myapp.com/*.wmv]# UNCOMMENTED, AND THE APP SECURITY WORKS FOR THESE 
FILES, OTHERWISE, NOT
#worker=ajp13:chihuahua:8009

#[uri:members.myapp.com/*.mpg]# UNCOMMENTED, AND THE APP SECURITY WORKS FOR THESE 
FILES, OTHERWISE, NOT
#worker=ajp13:chihuahua:8009

#[uri:members.myapp.com/*.jpg]# UNCOMMENTED, AND THE APP SECURITY WORKS FOR THESE 
FILES, OTHERWISE, NOT
#worker=ajp13:chihuahua:8009

#  FROM WEB.XML FILE # 

 !-- Define a Security Constraint on this Application --
 security-constraint
  web-resource-collection
   web-resource-nameEntire Application/web-resource-name
   url-pattern/*/url-pattern
  /web-resource-collection
  auth-constraint
   role-namemember/role-name
  /auth-constraint
 /security-constraint
 
!-- Define the Login Configuration for this Application --
login-config
auth-methodBASIC/auth-method
 realm-nameApplication Realm/realm-name
/login-config
security-role
role-namemember/role-name
/security-role



Re: Broken?: security constraint for actions

2003-08-29 Thread ToFu
Perhaps you should try using distinct directories instead?  That should work
a little more cleanly.


Todd


- Original Message -
From: [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, August 29, 2003 3:01 AM
Subject: Broken?: security constraint for actions


 Hello,

 I have set up a struts-like web app running under Tomcat 4.1.27 on
 win2000 and JDK1.4.2.  I want to restrict access parts of my app based
 on the action parameter in the URL.  That is, calls to

 /controller?action=deposit

 can be made by members of the group user.  But, say, calls to

 /controller?action=withdraw

 can only be made by member of the group admin.

 How can I protect these resources?  If I try to use


 security-constraint
 web-resource-collection
 web-resource-nameListAccounts/web-resource-name
 descriptionThe pages/description
 url-pattern/controller?action=withdraw/url-pattern
 /web-resource-collection
 auth-constraint
 role-nameadmin/role-name
 /auth-constraint
 /security-constraint

 The container ignores the constraint.  What is wrong here?

 Also, I have seen web.xml files in which classes themselves are
 constrained via a url-pattern such as

 url-pattern/WEB-INF/classes/a/b/Foo.class/url-pattern

 If I try to use such restraints in Tomcat, they are not honored.

 Any ideas or references?

 Thanks

 Bruce Sams

 =
 Dr. Bruce J. Sams, III
 mediateam
 Weidenweg 2, 85375 Neufahrn
 Germany
 tel: +49 (0) 8165/65095
 fax: +49 (0) 8165/65096
 web: http://www.mediateam.de


 This communication may contain privileged
 information. If you are not the intended recipient
 please notify the sender immediately and destroy this e-mail.

 All unauthorised copying, disclosure or distribution of  the
 material in  this e-mail or of parts hereof is strictly forbidden.

 -
 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: First Servlet 404 error

2003-08-29 Thread Stuart MacPherson


You didn't mention anything about a HelloWorld Servlet before.  You have not
configured the context of your webapp, and tomcat does not even know it
exists.  Create a file called onjava.xml and place it in your webapps
directory.  This should contain something along the lines of:

context path=onjava docBase=./onjava debug=0 privileged=true

Also, make sure your HelloWorld servlet is mapped-in in your webapps
deployment descriptor.  By the way, the folder should be called WEB-INF not
web-inf.

HTH
stu

-Original Message-
From: Jim Si [mailto:[EMAIL PROTECTED] 
Sent: 29 August 2003 16:57
To: Tomcat Users List; Stuart MacPherson
Subject: Re: First Servlet 404 error

I tried it but it still does not work.  I even tried to put a
HelloWorld.class
file into webapps\onjava\Web-inf\classes directory and use link
http:\\localhost:8080\onjava\servlet\HelloWorld I still have the same error.

But when I put HelloWorld.class file into webapps\examples\Web-inf\classes,
then
it works.  What it might be the problem?

Jim

Stuart MacPherson wrote:

 In your JSP form change this:

 form name=loginForm method=post action=servlet/com.onjava.login
 ..
  /form

 to this:

 form name=loginForm method=POST action=com.onjava.login
 ..
  /form

 [Note the capitals in POST also]

 -Original Message-
 From: Jim Si [mailto:[EMAIL PROTECTED]
 Sent: 28 August 2003 21:37
 To: Tomcat Users List
 Subject: First Servlet 404 error

 It is difficult to get my first servlet working. I got HTTP Status 404 -
 /onjava/servlet/com.onjava.login error.  Maybe something I did not get it
 right.
 Here are the things I have.

 Tomcat 4.1.27

 In conf/server.xml, I added the following line.
   Context className=org.apache.catalina.core.StandardContext
 crossContext=true reloadable=true
 mapperClass=org.apache.catalina.core.StandardContextMapper
 useNaming=true
 debug=0 swallowOutput=false privileged=false displayName=On Java
 Example
 wrapperClass=org.apache.catalina.core.StandardWrapper docBase=onjava
 cookies=true path=/onjava cachingAllowed=true
 charsetMapperClass=org.apache.catalina.util.CharsetMapper
 /Context

 In conf/web.xml, I uncomment the invoker mapping, i.e.
 servlet-mapping
 servlet-nameinvoker/servlet-name
 url-pattern/servlet/*/url-pattern
 /servlet-mapping

 The I have login.jsp and welcome.jsp file under webapps/onjava directory.
 In login.jsp, I have the following code
  form name=loginForm method=post
action=servlet/com.onjava.login
 ..
  /form

 I have login.java file with package statement on top.
 package com.onjava;
 I compiled the code and move the login.class file into
 webapps/onjava/Web-inf/classes/com/onjava directory.

 In webapps/Web-inf/web.xml file,  I have the following line of code.
   ?xml version=1.0 encoding=ISO-8859-1 ?
   !DOCTYPE web-app (View Source for full doctype...)
 - web-app
 - servlet
   servlet-namelogin/servlet-name
   servlet-classcom.onjava.login/servlet-class
   /servlet
 - servlet-mapping
   servlet-namelogin/servlet-name
   url-pattern/servlet/login/url-pattern
   /servlet-mapping
   /web-app

 I am able to get login.jsp by using
http://localhost:8080/onjava/login.jsp.
 But
 when I submit it I got the HTTP status 404 -
 /onjava/servlet/com.onjava.login
 error.

 Anything I did wrong?

 Jim

 -
 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: Broken?: security constraint for actions

2003-08-29 Thread Tim Funk
You can't use query strings in security constraints.

You can always to programmtic authorization via request.isUserInRole(userName)

-Tim

[EMAIL PROTECTED] wrote:

Hello, 

I have set up a struts-like web app running under Tomcat 4.1.27 on
win2000 and JDK1.4.2.  I want to restrict access parts of my app based
on the action parameter in the URL.  That is, calls to 

/controller?action=deposit

can be made by members of the group user.  But, say, calls to

/controller?action=withdraw

can only be made by member of the group admin.

How can I protect these resources?  If I try to use

security-constraint
web-resource-collection
web-resource-nameListAccounts/web-resource-name
descriptionThe pages/description
url-pattern/controller?action=withdraw/url-pattern
/web-resource-collection
auth-constraint
role-nameadmin/role-name
/auth-constraint
/security-constraint 

The container ignores the constraint.  What is wrong here?

Also, I have seen web.xml files in which classes themselves are
constrained via a url-pattern such as
url-pattern/WEB-INF/classes/a/b/Foo.class/url-pattern

If I try to use such restraints in Tomcat, they are not honored.

Any ideas or references?



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


Re: First Servlet 404 error

2003-08-29 Thread Jim Si
I tried it but it still does not work.  I even tried to put a HelloWorld.class
file into webapps\onjava\Web-inf\classes directory and use link
http:\\localhost:8080\onjava\servlet\HelloWorld I still have the same error.

But when I put HelloWorld.class file into webapps\examples\Web-inf\classes, then
it works.  What it might be the problem?

Jim

Stuart MacPherson wrote:

 In your JSP form change this:

 form name=loginForm method=post action=servlet/com.onjava.login
 ..
  /form

 to this:

 form name=loginForm method=POST action=com.onjava.login
 ..
  /form

 [Note the capitals in POST also]

 -Original Message-
 From: Jim Si [mailto:[EMAIL PROTECTED]
 Sent: 28 August 2003 21:37
 To: Tomcat Users List
 Subject: First Servlet 404 error

 It is difficult to get my first servlet working. I got HTTP Status 404 -
 /onjava/servlet/com.onjava.login error.  Maybe something I did not get it
 right.
 Here are the things I have.

 Tomcat 4.1.27

 In conf/server.xml, I added the following line.
   Context className=org.apache.catalina.core.StandardContext
 crossContext=true reloadable=true
 mapperClass=org.apache.catalina.core.StandardContextMapper
 useNaming=true
 debug=0 swallowOutput=false privileged=false displayName=On Java
 Example
 wrapperClass=org.apache.catalina.core.StandardWrapper docBase=onjava
 cookies=true path=/onjava cachingAllowed=true
 charsetMapperClass=org.apache.catalina.util.CharsetMapper
 /Context

 In conf/web.xml, I uncomment the invoker mapping, i.e.
 servlet-mapping
 servlet-nameinvoker/servlet-name
 url-pattern/servlet/*/url-pattern
 /servlet-mapping

 The I have login.jsp and welcome.jsp file under webapps/onjava directory.
 In login.jsp, I have the following code
  form name=loginForm method=post action=servlet/com.onjava.login
 ..
  /form

 I have login.java file with package statement on top.
 package com.onjava;
 I compiled the code and move the login.class file into
 webapps/onjava/Web-inf/classes/com/onjava directory.

 In webapps/Web-inf/web.xml file,  I have the following line of code.
   ?xml version=1.0 encoding=ISO-8859-1 ?
   !DOCTYPE web-app (View Source for full doctype...)
 - web-app
 - servlet
   servlet-namelogin/servlet-name
   servlet-classcom.onjava.login/servlet-class
   /servlet
 - servlet-mapping
   servlet-namelogin/servlet-name
   url-pattern/servlet/login/url-pattern
   /servlet-mapping
   /web-app

 I am able to get login.jsp by using http://localhost:8080/onjava/login.jsp.
 But
 when I submit it I got the HTTP status 404 -
 /onjava/servlet/com.onjava.login
 error.

 Anything I did wrong?

 Jim

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



Tomcat/Apache2/JNI on Solaris Again

2003-08-29 Thread Welch, Ronald P
Has anyone been able to get Apache2 to start Tomcat 4.1.x
on Solaris? There was a thread subject on this back in
February, but there was no resolution that I can find.

I am getting the following errors:

[Fri Aug 29 12:47:25 2003] [error] env.createBean2(): Factory error creating
channel.jni:jni ( channel.jni, jni)
[Fri Aug 29 12:47:25 2003] [error] config.update(): Can't create
channel.jni:jni
[Fri Aug 29 12:47:25 2003] [error] env.createBean2(): Factory error creating
vm: ( vm, )
[Fri Aug 29 12:47:25 2003] [error] config.update(): Can't create vm:
[Fri Aug 29 12:47:25 2003] [error] env.createBean2(): Factory error creating
worker.jni:onStartup ( worker.jni, onStartup)
[Fri Aug 29 12:47:25 2003] [error] config.update(): Can't create
worker.jni:onStartup
[Fri Aug 29 12:47:25 2003] [error] env.createBean2(): Factory error creating
worker.jni:onShutdown ( worker.jni, onShutdown)
[Fri Aug 29 12:47:25 2003] [error] config.update(): Can't create
worker.jni:onShutdown
[Fri Aug 29 12:47:27 2003] [error] mod_jk child init 1 0
[Fri Aug 29 12:47:27 2003] [error] jk2_init() Can't find child 11765 in
scoreboard
[Fri Aug 29 12:47:27 2003] [error] mod_jk child init 1 -2
[Fri Aug 29 12:47:27 2003] [notice] Apache/2.0.47 (Unix) mod_jk2/2.0.3-dev
configured -- resuming normal operations



in the Apache error log. Have been able to get things working
under Windows, but not on Solaris. Any help that you all can
offer would be very greatly appriciated.

Ron
--=-=-=-=-=-=-=-=-oOo-=-=-=-=-=-=-=-=--
mailto:[EMAIL PROTECTED]Phone:(607)770-3701
BAE SYSTEMS Controls600 Main St Johnson City, NY 13790-1888
--=-=-=-=-=-=-=-=-===-=-=-=-=-=-=-=-=--

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



sendRedirect() in Tomcat 3.2.4

2003-08-29 Thread Armenio Pinto
Hi there,

I'm getting the following exception when I do a sendRedirect() in Tomcat
3.2.4. Has anyone experienced this before? Thanks in advance,

Arménio Pinto


java.lang.IllegalStateException: Response has already been committed
at
org.apache.tomcat.facade.HttpServletResponseFacade.sendError(HttpServletResp
onseFacade.java:202)
at
org.apache.tomcat.facade.HttpServletResponseFacade.sendRedirect(HttpServletR
esponseFacade.java:228)
at
jsp._0002fjsp_0002fentrada_0002ejspentrada_jsp_3._jspService(_0002fjsp_0002f
entrada_0002ejspentrada_jsp_3.java:209)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspCountedServlet.service(JspServlet.ja
va:130)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:282)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
at org.apache.tomcat.core.Handler.service(Handler.java:287)
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:80
6)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:752)
at
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection
(Ajp12ConnectionHandler.java:166)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
at java.lang.Thread.run(Thread.java:534)

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



Re: sendRedirect() in Tomcat 3.2.4

2003-08-29 Thread Tim Funk
http://jakarta.apache.org/tomcat/faq/misc.html#illegalstate

-Tim

Armenio Pinto wrote:
Hi there,

I'm getting the following exception when I do a sendRedirect() in Tomcat
3.2.4. Has anyone experienced this before? Thanks in advance,
Arménio Pinto

java.lang.IllegalStateException: Response has already been committed
at
org.apache.tomcat.facade.HttpServletResponseFacade.sendError(HttpServletResp


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


mapping URIs with jk 1.2.4 and IIS

2003-08-29 Thread Pete Nelson
Using IIS and jk 1.2.4, is it possible to have an alias in the
uriworkermap.properties file?

We already have a directory called /examples on IIS, but would like to
add the tomcat examples.  Is there any way to have /tomcat-examples
redirect to the examples context?

Is there any more indepth documentation of uriworkermap.properties than
is available on the IIS HowTo on the jakarta site?

--
Pete Nelson, Web Developer
[EMAIL PROTECTED]
http://www.ci.stpaul.mn.us/


dbcp config problems

2003-08-29 Thread Paul
Based on Tomcat41 docs, jndi-datasource-examples-howto.html, have tried to setup a 
database connection pool as follows, but get result:

Foo Not Connected
Bar -1

generated from following jsp code, as per howto given above:

%
foo.DBTest tst = new foo.DBTest();
tst.init();
%
%= tst.getFoo() %
%= tst.getBar() %

Not sure what i am doing wrong.   If anyone has any ideas, or suggestioins as to how 
to go about trouble-shooting, please let me know (see below for config info used).
-thanks, paul.
 
* * * * * * * * * * * * * * * * * * * * * * * * * * * * *

software system:

win2k
 java jdk 1.4
 jakarta-tomcat-4.1.27-LE-jdk14.exe
 apache_2.0.47-win32-x86-no_ssl.msi
 jk2 connector

%CATALINA_HOME%\common\lib:

commons-collections-2.1.jar
commons-dbcp-1.0.jar
commons-pool-1.0.1.jar
plus: oracle jdbc driver 9.x with .jar extension

* * * * * * * * * * * * * * * * * * * * * * * * * * * * *

%CATALINA_HOME%\conf\server.xml:

!-- Add btween /Context of examples context  /Host closing localhost definition 
--
Context path=/epl docBase=epl debug=5 reloadable=true crossContext=true

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

  !-- Define a Datasource --
  Resource name=jdbc/eplResrc auth=Container type=javax.sql.DataSource/

  ResourceParams name=jdbc/eplResrc
parameter
  namefactory/name
  valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
/parameter

parameter
  namefactory/name
  valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
/parameter

!-- Maximum number of dB connections in pool.  Set to 0 for no limit --
parameter
  namemaxActive/name
  value10/value
/parameter

parameter
  namemaxIdle/name
  value10/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

parameter
  nameusername/name
  valuescott/value
/parameter

parameter
  namepassword/name
  valuetiger/value
/parameter

parameter
  namedriverClassName/name
  valueoracle.jdbc.driver.OracleDriver/value
/parameter

parameter
  nameurl/name
  valuejdbc:oracle:thin:@pl-wkstn:1521:www/value
/parameter

  !-- To configure a DBCP DataSource, abandoned dB connections are removed and 
recycled --
parameter
  nameremoveAbandoned/name
  valuetrue/value
/parameter

  !-- number of seconds a dB connection has been idle before it is considered 
abandoned --
parameter
  nameremoveAbandonedTimeout/name
  value60/value
/parameter


  /ResourceParams
/Context

* * * * * * * * * * * * * * * * * * * * * * * * * * * * *

%WEB-INF\web.xml

?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
descriptiondb Test App/description
resource-ref
descriptionDB Connection/description
res-ref-namejdbc/eplResrc/res-ref-name
res-typejavax.sql.DataSource/res-type
res-authContainer/res-auth
/resource-ref
/web-app

* * * * * * * * * * * * * * * * * * * * * * * * * * * * *
%WEB-INF%\classes\foo\DBTest.java

package foo;

import javax.naming.*;
import javax.sql.*;
import java.sql.*;

public class DBTest {

  String foo = Not Connected;
  int bar = -1;

  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/eplResrc);

  if (ds != null) {
Connection conn = ds.getConnection();
  
if(conn != null)  {
foo = Got Connection +conn.toString();
Statement stmt = conn.createStatement();
ResultSet rst = 
stmt.executeQuery(select sysdate from dual);
if(rst.next()) {
   foo=rst.getString(2);
   bar=rst.getInt(3);
}
conn.close();
}
  }
}catch(Exception e) {
  e.printStackTrace();
}
 }

 public String getFoo() { return foo; }
 public int getBar() { return bar;}
}



Re: First Servlet 404 error

2003-08-29 Thread Jim Si
Thank you Stuart for your great help.

HellowWorld servlet works! But I still have one problem.

I got login.jsp in the webapps\onjava directory.  It has
form name=loginForm method=POST action=servlet/com.onjava.login

In login.java, it has
 private String target = /welcome.jsp;
...
  // Forward the request to the target named
  ServletContext context = getServletContext();
  RequestDispatcher dispatcher = context.getRequestDispatcher(target);
  dispatcher.forward(request, response);

In welcome.jsp, it has very simple return statement.
   bWelcome : %= request.getAttribute(USER)

In webapps\onjava\Web-inf\web.xml, I have
servlet
servlet-namelogin/servlet-name
servlet-classcom.onjava.login/servlet-class
/servlet

servlet-mapping
servlet-namelogin/servlet-name
url-pattern/servlet/url-pattern
/servlet-mapping

In a browser, I use http://localhost:8080/onjava/login.jsp and I got the login
screen, then click on submit button.  I got the following error.

HTTP Status 404 - /welcome.jsp
description The requested resource (/welcome.jsp) is not available.

Look like it runs the login class, how do I correct this problem?  Thank you.

 Also, make sure your HelloWorld servlet is mapped-in in your webapps
 deployment descriptor.  By the way, the folder should be called WEB-INF not
 web-inf.


Windows somehow change WEB-INF to Web-inf automatically.  I could not use
WEB-INF.

Jim


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



Re: sendRedirect() in Tomcat 3.2.4

2003-08-29 Thread ToFu
Looks like you've already written something to the stream.  Don't write
anything to the JspWriter if you plan on redirecting.



- Original Message -
From: Armenio Pinto [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Friday, August 29, 2003 10:48 AM
Subject: sendRedirect() in Tomcat 3.2.4


Hi there,

I'm getting the following exception when I do a sendRedirect() in Tomcat
3.2.4. Has anyone experienced this before? Thanks in advance,

Arménio Pinto


java.lang.IllegalStateException: Response has already been committed
at
org.apache.tomcat.facade.HttpServletResponseFacade.sendError(HttpServletResp
onseFacade.java:202)
at
org.apache.tomcat.facade.HttpServletResponseFacade.sendRedirect(HttpServletR
esponseFacade.java:228)
at
jsp._0002fjsp_0002fentrada_0002ejspentrada_jsp_3._jspService(_0002fjsp_0002f
entrada_0002ejspentrada_jsp_3.java:209)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspCountedServlet.service(JspServlet.ja
va:130)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:282)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
at org.apache.tomcat.core.Handler.service(Handler.java:287)
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:80
6)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:752)
at
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection
(Ajp12ConnectionHandler.java:166)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
at java.lang.Thread.run(Thread.java:534)

-
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: ...libjniGetString.sl already loaded in another classloader

2003-08-29 Thread Cox, Charlie
put your library in /common/lib and restart tomcat. Each time you reload or
start/stop your webapp, it creates another instance of the classloader which
is trying to load your library again.

Charlie

 -Original Message-
 From: Lott, Carey [mailto:[EMAIL PROTECTED]
 Sent: Friday, August 29, 2003 11:11 AM
 To: '[EMAIL PROTECTED]'
 Cc: Mann, Ivan H
 Subject: ...libjniGetString.sl already loaded in another classloader
 
 
 Does anybody know what we need to be looking for?  Thanks in advance.
 
 Carey,
 I have a servlet that uses the Native Interface facilities. 
 It gets to a
 point and then tries to load a library that I constructed. At 
 first it could
 not find the library, but I fixed that by stopping catalina, setting
 SHLIB_PATH to
 /bto/appl/apache/jakarta-tomcat-4.0.4/webapps/esd/WEB-INF/classes and
 restarting catalina. 
 It found the library fine the first time I tried to run it.
 The next time I tried to run it, the app failed, saying that
 ...libjniGetString.sl already loaded in another classloader
 I can't find how to make it unload the library or do anything 
 else to make
 it run. I tried stopping and restarting catalina and it still 
 gets the same
 error.
 Do you have any idea what to do?
 Ivan 
 
 signature
 nameCarey Lott/name
 posWeb Tools Support/pos
 orgInfrastructure Storage  Tools Support/org
 companyEDS/company
 accountBellSouth/account
 email[EMAIL PROTECTED]/email
 /signature
 
 
 disclaimer
 *
 The information transmitted is intended only for the person 
 or entity to
 which it is addressed and may contain confidential, 
 proprietary, and/or
 privileged material.  Any review, retransmission, 
 dissemination or other use
 of, or taking of any action in reliance upon, this 
 information by persons or
 entities other than the intended recipient is prohibited.  If 
 you received
 this in error, please contact the sender and delete the 
 material from all
 computers.
 /disclaimer
 
 -
 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]



/usr/ucb/cc: language optional software package not installed

2003-08-29 Thread Raj Dasgupta

Whenever I try to run the configure command , I get the following error.  I
am loading gcc so I can compile the TomCat connector source.  (Sorry, I know
the issue below is not directly Tomcat related)

sudo ./configure
Configuring for a sparc-sun-solaris2.8 host.
Created Makefile in /opt/gcc/gcc-3.3.1 using mh-frag
/usr/ucb/cc:  language optional software package not installed
*** The command 'cc -o conftest -g   conftest.c' failed.
*** You must set the environment variable CC to a working compiler.

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



Re: Is server.xml DTD case-sensitive?

2003-08-29 Thread Dave Ford
 Also note that server.xml doesn't and can't have a DTD/schema
I would change can't have that to doesn't have.  There are plenty of
extensible xml documents that have dtds - JDO for example.

Dave Ford
Smart Soft - The Developer Training Company
http://www.smart-soft.com



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



org.apache.jasper.JasperException: Unable to compile class for JSP errorsafter switching from Tomcat 4.1.18LE to 4.1.27

2003-08-29 Thread Joe_Rattz
I have some code that worked fine with Tomcat 4.1.18LE but now that I have 
upgraded to 4.1.27, I am getting the problems below.  Anyone know what is 
going on?  Thanks.



org.apache.jasper.JasperException: Unable to compile class for JSP 

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

Generated servlet error:
[javac] Compiling 1 source file

C:\Program Files\Apache Group\Tomcat 
4.1\work\Standalone\localhost\storefront\forward\order_inquiry_results_jsp.java:90: 
cannot resolve symbol
symbol  : class OrderHdrBean$ResultBean 
location: package sfbeans
perchance you meant 'OrderHdrBean.ResultBean'
  sfbeans.OrderHdrBean$ResultBean ResultBean_item = null;
 ^



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

Generated servlet error:
C:\Program Files\Apache Group\Tomcat 
4.1\work\Standalone\localhost\storefront\forward\order_inquiry_results_jsp.java:92: 
cannot resolve symbol
symbol  : class OrderHdrBean$ResultBean 
location: package sfbeans
perchance you meant 'OrderHdrBean.ResultBean'
ResultBean_item = (sfbeans.OrderHdrBean$ResultBean) 
pageContext.getAttribute(ResultBean_item, PageContext.REQUEST_SCOPE);
  ^



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

Generated servlet error:
C:\Program Files\Apache Group\Tomcat 
4.1\work\Standalone\localhost\storefront\forward\order_inquiry_results_jsp.java:95: 
cannot resolve symbol
symbol  : class OrderHdrBean$ResultBean 
location: package sfbeans
perchance you meant 'OrderHdrBean.ResultBean'
ResultBean_item = (sfbeans.OrderHdrBean$ResultBean) 
java.beans.Beans.instantiate(this.getClass().getClassLoader(), 
sfbeans.OrderHdrBean$ResultBean);
  ^
3 errors


at 
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:130)
at 
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:293)
at 
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:353)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:370)
at 
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:473)
at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:190)
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.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)
at 
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:432)
at 
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:356)
at gpcjde.Context.forward(Context.java:65)
at gpcjde.OrderInquiryContext.process(OrderInquiryContext.java:32)
at gpcjde.Context.process(Context.java:40)
at gpcjde.Environment.process(Environment.java:77)
at gpcjde.ControllerServlet.doPost(ControllerServlet.java:46)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(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.java:191)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(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.StandardContext.invoke(StandardContext.java:2416)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
at 

mod_jk2 configurations

2003-08-29 Thread news-jakarta
 
Tomcat - 4.1.24, Apache - 2.0.47, mod_jk2 - 2.0.2
 
I have a couple questions:
 
1) I setup the uri directive /myFirstApp/*.jsp in workers2.properties.
My JSP file is an index.jsp and is read correctly through
www.myserver.com/myFirstApp.  Can I make that workers2 directive
recursive?  In other words, I'd like www.myserver.com/myFirstApp/subdir1
to also send the index.jsp to tomcat automatically, but right now it
doesn't...  Any way to do this without adding another workers directive?
 
2) Along these same lines, can somebody recommend a good tutorial on
workers2.properties, and/or a tutorial on setting up my httpd.conf
virtualhosts to handle the request directing?  (or a book that covers
these topics!)
 
 
Here is the piece from my workers2.properties:
 
[lb:lb]
 
[channel.socket:localhost:8009]
port=8009
host=localhost
 
[ajp13:localhost:8009]
channel=channel.socket:localhost:8009
group=lb
 
[uri:/myFirstApp/*.jsp]
group=lb
 
 
Thanks in advance,
Chad Arimura
AllDorm Inc.
 


Running Tomcat off a CD

2003-08-29 Thread DeVenuto, Rob
Title: Message



Tomcat 4.1.24 / 
WINXP SP1

Has anyone 
successfully run Tomcat off a CD? I know this is a little out of the 
ordinary. We have a J2EE app which I would like to teach to 
students. The problem is having a quick setup environment for the students 
with having to install minimal software. I have adjusted the variables in 
the startup.bat, setclasspath.bat, and catalina.bat files to point to a CD, but 
am still not having any luck. 

Any thoughts or 
suggestions?

Thanks in 
advance,

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

failure notice

2003-08-29 Thread Ovh Redirect Technology
Hi,

This is an ORT (Ovh Redirect Technology) SMTP server.

 ORT did not find out any redirect email  
  
--- Below this line is a copy of the message.

Received: by ORT (Ovh Redirect Technology) ver:0.99
 [EMAIL PROTECTED]
 [EMAIL PROTECTED]   NONE (no found)
Received: from B117-12 (user-13d.parkland.edu [216.125.251.13])
by redirect.ovh.net (Postfix) with ESMTP id D127A3B9ED
for [EMAIL PROTECTED]; Fri, 29 Aug 2003 21:41:28 +0200 (CEST)
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: Details
Date: Fri, 29 Aug 2003 14:41:36 --0500
X-MailScanner: Found to be clean
Importance: Normal
X-Mailer: Microsoft Outlook Express 6.00.2600.
X-MSMail-Priority: Normal
X-Priority: 3 (Normal)
MIME-Version: 1.0
Content-Type: multipart/mixed;
boundary=_NextPart_000_1056F4E4
Message-Id: [EMAIL PROTECTED]

This is a multipart message in MIME format

--_NextPart_000_1056F4E4
Content-Type: text/plain;
charset=iso-8859-1
Content-Transfer-Encoding: 7bit

See the attached file for details
--_NextPart_000_1056F4E4--


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



Re: Running Tomcat off a CD

2003-08-29 Thread Justin Ruthenbeck
Rob,

This came up fairly recently (last week?) and there was substantial 
discussion about the gotchas involved in doing this.  Check the archives 
for more info.  Amongst others,

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

justin

At 12:45 PM 8/29/2003, you wrote:
Tomcat 4.1.24 / WINXP SP1

Has anyone successfully run Tomcat off a CD?  I know this is a little out 
of the ordinary.  We have a J2EE app which I would like to teach to 
students.  The problem is having a quick setup environment for the 
students with having to install minimal software.  I have adjusted the 
variables in the startup.bat, setclasspath.bat, and catalina.bat files to 
point to a CD, but am still not having any luck.

Any thoughts or suggestions?

Thanks in advance,

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



Justin Ruthenbeck
Software Engineer, NextEngine Inc.
justinr - AT - nextengine DOT com
Confidential
   See http://www.nextengine.com/confidentiality.php

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


Re: dbcp config problems

2003-08-29 Thread Paul
in case this means something to someone, stderr.log file reports following
error associated with dbcp:

INFO: Jk running ID=0 time=10/120 config=C:\Tomcat41\conf\jk2.properties
javax.naming.NamingException: Could not create resource factory,
ClassNotFoundException:org.apache.commons.dbcp.BasicDataSourceFactory

at
org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory.
java:127)

Perhaps i have the wrong commons packages???

commons-collections-2.1.jar
commons-dbcp-1.0.jar
commons-pool-1.0.1.jar


- Original Message - 
From: Paul [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Friday, August 29, 2003 2:05 PM
Subject: dbcp config problems


Based on Tomcat41 docs, jndi-datasource-examples-howto.html, have tried to
setup a database connection pool as follows, but get result:

Foo Not Connected
Bar -1

generated from following jsp code, as per howto given above:

%
foo.DBTest tst = new foo.DBTest();
tst.init();
%
%= tst.getFoo() %
%= tst.getBar() %

Not sure what i am doing wrong.   If anyone has any ideas, or suggestioins
as to how to go about trouble-shooting, please let me know (see below for
config info used).
-thanks, paul.

* * * * * * * * * * * * * * * * * * * * * * * * * * * * *

software system:

win2k
 java jdk 1.4
 jakarta-tomcat-4.1.27-LE-jdk14.exe
 apache_2.0.47-win32-x86-no_ssl.msi
 jk2 connector

%CATALINA_HOME%\common\lib:

commons-collections-2.1.jar
commons-dbcp-1.0.jar
commons-pool-1.0.1.jar
plus: oracle jdbc driver 9.x with .jar extension

* * * * * * * * * * * * * * * * * * * * * * * * * * * * *

%CATALINA_HOME%\conf\server.xml:

!-- Add btween /Context of examples context  /Host closing localhost
definition --
Context path=/epl docBase=epl debug=5 reloadable=true
crossContext=true

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

  !-- Define a Datasource --
  Resource name=jdbc/eplResrc auth=Container
type=javax.sql.DataSource/

  ResourceParams name=jdbc/eplResrc
parameter
  namefactory/name
  valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
/parameter

parameter
  namefactory/name
  valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
/parameter

!-- Maximum number of dB connections in pool.  Set to 0 for no
limit --
parameter
  namemaxActive/name
  value10/value
/parameter

parameter
  namemaxIdle/name
  value10/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

parameter
  nameusername/name
  valuescott/value
/parameter

parameter
  namepassword/name
  valuetiger/value
/parameter

parameter
  namedriverClassName/name
  valueoracle.jdbc.driver.OracleDriver/value
/parameter

parameter
  nameurl/name
  valuejdbc:oracle:thin:@pl-wkstn:1521:www/value
/parameter

  !-- To configure a DBCP DataSource, abandoned dB connections are removed
and recycled --
parameter
  nameremoveAbandoned/name
  valuetrue/value
/parameter

  !-- number of seconds a dB connection has been idle before it is
considered abandoned --
parameter
  nameremoveAbandonedTimeout/name
  value60/value
/parameter


  /ResourceParams
/Context

* * * * * * * * * * * * * * * * * * * * * * * * * * * * *

%WEB-INF\web.xml

?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
descriptiondb Test App/description
resource-ref
descriptionDB Connection/description
res-ref-namejdbc/eplResrc/res-ref-name
res-typejavax.sql.DataSource/res-type
res-authContainer/res-auth
/resource-ref
/web-app

* * * * * * * * * * * * * * * * * * * * * * * * * * * * *
%WEB-INF%\classes\foo\DBTest.java

package foo;

import javax.naming.*;
import javax.sql.*;
import java.sql.*;

public class DBTest {

  String foo = Not Connected;
  int bar = -1;

  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/eplResrc);

  if (ds != null) {
Connection conn = ds.getConnection();

if(conn != null)  {
foo = Got Connection +conn.toString();
Statement stmt = conn.createStatement();
ResultSet rst =
stmt.executeQuery(select sysdate from dual);
if(rst.next()) {
   foo=rst.getString(2);
   bar=rst.getInt(3);
}
conn.close();
}
  }
}catch(Exception e) {
  e.printStackTrace();
}
 }

 public 

Re: Running Tomcat off a CD

2003-08-29 Thread epyonne
MessageIf you can get access to a laptop (I thought most schools have that or am I 
wrong?), you can install everything on it and then do your demo thru a Proxima 
projector.  If you cannot get a laptop, you can use a portable USB2 hard-drive.  That 
should work.

Hope this helps.


  - Original Message - 
  From: DeVenuto, Rob 
  To: [EMAIL PROTECTED] 
  Sent: Friday, August 29, 2003 02:45 PM
  Subject: Running Tomcat off a CD


  Tomcat 4.1.24 / WINXP SP1

  Has anyone successfully run Tomcat off a CD?  I know this is a little out of the 
ordinary.  We have a J2EE app which I would like to teach to students.  The problem is 
having a quick setup environment for the students with having to install minimal 
software.  I have adjusted the variables in the startup.bat, setclasspath.bat, and 
catalina.bat files to point to a CD, but am still not having any luck.  

  Any thoughts or suggestions?

  Thanks in advance,

  Rob DeVenuto


--


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

RE: Running Tomcat off a CD

2003-08-29 Thread Joao Medeiros
You can also try Microsoft Netmeeting if you're using Windows 2000 or
Windows XP. It allows you to connect 2 or more computers charing the
same desktop (yours). Students will be able to see what you're doing and
I'm not sure because I've never tried it but I think it also allows for
others to interact with your desktop as well.

Anyways, just another option for you to think about :-)

/JM

-Original Message-
From: epyonne [mailto:[EMAIL PROTECTED] 
Sent: 29 August 2003 21:49
To: Tomcat Users List
Subject: Re: Running Tomcat off a CD

MessageIf you can get access to a laptop (I thought most schools have
that or am I wrong?), you can install everything on it and then do your
demo thru a Proxima projector.  If you cannot get a laptop, you can use
a portable USB2 hard-drive.  That should work.

Hope this helps.


  - Original Message - 
  From: DeVenuto, Rob 
  To: [EMAIL PROTECTED] 
  Sent: Friday, August 29, 2003 02:45 PM
  Subject: Running Tomcat off a CD


  Tomcat 4.1.24 / WINXP SP1

  Has anyone successfully run Tomcat off a CD?  I know this is a little
out of the ordinary.  We have a J2EE app which I would like to teach to
students.  The problem is having a quick setup environment for the
students with having to install minimal software.  I have adjusted the
variables in the startup.bat, setclasspath.bat, and catalina.bat files
to point to a CD, but am still not having any luck.  

  Any thoughts or suggestions?

  Thanks in advance,

  Rob DeVenuto



--


  -
  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: org.apache.jasper.JasperException: Unable to compile class for JSP errorsafter switching from Tomcat 4.1.18LE to 4.1.27

2003-08-29 Thread Joe_Rattz
Ooops, ok I had one other 'significant' change that I failed to mention. I 
had also upgraded to jdk1.4.2 from 1.4.1_03.  I thought in my testing I 
had eliminated that possibility, but I was wrong.  It looks like there is 
a bug in jdk1.4.2 that is causing my problem.  I am basing that on the 
following message:

http://forum.java.sun.com/thread.jsp?forum=136thread=429766tstart=0trange=15

His usage is different than mine, but it looks like the ultimate problem 
and cause were the same, the compiler could not compile classes containing 
inner classes in some circumstances.  So, I uninstalled Tomcat 4.1.27, 
changed my JAVA_HOME back to jdk 1.4.1_03 and reinstalled Tomcat 4.1.27 
and everything is working fine again.

Tuesday I am going to try the new jdk1.4.2_01 and see if the bug still 
exists in it.  I'll post back afterwards with an update.

Thanks.




[EMAIL PROTECTED] 
08/29/2003 02:28 PM
Please respond to
Tomcat Users List [EMAIL PROTECTED]


To
[EMAIL PROTECTED]
cc

Subject
org.apache.jasper.JasperException: Unable to compile class for JSP 
errors after switching from Tomcat 4.1.18LE to 4.1.27






I have some code that worked fine with Tomcat 4.1.18LE but now that I have 

upgraded to 4.1.27, I am getting the problems below.  Anyone know what is 
going on?  Thanks.



org.apache.jasper.JasperException: Unable to compile class for JSP 

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

Generated servlet error:
[javac] Compiling 1 source file

C:\Program Files\Apache Group\Tomcat 
4.1\work\Standalone\localhost\storefront\forward\order_inquiry_results_jsp.java:90: 

cannot resolve symbol
symbol  : class OrderHdrBean$ResultBean 
location: package sfbeans
perchance you meant 'OrderHdrBean.ResultBean'
  sfbeans.OrderHdrBean$ResultBean ResultBean_item = null;
 ^



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

Generated servlet error:
C:\Program Files\Apache Group\Tomcat 
4.1\work\Standalone\localhost\storefront\forward\order_inquiry_results_jsp.java:92: 

cannot resolve symbol
symbol  : class OrderHdrBean$ResultBean 
location: package sfbeans
perchance you meant 'OrderHdrBean.ResultBean'
ResultBean_item = (sfbeans.OrderHdrBean$ResultBean) 
pageContext.getAttribute(ResultBean_item, PageContext.REQUEST_SCOPE);
  ^



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

Generated servlet error:
C:\Program Files\Apache Group\Tomcat 
4.1\work\Standalone\localhost\storefront\forward\order_inquiry_results_jsp.java:95: 

cannot resolve symbol
symbol  : class OrderHdrBean$ResultBean 
location: package sfbeans
perchance you meant 'OrderHdrBean.ResultBean'
ResultBean_item = (sfbeans.OrderHdrBean$ResultBean) 
java.beans.Beans.instantiate(this.getClass().getClassLoader(), 
sfbeans.OrderHdrBean$ResultBean);
  ^
3 errors


at 
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:130)
at 
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:293)
at 
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:353)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:370)
at 
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:473)
at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:190)
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.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)
at 
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:432)
at 
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:356)
at gpcjde.Context.forward(Context.java:65)
at gpcjde.OrderInquiryContext.process(OrderInquiryContext.java:32)
at gpcjde.Context.process(Context.java:40)
at gpcjde.Environment.process(Environment.java:77)
at gpcjde.ControllerServlet.doPost(ControllerServlet.java:46)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at 

Re: dbcp config problems

2003-08-29 Thread kevin . hulquest

If you're getting 
 
 javax.naming.NamingException: Cannot create resource instance  then you
 need to install the commons-pool and commons-dbcp jars.  These jars aren't  
 part of the standard distribution you have.  Here's a link to an article I  
 used to figure out this problem:
 http://www.developer.com/java/data/print.php/10932_2172891_3
 
 It contains links to download both jars.
 


If this isn't your problem, then post the stack trace.


   
  
  Paul   
  
  [EMAIL PROTECTED]   To:   Tomcat Users List 
[EMAIL PROTECTED]
   cc: 
  
  08/29/2003 12:05 Subject:  dbcp config problems  
  
  PM   
  
  Please respond to
  
  Tomcat Users
  
  List
  
   
  
   
  



Based on Tomcat41 docs, jndi-datasource-examples-howto.html, have tried to
setup a database connection pool as follows, but get result:

Foo Not Connected
Bar -1

generated from following jsp code, as per howto given above:

%
foo.DBTest tst = new foo.DBTest();
tst.init();
%
%= tst.getFoo() %
%= tst.getBar() %

Not sure what i am doing wrong.   If anyone has any ideas, or suggestioins
as to how to go about trouble-shooting, please let me know (see below for
config info used).
-thanks, paul.

* * * * * * * * * * * * * * * * * * * * * * * * * * * * *

software system:

win2k
 java jdk 1.4
 jakarta-tomcat-4.1.27-LE-jdk14.exe
 apache_2.0.47-win32-x86-no_ssl.msi
 jk2 connector

%CATALINA_HOME%\common\lib:

commons-collections-2.1.jar
commons-dbcp-1.0.jar
commons-pool-1.0.1.jar
plus: oracle jdbc driver 9.x with .jar extension

* * * * * * * * * * * * * * * * * * * * * * * * * * * * *

%CATALINA_HOME%\conf\server.xml:

!-- Add btween /Context of examples context  /Host closing localhost
definition --
Context path=/epl docBase=epl debug=5 reloadable=true
crossContext=true

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

  !-- Define a Datasource --
  Resource name=jdbc/eplResrc auth=Container
type=javax.sql.DataSource/

  ResourceParams name=jdbc/eplResrc
parameter
  namefactory/name
  valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
/parameter

parameter
  namefactory/name
  valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
/parameter

!-- Maximum number of dB connections in pool.  Set to 0 for no limit
--
parameter
  namemaxActive/name
  value10/value
/parameter

parameter
  namemaxIdle/name
  value10/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

parameter
  nameusername/name
  valuescott/value
/parameter

parameter
  namepassword/name
  valuetiger/value
/parameter

parameter
  namedriverClassName/name
  valueoracle.jdbc.driver.OracleDriver/value
/parameter

parameter
  nameurl/name
  valuejdbc:oracle:thin:@pl-wkstn:1521:www/value
/parameter

  !-- To configure a DBCP DataSource, abandoned dB connections are removed
and recycled --
parameter
  nameremoveAbandoned/name
  valuetrue/value
/parameter

  !-- number of seconds a dB connection has been idle before it is
considered abandoned --
parameter
  nameremoveAbandonedTimeout/name
  value60/value
/parameter


 

Tomcat Hangs at Startup

2003-08-29 Thread Mike Duffy
I am running Tomcat 4.1.27 on Windows XP.

I am experiencing serious hang times at startup.

Has anyone seen this before?  It hangs right after the following block:



Aug 29, 2003 5:36:30 PM org.apache.commons.modeler.Registry loadRegistry
INFO: Loading registry information
Aug 29, 2003 5:36:30 PM org.apache.commons.modeler.Registry getRegistry
INFO: Creating new Registry instance
Aug 29, 2003 5:36:38 PM org.apache.commons.modeler.Registry getServer
INFO: Creating MBeanServer
Aug 29, 2003 5:36:39 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on port 80
Starting service Tomcat-Standalone
Apache Tomcat/4.1.27


It hangs again after the following block:


Aug 29, 2003 5:38:29 PM org.apache.struts.tiles.TilesPlugin init
INFO: Tiles definition factory loaded for module ''.
Aug 29, 2003 5:38:29 PM org.apache.struts.validator.ValidatorPlugIn initResources
INFO: Loading validation rules file from '/WEB-INF/validator-rules.xml'
Aug 29, 2003 5:38:30 PM org.apache.struts.validator.ValidatorPlugIn initResources
INFO: Loading validation rules file from '/WEB-INF/validation.xml'


Thanks!

Mike




__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

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



[Sundararaman] [Help me]

2003-08-29 Thread sundararaman
Hi All,
I am facing a critical problem in our Application.The 
Application is running Apache Tomcat 4.0.1 running on Linux.
The problem is Apache Tomcat stalls and there is no further output 
from the tail -f catalina.out and no further processiong in the 
Application.
Description:
 As soon as the Tomcat started/application servlet is 
loaded we are invoking a thread which in turn instantiates a swing timer 
class and executes a method periodically with a predefined interval.and 
the particular method readmail() expects,looks for any new mails from a 
predefined remote POP3 directory.Everthing works fine,the new mails are 
fetched from the particular directory and processed further until the 
catalina.out output freezes/stops.
 We even checked or handled the situation when there is no 
internet connection but not did any thing for the poor network 
bandwidth.Earlier Tomcat startup.sh was giving an exception that said 
something about missing X environment and awt component while we tried 
to run the application  on a server which didn't have X windows,then to 
rectify the problem we added a -Djava.awt.headless=true option to the 
CATALINA_OPTS in the catalina.sh(start up script of the Apache Tomcat 
Server)
 Now please help me spotting out the problem.
 Is Apache Tomcat Server Stalls because of the
 a) -Djava.awt.headless=true option in CATALINA_OPTS
   b) Due to the startup Thread locking
   c) or due to the poor bandwidth conditions
   d) or due to the Swing Timer Component
Please help us in resolving this critical problem?
 
Advance Thanks,
S.Sundararaman  


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


need help in apache tomcat 4.0

2003-08-29 Thread sheba Tasaduque
hi
ERROR
v:http://localhost:8080/examples/servlet/UploadServlet (fetch post)
E: Event error.badfetch:line13:java.io.FileNotFoundException: 
http://localhost:8080/examples/servlet/UploadServlet
==
I want to ask about correct path for addition in apache tomcat 4.0.Actaully i want to 
get sound file through servlet and for this i have downloaded the class, 
MultipartRequest, written by Jason Hunter which is available for download at 
http://www.servlets.com/cos/index.html.you can read Complete documentation for the 
class at http://www.servlets.com/cos/javadoc/com/oreilly/servlet/MultipartRequest.html.
After downloading now i am facing problem of placing the classes and etc.I have 
downloaded cos-05Nov2002.zip and in this zip i got classes folder+doc folder+src 
folder+upload.war+cos.jar.
now i dont understand where i put these things in apache tomact 4.0 and jdk1.3.0_02.IN 
jdk1.3 i have putted servlet.jar+cos.jar in jre\lib\ext\.through this i have 
successfully compiled my servlet but now after putting the class files of servlets in 
apache tomcat\webapps\examples\web-inf\classes whenever i submit record file from 
recordmessege  to Uploadmessege then i m getting error of file not found as given 
above.
=recordmessege.java===
initial code 
---
---
submit next=\http://localhost:8080/examples/servlet/UploadServlet\; 
enctype=\multipart/form-data\  namelist=\messege\ method=\post\ /
---
---
and from net i got following submit but i dont know about that upload.cgi thats why i 
have putted 
http://localhost:8080/examples/servlet/UploadServlet.
   submit src=upload.cgi namelist=recording
 method=post enctype=multipart/form-data/
  
UploadServlet.java===
import javax.servlet.*; 
import javax.servlet.http.*; 
import java.io.*; 
import com.oreilly.servlet.MultipartRequest;
public class UploadServlet extends HttpServlet { 
 public void doPost(HttpServletRequest req, HttpServletResponse res) 
  throws ServletException, IOException 
 { 
  // Get output stream. 
  ServletOutputStream out = res.getOutputStream(); 
  // establish directory in which to save recordings and 
   5MB upload limit 
  MultipartRequest multi = new MultipartRequest(req,/recordings/, 5242880); 
  // Send a response back to VXML client. 
  res.setContentType(text/xml); 
  out.println(?xml version=\1.0\?); 
  out.println(vxml version=\1.0\formblock);
  out.println(promptYour greeting was 
saved./promptexit//block/form/vxml); 
  out.flush(); 
  out.close(); 
 }
}
=
Regard
SHEBA TASADUQUE
n


-
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software