preferred tomcat version

2005-11-29 Thread mukesh
Hi friends,

I am using Redhat Linux 7.0 and Apache web server (not tomcat). 

 

Which is the preferred version of tomcat I should use to add the
JSP/Servlet to my apache we server (and why)? And that tomcat version must
support mod_jk in order to connect it to apache (thankfully this has been
suggested by someone on this list)

 

Please advice.

 

Regards,

Mukesh



AW: Error: Io exception: Connection reset

2005-11-29 Thread Tobias Meyer
Maybe the user hit the "stop" button on the browser while downloading a page
or binary.

IIRC this will give you IOExceptions in your servlet when trying to push
more data in the "dead" connection.

It could also be your firewall, that times out connections which have not
been used for some time.
If you use tomcat connection pooling, try using 

validationQuery
select 1

in the ResourceParams of your jdbc connection definition in server.xml 
(see tomcat documentation for details)


Hth,
Tobias

> -Ursprüngliche Nachricht-
> Von: KUMAR, NANDA [AG-Contractor/1000] 
> [mailto:[EMAIL PROTECTED]
> Gesendet: Mittwoch, 30. November 2005 00:54
> An: users@tomcat.apache.org
> Betreff: Error: Io exception: Connection reset 
> 
> 
> Very often we are getting Io Exception: Connection reset 
> error. There is a
> firewall between tomcat app server and DB server.
> I wonder whether firewall is closing the connection or what 
> could be the
> reason. Please let me know how to get rid of this error. 
> 
> Thanks in advance.
> 
> 
> 
> --
> ---
> This e-mail message may contain privileged and/or 
> confidential information, and is intended to be received only 
> by persons entitled to receive such information. If you have 
> received this e-mail in error, please notify the sender 
> immediately. Please delete it and all attachments from any 
> servers, hard drives or any other media. Other use of this 
> e-mail by you is strictly prohibited.
> 
> 
> All e-mails and attachments sent and received are subject to 
> monitoring, reading and archival by Monsanto. The recipient 
> of this e-mail is solely responsible for checking for the 
> presence of "Viruses" or other "Malware". Monsanto accepts no 
> liability for any damage caused by any such code transmitted 
> by or accompanying this e-mail or any attachment.
> --
> ---
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

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



Re: SSL Certificate Beginner Question

2005-11-29 Thread Bill Barker

"Scott Purcell" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
> Real helpful ... I searched on SRV.12 and it brought up a bunch of links
> that have nothing to do with Tomcat  config of SSL.
>
> I probably posted a lame request. Let me try again.
>
> I have purchased a certificate via Verisign, and I have installed the
> certificate into a keystore. I am running Windows XP and Tomcat 5.5.12.
> I put the keystore and Cert.cer in the Tomcat/bin directory for 
> organiation.
> I read that the default is usually in the home directory where tomcat is
> installed on Unix. But that is another OS.
>
> I followed the docs here under Tomcat 5 SSL and ran across this:
> http://tomcat.apache.org/tomcat-5.5-doc/ssl-howto.html
>

There are two likely problems, but I don't know which one applies to you.

1) Since you are using 5.5.12, if you installed the libtcnative.dll with 
Tomcat, then you need to configure SSL via 
http://tomcat.apache.org/tomcat-5.5-doc/apr.html.  In particular, you need 
to extract the private-key into an OpenSSL format.  Alternatively, you can 
rename the dll for now, and work on just getting the Java Connector working.

2) You imported your cert into a different keystore file than the one that 
use used to generate the CSR.  Import the cert into the original one and you 
will be fine.  If you used OpenSSL to generate the CSR, than the easiest is 
to convert to a pkcs12 keystore as described above.  Alternatively, you can 
try using http://www.comu.de/docs/tomcat_ssl.htm.

>
> The final step is to configure your secure socket in the
> $CATALINA_HOME/conf/server.xml file, where $CATALINA_HOME represents the
> directory into which you installed Tomcat 5. An example  
> element
> for an SSL connector is included in the default server.xml file installed
> with Tomcat. It will look something like this:
>
>
> <-- Define a SSL Coyote HTTP/1.1 Connector on port 8443 -->
> 
>
>
>
>
>
> Anyway I uncommented this snippet from my Tomcat server.xml file and
> restarted. But I cannot hit https://localhost:8443 like the read-me 
> states.
>
> I have checked all $TOMCAT_HOME/logs and see nothing. It just hangs when
> trying to call it. I can hit http://localhost and all is happy. But the
> certificate states it is coming from a certain URL. So I am not sure how
> that all works.
>
>
> I hope this may help someone feed me back some relevant information.
>
> Scott
>
>
> - Original Message -
> From: "Hassan Schroeder" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" 
> Sent: Tuesday, November 29, 2005 9:37 PM
> Subject: Re: SSL Certificate Beginner Question
>
>
>> Scott Purcell wrote:
>>
>> > How do I configure some of my pages to use https? I do not know
>> > where to begin on this?
>>
>> Begin with the Servlet Spec. -- SRV.12 (Security) would be apropos :-)
>>
>> HTH!
>> --
>> Hassan Schroeder - [EMAIL PROTECTED]
>> Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com
>>
>>   dream.  code.
>>
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
> 




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



Re: Server push

2005-11-29 Thread Andrew.du
Yes,the "http://www.pushlets.com/"; is good!
Thanks!


