Re: tomcat crash with application when doesn't found file

2007-02-12 Thread mast
But it s a recent version tomcat 5.5.20 and i have install it not much time 
ago, the message i copy you was from the catalina.out.



- Original Message - 
From: "Stefan" <[EMAIL PROTECTED]>

To: "Tomcat Users List" 
Sent: Monday, February 12, 2007 11:43 PM
Subject: Re: tomcat crash with application when doesn't found file



mast schrieb:
HI, today i have test an application, and i have put a wrong path for the 
file i would like to read, but the thing that surprise me is that it 
crash the tomcat server.

The only things in log is :
(Location of error unknown)java.io.FileNotFoundException: /home/myfile 
(No such file or directory)


Well, after many try my appli crash the server each time i call it with a 
wrong path, i don t think this very normal and i would like to know if 
there is a way to protect the server against bad application like that ?


The problem of a file not found can happen many times and if the server 
crash every time that s a real problem

thanks for your advice

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Try again with a new, clean installation of a recent tomcat version. 
Requesting unknown resources should result in a error message (return a 
status code)


Status report
message /the/wrong/path
description The requested resource (/the/wrong/path) is not available.

--
Stefan


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Specify location of server.xml as a start up argument

2007-02-12 Thread Anto Paul

Hi,
 I run Tomcat from inside Eclipse. I pass the start up parameters to boot
strap class. I want to specify server.xml as an argument so I could switch
between run configuration to run different applications rather than edit
server.xml context element or have 2 tomcat installations. Is it possible ?.
I know about using different catalina.base and I am looking for a simpler
config.


Regards,
Anto Paul


Re: [OT] Tomcat setup / config (System.exit if exception thrown)

2007-02-12 Thread Lisa

So how do I detect that an exception is thrown when Tomcat starts up? 

thanks


L



Lisa wrote:
> 
> I want to shut down everything and prevent everyone from being able to get
> anything accomplished.  If I could blow blue smoke out the back of the
> machine, I would.  will work on an API and attachment for this.
> 
> L
> 
> 
> reno-2 wrote:
>> 
>> Le mercredi 07 février 2007 à 23:17 -0800, Lisa a écrit :
>> 
>>> When starting up Tomcat, I would like to do a System.exit() if an
>>> exception
>>> of any kind is thrown.  Is there a way to configure this?   We are using
>>> a
>>> large number of frameworks (Spring, Hibernate, log4j) and I want the
>>> developers to pay attention right away if there is something wrong and
>>> to
>>> get it fixed rather than ignoring them (or missing them).
>> 
>> System.exit() is a bit radical...
>> Why don't you send a mail to everyone when an exception is thrown with
>> the exception?
>> 
>>> 
>>> I want to shut things down hard and fast if something is wrong during
>>> development and force everyone to throw their hands up and be stuck (and
>>> make noise) until it is fixed.
>>> 
>>> Any ideas would be appreciated.
>>> 
>>> 
>>> L
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Tomcat-setup---config-%28System.exit-if-exception-thrown%29-tf3191721.html#a8939043
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [OT] Tomcat setup / config (System.exit if exception thrown)

2007-02-12 Thread Lisa

I want to shut down everything and prevent everyone from being able to get
anything accomplished.  If I could blow blue smoke out the back of the
machine, I would.  will work on an API and attachment for this.

L


reno-2 wrote:
> 
> Le mercredi 07 février 2007 à 23:17 -0800, Lisa a écrit :
> 
>> When starting up Tomcat, I would like to do a System.exit() if an
>> exception
>> of any kind is thrown.  Is there a way to configure this?   We are using
>> a
>> large number of frameworks (Spring, Hibernate, log4j) and I want the
>> developers to pay attention right away if there is something wrong and to
>> get it fixed rather than ignoring them (or missing them).
> 
> System.exit() is a bit radical...
> Why don't you send a mail to everyone when an exception is thrown with
> the exception?
> 
>> 
>> I want to shut things down hard and fast if something is wrong during
>> development and force everyone to throw their hands up and be stuck (and
>> make noise) until it is fixed.
>> 
>> Any ideas would be appreciated.
>> 
>> 
>> L
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Tomcat-setup---config-%28System.exit-if-exception-thrown%29-tf3191721.html#a8939042
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Problem running servlets on tomcat