2005/11/25, Dhaval Patel <[EMAIL PROTECTED]>:
>
> Hi,
>
> I dont know about your environment. But I know few things about push that
> I
> would like to share.
>
> I researched "push" a while ago. Basically I was looking for server push.
> HTTP
> is not push enabled protocol. So the answer is you can not push from
> server to
> client using HTTP. Client has to poll server. (may be in low priority
> thread).
>
> J2ME (MIDP 2.0) has push capabalities. I am not sure whether all phones
> supports it the way it is written. :)
>
> You might want to take a look at "pushlet" (http://www.pushlets.com/)
> which may
> help you get going quickly.
>
> Hope about things help you.
>
>
> Regards,
> D
>
> --- "Andrew.du" <[EMAIL PROTECTED]> wrote:
>
> > Can somebody tell me server push?
> >
> > --
> > [EMAIL PROTECTED]
> >
>
>
>
>
> __
> Start your day with Yahoo! - Make it your home page!
> http://www.yahoo.com/r/hs
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
[EMAIL PROTECTED]


Re: Server push

2005-11-29 Thread Andrew.du
I just want to use 'Server Push' to write a chating root.

2005/11/25, Hassan Schroeder <[EMAIL PROTECTED]>:
>
> Andrew.du wrote:
> > Can somebody tell me server push?
>
> C'mon, the *first* hit from googling "server push" is this classic
> (and definitive) page:
>
> 
>
> --
> Hassan Schroeder - [EMAIL PROTECTED]
> Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com
>
>  dream.  code.
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
[EMAIL PROTECTED]


RE: Java client does not re-use TCP/IP connections.

2005-11-29 Thread Caldarale, Charles R
> From: Magyar, Bence [mailto:[EMAIL PROTECTED] 
> Subject: Java client does not re-use TCP/IP connections.
>
>   For each one of these invocations, my client creates a new 
> TCP/IP connection to the service instead of reusing the 
> existing one.  Am I missing some critical parameter 
> in my Stub class?

Perhaps not in the Stub.  A little Googling came across this note at
Java Boutique
(http://javaboutique.internet.com/tutorials/Axis2-2/ses_man.html):

The scope must be defined in the wsdl file:

  
  ...

value must be request, session, or application.

Since I've never used Axis, I can't really be sure that this is
pertinent, but it certainly sounds related to your situation.

 - 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 unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: SSL Certificate Beginner Question

2005-11-29 Thread Scott Purcell
Thanks for the link ...
I think first I need to be able to hit the https://localhost:8443 before
going any further?  Once that is working ... then hopefully I can figure out
how to restrict certain pages.





- Original Message -
From: "Hassan Schroeder" <[EMAIL PROTECTED]>
To: "Tomcat Users List" 
Sent: Tuesday, November 29, 2005 10:43 PM
Subject: Re: SSL Certificate Beginner Question


> Scott Purcell wrote:
> > Real helpful ... I searched on SRV.12 and it brought up a bunch of links
> > that have nothing to do with Tomcat  config of SSL.
>
> OK, here's a direct link to the Servlet Spec:
>
>  
>
> :: which, BTW, is the first Google hit on "java servlet spec" :-)
>
> > I probably posted a lame request. Let me try again.
>
> OK.
>
> > I followed the docs here under Tomcat 5 SSL and ran across this:
> > http://tomcat.apache.org/tomcat-5.5-doc/ssl-howto.html
>
> From your first email:
>
> > How do I configure some of my pages to use https?
>
> :: I thought you had *already* configured your installation per that
> how-to, cert installed, SSL working, and you were trying to understand
> how to restrict "some pages" to SSL-only access.
>
> Sorry for misunderstanding.
> --
> Hassan Schroeder - [EMAIL PROTECTED]
> Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com
>
>   dream.  code.
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>

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



RE: confusion of tomcat downloading

2005-11-29 Thread Caldarale, Charles R
> From: blueberry lake [mailto:[EMAIL PROTECTED] 
> Subject: confusion of tomcat downloading
> 
> On page http://tomcat.apache.org/download-55.cgi, there are 
> several choices for tomcat 5.x, like core, deployer, embedded,
> admin web application, etc.,
> can anyone explain berifly what their difference are?

Core is the primary Tomcat download.  Beware of the .exe version, since
it does not include the various scripts that a beginner should start
with; the .exe installs only as a Windows service.  Better to get the
.zip or .tar.gz, as appropriate - I believe they're identical other than
the archive format, but I haven't verified that lately.  You used to
have to use the GNU tar utility for the latter form, but I don't know if
that's still true.

Deployer is a utility application that supposedly simplifies webapp
deployment; can't say that I've ever used it.  You can read about it
here:
http://tomcat.apache.org/tomcat-5.5-doc/deployer-howto.html
at the bottom of the page.

Embedded is a Tomcat variation that lets you bury Tomcat inside another
app; JBoss uses this format.  It is not for use with Apache httpd, as an
earlier posting might have implied.  If you're going to front-end Tomcat
with httpd, use the core download.  (Tomcat performance in handling
static content is getting very close to that of httpd, so there are few
reasons to complicate your life by front-ending it these days.)

The admin webapp is quite useful for poking around inside Tomcat from a
web browser, so by all means pick that up.  Just unzip (or untar) into
the Tomcat installation directory, update the conf/tomcat-users.xml
file, and play.

The compatibility package is required if you're going to run Tomcat with
a 1.4 JRE or JDK.  Contains a couple of jars with classes for XML
processing that are standard with the 1.5 JRE, but have to be added on
to 1.4 environments.

The documentation download is what it is.

 - 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 unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: SSL Certificate Beginner Question

2005-11-29 Thread Hassan Schroeder
Scott Purcell wrote:
> Real helpful ... I searched on SRV.12 and it brought up a bunch of links
> that have nothing to do with Tomcat  config of SSL.

OK, here's a direct link to the Servlet Spec:

 

:: which, BTW, is the first Google hit on "java servlet spec" :-)

> I probably posted a lame request. Let me try again.

OK.

> I followed the docs here under Tomcat 5 SSL and ran across this:
> http://tomcat.apache.org/tomcat-5.5-doc/ssl-howto.html

>From your first email:

> How do I configure some of my pages to use https?

:: I thought you had *already* configured your installation per that
how-to, cert installed, SSL working, and you were trying to understand
how to restrict "some pages" to SSL-only access.

Sorry for misunderstanding.
-- 
Hassan Schroeder - [EMAIL PROTECTED]
Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com

  dream.  code.



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



Re: SSL Certificate Beginner Question

2005-11-29 Thread Scott Purcell
Yes Thanks David,

I did add the "keystoreFile=XXX" and "keystorePass="xxx". But it still
hangs. Since I was on Windows I used a full path to the file.  I forgot
about the https://localhost:8443? Just
curious. I know when I asked for the cert, Verisign asked me for my dns
name, so maybe the simple localhost will not work and only the dns entry
will work. ...

Thanks much for your time.

Scott


- Original Message -
From: "David Wall" <[EMAIL PROTECTED]>
To: "Tomcat Users List" 
Sent: Tuesday, November 29, 2005 10:25 PM
Subject: Re: SSL Certificate Beginner Question


>
> > <-- Define a SSL Coyote HTTP/1.1 Connector on port 8443 -->
> >
> >
> >
> You probably want to add the following attributes to the Connector above:
>
> keystoreFile="keys/tomcatkeys" keystorePass="123"
>
> Obviously, make the keystoreFile point to the name of the Java keystore
> that you put your certificate inside, along with the password for that
> keystore.  I believe the base is $CATALINA_HOME if you use a relative
> pathname like above.
>
> You'll also need to update your webapp's web.xml file with something
> like (that is, if you want Tomcat to enforce SSL on your webapp):
>
> (after any servlet-mapping XML elements, before the session-config
> and/or welcome-file-list XML elements of web-app element in
WEB-INF/web.xml)
>
> 
>   
> Entire site
> /*
> GET
> POST
>   
>   
> CONFIDENTIAL
>   
> 
>
>
>
> Hope that helps...
>
> David
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

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



Re: SSL Certificate Beginner Question

2005-11-29 Thread David Wall



<-- Define a SSL Coyote HTTP/1.1 Connector on port 8443 -->

 


You probably want to add the following attributes to the Connector above:

keystoreFile="keys/tomcatkeys" keystorePass="123"

Obviously, make the keystoreFile point to the name of the Java keystore 
that you put your certificate inside, along with the password for that 
keystore.  I believe the base is $CATALINA_HOME if you use a relative 
pathname like above.


You'll also need to update your webapp's web.xml file with something 
like (that is, if you want Tomcat to enforce SSL on your webapp):


(after any servlet-mapping XML elements, before the session-config 
and/or welcome-file-list XML elements of web-app element in WEB-INF/web.xml)



 
   Entire site
   /*
   GET
   POST
 
 
   CONFIDENTIAL
 




Hope that helps...

David

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



Get More Logging

2005-11-29 Thread Scott Purcell
I posted earlier about having some issues trying to get SSL configured on my 
Tomcat 5.5.12. Anyway, I changed some settings in my server.xml for my 
keystore, and see no errors being thrown under the logs/ directory. I checked 
stdout, stderr, but see no errors. 

I know that if I am using the wrong keystore location (I intentionally put in a 
wrong path) that I should see something. But I do not. How can I get more or 
better logging so I can find errors in order to trace down my problems witht he 
SSL configuration?


Thanks



Re: SSL Certificate Beginner Question

2005-11-29 Thread Scott Purcell
Real helpful ... I searched on SRV.12 and it brought up a bunch of links
that have nothing to do with Tomcat  config of SSL.

I probably posted a lame request. Let me try again.

I have purchased a certificate via Verisign, and I have installed the
certificate into a keystore. I am running Windows XP and Tomcat 5.5.12.
I put the keystore and Cert.cer in the Tomcat/bin directory for organiation.
I read that the default is usually in the home directory where tomcat is
installed on Unix. But that is another OS.

I followed the docs here under Tomcat 5 SSL and ran across this:
http://tomcat.apache.org/tomcat-5.5-doc/ssl-howto.html


The final step is to configure your secure socket in the
$CATALINA_HOME/conf/server.xml file, where $CATALINA_HOME represents the
directory into which you installed Tomcat 5. An example  element
for an SSL connector is included in the default server.xml file installed
with Tomcat. It will look something like this:


 <-- Define a SSL Coyote HTTP/1.1 Connector on port 8443 -->






Anyway I uncommented this snippet from my Tomcat server.xml file and
restarted. But I cannot hit https://localhost:8443 like the read-me states.

I have checked all $TOMCAT_HOME/logs and see nothing. It just hangs when
trying to call it. I can hit http://localhost and all is happy. But the
certificate states it is coming from a certain URL. So I am not sure how
that all works.


I hope this may help someone feed me back some relevant information.

Scott


- Original Message -
From: "Hassan Schroeder" <[EMAIL PROTECTED]>
To: "Tomcat Users List" 
Sent: Tuesday, November 29, 2005 9:37 PM
Subject: Re: SSL Certificate Beginner Question


> Scott Purcell wrote:
>
> > How do I configure some of my pages to use https? I do not know
> > where to begin on this?
>
> Begin with the Servlet Spec. -- SRV.12 (Security) would be apropos :-)
>
> HTH!
> --
> Hassan Schroeder - [EMAIL PROTECTED]
> Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com
>
>   dream.  code.
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


Re: Tomcat 5.0.27 >> java.net.SocketException: Software caused connection abort: recv failed

2005-11-29 Thread Anto Paul
On 11/29/05, Rajiv Singla <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I was already using 'autoReconnect=true' option.
> But after going through MySql website, I found that it has been deprecated 
> and in order to use 'autoReconnect' option you now need to use 
> 'enableDeprecatedAutoreconnect=true'.
>
> I am trying this option for now, if it doesn't work then maybe I'll have to 
> find another solution.



Read the thread posted on the same day "JDBC/MySQL user login goes stale".




>
>
>
> -Original Message-
> From: Tim Funk [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, November 29, 2005 5:24 PM
> To: Tomcat Users List
> Subject: Re: Tomcat 5.0.27 >> java.net.SocketException: Software caused
> connection abort: recv failed
>
>
> Not a tomcat issue. Its a mysql driver issue. IIRC - there is an
> autoreconnect option for the mysql driver.
>
> -Tim
>
> Rajiv Singla wrote:
>
> >>Hi,
> >>
> >>I am working on a web application which uses Tomcat-5.0.27 as Application 
> >>server and MySql 4.1 as DB server.
> >>The application uses Struts 1.1 and Hibernate 3.0 frameworks.
> >>
> >>I am facing a problem with the application. If the servers are kept running 
> >>idle for a long time(7-8 hours or overnight) and then someone tries to 
> >>login, the application does not allow the user to login and throws 
> >>exceptions.
> >>When I restart the MySql server, the problem still remains but if I restart 
> >>the Tomcat server, it works fine.
> >>
> >>Could someone tell me what is the problem with the servers and how it could 
> >>be rectified?
> >>
> >>Here is the full stack trace of errors I get :
> >>
> >>STACKTRACE:
> >>
> >>java.net.SocketException: Software caused connection abort: recv failed
> >>at java.net.SocketInputStream.socketRead0(Native Method)
> >>at java.net.SocketInputStream.read(SocketInputStream.java:129)
> >>at java.io.BufferedInputStream.fill(BufferedInputStream.java:183)
> >>at java.io.BufferedInputStream.read1(BufferedInputStream.java:222)
> >>at java.io.BufferedInputStream.read(BufferedInputStream.java:277)
> >>at com.mysql.jdbc.MysqlIO.readFully(MysqlIO.java:1316)
> >>at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:1463)
> >>at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:1854)
> >>at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1109)
> >>at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1203)
> >>at com.mysql.jdbc.Connection.execSQL(Connection.java:2090)
> >>at 
> >>com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:1496)
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
rgds
Anto Paul

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



Re: SSL Certificate Beginner Question

2005-11-29 Thread Hassan Schroeder
Scott Purcell wrote:

> How do I configure some of my pages to use https? I do not know 
> where to begin on this?

Begin with the Servlet Spec. -- SRV.12 (Security) would be apropos :-)

HTH!
-- 
Hassan Schroeder - [EMAIL PROTECTED]
Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com

  dream.  code.



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



SSL Certificate Beginner Question

2005-11-29 Thread Scott Purcell
Hello,

I am running Tomcat Standalone on a XP system. Anyway, I have finished up with 
Verisign, and I my certificate installed and ready to go  but now the real 
quesiton.

How do I configure some of my pages to use https? I do not know where to begin 
on this? Anyone able to assist?

Thanks



Re: confusion of tomcat downloading

2005-11-29 Thread Scott Purcell
What OS are you wanting to install Tomcat on?
And did you want to just run Tomcat Standalone, or put it inside Apache?


- Original Message - 
From: "blueberry lake" <[EMAIL PROTECTED]>
To: 
Sent: Tuesday, November 29, 2005 7:47 PM
Subject: confusion of tomcat downloading


On page http://tomcat.apache.org/download-55.cgi, there are several choices
for tomcat 5.x, like core, deployer, embedded, admin web application, etc.,
can anyone explain berifly what their difference are?
Thanks.


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



Re: Problems with Mod JK (Apache 2.052 and Tomcat 5.5.9)

2005-11-29 Thread Luka Andrejasic

"I remember workers.properties is  located in apache/conf/, the same
directory with httpd.conf.."
The file workers.properties is located under Tomcat`s conf directory, not 
Apache`s.


In workers.properties I only have the following and that should be enough :
worker.list=ajp13w
worker.ajp13w.port=8009
worker.ajp13w.host=localhost
worker.ajp13w.type=ajp13
worker.ajp13w.cachesize=10
worker.ajp13w.cache_timeout=1200
worker.ajp13w.socket_timeout=3600

Any other idea what else it might be?

Thanks for the reply and trying to help.

Luka

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

To: "Tomcat Users List" 
Sent: Wednesday, November 30, 2005 3:06 AM
Subject: Re: Problems with Mod JK (Apache 2.052 and Tomcat 5.5.9)


Since I am a new user of mod_jk, please correct me if I am wrong.

In your apache httpd.conf, you set:
"JkWorkersFile "/var/tomcat/conf/workers.properties"
I remember workers.properties is  located in apache/conf/, the same
directory with httpd.conf..

And, do you indicate the location of tomcat in workers.properties, such as
workers.tomcat_home=/.../tomcat/?

-b

On 11/29/05, Luka Andrejasic <[EMAIL PROTECTED]> wrote:


Hello guys,

I am trying to figure this one out for weeks. Nothing seems to work and I
am running out of ideas. The problem seems to be with Mod JK, as Apache 
and

Tomcat work without problems on their own.

Below are all the main configuration files, as well as the error log (at
the bottom) :

// System Configuration :

- OS : RedHat Linux ES 4.0 (2.6.9-22.0.1)
- Apache : 2.0.52
- Tomcat : 5.5.9
- MySQL : 4.1.12
- Mod JK : 1.2.15




// Mod JK Installation :

   tar -xzf jakarta-tomcat-connectors-jk-1.2.15-src.tar.gz
   cd jakarta-tomcat-connectors-jk-1.2.15-src
   cd jk
   cd native
   ./buildconf.sh
   ./configure --enable-EAPI --with-apxs=/usr/sbin/apxs
   make
   make install

   cp ./apache-2.0/mod_jk.so /etc/httpd/modules




// Apache Virtual Domains :

NameVirtualHost *:80



   ServerAdmin [EMAIL PROTECTED]
   DocumentRoot /var/tomcat/webapps/ROOT
   ServerName domain.com
   ServerAlias server.domain.com
   ErrorLog /home/virtual/domain.com/logs/error_log
   CustomLog /home/virtual/domain.com/logs/access_log combined

   
   Options Indexes FollowSymLinks
   DirectoryIndex index.jsp index.html index.htm

 
   AllowOverride None
   deny from all
 

 
   AllowOverride None
   deny from all
 

 JkWorkersFile "/var/tomcat/conf/workers.properties"
 JkShmFile "/var/tomcat/conf/shm.file"
 JkLogFile /var/tomcat/logs/mod_jk.txt
 JkLogLevel info
 JkAutoAlias /var/tomcat/webapps/ROOT

 JkMount /backup/*  ajp13w
 JkMount /config/*  ajp13w
 JkMount /files/*  ajp13w
 JkMount /logs/*  ajp13w
 JkMount /servlet/*  ajp13w
 JkMount /sql/*  ajp13w
 JkMount /temp/*  ajp13w
 JkMount /*.jsp  ajp13w
   






// File server.xml :



  

  

  

  

  

  





  



  

  



  






// File workers.properties :

worker.list=ajp13w
worker.ajp13w.port=8009
worker.ajp13w.host=localhost
worker.ajp13w.type=ajp13
worker.ajp13w.cachesize=10
worker.ajp13w.cache_timeout=1200
worker.ajp13w.socket_timeout=3600




// File mod_jk.txt (Log File) :

[Tue Nov 29 18:39:57 2005] [info]  jk_handler::mod_jk.c (1993): Could not
find a worker for worker name=ajp13w




If you need anything else in order to pinpoint the problem, please tell me
and I will provide it right away. I really hope someone can help me with
this.

Have a great day.

Best Regards,
Luka Andrejasic




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



Re: Problems with Mod JK (Apache 2.052 and Tomcat 5.5.9)

2005-11-29 Thread blueberry lake
Since I am a new user of mod_jk, please correct me if I am wrong.

In your apache httpd.conf, you set:
 "JkWorkersFile "/var/tomcat/conf/workers.properties"
I remember workers.properties is  located in apache/conf/, the same
directory with httpd.conf..

And, do you indicate the location of tomcat in workers.properties, such as
workers.tomcat_home=/.../tomcat/?

-b

On 11/29/05, Luka Andrejasic <[EMAIL PROTECTED]> wrote:
>
> Hello guys,
>
> I am trying to figure this one out for weeks. Nothing seems to work and I
> am running out of ideas. The problem seems to be with Mod JK, as Apache and
> Tomcat work without problems on their own.
>
> Below are all the main configuration files, as well as the error log (at
> the bottom) :
>
> // System Configuration :
>
> - OS : RedHat Linux ES 4.0 (2.6.9-22.0.1)
> - Apache : 2.0.52
> - Tomcat : 5.5.9
> - MySQL : 4.1.12
> - Mod JK : 1.2.15
>
>
>
>
> // Mod JK Installation :
>
>tar -xzf jakarta-tomcat-connectors-jk-1.2.15-src.tar.gz
>cd jakarta-tomcat-connectors-jk-1.2.15-src
>cd jk
>cd native
>./buildconf.sh
>./configure --enable-EAPI --with-apxs=/usr/sbin/apxs
>make
>make install
>
>cp ./apache-2.0/mod_jk.so /etc/httpd/modules
>
>
>
>
> // Apache Virtual Domains :
>
> NameVirtualHost *:80
>
>
> 
>ServerAdmin [EMAIL PROTECTED]
>DocumentRoot /var/tomcat/webapps/ROOT
>ServerName domain.com
>ServerAlias server.domain.com
>ErrorLog /home/virtual/domain.com/logs/error_log
>CustomLog /home/virtual/domain.com/logs/access_log combined
>
>
>Options Indexes FollowSymLinks
>DirectoryIndex index.jsp index.html index.htm
>
>  
>AllowOverride None
>deny from all
>  
>
>  
>AllowOverride None
>deny from all
>  
>
>  JkWorkersFile "/var/tomcat/conf/workers.properties"
>  JkShmFile "/var/tomcat/conf/shm.file"
>  JkLogFile /var/tomcat/logs/mod_jk.txt
>  JkLogLevel info
>  JkAutoAlias /var/tomcat/webapps/ROOT
>
>  JkMount /backup/*  ajp13w
>  JkMount /config/*  ajp13w
>  JkMount /files/*  ajp13w
>  JkMount /logs/*  ajp13w
>  JkMount /servlet/*  ajp13w
>  JkMount /sql/*  ajp13w
>  JkMount /temp/*  ajp13w
>  JkMount /*.jsp  ajp13w
>
>
> 
>
>
>
>
> // File server.xml :
>
>  debug="0"
> port="8005"
> shutdown="SHUTDOWN">
>
>debug="0"/>
>
>debug="0"/>
>
>debug="0"/>
>
>   
>auth="Container"
>   type="org.apache.catalina.UserDatabase"
>   description="User database that can be updated and saved"
>   factory="org.apache.catalina.users.MemoryUserDatabaseFactory
> "
>   pathname="conf/tomcat-users.xml"/>
>   
>
>   debug="0"
>name="Catalina">
>
>className="org.apache.coyote.tomcat5.CoyoteConnector"
>   connectionTimeout="2"
>   debug="0"
>   enableLookups="false"
>   minProcessors="32"
>   maxProcessors="384"
>   port="8009"
>   protocolHandlerClassName="
> org.apache.jk.server.JkCoyoteHandler"
>   protocol="AJP/1.3"
>   redirectPort="8443"
>   useURIValidationHack="false"/>
>
>  debug="0"
> defaultHost="server.domain.com"
> mapperClass="org.apache.catalina.core.StandardEngineMapper"
> name="Catalina">
>
>appBase="webapps"
> autoDeploy="true"
> debug="0"
> name="server.domain.com"
> unpackWARS="true"
> xmlValidation="false"
> xmlNamespaceAware="false">
>
>   cookies="true"
>  crossContext="false"
>  debug="0"
>  docBase="ROOT"
>  mapperClass="
> org.apache.catalina.core.StandardContextMapper"
>  path=""
>  privileged="false"
>  reloadable="false"
>  swallowOutput="true"
>  useNaming="true"
>  wrapperClass="org.apache.catalina.core.StandardWrapper"/>
>
>   
>
> debug="0"
>  resourceName="UserDatabase"/>
>
> 
>
>   
>
> 
>
>
>
>
> // File workers.properties :
>
> worker.list=ajp13w
> worker.ajp13w.port=8009
> worker.ajp13w.host=localhost
> worker.ajp13w.type=ajp13
> worker.ajp13w.cachesize=10
> worker.ajp13w.cache_timeout=1200
> worker.ajp13w.socket_timeout=3600
>
>
>
>
> // File mod_jk.txt (Log File) :
>
> [Tue Nov 29 18:39:57 2005] [info]  jk_handler::mod_jk.c (1993): Could not
> find a worker for worker name=ajp13w
>
>
>
>
> If you need anything else in order to pinpoint the problem, please tell me
> and I will provide it right away. I really hope someone can help me with
> this.
>
> Have a great day.
>
> Best Regards,
> Luka Andrejasic
>


confusion of tomcat downloading

2005-11-29 Thread blueberry lake
On page http://tomcat.apache.org/download-55.cgi, there are several choices
for tomcat 5.x, like core, deployer, embedded, admin web application, etc.,
can anyone explain berifly what their difference are?
Thanks.


web app to show session state for all server sessions

2005-11-29 Thread John MccLain
I want to write a webapp that, when a request is made, will display session
state ( a display of attributes and values within a session) for all
sessions running in a Tomcat server. I wish the display to be similar to the
folowing:
App
session
attribute = value


My question is, can this be done - querying other context sessions, and
would it be done with MBeans, or is there a better way? Can someone point me
to documentation on how to do something like this

John McClain
Senior Software Engineer
TCS Healthcare
[EMAIL PROTECTED]
(530)886-1700x235
"Skepticism is the first step toward truth"


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



Problems with Mod JK (Apache 2.052 and Tomcat 5.5.9)

2005-11-29 Thread Luka Andrejasic
Hello guys,

I am trying to figure this one out for weeks. Nothing seems to work and I am 
running out of ideas. The problem seems to be with Mod JK, as Apache and Tomcat 
work without problems on their own.

Below are all the main configuration files, as well as the error log (at the 
bottom) :

// System Configuration :

- OS : RedHat Linux ES 4.0 (2.6.9-22.0.1)
- Apache : 2.0.52
- Tomcat : 5.5.9
- MySQL : 4.1.12
- Mod JK : 1.2.15




// Mod JK Installation :

   tar -xzf jakarta-tomcat-connectors-jk-1.2.15-src.tar.gz
   cd jakarta-tomcat-connectors-jk-1.2.15-src
   cd jk
   cd native
   ./buildconf.sh
   ./configure --enable-EAPI --with-apxs=/usr/sbin/apxs
   make
   make install

   cp ./apache-2.0/mod_jk.so /etc/httpd/modules




// Apache Virtual Domains :

NameVirtualHost *:80



   ServerAdmin [EMAIL PROTECTED]
   DocumentRoot /var/tomcat/webapps/ROOT
   ServerName domain.com
   ServerAlias server.domain.com
   ErrorLog /home/virtual/domain.com/logs/error_log
   CustomLog /home/virtual/domain.com/logs/access_log combined

   
   Options Indexes FollowSymLinks
   DirectoryIndex index.jsp index.html index.htm

 
   AllowOverride None
   deny from all
 

 
   AllowOverride None
   deny from all
 

 JkWorkersFile "/var/tomcat/conf/workers.properties"
 JkShmFile "/var/tomcat/conf/shm.file"
 JkLogFile /var/tomcat/logs/mod_jk.txt
 JkLogLevel info
 JkAutoAlias /var/tomcat/webapps/ROOT

 JkMount /backup/*  ajp13w
 JkMount /config/*  ajp13w
 JkMount /files/*  ajp13w
 JkMount /logs/*  ajp13w
 JkMount /servlet/*  ajp13w
 JkMount /sql/*  ajp13w
 JkMount /temp/*  ajp13w
 JkMount /*.jsp  ajp13w
   






// File server.xml :



  

  

  

  

  

  





  



  

  



  






// File workers.properties :

worker.list=ajp13w
worker.ajp13w.port=8009
worker.ajp13w.host=localhost
worker.ajp13w.type=ajp13
worker.ajp13w.cachesize=10
worker.ajp13w.cache_timeout=1200
worker.ajp13w.socket_timeout=3600




// File mod_jk.txt (Log File) :

[Tue Nov 29 18:39:57 2005] [info]  jk_handler::mod_jk.c (1993): Could not find 
a worker for worker name=ajp13w




If you need anything else in order to pinpoint the problem, please tell me and 
I will provide it right away. I really hope someone can help me with this.

Have a great day.

Best Regards,
Luka Andrejasic

Error: Io exception: Connection reset

2005-11-29 Thread KUMAR, NANDA [AG-Contractor/1000]
Very often we are getting Io Exception: Connection reset error. There is a
firewall between tomcat app server and DB server.
I wonder whether firewall is closing the connection or what could be the
reason. Please let me know how to get rid of this error. 

Thanks in advance.



-
This e-mail message may contain privileged and/or confidential information, and 
is intended to be received only by persons entitled to receive such 
information. If you have received this e-mail in error, please notify the 
sender immediately. Please delete it and all attachments from any servers, hard 
drives or any other media. Other use of this e-mail by you is strictly 
prohibited.


All e-mails and attachments sent and received are subject to monitoring, 
reading and archival by Monsanto. The recipient of this e-mail is solely 
responsible for checking for the presence of "Viruses" or other "Malware". 
Monsanto accepts no liability for any damage caused by any such code 
transmitted by or accompanying this e-mail or any attachment.
-


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



Alias element in Tomcat 3.2.x virtual host configuration

2005-11-29 Thread Mieke Banderas
As far as I understand you write virtual host server configuration like
this with the Alias element like this:
"host.com" as an alias to virtual host www.host.com.

What's the syntax in Tomcat 3.2.x?

My virtual host looks like this now:
  

 




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



Re: Java databases as alternative to MySQL on OS X Server? (OT)

2005-11-29 Thread Richard Schilling

You might try a Java Data Objects implementation:

www.objectdb.com
java.sun.com/products/jdo/index.jsp


These are pure object databases, and are reasonably fast.  The Sun's 
reference implementation of JDO is not intended for production use but 
it's great as a development toolkit.


Richard Schilling

Mieke Banderas wrote:

Given the sad, sad performance findings at:
"No More Apple Mysteries, Part Two"
Date: September 1st, 2005


are there any javabased DB alternatives, that may perform better than
MySQL (or PostgreSQL for that matter)? I prefer free, open sourced DBs or
otherwise with a license that could fit a small business/non profit
organisation.

I don't enough of JVMs to know if Javabased DBs are usually better
performancewise than MySQL/PostgreSQL, but my thought was that if
everything is kept within the JVM, the weak performance spots in OS X
would be minimized as threads would be handled within JVM rather than
within OS X. Threads being being the prime suspect in the weak MySQL
performance in OS X according Anandtech.

Do you have any thought and/or suggestions on this issue? Experiences you
could share?
My server runs Mac OS X Server 10.2.6 with Java 1.4.1/1.3.1. I can't use
Java 1.5 just yet.




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






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



RE: Certificate Revocation Lists in Tomcat 5.5

2005-11-29 Thread Caldarale, Charles R
> From: Mark Thomas [mailto:[EMAIL PROTECTED] 
> Subject: Re: Certificate Revocation Lists in Tomcat 5.5
> 
> Not necessarily. But it would create complications to 
> maintain 1.4 compatibility where there is 1.5 specific 
> code. The 1.5 code is skipped if 1.4 is used to build.

Ah - so it's a build script issue, not one with the Java source code or
a runtime determination.  Would it be possible to include 1.5 versions
of those two classes in the download?  (I realize it would complicate
the build script somewhat.)  Are these classes used for anything other
than CRL?

> However, I would be wary of only compiling the "extra" 
> classes. To be on the safe side, I would re-build the 
> lot with 1.5.

Shouldn't matter functionally, although the 1.5 javac may generate
slightly better code.

 - 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 unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Java databases as alternative to MySQL on OS X Server? (OT)

2005-11-29 Thread Caldarale, Charles R
> From: Oded Arbel [mailto:[EMAIL PROTECTED] 
> Subject: Re: Java databases as alternative to MySQL on OS X 
> Server? (OT)
> 
> Please read up on your Java memory model. What you describe 
> is a nice abstraction that many Java developers have in their
> mind, but is technically not correct and can't be correct when
> you consider multiple processors, DMA, hyper-threading or even
> just plain old L2 CPU caches.

You have to be careful about what viewpoint you're using.  From a Java
programmer's perspective, as well as actual JVM implementation, what I
said is true (although I left out any discussion of volatility and
visibility of writes in a multi-CPU system).  From a hardware or JIT
implementer perspective, what you said is appropriate, since it applies
primarily to CPU pipelines and other low-level memory writers (not
threads per se), but isn't terribly relevant from a practical Java
programming perspective.  Essentially all high-performance systems have
operated with some variation of these considerations from day one, due
to the potential of asynchronous I/O modifying the instruction stream.
The introduction of write buffers into CPU pipelines twenty-odd years
ago really exacerbated the situation.

> Also please note that JSR-133, once implemented, supposedly makes the 
> whole discussion irrelevant as it forces read/write ordering.

Only for intra-thread actions; for inter-thread, ordering is specified
primarily with regards to entities marked volatile and synchronized
operations.

> But AFAIK, only Sun's JVM 5.0 (1.5) implements it and I'm not sure
about 
> its correctness.

Actually, JSR 133 largely reflects what the 1.4 HotSpot JVM had already
implemented.  As you say, the jury is still out on whether all of the
low-level synch points have been covered.

> You are obviously disregarding the fact that Java is a 
> multi-platform environment, and some platforms (notably 
> the Mac OS-X which started the whole thread) does not 
> provide such a mechanism.

The PowerPC instruction set includes lwarx and stwcx for this purpose.
If the JIT in the OS X JVM does not generate code to use these for
object synchronization, it would be seriously deficient compared to all
other commercial JVMs.  Without generating such code inline, any
multi-threaded interactions are bound to be horribly slow.

> Are you an MS-Windows programmer by any chance ?

Only when I can't avoid it.  Started working on multi-CPU systems in
1969, so I'm quite familiar with synchronization and data visibility
concerns.  35+ years of doing software and hardware design on a variety
of platforms, including several patents for various features of our
systems.  Currently responsible for (among other things) the JVM
implementation on our 36-bit ones-complement mainframes (and yes, our
JVM does pass all the compatibility tests).  So much for disregarding
multi-platform issues.

 - 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 unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: File Download not working for anchor tags

2005-11-29 Thread Mike
I  tried that for Basic, Form, Digest, NonLogin, SSL, SavedRequest, 
Constants, AuthenticatorBase and SingleSignOn authenticators, but they 
didn't work.


  Mike

At 10:55 AM 11/29/2005, you wrote:

I had a problem with this recently and had to add the following to my Context:


There is some info on this IE bug you can google for - I lost my link to it.
Depending on the type of authentication (Basic, form, etc.) you may have to
modify the className.

Quoting Mike <[EMAIL PROTECTED]>:



  I tried that setContentType and fileInputStream solution, but ran into 
two problems.  First, when I download an Excel file and load the 
downloaded file in Excel, it doesn't load in properly.  I'm guessing 
there's some data transfer problem.  Second, the first time I try to 
download, IE blocks the download.  If I download it a second time, it 
seems to work.


  A solution with the anchor tag would work the best if possible because 
the data is good, and the download is fast.


  Mike

At 08:07 AM 11/29/2005, you wrote:

Are you doing this?
http://tomcat.apache.org/faq/misc.html#saveas

-Tim

Mike wrote:


Hello,
I've encountered a bug with the 4.1.31 version of Tomcat. Apparently, when
I use an anchor tag for a file, and I click on the link, it does not 
show the
file download message "Do you want to open or save this file?" with the 
open

and save options. Instead, it displays the file in the browser. I know you
could normally save this information from the browser to a file, but I 
need it

to show the download message because it's easier for users to save their
file. I'm using Internet Explorer version 6, SP2. I've also tried setting
the "Confirm open after download" check box for file types to no avail. It
use to work in Tomcat 4.1.18.


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





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









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



RE: Tomcat suddenly not working

2005-11-29 Thread Bachler, Elisabeth (Elisabeth)
Thank you... if was just what I needed!


-Original Message-
From: Hassan Schroeder [mailto:[EMAIL PROTECTED]
Sent: martes, 29 de noviembre de 2005 23:45
To: Tomcat Users List
Subject: Re: Tomcat suddenly not working


Bachler, Elisabeth (Elisabeth) wrote:
> Actually, under /usr/java there is a readme file that says that the
version
> is 1.4.2!!

Using `$JAVA_HOME/bin/java -version` will tell you what you're
running without looking for READMEs.

> How can I find out if there is a new sdk version... and where it is?
> (can't ask someone now!)

(as root or use sudo) `find / -type f -name 'java'` will find all
the Java executables on the system (and possibly other files with
that name, but no matter).

> I have just found out that may be someone from my team has been changing
> things

Lovely -- rap 'em on the knuckles at your earliest opportunity :-)

-- 
Hassan Schroeder - [EMAIL PROTECTED]
Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com

  dream.  code.



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

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



Re: Tomcat suddenly not working

2005-11-29 Thread Hassan Schroeder
Bachler, Elisabeth (Elisabeth) wrote:
> Actually, under /usr/java there is a readme file that says that the version
> is 1.4.2!!

Using `$JAVA_HOME/bin/java -version` will tell you what you're
running without looking for READMEs.

> How can I find out if there is a new sdk version... and where it is?
> (can't ask someone now!)

(as root or use sudo) `find / -type f -name 'java'` will find all
the Java executables on the system (and possibly other files with
that name, but no matter).

> I have just found out that may be someone from my team has been changing
> things

Lovely -- rap 'em on the knuckles at your earliest opportunity :-)

-- 
Hassan Schroeder - [EMAIL PROTECTED]
Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com

  dream.  code.



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



HTTP 404 error when mod_jk 1.2.15 connects apache 2.0.55 and tomcat 5.0.28 on unix

2005-11-29 Thread blueberry lake
(sorry if I  send this message twice,  I didn't get the first one)

Hi all,

I installed apache 2.0.55, tomcat 5.0.28, and mod_jk 1.2.15 on a
solaris 5.9unix machine.
Before I connected apache and tomcat, both of them work fine if I start them
up as seperate servers.
Mod_jk is complied from source code and mod_jk.so is copied to
apache/modules/


The connected system gives me the tomcat welcome page for URL
http://localhost:7888/
( I changed apache to listen to port 7888. ), which seems fine. The problem
is that when
I access the URLs like  http://localhost:7888/jsp-examples/, I got the
following error:
=
HTTP 404

type Status report

message /jsp-examples/

description The requested resource (/jsp-examples/) is not available.

Apache/Tomcat 5.0.28
==


For tomcat, I comment out the 8080 port (http) so that to make sure it stops
the http service and only handles the requests
on port 8009 from apache. That's the only modification I did in tomcat.

For apache, I add workers.properties file and edit httpd.conf, both  in
conf/ subdirectory.
The workers.properties is like:
==
workers.tomcat_home=/usr/local/jakarta-tomcat-5.0.28
workers.java_home=/usr/j2sdk1.4.2_03
ps=/
worker.list=worker1

worker.worker1.port=8009
worker.worker1.host=localhost
worker.worker1.type=ajp13
worker.worker1.lbfactor=50
==



The httpd.conf has the following modification:
===
#
Listen 7888

#
LoadModulejk_module  modules/mod_jk.so

#
#config of mod_jk
#
JkWorkersFile /usr/local/apache2.0.55/conf/workers.properties
JkLogFile /usr/local/jakarta-tomcat-5.0.28/logs/mod_jk.log
JkLogLevelinfo
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
JkRequestLogFormat "%w %V %T"
#
JkMount  /*  worker1
JkMount  /*/*  worker1
JkMount  /*/*/*  worker1
JkMount  /*/*/*/*  worker1
#
# End of mod_jk


Also the log files seem don't give me much useful info, for example, the
mod_jk.log file has the following line:
[Tue Nov 29 15:33:54 2005] worker1 [localhost] 0.089465

ANy suggestions are overwelcome!

-b


RE: Tomcat suddenly not working

2005-11-29 Thread Bachler, Elisabeth (Elisabeth)
Thank you to everyone for your great help. "Someone" from my team, without
telling me, updated the jdk. Now, JAVA_HOME is pointing to the correct
directory and everything is working.
Once again, thank you


-Original Message-
From: Bachler, Elisabeth (Elisabeth) [mailto:[EMAIL PROTECTED]
Sent: martes, 29 de noviembre de 2005 23:27
To: 'Tomcat Users List'
Cc: Tomcat Users List
Subject: RE: Tomcat suddenly not working


Actually, under /usr/java there is a readme file that says that the version
is 1.4.2!!
I have just found out that may be someone from my team has been changing
things
How can I find out if there is a new sdk version... and where it is? (can't
ask someone now!)


-Original Message-
From: Bachler, Elisabeth (Elisabeth) [mailto:[EMAIL PROTECTED]
Sent: martes, 29 de noviembre de 2005 23:21
To: 'Tomcat Users List'
Cc: Tomcat Users List
Subject: RE: Tomcat suddenly not working


The JAVA_HOME seems to be correct /usr/java since I haven't touched it...and
previously it was working. I have deployed a whole web stuff and I have been
testing it for months!!!

How can I know this is correct? 

-Original Message-
From: Robert Palmer [mailto:[EMAIL PROTECTED]
Sent: martes, 29 de noviembre de 2005 22:59
To: Tomcat Users List
Cc: Tomcat Users List
Subject: Re: Tomcat suddenly not working


Are you sure you have your Java path's correct? This will occur if 
JAVA_HOME is set to, say a 1.4.2 release.

Larry Meadors wrote:

>Have you cleared the tomcat work directory?
>
>LArry
>
>
>On 11/29/05, Bachler, Elisabeth (Elisabeth) <[EMAIL PROTECTED]> wrote:
>  
>
>>I just had a look in the catalina.out and I have an error with log4j:
>>log4j:WARN Failed to set property [maxBackupIndex] to value "10  // Keep
10
>>backup file maximum".
>>and then:
>>log4j:WARN Failed to set property [maxBackupIndex] to value "10  // Keep
10
>>backup file maximum".
>>Nov 29, 2005 9:34:03 PM org.apache.catalina.session.StandardManager doLoad
>>SEVERE: IOException while loading persisted sessions:
>>java.io.InvalidClassException: lucent.com.bean.UtilBea
>>n; local class incompatible: stream classdesc serialVersionUID =
>>5090820210408318777, local class serialVers
>>ionUID = 4263214301996391941
>>java.io.InvalidClassException: lucent.com.bean.UtilBean; local class
>>incompatible: stream classdesc serialVe
>>rsionUID = 5090820210408318777, local class serialVersionUID =
>>4263214301996391941
>>..
>>
>>What does it mean??
>>
>>
>>
>>-Original Message-
>>From: Bachler, Elisabeth (Elisabeth) [mailto:[EMAIL PROTECTED]
>>Sent: martes, 29 de noviembre de 2005 21:58
>>To: 'Tomcat Users List'; 'Tomcat Users List'
>>Subject: RE: Tomcat suddenly not working
>>
>>
>>Let me add more info:
>>Tomcat version: 5.5.9
>>JVM Version 1.5.0-04-b05
>>OS Name = SunOS
>>OS Version = 5.9
>>
>> I must have done something but I have no idea what!!
>>Please help me!
>>
>>-Original Message-
>>From: Bachler, Elisabeth (Elisabeth) [mailto:[EMAIL PROTECTED]
>>Sent: martes, 29 de noviembre de 2005 21:50
>>To: 'Tomcat Users List'
>>Subject: Tomcat suddenly not working
>>
>>
>>Hello,
>>I have tomcat
>>everything was working fine and suddenly nothing is!!
>>I was doing a shutdown.sh and now I can't even start it up.
>>I get the following error:
>>This release of Apache Tomcat was packaged to run on J2SE 5.0
>>or later. It can be run on earlier JVMs by downloading and
>>installing a compatibility package from the Apache Tomcat
>>binary download page.
>>In addition, when I do a "ps -ef| grep i tomcat
>>I get:
>> tomcat  2026 26727  0 21:48:20 pts/50:00 tail -f ../logs/catalina.out
>>  tomcat  1888 25810  0 21:37:15 pts/70:00 -bash
>>  tomcat 26727 26725  0 16:21:56 pts/50:01 -bash
>>  tomcat  2028 27535  0 21:48:48 pts/10   0:00 ps -ef
>>  tomcat 25810 25808  0 15:14:09 pts/70:01 -bash
>>  tomcat 27535 26950  0 19:18:12 pts/10   0:00 -bash
>>  tomcat 25775 25773  0 14:02:00 pts/60:00 -bash
>>
>>Please, help
>>
>>-
>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>-
>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>-
>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>>
>>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>  
>

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

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

RE: web client running out of ports! (timeout exception)

2005-11-29 Thread MW Janssen
i had the same. The database connection pool was not right implemented so
each new connection was opened. What you can do is to set the time-out
shorter (in the registry, google it) and als to numbers of ports using (up
to 6 or something, also in registry, google it). But better is to find
out why so much connections (ports) will be created.

Maarten

 

-Oorspronkelijk bericht-
Van: Caldarale, Charles R [mailto:[EMAIL PROTECTED] 
Verzonden: dinsdag 29 november 2005 21:00
Aan: Tomcat Users List
Onderwerp: RE: web client running out of ports! (timeout exception)

> From: Magyar, Bence [mailto:[EMAIL PROTECTED]
> Subject: RE: web client running out of ports! (timeout exception)
>
>   Shouldn't I be getting persistent, reusable connections as the 
> default with HTTP/1.1?

I'm sure you are - but it's the client's responsibility to reuse them; all
the server has to do is expect more traffic on the connection, which appears
to be what it's doing.

 - 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 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.1.362 / Virus Database: 267.13.9/185 - Release Date: 28-11-2005
 

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.362 / Virus Database: 267.13.9/185 - Release Date: 28-11-2005
 


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



Re: ClassNotFoundException when upgrading from 5.5.9 to 5.5.10+

2005-11-29 Thread David R Mulligan
Comment #3 on http://issues.apache.org/bugzilla/show_bug.cgi?id=37302
has describes the problem and solution.

Thanks,
David

On Tue, 2005-11-29 at 13:20 -0700, David R Mulligan wrote:
> I've had some traction on this problem.  If I remove the Loader element
> from within my context element in server.xml I no longer get the CNFE or
> NCDE errors.  As far as I know my loader elements are pretty much
> standard other than I have reloadable="true" and the checkInterval quite
> small.  
> 
> Any ideas?
> 
> Thanks,
> David
> 
> 
> 
> On Mon, 2005-11-28 at 14:43 -0700, David R Mulligan wrote:
> > When I start up tomcat 5.5.10-12 I am getting a ClassNotFoundException
> > for a custom class that implements Filter.  Under 5.5.9 and 5.5.1 the
> > class loads just fine.
> > 
> > My class lives in a jar file in shared/lib as some if it is required by
> > another webapp.  If I move the class files in question to the
> > webapp/classes dir tomcat appears to be able to find it but then it
> > gives a NoClassDefError instead.  I read the FAQ and looked but I cannot
> > find another servlet.jar anywhere so I do not believe this is the
> > problem.  The filter class is defined in the web.xml file for the
> > webapp.
> > 
> > I cannot find anything in the changelog from 5.5.10 and up that would
> > explain or even seem related to this.  I would appreciate any help I can
> > get at this point!
> > 
> > Thanks,
> > David
> > 
> > 
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


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



RE: Certificate Revocation Lists in Tomcat 5.5

2005-11-29 Thread Caldarale, Charles R
> From: Duan, Nick [mailto:[EMAIL PROTECTED] 
> Subject: RE: Certificate Revocation Lists in Tomcat 5.5
> 
> The official tomcat 5.5.12 was compiled and packaged with J2SE5.0, not
> JDK 1.4.  You'll get an error message if you run tomcat on 1.4.

Only if you fail to read the instructions in RUNNING.txt and don't
install the rather tiny compatibility package.  TC 5.5 was compiled with
1.4 as the target, and is certainly not "packaged" with J2SE5.0 - that's
a separate download from your friendly neighborhood JVM vendor, not from
Apache.

 - 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 unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat suddenly not working

2005-11-29 Thread Bachler, Elisabeth (Elisabeth)
Actually, under /usr/java there is a readme file that says that the version
is 1.4.2!!
I have just found out that may be someone from my team has been changing
things
How can I find out if there is a new sdk version... and where it is? (can't
ask someone now!)


-Original Message-
From: Bachler, Elisabeth (Elisabeth) [mailto:[EMAIL PROTECTED]
Sent: martes, 29 de noviembre de 2005 23:21
To: 'Tomcat Users List'
Cc: Tomcat Users List
Subject: RE: Tomcat suddenly not working


The JAVA_HOME seems to be correct /usr/java since I haven't touched it...and
previously it was working. I have deployed a whole web stuff and I have been
testing it for months!!!

How can I know this is correct? 

-Original Message-
From: Robert Palmer [mailto:[EMAIL PROTECTED]
Sent: martes, 29 de noviembre de 2005 22:59
To: Tomcat Users List
Cc: Tomcat Users List
Subject: Re: Tomcat suddenly not working


Are you sure you have your Java path's correct? This will occur if 
JAVA_HOME is set to, say a 1.4.2 release.

Larry Meadors wrote:

>Have you cleared the tomcat work directory?
>
>LArry
>
>
>On 11/29/05, Bachler, Elisabeth (Elisabeth) <[EMAIL PROTECTED]> wrote:
>  
>
>>I just had a look in the catalina.out and I have an error with log4j:
>>log4j:WARN Failed to set property [maxBackupIndex] to value "10  // Keep
10
>>backup file maximum".
>>and then:
>>log4j:WARN Failed to set property [maxBackupIndex] to value "10  // Keep
10
>>backup file maximum".
>>Nov 29, 2005 9:34:03 PM org.apache.catalina.session.StandardManager doLoad
>>SEVERE: IOException while loading persisted sessions:
>>java.io.InvalidClassException: lucent.com.bean.UtilBea
>>n; local class incompatible: stream classdesc serialVersionUID =
>>5090820210408318777, local class serialVers
>>ionUID = 4263214301996391941
>>java.io.InvalidClassException: lucent.com.bean.UtilBean; local class
>>incompatible: stream classdesc serialVe
>>rsionUID = 5090820210408318777, local class serialVersionUID =
>>4263214301996391941
>>..
>>
>>What does it mean??
>>
>>
>>
>>-Original Message-
>>From: Bachler, Elisabeth (Elisabeth) [mailto:[EMAIL PROTECTED]
>>Sent: martes, 29 de noviembre de 2005 21:58
>>To: 'Tomcat Users List'; 'Tomcat Users List'
>>Subject: RE: Tomcat suddenly not working
>>
>>
>>Let me add more info:
>>Tomcat version: 5.5.9
>>JVM Version 1.5.0-04-b05
>>OS Name = SunOS
>>OS Version = 5.9
>>
>> I must have done something but I have no idea what!!
>>Please help me!
>>
>>-Original Message-
>>From: Bachler, Elisabeth (Elisabeth) [mailto:[EMAIL PROTECTED]
>>Sent: martes, 29 de noviembre de 2005 21:50
>>To: 'Tomcat Users List'
>>Subject: Tomcat suddenly not working
>>
>>
>>Hello,
>>I have tomcat
>>everything was working fine and suddenly nothing is!!
>>I was doing a shutdown.sh and now I can't even start it up.
>>I get the following error:
>>This release of Apache Tomcat was packaged to run on J2SE 5.0
>>or later. It can be run on earlier JVMs by downloading and
>>installing a compatibility package from the Apache Tomcat
>>binary download page.
>>In addition, when I do a "ps -ef| grep i tomcat
>>I get:
>> tomcat  2026 26727  0 21:48:20 pts/50:00 tail -f ../logs/catalina.out
>>  tomcat  1888 25810  0 21:37:15 pts/70:00 -bash
>>  tomcat 26727 26725  0 16:21:56 pts/50:01 -bash
>>  tomcat  2028 27535  0 21:48:48 pts/10   0:00 ps -ef
>>  tomcat 25810 25808  0 15:14:09 pts/70:01 -bash
>>  tomcat 27535 26950  0 19:18:12 pts/10   0:00 -bash
>>  tomcat 25775 25773  0 14:02:00 pts/60:00 -bash
>>
>>Please, help
>>
>>-
>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>-
>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>-
>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>>
>>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>  
>

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

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



RE: Tomcat suddenly not working

2005-11-29 Thread Bachler, Elisabeth (Elisabeth)
The JAVA_HOME seems to be correct /usr/java since I haven't touched it...and
previously it was working. I have deployed a whole web stuff and I have been
testing it for months!!!

How can I know this is correct? 

-Original Message-
From: Robert Palmer [mailto:[EMAIL PROTECTED]
Sent: martes, 29 de noviembre de 2005 22:59
To: Tomcat Users List
Cc: Tomcat Users List
Subject: Re: Tomcat suddenly not working


Are you sure you have your Java path's correct? This will occur if 
JAVA_HOME is set to, say a 1.4.2 release.

Larry Meadors wrote:

>Have you cleared the tomcat work directory?
>
>LArry
>
>
>On 11/29/05, Bachler, Elisabeth (Elisabeth) <[EMAIL PROTECTED]> wrote:
>  
>
>>I just had a look in the catalina.out and I have an error with log4j:
>>log4j:WARN Failed to set property [maxBackupIndex] to value "10  // Keep
10
>>backup file maximum".
>>and then:
>>log4j:WARN Failed to set property [maxBackupIndex] to value "10  // Keep
10
>>backup file maximum".
>>Nov 29, 2005 9:34:03 PM org.apache.catalina.session.StandardManager doLoad
>>SEVERE: IOException while loading persisted sessions:
>>java.io.InvalidClassException: lucent.com.bean.UtilBea
>>n; local class incompatible: stream classdesc serialVersionUID =
>>5090820210408318777, local class serialVers
>>ionUID = 4263214301996391941
>>java.io.InvalidClassException: lucent.com.bean.UtilBean; local class
>>incompatible: stream classdesc serialVe
>>rsionUID = 5090820210408318777, local class serialVersionUID =
>>4263214301996391941
>>..
>>
>>What does it mean??
>>
>>
>>
>>-Original Message-
>>From: Bachler, Elisabeth (Elisabeth) [mailto:[EMAIL PROTECTED]
>>Sent: martes, 29 de noviembre de 2005 21:58
>>To: 'Tomcat Users List'; 'Tomcat Users List'
>>Subject: RE: Tomcat suddenly not working
>>
>>
>>Let me add more info:
>>Tomcat version: 5.5.9
>>JVM Version 1.5.0-04-b05
>>OS Name = SunOS
>>OS Version = 5.9
>>
>> I must have done something but I have no idea what!!
>>Please help me!
>>
>>-Original Message-
>>From: Bachler, Elisabeth (Elisabeth) [mailto:[EMAIL PROTECTED]
>>Sent: martes, 29 de noviembre de 2005 21:50
>>To: 'Tomcat Users List'
>>Subject: Tomcat suddenly not working
>>
>>
>>Hello,
>>I have tomcat
>>everything was working fine and suddenly nothing is!!
>>I was doing a shutdown.sh and now I can't even start it up.
>>I get the following error:
>>This release of Apache Tomcat was packaged to run on J2SE 5.0
>>or later. It can be run on earlier JVMs by downloading and
>>installing a compatibility package from the Apache Tomcat
>>binary download page.
>>In addition, when I do a "ps -ef| grep i tomcat
>>I get:
>> tomcat  2026 26727  0 21:48:20 pts/50:00 tail -f ../logs/catalina.out
>>  tomcat  1888 25810  0 21:37:15 pts/70:00 -bash
>>  tomcat 26727 26725  0 16:21:56 pts/50:01 -bash
>>  tomcat  2028 27535  0 21:48:48 pts/10   0:00 ps -ef
>>  tomcat 25810 25808  0 15:14:09 pts/70:01 -bash
>>  tomcat 27535 26950  0 19:18:12 pts/10   0:00 -bash
>>  tomcat 25775 25773  0 14:02:00 pts/60:00 -bash
>>
>>Please, help
>>
>>-
>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>-
>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>-
>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>>
>>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>  
>

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



RE: Tomcat suddenly not working

2005-11-29 Thread Bachler, Elisabeth (Elisabeth)
The JAVA_HOME variable points to /usr/java that seems to be the correct
thing.
How can I be sure?


-Original Message-
From: Wendy Smoak [mailto:[EMAIL PROTECTED]
Sent: martes, 29 de noviembre de 2005 22:22
To: Tomcat Users List
Subject: Re: Tomcat suddenly not working


On 11/29/05, Bachler, Elisabeth (Elisabeth) <[EMAIL PROTECTED]> wrote:
> Let me add more info:
> Tomcat version: 5.5.9
> JVM Version 1.5.0-04-b05
> OS Name = SunOS
> OS Version = 5.9
>
>  I must have done something but I have no idea what!!
> Please help me!

You may think you're using JDK 1.5, but Tomcat doesn't seem to. :)

Check the docs and make sure (I think) JAVA_HOME is pointed to the right
place.

--
Wendy

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

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



RE: How to test connection pooling

2005-11-29 Thread Manisha Sathe
Hi,

I tried with MSSQL/MySQL on Tomcat 4.1 / Tomcat 5. On
Tomcat 5 everything works great but on omcat 4 for
both databases I do not get pool  of connection. It
always gives one single connection and does not create
another if needed. 
I am stuck like anything, and want to use it rather
than going back to old method (JDBC call).

I completely reinstall tomcat 4.1 and tested. Is there
any workaround, setting which i can try ? Btw i am
using singleton class, i thought it may be causing
problem so tried w/o my singleton too.

Passing complete extract of my context xml. Pls guide
me.
---



  

  

  factory
 
org.apache.commons.dbcp.BasicDataSourceFactory




  initialSize
  10


  maxActive
  1


  maxIdle
  30


  minIdle
  10


  maxWait
  1




  username
  webuser


  password
  webpwd





   driverClassName
   com.mysql.jdbc.Driver



  defaultTransactionIsolation
  SERIALIZABLE




  removeAbandoned
  true


   removeAbandonedTimeout
   60


   logAbandoned
   true





  url
 
jdbc:mysql://localhost:3306/cim?zeroDateTimeBehavior=convertToNull



  


-

regards
Manisha 

--- "Lucuk, Pete" <[EMAIL PROTECTED]> wrote:

>  
> >So you mean to say you did not get error for second
> request 
> >and it created a new connection ?
> 
> Yes, that is what I am saying
> 
> 
>  (But this is for Oracle8i). 
> >Whether it means there is a problem for MSSQL ?
> 
> Yeah, I do not know what it means for MSSQL.
> I know I have read the netbeans forums and people
> have head massive
> problems with MSSQL and Netbeans Tomcat
> 
> >
> >regards
> >Manisha 
> >
> >--- "Lucuk, Pete" <[EMAIL PROTECTED]> wrote:
> >
> >> I used Tomcat 4.1 and got the.
> >> 
> >>"create only one connection at first and then
> create 
> >more connections 
> >> as needed"
> >> 
> >> behavior and it works fine, no errors.
> >> 
> >> Also, I am using Oracle 8i and use the Oracle
> jdbc driver 
> >ojdbc14.jar 
> >> Different that commons stuff you are using.
> >> 
> >> >-Original Message-
> >> >From: Manisha Sathe
> >> [mailto:[EMAIL PROTECTED]
> >> >Sent: Tuesday, November 29, 2005 1:44 PM
> >> >To: Tomcat Users List
> >> >Subject: RE: How to test connection pooling
> >> >
> >> >Hi,
> >> >
> >> >After some testing on Tomcat 5 / Tomcat 4.1, i
> am
> >> finding some
> >> >strange behaviour.
> >> >I could figure out how to check number of
> >> conections on MSSQL. 
> >> >It is Enterprise Manager -> Management ->
> Current
> >> Processes -
> >> >u have to refresh it now and then.
> >> >
> >> >1)For Tomcat 5, it does create a pool of
> >> connections at start
> >> >depending on initial size. And it uses it from
> >> those depending
> >> >upon availability. I tested this using some big
> >> loops.
> >> >
> >> >2)But for Tomcat 4.1 - it does not create a pool
> of
> >> conections
> >> >but only ONE connection. I thought if trafic
> >> increases it
> >> >might add new connections to it.
> >> >So again tested with 2 requests and used a big
> loop
> >> so that
> >> >first request will make use of connection object
> >> for
> >> >sufficient time and will not release it. 
> >> >
> >> >I was expecting second request should create new
> >> connection in
> >> >a pool, but it did not, it waited for existing
> >> connection to
> >> >become free and later it gave error saying:
> >> >
> >> >Error message
> >> >
> >> >java.sql.SQLException: SQLException from
> connection
> >> >manager:
> >> org.apache.commons.dbcp.SQLNestedException:
> >> >Cannot get a connection, pool exhausted, cause:
> >> >Timeout waiting for idle object
> >> >--
> >> >
> >> >
> >> >Now whether it means that Tomcat 4.1 does not
> >> create pooling
> >> >at all ? Am i missing any settings ? For 4.1 am
> i
> >> suppose to
> >> >use any different jars ?
> >> >
> >> >I even tested the same for MySQL. The result is
> >> same.
> >> >Pls Pls help me, i am stuck like anything.
> >> >
> >> >regards
> >> >Manisha
> >> >
> >> >--- andy gordon <[EMAIL PROTECTED]> wrote:
> >> >
> >> >> Show Processlist will show the number of
> initial
> >> connections
> >> >at start
> >> >> but does it show what subsystem a connection
> is
> >> bound to? what if
> >> >> there are multiple tomcat's connected to one
> >> database. How do you
> >> >> differentiate?
> >> >> 
> >> >> "Lucuk, Pete" <[EMAIL PROTECTED]> wrote: 
> >> Manisha,
> >> >> 
> >> >> I do not know how you check in MSSQL.
> >> >> But, just an FYI
> >> >> 
> >> >> If you setup your connection to ten, ten do
> not
> >> automatically get
> >> >> created, only one, and as your app requires
> more
> >> connections, more
> >> >> connections will be created up to a max of
> ten.
> >> >> 
> >> >> Took me 

Re: Certificate Revocation Lists in Tomcat 5.5

2005-11-29 Thread Mark Thomas

Duan, Nick wrote:

The official tomcat 5.5.12 was compiled and packaged with J2SE5.0, not
JDK 1.4.  You'll get an error message if you run tomcat on 1.4.

ND


Um, no it wasn't. It was built using 1.4. That is why the 5.0 specific 
stuff is missing.


Mark


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



RE: Tomcat suddenly not working

2005-11-29 Thread Bachler, Elisabeth (Elisabeth)
Yes... I simply don't know what to do!


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf
Of Larry Meadors
Sent: martes, 29 de noviembre de 2005 22:30
To: Tomcat Users List
Cc: Tomcat Users List
Subject: Re: Tomcat suddenly not working


Have you cleared the tomcat work directory?

LArry


On 11/29/05, Bachler, Elisabeth (Elisabeth) <[EMAIL PROTECTED]> wrote:
> I just had a look in the catalina.out and I have an error with log4j:
> log4j:WARN Failed to set property [maxBackupIndex] to value "10  // Keep
10
> backup file maximum".
> and then:
> log4j:WARN Failed to set property [maxBackupIndex] to value "10  // Keep
10
> backup file maximum".
> Nov 29, 2005 9:34:03 PM org.apache.catalina.session.StandardManager doLoad
> SEVERE: IOException while loading persisted sessions:
> java.io.InvalidClassException: lucent.com.bean.UtilBea
> n; local class incompatible: stream classdesc serialVersionUID =
> 5090820210408318777, local class serialVers
> ionUID = 4263214301996391941
> java.io.InvalidClassException: lucent.com.bean.UtilBean; local class
> incompatible: stream classdesc serialVe
> rsionUID = 5090820210408318777, local class serialVersionUID =
> 4263214301996391941
> ..
>
> What does it mean??
>
>
>
> -Original Message-
> From: Bachler, Elisabeth (Elisabeth) [mailto:[EMAIL PROTECTED]
> Sent: martes, 29 de noviembre de 2005 21:58
> To: 'Tomcat Users List'; 'Tomcat Users List'
> Subject: RE: Tomcat suddenly not working
>
>
> Let me add more info:
> Tomcat version: 5.5.9
> JVM Version 1.5.0-04-b05
> OS Name = SunOS
> OS Version = 5.9
>
>  I must have done something but I have no idea what!!
> Please help me!
>
> -Original Message-
> From: Bachler, Elisabeth (Elisabeth) [mailto:[EMAIL PROTECTED]
> Sent: martes, 29 de noviembre de 2005 21:50
> To: 'Tomcat Users List'
> Subject: Tomcat suddenly not working
>
>
> Hello,
> I have tomcat
> everything was working fine and suddenly nothing is!!
> I was doing a shutdown.sh and now I can't even start it up.
> I get the following error:
> This release of Apache Tomcat was packaged to run on J2SE 5.0
> or later. It can be run on earlier JVMs by downloading and
> installing a compatibility package from the Apache Tomcat
> binary download page.
> In addition, when I do a "ps -ef| grep i tomcat
> I get:
>  tomcat  2026 26727  0 21:48:20 pts/50:00 tail -f ../logs/catalina.out
>   tomcat  1888 25810  0 21:37:15 pts/70:00 -bash
>   tomcat 26727 26725  0 16:21:56 pts/50:01 -bash
>   tomcat  2028 27535  0 21:48:48 pts/10   0:00 ps -ef
>   tomcat 25810 25808  0 15:14:09 pts/70:01 -bash
>   tomcat 27535 26950  0 19:18:12 pts/10   0:00 -bash
>   tomcat 25775 25773  0 14:02:00 pts/60:00 -bash
>
> Please, help
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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

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



RE: Certificate Revocation Lists in Tomcat 5.5

2005-11-29 Thread Duan, Nick
The official tomcat 5.5.12 was compiled and packaged with J2SE5.0, not
JDK 1.4.  You'll get an error message if you run tomcat on 1.4.

ND

-Original Message-
From: Mark Thomas [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 29, 2005 4:46 PM
To: Tomcat Users List
Subject: Re: Certificate Revocation Lists in Tomcat 5.5

Caldarale, Charles R wrote:
>>From: Duan, Nick [mailto:[EMAIL PROTECTED] 
>>Subject: RE: Certificate Revocation Lists in Tomcat 5.5
>>
>>Tomcat 5.5 supposed to run on JDK 1.5.  Why was it compiled with JDK
>>1.4?
> 
> 
> Because it's supposed to run on JRE 1.4 as well.  Compiling on 1.5
would
> have precluded that.

Not necessarily. But it would create complications to maintain 1.4 
compatibility where there is 1.5 specific code. The 1.5 code is 
skipped if 1.4 is used to build.

> I'm a bit suspicious of the statement that certain classes had to be
> recompiled with 1.5; I suspect there's something more subtle than that
> going on.

Nope, it is that simple. There was a discussion about this on the
dev list recently. However, I would be wary of only compiling the 
"extra" classes. To be on the safe side, I would re-build the lot with 
1.5.

Mark


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


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



Re: Tomcat suddenly not working

2005-11-29 Thread Robert Palmer
Are you sure you have your Java path's correct? This will occur if 
JAVA_HOME is set to, say a 1.4.2 release.


Larry Meadors wrote:


Have you cleared the tomcat work directory?

LArry


On 11/29/05, Bachler, Elisabeth (Elisabeth) <[EMAIL PROTECTED]> wrote:
 


I just had a look in the catalina.out and I have an error with log4j:
log4j:WARN Failed to set property [maxBackupIndex] to value "10  // Keep 10
backup file maximum".
and then:
log4j:WARN Failed to set property [maxBackupIndex] to value "10  // Keep 10
backup file maximum".
Nov 29, 2005 9:34:03 PM org.apache.catalina.session.StandardManager doLoad
SEVERE: IOException while loading persisted sessions:
java.io.InvalidClassException: lucent.com.bean.UtilBea
n; local class incompatible: stream classdesc serialVersionUID =
5090820210408318777, local class serialVers
ionUID = 4263214301996391941
java.io.InvalidClassException: lucent.com.bean.UtilBean; local class
incompatible: stream classdesc serialVe
rsionUID = 5090820210408318777, local class serialVersionUID =
4263214301996391941
..

What does it mean??



-Original Message-
From: Bachler, Elisabeth (Elisabeth) [mailto:[EMAIL PROTECTED]
Sent: martes, 29 de noviembre de 2005 21:58
To: 'Tomcat Users List'; 'Tomcat Users List'
Subject: RE: Tomcat suddenly not working


Let me add more info:
Tomcat version: 5.5.9
JVM Version 1.5.0-04-b05
OS Name = SunOS
OS Version = 5.9

I must have done something but I have no idea what!!
Please help me!

-Original Message-
From: Bachler, Elisabeth (Elisabeth) [mailto:[EMAIL PROTECTED]
Sent: martes, 29 de noviembre de 2005 21:50
To: 'Tomcat Users List'
Subject: Tomcat suddenly not working


Hello,
I have tomcat
everything was working fine and suddenly nothing is!!
I was doing a shutdown.sh and now I can't even start it up.
I get the following error:
This release of Apache Tomcat was packaged to run on J2SE 5.0
or later. It can be run on earlier JVMs by downloading and
installing a compatibility package from the Apache Tomcat
binary download page.
In addition, when I do a "ps -ef| grep i tomcat
I get:
tomcat  2026 26727  0 21:48:20 pts/50:00 tail -f ../logs/catalina.out
 tomcat  1888 25810  0 21:37:15 pts/70:00 -bash
 tomcat 26727 26725  0 16:21:56 pts/50:01 -bash
 tomcat  2028 27535  0 21:48:48 pts/10   0:00 ps -ef
 tomcat 25810 25808  0 15:14:09 pts/70:01 -bash
 tomcat 27535 26950  0 19:18:12 pts/10   0:00 -bash
 tomcat 25775 25773  0 14:02:00 pts/60:00 -bash

Please, help

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

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

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


   



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


 



HTTP 404 error when mod_jk 1.2.15 connects apache 2.0.55 and tomcat 5.0.28 on unix

2005-11-29 Thread blueberry lake
Hi all,

I installed apache 2.0.55, tomcat 5.0.28, and mod_jk 1.2.15 on a
solaris 5.9unix machine.
Before I connected apache and tomcat, both of them work fine if I start them
up as seperate servers.
Mod_jk is complied from source code and mod_jk.so is copied to
apache/modules/


The connected system gives me the tomcat welcome page for URL
http://localhost:7888/
( I changed apache to listen to port 7888. ), which seems fine. The problem
is that when
I access the URLs like  http://localhost:7888/jsp-examples/, I got the
following error:
=
HTTP 404

type Status report

message /jsp-examples/

description The requested resource (/jsp-examples/) is not available.

Apache/Tomcat 5.0.28
==


For tomcat, I comment out the 8080 port (http) so that to make sure it stops
the http service and only handles the requests
on port 8009 from apache. That's the only modification I did in tomcat.

For apache, I add workers.properties file and edit httpd.conf, both  in
conf/ subdirectory.
The workers.properties is like:
==
workers.tomcat_home=/usr/local/jakarta-tomcat-5.0.28
workers.java_home=/usr/j2sdk1.4.2_03
ps=/
worker.list=worker1

worker.worker1.port=8009
worker.worker1.host=localhost
worker.worker1.type=ajp13
worker.worker1.lbfactor=50
==



The httpd.conf has the following modification:
===
#
Listen 7888

#
LoadModulejk_module  modules/mod_jk.so

#
#config of mod_jk
#
JkWorkersFile /usr/local/apache2.0.55/conf/workers.properties
JkLogFile /usr/local/jakarta-tomcat-5.0.28/logs/mod_jk.log
JkLogLevelinfo
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
JkRequestLogFormat "%w %V %T"
#
JkMount  /*  worker1
JkMount  /*/*  worker1
JkMount  /*/*/*  worker1
JkMount  /*/*/*/*  worker1
#
# End of mod_jk


Also the log files seem don't give me much useful info, for example, the
mod_jk.log file has the following line:
[Tue Nov 29 15:33:54 2005] worker1 [localhost] 0.089465

ANy suggestions are overwelcome!

-b


Re: Certificate Revocation Lists in Tomcat 5.5

2005-11-29 Thread Mark Thomas

Caldarale, Charles R wrote:
From: Duan, Nick [mailto:[EMAIL PROTECTED] 
Subject: RE: Certificate Revocation Lists in Tomcat 5.5


Tomcat 5.5 supposed to run on JDK 1.5.  Why was it compiled with JDK
1.4?



Because it's supposed to run on JRE 1.4 as well.  Compiling on 1.5 would
have precluded that.


Not necessarily. But it would create complications to maintain 1.4 
compatibility where there is 1.5 specific code. The 1.5 code is 
skipped if 1.4 is used to build.



I'm a bit suspicious of the statement that certain classes had to be
recompiled with 1.5; I suspect there's something more subtle than that
going on.


Nope, it is that simple. There was a discussion about this on the
dev list recently. However, I would be wary of only compiling the 
"extra" classes. To be on the safe side, I would re-build the lot with 
1.5.


Mark


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



Re: Tomcat suddenly not working

2005-11-29 Thread Larry Meadors
Have you cleared the tomcat work directory?

LArry


On 11/29/05, Bachler, Elisabeth (Elisabeth) <[EMAIL PROTECTED]> wrote:
> I just had a look in the catalina.out and I have an error with log4j:
> log4j:WARN Failed to set property [maxBackupIndex] to value "10  // Keep 10
> backup file maximum".
> and then:
> log4j:WARN Failed to set property [maxBackupIndex] to value "10  // Keep 10
> backup file maximum".
> Nov 29, 2005 9:34:03 PM org.apache.catalina.session.StandardManager doLoad
> SEVERE: IOException while loading persisted sessions:
> java.io.InvalidClassException: lucent.com.bean.UtilBea
> n; local class incompatible: stream classdesc serialVersionUID =
> 5090820210408318777, local class serialVers
> ionUID = 4263214301996391941
> java.io.InvalidClassException: lucent.com.bean.UtilBean; local class
> incompatible: stream classdesc serialVe
> rsionUID = 5090820210408318777, local class serialVersionUID =
> 4263214301996391941
> ..
>
> What does it mean??
>
>
>
> -Original Message-
> From: Bachler, Elisabeth (Elisabeth) [mailto:[EMAIL PROTECTED]
> Sent: martes, 29 de noviembre de 2005 21:58
> To: 'Tomcat Users List'; 'Tomcat Users List'
> Subject: RE: Tomcat suddenly not working
>
>
> Let me add more info:
> Tomcat version: 5.5.9
> JVM Version 1.5.0-04-b05
> OS Name = SunOS
> OS Version = 5.9
>
>  I must have done something but I have no idea what!!
> Please help me!
>
> -Original Message-
> From: Bachler, Elisabeth (Elisabeth) [mailto:[EMAIL PROTECTED]
> Sent: martes, 29 de noviembre de 2005 21:50
> To: 'Tomcat Users List'
> Subject: Tomcat suddenly not working
>
>
> Hello,
> I have tomcat
> everything was working fine and suddenly nothing is!!
> I was doing a shutdown.sh and now I can't even start it up.
> I get the following error:
> This release of Apache Tomcat was packaged to run on J2SE 5.0
> or later. It can be run on earlier JVMs by downloading and
> installing a compatibility package from the Apache Tomcat
> binary download page.
> In addition, when I do a "ps -ef| grep i tomcat
> I get:
>  tomcat  2026 26727  0 21:48:20 pts/50:00 tail -f ../logs/catalina.out
>   tomcat  1888 25810  0 21:37:15 pts/70:00 -bash
>   tomcat 26727 26725  0 16:21:56 pts/50:01 -bash
>   tomcat  2028 27535  0 21:48:48 pts/10   0:00 ps -ef
>   tomcat 25810 25808  0 15:14:09 pts/70:01 -bash
>   tomcat 27535 26950  0 19:18:12 pts/10   0:00 -bash
>   tomcat 25775 25773  0 14:02:00 pts/60:00 -bash
>
> Please, help
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



RE: Certificate Revocation Lists in Tomcat 5.5

2005-11-29 Thread Caldarale, Charles R
> From: Duan, Nick [mailto:[EMAIL PROTECTED] 
> Subject: RE: Certificate Revocation Lists in Tomcat 5.5
> 
> Tomcat 5.5 supposed to run on JDK 1.5.  Why was it compiled with JDK
> 1.4?

Because it's supposed to run on JRE 1.4 as well.  Compiling on 1.5 would
have precluded that.

I'm a bit suspicious of the statement that certain classes had to be
recompiled with 1.5; I suspect there's something more subtle than that
going on.

 - 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 unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Java databases as alternative to MySQL on OS X Server? (OT)

2005-11-29 Thread Oded Arbel
On Tuesday, 29 בNovember 2005 17:28, Caldarale, Charles R wrote:
> > From: Oded Arbel [mailto:[EMAIL PROTECTED]
> > Subject: Re: Java databases as alternative to MySQL on OS X
> > Server? (OT)
> >
> > inter-thread communication in java is done through shared
> > memory - shared variables, but the Java memory sharing model
> > doesn't really share memory, Instead it uses thread local
> > storage to store copies of shared variables and when you
> > cross into or out of a synchronized block, the contents of
> > the variables are copied.
>
> That's one of the most bizarre and blatantly wrong descriptions of
> the Java memory model that I've ever read.  

Rather simplified and not accurate where accuracy would have caused me 
to get way off topic, but all in all not really incorrect.

> All Java objects reside 
> in the Java heap, which is shared across all threads of the JVM
> process and directly referenceable by all. 

Please read up on your Java memory model. What you describe is a nice 
abstraction that many Java developers have in their mind, but is 
technically not correct and can't be correct when you consider multiple 
processors, DMA, hyper-threading or even just plain old L2 CPU caches.

[http://www.cs.umd.edu/~pugh/java/memoryModel/jsr-133-faq.html]
[http://www.developer.com/java/article.php/951051]
[http://www-128.ibm.com/developerworks/library/j-jtp02244.html]

Also please note that JSR-133, once implemented, supposedly makes the 
whole discussion irrelevant as it forces read/write ordering. But 
AFAIK, only Sun's JVM 5.0 (1.5) implements it and I'm not sure about 
its correctness.

> Entering a synchronized block in a HotSpot-based JVM normally does
> not require any context switching, since the lock on an object is
> established via the platform's compare-and-exchange instruction; only
> if a conflict exists are kernel services required to suspend the
> conflicting thread.  

You are obviously disregarding the fact that Java is a multi-platform 
environment, and some platforms (notably the Mac OS-X which started the 
whole thread) does not provide such a mechanism. Are you an MS-Windows 
programmer by any chance ?

> No copying of local variable is ever
> performed; 

If it ever appeared that I was talking about 'local variables' when I 
wrote the word 'local' then I'm deeply sorry, and I here-by request 
that you please re-read my original post more carefully.
The word local in this case was used to denote the running thread's view 
on the shared variables, also knows as "thread local storage" (do look 
up that concept as well when you read about the Java memory mode, 
please).

-- 
Oded Arbel
m-Wise mobile solutions
[EMAIL PROTECTED]

+972-9-9611212 (204)
+972-54-7340014

::..
When the student is ready the master appears.
-- Japanese proverb

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



Re: Tomcat suddenly not working

2005-11-29 Thread Wendy Smoak
On 11/29/05, Bachler, Elisabeth (Elisabeth) <[EMAIL PROTECTED]> wrote:
> Let me add more info:
> Tomcat version: 5.5.9
> JVM Version 1.5.0-04-b05
> OS Name = SunOS
> OS Version = 5.9
>
>  I must have done something but I have no idea what!!
> Please help me!

You may think you're using JDK 1.5, but Tomcat doesn't seem to. :)

Check the docs and make sure (I think) JAVA_HOME is pointed to the right place.

--
Wendy

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



RE: Tomcat suddenly not working

2005-11-29 Thread Bachler, Elisabeth (Elisabeth)
I just had a look in the catalina.out and I have an error with log4j:
log4j:WARN Failed to set property [maxBackupIndex] to value "10  // Keep 10
backup file maximum".
and then:
log4j:WARN Failed to set property [maxBackupIndex] to value "10  // Keep 10
backup file maximum".
Nov 29, 2005 9:34:03 PM org.apache.catalina.session.StandardManager doLoad
SEVERE: IOException while loading persisted sessions:
java.io.InvalidClassException: lucent.com.bean.UtilBea
n; local class incompatible: stream classdesc serialVersionUID =
5090820210408318777, local class serialVers
ionUID = 4263214301996391941
java.io.InvalidClassException: lucent.com.bean.UtilBean; local class
incompatible: stream classdesc serialVe
rsionUID = 5090820210408318777, local class serialVersionUID =
4263214301996391941
..

What does it mean??



-Original Message-
From: Bachler, Elisabeth (Elisabeth) [mailto:[EMAIL PROTECTED]
Sent: martes, 29 de noviembre de 2005 21:58
To: 'Tomcat Users List'; 'Tomcat Users List'
Subject: RE: Tomcat suddenly not working


Let me add more info:
Tomcat version: 5.5.9
JVM Version 1.5.0-04-b05
OS Name = SunOS
OS Version = 5.9

 I must have done something but I have no idea what!! 
Please help me!

-Original Message-
From: Bachler, Elisabeth (Elisabeth) [mailto:[EMAIL PROTECTED]
Sent: martes, 29 de noviembre de 2005 21:50
To: 'Tomcat Users List'
Subject: Tomcat suddenly not working


Hello,
I have tomcat
everything was working fine and suddenly nothing is!!
I was doing a shutdown.sh and now I can't even start it up.
I get the following error:
This release of Apache Tomcat was packaged to run on J2SE 5.0
or later. It can be run on earlier JVMs by downloading and
installing a compatibility package from the Apache Tomcat
binary download page.
In addition, when I do a "ps -ef| grep i tomcat
I get:
 tomcat  2026 26727  0 21:48:20 pts/50:00 tail -f ../logs/catalina.out
  tomcat  1888 25810  0 21:37:15 pts/70:00 -bash
  tomcat 26727 26725  0 16:21:56 pts/50:01 -bash
  tomcat  2028 27535  0 21:48:48 pts/10   0:00 ps -ef
  tomcat 25810 25808  0 15:14:09 pts/70:01 -bash
  tomcat 27535 26950  0 19:18:12 pts/10   0:00 -bash
  tomcat 25775 25773  0 14:02:00 pts/60:00 -bash

Please, help

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

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

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



RE: Certificate Revocation Lists in Tomcat 5.5

2005-11-29 Thread Duan, Nick
That's indeed good news.  I'd really like to know the result and
appreciate any details. 

Tomcat 5.5 supposed to run on JDK 1.5.  Why was it compiled with JDK
1.4?

ND

-Original Message-
From: Kennedy Roberts [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 29, 2005 3:24 PM
To: Tomcat Users List
Subject: Re: Certificate Revocation Lists in Tomcat 5.5

Martin,

I have yet to try what you suggested, but if this is the case, I am 
grateful for your advice.  I had already got our web application up and 
running on stand alone Tomcat (5.5.12) when I ran into this issue. 
Realizing this, I was thinking that I would have to scrap my work and
start 
over figuring out how to run our web app with Tomcat integrated with
Apache 
HTTP server.  That option seems more labor intensive, as configuration
of 
Tomcat was a breeze (even using SSL).  Two questions (for anyone):

1) Is there any reason why running our web app under Tomcat is not as
good 
as running it under Tomcat/Apache HTTP server integrated?

2) With the solution proposed below, is it possible to point to more
than 
one CRL file?  We multiple from multiple agencies, and previously just 
imported them one at a time into SunOne.

Thanks again for your help

-Kennedy


- Original Message - 
From: "Martin Dubuc" <[EMAIL PROTECTED]>
To: "Tomcat Users List" 
Sent: Tuesday, November 29, 2005 3:11 PM
Subject: RE: Certificate Revocation Lists in Tomcat 5.5


> CRL support is present in Tomcat 5.5.12.
>
> I am not an expert on Tomcat CRL support but what I
> know is the following:
>
> - You will need to recompile some of the
> tomcat-util.jar classes with JDK 1.5 because Tomcat
> 5.5.12 was compiled with JDK 1.4. The classes to be
> recompiled are:
> org.apache.tomcat.util.net.jsse.JSSE15Factory and
> org.apache.tomcat.util.net.jsse.JSSE15SocketFactory
> classes.
> - The crlFile property needs to be added inside your
> SSL Connector in the server.xml file. The value is the
> location of the CRL file on your system.
>
> Regards,
>
> Martin
>
> --- "Duan, Nick" <[EMAIL PROTECTED]> wrote:
>
>> Tomcat currently doesn't support cert validation
>> against CRL.  You may
>> want to use Apache's mod_ssl to do the CRL checking.
>>  You will have to
>> use mod_jk to connect Apache web server with tomcat.
>>
>> SSL is very computational intensive.  Use Apache's
>> httpd to do the SSL
>> work is more efficient than to use Java-based
>> tomcat.
>>
>> ND
>>
>> -Original Message-
>> From: Kennedy Roberts [mailto:[EMAIL PROTECTED]
>> Sent: Tuesday, November 29, 2005 10:55 AM
>> To: users@tomcat.apache.org
>> Subject: Certificate Revocation Lists in Tomcat 5.5
>>
>> Hi all,
>>
>> We've recently migrated our (SSL enabled) web
>> application from
>> SunOne to
>> Tomcat 5.5, and I can't find any information on
>> handling Certificate
>> Revocation Lists in Tomcat.  In SunOne, there was a
>> function in the
>> administration console that let you import a CRL.
>> Is there any
>> equivalent
>> in Tomcat, or perhaps some other command line
>> equivalent?
>>
>> Thanks for your help.
>>
>> -Kennedy
>>
>>
>>
> -
>> To unsubscribe, e-mail:
>> [EMAIL PROTECTED]
>> For additional commands, e-mail:
>> [EMAIL PROTECTED]
>>
>>
>>
> -
>> To unsubscribe, e-mail:
>> [EMAIL PROTECTED]
>> For additional commands, e-mail:
>> [EMAIL PROTECTED]
>>
>>
>
>
>
>
>
> __
> Yahoo! Mail - PC Magazine Editors' Choice 2005
> http://mail.yahoo.com
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


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


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



Java client does not re-use TCP/IP connections.

2005-11-29 Thread Magyar, Bence
Sorry,
  I'm quite new with all of this.  I've created a java client to my tomcat web 
service using the Java2WSDL2 utility and WSDL2Java utility.  Correct me if I'm 
wrong, I believe this is called the "stub" client model.  At any rate, my 
main() function in my client looks like:
   
  // get the web service...
   service = new WSDefinitionServiceLocator();
   
   // Now use the service to get a stub to the service
   ws = service.getMyWebService();
  
   Stub s = (Stub) ws;
   s.setMaintainSession(true);
   
  After this is set up, I can correctly call methods on my service such as 
   
  ws.Method1();
  ws.Method2();
   
  For each one of these invocations, my client creates a new TCP/IP connection 
to the service instead of reusing the existing one.  Am I missing some critical 
parameter 
  in my Stub class?  I'm not sure how else to configure the client.  If anyone 
could 
  point me in the right direction, it would be much appreciated. Thanks!
   
  B.M
   
   
  

"Caldarale, Charles R" <[EMAIL PROTECTED]> wrote:  > From: Magyar, Bence 
[mailto:[EMAIL PROTECTED] 
> Subject: RE: web client running out of ports! (timeout exception)
>
> Shouldn't I be getting persistent, reusable connections as 
> the default with HTTP/1.1?

I'm sure you are - but it's the client's responsibility to reuse them;
all the server has to do is expect more traffic on the connection, which
appears to be what it's doing.

- 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 unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
 Yahoo! Music Unlimited - Access over 1 million songs. Try it free.

RE: Tomcat suddenly not working

2005-11-29 Thread Bachler, Elisabeth (Elisabeth)
Let me add more info:
Tomcat version: 5.5.9
JVM Version 1.5.0-04-b05
OS Name = SunOS
OS Version = 5.9

 I must have done something but I have no idea what!! 
Please help me!

-Original Message-
From: Bachler, Elisabeth (Elisabeth) [mailto:[EMAIL PROTECTED]
Sent: martes, 29 de noviembre de 2005 21:50
To: 'Tomcat Users List'
Subject: Tomcat suddenly not working


Hello,
I have tomcat
everything was working fine and suddenly nothing is!!
I was doing a shutdown.sh and now I can't even start it up.
I get the following error:
This release of Apache Tomcat was packaged to run on J2SE 5.0
or later. It can be run on earlier JVMs by downloading and
installing a compatibility package from the Apache Tomcat
binary download page.
In addition, when I do a "ps -ef| grep i tomcat
I get:
 tomcat  2026 26727  0 21:48:20 pts/50:00 tail -f ../logs/catalina.out
  tomcat  1888 25810  0 21:37:15 pts/70:00 -bash
  tomcat 26727 26725  0 16:21:56 pts/50:01 -bash
  tomcat  2028 27535  0 21:48:48 pts/10   0:00 ps -ef
  tomcat 25810 25808  0 15:14:09 pts/70:01 -bash
  tomcat 27535 26950  0 19:18:12 pts/10   0:00 -bash
  tomcat 25775 25773  0 14:02:00 pts/60:00 -bash

Please, help

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

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



RE: How to test connection pooling

2005-11-29 Thread Lucuk, Pete
 
>So you mean to say you did not get error for second request 
>and it created a new connection ?

Yes, that is what I am saying


 (But this is for Oracle8i). 
>Whether it means there is a problem for MSSQL ?

Yeah, I do not know what it means for MSSQL.
I know I have read the netbeans forums and people have head massive
problems with MSSQL and Netbeans Tomcat

>
>regards
>Manisha 
>
>--- "Lucuk, Pete" <[EMAIL PROTECTED]> wrote:
>
>> I used Tomcat 4.1 and got the.
>> 
>>  "create only one connection at first and then create 
>more connections 
>> as needed"
>> 
>> behavior and it works fine, no errors.
>> 
>> Also, I am using Oracle 8i and use the Oracle jdbc driver 
>ojdbc14.jar 
>> Different that commons stuff you are using.
>> 
>> >-Original Message-
>> >From: Manisha Sathe
>> [mailto:[EMAIL PROTECTED]
>> >Sent: Tuesday, November 29, 2005 1:44 PM
>> >To: Tomcat Users List
>> >Subject: RE: How to test connection pooling
>> >
>> >Hi,
>> >
>> >After some testing on Tomcat 5 / Tomcat 4.1, i am
>> finding some
>> >strange behaviour.
>> >I could figure out how to check number of
>> conections on MSSQL. 
>> >It is Enterprise Manager -> Management -> Current
>> Processes -
>> >u have to refresh it now and then.
>> >
>> >1)For Tomcat 5, it does create a pool of
>> connections at start
>> >depending on initial size. And it uses it from
>> those depending
>> >upon availability. I tested this using some big
>> loops.
>> >
>> >2)But for Tomcat 4.1 - it does not create a pool of
>> conections
>> >but only ONE connection. I thought if trafic
>> increases it
>> >might add new connections to it.
>> >So again tested with 2 requests and used a big loop
>> so that
>> >first request will make use of connection object
>> for
>> >sufficient time and will not release it. 
>> >
>> >I was expecting second request should create new
>> connection in
>> >a pool, but it did not, it waited for existing
>> connection to
>> >become free and later it gave error saying:
>> >
>> >Error message
>> >
>> >java.sql.SQLException: SQLException from connection
>> >manager:
>> org.apache.commons.dbcp.SQLNestedException:
>> >Cannot get a connection, pool exhausted, cause:
>> >Timeout waiting for idle object
>> >--
>> >
>> >
>> >Now whether it means that Tomcat 4.1 does not
>> create pooling
>> >at all ? Am i missing any settings ? For 4.1 am i
>> suppose to
>> >use any different jars ?
>> >
>> >I even tested the same for MySQL. The result is
>> same.
>> >Pls Pls help me, i am stuck like anything.
>> >
>> >regards
>> >Manisha
>> >
>> >--- andy gordon <[EMAIL PROTECTED]> wrote:
>> >
>> >> Show Processlist will show the number of initial
>> connections
>> >at start
>> >> but does it show what subsystem a connection is
>> bound to? what if
>> >> there are multiple tomcat's connected to one
>> database. How do you
>> >> differentiate?
>> >> 
>> >> "Lucuk, Pete" <[EMAIL PROTECTED]> wrote: 
>> Manisha,
>> >> 
>> >> I do not know how you check in MSSQL.
>> >> But, just an FYI
>> >> 
>> >> If you setup your connection to ten, ten do not
>> automatically get
>> >> created, only one, and as your app requires more
>> connections, more
>> >> connections will be created up to a max of ten.
>> >> 
>> >> Took me a couple days to figure out that one
>> >> 
>> >> >-Original Message-
>> >> >From: Manisha Sathe
>> >> [mailto:[EMAIL PROTECTED]
>> >> >Sent: Tuesday, November 29, 2005 10:45 AM
>> >> >To: users@tomcat.apache.org
>> >> >Subject: How to test connection pooling
>> >> >
>> >> >I am on tomcat 4.1
>> >> >
>> >> >I am using JDBC connection pooling for MSSQL and
>> >> singleton
>> >> >class for JNDI lookup (only once) and get
>> >> connection.
>> >> >
>> >> >Everything is working file. But how to test that
>> >> connection
>> >> >pool for 10 (where initial size specified is 10)
>> >> has been created ?
>> >> >
>> >> >I know for mysql it is 'show processlist' and
>> this
>> >> gives out
>> >> >initial number of connections at start. Same
>> thing
>> >> how can i
>> >> >do it for mssql ?
>> >> >
>> >> >regards
>> >> >Manisha
>> >> >
>> >> >
>> >> >
>> >> >
>> >> >
>> >> > 
>> >> >__
>> >> >Start your day with Yahoo! - Make it your home
>> >> page! 
>> >> >http://www.yahoo.com/r/hs
>> >> >
>> >>
>>
>>>-
>> >> >To unsubscribe, e-mail:
>> >> [EMAIL PROTECTED]
>> >> >For additional commands, e-mail:
>> >> [EMAIL PROTECTED]
>> >> >
>> >> >
>> >> 
>> >>
>>
>>-
>> >> To unsubscribe, e-mail:
>> >> [EMAIL PROTECTED]
>> >> For additional commands, e-mail:
>> >> [EMAIL PROTECTED]
>> >> 
>> >> 
>> >> 
>> >> 
>> >>   
>> >> -
>> >>  Yahoo! Music Unlimited - Access over 1 million
>> songs. Try it free.
>> >
>> >
>> >
>> >
>> >__
>> >Yahoo! Music Unlimited
>>

Tomcat suddenly not working

2005-11-29 Thread Bachler, Elisabeth (Elisabeth)
Hello,
I have tomcat
everything was working fine and suddenly nothing is!!
I was doing a shutdown.sh and now I can't even start it up.
I get the following error:
This release of Apache Tomcat was packaged to run on J2SE 5.0
or later. It can be run on earlier JVMs by downloading and
installing a compatibility package from the Apache Tomcat
binary download page.
In addition, when I do a "ps -ef| grep i tomcat
I get:
 tomcat  2026 26727  0 21:48:20 pts/50:00 tail -f ../logs/catalina.out
  tomcat  1888 25810  0 21:37:15 pts/70:00 -bash
  tomcat 26727 26725  0 16:21:56 pts/50:01 -bash
  tomcat  2028 27535  0 21:48:48 pts/10   0:00 ps -ef
  tomcat 25810 25808  0 15:14:09 pts/70:01 -bash
  tomcat 27535 26950  0 19:18:12 pts/10   0:00 -bash
  tomcat 25775 25773  0 14:02:00 pts/60:00 -bash

Please, help

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



RE: Client Authentication

2005-11-29 Thread Dobson Paul L Contr 84 MSUG/GBMLBR


Thanks for the additional insight into client authentication.

The smart card and IE are set up correctly to prompt for a valid
certificate.  I know this because that is how it works when I visit other
web sites on our network that has client authentication implimented.  I have
a feeling the problem I am having has something to do with Tomcat not
knowing what to validate clients against.  

Does Tomcat use the value in the keystoreFile property to determine what
certificates to validate client against?  If so, what entries should be in
the keystore? If not how do I let tomcat know that CA to validate against?

Below is the applicable part of my server.xml




Here is the content of the keystore being used for SSL from running keytool
-list.  Please let me know if something doesn't look right.
---
tomcat, Nov 4, 2005, keyEntry,
Certificate fingerprint (MD5):
FE:5A:8B:C9:95:72:85:2D:46:52:86:90:7A:98:B1:E2
mykey, Nov 28, 2005, trustedCertEntry,
Certificate fingerprint (MD5):
C9:0F:75:AA:61:F0:B2:8B:73:A9:2F:40:57:48:15:C1
---

mykey is what I want to validate clients against.

I guess what I am looking for are confiuration steps that I may have missed.

Thanks in advance for your help.


Paul Dobson 


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 29, 2005 9:51 AM
To: Tomcat Users List
Subject: Re: Client Authentication

Dobson Paul L Contr 84 MSUG/GBMLBR <[EMAIL PROTECTED]> writes:
> I am having a tough time finding information on implementing client
> authentication.  When trying to access my site, I need the user to be
> presented with a dialog box asking for a digital certificate.  The
> certificate needs to be validated then bounced against a list of
> revoked certificates, If it is valid and not revoked, the user should
> be allowed in the site.  I have SSL implemented and have modified my
> server.xml, setting clientAuth="true".  If I set it to true, I am
> quickly presented with the explorer page that says:
>
> The page cannot be displayed
>
> The page you are looking for is currently unavailable. The Web site
> might be experiencing technical difficulties, or you may need to
> adjust your browser settings.
>
> If I set clientAuth="want", I am let into the site without being
> prompted for a certificate.
>
> I think it is automatically behaving as if a client certificate is not
> available without prompting for one ( we are set up with ActiveCard
> smart cards and readers at all work stations)
>
> I am using Tomcat 5.0 with j2sdk1.4.2_04 on windows 2000 server with
> SP4

Client Authentication works as follows: You connect to the server, the
server gives you a list with valid certificates. IE looks if it has a
certificate in the list. The next step depends upon your IE settings. If
there is only one matching certificate and you set IE up to automtically
choose one the connection is established. If there are more you get a
window, where you can select the proper certificate. If there are none
you either get a "page cannot be displayed" message (automatic mode) or
you get a window with not certificate to choose.

So if you are using a smartcard you have to somehow tell IE that it
should take a certificate from a smartcard and not its internal
certificate store. I have no idea how this is all working with
smartcards though.

regards
Markus


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

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



Re: Certificate Revocation Lists in Tomcat 5.5

2005-11-29 Thread Kennedy Roberts

Martin,

   I have yet to try what you suggested, but if this is the case, I am 
grateful for your advice.  I had already got our web application up and 
running on stand alone Tomcat (5.5.12) when I ran into this issue. 
Realizing this, I was thinking that I would have to scrap my work and start 
over figuring out how to run our web app with Tomcat integrated with Apache 
HTTP server.  That option seems more labor intensive, as configuration of 
Tomcat was a breeze (even using SSL).  Two questions (for anyone):


1) Is there any reason why running our web app under Tomcat is not as good 
as running it under Tomcat/Apache HTTP server integrated?


2) With the solution proposed below, is it possible to point to more than 
one CRL file?  We multiple from multiple agencies, and previously just 
imported them one at a time into SunOne.


Thanks again for your help

-Kennedy


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

To: "Tomcat Users List" 
Sent: Tuesday, November 29, 2005 3:11 PM
Subject: RE: Certificate Revocation Lists in Tomcat 5.5



CRL support is present in Tomcat 5.5.12.

I am not an expert on Tomcat CRL support but what I
know is the following:

- You will need to recompile some of the
tomcat-util.jar classes with JDK 1.5 because Tomcat
5.5.12 was compiled with JDK 1.4. The classes to be
recompiled are:
org.apache.tomcat.util.net.jsse.JSSE15Factory and
org.apache.tomcat.util.net.jsse.JSSE15SocketFactory
classes.
- The crlFile property needs to be added inside your
SSL Connector in the server.xml file. The value is the
location of the CRL file on your system.

Regards,

Martin

--- "Duan, Nick" <[EMAIL PROTECTED]> wrote:


Tomcat currently doesn't support cert validation
against CRL.  You may
want to use Apache's mod_ssl to do the CRL checking.
 You will have to
use mod_jk to connect Apache web server with tomcat.

SSL is very computational intensive.  Use Apache's
httpd to do the SSL
work is more efficient than to use Java-based
tomcat.

ND

-Original Message-
From: Kennedy Roberts [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 29, 2005 10:55 AM
To: users@tomcat.apache.org
Subject: Certificate Revocation Lists in Tomcat 5.5

Hi all,

We've recently migrated our (SSL enabled) web
application from
SunOne to
Tomcat 5.5, and I can't find any information on
handling Certificate
Revocation Lists in Tomcat.  In SunOne, there was a
function in the
administration console that let you import a CRL.
Is there any
equivalent
in Tomcat, or perhaps some other command line
equivalent?

Thanks for your help.

-Kennedy




-

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




-

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








__
Yahoo! Mail - PC Magazine Editors' Choice 2005
http://mail.yahoo.com

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




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



Re: ClassNotFoundException when upgrading from 5.5.9 to 5.5.10+

2005-11-29 Thread David R Mulligan
I've had some traction on this problem.  If I remove the Loader element
from within my context element in server.xml I no longer get the CNFE or
NCDE errors.  As far as I know my loader elements are pretty much
standard other than I have reloadable="true" and the checkInterval quite
small.  

Any ideas?

Thanks,
David



On Mon, 2005-11-28 at 14:43 -0700, David R Mulligan wrote:
> When I start up tomcat 5.5.10-12 I am getting a ClassNotFoundException
> for a custom class that implements Filter.  Under 5.5.9 and 5.5.1 the
> class loads just fine.
> 
> My class lives in a jar file in shared/lib as some if it is required by
> another webapp.  If I move the class files in question to the
> webapp/classes dir tomcat appears to be able to find it but then it
> gives a NoClassDefError instead.  I read the FAQ and looked but I cannot
> find another servlet.jar anywhere so I do not believe this is the
> problem.  The filter class is defined in the web.xml file for the
> webapp.
> 
> I cannot find anything in the changelog from 5.5.10 and up that would
> explain or even seem related to this.  I would appreciate any help I can
> get at this point!
> 
> Thanks,
> David
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


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



Re: HttpServlet not found?

2005-11-29 Thread Sebastian Funk

Hi,

thanks a lot. Very quick. Only 3 minutes and I got help.

Best regards,
Sebastian Funk

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



RE: Certificate Revocation Lists in Tomcat 5.5

2005-11-29 Thread Martin Dubuc
CRL support is present in Tomcat 5.5.12.

I am not an expert on Tomcat CRL support but what I
know is the following:

- You will need to recompile some of the
tomcat-util.jar classes with JDK 1.5 because Tomcat
5.5.12 was compiled with JDK 1.4. The classes to be
recompiled are:
org.apache.tomcat.util.net.jsse.JSSE15Factory and
org.apache.tomcat.util.net.jsse.JSSE15SocketFactory
classes.
- The crlFile property needs to be added inside your
SSL Connector in the server.xml file. The value is the
location of the CRL file on your system.

Regards,

Martin

--- "Duan, Nick" <[EMAIL PROTECTED]> wrote:

> Tomcat currently doesn't support cert validation
> against CRL.  You may
> want to use Apache's mod_ssl to do the CRL checking.
>  You will have to
> use mod_jk to connect Apache web server with tomcat.
> 
> SSL is very computational intensive.  Use Apache's
> httpd to do the SSL
> work is more efficient than to use Java-based
> tomcat.
> 
> ND
> 
> -Original Message-
> From: Kennedy Roberts [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, November 29, 2005 10:55 AM
> To: users@tomcat.apache.org
> Subject: Certificate Revocation Lists in Tomcat 5.5
> 
> Hi all,
> 
> We've recently migrated our (SSL enabled) web
> application from
> SunOne to 
> Tomcat 5.5, and I can't find any information on
> handling Certificate 
> Revocation Lists in Tomcat.  In SunOne, there was a
> function in the 
> administration console that let you import a CRL. 
> Is there any
> equivalent 
> in Tomcat, or perhaps some other command line
> equivalent?
> 
> Thanks for your help.
> 
> -Kennedy 
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 





__ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com

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



Re: un subscribing this newsgroup

2005-11-29 Thread Terry Allen

Hi!
  I am trying to unsubscribe from this newsgroup ( i have sent 
emails to unscribing email address listed in each email) but i still 
keep getting messages. Can someone tell me how can i unsubscribe 
"successfully".

Thanks for your time,
Regards,
Usman.


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


Hi again,
	Send a blank email to the following address as outlined at 
the bottom of each email:


[EMAIL PROTECTED]

As the subject line, use the text:

unsubscribe

	Then I suspect you need to reply to the confirmation addresss 
which sends a confirmation email to you which should complete your 
unsubscription.

--

	Bye for now, Terry Allen 
	___

hEARd

Postal Address:
hEARd, 26B Glenning Rd, Glenning Valley, NSW 2261, Australia
Internet -
WWW: http://heard.com.au http://itavservices.com
EMAIL: [EMAIL PROTECTED]
Phone: Australia - 02 4388 1400 / International - + 61 2 43881400
Mobile: Australia - 04 28881400 / International - 61 4 28881400
---
Non profit promotion for new music - since 1994
---

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



RE: HttpServlet not found?

2005-11-29 Thread Caldarale, Charles R
> From: Sebastian Funk [mailto:[EMAIL PROTECTED] 
> Subject: Re: HttpServlet not found?
> 
> But when I shouldn't set the $CLASSPATH, how can I load the MySQL- 
> Drivers?

Read this:
http://tomcat.apache.org/tomcat-5.5-doc/class-loader-howto.html
and then choose the appropriate spot in the Tomcat classloader hierarchy
for the jar.

 - 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 unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: HttpServlet not found?

2005-11-29 Thread Sebastian Funk

Hi,

thanks for helping. that seems to work. I'll be watching it.
But when I shouldn't set the $CLASSPATH, how can I load the MySQL- 
Drivers?


Thanks $ Greetings,
Sebastian Funk

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



RE: web client running out of ports! (timeout exception)

2005-11-29 Thread Caldarale, Charles R
> From: Magyar, Bence [mailto:[EMAIL PROTECTED] 
> Subject: RE: web client running out of ports! (timeout exception)
>
>   Shouldn't I be getting persistent, reusable connections as 
> the default with HTTP/1.1?

I'm sure you are - but it's the client's responsibility to reuse them;
all the server has to do is expect more traffic on the connection, which
appears to be what it's doing.

 - 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 unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: web client running out of ports! (timeout exception)

2005-11-29 Thread Magyar, Bence
Hi,
   
  You're right, it's probably something screwy with my client.  Not sure what 
it could be though.
   
  In looking at my Tomcat terminal, i see:
   
  INFO: Starting Coyote HTTP/1.1 on http-8080
   
  Shouldn't I be getting persistent, reusable connections as the default with 
HTTP/1.1?
   
  B.M
   
   
  

"Caldarale, Charles R" <[EMAIL PROTECTED]> wrote:  > From: Magyar, Bence 
[mailto:[EMAIL PROTECTED] 
> Subject: web client running out of ports! (timeout exception)
> 
> Every time I call a method, my java client opens a new port!

If I'm understanding the problem correctly, I don't see how changing
anything in the Tomcat configuation will help this anti-social client
behavior. Sounds like you need to fix your client to reuse connections
rather than creating a new one for each request.

- 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 unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
 Yahoo! Music Unlimited - Access over 1 million songs. Try it free.

RE: HttpServlet not found?

2005-11-29 Thread Caldarale, Charles R
> From: Martin Gainty [mailto:[EMAIL PROTECTED] 
> Subject: Re: HttpServlet not found?
> 
> (otherwise take servlet-api.jar off CLASSPATH and put back 
> j2ee.jar to $J2EE_HOME\lib\j2ee.jar and place on CLASSPATH)

I think you'll need to do more than that.  Tomcat has a variety of class
loaders, including one for each webapp, one for classes shared among all
webapps, and one for classes common to the webapps and Tomcat itself.
(This is in addition to the ones used by the JVM.)  See:
http://tomcat.apache.org/tomcat-5.5-doc/class-loader-howto.html
for details.  The picture there is quite illustrative.

This creates a tree of classloaders, and you will run into problems if
the same classes are present in more than one place along a particular
branch of the tree.  I've gotten burned too many times by the CLASSPATH
environment variable to use it anymore - I'd strongly suggest you delete
that variable and use explicit -cp settings where necessary.  This will
help to prevent any classes showing up under the wrong loader
inadvertently.

The gist of all this is that you don't want both j2ee.jar and
servlet-api.jar to be available to either your compilations or during
Tomcat execution.  It's possible that you might be able to replace
servlet-api.jar with j2ee.jar in Tomcat's common/lib, but I haven't
personally tried it.

 - 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 unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Help with session-timeout

2005-11-29 Thread Rob Dickey
Are there any other services involved (JDBC, etc.) that are referenced by or
in the session, or where the sessions are dependent? Just wondering why TC
threads are invalidating the session...

Another option to test is add a line of code in your login process (whatever
establishes the HttpSession object) and manually set the timeout with the
HttpSession.setMaxInactiveInterval() method.  I believe this method
overrides any descriptor settings.

Of course, having said all of that, your descriptors should work as you have
specified.  Perhaps the "multiple applications" or other service timeout
descriptors are influencing the session timeouts...I've seen stranger things
happen...you might find this link useful as a test of your TC session
timeout setup... http://www.jguru.com/faq/view.jsp?EID=127074

HTH,
Rob

-Original Message-
From: Dave Morrow [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 29, 2005 10:48 AM
To: Tomcat Users List
Subject: Help with session-timeout

Hi all.  I have a server with multiple applications running under Tomcat 5.5

In /conf/web.xml  is set to 30

In /webapps/myapp/WEB-INF/web.xml  is set to
-1 (infinite)

Users are being timed out of their sessions after 30 minutes as opposed to
never being timed out.  

Can anyone assist with this?  Any help would be greatly appreciated.


David A. Morrow
Technical Systems Lead
Autodata Solutions Company
[EMAIL PROTECTED]
http://www.autodata.net

* PLEASE NOTE THAT EFFECTIVE DEC 1,2005 MY TELEPHONE NUMBER WILL CHANGE *

NEW !!! Tel: (519) 963-3020
Fax: (519) 451-6615 

< Poor planning on your part does not necessarily constitute an emergency on
my part! >

This message has originated from Autodata Solutions. The attached material
is the Confidential and Proprietary Information of Autodata Solutions. This
email and any files transmitted with it are confidential and intended solely
for the use of the individual or entity to whom they are addressed. If you
have received this email in error please delete this message and notify the
Autodata system administrator at [EMAIL PROTECTED]




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



RE: How to test connection pooling

2005-11-29 Thread Manisha Sathe
Thanks for quick reply,

So you mean to say you did not get error for second
request and it created a new connection ? (But this is
for Oracle8i). Whether it means there is a problem for
MSSQL ?

regards
Manisha 

--- "Lucuk, Pete" <[EMAIL PROTECTED]> wrote:

> I used Tomcat 4.1 and got the.
> 
>   "create only one connection at first and then
> create more
> connections as needed"
> 
> behavior and it works fine, no errors.
> 
> Also, I am using Oracle 8i and use the Oracle jdbc
> driver ojdbc14.jar
> Different that commons stuff you are using.
> 
> >-Original Message-
> >From: Manisha Sathe
> [mailto:[EMAIL PROTECTED] 
> >Sent: Tuesday, November 29, 2005 1:44 PM
> >To: Tomcat Users List
> >Subject: RE: How to test connection pooling
> >
> >Hi, 
> >
> >After some testing on Tomcat 5 / Tomcat 4.1, i am
> finding some 
> >strange behaviour.
> >I could figure out how to check number of
> conections on MSSQL. 
> >It is Enterprise Manager -> Management -> Current
> Processes - 
> >u have to refresh it now and then.
> >
> >1)For Tomcat 5, it does create a pool of
> connections at start 
> >depending on initial size. And it uses it from
> those depending 
> >upon availability. I tested this using some big
> loops.
> >
> >2)But for Tomcat 4.1 - it does not create a pool of
> conections 
> >but only ONE connection. I thought if trafic
> increases it 
> >might add new connections to it.
> >So again tested with 2 requests and used a big loop
> so that 
> >first request will make use of connection object
> for 
> >sufficient time and will not release it. 
> >
> >I was expecting second request should create new
> connection in 
> >a pool, but it did not, it waited for existing
> connection to 
> >become free and later it gave error saying:
> >
> >Error message
> >
> >java.sql.SQLException: SQLException from connection
> >manager:
> org.apache.commons.dbcp.SQLNestedException:
> >Cannot get a connection, pool exhausted, cause:
> >Timeout waiting for idle object
> >--
> >
> >
> >Now whether it means that Tomcat 4.1 does not
> create pooling 
> >at all ? Am i missing any settings ? For 4.1 am i
> suppose to 
> >use any different jars ?
> >
> >I even tested the same for MySQL. The result is
> same.
> >Pls Pls help me, i am stuck like anything.
> >
> >regards
> >Manisha
> >
> >--- andy gordon <[EMAIL PROTECTED]> wrote:
> >
> >> Show Processlist will show the number of initial
> connections 
> >at start 
> >> but does it show what subsystem a connection is
> bound to? what if 
> >> there are multiple tomcat's connected to one
> database. How do you 
> >> differentiate?
> >> 
> >> "Lucuk, Pete" <[EMAIL PROTECTED]> wrote: 
> Manisha,
> >> 
> >> I do not know how you check in MSSQL.
> >> But, just an FYI
> >> 
> >> If you setup your connection to ten, ten do not
> automatically get 
> >> created, only one, and as your app requires more
> connections, more 
> >> connections will be created up to a max of ten.
> >> 
> >> Took me a couple days to figure out that one
> >> 
> >> >-Original Message-
> >> >From: Manisha Sathe
> >> [mailto:[EMAIL PROTECTED]
> >> >Sent: Tuesday, November 29, 2005 10:45 AM
> >> >To: users@tomcat.apache.org
> >> >Subject: How to test connection pooling
> >> >
> >> >I am on tomcat 4.1
> >> >
> >> >I am using JDBC connection pooling for MSSQL and
> >> singleton
> >> >class for JNDI lookup (only once) and get
> >> connection.
> >> >
> >> >Everything is working file. But how to test that
> >> connection
> >> >pool for 10 (where initial size specified is 10)
> >> has been created ?
> >> >
> >> >I know for mysql it is 'show processlist' and
> this
> >> gives out
> >> >initial number of connections at start. Same
> thing
> >> how can i
> >> >do it for mssql ?
> >> >
> >> >regards
> >> >Manisha
> >> >
> >> >
> >> >
> >> >
> >> >
> >> > 
> >> >__
> >> >Start your day with Yahoo! - Make it your home
> >> page! 
> >> >http://www.yahoo.com/r/hs
> >> >
> >>
>
>>-
> >> >To unsubscribe, e-mail:
> >> [EMAIL PROTECTED]
> >> >For additional commands, e-mail:
> >> [EMAIL PROTECTED]
> >> >
> >> >
> >> 
> >>
>
>-
> >> To unsubscribe, e-mail:
> >> [EMAIL PROTECTED]
> >> For additional commands, e-mail:
> >> [EMAIL PROTECTED]
> >> 
> >> 
> >> 
> >> 
> >>
> >> -
> >>  Yahoo! Music Unlimited - Access over 1 million
> songs. Try it free.
> >
> >
> >
> > 
> >__
> >Yahoo! Music Unlimited
> >Access over 1 million songs. Try it free. 
> >http://music.yahoo.com/unlimited/
> >
>
>-
> >To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> >For additional commands, e-mail:
> [EMAIL PROTECTED]
> >
> >
> 
>
-

mod_jk setting caused occassional 503 apache errors

2005-11-29 Thread Mott Leroy

I recently added some settings to my worker.properties which caused
apache to throw occassional "503" ("Service Temporarily Unavailable")
errors. I've commented out the setting and the errors do not occur.

The settings are related to timeouts (connect_timeout, prepost_timeout, 
and reply_timeout) placed on two load balanced workers. If a timeout 
occurs, it's supposed to failover to the other node. (note that one node 
is disabled, so it's fault tolerant, not truly load balanced)


The simple answer may be just to increase the timeout, but even so, it 
should be failing over, not timing out and throwing a 503 error. I've 
listed below my environment, a snippet of my worker.properties file, 
and the errors i saw in my mod_jk log. Any help and/or suggestions would 
be much appeciated! Thanks.


Mott

 begin environment snippet ---
jre 1.4.2
tomcat 5.0.28
redhat linux fedora core 2
mod_jk 1.2.14.1
 end environment snippet ---

- begin worker.properties snippet --
worker.list=lb_builds,jkstatus

# macros for timeouts
default.connect_timeout=3000
default.prepost_timeout=3000
default.reply_timeout=8000

worker.lb_builds.type=lb
worker.lb_builds.balance_workers=lb_tala_build,lb_bj_build
worker.lb_builds.sticky_session=true
# if the server is down, don't force the session - failover to the other 
server

worker.lb_builds.sticky_session_force=false

# lb - tala: build
worker.lb_tala_build.type=ajp13
worker.lb_tala_build.host=tala
worker.lb_tala_build.port=8000
worker.lb_tala_build.lbfactor=1
worker.lb_tala_build.socket_keepalive=1
worker.lb_tala_build.recycle_timeout=300
worker.lb_tala_build.redirect=lb_bj_build
# one of these now commented out properties caused the errors
# worker.lb_tala_build.connect_timeout=$(default.connect_timeout)
# worker.lb_tala_build.prepost_timeout=$(default.prepost_timeout)
# worker.lb_tala_build.reply_timeout=$(default.reply_timeout)

# lb - bj: build
worker.lb_bj_build.type=ajp13
worker.lb_bj_build.host=bj
worker.lb_bj_build.port=8000
worker.lb_bj_build.lbfactor=1
worker.lb_bj_build.socket_keepalive=1
worker.lb_bj_build.recycle_timeout=300
worker.lb_bj_build.disabled=True
# one of these now commented out properties caused the errors
# worker.lb_bj_build.connect_timeout=$(default.connect_timeout)
# worker.lb_bj_build.prepost_timeout=$(default.prepost_timeout)
# worker.lb_bj_build.reply_timeout=$(default.reply_timeout)

# load balancing status worker
worker.jkstatus.type=status
- end worker.properties snippet --


-- snip begin mod_jk log --
[Mon Nov 28 09:33:38 2005] [info]  ajp_service::jk_ajp_common.c (1749): 
Sending request to tomcat failed,  recoverable operation attempt=1
[Mon Nov 28 09:43:40 2005] [iror] ajp_get_reply::jk_ajp_common.c (1483): 
Timeout with waiting reply from tomcat. Tomcat is down, stopped or 
network problems.
[Mon Nov 28 09:26:40 2005] [info]  ajp_service::jk_ajp_common.c (1721): 
Receiving from tomcat failed, recoverable operation attempt=1
[Mon Nov 28 09:26:40 2005] [info]  ajp_service::jk_ajp_common.c (1749): 
Sending request to tomcat failed,  recoverable operation attempt=2
[Mon Nov 28 09:26:48 2005] [error] ajp_get_reply::jk_ajp_common.c 
(1483): Timeout with waiting reply from tomcat. Tomcat is down, stopped 
or network problems.
[Mon Nov 28 09:26:48 2005] [info]  ajp_service::jk_ajp_common.c (1721): 
Receiving from tomcat failed, recoverable operation attempt=2
[Mon Nov 28 09:26:48 2005] [info]  ajp_service::jk_ajp_common.c (1749): 
Sending request to tomcat failed,  recoverable operation attempt=3
[Mon Nov 28 09:26:48 2005] [error] ajp_service::jk_ajp_common.c (1758): 
Error connecting to tomcat. Tomcat is probably not started or is 
listening on the wrong port. worker=lb_tala_build failed
[Mon Nov 28 09:26:48 2005] [info]  service::jk_lb_worker.c (662): 
service failed, worker lb_tala_build is in error state
[Mon Nov 28 09:26:48 2005] [error] service::jk_lb_worker.c (703): All 
tomcat instances failed, no more workers left
[Mon Nov 28 09:26:48 2005] [info]  jk_handler::mod_jk.c (1844): Service 
error=0 for worker=lb_builds

-- snip end mod_jk log --

Note that I also regularly see the following snippet in my mod_jk logs, 
but doesn't seem to be causing any harm:


[Tue Nov 29 13:41:32 2005] [info]  ajp_send_request::jk_ajp_common.c 
(1178): Socket 10 is not connected any more (errno=-1)
[Tue Nov 29 13:41:32 2005] [info]  ajp_send_request::jk_ajp_common.c 
(1202): Error sending request. Will try another pooled connection
[Tue Nov 29 13:41:32 2005] [info]  ajp_send_request::jk_ajp_common.c 
(1225): All endpoints are disconnected or dead
[Tue Nov 29 13:41:32 2005] [info]  ajp_service::jk_ajp_common.c (1749): 
Sending request to tomcat failed,  recoverable operation attempt=1



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



RE: web client running out of ports! (timeout exception)

2005-11-29 Thread Caldarale, Charles R
> From: Magyar, Bence [mailto:[EMAIL PROTECTED] 
> Subject: web client running out of ports! (timeout exception)
> 
> Every time I call a method, my java client opens a new port!

If I'm understanding the problem correctly, I don't see how changing
anything in the Tomcat configuation will help this anti-social client
behavior.  Sounds like you need to fix your client to reuse connections
rather than creating a new one for each request.

 - 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 unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: How to test connection pooling

2005-11-29 Thread Lucuk, Pete
I used Tomcat 4.1 and got the.

"create only one connection at first and then create more
connections as needed"

behavior and it works fine, no errors.

Also, I am using Oracle 8i and use the Oracle jdbc driver ojdbc14.jar
Different that commons stuff you are using.

>-Original Message-
>From: Manisha Sathe [mailto:[EMAIL PROTECTED] 
>Sent: Tuesday, November 29, 2005 1:44 PM
>To: Tomcat Users List
>Subject: RE: How to test connection pooling
>
>Hi, 
>
>After some testing on Tomcat 5 / Tomcat 4.1, i am finding some 
>strange behaviour.
>I could figure out how to check number of conections on MSSQL. 
>It is Enterprise Manager -> Management -> Current Processes - 
>u have to refresh it now and then.
>
>1)For Tomcat 5, it does create a pool of connections at start 
>depending on initial size. And it uses it from those depending 
>upon availability. I tested this using some big loops.
>
>2)But for Tomcat 4.1 - it does not create a pool of conections 
>but only ONE connection. I thought if trafic increases it 
>might add new connections to it.
>So again tested with 2 requests and used a big loop so that 
>first request will make use of connection object for 
>sufficient time and will not release it. 
>
>I was expecting second request should create new connection in 
>a pool, but it did not, it waited for existing connection to 
>become free and later it gave error saying:
>
>Error message
>
>java.sql.SQLException: SQLException from connection
>manager: org.apache.commons.dbcp.SQLNestedException:
>Cannot get a connection, pool exhausted, cause:
>Timeout waiting for idle object
>--
>
>
>Now whether it means that Tomcat 4.1 does not create pooling 
>at all ? Am i missing any settings ? For 4.1 am i suppose to 
>use any different jars ?
>
>I even tested the same for MySQL. The result is same.
>Pls Pls help me, i am stuck like anything.
>
>regards
>Manisha
>
>--- andy gordon <[EMAIL PROTECTED]> wrote:
>
>> Show Processlist will show the number of initial connections 
>at start 
>> but does it show what subsystem a connection is bound to? what if 
>> there are multiple tomcat's connected to one database. How do you 
>> differentiate?
>> 
>> "Lucuk, Pete" <[EMAIL PROTECTED]> wrote:  Manisha,
>> 
>> I do not know how you check in MSSQL.
>> But, just an FYI
>> 
>> If you setup your connection to ten, ten do not automatically get 
>> created, only one, and as your app requires more connections, more 
>> connections will be created up to a max of ten.
>> 
>> Took me a couple days to figure out that one
>> 
>> >-Original Message-
>> >From: Manisha Sathe
>> [mailto:[EMAIL PROTECTED]
>> >Sent: Tuesday, November 29, 2005 10:45 AM
>> >To: users@tomcat.apache.org
>> >Subject: How to test connection pooling
>> >
>> >I am on tomcat 4.1
>> >
>> >I am using JDBC connection pooling for MSSQL and
>> singleton
>> >class for JNDI lookup (only once) and get
>> connection.
>> >
>> >Everything is working file. But how to test that
>> connection
>> >pool for 10 (where initial size specified is 10)
>> has been created ?
>> >
>> >I know for mysql it is 'show processlist' and this
>> gives out
>> >initial number of connections at start. Same thing
>> how can i
>> >do it for mssql ?
>> >
>> >regards
>> >Manisha
>> >
>> >
>> >
>> >
>> >
>> > 
>> >__
>> >Start your day with Yahoo! - Make it your home
>> page! 
>> >http://www.yahoo.com/r/hs
>> >
>>
>>-
>> >To unsubscribe, e-mail:
>> [EMAIL PROTECTED]
>> >For additional commands, e-mail:
>> [EMAIL PROTECTED]
>> >
>> >
>> 
>>
>-
>> To unsubscribe, e-mail:
>> [EMAIL PROTECTED]
>> For additional commands, e-mail:
>> [EMAIL PROTECTED]
>> 
>> 
>> 
>> 
>>  
>> -
>>  Yahoo! Music Unlimited - Access over 1 million songs. Try it free.
>
>
>
>   
>__
>Yahoo! Music Unlimited
>Access over 1 million songs. Try it free. 
>http://music.yahoo.com/unlimited/
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



Re: HttpServlet not found?

2005-11-29 Thread Martin Gainty
yes if you're going to implement a simple servlet and you will not be 
implementing any (entity) beans 
(otherwise take servlet-api.jar off CLASSPATH and put back j2ee.jar to 
$J2EE_HOME\lib\j2ee.jar and place on CLASSPATH)

Martin-
- Original Message - 
From: "Caldarale, Charles R" <[EMAIL PROTECTED]>
To: "Tomcat Users List" 
Sent: Tuesday, November 29, 2005 11:07 AM
Subject: RE: HttpServlet not found?


> From: Sebastian [mailto:[EMAIL PROTECTED] 
> Subject: HttpServlet not found?
> 
> I compiled it with
> "javac -cp /home/tomcat/j2ee/lib/j2ee.jar:/home/tomcat/mysql  
> MyServlet.java".

Using j2ee.jar with Tomcat usually results in much grief, since it
contains many classes that conflict with those supplied by Tomcat.
Suggest removing it from your system, or at least taking it out of your
classpath.  Use Tomcat's common/lib/servlet-api.jar instead.

 - 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 unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: web.xml question

2005-11-29 Thread Robert Palmer
I was planning on doing this by having Apache handle the SSL and using 
its configuration file to differentiate between SSL'd areas of the site 
and non-SSL'd areas. Is this an option or should i rethink this?


Tim Funk wrote:

I would bet they are not using security constraints as defined in 
web.xml. I would bet they are using a 3rd party solution implemented 
as a Servlet Filter or something application server specific to handle 
this login issue. Notice they do not use JSESSIONID but something 
called BV_SessionID as parameter in the query string. A quick google 
search seems to show they use BroadVision.


-Tim

Dean Searle wrote:


Tim,

I'm not an expert with tomcat but how does a site like samsclub.com do
it then? I use their site a lot and it runs jsp's and most of the stuff
is unsecure (http) but when I get ready to do the actual purchase and
log in it is a secure site (https). Is there something that they are
doing, possibly masquerading the url or something?

Again not an expert, but something I have been interested in for some
time myself.

Dean 8-)

-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 
29, 2005 10:34 AM

To: Tomcat Users List
Subject: Re: web.xml question

Security constraints are only imposed on the incoming URL.

Long story short - you'll need to place the entire webapp in SSL. There
is no clean way to use declarative statements to force the login to be
SSL and the rest of the webapp be nonssl.

-Tim 



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



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



Re: JSP on apache

2005-11-29 Thread Lists

Mukesh,

I would use tomcat with Apache to accomplish this...

Or jetty.


the links are below:


To integrate the Tomcat server processes with the Apache HTTP server  
we need the mod_jk module, which implements the interface between  
Tomcat and Apache, combined with some small steps to configure Apache  
and Tomcat to our needs.


found here :
http://tomcat.apache.org/tomcat-3.3-doc/mod_jk-howto.html

Jetty Rox:  its raw baby!! But it roCKS
http://jetty.mortbay.org/jetty/




On Nov 29, 2005, at 8:56, mukesh wrote:


Hi friends,



How can I run JSPs on apache server? My apache server  
is running
on Linux. In fact I have developed some web services in Java (and  
JSP) and
want to deploy on the same server. Is it possible to deploy them  
directly or

is there some other way around?



Please advice.



Regards

Mukesh










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



web client running out of ports! (timeout exception)

2005-11-29 Thread Magyar, Bence
Hello,  I noticed some strange behavior the other day while load testing my simple web service.  First, my environment:  I am running Apache Tomcat 5.5.12 with Axis 1.3 on an XP box.  I've used Java2WSDL and WSDL2Java to generate the necessary bindings.  I used the generated .wsdd file to deploy my service with an "Application" deployment scope and my Java client can call methods on the service the ease.  So far, so good.  By looking at the Axis SOAP monitor, all my messages seem to be getting through fine.  The trouble starts when I begin rapidly calling web service methods within a loop.  The first 3000 calls or so go through fine.  Then I get an Axis Fault: timeout exception.  See the attached is the stack trace.  Why is this happening?  I used the -netstat utility on the machine hosting the web service and noticed that -ea
 ch-
 method call is coming in on a different port!  Every time I call a method, my java client opens a new port!  On XP, the default port range goes from 1024-5000.  Worse yet, each port is in the TIME_WAIT state, meaning that it can't be re-used untill some specified timeout period.  After waiting for 10-20 seconds, Windows frees up all the ports and I can begin happily calling methods again.          I'm not sure why this is happening!  I thought the entire point of HTTP/1.1 was to persist connections.  If I make two calls to the same web service within X seconds of each other, shouldn't TCP/IP use the already established connection?  Especially a connection that is not in use and in the TIME_WAIT state?     I am fairly sure that I need to set the well-known TCP/IP parameter SO_REUSEADDR to true.  I know I can configure Tomcat with the server.xml file, but I could 
 not find
 anything related to this phenomena.  Instead, I see parameters relating to the keepalivetime, etc...My method calls will not be data intensive, but will be making many (thousands) method invocations at once.  Ideally I'd like to have one or two connections to the webservice and re-use them.  Does anyone have any idea how I could configure Tomcat/Axis to perform in this manner?        P.S.. In looking at some Apache source, I noticed that Apache sets the SO_REUSE_ADDR variable, but only in NON-win32 environments!  Is this feature not available in the Windows world?  Thanks for any leads!!!  BM.     
		 Yahoo! Music Unlimited - Access over 1 million songs. Try it free.AxisFault
 faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
 faultSubcode: 
 faultString: java.net.ConnectException: Connection timed out: connect
 faultActor: 
 faultNode: 
 faultDetail: 
{http://xml.apache.org/axis/}stackTrace:java.net.ConnectException: 
Connection timed out: 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.SocksSocketImpl.connect(SocksSocketImpl.java:364)
at java.net.Socket.connect(Socket.java:507)
at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at 
org.apache.axis.components.net.DefaultSocketFactory.create(DefaultSocketFactory.java:153)
at 
org.apache.axis.components.net.DefaultSocketFactory.create(DefaultSocketFactory.java:120)
at 
org.apache.axis.transport.http.HTTPSender.getSocket(HTTPSender.java:191)
at 
org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:404)
at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:138)
at 
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
at org.apache.axis.client.Call.invoke(Call.java:2767)
at org.apache.axis.client.Call.invoke(Call.java:2443)
at org.apache.axis.client.Call.invoke(Call.java:2366)
at org.apache.axis.client.Call.invoke(Call.java:1812)
at 
webService.ws.SensorcontrolSoapBindingStub.getCapabilities(SensorcontrolSoapBindingStub.java:305)
at somepackage.Tester$3.mouseDown(Tester.java:275)
at 
org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:133)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:843)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3080)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:

Help with session-timeout

2005-11-29 Thread Dave Morrow
Hi all.  I have a server with multiple applications running under Tomcat 5.5

In /conf/web.xml  is set to 30

In /webapps/myapp/WEB-INF/web.xml  is set to -1 
(infinite)

Users are being timed out of their sessions after 30 minutes as opposed to 
never being timed out.  

Can anyone assist with this?  Any help would be greatly appreciated.


David A. Morrow
Technical Systems Lead
Autodata Solutions Company
[EMAIL PROTECTED]
http://www.autodata.net

* PLEASE NOTE THAT EFFECTIVE DEC 1,2005 MY TELEPHONE NUMBER WILL CHANGE *

NEW !!! Tel: (519) 963-3020
Fax: (519) 451-6615 

< Poor planning on your part does not necessarily constitute an emergency on my 
part! >

This message has originated from Autodata Solutions. The attached material is 
the Confidential and Proprietary Information of Autodata Solutions. This email 
and any files transmitted with it are confidential and intended solely for the 
use of the individual or entity to whom they are addressed. If you have 
received this email in error please delete this message and notify the Autodata 
system administrator at [EMAIL PROTECTED] 



RE: How to test connection pooling

2005-11-29 Thread Manisha Sathe
Hi, 

After some testing on Tomcat 5 / Tomcat 4.1, i am
finding some strange behaviour.
I could figure out how to check number of conections
on MSSQL. It is Enterprise Manager -> Management ->
Current Processes - u have to refresh it now and then.

1)For Tomcat 5, it does create a pool of connections
at start depending on initial size. And it uses it
from those depending upon availability. I tested this
using some big loops.

2)But for Tomcat 4.1 - it does not create a pool of
conections but only ONE connection. I thought if
trafic increases it might add new connections to it.
So again tested with 2 requests and used a big loop so
that first request will make use of connection object
for sufficient time and will not release it. 

I was expecting second request should create new
connection in a pool, but it did not, it waited for
existing connection to become free and later it gave
error saying:

Error message

java.sql.SQLException: SQLException from connection
manager: org.apache.commons.dbcp.SQLNestedException:
Cannot get a connection, pool exhausted, cause:
Timeout waiting for idle object
--


Now whether it means that Tomcat 4.1 does not create
pooling at all ? Am i missing any settings ? For 4.1
am i suppose to use any different jars ?

I even tested the same for MySQL. The result is same.
Pls Pls help me, i am stuck like anything.

regards
Manisha

--- andy gordon <[EMAIL PROTECTED]> wrote:

> Show Processlist will show the number of initial
> connections at start but does it show what subsystem
> a connection is bound to? what if there are multiple
> tomcat's connected to one database. How do you
> differentiate? 
> 
> "Lucuk, Pete" <[EMAIL PROTECTED]> wrote:  Manisha,
> 
> I do not know how you check in MSSQL.
> But, just an FYI
> 
> If you setup your connection to ten, ten do not
> automatically get
> created, only one, and as your app requires more
> connections, more
> connections will be created up to a max of ten.
> 
> Took me a couple days to figure out that one 
> 
> >-Original Message-
> >From: Manisha Sathe
> [mailto:[EMAIL PROTECTED] 
> >Sent: Tuesday, November 29, 2005 10:45 AM
> >To: users@tomcat.apache.org
> >Subject: How to test connection pooling
> >
> >I am on tomcat 4.1
> >
> >I am using JDBC connection pooling for MSSQL and
> singleton 
> >class for JNDI lookup (only once) and get
> connection.
> >
> >Everything is working file. But how to test that
> connection 
> >pool for 10 (where initial size specified is 10)
> has been created ?
> >
> >I know for mysql it is 'show processlist' and this
> gives out 
> >initial number of connections at start. Same thing
> how can i 
> >do it for mssql ?
> >
> >regards
> >Manisha
> >
> >
> >
> >
> >
> > 
> >__
> >Start your day with Yahoo! - Make it your home
> page! 
> >http://www.yahoo.com/r/hs
> >
>
>-
> >To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> >For additional commands, e-mail:
> [EMAIL PROTECTED]
> >
> >
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 
> 
> 
>   
> -
>  Yahoo! Music Unlimited - Access over 1 million
> songs. Try it free.




__ 
Yahoo! Music Unlimited 
Access over 1 million songs. Try it free. 
http://music.yahoo.com/unlimited/

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



Tomcat installation: How do I specify an installation directory on the command line?

2005-11-29 Thread Tyler Carpenter
This regards Tomcat 5.x installation on a Windows system, using the Windows 
installer option.  I need to integrate Tomcat installation into my installation 
program, and I’d like to do so silently, but I also need to be able to specify 
the location of installation.I can silently install Tomcat using the “/S” 
parameter (jakarta-tomcat-5.0.28.exe /S), but this installs into the “Program 
Files\Apache Software Foundation\Tomcat 5.0” directory.  
I’ve tried the “/D” command line option (e.g., jakarta-tomcat-5.0.28.exe /S 
/D=c:\tomcat), but this makes no difference -- the installation still goes to 
the default path. 
Is there a document of the installation command line switches?  I couldn’t 
find anything in the documentation or in a variety of Google searches.  Any 
help is appreciated.  Thanks in advance.


  


-
 Yahoo! Music Unlimited - Access over 1 million songs. Try it free.

Re: web.xml question

2005-11-29 Thread Tim Funk
I would bet they are not using security constraints as defined in web.xml. I 
would bet they are using a 3rd party solution implemented as a Servlet Filter 
or something application server specific to handle this login issue. Notice 
they do not use JSESSIONID but something called BV_SessionID as parameter in 
the query string. A quick google search seems to show they use BroadVision.


-Tim

Dean Searle wrote:


Tim,

I'm not an expert with tomcat but how does a site like samsclub.com do
it then? I use their site a lot and it runs jsp's and most of the stuff
is unsecure (http) but when I get ready to do the actual purchase and
log in it is a secure site (https). Is there something that they are
doing, possibly masquerading the url or something?

Again not an expert, but something I have been interested in for some
time myself.

Dean 8-)

-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 29, 2005 10:34 AM

To: Tomcat Users List
Subject: Re: web.xml question

Security constraints are only imposed on the incoming URL.

Long story short - you'll need to place the entire webapp in SSL. There
is no clean way to use declarative statements to force the login to be
SSL and the rest of the webapp be nonssl.

-Tim 


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



Re: Sharing session across http and https connections

2005-11-29 Thread Chris Birch
Thanks for pointing out the gotcha Nick.  The sites are both running on 
the same server, so I'll follow Tim's suggestion.


Many Thanks for your responses,
Chris.

On 29 Nov 2005, at 17:24, Duan, Nick wrote:


You can't do this if both sites are on different machines since tomcat
user ID (defined as a cookie by default), is tied to an url.  If both
sites are on different machines, you may have to use url-rewritting for
session tracking instead of using the default cookies.

ND

-Original Message-
From: Chris Birch [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 29, 2005 11:57 AM
To: Tomcat Users List
Subject: Sharing session across http and https connections

Hi,

I'm sure this has been solved and documented already but I can't find
any information, if anyone can help me or point me in the right
direction, I'd be very grateful.

I have an Apache->mod_jk->Tomcat installation.  I'm running two sites
on Apache for the same domain but one is HTTP and the other is HTTPS.
I'd like to be able to share a java user session across both the HTTP
and HTTPS requests from a single user but a separate session is created
for the secure and unsecure connection.

Does anyone know how to have a single session for a user regardless of
whether they are connecting to the application via the secure or
unsecure route?

Many Thanks,
Chris.


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


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




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



RE: web.xml question

2005-11-29 Thread Dean Searle
Tim,

I'm not an expert with tomcat but how does a site like samsclub.com do
it then? I use their site a lot and it runs jsp's and most of the stuff
is unsecure (http) but when I get ready to do the actual purchase and
log in it is a secure site (https). Is there something that they are
doing, possibly masquerading the url or something?

Again not an expert, but something I have been interested in for some
time myself.

Dean 8-)

-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 29, 2005 10:34 AM
To: Tomcat Users List
Subject: Re: web.xml question

Security constraints are only imposed on the incoming URL.

Long story short - you'll need to place the entire webapp in SSL. There
is no clean way to use declarative statements to force the login to be
SSL and the rest of the webapp be nonssl.

-Tim

Klotz Jr, Dennis wrote:

> Hello all. I hope your day is going well.
> 
> I need your help.
> 
> I cannot get a forms based login page to use SSL when I think I've 
> setup the web.xml correctly.
> 
> Why doesn't my login.jsp use HTTPS when tomcat is invoking it for 
> authorization? (more details at the bottom)
> 
> Here are the relevant sections of my web.xml:
> 
> -
> 
> 
>
> 
>   Login page
>   /login.jsp
>   GET
>   POST
> 
> 
> 
> 
> 
>   CONFIDENTIAL
>   
> 
>   
> 
>   
> 
>   
> 
>   
>   
>
>FORM
>Application
>
>/login.jsp
>/error_401.html
>
>
> 
> 
> 
>   
> 
>   VoIP Monitor Applications
>   /CallQDiagnostics.jsp
>   /report_index.jsp
>   /CallQAnalysis.jsp
>   /index.jsp
>   GET
>   POST
> 
> 
> 
>   monitor_tier1
>   monitor_guest
>   monitor_admin
>   monitor_tier3
> 
> 
> 
> 
> 
>   NONE
>   
> 
> 
>   
> 
> --
> 
> So here is what happens. I type the full URL to the CallQAnalsysis.jsp

> (for example) and the login.jsp is invoked BUT it has NOT been 
> redirected to the HTTPS connector (which is enabled and working).
> 
> Now if I type the address of the login.jsp directly, then the 
> connection is redirected over HTTPS.
> 
> Why doesn't the login.jsp use HTTPS when tomcat is invoking it for 
> authorization?
> 
> Any help figuring out what I am doing wrong is greatly appreciated.
> 
> 

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


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



RE: Certificate Revocation Lists in Tomcat 5.5

2005-11-29 Thread Dobson Paul L Contr 84 MSUG/GBMLBR
I am trying to do the same thing.  I haven't implemented anything yet but
found this: http://a-select.surfnet.nl

It looks like it handles CRLs and interfaces nicely with Tomcat.

Paul Dobson 


-Original Message-
From: Kennedy Roberts [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 29, 2005 8:55 AM
To: users@tomcat.apache.org
Subject: Certificate Revocation Lists in Tomcat 5.5

Hi all,

We've recently migrated our (SSL enabled) web application from SunOne to

Tomcat 5.5, and I can't find any information on handling Certificate 
Revocation Lists in Tomcat.  In SunOne, there was a function in the 
administration console that let you import a CRL.  Is there any equivalent 
in Tomcat, or perhaps some other command line equivalent?

Thanks for your help.

-Kennedy 


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

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



RE: Sharing session across http and https connections

2005-11-29 Thread Duan, Nick
You can't do this if both sites are on different machines since tomcat
user ID (defined as a cookie by default), is tied to an url.  If both
sites are on different machines, you may have to use url-rewritting for
session tracking instead of using the default cookies.

ND

-Original Message-
From: Chris Birch [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 29, 2005 11:57 AM
To: Tomcat Users List
Subject: Sharing session across http and https connections

Hi,

I'm sure this has been solved and documented already but I can't find 
any information, if anyone can help me or point me in the right 
direction, I'd be very grateful.

I have an Apache->mod_jk->Tomcat installation.  I'm running two sites 
on Apache for the same domain but one is HTTP and the other is HTTPS.  
I'd like to be able to share a java user session across both the HTTP 
and HTTPS requests from a single user but a separate session is created 
for the secure and unsecure connection.

Does anyone know how to have a single session for a user regardless of 
whether they are connecting to the application via the secure or 
unsecure route?

Many Thanks,
Chris.


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


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



RE: JSP on apache

2005-11-29 Thread Dobson Paul L Contr 84 MSUG/GBMLBR
Apache Server will not run JSP applications.  What you probably want to do
is run Tomcat either as a stand alone server in place of Apache Server or
set up Apache Server to send JSP requests through Tomcat.  Either way,
Tomcat will need to process the JSP requests.

-Original Message-
From: mukesh [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 29, 2005 7:56 AM
To: users@tomcat.apache.org
Subject: JSP on apache

Hi friends,

 

How can I run JSPs on apache server? My apache server is running
on Linux. In fact I have developed some web services in Java (and JSP) and
want to deploy on the same server. Is it possible to deploy them directly or
is there some other way around?

 

Please advice.

 

Regards

Mukesh

 

 

 


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



Tomcat 4.1.31 error - method ()V not found

2005-11-29 Thread Richard Mixon
Hello,

I am moving a couple of small Java websites for a customer from one hosting
provider to another. Both are RedHat Linux machines with Tomcat 4.1.31 and
Java 1.4.2. On the new server I get the following error the first time I hit
a JSP page on the site.

...
- Root Cause -
java.lang.NoSuchMethodError: org.apache.commons.pool.impl.GenericObjectPool:
method ()V not found
at
org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.jav
a:765)
at
org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:5
18)
at acme.com.Connector.CreateConnection(Connector.java:66)
at acme.com.RefererData.insert(RefererData.java:223)
at org.apache.jsp.index_jsp._jspService(index_jsp.java:118)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:92)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:809) 
...

I have compared the class path and done diff's between the old tomcat and
the new. Other than the webapp directories are in a different location on
the new machine and I'm using a different port (9xxx versus 8xxx) all is the
same.

I have googled a bit in the list archives and in general and find the error
only mentioned once explicitly saying I've got a mismatched Commons jar
file. 

I have searched the machine for any stray instances of the DBCP jars, but
find nothing.

I've actually just copied over the Tomcat directory from the old server to
the new - but the error still occurs.

In case it really is DBCP related, I have attached a snipped from the
server.xml that defines on of the three hosts we are using.

Also, both old and new machines have Plesk hosting management software on
them and another installation of Tomcat 4.1 - but we are bypassing the use
of Plesk for these sites and are not running the Plesk version of Tomcat.

Any ideas? Help is much appreciated. 
 
Thanks - Richard

  ...
  
  
acme.com
www.acme.com






url
 
jdbc:mysql://localhost/acme?autoReconnect=true


driverClassName
org.gjt.mm.mysql.Driver


username
acme


password
secret



  
  ...


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



Re: Sharing session across http and https connections

2005-11-29 Thread Tim Funk
While in https - you'd need to reset the cookie (JSESSIONID) and not have the 
secure flag set.


-Tim

Chris Birch wrote:


Hi,

I'm sure this has been solved and documented already but I can't find 
any information, if anyone can help me or point me in the right 
direction, I'd be very grateful.


I have an Apache->mod_jk->Tomcat installation.  I'm running two sites on 
Apache for the same domain but one is HTTP and the other is HTTPS.  I'd 
like to be able to share a java user session across both the HTTP and 
HTTPS requests from a single user but a separate session is created for 
the secure and unsecure connection.


Does anyone know how to have a single session for a user regardless of 
whether they are connecting to the application via the secure or 
unsecure route?
 


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



RE: How to test connection pooling

2005-11-29 Thread andy gordon
Show Processlist will show the number of initial connections at start but does 
it show what subsystem a connection is bound to? what if there are multiple 
tomcat's connected to one database. How do you differentiate? 

"Lucuk, Pete" <[EMAIL PROTECTED]> wrote:  Manisha,

I do not know how you check in MSSQL.
But, just an FYI

If you setup your connection to ten, ten do not automatically get
created, only one, and as your app requires more connections, more
connections will be created up to a max of ten.

Took me a couple days to figure out that one 

>-Original Message-
>From: Manisha Sathe [mailto:[EMAIL PROTECTED] 
>Sent: Tuesday, November 29, 2005 10:45 AM
>To: users@tomcat.apache.org
>Subject: How to test connection pooling
>
>I am on tomcat 4.1
>
>I am using JDBC connection pooling for MSSQL and singleton 
>class for JNDI lookup (only once) and get connection.
>
>Everything is working file. But how to test that connection 
>pool for 10 (where initial size specified is 10) has been created ?
>
>I know for mysql it is 'show processlist' and this gives out 
>initial number of connections at start. Same thing how can i 
>do it for mssql ?
>
>regards
>Manisha
>
>
>
>
>
> 
>__
>Start your day with Yahoo! - Make it your home page! 
>http://www.yahoo.com/r/hs
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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





-
 Yahoo! Music Unlimited - Access over 1 million songs. Try it free.

Sharing session across http and https connections

2005-11-29 Thread Chris Birch

Hi,

I'm sure this has been solved and documented already but I can't find 
any information, if anyone can help me or point me in the right 
direction, I'd be very grateful.


I have an Apache->mod_jk->Tomcat installation.  I'm running two sites 
on Apache for the same domain but one is HTTP and the other is HTTPS.  
I'd like to be able to share a java user session across both the HTTP 
and HTTPS requests from a single user but a separate session is created 
for the secure and unsecure connection.


Does anyone know how to have a single session for a user regardless of 
whether they are connecting to the application via the secure or 
unsecure route?


Many Thanks,
Chris.


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



Re: Client Authentication

2005-11-29 Thread Markus Plail
Dobson Paul L Contr 84 MSUG/GBMLBR <[EMAIL PROTECTED]> writes:
> I am having a tough time finding information on implementing client
> authentication.  When trying to access my site, I need the user to be
> presented with a dialog box asking for a digital certificate.  The
> certificate needs to be validated then bounced against a list of
> revoked certificates, If it is valid and not revoked, the user should
> be allowed in the site.  I have SSL implemented and have modified my
> server.xml, setting clientAuth="true".  If I set it to true, I am
> quickly presented with the explorer page that says:
>
> The page cannot be displayed
>
> The page you are looking for is currently unavailable. The Web site
> might be experiencing technical difficulties, or you may need to
> adjust your browser settings.
>
> If I set clientAuth="want", I am let into the site without being
> prompted for a certificate.
>
> I think it is automatically behaving as if a client certificate is not
> available without prompting for one ( we are set up with ActiveCard
> smart cards and readers at all work stations)
>
> I am using Tomcat 5.0 with j2sdk1.4.2_04 on windows 2000 server with
> SP4

Client Authentication works as follows: You connect to the server, the
server gives you a list with valid certificates. IE looks if it has a
certificate in the list. The next step depends upon your IE settings. If
there is only one matching certificate and you set IE up to automtically
choose one the connection is established. If there are more you get a
window, where you can select the proper certificate. If there are none
you either get a "page cannot be displayed" message (automatic mode) or
you get a window with not certificate to choose.

So if you are using a smartcard you have to somehow tell IE that it
should take a certificate from a smartcard and not its internal
certificate store. I have no idea how this is all working with
smartcards though.

regards
Markus


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



httpd-tomcat, a difficult cohabitation on port 8O

2005-11-29 Thread Patrice Durosay


Hello all,

without java nor tomcat experience, I'm now in charge of our web sites.

The first (tomcatweb) has been developped earlier by some one under 
tomcat, and works properly with the tomcat server on port 80 (instead of 
8080, question of authorisations).


The second (phpweb) has been developped recently by someone else in php 
and work well inside our lan with apache on port 8070 via an IP/port 
virtual host.


To be able to see it outside our lan, we defined several domain name 
aliases to the server's IP address and want httpd to be our server on 
port 80 to :

  serve virtual hosts by name (php-mysql)
  allow the connexion to our tomcatweb, and expresso for administrative 
purpose.


Actually, The tomcatweb is not available through httpd. Hope it will be 
possible.  
  
Apache is 2.0.46 from rpm & rpm-dev

tomcat is 5.0.27
I've just installed jk 1.2.15  from sources to replace the not working jk2.

Added in httpd.conf :
LoadModule jk_module  modules/mod_jk.so

 JkWorkersfile conf/workers2.properties
 JkLogFile logs/mod_jk.log
 #JkLogLevel info
 JkLogLevel trace
 JkLogStampFormat "[%a %b %d %H:%M:%S %Y]"
 JkOptions +ForwardKeySize +ForwardURICompat +ForwardDirectories
 JkRequestLogFormat "%w %V %T"
 JkMount /expresso/* myTomcatWebwrkr
 JkMount /myTomcatWeb/* myTomcatWebwrkr

...
NameVirtualHost *:80

ServerName MyPhpWeb.MyDomain
DocumentRoot /PathTo/MyPhpWeb
ErrorLog logs/MyPhpWeb.log
TransferLog logs/MyPhpWeb_transfer.log
ServerAdmin [EMAIL PROTECTED]



I Tried to define a virtual host for the tomcatweb without success :
It drives to the page source of frame.jsp and do not execute it.
The .../ROOT/ contains both directories for applications expresso & 
MyTomcatWeb.


  ServerName MyTomcatWeb.MyDomain
  DocumentRoot /usr/local/java/tomcat/webapps/ROOT/
  ErrorLog logs/MyTomcatWeb.log
  TransferLog logs/MyTomcatWeb_transfer.log
  ServerAdmin [EMAIL PROTECTED]
  DirectoryIndex frame.jsp index.jsp index.html



When refresh the page httpd://MyTomcatWeb.MyDomain the mod_jk.log says :
[mar nov 29 16:53:25 2005][25790:26784] [trace] 
map_uri_to_worker::jk_uri_worker_map.c (422): enter
[mar nov 29 16:53:25 2005][25790:26784] [debug] 
map_uri_to_worker::jk_uri_worker_map.c (449): Attempting to map URI '/' 
from 2 maps
[mar nov 29 16:53:25 2005][25790:26784] [debug] 
map_uri_to_worker::jk_uri_worker_map.c (461): Attempting to map context 
URI '/biopuceweb/*'
[mar nov 29 16:53:25 2005][25790:26784] [debug] 
map_uri_to_worker::jk_uri_worker_map.c (461): Attempting to map context 
URI '/expresso/*'
[mar nov 29 16:53:25 2005][25790:26784] [trace] 
map_uri_to_worker::jk_uri_worker_map.c (496): exit

...
... Attempting to map URI '/error/HTTP_NOT_FOUND.html.var' from 2 maps
... Attempting to map URI '/error/contact.html.var' from 2 maps
...
and others for the 2 context uri


The workers2.properties contains only :
workers.tomcat_home=/usr/java/tomcat
workers.java_home=/usr/java
ps=/
worker.list=myTomcatWebwrkr
worker.myTomcatWebwrkr.type=ajp13
worker.myTomcatWebwrkr.host=MyTomcatWeb.MyDomain
worker.myTomcatWebwrkr.port=8009
worker.myTomcatWebwrkr.lbfactor=50
worker.myTomcatWebwrkr.cachesize=10
worker.myTomcatWebwrkr.cache_timeout=600
worker.myTomcatWebwrkr.socket_keepalive=1
worker.myTomcatWebwrkr.socket_timeout=300
# Uri mapping
[uri:/jkstatus/*]
group=status:status
# Uri mapping
[uri:/jsp-examples/*]
# Uri mapping
[uri:/expresso/*]
# Uri mapping
[uri:/MyTomcatWeb/*]


On the Tomcat side, in server.xml, server port is 8005,
Connector port 80 (instead of 8080) is commented out,
and also the 8443 redirection port.
The connector port is :

   


When I start the catalina server (after httpd), the catalina.out shows
things I don't understand :
...
2005-11-29 17:17:52,737 WARN  [main] misc.ConfigManager 
(ConfigManager.java:819) - Job handler for configuration 'postgresDB' 
not enabled (because of the setting in expresso-config.xml).
2005-11-29 17:17:52,741 WARN  [main] misc.ConfigManager 
(ConfigManager.java:819) - Job handler for configuration 
'MyTomcatWebdata' not enabled (because of the setting in 
expresso-config.xml).

...
29 nov. 2005 17:17:55 org.apache.catalina.core.StandardHostDeployer install
INFO: Installation d'une application pour le chemin de contexte 
/jsp-examples depuis l'URL 
file:/usr/local/java/tomcat5027/webapps/jsp-examples

...
29 nov. 2005 17:17:56 org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=2/76  
config=/usr/local/java/tomcat/conf/jk2.properties

29 nov. 2005 17:17:56 org.apache.catalina.startup.Catalina start


As I didn't find the conf that calls the jk2.properties, i commented all 
the lines because jk2 is not in use. I dont know if jk needs a 
properties file there.
When I refresh the expresso page, I can get the menus, but the links 
toward the tables give an error 404, which should be consistent with the 
"'postgresDB' not enabled"

When I refresh the MyTomcatWebdata page, I get the sources and no action.

When I neutralises the httpd Listen

RE: Certificate Revocation Lists in Tomcat 5.5

2005-11-29 Thread Duan, Nick
Tomcat currently doesn't support cert validation against CRL.  You may
want to use Apache's mod_ssl to do the CRL checking.  You will have to
use mod_jk to connect Apache web server with tomcat.

SSL is very computational intensive.  Use Apache's httpd to do the SSL
work is more efficient than to use Java-based tomcat.

ND

-Original Message-
From: Kennedy Roberts [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 29, 2005 10:55 AM
To: users@tomcat.apache.org
Subject: Certificate Revocation Lists in Tomcat 5.5

Hi all,

We've recently migrated our (SSL enabled) web application from
SunOne to 
Tomcat 5.5, and I can't find any information on handling Certificate 
Revocation Lists in Tomcat.  In SunOne, there was a function in the 
administration console that let you import a CRL.  Is there any
equivalent 
in Tomcat, or perhaps some other command line equivalent?

Thanks for your help.

-Kennedy 


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


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



Client Authentication

2005-11-29 Thread Dobson Paul L Contr 84 MSUG/GBMLBR
I am having a tough time finding information on implementing client
authentication.  When trying to access my site, I need the user to be
presented with a dialog box asking for a digital certificate.  The
certificate needs to be validated then bounced against a list of revoked
certificates, If it is valid and not revoked, the user should be allowed in
the site.  I have SSL implemented and have modified my server.xml, setting
clientAuth="true".  If I set it to true, I am quickly presented with the
explorer page that says:

 



The page cannot be displayed

 

The page you are looking for is currently unavailable. The Web site might be
experiencing technical difficulties, or you may need to adjust your browser
settings.

If I set clientAuth="want", I am let into the site without being prompted
for a certificate.

 

I think it is automatically behaving as if a client certificate is not
available without prompting for one  ( we are set up with ActiveCard smart
cards and readers at all work stations)

 

I am using Tomcat 5.0 with j2sdk1.4.2_04 on windows 2000 server with SP4

 

Here is my server.xml:



--





  

  

  







  

factory

org.apache.catalina.users.MemoryUserDatabaseFactory

  

  

pathname

conf/tomcat-users.xml

  



  

  















  



  

  

  



  





---

Any ideas  on how I can get this set up correctly?

 

Thanks in advance for any help.

--Paul



Re: HttpServlet not found?

2005-11-29 Thread Sebastian Funk

HI,

On Nov 29, 2005, at 5:07 PM, Caldarale, Charles R wrote:


From: Sebastian [mailto:[EMAIL PROTECTED]
Subject: HttpServlet not found?

I compiled it with
"javac -cp /home/tomcat/j2ee/lib/j2ee.jar:/home/tomcat/mysql
MyServlet.java".


Using j2ee.jar with Tomcat usually results in much grief, since it
contains many classes that conflict with those supplied by Tomcat.
Suggest removing it from your system, or at least taking it out of  
your

classpath.  Use Tomcat's common/lib/servlet-api.jar instead.


that works fine, but just one time. Again, when I recompile my  
servlet, without any changes, I get that error. I set all  
$CLASSPATH's new and move j2ee.jar to another place, where it  
shouldn't be find.

but I get the same error "NoClassDefFoundError".

Thanks & Greetings,
Sebastian Funk

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



Re: Singleton memory leak after redeploying.

2005-11-29 Thread Lionel Farbos
I said this to simplify
I agree that, in a large webapp, you need several loggers; each logger for a 
coherent system.
But you have to control your loggers...

In the initial question, it was like he had one logger for one class...

So, the right answer should be :
in log4j, there is no need for an additionnal method
because, if you control your logger(s), you can freed it(them) when the 
servlet.destroy() is invoked.

I hope it's better like this ... ;-)
Regards.

On Tue, 29 Nov 2005 15:54:52 -
"Allistair Crossley" <[EMAIL PROTECTED]> wrote:

> I disagree, only the most trivial webapp needs one logger. A web
> application consisting of a large number of subsystems, potentially
> managed/analysed by different teams should be logged to different
> locations. Effective debugging will come down to a well organised
> logging structure.
> 
> -Original Message-
> From: Lionel Farbos [mailto:[EMAIL PROTECTED] 
> Sent: 29 November 2005 15:50
> To: Tomcat Users List
> Cc: [EMAIL PROTECTED]
> Subject: Re: Singleton memory leak after redeploying.
> 
> On Tue, 29 Nov 2005 09:31:28 +0100
> Mikolaj Rydzewski <[EMAIL PROTECTED]> wrote:
> 
> > Lionel Farbos wrote:
> > 
> > >Notes :
> > >- Perhaps your Listener will have to delete other objets like SQL
> drivers, commons logger, ...
> > >- see also : 
> > >http://opensource2.atlassian.com/confluence/spring/pages/viewpage.act
> > >ion?pageId=2669
> > >  
> > >
> > Does log4j have some nice method to free all Logger objects? It seems 
> > like a nightmare to free Loggers from all of my classes by hand...
> 
> I think it's not a good idea to have a lot of logger objects in a webapp
> :
> In a webapp, you need only one logger.
> 
> Then, on the last servlet destroy, you can freed your logger with
> logger=null; I think no other method is needed.
> 
> Regards.
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> 
>  
> ---
> QAS Ltd.
> Registered in England: No 2582055
> Registered in Australia: No 082 851 474
> ---
>   
> Disclaimer:  The information contained within this e-mail is confidential and 
> may be privileged. This email is intended solely for the named recipient 
> only; if you are not authorised you must not disclose, copy, distribute, or 
> retain this message or any part of it. If you have received this message in 
> error please contact the sender at once so that we may take the appropriate 
> action and avoid troubling you further.  Any views expressed in this message 
> are those of the individual sender.  QAS Limited has the right lawfully to 
> record, monitor and inspect messages between its employees and any third 
> party.  Your messages shall be subject to such lawful supervision as QAS 
> Limited deems to be necessary in order to protect its information, its 
> interests and its reputation.  
> 
> Whilst all efforts are made to safeguard Inbound and Outbound emails, QAS 
> Limited cannot guarantee that attachments are virus free or compatible with 
> your systems and does not accept any liability in respect of viruses or 
> computer problems experienced.
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

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



how to find number of requests currently being processed?

2005-11-29 Thread Brian O'Rourke
Hello,

I'm trying to find out the number of requests currently being processed by
my Tomcat server using JMX. I am using Tomcat 5.5.12, where it is no longer
possible to find this out by counting the RequestProcessor beans returned by
a JMX query - I'm told this is because of a new feature (
http://issues.apache.org/bugzilla/show_bug.cgi?id=37692 ). Is there still
away to find information about current requests via JMX?

Thanks,
Brian P O'Rourke


Re: File Download not working for anchor tags

2005-11-29 Thread Mike


  I tried that setContentType and fileInputStream solution, but ran into 
two problems.  First, when I download an Excel file and load the downloaded 
file in Excel, it doesn't load in properly.  I'm guessing there's some data 
transfer problem.  Second, the first time I try to download, IE blocks the 
download.  If I download it a second time, it seems to work.


  A solution with the anchor tag would work the best if possible because 
the data is good, and the download is fast.


  Mike

At 08:07 AM 11/29/2005, you wrote:

Are you doing this?
http://tomcat.apache.org/faq/misc.html#saveas

-Tim

Mike wrote:


Hello,
I've encountered a bug with the 4.1.31 version of Tomcat. Apparently, when
I use an anchor tag for a file, and I click on the link, it does not show the
file download message "Do you want to open or save this file?" with the open
and save options. Instead, it displays the file in the browser. I know you
could normally save this information from the browser to a file, but I 
need it

to show the download message because it's easier for users to save their
file. I'm using Internet Explorer version 6, SP2. I've also tried setting
the "Confirm open after download" check box for file types to no avail. It
use to work in Tomcat 4.1.18.


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






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



RE: HttpServlet not found?

2005-11-29 Thread Caldarale, Charles R
> From: Sebastian [mailto:[EMAIL PROTECTED] 
> Subject: HttpServlet not found?
> 
> I compiled it with
>   "javac -cp /home/tomcat/j2ee/lib/j2ee.jar:/home/tomcat/mysql  
> MyServlet.java".

Using j2ee.jar with Tomcat usually results in much grief, since it
contains many classes that conflict with those supplied by Tomcat.
Suggest removing it from your system, or at least taking it out of your
classpath.  Use Tomcat's common/lib/servlet-api.jar instead.

 - 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 unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: heap size problems (speed) [2]

2005-11-29 Thread Peter Crowther
> From: Cristian S [mailto:[EMAIL PROTECTED] 
> Frankly I have no ideea what's the point of loading almost 
> 400M of data in memory in a HashMap.
> Maybe this very approach has a design flaw when it comes to JAVA.

If it's expensive to generate / load that data and the app has tight
response time restrictions, and if there's enough RAM to keep the data
in main memory without paging, and if the heap is large enough to allow
other processing to take place, and if the map is set up so that there
are few collisions, then the map is a very sensible approach.

That's a lot of ifs.

I'd try the following:

- Check for paging traffic on your server.  Are other apps causing
Tomcat to be paged out, leading to expensive disk I/O when the map is
accessed?

- Follow Chuck's suggestion to check for garbage collection activity.
If possible, try increasing the Java heap size (and check for paging
activity on the server).

- Talk to your dev team to find out how well or badly the map is keyed.
A HashMap with a lot of entries can be slow if the hash for the key is
poor.  I'd expect to see high CPU usage *or* high paging activity if
this was the case, as the server will either spend a lot of its time
hashing or have to load a lot of pages from backing store to examine
them for hash keys.  Neither is pleasant.

Java HashMaps aren't inherently slow; something's poorly configured.
Those are a few guesses, no more than that.  I also suspect it's *not*
your CPU cache size.  Yes, going to RAM is slower than loading from a
processor cache line, but it's still a *lot* faster than retrieving a
row from the database.  I'd be looking elsewhere.  Intel have spent a
lot of money making people think that the CPU is the only contributor to
overall system speed; RAM and disk I/O speeds play a much larger part
these days.

- Peter

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



Certificate Revocation Lists in Tomcat 5.5

2005-11-29 Thread Kennedy Roberts

Hi all,

   We've recently migrated our (SSL enabled) web application from SunOne to 
Tomcat 5.5, and I can't find any information on handling Certificate 
Revocation Lists in Tomcat.  In SunOne, there was a function in the 
administration console that let you import a CRL.  Is there any equivalent 
in Tomcat, or perhaps some other command line equivalent?


Thanks for your help.

-Kennedy 



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



RE: Singleton memory leak after redeploying.

2005-11-29 Thread Allistair Crossley
I disagree, only the most trivial webapp needs one logger. A web
application consisting of a large number of subsystems, potentially
managed/analysed by different teams should be logged to different
locations. Effective debugging will come down to a well organised
logging structure.

-Original Message-
From: Lionel Farbos [mailto:[EMAIL PROTECTED] 
Sent: 29 November 2005 15:50
To: Tomcat Users List
Cc: [EMAIL PROTECTED]
Subject: Re: Singleton memory leak after redeploying.

On Tue, 29 Nov 2005 09:31:28 +0100
Mikolaj Rydzewski <[EMAIL PROTECTED]> wrote:

> Lionel Farbos wrote:
> 
> >Notes :
> >- Perhaps your Listener will have to delete other objets like SQL
drivers, commons logger, ...
> >- see also : 
> >http://opensource2.atlassian.com/confluence/spring/pages/viewpage.act
> >ion?pageId=2669
> >  
> >
> Does log4j have some nice method to free all Logger objects? It seems 
> like a nightmare to free Loggers from all of my classes by hand...

I think it's not a good idea to have a lot of logger objects in a webapp
:
In a webapp, you need only one logger.

Then, on the last servlet destroy, you can freed your logger with
logger=null; I think no other method is needed.

Regards.

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




 
---
QAS Ltd.
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
  
Disclaimer:  The information contained within this e-mail is confidential and 
may be privileged. This email is intended solely for the named recipient only; 
if you are not authorised you must not disclose, copy, distribute, or retain 
this message or any part of it. If you have received this message in error 
please contact the sender at once so that we may take the appropriate action 
and avoid troubling you further.  Any views expressed in this message are those 
of the individual sender.  QAS Limited has the right lawfully to record, 
monitor and inspect messages between its employees and any third party.  Your 
messages shall be subject to such lawful supervision as QAS Limited deems to be 
necessary in order to protect its information, its interests and its 
reputation.  

Whilst all efforts are made to safeguard Inbound and Outbound emails, QAS 
Limited cannot guarantee that attachments are virus free or compatible with 
your systems and does not accept any liability in respect of viruses or 
computer problems experienced.



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



  1   2   >