2007-02-12 Thread Caldarale, Charles R
> From: Rahul Choubey [mailto:[EMAIL PROTECTED] 
> Subject: Problem running servlets on tomcat
> 
>   E:\Program Files\apache-tomcat-4.1.34\webapps\rahul\Web-Inf\classes

Even on Windows, directory and file names defined in the servlet spec
are case sensitive.  The directory name should be WEB-INF, not Web-Inf.

>   I have also copied the web.xml to:
>   E:\Program Files\apache-tomcat-4.1.34\webapps\rahul

Read the servlet spec and look at the examples that come with Tomcat:
the web.xml file must be in the WEB-INF directory, not the app's main
directory.

Try those changes and see what happens.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat 5.5.20 SSL "no errors" not working

2007-02-12 Thread Jan Eldenmalm

Thank you Mark - that was it.

For others:

Swapping from java keystore to open ssl was a little tricky  (I ordered 
my certs from comodo for "tomcat" ...which is only correct if you don't 
use APR)   this information helped me alot:


Extracting the *private key*
   Download, compile & run ExportPriv
    crafted from Andrew
   Morrow's posting @
   http://forum.java.sun.com/thread.jsp?forum=2&thread=154587&message=449486
   .
   The key will be produced to STDOUT. I suggest you redirect > to
   exported.key

   |javac ExportPriv.java
   java ExportPriv> exported-pkcs8.key |

   The private key is being exported as PKCS#8 PEM format. To get it
   into the RSA format that works with Apache (see below) you can issue
   the following command:
   |openssl pkcs8 -inform PEM -nocrypt -in exported-pkcs8.key -out
   exported.key |

javac compiles the java source code in |ExportPriv.java
the second line exports the private key.. into the pkcs8 format I 
then had a friend do the openssl conversion


in tomcat it is also worth noting that the configuration does not "use 
the implicit" catalina home - but requires full URIs ( c:/bla/bla/cert.crt )


after doing all these changes I had to restart the server twice for some 
reason before it stopped complaining about "multiple" socked bingings to 
the same IP/port combinations


// Jan
|



Mark Thomas wrote:

Jan Eldenmalm wrote:
  

Feb 13, 2007 2:28:43 AM org.apache.coyote.http11.Http11AprProtocol start
INFO: Starting Coyote HTTP/1.1 on http-88.208.211.112-443



You are using the APR connector. SSL is configured differently in this
case. See http://tomcat.apache.org/tomcat-5.5-doc/apr.html for details.

Mark


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

  


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Unable to work with Tomcat 4.0

2007-02-12 Thread Rahul Choubey
Thx for the reply siras mentioned earlier I have upgraded to Apache 4.1.34 
and I have posted another problem being faced by me.

David Smith <[EMAIL PROTECTED]> wrote:  There are a few things to look at:

1. Check that the examples webapp is present in the webapps directory.

2. Check with the manager webapp that the examples webapp is deployed.
(http://localhost:8080/manager/html)

3. Check the logs around the time tomcat was started for other errors
attempting to deploy the examples webapp.

4. Check file permissions to be sure the user tomcat is running as has
read access to the examples webapp

5. Check the examples web.xml for the servlet mappings for these
servlets. The urls you provided make me thing you are attempting to use
the invoker servlet. That servlet was disabled by default soo long ago,
I can't remember which version was the first to remove it.

--David

Rahul Choubey wrote:

>Dear Friends,
>
>I have installed Apache Tomcat version 4.0 in my system.
>I am getting the homepage correctly on writing
>http://localhost:8080 on the browser's address bar but
>when I go to servlets example page I am unable to execute
>the servlets,the same is the problem with JSP too.I am getting
>the following error:
>
>Apache Tomcat/4.0.4- HTTP Status 404 - /examples/servlet/HelloWorldExample
>type Status report
> message /examples/servlet/HelloWorldExample
> description The requested resource (/examples/servlet/HelloWorldExample) is 
> not available.
>
>
>I have correctly set the environment variables.I have tried on both Win98
>and XP and on both IE and Mozilla.Please help.
>
>Regards,
>Rahul
>
>
>
> 
>-
>Need a quick answer? Get one in minutes from people who know. Ask your 
>question on Yahoo! Answers.
> 
>


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





 
-
Looking for earth-friendly autos? 
 Browse Top Cars by "Green Rating" at Yahoo! Autos' Green Center.  

Problem running servlets on tomcat

2007-02-12 Thread Rahul Choubey
Dear Friends,
   
  I am having a problem running servlets on the browser using Tomcat.I am using 
Apache Tomcat 4.1.34 and am saving the .class file at the following location in 
my system:-
   
  E:\Program Files\apache-tomcat-4.1.34\webapps\rahul\Web-Inf\classes
   
  rahul\Web-Inf\classes being the folders created by me.
   
  I have also copied the web.xml to:
  E:\Program Files\apache-tomcat-4.1.34\webapps\rahul
   
  and altered the file(web.xml at above secified location) is:-
   
  
rahul
Rahul Test Servlet

HelloWorld
HelloServlet


HelloWorld
/chk/res



  HelloServlet being the class name of the servlet program.
   
   
  http://localhost:8080/rahul/chk/res on putting this in the address bar of my 
browser I get the following error:
   
  Apache Tomcat/4.1.34- HTTP Status 404 - /rahul/chk/res

  type Status report
  message /rahul/chk/res
  description The requested resource (/rahul/chk/res) is not available.
   
   
  Please Help me.
   
  Regards,
  Rahul
  





 
-
Don't be flakey. Get Yahoo! Mail for Mobile and 
always stay connected to friends.

Re: Tomcat 5.5.20 SSL "no errors" not working

2007-02-12 Thread Mark Thomas
Jan Eldenmalm wrote:
> Feb 13, 2007 2:28:43 AM org.apache.coyote.http11.Http11AprProtocol start
> INFO: Starting Coyote HTTP/1.1 on http-88.208.211.112-443

You are using the APR connector. SSL is configured differently in this
case. See http://tomcat.apache.org/tomcat-5.5-doc/apr.html for details.

Mark


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Tomcat 5.5.20 SSL "no errors" not working

2007-02-12 Thread Jan Eldenmalm

Hello,

I have configured tomcat  (5.5.20 on a windows server 2003)  to use SSL
on port 443 on a specific IP, using a java keystore file:



Additionally I have verified that the redirect port settings are ok:



When starting tomcat i get no erros in any logs:

Feb 13, 2007 2:28:41 AM org.apache.coyote.ajp.AjpAprProtocol init
INFO: Initializing Coyote AJP/1.3 on ajp-127.0.0.1-8009
Feb 13, 2007 2:28:41 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 875 ms
Feb 13, 2007 2:28:42 AM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Feb 13, 2007 2:28:42 AM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.20
Feb 13, 2007 2:28:42 AM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Feb 13, 2007 2:28:42 AM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Feb 13, 2007 2:28:43 AM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Feb 13, 2007 2:28:43 AM org.apache.coyote.http11.Http11AprProtocol start
INFO: Starting Coyote HTTP/1.1 on http-88.208.211.111-80
Feb 13, 2007 2:28:43 AM org.apache.coyote.http11.Http11AprProtocol start
INFO: Starting Coyote HTTP/1.1 on http-88.208.211.112-80
Feb 13, 2007 2:28:43 AM org.apache.coyote.http11.Http11AprProtocol start
INFO: Starting Coyote HTTP/1.1 on http-88.208.211.112-443
Feb 13, 2007 2:28:43 AM org.apache.coyote.ajp.AjpAprProtocol start
INFO: Starting Coyote AJP/1.3 on ajp-127.0.0.1-8009
Feb 13, 2007 2:28:43 AM org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
Feb 13, 2007 2:28:44 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 2093 ms

as you can try your self. https://www.obsid.net does not resond
properly...where as http://www.obsid.net does - the https responds
somewhat though

In my search for a solution - I even tried setting the keystoreFile and
keystore PAss URL to an "absolute" url - and to a "wrong" url - neither
makes it work - nor create any error logs.

   keystoreFile="conf/junkinexistentfolder/ssl/obsid.key"
keystorePass="somethingwrong"  />

Never the less - if I remove the connector from server.xml - the log no
longer specifies that it started the connector .. it does not show this
anymore:
Feb 13, 2007 2:28:43 AM org.apache.coyote.http11.Http11AprProtocol start
INFO: Starting Coyote HTTP/1.1 on http-88.208.211.112-443

I have checked the firewall - and if I remove the accept rule for 443  -
I get no response what so ever - so I presume that the firewall settings
are OK. ( I also tried connecting to localhost - which gives the same
"bad" connection that returns nothing...but seems open and my
external portscanners say that the port is open - my conclusionit's
open.

I have tested the keystore files on my development machine - and it
works like a dream. instantly ( I created the keystore file on
this development machine - and imported the certs, intermediary certs
and root certs on this development machine )

I have checked he windows event log - and it contains nothing related to
tomcat, nor any port conflicts or other things even remotely connected
to a web server or network connections...

Any insights into where to start looking for the problem would be much
appreciated.


// Jan





-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Tomcat 5.5.20 SSL "no errors" not working

2007-02-12 Thread Jan Eldenmalm

Hello,

I have configured tomcat  (5.5.20 on a windows server 2003)  to use SSL 
on port 443 on a specific IP, using a java keystore file:


   

Additionally I have verified that the redirect port settings are ok:

   maxHttpHeaderSize="8192"

  maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
  enableLookups="true" redirectPort="443" acceptCount="100"
  connectionTimeout="1" disableUploadTimeout="true" />

When starting tomcat i get no erros in any logs:

Feb 13, 2007 2:28:41 AM org.apache.coyote.ajp.AjpAprProtocol init
INFO: Initializing Coyote AJP/1.3 on ajp-127.0.0.1-8009
Feb 13, 2007 2:28:41 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 875 ms
Feb 13, 2007 2:28:42 AM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Feb 13, 2007 2:28:42 AM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.20
Feb 13, 2007 2:28:42 AM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Feb 13, 2007 2:28:42 AM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Feb 13, 2007 2:28:43 AM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Feb 13, 2007 2:28:43 AM org.apache.coyote.http11.Http11AprProtocol start
INFO: Starting Coyote HTTP/1.1 on http-88.208.211.111-80
Feb 13, 2007 2:28:43 AM org.apache.coyote.http11.Http11AprProtocol start
INFO: Starting Coyote HTTP/1.1 on http-88.208.211.112-80
Feb 13, 2007 2:28:43 AM org.apache.coyote.http11.Http11AprProtocol start
INFO: Starting Coyote HTTP/1.1 on http-88.208.211.112-443
Feb 13, 2007 2:28:43 AM org.apache.coyote.ajp.AjpAprProtocol start
INFO: Starting Coyote AJP/1.3 on ajp-127.0.0.1-8009
Feb 13, 2007 2:28:43 AM org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
Feb 13, 2007 2:28:44 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 2093 ms

as you can try your self. https://www.obsid.net does not resond 
properly...where as http://www.obsid.net does - the https responds 
somewhat though


In my search for a solution - I even tried setting the keystoreFile and 
keystore PAss URL to an "absolute" url - and to a "wrong" url - neither 
makes it work - nor create any error logs.


  keystoreFile="conf/junkinexistentfolder/ssl/obsid.key" 
keystorePass="somethingwrong"  />


Never the less - if I remove the connector from server.xml - the log no 
longer specifies that it started the connector .. it does not show this 
anymore:

Feb 13, 2007 2:28:43 AM org.apache.coyote.http11.Http11AprProtocol start
INFO: Starting Coyote HTTP/1.1 on http-88.208.211.112-443

I have checked the firewall - and if I remove the accept rule for 443  - 
I get no response what so ever - so I presume that the firewall settings 
are OK. ( I also tried connecting to localhost - which gives the same 
"bad" connection that returns nothing...but seems open and my 
external portscanners say that the port is open - my conclusionit's 
open.


I have tested the keystore files on my development machine - and it 
works like a dream. instantly ( I created the keystore file on 
this development machine - and imported the certs, intermediary certs 
and root certs on this development machine )


I have checked he windows event log - and it contains nothing related to 
tomcat, nor any port conflicts or other things even remotely connected 
to a web server or network connections...


Any insights into where to start looking for the problem would be much 
appreciated.



// Jan






smime.p7s
Description: S/MIME Cryptographic Signature


Tomcat 5.5.20 SSL "no errors" not working

2007-02-12 Thread Jan Eldenmalm


smime.p7s
Description: S/MIME Cryptographic Signature


Re: Tomcat Support for J2SE 6.0

2007-02-12 Thread Mark Thomas
Nack, Dennis wrote:
> Good Evening.
> 
> I was wondering which Tomcat releases if any currently support J2SE 6.0?
> 
> Thanks. 

The archives (eg http://marc.theaimsgroup.com/?l=tomcat-user&r=1&w=2)
are your friend. The following is from about 12 hours ago:
http://marc.theaimsgroup.com/?l=tomcat-user&m=117128355221604&w=2

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Mismatching warning for CA on Tomcat 6.0

2007-02-12 Thread Nack, Dennis
Thank you very Howard.

Dennis Nack 
APM Systems Engineer 
Compuware Corporation 
Phone: 800-358-3048 X1345 
Cell:952-250-8480 
Fax:612-851-2300 
email:  [EMAIL PROTECTED]

-Original Message-
From: Howard Zhou [mailto:[EMAIL PROTECTED] 
Sent: Monday, February 12, 2007 5:43 PM
To: [EMAIL PROTECTED]
Cc: users@tomcat.apache.org
Subject: Mismatching warning for CA on Tomcat 6.0

Hi, there,

 

In windows XP I use JDK1.6, Tomcat 6.0.9 and Internet Explorer 7.

 

I use keytool -genkey -alias tomcat -keyalg RSA to create keystore and
keys ( I used default path and password as password, not default value
changit), then configure server.xml in Tomcat. I redo the same process
on three computers.

 

I got warning from Explorer 7: my CA was issued by a different site. I
ignored it then continued. Https work O.K.

 

But On the red CA icon show Mismatched address.

 

 

 

1.Is -alias tomcat a key word for Tomcat to use? 

2.How to delete old CA and create new self-signed CA? I used keytool

delete -alias tomcat but didn't work. 

3.Can I create more than one keystore and how to use it? I try but

only take old password so still on old keystore. 

4.I use tomcat with windows installation, Https will not work at
all,

Https only work with start/stop with command/dos window with above
mentioned problem, why? 

 

 

 

Thank you for any help

 

 

 

Howard

 

The contents of this e-mail are intended for the named addressee only. It 
contains information that may be confidential. Unless you are the named 
addressee or an authorized designee, you may not copy or use it, or disclose it 
to anyone else. If you received it in error please notify us immediately and 
then destroy it. 

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Mismatching warning for CA on Tomcat 6.0

2007-02-12 Thread Howard Zhou
Hi, there,

 

In windows XP I use JDK1.6, Tomcat 6.0.9 and Internet Explorer 7.

 

I use keytool -genkey -alias tomcat -keyalg RSA to create keystore and keys
( I used default path and password as password, not default value changit),
then configure server.xml in Tomcat. I redo the same process on three
computers.

 

I got warning from Explorer 7: my CA was issued by a different site. I
ignored it then continued. Https work O.K.

 

But On the red CA icon show Mismatched address.

 

 

 

1.Is -alias tomcat a key word for Tomcat to use? 

2.How to delete old CA and create new self-signed CA? I used keytool

delete -alias tomcat but didn't work. 

3.Can I create more than one keystore and how to use it? I try but

only take old password so still on old keystore. 

4.I use tomcat with windows installation, Https will not work at all,

Https only work with start/stop with command/dos window with above mentioned
problem, why? 

 

 

 

Thank you for any help

 

 

 

Howard

 



Tomcat Support for J2SE 6.0

2007-02-12 Thread Nack, Dennis
Good Evening.

I was wondering which Tomcat releases if any currently support J2SE 6.0?

Thanks. 

Dennis Nack 
APM Systems Engineer 
Compuware Corporation 
Phone: 800-358-3048 X1345 
Cell:952-250-8480 
Fax:612-851-2300 
email:  [EMAIL PROTECTED]

The contents of this e-mail are intended for the named addressee only. It 
contains information that may be confidential. Unless you are the named 
addressee or an authorized designee, you may not copy or use it, or disclose it 
to anyone else. If you received it in error please notify us immediately and 
then destroy it. 


Re: Context attribute "cachingAllowed" does not work as expected. Is this a bug?

2007-02-12 Thread Stefan

Caldarale, Charles R schrieb:
From: Stefan [mailto:[EMAIL PROTECTED] 
Subject: Context attribute "cachingAllowed" does not work as 
expected. Isthis a bug?


That means once set to false, that tomcat will not cache any static
resources like the index.html page regardless which headers the client
sends. So tomcat should not send the status code 304.



I'm not completely sure about this, but I think you're confusing server
caching with client caching.  If the client requests content with a last
modified timestamp, the server will check if the content has changed
since then and either send the updated content with a 200 or just return
the 304 and let the client use what it already has.  The cachingAllowed
attribute of  only controls whether or not Tomcat's
DefaultServlet keeps a copy in Tomcat's memory of what it reads from the
file system; it does not set the response headers to indicate to the
client that the information should not be cached at the client end.  To
do that, you'll need to use your own filter.

You might want to use Ethereal or any of the browser header monitoring
tools to look at the complete set of headers being used.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


  

Hi Chuck,

yes it makes sense what You said. But something is very strange. First 
of all I tried a thousands of variations to set response headers in the 
filter. See here, for some variations, I tried all mentioned in this thread:

http://www.nabble.com/Cache-problems-with-static-resources-tf3031321.html#a8422512

I am completely confused. My Mozilla Plugin shows the following response 
header for the index.html. Obvious the 200 OK is wrong. tomcat returned 304.


Server: Apache-Coyote/1.1
Pragma: No-cache
Cache-Control: no-cache
Expires: Thu, 01 Jan 1970 01:00:00 GMT+01:00
Etag: W/"388-1169076375500"
Last-Modified: Wed, 17 Jan 2007 23:26:15 GMT
Content-Type: text/html
Content-Length: 388
Date: Mon, 12 Feb 2007 23:02:29 GMT
200 OK

and the corresponding request

user-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.1.1) 
Gecko/20061204 Firefox/2.0.0.1
accept: 
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5

accept-language: de,en;q=0.7,en-us;q=0.3
accept-encoding: gzip,deflate
accept-charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
keep-alive: 300
connection: keep-alive
cookie: JSESSIONID=05A42BA6580697E19E4DF8EC46288F49
if-modified-since: Thu, 01 Jan 1970 00:00:00 GMT
if-none-match: W/"1055-1171218303453"
authorization: Basic ZG9uOmVzdGViYW4=

by the way. Requesting a jsp always works but it is no option. See the 
index.jsp response


Server: Apache-Coyote/1.1
Pragma: No-cache
Cache-Control: no-cache
Expires: Thu, 01 Jan 1970 01:00:00 GMT+01:00
Content-Type: text/html;charset=ISO-8859-1
Content-Length: 238
Date: Mon, 12 Feb 2007 23:12:39 GMT
200 OK

I suspected the etag but setting the etag to blank (no way to delete 
headers, or is their a way?) does not help either.


--
Stefan


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat 4.0 on UNIX: no /bin directory in $CATALINA_HOME, and JSP compilation errors

2007-02-12 Thread Rashmi Rubdi
On searching for "index$jsp.java (Permission denied)" one of the results came 
up with:

 http://mail-archives.apache.org/mod_mbox/tomcat-users/200209.mbox/[EMAIL 
PROTECTED]

It is probably some security setting (set by your Admin) with Tomcat, to limit 
access/view permission of the source code of one user from another.

-Rashmi

- Original Message 
From: Daniel Gresh <[EMAIL PROTECTED]>
To: Tomcat Users List 
Sent: Monday, February 12, 2007 5:27:26 PM
Subject: Re: Tomcat 4.0 on UNIX: no /bin directory in $CATALINA_HOME, and JSP 
compilation errors


 
Hi, thanks for the replies.

Reading RUNNING.txt was very helpful, as the problem with not finding 
the /bin directory and a problem I experienced after I found the bin 
directory was due to the presence of a CATALINA_HOME and a 
CATALINA_BASE. I found my /bin directory in CATALINA_HOME, and used 
shutdown.sh to shutdown Tomcat. More on that later, as that lead to a 
problem.

The reason I have Tomcat 4.0.5 is that my server admin is very busy and 
therefore won't have time to upgrade to a more recent version for 
awhile. So, I'm stuck with Tomcat 4.0.5 for awhile unless I have a 
compelling reason to upgrade. Although in the replies I have gotten 
upgrading is highly recommended, I want to first sort out the problem I 
just got after using shutdown.sh. Then once the server isn't causing me 
any more problems with that and if it IS causing me problems with my 
JSP, I will most certainly upgrade; I'm not disregarding anyones advice.

Anyway, I used shutdown.sh to shutdown Tomcat. I waited for a minute, 
then I used startup.sh to start Tomcat again. However, when I navigate 
to my localhost:8080 directory to view my index.jsp page, I get the 
following error:


  Apache Tomcat/4.0.5 - HTTP Status 404 -
  /var/apache/tomcat/work/Standalone/localhost/_/index$jsp.java
  (Permission denied)



*type* Status report

*message* _/var/apache/tomcat/work/Standalone/localhost/_/index$jsp.java 
(Permission denied)_

*description* _The requested resource 
(/var/apache/tomcat/work/Standalone/localhost/_/index$jsp.java 
(Permission denied)) is not available._

I'm not sure what this is telling me. It says permission denied, but in 
the description, it says the resource is not available. This may be 
something that would be more appropriate for me to ask my system admin, 
but I figured I would post here first, just to see if it is a problem I 
can solve on my own. Is there any log file I could post that might give 
more information, or is this pretty much a problem I need to resolve 
with my system admin?

Thanks for the help,
Dan


 

It's here! Your new message!  
Get new email alerts with the free Yahoo! Toolbar.
http://tools.search.yahoo.com/toolbar/features/mail/

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: tomcat crash with application when doesn't found file

2007-02-12 Thread Stefan

mast schrieb:
HI, today i have test an application, and i have put a wrong path for 
the file i would like to read, but the thing that surprise me is that 
it crash the tomcat server.

The only things in log is :
(Location of error unknown)java.io.FileNotFoundException: /home/myfile 
(No such file or directory)


Well, after many try my appli crash the server each time i call it 
with a wrong path, i don t think this very normal and i would like to 
know if there is a way to protect the server against bad application 
like that ?


The problem of a file not found can happen many times and if the 
server crash every time that s a real problem

thanks for your advice

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Try again with a new, clean installation of a recent tomcat version. 
Requesting unknown resources should result in a error message (return a 
status code)


Status report
message /the/wrong/path
description The requested resource (/the/wrong/path) is not available.

--
Stefan


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Context attribute "cachingAllowed" does not work as expected. Isthis a bug?

2007-02-12 Thread Caldarale, Charles R
> From: Stefan [mailto:[EMAIL PROTECTED] 
> Subject: Context attribute "cachingAllowed" does not work as 
> expected. Isthis a bug?
> 
> That means once set to false, that tomcat will not cache any static
> resources like the index.html page regardless which headers the client
> sends. So tomcat should not send the status code 304.

I'm not completely sure about this, but I think you're confusing server
caching with client caching.  If the client requests content with a last
modified timestamp, the server will check if the content has changed
since then and either send the updated content with a 200 or just return
the 304 and let the client use what it already has.  The cachingAllowed
attribute of  only controls whether or not Tomcat's
DefaultServlet keeps a copy in Tomcat's memory of what it reads from the
file system; it does not set the response headers to indicate to the
client that the information should not be cached at the client end.  To
do that, you'll need to use your own filter.

You might want to use Ethereal or any of the browser header monitoring
tools to look at the complete set of headers being used.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat 5.5 redirect vs. forward behavior with welcome-file-list

2007-02-12 Thread Todd Gamber
Hassan,

I couldn't seem to get
request.getAttribute("javax.servlet.forward.servlet_path") to work in my
situation (it returns null, maybe because its being called from a custom
tag?), but Stefan's suggestion of request.getServletPath() accomplishes just
what I need. 

Thank you for your response, and to Stefan as well,
Todd

-Original Message-
From: Hassan Schroeder [mailto:[EMAIL PROTECTED] 
Sent: Monday, February 12, 2007 2:52 PM
To: Tomcat Users List
Subject: Re: Tomcat 5.5 redirect vs. forward behavior with welcome-file-list

On 2/12/07, Todd Gamber <[EMAIL PROTECTED]> wrote:

> I realize that populating content based on what's in the URL bar is not
the
> best design, but I can't seem to find another way to definitively get the
> name of the actual JSP being requested.

TSSIYF -- The Servlet Spec is your friend :-)

SRV.8.4.2 Forwarded Request Parameters
   Except for servlets obtained by using the getNamedDispatcher
  method, a servlet that has been invoked by another servlet using
  the forward method of RequestDispatcher has access to the path
  of the original request.

  The following request attributes must be set:
javax.servlet.forward.request_uri
javax.servlet.forward.context_path
javax.servlet.forward.servlet_path
javax.servlet.forward.path_info
javax.servlet.forward.query_string

HTH!
-- 
Hassan Schroeder  [EMAIL PROTECTED]

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



problem runing self-signed CA on Tomcat 6

2007-02-12 Thread Howard Zhou
Hi, there,

In windows XP I use JDK1.6, Tomcat 6.0.9 and Internet Explorer 7.

I use keytool -genkey -alias tomcat -keyalg RSA to create keystore and keys
( I used default path and password as password, not default value changit),
then configure server.xml in Tomcat. I redo the same process on three
computers.

I got warning from Explorer 7: my CA was issued by a different site. I
ignored it then continued. Https work O.K.

But On the red CA icon show Mismatched address.

 

1.  Is -alias tomcat a key word for Tomcat to use? 
2.  How to delete old CA and create new self-signed CA? I used keytool
delete -alias tomcat but didn't work. 
3.  Can I create more than one keystore and how to use it? I try but
only take old password so still on old keystore. 
4.  I use tomcat with windows installation, Https will not work at all,
Https only work with start/stop with command/dos window with above mentioned
problem, why? 

 

Thank you for any help

 

Howard

 



Re: Tomcat 4.0 on UNIX: no /bin directory in $CATALINA_HOME, and JSP compilation errors

2007-02-12 Thread Daniel Gresh

Christopher Schultz wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Daniel,

Daniel Gresh wrote:
  

I've searched the web for information on Tomcat's directory structure.
According to one page I found, Tomcat should have a /bin directory,
which contains binary executables, such as startup.sh, which I can use
to restart Tomcat. When I navigate to my Tomcat installation, I can find
no /bin directory. The only directories I have are conf, work, logs, and
webapps. I assume this is a major problem.



It might not be.

How did you install Tomcat? If you used a version from a Linux
distribution (you didn't specify what "UNIX" meant) then the
installation paths can be all kinds of screwed up.

If you installed it yourself from a package from apache.org then you
/should/ have a bin directory as you describe.

Another possibility is that you are looking at CATALINA_BASE instead of
CATALINA_HOME and you are using a shared binary installation but looking
at the part that should be application-specific (see RUNNING.TXT in your
installation directory and read the "Advanced" section to understand
what I'm talking about).

  

If so, should I re-install Tomcat (and update to Tomcat 6.0 while I'm at it)?



Since you are just starting out, I highly recommend getting either the
latest stable version (5.5) or the latest unstable version (6.0 --
apologies to the authors if 6.0 /is/ considered stable) and start there.

Unless there is a very compelling reason to stick with a version that
old, I'd advise you to upgrade.

  

The relevant part of the error message is:

org.apache.jasper.JasperException: Unable to compile class for JSPNote:
sun.tools.javac.Main has been deprecated.



Wow, I've never see that before. I assume that you are using a rather
new version of Java (maybe JDK 1.5 or 1.6) with Tomcat 4.0. Tomcat 4.0
uses the old javac compiler and the newer ones use something else. It's
possible that if you are using Java 5 (JDK 1.5) or Java 6 (JDK 1.6) that
support has actually be completely removed for the old compiler invocation.

An upgrade to a move recent version of Tomcat will certainly help if I
have correctly identified the problem.

  

I've checked my JDK version to make sure it supports generics,
which it does. If this problem is not related to the first problem, I
believe there may be a problem with my CLASSPATH variable. What exactly
do I have to set this variable to so Tomcat can
recognize the proper settings?



You can't change the CLASSPATH used by Tomcat (well, you /can/, but
there's no reason to do so). I think that your Tomcat version is killing
you, here.

Upgrade and try again. If you have problems at that point, feel free to
post another question.

- -chris

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFF0N1X9CaO5/Lv0PARAsWYAKCZpgQlv/yHXkWOdRco5NRNr/EM0ACgivnB
RGUigcc+9EA4lNNJKakg6+o=
=XRRR
-END PGP SIGNATURE-

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


  

Hi, thanks for the replies.

Reading RUNNING.txt was very helpful, as the problem with not finding 
the /bin directory and a problem I experienced after I found the bin 
directory was due to the presence of a CATALINA_HOME and a 
CATALINA_BASE. I found my /bin directory in CATALINA_HOME, and used 
shutdown.sh to shutdown Tomcat. More on that later, as that lead to a 
problem.


The reason I have Tomcat 4.0.5 is that my server admin is very busy and 
therefore won't have time to upgrade to a more recent version for 
awhile. So, I'm stuck with Tomcat 4.0.5 for awhile unless I have a 
compelling reason to upgrade. Although in the replies I have gotten 
upgrading is highly recommended, I want to first sort out the problem I 
just got after using shutdown.sh. Then once the server isn't causing me 
any more problems with that and if it IS causing me problems with my 
JSP, I will most certainly upgrade; I'm not disregarding anyones advice.


Anyway, I used shutdown.sh to shutdown Tomcat. I waited for a minute, 
then I used startup.sh to start Tomcat again. However, when I navigate 
to my localhost:8080 directory to view my index.jsp page, I get the 
following error:



 Apache Tomcat/4.0.5 - HTTP Status 404 -
 /var/apache/tomcat/work/Standalone/localhost/_/index$jsp.java
 (Permission denied)



*type* Status report

*message* _/var/apache/tomcat/work/Standalone/localhost/_/index$jsp.java 
(Permission denied)_


*description* _The requested resource 
(/var/apache/tomcat/work/Standalone/localhost/_/index$jsp.java 
(Permission denied)) is not available._


I'm not sure what this is telling me. It says permission denied, but in 
the description, it says the resource is not available. This may be

tomcat crash with application when doesn't found file

2007-02-12 Thread mast
HI, today i have test an application, and i have put a wrong path for the 
file i would like to read, but the thing that surprise me is that it crash 
the tomcat server.

The only things in log is :
(Location of error unknown)java.io.FileNotFoundException: /home/myfile (No 
such file or directory)


Well, after many try my appli crash the server each time i call it with a 
wrong path, i don t think this very normal and i would like to know if there 
is a way to protect the server against bad application like that ?


The problem of a file not found can happen many times and if the server 
crash every time that s a real problem
thanks for your advice 



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: get a strange cast error with using the tomcat mail ressource

2007-02-12 Thread albrecht andrzejewski

Quoting "Caldarale, Charles R" <[EMAIL PROTECTED]>:


java.lang.ClassCastException: javax.mail.Session cannot be cast to
javax.mail.Session
 at utils.MailHelper.sendMail(MailHelper.java:36)


This would indicate you've got the javax.mail.Session class in multiple
places.


Thank you for explaining this.


The activation.jar and mail.jar files should go into common/lib
only, not in the app's WEB-INF/lib.  Check the docs for configuring
mail:
http://tomcat.apache.org/tomcat-5.5-doc/jndi-resources-howto.html#JavaMa
il%20Sessions

See the note in item 4.


Yes, that's was the mistake (i reinstalled my application with my own  
bad notes...). I will try to have a better look to the doc the next  
time. Thx!



Ce message a ete envoye par le serveur IMP de l'EMA.



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat 5.5 redirect vs. forward behavior with welcome-file-list

2007-02-12 Thread Hassan Schroeder

On 2/12/07, Todd Gamber <[EMAIL PROTECTED]> wrote:


I realize that populating content based on what's in the URL bar is not the
best design, but I can't seem to find another way to definitively get the
name of the actual JSP being requested.


TSSIYF -- The Servlet Spec is your friend :-)

SRV.8.4.2 Forwarded Request Parameters
  Except for servlets obtained by using the getNamedDispatcher
 method, a servlet that has been invoked by another servlet using
 the forward method of RequestDispatcher has access to the path
 of the original request.

 The following request attributes must be set:
   javax.servlet.forward.request_uri
   javax.servlet.forward.context_path
   javax.servlet.forward.servlet_path
   javax.servlet.forward.path_info
   javax.servlet.forward.query_string

HTH!
--
Hassan Schroeder  [EMAIL PROTECTED]

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat 5.5 redirect vs. forward behavior with welcome-file-list

2007-02-12 Thread Stefan

Todd Gamber schrieb:

In Tomcat 4.1, a request to a directory containing a welcome-file would
*redirect* the user to a URL with any applicable welcome-file's name
appended. In Tomcat 5.5, the request is instead *forwarded* to the welcome
file.

Is there a way to make Tomcat 5.5 act like Tomcat 4.1 in this respect?

For example:
I have a web.xml which contains:

index.jsp


In Tomcat 4.1, a request to http://www.mysite.com/directory/ makes the
browser refresh with a URL of http://www.mysite.com/directory/index.jsp

In Tomcat 5.5, the same request leaves the browser with the same URL
http://www.mysite.com/directory/.


BACKGROUND:
I'm using Tomcat 5.5.17 on Windows XP, and unfortunately, my application is
dependent on the redirect behavior of Tomcat 4.1 because my JSPs use
HttpServletRequest.getRequestURI() to find the name of the JSPs themselves.
The JSPs pull their content from the database based on the URL being
requested. So, if the browser's URL bar reads
http://www.mysite.com/directory/index.jsp, the 'index.jsp' queries the DB
for content based on the path '/directory/index.jsp'. Conversely, if the
browser's URL bar reads http://www.mysite.com/directory/, the same JSP looks
for database rows using the path '/directory/'. Naturally, because Tomcat
5.5 acts differently, similar requests receive different content.

I realize that populating content based on what's in the URL bar is not the
best design, but I can't seem to find another way to definitively get the
name of the actual JSP being requested. If anybody knows of a method similar
to getRequestURI(), but which knows the name of the JSP being requested, it
would help tremendously.

Thanks,
Todd



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


  

By the way Todd. Use HttpServletRequest.getServletPath() instead of
HttpServletRequest.getRequestURI(). This will report the forwarded path
without the context path information.

Regards
Stefan

--
Stefan



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat 5.5 redirect vs. forward behavior with welcome-file-list

2007-02-12 Thread Stefan

Todd Gamber schrieb:

In Tomcat 4.1, a request to a directory containing a welcome-file would
*redirect* the user to a URL with any applicable welcome-file's name
appended. In Tomcat 5.5, the request is instead *forwarded* to the welcome
file.

Is there a way to make Tomcat 5.5 act like Tomcat 4.1 in this respect?

For example:
I have a web.xml which contains:

index.jsp


In Tomcat 4.1, a request to http://www.mysite.com/directory/ makes the
browser refresh with a URL of http://www.mysite.com/directory/index.jsp

In Tomcat 5.5, the same request leaves the browser with the same URL
http://www.mysite.com/directory/.


BACKGROUND:
I'm using Tomcat 5.5.17 on Windows XP, and unfortunately, my application is
dependent on the redirect behavior of Tomcat 4.1 because my JSPs use
HttpServletRequest.getRequestURI() to find the name of the JSPs themselves.
The JSPs pull their content from the database based on the URL being
requested. So, if the browser's URL bar reads
http://www.mysite.com/directory/index.jsp, the 'index.jsp' queries the DB
for content based on the path '/directory/index.jsp'. Conversely, if the
browser's URL bar reads http://www.mysite.com/directory/, the same JSP looks
for database rows using the path '/directory/'. Naturally, because Tomcat
5.5 acts differently, similar requests receive different content.

I realize that populating content based on what's in the URL bar is not the
best design, but I can't seem to find another way to definitively get the
name of the actual JSP being requested. If anybody knows of a method similar
to getRequestURI(), but which knows the name of the JSP being requested, it
would help tremendously.

Thanks,
Todd



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


  

Hi Todd,

I don't know if their is some configuration attribute but a servlet
filter could be an option.

Good luck

--
Stefan



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Context attribute "cachingAllowed" does not work as expected. Is this a bug?

2007-02-12 Thread Stefan

Hello,

to continue the development of our web application it is crucial to
avoid caching of some static resources (server side) regardless of
request headers send by clients. I did not succeed nor do I have any
idea, what to try next. I start to assume either a bug/weakness of
tomcat or a weakness in my brain.

Exhaustive searches of the web (Google and tomcat mailing archives) did
not help. Answers to my posting
http://www.nabble.com/Cache-problems-with-static-resources-tf3031321.html#a8422512
did not help either. My last posting
http://www.nabble.com/Why-does-this-not-work-with-Thunderbird-1.5.0.9--%3CContext-cacheMaxSize%3D%221%22-cacheTTL%3D%221%22-cachingAllowed%3D%22false%22%3E-tf3205171.html#a8900300
did not generate any feedback. So I start to suspect, that I have some
basic misunderstanding of things.

Please could someone help to bring me on the right track?

Prerequisite:

Out of the box installation of tomcat 5.5.20 on Windows (development)
and Suse Linux 9.3 (production). A hello world index.html file. The
following context configuration:


   
   WEB-INF/web.xml
   


Problem reproduction:
--
Just request the index.html with Firefox 2.0.0.1 and watch the access log.
127.0.0.1 - don [12/Feb/2007:20:34:08 +0100] "GET /hospi2007/index.html
HTTP/1.1" 304 -

But the status code should be 200 and not 304. Look what IE with the
standard configuration does:
127.0.0.1 - don [12/Feb/2007:20:35:04 +0100] "GET /hospi2007/index.html
HTTP/1.0" 200 388

or Firefox with Disabled Cache
127.0.0.1 - don [12/Feb/2007:20:35:04 +0100] "GET /hospi2007/index.html
HTTP/1.0" 200 388

Question:
-

Did I understand the tomcat documentation right?
http://tomcat.apache.org/tomcat-5.5-doc/config/context.html
"cachingAllowed: If the value of this flag is true, the cache for static
resources will be used. If not specified, the default value of the flag
is true."

That means once set to false, that tomcat will not cache any static
resources like the index.html page regardless which headers the client
sends. So tomcat should not send the status code 304.

Is this correct?

I really would appreciate a answer which helps me to find the right
direction. I saw you solving complicated problems in this list and this
here seems so simple...I guess I have some misunderstanding but really
can't figure out what it is. I tried for days many work arounds but I
cannot believe that I have to "pollute" our application with changing
URL-postfixes/-parameters or to bother the sever with cron jobs
"touching" files to change the modification time.

By the way. This non-caching makes problems inside a XSLT servlet filter
implementation:

...
StringResponseWrapper pageResponseWrapper = new
StringResponseWrapper((HttpServletResponse) response);
chain.doFilter(request, pageResponseWrapper);
// Do nothing if browser has cached the response
if (pageResponseWrapper.toString().length() > 0) {
 // Transform the response and more. The tranformation includes some
dynamic stuff.
 // Assume a current time stamp for example. It's what I just use for
testing purpose.
}
...

The getWriter method inside the response wrapper is not even called by
cached responses.

So thank you in advance
Stefan

--
Stefan



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat 4.0 on UNIX: no /bin directory in $CATALINA_HOME, and JSPcompilation errors

2007-02-12 Thread Caldarale, Charles R
> From: Daniel Gresh [mailto:[EMAIL PROTECTED] 
> Subject: Tomcat 4.0 on UNIX: no /bin directory in 
> $CATALINA_HOME, and JSPcompilation errors
> 
> I assume this is a major problem. If so, should I re-install 
> Tomcat (and update to Tomcat 6.0 while I'm at it)?

You may well have some bizarre 3rd-party packaging of Tomcat, which
frequently makes a mess of the installation.  Since 4.0.5 is over four
years old, you should definitely upgrade.  6.0 is still beta, but if
you're just using it to learn, it's probably a good choice.  Use 5.5.20
if you want a more proven version.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat 4.0 on UNIX: no /bin directory in $CATALINA_HOME, and JSP compilation errors

2007-02-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Daniel,

Daniel Gresh wrote:
> I've searched the web for information on Tomcat's directory structure.
> According to one page I found, Tomcat should have a /bin directory,
> which contains binary executables, such as startup.sh, which I can use
> to restart Tomcat. When I navigate to my Tomcat installation, I can find
> no /bin directory. The only directories I have are conf, work, logs, and
> webapps. I assume this is a major problem.

It might not be.

How did you install Tomcat? If you used a version from a Linux
distribution (you didn't specify what "UNIX" meant) then the
installation paths can be all kinds of screwed up.

If you installed it yourself from a package from apache.org then you
/should/ have a bin directory as you describe.

Another possibility is that you are looking at CATALINA_BASE instead of
CATALINA_HOME and you are using a shared binary installation but looking
at the part that should be application-specific (see RUNNING.TXT in your
installation directory and read the "Advanced" section to understand
what I'm talking about).

> If so, should I re-install Tomcat (and update to Tomcat 6.0 while I'm at it)?

Since you are just starting out, I highly recommend getting either the
latest stable version (5.5) or the latest unstable version (6.0 --
apologies to the authors if 6.0 /is/ considered stable) and start there.

Unless there is a very compelling reason to stick with a version that
old, I'd advise you to upgrade.

> The relevant part of the error message is:
> 
> org.apache.jasper.JasperException: Unable to compile class for JSPNote:
> sun.tools.javac.Main has been deprecated.

Wow, I've never see that before. I assume that you are using a rather
new version of Java (maybe JDK 1.5 or 1.6) with Tomcat 4.0. Tomcat 4.0
uses the old javac compiler and the newer ones use something else. It's
possible that if you are using Java 5 (JDK 1.5) or Java 6 (JDK 1.6) that
support has actually be completely removed for the old compiler invocation.

An upgrade to a move recent version of Tomcat will certainly help if I
have correctly identified the problem.

> I've checked my JDK version to make sure it supports generics,
> which it does. If this problem is not related to the first problem, I
> believe there may be a problem with my CLASSPATH variable. What exactly
> do I have to set this variable to so Tomcat can
> recognize the proper settings?

You can't change the CLASSPATH used by Tomcat (well, you /can/, but
there's no reason to do so). I think that your Tomcat version is killing
you, here.

Upgrade and try again. If you have problems at that point, feel free to
post another question.

- -chris

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFF0N1X9CaO5/Lv0PARAsWYAKCZpgQlv/yHXkWOdRco5NRNr/EM0ACgivnB
RGUigcc+9EA4lNNJKakg6+o=
=XRRR
-END PGP SIGNATURE-

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Tomcat 4.0 on UNIX: no /bin directory in $CATALINA_HOME, and JSP compilation errors

2007-02-12 Thread Daniel Gresh

Hi list,

I'm running Tomcat 4.0.5 on UNIX and I am experiencing compilation 
errors when trying to compile a simple index.jsp file, which is only 
twenty lines or so, as I'm trying to learn JSP and starting small. First 
however, I'd like to get this question out of the way:


I've searched the web for information on Tomcat's directory structure. 
According to one page I found, Tomcat should have a /bin directory, 
which contains binary executables, such as startup.sh, which I can use 
to restart Tomcat. When I navigate to my Tomcat installation, I can find 
no /bin directory. The only directories I have are conf, work, logs, and 
webapps. I assume this is a major problem. If so, should I re-install 
Tomcat (and update to Tomcat 6.0 while I'm at it)?


I believe that problem leads to my JSP compilation errors problem. After 
posting my Java errors on a Java forum for JSP, a user replied that once 
I set the JAVA_HOME environment variable (it was set incorrectly and I 
had to set it to the proper path), I need to restart Tomcat. However, 
from what I've read online, I cannot restart Tomcat without executing 
the commands from the /bin directory.


I'm going to post my JSP errors if that is alright, just in case the 
problem is not based on the first one. If it is, please disregard this 
part, as I will revisit it later.


I have a small index.jsp file, and I have a small scriptlet in it that 
sets up an ArrayList, for some basic tests. However, when I go 
to compile the file, I get an error. The relevant parts of my file are 
as follows:


<%@ page import="java.util.ArrayList" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>





<%
   ArrayList al = new ArrayList();
   al.add("Row 1");
   al.add("Row 2");
   al.add("Row 3");
   al.add("Row 4");
%>


   <%
   for (int i = 0; i < al.size(); i++) {
   %>
   
   Number
   <%=al.get(i)%>
   
   <%
   }
   %>






The relevant part of the error message is:

org.apache.jasper.JasperException: Unable to compile class for JSPNote: 
sun.tools.javac.Main has been deprecated.


An error occurred between lines: 9 and 15 in the jsp file: /index.jsp

Generated servlet error:
/var/apache/tomcat/work/Standalone/localhost/_/index$jsp.java:68: '(' expected.
   ArrayList al = new ArrayList();

Lines 9-15 are the lines in which the ArrayList scriplet resides. I've checked my JDK version to make sure it supports generics, which it does. If this problem is not related to the first 
problem, I believe there may be a problem with my CLASSPATH variable. What exactly do I have to set this variable to so Tomcat can

recognize the proper settings?

I hope this is not too much information. I will greatly appreciate any help 
that can be provided.

Thanks,
Dan


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Tomcat problem

2007-02-12 Thread Kenneth B Burgess
I am using Tomcat 5.5.20 in the Eclipse test environment and cannot 
run my application. This all worked yesterday. The error (below) says that 

/WEB-INF/web.xml cannot be found, but it's in my application's WEB-INF. 
My workspace points to C:\Documents and Settings\KBB\eclipse.

Can anyone help with this?

Feb 12, 2007 2:19:42 PM org.apache.catalina.core.AprLifecycleListener 
lifecycleEvent
INFO: The Apache Tomcat Native library which allows optimal performance in 
production environments was not found on the java.library.path: C:\Program 
Files\Java\jdk1.5.0_07\bin;.;C:\WINDOWS\system32;C:\WINDOWS;c:\Program 
Files\Compaq\Compaq Management 
Agents\Dmi\Win32\Bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program
 
Files\SQLLIB\BIN;C:\Program Files\SQLLIB\FUNCTION;C:\Program 
Files\SQLLIB\HELP;C:\WINDOWS\system32\nls;C:\WINDOWS\system32\nls\ENGLISH;c:\apps\bpcscs\BPCSOO\SYSTEM;C:\PROGRA~1\IBM\CLIENT~1\shared;C:\Program
 
Files\ATI Technologies\ATI Control Panel;C:\Program 
Files\Java\jdk1.5.0_07\bin;C:\Notes;C:\Program Files\IBM\IBM CICS 
Transaction Gateway\BIN;c:\php;Z:.
Feb 12, 2007 2:19:42 PM org.apache.coyote.http11.Http11BaseProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Feb 12, 2007 2:19:42 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 681 ms
Feb 12, 2007 2:19:43 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Feb 12, 2007 2:19:43 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.20
Feb 12, 2007 2:19:43 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Feb 12, 2007 2:19:44 PM org.apache.struts.util.PropertyMessageResources 
loadLocale
WARNING:   Resource 
org/apache/struts/action/ActionResources_en_US.properties Not Found.
Feb 12, 2007 2:19:44 PM org.apache.struts.util.PropertyMessageResources 
loadLocale
WARNING:   Resource org/apache/struts/action/ActionResources_en.properties 
Not Found.
Feb 12, 2007 2:19:44 PM org.apache.struts.action.ActionServlet initServlet
SEVERE: The /WEB-INF/web.xml was not found.
java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
at java.net.PlainSocketImpl.connectToAddress(
PlainSocketImpl.java:195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at java.net.Socket.connect(Socket.java:516)
at java.net.Socket.connect(Socket.java:466)
at sun.net.NetworkClient.doConnect(NetworkClient.java:157)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:365)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:477)
at sun.net.www.http.HttpClient.(HttpClient.java:214)
at sun.net.www.http.HttpClient.New(HttpClient.java:287)
at sun.net.www.http.HttpClient.New(HttpClient.java:299)
at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(
HttpURLConnection.java:795)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(
HttpURLConnection.java:747)
at sun.net.www.protocol.http.HttpURLConnection.connect(
HttpURLConnection.java:672)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(
HttpURLConnection.java:916)
at 
com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(
XMLEntityManager.java:973)
at 
com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startEntity(
XMLEntityManager.java:905)
at 
com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startDTDEntity(
XMLEntityManager.java:872)
at 
com.sun.org.apache.xerces.internal.impl.XMLDTDScannerImpl.setInputSource(
XMLDTDScannerImpl.java:282)
at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDispatcher.dispatch(
XMLDocumentScannerImpl.java:1021)
at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(
XMLDocumentFragmentScannerImpl.java:368)
at 
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(
XML11Configuration.java:834)
at 
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(
XML11Configuration.java:764)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(
XMLParser.java:148)
at 
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(
AbstractSAXParser.java:1242)
at org.apache.commons.digester.Digester.parse(Digester.java:1591)
at org.apache.struts.action.ActionServlet.initServlet(
ActionServlet.java:1730)
at org.apache.struts.action.ActionServlet.init(
ActionServlet.java:346)
at javax.servlet.GenericServlet.init(GenericServlet.java:211)
at org.apache.catalina.core.StandardWrapper.loadServlet(
StandardWrapper.java:1105)
at org.apache.catalina.core.StandardWrapper.load(
StandardWrapper.java:932)
at org

Tomcat problem

2007-02-12 Thread Kenneth B Burgess
I am using Tomcat 5.5.20 with Eclipse in the test environment and cannot 
run my application. This
all worked yesterday. The error (below) says that /WEB-INF/web.xml cannot 
be found, but it's in
my application. Can anyone help with this?

Feb 12, 2007 2:19:42 PM org.apache.catalina.core.AprLifecycleListener 
lifecycleEvent
INFO: The Apache Tomcat Native library which allows optimal performance in 
production environments was not found on the java.library.path: C:\Program 
Files\Java\jdk1.5.0_07\bin;.;C:\WINDOWS\system32;C:\WINDOWS;c:\Program 
Files\Compaq\Compaq Management 
Agents\Dmi\Win32\Bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program
 
Files\SQLLIB\BIN;C:\Program Files\SQLLIB\FUNCTION;C:\Program 
Files\SQLLIB\HELP;C:\WINDOWS\system32\nls;C:\WINDOWS\system32\nls\ENGLISH;c:\apps\bpcscs\BPCSOO\SYSTEM;C:\PROGRA~1\IBM\CLIENT~1\shared;C:\Program
 
Files\ATI Technologies\ATI Control Panel;C:\Program 
Files\Java\jdk1.5.0_07\bin;C:\Notes;C:\Program Files\IBM\IBM CICS 
Transaction Gateway\BIN;c:\php;Z:.

Feb 12, 2007 2:19:42 PM org.apache.coyote.http11.Http11BaseProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Feb 12, 2007 2:19:42 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 681 ms
Feb 12, 2007 2:19:43 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Feb 12, 2007 2:19:43 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.20
Feb 12, 2007 2:19:43 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Feb 12, 2007 2:19:44 PM org.apache.struts.util.PropertyMessageResources 
loadLocale
WARNING:   Resource 
org/apache/struts/action/ActionResources_en_US.properties Not Found.
Feb 12, 2007 2:19:44 PM org.apache.struts.util.PropertyMessageResources 
loadLocale
WARNING:   Resource org/apache/struts/action/ActionResources_en.properties 
Not Found.
Feb 12, 2007 2:19:44 PM org.apache.struts.action.ActionServlet initServlet
SEVERE: The /WEB-INF/web.xml was not found.
java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
at java.net.PlainSocketImpl.connectToAddress(
PlainSocketImpl.java:195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at java.net.Socket.connect(Socket.java:516)
at java.net.Socket.connect(Socket.java:466)
at sun.net.NetworkClient.doConnect(NetworkClient.java:157)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:365)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:477)
at sun.net.www.http.HttpClient.(HttpClient.java:214)
at sun.net.www.http.HttpClient.New(HttpClient.java:287)
at sun.net.www.http.HttpClient.New(HttpClient.java:299)
at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(
HttpURLConnection.java:795)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(
HttpURLConnection.java:747)
at sun.net.www.protocol.http.HttpURLConnection.connect(
HttpURLConnection.java:672)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(
HttpURLConnection.java:916)
at 
com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(
XMLEntityManager.java:973)
at 
com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startEntity(
XMLEntityManager.java:905)
at 
com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startDTDEntity(
XMLEntityManager.java:872)
at 
com.sun.org.apache.xerces.internal.impl.XMLDTDScannerImpl.setInputSource(
XMLDTDScannerImpl.java:282)
at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDispatcher.dispatch(
XMLDocumentScannerImpl.java:1021)
at 
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(
XMLDocumentFragmentScannerImpl.java:368)
at 
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(
XML11Configuration.java:834)
at 
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(
XML11Configuration.java:764)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(
XMLParser.java:148)
at 
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(
AbstractSAXParser.java:1242)
at org.apache.commons.digester.Digester.parse(Digester.java:1591)
at org.apache.struts.action.ActionServlet.initServlet(
ActionServlet.java:1730)
at org.apache.struts.action.ActionServlet.init(
ActionServlet.java:346)
at javax.servlet.GenericServlet.init(GenericServlet.java:211)
at org.apache.catalina.core.StandardWrapper.loadServlet(
StandardWrapper.java:1105)
at org.apache.catalina.core.StandardWrapper.load(
StandardWrapper.java:932)
at org.apache.catalina.core.StandardContext.loadOnStartup(
StandardContext.

Tomcat 5.5 redirect vs. forward behavior with welcome-file-list

2007-02-12 Thread Todd Gamber
In Tomcat 4.1, a request to a directory containing a welcome-file would
*redirect* the user to a URL with any applicable welcome-file's name
appended. In Tomcat 5.5, the request is instead *forwarded* to the welcome
file.

Is there a way to make Tomcat 5.5 act like Tomcat 4.1 in this respect?

For example:
I have a web.xml which contains:

index.jsp


In Tomcat 4.1, a request to http://www.mysite.com/directory/ makes the
browser refresh with a URL of http://www.mysite.com/directory/index.jsp

In Tomcat 5.5, the same request leaves the browser with the same URL
http://www.mysite.com/directory/.


BACKGROUND:
I'm using Tomcat 5.5.17 on Windows XP, and unfortunately, my application is
dependent on the redirect behavior of Tomcat 4.1 because my JSPs use
HttpServletRequest.getRequestURI() to find the name of the JSPs themselves.
The JSPs pull their content from the database based on the URL being
requested. So, if the browser's URL bar reads
http://www.mysite.com/directory/index.jsp, the 'index.jsp' queries the DB
for content based on the path '/directory/index.jsp'. Conversely, if the
browser's URL bar reads http://www.mysite.com/directory/, the same JSP looks
for database rows using the path '/directory/'. Naturally, because Tomcat
5.5 acts differently, similar requests receive different content.

I realize that populating content based on what's in the URL bar is not the
best design, but I can't seem to find another way to definitively get the
name of the actual JSP being requested. If anybody knows of a method similar
to getRequestURI(), but which knows the name of the JSP being requested, it
would help tremendously.

Thanks,
Todd



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: how to change Tomcat default headers

2007-02-12 Thread Gregor Schneider

we switched to apache httpd to serve static content and thus avoided
the problem, tomcat behind is only serving dynamic content.

before we did this, we've created a filter for the specific webapps
that needed the headers to be changed, however, you'll have to do that
for each webapp where you want headers other than tomcat's default
headers.

cheers

greg
--
what's puzzlin' you, is the nature of my game
gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2
gpgp-key available @ http://pgpkeys.pca.dfn.de:11371

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Apache 2.2.4 + Tomcat 6.0.9 using mod_proxy for ColdFusion

2007-02-12 Thread Dave Shuck
I have been trying to nail down how to configure the combination of Apache 
2.2.4 + Tomcat 6.0.9 using mod_proxy to pass ColdFusion templates to an 
instance of a ColdFusion server for processing which is loaded as an 
application in Tomcat.  

After some very helpful responses from Pid on the apache-users list, I am 
furthering my discussion here as it appears that my issue lies with my 
misconfiguration (or more aptly un-configuration) of Tomcat to make this 
work.   Below is the conversation that brought me to this list.  

I am clearly open to the answer of 'rtfm', but I have been thusfar unable to 
find the 'm' in which my answer exists. :)

I would be very grateful for any further advice on this issue.

Dave Shuck wrote:
> I hate to spam up the list with this issue, but I have another question if 
you 
> would indulge me.  To strip this down a bit, let's just forget about the 
> multiple instances and say I have a single instance of Tomcat and have 
> installed ColdFusion as an application within it.   
> 
> So far I have been able to forward .cfm files to ColdFusion via mod_jk and 
> ProxyPass, but neither was in the way that I expected.  I haven't been able 
> to successfully process cfm files with the RewriteRule method.  Perhaps the 
> problem is in my expectation rather than functionality.
> 
> Here is what I would expect to happen.  In Tomcat there is a webapp 
> named "ROOT" which is where the ColdFusion web admin tools and such 
> installed.  It's physical path is /usr/local/apache-tomcat/webapps/ROOT I 
can 
> hit that with http://localhost:8080/..   

ok...

> Then in my httpd-vhosts.conf I 
> have a website that is pathed /usr/local/apache2/htdocs/whateversite.  I 
> Ideally I want all my files to exist in the .../htdocs/whateversite 
directory 
> and when I hit a .cfm file in that directory, I want that file to be 
> processed by the ColdFusion application.    

yes...

> When I used ProxyPass, any request to 'whateversite' would just forward the 
> request to the 'ROOT' site and expect the requested file to exist 
> in .../webapps/ROOT.    Obviously this wasn't the answer.

that's because you told it to...

when the request comes in, you forward the request to tomcat, which 
looked for it in the default application (ROOT) because you haven't told 
Tomcat to look anywhere else.

Apache doesn't send the whole file over to Tomcat for processing, it 
just abdicates responsibility for the requested url and expects Tomcat 
to know what to do with it, and where to find it.

> When I used mod_jk, any non-".cfm" templates would serve properly but when 
it 
> went to serve the ".cfm" templates it would expect those to exist in 
> that "ROOT" directory rather in the "whateversite" directory just as 
> ProxyPass had.  This was closer but still not the answer.

as above you've not configured your Tomcat to know where those files are.

> I haven't yet gotten your suggestion working using RewriteRule, but  would 
> this work as I was expecting where it would not actually re-route the 
request 
> to look for the template in another directory, but actually process the 
> requested template through the application?

it doesn't process the file like a filter, a proxy instruction hands off 
the request for processing by another server, then feeds the results 
back to the client.

> For what it's worth, I added this to the bottom of my httpd.conf file:
> ReWriteEngine on
> RewriteRule  ^\/(.+)\.cfm(.+)? ajp://localhost:8009/$1.cfm$2 [P,L]
> RewriteRule  ^\/(.+)\.cfc(.+)? ajp://localhost:8009/$1.cfc$2 [P,L]
> 
> And this does exist in my Tomcat server.xml:
>     
>     
> 
> When I put request a ColdFusion template it just serves the plain text back 
> from the template sitting in the "whatever" site.  I am not seeing any 
> errors, but it just seems to do nothing with that ".cfm" request.
> 
> Again, I feel like I am just missing something that is probably painfully 
> obvious to others, but after reading and re-reading through the docs I am 
> just not finding the exact answer I am looking for.

Your Tomcat configuration isn't quite right yet.

You need to specify, either a docbase in the ROOT context with all your 
cf? files in it, or add another context and direct all requests to that.

ask about configuring Tomcat webapps on the tomcat-user list & I'll look 
out for you there.

-- 
~Dave Shuck
[EMAIL PROTECTED]
www.daveshuck.com

Where's your Spot? 
www.instantspot.com

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: tomcat behind tomcat

2007-02-12 Thread Iratxe Etxebarria
You can use an apache server on front-end, using ajp to send requests to 
these two tomcats. Use
Jkmount /console/*   to send requests for the tomcat listening on 
9090, and other requests are sent to the principal tomcat.

Iratxe Etxebarria

siddharth karandikar escribió:

Hi Everyone !

As Tomcat can also be used as normal HTTP server, is there a
possibility to run a Tomcat behind another Tomcat?

What exactly I am trying to do is,
http://localhost:8080/console/*  should fetch response from
http://localhost:9090/console/*

I saw the balancer app that comes with Tomcat, but its doing
sendRedirect. I want the user to remain on same host:port, so doing
redirect is not and option.




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: tomcat behind tomcat

2007-02-12 Thread Iratxe Etxebarria
You can use an apache server on front-end, using ajp to send requests to 
these two tomcats. Use
Jkmount /console/*   to send requests for the tomcat listening on 
9090, and other requests are sent to the principal tomcat.

Iratxe Etxebarria

siddharth karandikar escribió:

Hi Everyone !

As Tomcat can also be used as normal HTTP server, is there a
possibility to run a Tomcat behind another Tomcat?

What exactly I am trying to do is,
http://localhost:8080/console/*  should fetch response from
http://localhost:9090/console/*

I saw the balancer app that comes with Tomcat, but its doing
sendRedirect. I want the user to remain on same host:port, so doing
redirect is not and option.




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Initialize Webapplication on tomcat Startup

2007-02-12 Thread Leon Rosenberg

A little side note, using a context listener instead of servlet would
be the "sprucer" solution.

regards
Leon

On 2/12/07, Oliver Schoenwald <[EMAIL PROTECTED]> wrote:

Thank you, this was exactly what I was seeking. Works properly.

:-)

David Delbecq schrieb:

>
>
>System Init Servlet
>initializer
>be.rmi.intranet.servlet.SetupServlet
>1
>
>
>
>



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



AW: Re: AW: RE: Re: AW: RE: Error instantiating servlet class

2007-02-12 Thread [EMAIL PROTECTED]
Thanks. It is working now.

Ursprüngliche Nachricht
Von: [EMAIL PROTECTED]
Datum: 12.02.2007 11:33
An: "Tomcat Users List"
Betreff: Re: AW: RE: Re: AW: RE: Error instantiating servlet class

This is same error as before, only the class is different, as long 
as
you get those errors, just put the libraries you require inside 
your
WEB-INF/lib folder.

En l'instant précis du 02/12/07 11:28, [EMAIL PROTECTED]
s'exprimait en ces termes:
> Thanks.
>
> It seems that things have moved on, but I get another error now:
>
> exception 
>
> javax.servlet.ServletException: Error instantiating servlet 
class 
> servlet.CallService
>   org.apache.catalina.valves.ErrorReportValve.invoke
> (ErrorReportValve.java:105)
>   org.apache.catalina.connector.CoyoteAdapter.service
(CoyoteAdapter.
> java:148)
>   org.apache.coyote.http11.Http11Processor.process
(Http11Processor.
> java:869)
>   org.apache.coyote.http11.
> Http11BaseProtocol$Http11ConnectionHandler.processConnection
> (Http11BaseProtocol.java:664)
>   org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket
> (PoolTcpEndpoint.java:527)
>   org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt
> (LeaderFollowerWorkerThread.java:80)
>   org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run
> (ThreadPool.java:684)
>   java.lang.Thread.run(Thread.java:595)
>
>
> root cause 
>
> java.lang.NoClassDefFoundError: org/apache/axis/client/Service
>   java.lang.ClassLoader.defineClass1(Native Method)
>   java.lang.ClassLoader.defineClass(ClassLoader.java:620)
>   java.security.SecureClassLoader.defineClass(SecureClassLoader.
java:
> 124)
>   org.apache.catalina.loader.WebappClassLoader.findClassInternal
> (WebappClassLoader.java:1815)
>   org.apache.catalina.loader.WebappClassLoader.findClass
> (WebappClassLoader.java:869)
>   org.apache.catalina.loader.WebappClassLoader.loadClass
> (WebappClassLoader.java:1322)
>   org.apache.catalina.loader.WebappClassLoader.loadClass
> (WebappClassLoader.java:1201)
>   java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
>   java.lang.Class.getDeclaredConstructors0(Native Method)
>   java.lang.Class.privateGetDeclaredConstructors(Class.java:2357)
>   java.lang.Class.getConstructor0(Class.java:2671)
>   java.lang.Class.newInstance0(Class.java:321)
>   java.lang.Class.newInstance(Class.java:303)
>   org.apache.catalina.valves.ErrorReportValve.invoke
> (ErrorReportValve.java:105)
>   org.apache.catalina.connector.CoyoteAdapter.service
(CoyoteAdapter.
> java:148)
>   org.apache.coyote.http11.Http11Processor.process
(Http11Processor.
> java:869)
>   org.apache.coyote.http11.
> Http11BaseProtocol$Http11ConnectionHandler.processConnection
> (Http11BaseProtocol.java:664)
>   org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket
> (PoolTcpEndpoint.java:527)
>   org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt
> (LeaderFollowerWorkerThread.java:80)
>   org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run
> (ThreadPool.java:684)
>   java.lang.Thread.run(Thread.java:595)
>
>
> My servlet is using a web service. The client classes of the 
web 
> service are put in 
> C:\tomcat\webapps\StandardCategoryModule\WEB-INF\classes\org 
and 
> the web service itself is put in C:\Axis\webapps\axis\WEB-
> INF\classes\org.
>
> I have built a web service and web service client in eclipse and 
I 
> have managed to invoke the web service with that command line 
cleint. 
> Now I am trying to crate a form that  invokes a servlet that uses 
the 
> client classes to invoke the web service.
>
> Thanks
>
> Regards,
> Magdalena
>
> Ursprüngliche Nachricht
> Von: [EMAIL PROTECTED]
> Datum: 12.02.2007 11:11
> An: "Tomcat Users List", 
> <[EMAIL PROTECTED]>
> Betreff: RE: Re: AW: RE: Error instantiating servlet class
>
> in your distribution, put the jar here 
>
> C:\tomcat\webapps\StandardCategoryModule\WEB-INF\lib\jaxrpc.jar 
>
> -Message d'origine-
> De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Envoyé : lundi 12 février 2007 11:00
> À : users@tomcat.apache.org
> Objet : AW: Re: AW: RE: Error instantiating servlet class
>
>
> I have set up the classpath environmantal variable to include 
the 
> path to jaxrpc.jar
>
> Thanks
>
> Magdalena
> Ursprüngliche Nachricht
> Von: [EMAIL PROTECTED]
> Datum: 12.02.2007 10:51
> An: "Tomcat Users List"
> Betreff: Re: AW: RE: Error instantiating servlet class
>
> Where did you put it?
> En l'instant précis du 02/12/07 10:27, [EMAIL PROTECTED]
> s'exprimait en ces termes:
>   
>> Thanks. I have already put in the classpath the path to jaxrpc.
>> 
> jar. I 
>   
>> presume this is the one, but it still doesn't work.
>>
>> Regards,
>> Magdalena
>> Ursprüngliche Nachricht
>> Von: [EMAIL PROTECTED]
>> Datum: 12.02.2007 10:20
>> An: "Tomcat Users List", 
>> <[EMAIL PROTECTED]>
>> Betreff: RE: Error instantiating servlet class
>>
>> it seems

Re: Using Grizzly with Tomcat

2007-02-12 Thread Rémy Maucherat

On 2/12/07, Iván Sánchez <[EMAIL PROTECTED]> wrote:

Hei,

I am trying to develop a server which uses Comet. According to
http://tomcat.apache.org/tomcat-6.0-doc/aio.html I need a nio http
connector.


I think you need to read the Tomcat documentation again then. This is
not what is written on the page (quote from the text in bold at the
top: "IMPORTANT NOTE: Usage of these features requires using the APR
or NIO HTTP connectors."). The HTTP and AJP connector page in the docs
includes a list of the available connectors.

Rémy

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: tomcat behind tomcat

2007-02-12 Thread Peter Crowther
> From: siddharth karandikar [mailto:[EMAIL PROTECTED] 
> Yeah, Apache is always there to help. But I am trying to find out if
> there is any easy but well tested and stable :) way with tomcat
> itself. Just trying to avoid one more program installation on client's
> overloaded server.

I assume you can't simply use multiple connectors on the same Tomcat
instance, plus filters to refuse traffic you don't want on a particular
webapp?

- Peter

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: tomcat behind tomcat

2007-02-12 Thread siddharth karandikar

Yeah, Apache is always there to help. But I am trying to find out if
there is any easy but well tested and stable :) way with tomcat
itself. Just trying to avoid one more program installation on client's
overloaded server.

On 2/12/07, Peter Crowther <[EMAIL PROTECTED]> wrote:

> From: siddharth karandikar [mailto:[EMAIL PROTECTED]
> What I see is ... HTTPS is still in TODO list and author himself
> agrees that there hasn't been enough testing done.

Ah.  If in your original message you said "possibility to run" when you
meant "solid, documented, tested system to run"... then you should
probably use Apache or Squid if you want open-source code, or a
commercial reverse proxy solution.  I'm not aware of any code that can
run in Tomcat that meets the requirements you (now) describe.

- Peter

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--

~ Siddharth ~

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Using Grizzly with Tomcat

2007-02-12 Thread Caldarale, Charles R
> From: Iván Sánchez [mailto:[EMAIL PROTECTED] 
> Subject: Using Grizzly with Tomcat
> 
> I am trying to develop a server which uses Comet. According to 
> http://tomcat.apache.org/tomcat-6.0-doc/aio.html I need a nio http 
> connector.

What's wrong with Tomcat's NIO connector?  Just specify:
org.apache.coyote.http11.Http11NioProtocol
as the protocol value.  See the description of the protocol attribute here:
http://tomcat.apache.org/tomcat-6.0-doc/config/http.html

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: tomcat behind tomcat

2007-02-12 Thread Peter Crowther
> From: siddharth karandikar [mailto:[EMAIL PROTECTED] 
> What I see is ... HTTPS is still in TODO list and author himself
> agrees that there hasn't been enough testing done.

Ah.  If in your original message you said "possibility to run" when you
meant "solid, documented, tested system to run"... then you should
probably use Apache or Squid if you want open-source code, or a
commercial reverse proxy solution.  I'm not aware of any code that can
run in Tomcat that meets the requirements you (now) describe.

- Peter

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: tomcat behind tomcat

2007-02-12 Thread siddharth karandikar

j2ep seems to be small but useful package.
What I see is ... HTTPS is still in TODO list and author himself
agrees that there hasn't been enough testing done.


On 2/12/07, Tim Funk <[EMAIL PROTECTED]> wrote:

This may do the trick:

http://j2ep.sourceforge.net/

-Tim

siddharth karandikar wrote:
> Hi Everyone !
>
> As Tomcat can also be used as normal HTTP server, is there a
> possibility to run a Tomcat behind another Tomcat?
>
> What exactly I am trying to do is,
> http://localhost:8080/console/*  should fetch response from
> http://localhost:9090/console/*
>
> I saw the balancer app that comes with Tomcat, but its doing
> sendRedirect. I want the user to remain on same host:port, so doing
> redirect is not and option.
>


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--

~ Siddharth ~

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Unable to work with Tomcat 4.0

2007-02-12 Thread David Smith
There are a few things to look at:

1. Check that the examples webapp is present in the webapps directory.

2. Check with the manager webapp that the examples webapp is deployed.
(http://localhost:8080/manager/html)

3. Check the logs around the time tomcat was started for other errors
attempting to deploy the examples webapp.

4. Check file permissions to be sure the user tomcat is running as has
read access to the examples webapp

5. Check the examples web.xml for the servlet mappings for these
servlets.  The urls you provided make me thing you are attempting to use
the invoker servlet.  That servlet was disabled by default soo long ago,
I can't remember which version was the first to remove it.

--David

Rahul Choubey wrote:

>Dear Friends,
>
>I have installed Apache Tomcat version 4.0 in my system.
>I am getting the homepage correctly on writing
>http://localhost:8080 on the browser's address bar but
>when I go to servlets example page I am unable to execute
>the servlets,the same is the problem with JSP too.I am getting
>the following error:
>
>Apache Tomcat/4.0.4- HTTP Status 404 - /examples/servlet/HelloWorldExample
>type Status report
> message /examples/servlet/HelloWorldExample
> description The requested resource  (/examples/servlet/HelloWorldExample) is 
> not available.
>
>
>I have correctly set the environment variables.I have tried on both Win98
>and XP and on both IE and Mozilla.Please help.
>
>Regards,
>Rahul
>
>
>
> 
>-
>Need a quick answer? Get one in minutes from people who know. Ask your 
>question on Yahoo! Answers.
>  
>


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Using Grizzly with Tomcat

2007-02-12 Thread Iván Sánchez

Hei,

I am trying to develop a server which uses Comet. According to 
http://tomcat.apache.org/tomcat-6.0-doc/aio.html I need a nio http 
connector. I have surf through Internet, and I have found Grizzly 
(https://glassfish.dev.java.net/javaee5/webtier/webtierhome.html) that 
is an HTTP connector which uses NIO. Can I use Grizzly with Tomcat? In 
that case, could you give me some help with the steps I have to follow?


Thank you very much.
Iván


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



how to change Tomcat default headers

2007-02-12 Thread Tomas Pop

Hello,

I have this problem:

Tomcat adds (or at least did in the 4.1 branch) certain response 
headers, directives to clients and proxy caches to not cache the data, 
when it is to serve something within a security-constraint.


[It seems that] When IE downloads something with a mime-type it thinks 
it can handle (probably via a plug-in) it caches the data and then 
passes it over to the plug-in. With SSL and the Pragma header set to 
no-cache this seems to fail.


Problems are with these headers in IE:

Pragma = No-cache
Cache-Control = No-cache

I can change it in action in this way:

response.setHeader("Pragma", "public");
response.setHeader("Cache-Control", "max-age=0");

This works fine. But how can I set these headers not in my action, but 
for Tomcat default servlet? For example, when I want to view DOC file 
with mime-type "application/msword", I click on the file and it's 
processed by Tomcat default servlet and there are bad headers for IE.


Thanks.

--
Mgr. Tomas Pop
Master Internet s.r.o.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: tomcat behind tomcat

2007-02-12 Thread Tim Funk

This may do the trick:

http://j2ep.sourceforge.net/

-Tim

siddharth karandikar wrote:

Hi Everyone !

As Tomcat can also be used as normal HTTP server, is there a
possibility to run a Tomcat behind another Tomcat?

What exactly I am trying to do is,
http://localhost:8080/console/*  should fetch response from
http://localhost:9090/console/*

I saw the balancer app that comes with Tomcat, but its doing
sendRedirect. I want the user to remain on same host:port, so doing
redirect is not and option.




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: tomcat behind tomcat

2007-02-12 Thread Gaurav Kushwaha

Not sure about this but you can probably use Apache Web Server to do the job
of first Tomcat. Or maybe you can use some port forwarding mechanism.
Gaurav Singh Kushwaha
http://www.chakpak.com

Ph: +91-9880110695
Bangalore, India.

On 2/12/07, siddharth karandikar <[EMAIL PROTECTED]> wrote:


Hi Everyone !

As Tomcat can also be used as normal HTTP server, is there a
possibility to run a Tomcat behind another Tomcat?

What exactly I am trying to do is,
http://localhost:8080/console/*  should fetch response from
http://localhost:9090/console/*

I saw the balancer app that comes with Tomcat, but its doing
sendRedirect. I want the user to remain on same host:port, so doing
redirect is not and option.

--

~ Siddharth ~

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




tomcat behind tomcat

2007-02-12 Thread siddharth karandikar

Hi Everyone !

As Tomcat can also be used as normal HTTP server, is there a
possibility to run a Tomcat behind another Tomcat?

What exactly I am trying to do is,
http://localhost:8080/console/*  should fetch response from
http://localhost:9090/console/*

I saw the balancer app that comes with Tomcat, but its doing
sendRedirect. I want the user to remain on same host:port, so doing
redirect is not and option.

--

~ Siddharth ~

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat 5.5 and JDK 6 compatibility

2007-02-12 Thread Mark Thomas
Sriram Saroop wrote:
> Hi all,
> Wanted to know if tomcat 5.5.x is fully compatible with JDK 6 since we are
> thinking of a JDK upgrade for our production system.
> Has the compatibility been tested thoroughly ? (I cannot find any info
> about
> this on tomcat.apache.org) Are there any known issues ? How about Tomcat 6
> and JDK 6 ?

Both TC5 and TC6 work happily for me on a 1.6 JDK but I haven't tested
them extensively. The only issue I am aware of is a JDK issue with the
Windows service that should be fixed in the next JDK release. See
http://issues.apache.org/bugzilla/show_bug.cgi?id=41538 for details
and a couple of different workarounds.

Mark



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Connection pool doesn't reconnect after the database has been rebooted?

2007-02-12 Thread Mark Thomas
Bjørn T Johansen wrote:
> We have a small problem with our connection pool that is setup using Tomcat 
> 5.5.20.. 
> When the database is rebooted, the only way to get a valid connection again 
> is to completely restart Tomcat..
> Is there a way to configure this, so the connection pool reconnects 
> automatically?

Configuring a validationQuery and setting testOnBorrow to true fixed a
similar issue for me.

Mark

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Tomcat 5.5 and JDK 6 compatibility

2007-02-12 Thread Sriram Saroop

Hi all,
Wanted to know if tomcat 5.5.x is fully compatible with JDK 6 since we are
thinking of a JDK upgrade for our production system.
Has the compatibility been tested thoroughly ? (I cannot find any info about
this on tomcat.apache.org) Are there any known issues ? How about Tomcat 6
and JDK 6 ?
Thanks!
Sriram


Re: Multiple JAVA_HOME variables

2007-02-12 Thread Foo Shyn

Hi ,

After re-installed my Tomcat with everything (no custom settings) and using 
the suggestion by Peter it seems fine now. Hopefully there won't be any 
problem with it

Thanx man.

Regards,
FooShyn
- Original Message - 
From: "Foo Shyn" <[EMAIL PROTECTED]>

To: "Tomcat Users List" 
Sent: Monday, February 12, 2007 6:45 PM
Subject: Re: Multiple JAVA_HOME variables



Hi,

I did just that but my Tomcat doesn't start completely. When i try to 
access the jsp page there'll be error thrown out...


Thanx.
Regards,
FooShyn
- Original Message - 
From: "Peter Crowther" <[EMAIL PROTECTED]>

To: "Tomcat Users List" 
Sent: Monday, February 12, 2007 6:41 PM
Subject: RE: Multiple JAVA_HOME variables



From: Foo Shyn [mailto:[EMAIL PROTECTED]
I'm facing a situation here whereby a JRE 1.5 is
pre-installed on a server, and a JAVA_HOME variables is thus
created and pointed to the JRE.
However i'll need to have it point to my JDK in order for me
to use Tomcat. Any tricks or settings that i can use to make
this possible?
I can't change the JAVA_HOME value though :(

My settings:

OS: Windows Server 2003
Tomcat: 4.1.31
JDK: 1.4.2_12


A cheap solution: Use the zip distribution of Java - i.e. don't run it
as a service.  Tweak the startup.bat script to use your preferred
JAVA_HOME.  If you need the service to start as the machine restarts,
use SRVANY to register the .bat as a service.

- Peter

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.441 / Virus Database: 268.17.31/676 - Release Date: 2/8/2007 
3:04 PM





-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.441 / Virus Database: 268.17.31/676 - Release Date: 2/8/2007 
3:04 PM







-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Multiple JAVA_HOME variables

2007-02-12 Thread Peter Crowther
> From: Foo Shyn [mailto:[EMAIL PROTECTED] 
> I did just that but my Tomcat doesn't start completely. When 
> i try to access 
> the jsp page there'll be error thrown out...

We'd be able to help you better if you told us *what* error :-).

- Peter

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Multiple JAVA_HOME variables

2007-02-12 Thread Foo Shyn

Hi,

I did just that but my Tomcat doesn't start completely. When i try to access 
the jsp page there'll be error thrown out...


Thanx.
Regards,
FooShyn
- Original Message - 
From: "Peter Crowther" <[EMAIL PROTECTED]>

To: "Tomcat Users List" 
Sent: Monday, February 12, 2007 6:41 PM
Subject: RE: Multiple JAVA_HOME variables



From: Foo Shyn [mailto:[EMAIL PROTECTED]
I'm facing a situation here whereby a JRE 1.5 is
pre-installed on a server, and a JAVA_HOME variables is thus
created and pointed to the JRE.
However i'll need to have it point to my JDK in order for me
to use Tomcat. Any tricks or settings that i can use to make
this possible?
I can't change the JAVA_HOME value though :(

My settings:

OS: Windows Server 2003
Tomcat: 4.1.31
JDK: 1.4.2_12


A cheap solution: Use the zip distribution of Java - i.e. don't run it
as a service.  Tweak the startup.bat script to use your preferred
JAVA_HOME.  If you need the service to start as the machine restarts,
use SRVANY to register the .bat as a service.

- Peter

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.441 / Virus Database: 268.17.31/676 - Release Date: 2/8/2007 
3:04 PM





-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Multiple JAVA_HOME variables

2007-02-12 Thread Peter Crowther
> From: Foo Shyn [mailto:[EMAIL PROTECTED] 
> I'm facing a situation here whereby a JRE 1.5 is 
> pre-installed on a server, and a JAVA_HOME variables is thus 
> created and pointed to the JRE.
> However i'll need to have it point to my JDK in order for me 
> to use Tomcat. Any tricks or settings that i can use to make 
> this possible?
> I can't change the JAVA_HOME value though :(
> 
> My settings:
> 
> OS: Windows Server 2003
> Tomcat: 4.1.31
> JDK: 1.4.2_12

A cheap solution: Use the zip distribution of Java - i.e. don't run it
as a service.  Tweak the startup.bat script to use your preferred
JAVA_HOME.  If you need the service to start as the machine restarts,
use SRVANY to register the .bat as a service.

- Peter

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Initialize Webapplication on tomcat Startup

2007-02-12 Thread Oliver Schoenwald

Thank you, this was exactly what I was seeking. Works properly.

:-)

David Delbecq schrieb:



   
   System Init Servlet
   initializer
   be.rmi.intranet.servlet.SetupServlet
   1
   

 




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Multiple JAVA_HOME variables

2007-02-12 Thread Foo Shyn
Hi All,

I'm facing a situation here whereby a JRE 1.5 is pre-installed on a server, and 
a JAVA_HOME variables is thus created and pointed to the JRE.
However i'll need to have it point to my JDK in order for me to use Tomcat. Any 
tricks or settings that i can use to make this possible?
I can't change the JAVA_HOME value though :(

My settings:

OS: Windows Server 2003
Tomcat: 4.1.31
JDK: 1.4.2_12


Thanx.
Regards,
FooShyn

Re: Apache2.x + Tomcat 5.5 (Load Balance and Cluster)

2007-02-12 Thread Pid

Yes, search the archive. (try nabble)
I've posted complete configs into several threads in the last 6 months.


p



Eric Chow wrote:

Hello,

Is there any complete configuration for Apache2.x + Tomcat 5.5 (Load
Balance and Cluster, Session Replication) ?


I tested some many times and found some many reference but also
failed. Would you please to show me a more completed and worked
configuration sample ?

Best regards,
Eric

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: AW: RE: Re: AW: RE: Error instantiating servlet class

2007-02-12 Thread David Delbecq
This is same error as before, only the class is different, as long as
you get those errors, just put the libraries you require inside your
WEB-INF/lib folder.

En l'instant précis du 02/12/07 11:28, [EMAIL PROTECTED]
s'exprimait en ces termes:
> Thanks.
>
> It seems that things have moved on, but I get another error now:
>
> exception 
>
> javax.servlet.ServletException: Error instantiating servlet class 
> servlet.CallService
>   org.apache.catalina.valves.ErrorReportValve.invoke
> (ErrorReportValve.java:105)
>   org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.
> java:148)
>   org.apache.coyote.http11.Http11Processor.process(Http11Processor.
> java:869)
>   org.apache.coyote.http11.
> Http11BaseProtocol$Http11ConnectionHandler.processConnection
> (Http11BaseProtocol.java:664)
>   org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket
> (PoolTcpEndpoint.java:527)
>   org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt
> (LeaderFollowerWorkerThread.java:80)
>   org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run
> (ThreadPool.java:684)
>   java.lang.Thread.run(Thread.java:595)
>
>
> root cause 
>
> java.lang.NoClassDefFoundError: org/apache/axis/client/Service
>   java.lang.ClassLoader.defineClass1(Native Method)
>   java.lang.ClassLoader.defineClass(ClassLoader.java:620)
>   java.security.SecureClassLoader.defineClass(SecureClassLoader.java:
> 124)
>   org.apache.catalina.loader.WebappClassLoader.findClassInternal
> (WebappClassLoader.java:1815)
>   org.apache.catalina.loader.WebappClassLoader.findClass
> (WebappClassLoader.java:869)
>   org.apache.catalina.loader.WebappClassLoader.loadClass
> (WebappClassLoader.java:1322)
>   org.apache.catalina.loader.WebappClassLoader.loadClass
> (WebappClassLoader.java:1201)
>   java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
>   java.lang.Class.getDeclaredConstructors0(Native Method)
>   java.lang.Class.privateGetDeclaredConstructors(Class.java:2357)
>   java.lang.Class.getConstructor0(Class.java:2671)
>   java.lang.Class.newInstance0(Class.java:321)
>   java.lang.Class.newInstance(Class.java:303)
>   org.apache.catalina.valves.ErrorReportValve.invoke
> (ErrorReportValve.java:105)
>   org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.
> java:148)
>   org.apache.coyote.http11.Http11Processor.process(Http11Processor.
> java:869)
>   org.apache.coyote.http11.
> Http11BaseProtocol$Http11ConnectionHandler.processConnection
> (Http11BaseProtocol.java:664)
>   org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket
> (PoolTcpEndpoint.java:527)
>   org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt
> (LeaderFollowerWorkerThread.java:80)
>   org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run
> (ThreadPool.java:684)
>   java.lang.Thread.run(Thread.java:595)
>
>
> My servlet is using a web service. The client classes of the web 
> service are put in 
> C:\tomcat\webapps\StandardCategoryModule\WEB-INF\classes\org and 
> the web service itself is put in C:\Axis\webapps\axis\WEB-
> INF\classes\org.
>
> I have built a web service and web service client in eclipse and I 
> have managed to invoke the web service with that command line cleint. 
> Now I am trying to crate a form that  invokes a servlet that uses the 
> client classes to invoke the web service.
>
> Thanks
>
> Regards,
> Magdalena
>
> Ursprüngliche Nachricht
> Von: [EMAIL PROTECTED]
> Datum: 12.02.2007 11:11
> An: "Tomcat Users List", 
> <[EMAIL PROTECTED]>
> Betreff: RE: Re: AW: RE: Error instantiating servlet class
>
> in your distribution, put the jar here 
>
> C:\tomcat\webapps\StandardCategoryModule\WEB-INF\lib\jaxrpc.jar 
>
> -Message d'origine-
> De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Envoyé : lundi 12 février 2007 11:00
> À : users@tomcat.apache.org
> Objet : AW: Re: AW: RE: Error instantiating servlet class
>
>
> I have set up the classpath environmantal variable to include the 
> path to jaxrpc.jar
>
> Thanks
>
> Magdalena
> Ursprüngliche Nachricht
> Von: [EMAIL PROTECTED]
> Datum: 12.02.2007 10:51
> An: "Tomcat Users List"
> Betreff: Re: AW: RE: Error instantiating servlet class
>
> Where did you put it?
> En l'instant précis du 02/12/07 10:27, [EMAIL PROTECTED]
> s'exprimait en ces termes:
>   
>> Thanks. I have already put in the classpath the path to jaxrpc.
>> 
> jar. I 
>   
>> presume this is the one, but it still doesn't work.
>>
>> Regards,
>> Magdalena
>> Ursprüngliche Nachricht
>> Von: [EMAIL PROTECTED]
>> Datum: 12.02.2007 10:20
>> An: "Tomcat Users List", 
>> <[EMAIL PROTECTED]>
>> Betreff: RE: Error instantiating servlet class
>>
>> it seems this class javax/xml/rpc/ServiceException
>> is not in the classpath.
>>
>>
>> -Message d'origine-
>> De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
>> Envoyé : lundi 12 février 2007 09:39
>> À : users@

AW: RE: Re: AW: RE: Error instantiating servlet class

2007-02-12 Thread [EMAIL PROTECTED]
Thanks.

It seems that things have moved on, but I get another error now:

exception 

javax.servlet.ServletException: Error instantiating servlet class 
servlet.CallService
org.apache.catalina.valves.ErrorReportValve.invoke
(ErrorReportValve.java:105)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.
java:148)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.
java:869)
org.apache.coyote.http11.
Http11BaseProtocol$Http11ConnectionHandler.processConnection
(Http11BaseProtocol.java:664)
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket
(PoolTcpEndpoint.java:527)
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt
(LeaderFollowerWorkerThread.java:80)
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run
(ThreadPool.java:684)
java.lang.Thread.run(Thread.java:595)


root cause 

java.lang.NoClassDefFoundError: org/apache/axis/client/Service
java.lang.ClassLoader.defineClass1(Native Method)
java.lang.ClassLoader.defineClass(ClassLoader.java:620)
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:
124)
org.apache.catalina.loader.WebappClassLoader.findClassInternal
(WebappClassLoader.java:1815)
org.apache.catalina.loader.WebappClassLoader.findClass
(WebappClassLoader.java:869)
org.apache.catalina.loader.WebappClassLoader.loadClass
(WebappClassLoader.java:1322)
org.apache.catalina.loader.WebappClassLoader.loadClass
(WebappClassLoader.java:1201)
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
java.lang.Class.getDeclaredConstructors0(Native Method)
java.lang.Class.privateGetDeclaredConstructors(Class.java:2357)
java.lang.Class.getConstructor0(Class.java:2671)
java.lang.Class.newInstance0(Class.java:321)
java.lang.Class.newInstance(Class.java:303)
org.apache.catalina.valves.ErrorReportValve.invoke
(ErrorReportValve.java:105)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.
java:148)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.
java:869)
org.apache.coyote.http11.
Http11BaseProtocol$Http11ConnectionHandler.processConnection
(Http11BaseProtocol.java:664)
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket
(PoolTcpEndpoint.java:527)
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt
(LeaderFollowerWorkerThread.java:80)
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run
(ThreadPool.java:684)
java.lang.Thread.run(Thread.java:595)


My servlet is using a web service. The client classes of the web 
service are put in 
C:\tomcat\webapps\StandardCategoryModule\WEB-INF\classes\org and 
the web service itself is put in C:\Axis\webapps\axis\WEB-
INF\classes\org.

I have built a web service and web service client in eclipse and I 
have managed to invoke the web service with that command line cleint. 
Now I am trying to crate a form that  invokes a servlet that uses the 
client classes to invoke the web service.

Thanks

Regards,
Magdalena

Ursprüngliche Nachricht
Von: [EMAIL PROTECTED]
Datum: 12.02.2007 11:11
An: "Tomcat Users List", 
<[EMAIL PROTECTED]>
Betreff: RE: Re: AW: RE: Error instantiating servlet class

in your distribution, put the jar here 

C:\tomcat\webapps\StandardCategoryModule\WEB-INF\lib\jaxrpc.jar 

-Message d'origine-
De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Envoyé : lundi 12 février 2007 11:00
À : users@tomcat.apache.org
Objet : AW: Re: AW: RE: Error instantiating servlet class


I have set up the classpath environmantal variable to include the 
path to jaxrpc.jar

Thanks

Magdalena
Ursprüngliche Nachricht
Von: [EMAIL PROTECTED]
Datum: 12.02.2007 10:51
An: "Tomcat Users List"
Betreff: Re: AW: RE: Error instantiating servlet class

Where did you put it?
En l'instant précis du 02/12/07 10:27, [EMAIL PROTECTED]
s'exprimait en ces termes:
> Thanks. I have already put in the classpath the path to jaxrpc.
jar. I 
> presume this is the one, but it still doesn't work.
>
> Regards,
> Magdalena
> Ursprüngliche Nachricht
> Von: [EMAIL PROTECTED]
> Datum: 12.02.2007 10:20
> An: "Tomcat Users List", 
> <[EMAIL PROTECTED]>
> Betreff: RE: Error instantiating servlet class
>
> it seems this class javax/xml/rpc/ServiceException
> is not in the classpath.
>
>
> -Message d'origine-
> De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Envoyé : lundi 12 février 2007 09:39
> À : users@tomcat.apache.org
> Objet : Error instantiating servlet class
>
>
>
> users@tomcat.apache.org
>
> Hi,
>
> I have the following file structure:
>
> 1.C:\tomcat\webapps\StandardCategoryModule\start.jsp
> 2.C:\tomcat\webapps\StandardCategoryModule\WEB-INF\web.xml
> 3.C:\tomcat\webapps\StandardCategoryModule\WEB-
> INF\classes\servlet\CallService
>
> Start.jsp should invoke the CallService servlet , but I am 
> getting 
> 

Re: AW: Re: AW: RE: Error instantiating servlet class

2007-02-12 Thread David Delbecq
tomcat does not use CLASSPATH. Put your webapp jars inside the
WEB-INF/lib/ folder

En l'instant précis du 02/12/07 11:00, [EMAIL PROTECTED]
s'exprimait en ces termes:
> I have set up the classpath environmantal variable to include the 
> path to jaxrpc.jar
>
> Thanks
>
> Magdalena
> Ursprüngliche Nachricht
> Von: [EMAIL PROTECTED]
> Datum: 12.02.2007 10:51
> An: "Tomcat Users List"
> Betreff: Re: AW: RE: Error instantiating servlet class
>
> Where did you put it?
> En l'instant précis du 02/12/07 10:27, [EMAIL PROTECTED]
> s'exprimait en ces termes:
>   
>> Thanks. I have already put in the classpath the path to jaxrpc.
>> 
> jar. I 
>   
>> presume this is the one, but it still doesn't work.
>>
>> Regards,
>> Magdalena
>> Ursprüngliche Nachricht
>> Von: [EMAIL PROTECTED]
>> Datum: 12.02.2007 10:20
>> An: "Tomcat Users List", 
>> <[EMAIL PROTECTED]>
>> Betreff: RE: Error instantiating servlet class
>>
>> it seems this class javax/xml/rpc/ServiceException
>> is not in the classpath.
>>
>>
>> -Message d'origine-
>> De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
>> Envoyé : lundi 12 février 2007 09:39
>> À : users@tomcat.apache.org
>> Objet : Error instantiating servlet class
>>
>>
>>
>> users@tomcat.apache.org
>>
>> Hi,
>>
>> I have the following file structure:
>>
>> 1.   C:\tomcat\webapps\StandardCategoryModule\start.jsp
>> 2.   C:\tomcat\webapps\StandardCategoryModule\WEB-INF\web.xml
>> 3.   C:\tomcat\webapps\StandardCategoryModule\WEB-
>> INF\classes\servlet\CallService
>>
>> Start.jsp should invoke the CallService servlet , but I am 
>> getting 
>> the error below.
>>
>> type Exception report
>> message 
>> description The server encountered an internal error () that 
>> prevented it from fulfilling this request.
>> exception 
>> javax.servlet.ServletException: Error instantiating servlet 
>> 
> class 
>   
>> servlet.CallService
>>  org.apache.catalina.valves.ErrorReportValve.invoke
>> (ErrorReportValve.java:105)
>>  org.apache.catalina.connector.CoyoteAdapter.service
>> (CoyoteAdapter.
>> java:148)
>>  org.apache.coyote.http11.Http11Processor.process
>> 
> (Http11Processor.
>   
>> java:869)
>>  org.apache.coyote.http11.
>> Http11BaseProtocol$Http11ConnectionHandler.processConnection
>> (Http11BaseProtocol.java:664)
>>  org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket
>> (PoolTcpEndpoint.java:527)
>>  org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt
>> (LeaderFollowerWorkerThread.java:80)
>>  org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run
>> (ThreadPool.java:684)
>>  java.lang.Thread.run(Thread.java:595)
>> root cause 
>> java.lang.NoClassDefFoundError: javax/xml/rpc/ServiceException
>>  java.lang.Class.getDeclaredConstructors0(Native Method)
>>  java.lang.Class.privateGetDeclaredConstructors(Class.java:2357)
>>  java.lang.Class.getConstructor0(Class.java:2671)
>>  java.lang.Class.newInstance0(Class.java:321)
>>  java.lang.Class.newInstance(Class.java:303)
>>  org.apache.catalina.valves.ErrorReportValve.invoke
>> (ErrorReportValve.java:105)
>>  org.apache.catalina.connector.CoyoteAdapter.service
>> (CoyoteAdapter.
>> java:148)
>>  org.apache.coyote.http11.Http11Processor.process
>> 
> (Http11Processor.
>   
>> java:869)
>>  org.apache.coyote.http11.
>> Http11BaseProtocol$Http11ConnectionHandler.processConnection
>> (Http11BaseProtocol.java:664)
>>  org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket
>> (PoolTcpEndpoint.java:527)
>>  org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt
>> (LeaderFollowerWorkerThread.java:80)
>>  org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run
>> (ThreadPool.java:684)
>>  java.lang.Thread.run(Thread.java:595)
>>
>>
>>
>> My  web.xml file contains the following information:
>>
>>
>> 
>> http://java.sun.
>> com/xml/ns/j2ee" xmlns:xsi="http://www.w3.
>> 
> org/2001/XMLSchema-" target="_BLANK">http://www.w3.org/2001/XMLSchema-
> 
>   
>> instance" xsi:schemaLocation="http://java.sun.
>> 
> com/xml/ns/j2ee/web-" target="_BLANK">http://java.sun.
> com/xml/ns/j2ee/web-
>   
>> app_2_4.xsd">
>>  
>>  StandardCategoryModule
>>  
>>  
>>  
>>  
>>  CallService
>>  CallService
>>  
>>  servlet.CallService
>>  
>>  
>>  
>>  CallService
>>  /CallService
>>  
>>  
>>  
>>  index.html
>>  index.htm
>>  index.jsp
>>  default.html
>>  default.htm
>>  default.jsp
>>  start.jsp
>>  
>>
>> 
>>
>> I would appreciate any help on this.
>>
>> Thanks
>>
>> Regards,
>> Magdalena
>>
>>
>>
>>
>>
>>
>> 
> -
>   
>> To start a new topic, e-mail: users@tomcat.apache.org
>> To unsubscribe, e-mail: [EMAIL PROTEC

RE: Re: AW: RE: Error instantiating servlet class

2007-02-12 Thread PATTUS, Jean-Philippe
in your distribution, put the jar here 

C:\tomcat\webapps\StandardCategoryModule\WEB-INF\lib\jaxrpc.jar 

-Message d'origine-
De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Envoyé : lundi 12 février 2007 11:00
À : users@tomcat.apache.org
Objet : AW: Re: AW: RE: Error instantiating servlet class


I have set up the classpath environmantal variable to include the 
path to jaxrpc.jar

Thanks

Magdalena
Ursprüngliche Nachricht
Von: [EMAIL PROTECTED]
Datum: 12.02.2007 10:51
An: "Tomcat Users List"
Betreff: Re: AW: RE: Error instantiating servlet class

Where did you put it?
En l'instant précis du 02/12/07 10:27, [EMAIL PROTECTED]
s'exprimait en ces termes:
> Thanks. I have already put in the classpath the path to jaxrpc.
jar. I 
> presume this is the one, but it still doesn't work.
>
> Regards,
> Magdalena
> Ursprüngliche Nachricht
> Von: [EMAIL PROTECTED]
> Datum: 12.02.2007 10:20
> An: "Tomcat Users List", 
> <[EMAIL PROTECTED]>
> Betreff: RE: Error instantiating servlet class
>
> it seems this class javax/xml/rpc/ServiceException
> is not in the classpath.
>
>
> -Message d'origine-
> De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Envoyé : lundi 12 février 2007 09:39
> À : users@tomcat.apache.org
> Objet : Error instantiating servlet class
>
>
>
> users@tomcat.apache.org
>
> Hi,
>
> I have the following file structure:
>
> 1.C:\tomcat\webapps\StandardCategoryModule\start.jsp
> 2.C:\tomcat\webapps\StandardCategoryModule\WEB-INF\web.xml
> 3.C:\tomcat\webapps\StandardCategoryModule\WEB-
> INF\classes\servlet\CallService
>
> Start.jsp should invoke the CallService servlet , but I am 
> getting 
> the error below.
>
> type Exception report
> message 
> description The server encountered an internal error () that 
> prevented it from fulfilling this request.
> exception 
> javax.servlet.ServletException: Error instantiating servlet 
class 
> servlet.CallService
>   org.apache.catalina.valves.ErrorReportValve.invoke
> (ErrorReportValve.java:105)
>   org.apache.catalina.connector.CoyoteAdapter.service
> (CoyoteAdapter.
> java:148)
>   org.apache.coyote.http11.Http11Processor.process
(Http11Processor.
> java:869)
>   org.apache.coyote.http11.
> Http11BaseProtocol$Http11ConnectionHandler.processConnection
> (Http11BaseProtocol.java:664)
>   org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket
> (PoolTcpEndpoint.java:527)
>   org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt
> (LeaderFollowerWorkerThread.java:80)
>   org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run
> (ThreadPool.java:684)
>   java.lang.Thread.run(Thread.java:595)
> root cause 
> java.lang.NoClassDefFoundError: javax/xml/rpc/ServiceException
>   java.lang.Class.getDeclaredConstructors0(Native Method)
>   java.lang.Class.privateGetDeclaredConstructors(Class.java:2357)
>   java.lang.Class.getConstructor0(Class.java:2671)
>   java.lang.Class.newInstance0(Class.java:321)
>   java.lang.Class.newInstance(Class.java:303)
>   org.apache.catalina.valves.ErrorReportValve.invoke
> (ErrorReportValve.java:105)
>   org.apache.catalina.connector.CoyoteAdapter.service
> (CoyoteAdapter.
> java:148)
>   org.apache.coyote.http11.Http11Processor.process
(Http11Processor.
> java:869)
>   org.apache.coyote.http11.
> Http11BaseProtocol$Http11ConnectionHandler.processConnection
> (Http11BaseProtocol.java:664)
>   org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket
> (PoolTcpEndpoint.java:527)
>   org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt
> (LeaderFollowerWorkerThread.java:80)
>   org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run
> (ThreadPool.java:684)
>   java.lang.Thread.run(Thread.java:595)
>
>
>
> My  web.xml file contains the following information:
>
>
> 
> http://java.sun.
> com/xml/ns/j2ee" xmlns:xsi="http://www.w3.
org/2001/XMLSchema-" target="_BLANK">http://www.w3.org/2001/XMLSchema-

> instance" xsi:schemaLocation="http://java.sun.
com/xml/ns/j2ee/web-" target="_BLANK">http://java.sun.
com/xml/ns/j2ee/web-
> app_2_4.xsd">
>   
>   StandardCategoryModule
>   
>   
>   
>   
>   CallService
>   CallService
>   
>   servlet.CallService
>   
>   
>   
>   CallService
>   /CallService
>   
>   
>   
>   index.html
>   index.htm
>   index.jsp
>   default.html
>   default.htm
>   default.jsp
>   start.jsp
>   
>
> 
>
> I would appreciate any help on this.
>
> Thanks
>
> Regards,
> Magdalena
>
>
>
>
>
> 
-
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> 
*

AW: Re: AW: RE: Error instantiating servlet class

2007-02-12 Thread [EMAIL PROTECTED]
I have set up the classpath environmantal variable to include the 
path to jaxrpc.jar

Thanks

Magdalena
Ursprüngliche Nachricht
Von: [EMAIL PROTECTED]
Datum: 12.02.2007 10:51
An: "Tomcat Users List"
Betreff: Re: AW: RE: Error instantiating servlet class

Where did you put it?
En l'instant précis du 02/12/07 10:27, [EMAIL PROTECTED]
s'exprimait en ces termes:
> Thanks. I have already put in the classpath the path to jaxrpc.
jar. I 
> presume this is the one, but it still doesn't work.
>
> Regards,
> Magdalena
> Ursprüngliche Nachricht
> Von: [EMAIL PROTECTED]
> Datum: 12.02.2007 10:20
> An: "Tomcat Users List", 
> <[EMAIL PROTECTED]>
> Betreff: RE: Error instantiating servlet class
>
> it seems this class javax/xml/rpc/ServiceException
> is not in the classpath.
>
>
> -Message d'origine-
> De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Envoyé : lundi 12 février 2007 09:39
> À : users@tomcat.apache.org
> Objet : Error instantiating servlet class
>
>
>
> users@tomcat.apache.org
>
> Hi,
>
> I have the following file structure:
>
> 1.C:\tomcat\webapps\StandardCategoryModule\start.jsp
> 2.C:\tomcat\webapps\StandardCategoryModule\WEB-INF\web.xml
> 3.C:\tomcat\webapps\StandardCategoryModule\WEB-
> INF\classes\servlet\CallService
>
> Start.jsp should invoke the CallService servlet , but I am 
> getting 
> the error below.
>
> type Exception report
> message 
> description The server encountered an internal error () that 
> prevented it from fulfilling this request.
> exception 
> javax.servlet.ServletException: Error instantiating servlet 
class 
> servlet.CallService
>   org.apache.catalina.valves.ErrorReportValve.invoke
> (ErrorReportValve.java:105)
>   org.apache.catalina.connector.CoyoteAdapter.service
> (CoyoteAdapter.
> java:148)
>   org.apache.coyote.http11.Http11Processor.process
(Http11Processor.
> java:869)
>   org.apache.coyote.http11.
> Http11BaseProtocol$Http11ConnectionHandler.processConnection
> (Http11BaseProtocol.java:664)
>   org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket
> (PoolTcpEndpoint.java:527)
>   org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt
> (LeaderFollowerWorkerThread.java:80)
>   org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run
> (ThreadPool.java:684)
>   java.lang.Thread.run(Thread.java:595)
> root cause 
> java.lang.NoClassDefFoundError: javax/xml/rpc/ServiceException
>   java.lang.Class.getDeclaredConstructors0(Native Method)
>   java.lang.Class.privateGetDeclaredConstructors(Class.java:2357)
>   java.lang.Class.getConstructor0(Class.java:2671)
>   java.lang.Class.newInstance0(Class.java:321)
>   java.lang.Class.newInstance(Class.java:303)
>   org.apache.catalina.valves.ErrorReportValve.invoke
> (ErrorReportValve.java:105)
>   org.apache.catalina.connector.CoyoteAdapter.service
> (CoyoteAdapter.
> java:148)
>   org.apache.coyote.http11.Http11Processor.process
(Http11Processor.
> java:869)
>   org.apache.coyote.http11.
> Http11BaseProtocol$Http11ConnectionHandler.processConnection
> (Http11BaseProtocol.java:664)
>   org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket
> (PoolTcpEndpoint.java:527)
>   org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt
> (LeaderFollowerWorkerThread.java:80)
>   org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run
> (ThreadPool.java:684)
>   java.lang.Thread.run(Thread.java:595)
>
>
>
> My  web.xml file contains the following information:
>
>
> 
> http://java.sun.
> com/xml/ns/j2ee" xmlns:xsi="http://www.w3.
org/2001/XMLSchema-" target="_BLANK">http://www.w3.org/2001/XMLSchema-

> instance" xsi:schemaLocation="http://java.sun.
com/xml/ns/j2ee/web-" target="_BLANK">http://java.sun.
com/xml/ns/j2ee/web-
> app_2_4.xsd">
>   
>   StandardCategoryModule
>   
>   
>   
>   
>   CallService
>   CallService
>   
>   servlet.CallService
>   
>   
>   
>   CallService
>   /CallService
>   
>   
>   
>   index.html
>   index.htm
>   index.jsp
>   default.html
>   default.htm
>   default.jsp
>   start.jsp
>   
>
> 
>
> I would appreciate any help on this.
>
> Thanks
>
> Regards,
> Magdalena
>
>
>
>
>
> 
-
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> 
**
> Ce message et ses pi�ces jointes sont confidentiels et �tablis 
a 
> l'intention exclusive de ses destinataires.
> Tout message �lectronique est susceptible d'alt�ration. SOGITEC 
> d�cline toute responsabilit� au titre de ce message s'il a �t� 
> alt�r�, d�form� o

Re: AW: RE: Error instantiating servlet class

2007-02-12 Thread David Delbecq
Where did you put it?
En l'instant précis du 02/12/07 10:27, [EMAIL PROTECTED]
s'exprimait en ces termes:
> Thanks. I have already put in the classpath the path to jaxrpc.jar. I 
> presume this is the one, but it still doesn't work.
>
> Regards,
> Magdalena
> Ursprüngliche Nachricht
> Von: [EMAIL PROTECTED]
> Datum: 12.02.2007 10:20
> An: "Tomcat Users List", 
> <[EMAIL PROTECTED]>
> Betreff: RE: Error instantiating servlet class
>
> it seems this class javax/xml/rpc/ServiceException
> is not in the classpath.
>
>
> -Message d'origine-
> De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Envoyé : lundi 12 février 2007 09:39
> À : users@tomcat.apache.org
> Objet : Error instantiating servlet class
>
>
>
> users@tomcat.apache.org
>
> Hi,
>
> I have the following file structure:
>
> 1.C:\tomcat\webapps\StandardCategoryModule\start.jsp
> 2.C:\tomcat\webapps\StandardCategoryModule\WEB-INF\web.xml
> 3.C:\tomcat\webapps\StandardCategoryModule\WEB-
> INF\classes\servlet\CallService
>
> Start.jsp should invoke the CallService servlet , but I am 
> getting 
> the error below.
>
> type Exception report
> message 
> description The server encountered an internal error () that 
> prevented it from fulfilling this request.
> exception 
> javax.servlet.ServletException: Error instantiating servlet class 
> servlet.CallService
>   org.apache.catalina.valves.ErrorReportValve.invoke
> (ErrorReportValve.java:105)
>   org.apache.catalina.connector.CoyoteAdapter.service
> (CoyoteAdapter.
> java:148)
>   org.apache.coyote.http11.Http11Processor.process(Http11Processor.
> java:869)
>   org.apache.coyote.http11.
> Http11BaseProtocol$Http11ConnectionHandler.processConnection
> (Http11BaseProtocol.java:664)
>   org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket
> (PoolTcpEndpoint.java:527)
>   org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt
> (LeaderFollowerWorkerThread.java:80)
>   org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run
> (ThreadPool.java:684)
>   java.lang.Thread.run(Thread.java:595)
> root cause 
> java.lang.NoClassDefFoundError: javax/xml/rpc/ServiceException
>   java.lang.Class.getDeclaredConstructors0(Native Method)
>   java.lang.Class.privateGetDeclaredConstructors(Class.java:2357)
>   java.lang.Class.getConstructor0(Class.java:2671)
>   java.lang.Class.newInstance0(Class.java:321)
>   java.lang.Class.newInstance(Class.java:303)
>   org.apache.catalina.valves.ErrorReportValve.invoke
> (ErrorReportValve.java:105)
>   org.apache.catalina.connector.CoyoteAdapter.service
> (CoyoteAdapter.
> java:148)
>   org.apache.coyote.http11.Http11Processor.process(Http11Processor.
> java:869)
>   org.apache.coyote.http11.
> Http11BaseProtocol$Http11ConnectionHandler.processConnection
> (Http11BaseProtocol.java:664)
>   org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket
> (PoolTcpEndpoint.java:527)
>   org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt
> (LeaderFollowerWorkerThread.java:80)
>   org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run
> (ThreadPool.java:684)
>   java.lang.Thread.run(Thread.java:595)
>
>
>
> My  web.xml file contains the following information:
>
>
> 
> http://java.sun.
> com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-
> instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee/web-
> app_2_4.xsd">
>   
>   StandardCategoryModule
>   
>   
>   
>   
>   CallService
>   CallService
>   
>   servlet.CallService
>   
>   
>   
>   CallService
>   /CallService
>   
>   
>   
>   index.html
>   index.htm
>   index.jsp
>   default.html
>   default.htm
>   default.jsp
>   start.jsp
>   
>
> 
>
> I would appreciate any help on this.
>
> Thanks
>
> Regards,
> Magdalena
>
>
>
>
>
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> **
> Ce message et ses pi�ces jointes sont confidentiels et �tablis a 
> l'intention exclusive de ses destinataires.
> Tout message �lectronique est susceptible d'alt�ration. SOGITEC 
> d�cline toute responsabilit� au titre de ce message s'il a �t� 
> alt�r�, d�form� ou falsifi�.
> Si vous n'�tes pas destinataire de ce message, merci de le d�truire 
> imm�diatement.
> **
>
>
>
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail

Re: Applet to JSP communication

2007-02-12 Thread David Delbecq
Use common-httpclient in you applet to do GET/POST operation from inside
the applet. Server side, all you need is a servlet or JSP that
understand the requests from your applet.

http://jakarta.apache.org/commons/httpclient/

En l'instant précis du 02/12/07 10:15, Teh Noranis Mohd Aris s'exprimait
en ces termes:
> Dear all,
>
>   How can my applet communicate with JSP using POST and GET? I have an applet 
> with a Save button to save data in a file at Apache Tomcat server. The applet 
> also contain JTextField to input the file name and JTextArea to input the 
> text to be saved. How can the applet and JSP communicate? Can anyone please 
> e-mail me the source code? Thank you so much.
>
>   Yours Sincerely,
>   TEH NORANIS
>
>  
> -
> Don't get soaked.  Take a quick peak at the forecast 
>  with theYahoo! Search weather shortcut.
>   


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



AW: RE: Error instantiating servlet class

2007-02-12 Thread [EMAIL PROTECTED]
Thanks. I have already put in the classpath the path to jaxrpc.jar. I 
presume this is the one, but it still doesn't work.

Regards,
Magdalena
Ursprüngliche Nachricht
Von: [EMAIL PROTECTED]
Datum: 12.02.2007 10:20
An: "Tomcat Users List", 
<[EMAIL PROTECTED]>
Betreff: RE: Error instantiating servlet class

it seems this class javax/xml/rpc/ServiceException
is not in the classpath.


-Message d'origine-
De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Envoyé : lundi 12 février 2007 09:39
À : users@tomcat.apache.org
Objet : Error instantiating servlet class



users@tomcat.apache.org

Hi,

I have the following file structure:

1.  C:\tomcat\webapps\StandardCategoryModule\start.jsp
2.  C:\tomcat\webapps\StandardCategoryModule\WEB-INF\web.xml
3.  C:\tomcat\webapps\StandardCategoryModule\WEB-
INF\classes\servlet\CallService

Start.jsp should invoke the CallService servlet , but I am 
getting 
the error below.

type Exception report
message 
description The server encountered an internal error () that 
prevented it from fulfilling this request.
exception 
javax.servlet.ServletException: Error instantiating servlet class 
servlet.CallService
org.apache.catalina.valves.ErrorReportValve.invoke
(ErrorReportValve.java:105)
org.apache.catalina.connector.CoyoteAdapter.service
(CoyoteAdapter.
java:148)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.
java:869)
org.apache.coyote.http11.
Http11BaseProtocol$Http11ConnectionHandler.processConnection
(Http11BaseProtocol.java:664)
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket
(PoolTcpEndpoint.java:527)
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt
(LeaderFollowerWorkerThread.java:80)
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run
(ThreadPool.java:684)
java.lang.Thread.run(Thread.java:595)
root cause 
java.lang.NoClassDefFoundError: javax/xml/rpc/ServiceException
java.lang.Class.getDeclaredConstructors0(Native Method)
java.lang.Class.privateGetDeclaredConstructors(Class.java:2357)
java.lang.Class.getConstructor0(Class.java:2671)
java.lang.Class.newInstance0(Class.java:321)
java.lang.Class.newInstance(Class.java:303)
org.apache.catalina.valves.ErrorReportValve.invoke
(ErrorReportValve.java:105)
org.apache.catalina.connector.CoyoteAdapter.service
(CoyoteAdapter.
java:148)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.
java:869)
org.apache.coyote.http11.
Http11BaseProtocol$Http11ConnectionHandler.processConnection
(Http11BaseProtocol.java:664)
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket
(PoolTcpEndpoint.java:527)
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt
(LeaderFollowerWorkerThread.java:80)
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run
(ThreadPool.java:684)
java.lang.Thread.run(Thread.java:595)



My  web.xml file contains the following information:



http://java.sun.
com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee/web-
app_2_4.xsd">

StandardCategoryModule




CallService
CallService

servlet.CallService



CallService
/CallService



index.html
index.htm
index.jsp
default.html
default.htm
default.jsp
start.jsp




I would appreciate any help on this.

Thanks

Regards,
Magdalena





-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


**
Ce message et ses pi�ces jointes sont confidentiels et �tablis a 
l'intention exclusive de ses destinataires.
Tout message �lectronique est susceptible d'alt�ration. SOGITEC 
d�cline toute responsabilit� au titre de ce message s'il a �t� 
alt�r�, d�form� ou falsifi�.
Si vous n'�tes pas destinataire de ce message, merci de le d�truire 
imm�diatement.
**



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Initialize Webapplication on tomcat Startup

2007-02-12 Thread David Delbecq




System Init Servlet
initializer
be.rmi.intranet.servlet.SetupServlet
1





En l'instant précis du 02/12/07 09:49, Oliver Schoenwald s'exprimait en
ces termes:
> Hello and good morning (at least from Germany),
>
> I'm running Tomcat 5.5.17 under Solaris 9 and have created a
> webapplication that
> starts some repeating background-tasks as soon as the application has
> been started
> the first time (in other words: I have a single controller-servlet and
> the init()-method
> contains some calls to classes that create background demon processes
> for some system
> analysis).
>
> Now, when I restart the tomcat engine, I have to call the URL of my
> webapplication to
> have the engine initialize my application for the first time. I
> remember that there is some
> option in the configuration of tomcat which tells the engine to
> startup certain applications
> automatically. So far I couldn't find that option in the docs.
>
> Can someone be so nice to point me to the right documentation or gives
> me an example
> how to solve my problem?
>
> Thank you in advance,
>
> Oliver
>
>
> 
>
> -
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Error instantiating servlet class

2007-02-12 Thread PATTUS, Jean-Philippe
it seems this class javax/xml/rpc/ServiceException
is not in the classpath.


-Message d'origine-
De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Envoyé : lundi 12 février 2007 09:39
À : users@tomcat.apache.org
Objet : Error instantiating servlet class



users@tomcat.apache.org

Hi,

I have the following file structure:

1.  C:\tomcat\webapps\StandardCategoryModule\start.jsp
2.  C:\tomcat\webapps\StandardCategoryModule\WEB-INF\web.xml
3.  C:\tomcat\webapps\StandardCategoryModule\WEB-
INF\classes\servlet\CallService

Start.jsp should invoke the CallService servlet , but I am getting 
the error below.

type Exception report
message 
description The server encountered an internal error () that 
prevented it from fulfilling this request.
exception 
javax.servlet.ServletException: Error instantiating servlet class 
servlet.CallService
org.apache.catalina.valves.ErrorReportValve.invoke
(ErrorReportValve.java:105)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.
java:148)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.
java:869)
org.apache.coyote.http11.
Http11BaseProtocol$Http11ConnectionHandler.processConnection
(Http11BaseProtocol.java:664)
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket
(PoolTcpEndpoint.java:527)
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt
(LeaderFollowerWorkerThread.java:80)
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run
(ThreadPool.java:684)
java.lang.Thread.run(Thread.java:595)
root cause 
java.lang.NoClassDefFoundError: javax/xml/rpc/ServiceException
java.lang.Class.getDeclaredConstructors0(Native Method)
java.lang.Class.privateGetDeclaredConstructors(Class.java:2357)
java.lang.Class.getConstructor0(Class.java:2671)
java.lang.Class.newInstance0(Class.java:321)
java.lang.Class.newInstance(Class.java:303)
org.apache.catalina.valves.ErrorReportValve.invoke
(ErrorReportValve.java:105)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.
java:148)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.
java:869)
org.apache.coyote.http11.
Http11BaseProtocol$Http11ConnectionHandler.processConnection
(Http11BaseProtocol.java:664)
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket
(PoolTcpEndpoint.java:527)
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt
(LeaderFollowerWorkerThread.java:80)
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run
(ThreadPool.java:684)
java.lang.Thread.run(Thread.java:595)



My  web.xml file contains the following information:



http://java.sun.
com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee/web-
app_2_4.xsd">

StandardCategoryModule




CallService
CallService

servlet.CallService



CallService
/CallService



index.html
index.htm
index.jsp
default.html
default.htm
default.jsp
start.jsp




I would appreciate any help on this.

Thanks

Regards,
Magdalena




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


**
Ce message et ses pi�ces jointes sont confidentiels et �tablis a l'intention 
exclusive de ses destinataires.
Tout message �lectronique est susceptible d'alt�ration. SOGITEC d�cline toute 
responsabilit� au titre de ce message s'il a �t� alt�r�, d�form� ou falsifi�.
Si vous n'�tes pas destinataire de ce message, merci de le d�truire 
imm�diatement.
**


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Applet to JSP communication

2007-02-12 Thread Teh Noranis Mohd Aris
Dear all,
   
  How can my applet communicate with JSP using POST and GET? I have an applet 
with a Save button to save data in a file at Apache Tomcat server. The applet 
also contain JTextField to input the file name and JTextArea to input the text 
to be saved. How can the applet and JSP communicate? Can anyone please e-mail 
me the source code? Thank you so much.
   
  Yours Sincerely,
  TEH NORANIS

 
-
Don't get soaked.  Take a quick peak at the forecast 
 with theYahoo! Search weather shortcut.

Re: Connection pool doesn't reconnect after the database has been rebooted?

2007-02-12 Thread Gregor Schneider

we also face the same here.

after mysql (configured as master/slave) is rebooted, tomcat's
datapool loses the connection to it and has to be rebooted, too.

i figure that the datapool is caching the connections and does not get
noticed about the db-reboot and thus using the wrong handles to the
db.

cheers

greg
--
what's puzzlin' you, is the nature of my game
gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2
gpgp-key available @ http://pgpkeys.pca.dfn.de:11371

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Initialize Webapplication on tomcat Startup

2007-02-12 Thread Oliver Schoenwald

Hello and good morning (at least from Germany),

I'm running Tomcat 5.5.17 under Solaris 9 and have created a 
webapplication that
starts some repeating background-tasks as soon as the application has 
been started
the first time (in other words: I have a single controller-servlet and 
the init()-method
contains some calls to classes that create background demon processes 
for some system

analysis).

Now, when I restart the tomcat engine, I have to call the URL of my 
webapplication to
have the engine initialize my application for the first time. I remember 
that there is some
option in the configuration of tomcat which tells the engine to startup 
certain applications

automatically. So far I couldn't find that option in the docs.

Can someone be so nice to point me to the right documentation or gives 
me an example

how to solve my problem?

Thank you in advance,

Oliver


--
Oliver Schönwald, Diplom-Informatiker

FernUniversität Hagen
Zentrum für IT und Medien (ZMI) - Competence Center Anwendungsentwicklung
Universitätsstr.21/AVZ - 58084 Hagen - Deutschland
fon: +49 2331 987 1721 - email: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Error instantiating servlet class

2007-02-12 Thread [EMAIL PROTECTED]

users@tomcat.apache.org

Hi,

I have the following file structure:

1.  C:\tomcat\webapps\StandardCategoryModule\start.jsp
2.  C:\tomcat\webapps\StandardCategoryModule\WEB-INF\web.xml
3.  C:\tomcat\webapps\StandardCategoryModule\WEB-
INF\classes\servlet\CallService

Start.jsp should invoke the CallService servlet , but I am getting 
the error below.

type Exception report
message 
description The server encountered an internal error () that 
prevented it from fulfilling this request.
exception 
javax.servlet.ServletException: Error instantiating servlet class 
servlet.CallService
org.apache.catalina.valves.ErrorReportValve.invoke
(ErrorReportValve.java:105)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.
java:148)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.
java:869)
org.apache.coyote.http11.
Http11BaseProtocol$Http11ConnectionHandler.processConnection
(Http11BaseProtocol.java:664)
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket
(PoolTcpEndpoint.java:527)
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt
(LeaderFollowerWorkerThread.java:80)
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run
(ThreadPool.java:684)
java.lang.Thread.run(Thread.java:595)
root cause 
java.lang.NoClassDefFoundError: javax/xml/rpc/ServiceException
java.lang.Class.getDeclaredConstructors0(Native Method)
java.lang.Class.privateGetDeclaredConstructors(Class.java:2357)
java.lang.Class.getConstructor0(Class.java:2671)
java.lang.Class.newInstance0(Class.java:321)
java.lang.Class.newInstance(Class.java:303)
org.apache.catalina.valves.ErrorReportValve.invoke
(ErrorReportValve.java:105)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.
java:148)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.
java:869)
org.apache.coyote.http11.
Http11BaseProtocol$Http11ConnectionHandler.processConnection
(Http11BaseProtocol.java:664)
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket
(PoolTcpEndpoint.java:527)
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt
(LeaderFollowerWorkerThread.java:80)
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run
(ThreadPool.java:684)
java.lang.Thread.run(Thread.java:595)



My  web.xml file contains the following information:



http://java.sun.
com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee/web-
app_2_4.xsd">

StandardCategoryModule




CallService
CallService

servlet.CallService



CallService
/CallService



index.html
index.htm
index.jsp
default.html
default.htm
default.jsp
start.jsp




I would appreciate any help on this.

Thanks

Regards,
Magdalena




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Connection pool doesn't reconnect after the database has been rebooted?

2007-02-12 Thread Pavel MX
I have a similar behavior with geronimo 1.1 and oracle. It's web container is 
Tomcat 5.5.20.

Let me know if there is any solution for this for Tomcat or Geronimo.

--Pav

- Original Message 
From: Bjørn T Johansen <[EMAIL PROTECTED]>
To: users@tomcat.apache.org
Sent: Monday, February 12, 2007 3:03:15 AM
Subject: Connection pool doesn't reconnect after the database has been rebooted?

We have a small problem with our connection pool that is setup using Tomcat 
5.5.20.. 
When the database is rebooted, the only way to get a valid connection again is 
to completely restart Tomcat..
Is there a way to configure this, so the connection pool reconnects 
automatically?



Regards,

BTJ

-- 
---
Bjørn T Johansen

[EMAIL PROTECTED]
---
Someone wrote:
"I understand that if you play a Windows CD backwards you hear strange Satanic 
messages"
To which someone replied:
"It's even worse than that; play it forwards and it installs Windows"
---

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







Connection pool doesn't reconnect after the database has been rebooted?

2007-02-12 Thread Bjørn T Johansen
We have a small problem with our connection pool that is setup using Tomcat 
5.5.20.. 
When the database is rebooted, the only way to get a valid connection again is 
to completely restart Tomcat..
Is there a way to configure this, so the connection pool reconnects 
automatically?



Regards,

BTJ

-- 
---
Bjørn T Johansen

[EMAIL PROTECTED]
---
Someone wrote:
"I understand that if you play a Windows CD backwards you hear strange Satanic 
messages"
To which someone replied:
"It's even worse than that; play it forwards and it installs Windows"
---

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]