Re: How to make to Apache-Tomcat 6.0.13 to support all of SSLv2/SSLv3 and TLS protocols

2008-09-01 Thread bhooshanpandit
Then it's most likely an issue with harmony JRE (I think it doesn't 
provide an SSLContext implementation that you are looking for i.e. SSL).


Have you tried Sun JRE??


-Original Message-
From: Suresh Kumar J [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Mon, 1 Sep 2008 11:26 am
Subject: Re: How to make to Apache-Tomcat 6.0.13 to support all of 
SSLv2/SSLv3 and TLS protocols










Am having the Apache Harmony JRE.


[EMAIL PROTECTED] wrote:


What JRE / JDK are you using with Tomcat 6.0.13?







-Original Message-



From: Suresh Kumar J [EMAIL PROTECTED]



To: Tomcat Users List users@tomcat.apache.org



Sent: Sat, 30 Aug 2008 10:16 pm



Subject: Re: How to make to Apache-Tomcat 6.0.13 to support all of
SSLv2/SSLv3 and TLS protocols










































I tried changing the sslProtocol attribute in conf/server.xml to 

SSL


and but Tomcat couldn't start.







Observed the following error in catalina.out:







--







Aug 29, 2008 3:10:18 PM org.apache.coyote.http11.Http11Protocol init







SEVERE: Error initializing endpoint






Throwable occurred: java.io.IOException: SSLContext SSL 

implementation






not found







  at









org.apache.tomcat.util.net.jsse.JSSESocketFactory.init(JSSESocketFactory.



java:394)







  at









org.apache.tomcat.util.net.jsse.JSSESocketFactory.createSocket(JSSESocket



Factory.java:125)







  at







org.apache.tomcat.util.net.JIoEndpoint.init(JIoEndpoint.java:496)







  at







org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:177)







  at









org.apache.catalina.connector.Connector.initialize(Connector.java:1059)






  at









org.apache.catalina.core.StandardService.initialize(StandardService.java:



677)







  at









org.apache.catalina.core.StandardServer.initialize(StandardServer.java:79



2)







  at org.apache.catalina.startup.Catalina.load(Catalina.java:518)







  at org.apache.catalina.startup.Catalina.load(Catalina.java:538)






   at 

java.lang.reflect.VMReflection.invokeMethod(VMReflection.java)






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






   at 

org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:260)





   at 

org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:412)






--











Another question is that how do I make Tomcat to recognize both



SSLv2/SSLv3/TLS1.0 messages for secured communication. Since some



browsers like Firefox3.0.1 use SSLv2 for initial SSL handshake phase.


Tomcat doesn't seems to recognize SSLv2 messages and errors out with 

the


following message:







--







Aug 29, 2008 2:52:52 PM
org.apache.tomcat.util.net.JIoEndpoint$Acceptor run







SEVERE: Socket accept failed







Throwable occurred: java.net.SocketException: SSL handshake error







javax.net.ssl.SSLException: INTERNAL ERROR







  at









org.apache.tomcat.util.net.jsse.JSSESocketFactory.acceptSocket(JSSESocket



Factory.java:150)







  at









org.apache.tomcat.util.net.JIoEndpoint$Acceptor.run(JIoEndpoint.java:310)











  at java.lang.Thread.run(Thread.java:657)







--











Any inputs would be appreciated.











Thanks,







Suresh











[EMAIL PROTECTED] wrote:







I tried changing the sslProtocol attribute in the Connector



element







in conf/server.xml file and when the Tomcat couldn't start.

Observed



the







following error in catalina.out:















what value did you specify for sslProtocol. I tried using SSL and it



worked.















-Original Message-







From: Suresh Kumar J [EMAIL PROTECTED]







To: users@tomcat.apache.org







Sent: Sat, 30 Aug 2008 4:25 am







Subject: How to make to Apache-Tomcat 6.0.13 to support all of



SSLv2/SSLv3 and TLS protocols















































































Hi!























Am running the Apache Tomcat (v6.0.13) on Redhat Linux. Below is the















snippet of the server.xml config:































Connector port=443 protocol=HTTP/1.1 SSLEnabled=true















 maxThreads=150 scheme=https secure=true















  clientAuth=false sslProtocol=TLS

keystoreType=PKCS12















 keystoreFile=conf/my-key-store keystorePass=abcd/






































The https connection(TLS based) works fine with IE6.0/7.x and 

FireFox













2.0.x. But am having issues with the FireFox 3.0.1 on Windows XP 

with














the default settings. When I try to connect(https on 443) to Apache















Tomcat 

Re: How to make to Apache-Tomcat 6.0.13 to support all of SSLv2/SSLv3 and TLS protocols

2008-09-01 Thread Suresh Kumar J

no, I wanted to use an opensource JRE in this case.

The issue I was trying to put forward is that Tomcat 6.0.13 errors out 
with the following error when the FireFox3.0.1 browser tries to send a 
'SSLv2 Record Layer - Client Hello' message.

--
Aug 29, 2008 2:52:52 PM org.apache.tomcat.util.net.JIoEndpoint$Acceptor run
SEVERE: Socket accept failed
Throwable occurred: java.net.SocketException: SSL handshake error
javax.net.ssl.SSLException: INTERNAL ERROR
  at
org.apache.tomcat.util.net.jsse.JSSESocketFactory.acceptSocket(JSSESocket Factory.java:150) 


  at
org.apache.tomcat.util.net.JIoEndpoint$Acceptor.run(JIoEndpoint.java:310)
  at java.lang.Thread.run(Thread.java:657)
--

But the same Tomcat 6.0.13 server is able to successfully handle the 
'SSLv2 Record Layer - Client Hello' message coming from the IE6.0 
browser. There doesn't seem to be any difference in message format of 
the 'SSLv2 Record Layer' sent by FF and IE browsers.


Any help in narrowing down the issues would be appreciated.

Thanks,
Suresh

[EMAIL PROTECTED] wrote:
Then it's most likely an issue with harmony JRE (I think it doesn't 
provide an SSLContext implementation that you are looking for i.e. SSL).


Have you tried Sun JRE??


-Original Message-
From: Suresh Kumar J [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Mon, 1 Sep 2008 11:26 am
Subject: Re: How to make to Apache-Tomcat 6.0.13 to support all of 
SSLv2/SSLv3 and TLS protocols










Am having the Apache Harmony JRE.


[EMAIL PROTECTED] wrote:


What JRE / JDK are you using with Tomcat 6.0.13?







-Original Message-



From: Suresh Kumar J [EMAIL PROTECTED]



To: Tomcat Users List users@tomcat.apache.org



Sent: Sat, 30 Aug 2008 10:16 pm



Subject: Re: How to make to Apache-Tomcat 6.0.13 to support all of
SSLv2/SSLv3 and TLS protocols










































I tried changing the sslProtocol attribute in conf/server.xml to 

SSL


and but Tomcat couldn't start.







Observed the following error in catalina.out:







--







Aug 29, 2008 3:10:18 PM org.apache.coyote.http11.Http11Protocol init







SEVERE: Error initializing endpoint






Throwable occurred: java.io.IOException: SSLContext SSL 

implementation






not found







  at









org.apache.tomcat.util.net.jsse.JSSESocketFactory.init(JSSESocketFactory.



java:394)







  at









org.apache.tomcat.util.net.jsse.JSSESocketFactory.createSocket(JSSESocket



Factory.java:125)







  at







org.apache.tomcat.util.net.JIoEndpoint.init(JIoEndpoint.java:496)







  at







org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:177)







  at









org.apache.catalina.connector.Connector.initialize(Connector.java:1059)






  at









org.apache.catalina.core.StandardService.initialize(StandardService.java:



677)







  at









org.apache.catalina.core.StandardServer.initialize(StandardServer.java:79



2)







  at org.apache.catalina.startup.Catalina.load(Catalina.java:518)







  at org.apache.catalina.startup.Catalina.load(Catalina.java:538)






   at 

java.lang.reflect.VMReflection.invokeMethod(VMReflection.java)






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






   at 

org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:260)





   at 

org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:412)






--











Another question is that how do I make Tomcat to recognize both



SSLv2/SSLv3/TLS1.0 messages for secured communication. Since some



browsers like Firefox3.0.1 use SSLv2 for initial SSL handshake phase.


Tomcat doesn't seems to recognize SSLv2 messages and errors out with 

the


following message:







--







Aug 29, 2008 2:52:52 PM
org.apache.tomcat.util.net.JIoEndpoint$Acceptor run







SEVERE: Socket accept failed







Throwable occurred: java.net.SocketException: SSL handshake error







javax.net.ssl.SSLException: INTERNAL ERROR







  at









org.apache.tomcat.util.net.jsse.JSSESocketFactory.acceptSocket(JSSESocket



Factory.java:150)







  at









org.apache.tomcat.util.net.JIoEndpoint$Acceptor.run(JIoEndpoint.java:310)











  at java.lang.Thread.run(Thread.java:657)







--











Any inputs would be appreciated.











Thanks,







Suresh











[EMAIL PROTECTED] wrote:







I tried changing the sslProtocol attribute in the Connector



element







in conf/server.xml file and when the Tomcat couldn't start.

Observed



the







following error in catalina.out:















what value did you specify for sslProtocol. I tried using SSL and it




Re: Tomcat connector receives 404, IIS logs 200

2008-09-01 Thread bhooshanpandit
Are you sure you don't have something like this in your Tomcat's 
web.xml:


error-page
 error-code404/error-code
 location/Failure.jsp/location
/error-page

What response do you get in browser when you try to access a resource 
that does not exist on TC, after by-passing IIS i.e. 
http://CATALINA_HOST:PORT/some_resource_that_does_not_exist?


-Original Message-
From: Karim Zaki [EMAIL PROTECTED]
To: users@tomcat.apache.org users@tomcat.apache.org
Sent: Sat, 30 Aug 2008 2:03 am
Subject: Tomcat connector receives 404, IIS logs 200










Hi all,

I'm running a Windows Server 2003 machine with IIS 6 and version 
1.2.26.0 of the
connector. The back-end server is running Tomcat 5.0.28. When making a 
request
to a URL that doesn't exist on the back-end, I see the following 
behavior:


1. The Tomcat access log shows a 404 response (expected)
2. The Tomcat connector log shows it received a 404 from Tomcat 
(expected)

3. The IIS log shows a 200 (unexpected)

Any ideas on how this might happen? I have logs from all three to 
provide when

needed. Just thought to check if anyone's seen this before.

Thanks,
Karim

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







You are invited to Get a Free AOL Email ID. - http://webmail.aol.in


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



EJB with Tomcat 6.0.16

2008-09-01 Thread Gaurav Pruthi
Dear Friends,

Is it possible to integrate EJB with tomcat v6 and higher? If yes then
kindly provide the How-To link. I googled but didn't find anything
information which is worthy.

Thanks,
Gaurav Pruthi


Re: EJB with Tomcat 6.0.16

2008-09-01 Thread András Csányi
2008/9/1 Gaurav Pruthi [EMAIL PROTECTED]:
 Dear Friends,

 Is it possible to integrate EJB with tomcat v6 and higher? If yes then
 kindly provide the How-To link. I googled but didn't find anything
 information which is worthy.

Hi!

A few week ago I read a hungarian java list, and there was a guy who
sad: if I want ejb I put openejb in tomcat.
So i think the keyword is openejb.

I hope this is help for you.

András

-- 
- -
-- Csanyi Andras -- http://sayusi.hu -- Sayusi Ando
-- Bízzál Istenben és tartsd szárazon a puskaport!.-- Cromwell


Re: EJB with Tomcat 6.0.16

2008-09-01 Thread Stas Ostapenko
Hi !

Take a look here http://docs.jboss.org/ejb3/embedded/embedded.html


On Mon, Sep 1, 2008 at 10:48 AM, Gaurav Pruthi [EMAIL PROTECTED] wrote:
 Dear Friends,

 Is it possible to integrate EJB with tomcat v6 and higher? If yes then
 kindly provide the How-To link. I googled but didn't find anything
 information which is worthy.

 Thanks,
 Gaurav Pruthi


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



RE: Default application or HTML redirect

2008-09-01 Thread Mostafa Mossaad
Hello Konstantin

1- Yes, my host is accessible by its IP address, when I enter the IP,
without the /MyAPp extension, it loads the web page I want normally, not
the Apache default page

2- I always delete temp files and clear my cookies whenever I'm trying

3- After uninstalling Tomcat, I deleted all its folders, especially the
ones that contain conf/server.xml and conf/web.xml

4- No, my ISA isn't on the same machine, and my ISA acts as a
firewall/gateway, and I in this case, I use it to publish my
application/web site

A small comment, my application used to be published via IIS, and not
Apache tomcat, and to get over this /MyApp extension, I simple created a
simple .html redirect file in the wwroot folder inside the inetpub
folder of the IIS. Can't the same be somehow achieved via Tomcat? Via
the Welcome files or something..


-Original Message-
From: Konstantin Kolinko [mailto:[EMAIL PROTECTED] 
Sent: Monday, September 01, 2008 2:23 AM
To: Tomcat Users List
Subject: Re: Default application or HTML redirect

1. Is your host accessible by its IP address?

Also, can you access your application locally, but using external
(not 127.0.0.1) IP address?

2. I hope, that it is not a caching issue (Ctrl+F5 from browser
retrieves non-cached instance of the page, and, I think, should also
refresh intermediate caches, if there are any).

3. I do not remember, whether reinstalling Tomcat will reset its
configuration (at least, when uninstalling it allows you to keep it).

You may download the *.zip distribution of Tomcat and
compare/replace your conf/server.xml and conf/web.xml files
with the ones from there.

4. Is your Microsoft Internet Security and Acceleration (ISA) 2006
server on the same PC?
You mentioned it, but where it comes into play here? I do not
have experience with that product.

Best regards,
Konstantin Kolinko

2008/8/30 Mostafa Mossaad [EMAIL PROTECTED]:
 Can you please tell me how?

 -Original Message-
 From: Mark Thomas [mailto:[EMAIL PROTECTED]
 Sent: Saturday, August 30, 2008 8:45 PM
 To: Tomcat Users List
 Subject: Re: Default application or HTML redirect

 Christopher Schultz wrote:
 Mark,

 Mark Thomas wrote:
 Mostafa Mossaad wrote:
  however, all my trails only seemed to make the application
 accessible via http://localhost only, not from the Internet.
 Then you have a proxy / dns / routing issue, not a Tomcat one.

 It's possible that his default Host has not been set, and that the
 name of the only Host is localhost. That'd do it.

 Mostafa, could you post your entire server.xml? Any changes you made
 to
 CATALINA_BASE/conf/web.xml should be changed back.

 Yep, that would do it although the OP claimed a new Tomcat install so
 the default host should be set.

 Mark


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




__ Information from ESET NOD32 Antivirus, version of virus
signature database 3402 (20080831) __

The message was checked by ESET NOD32 Antivirus.

  Email message - is OK

http://www.eset.com

 

__ Information from ESET NOD32 Antivirus, version of virus
signature database 3402 (20080831) __

The message was checked by ESET NOD32 Antivirus.

  Email message - is OK
  Email message - is OK

http://www.eset.com
 



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



Re: Tomcat connector receives 404, IIS logs 200

2008-09-01 Thread Rainer Jung

[EMAIL PROTECTED] wrote:

Are you sure you don't have something like this in your Tomcat's web.xml:

error-page
 error-code404/error-code
 location/Failure.jsp/location
/error-page

What response do you get in browser when you try to access a resource 
that does not exist on TC, after by-passing IIS i.e. 
http://CATALINA_HOST:PORT/some_resource_that_does_not_exist?


And what result do you get in your Browser, when using IIS/isapi 
redirector/Tomcat? Do you get back a 404 or a 200?


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



Re: APR SSL not working

2008-09-01 Thread Gregor Schneider
Hi Markus,

On Fri, Aug 29, 2008 at 5:52 PM, Markus Schönhaber
[EMAIL PROTECTED] wrote:
 Gregor Schneider schrieb:

 Search the list archives. There has more than once been discussion about
 this topic. For example
 http://marc.info/?l=tomcat-userm=118190563608389w=2
 Maybe this helps.


actually it did, thanks a lot for the hint.

The solution was:

- create an .rnd-file within the user-space:

openssl rand -out $HOME/.rnd 2048

- compile the APR with /dev/urandom:

./configure --with-apr=/usr/bin/apr-1-config \\
--with-devrandom=/dev/urandom \\
--prefix=/home/tomcat/www/lib

make  make install

Now it seems to work like charm.

Again, thanks for shedding some light..

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

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



Re: APR SSL not working

2008-09-01 Thread Markus Schönhaber

Gregor Schneider wrote:


The solution was:

- create an .rnd-file within the user-space:

openssl rand -out $HOME/.rnd 2048

- compile the APR with /dev/urandom:

./configure --with-apr=/usr/bin/apr-1-config \\
--with-devrandom=/dev/urandom \\
--prefix=/home/tomcat/www/lib

make  make install

Now it seems to work like charm.


If you configure APR to use /dev/urandom, creating a static ranndom file 
shouldn't be necessary.


BTW: in Tomcat 6 (starting with 6.0.17?) the AprLifecycleListener 
supports the attribute SSLRandomSeed:

http://tomcat.apache.org/tomcat-6.0-doc/ssl-howto.html#Edit%20the%20Tomcat%20Configuration%20File
This is supposed to set the random source used by APR. As I understand 
it (haven't tried it myself) one should be able to set this, for 
example, to /dev/urandom or a static random file and speed things up 
even if APR was compiled with /dev/random as default random source.


Regards
  mks

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



IIS connector issue?

2008-09-01 Thread Jamie Robert Thompson
Hi, I'm currently stuck at the last hurdle of a task which involves
integrating JavaHelp into an ASP.net application. I know little about Java,
even less about JSP, but my boss likes server-side JavaHelp *sigh*. I chose
Tomcat 6.0.18 and the connector (1.2.26) as my path to integrating it with
our application. Now, I've set everything up on my XP workstation (IIS5) and
it all works fine, but when I test it on the deployment servers (Win2K3
Server with IIS6), I have a strange problem. Namely, if I go directly to the
Tomcat URL first i.e. http://localhost:8080/test/Help/help.jsp;, it works,
and continues to work if I then go to IIS via 
http://localhost/test/Help/help.jsp;. If I go to IIS first however, and then
Tomcat, then both fail with nulls being returned from the help objects.
Something is causing the object to be created differently.

Now, the reason I get the same response thereafter is probably because the
help objects are being persisted in the session (or so I take it from the
Java bean stuff in the JSP), but I don't know why I get different outcomes
depending on the initial access route.

I'd like to be able to debug this, but as I say, I've not experience with
Java (and no-one else here does), and accordingly, I haven't the foggiest
how to set up a debugger to dig into the matter. Settings-wise, everything
is set to the defaults, and my connector settings are as given in the
associated tutorial (except I changed the uri worker map to only handle jsp
files). Only bit of magic is that I've added a context node to the localhost
in server.xml to match up with the virtual directories used in our IIS
setup.

Can anyone think of things I can try to get this working?

- Jamie


Ignorance about some things.

2008-09-01 Thread Manuel Trujillo
Hi!

Excuse me if this question is not correct for this list (also about my
bad english...).

I have two machines with tomcat 5.5. One is an Opensuse 10.3 32 bits,
the other is the same *but* in 64 bits. Same hardware, same config,
same... all.
In the 32 bits machine we haven't any error about insuficient java
memory; never, while into the 64 bits we need to make an automatic
restart of tomcat every 50 minutes.

Is the java 64 bits more memory-eat than 32 bits?

Thank you for your help.

Regards

-- 
Manu

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



Re: Ignorance about some things.

2008-09-01 Thread Gregor Schneider
On Mon, Sep 1, 2008 at 1:41 PM, Manuel Trujillo [EMAIL PROTECTED] wrote:

 Is the java 64 bits more memory-eat than 32 bits?

No, in fact the 64-bit-jvm is able to adress (thus use) more memory
than on 32-bit-jvm.

just make sure that a 64-bit-jvm (java-virtual-machine) is installed.

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

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



Re: War re-deployment

2008-09-01 Thread emerson cargnin
Hi Johnny


 But the way every one understands is... drop the war into webapps... thats
 it.
 Its smart... if the war has changed TC will fix things...
 If you drop a war into a dead tomact and then start it... its still smart ;)


Regarding the above, from what I experienced and from what I read from
the docs is that if you deploy a war in a dead tomcat, it won't
re-deploy unless you remove the expanded folder from a previous
deploy.

regards
emerson

On 29/08/2008, Johnny Kewl [EMAIL PROTECTED] wrote:

 - Original Message - From: emerson cargnin
 [EMAIL PROTECTED]
 To: Tomcat Users List users@tomcat.apache.org
 Sent: Friday, August 29, 2008 12:10 PM
 Subject: War re-deployment



  Hi, I'm using tomcat 5.5.26 and after having a look at the host
  application deployment (
 
 http://tomcat.apache.org/tomcat-5.5-doc/config/host.html#Automatic%20Application%20Deployment
  ) I still have a doubt:
 
  If tomcat is down and I change a war file in webapps, after restarting
  tomcat, is there anyway for tomcat to detect the change in the war and
  re-deploy it?
 

 Tomcat standard out of the box... ie no one has played with the settings...
 is smart, you dont have to help it...
 Use manager/html to deploy remotely...

 But the way every one understands is... drop the war into webapps... thats
 it.
 Its smart... if the war has changed TC will fix things...
 If you drop a war into a dead tomact and then start it... its still smart ;)

 Only thing is... when you done developing in you IDE... ask you IDE to
 undeploy it... otherwise TC may still be thinking you want the project in
 the IDE to run.

 easy...
 ---
 HARBOR : http://www.kewlstuff.co.za/index.htm
 The most powerful application server on earth.
 The only real POJO Application Server.
 See it in Action :
 http://www.kewlstuff.co.za/cd_tut_swf/whatisejb1.htm
 ---

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



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



Re: APR SSL not working

2008-09-01 Thread Gregor Schneider
Hi Markus,

seems I was a bit too optimistic...

although I compiled APR with /dev/urandomPLUS creating $HOME/.rnd
(changed 2048 to 4096 since this is the value specified in
/proc/sys/kernal/poolsize), it's again taking ages to start up tomcat.

Since this is a server-machine where I just can't move the mouse or
hack the keyboard to create some entropy, I'm again stuck here.

Do you know of any additional option to speed up the process of
creating some entropy?

Since we're stuck to Tomcat 5.5, unfortunately Tomcat 6 with the new
config is not an option.

Cheers

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

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



j_security_check get password on the request

2008-09-01 Thread lmk

hi all,

Im using form based jaas authentication, I have to call a stored procedure 
with the user name and password to ininitialize some business objects!

how can I get the password  on the j_security_check request?

can we use servlet filter to do this

thanks!



-- 
View this message in context: 
http://www.nabble.com/j_security_check-get-password-on-the-request-tp19255065p19255065.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



RE: Default application or HTML redirect

2008-09-01 Thread Mostafa Mossaad
I forgot to add that yes, I can access my application locally but with
using the external IP address, also without the /MyApp extension and it
loads like I want

-Original Message-
From: Mostafa Mossaad [mailto:[EMAIL PROTECTED] 
Sent: Monday, September 01, 2008 11:51 AM
To: Tomcat Users List
Subject: RE: Default application or HTML redirect

Hello Konstantin

1- Yes, my host is accessible by its IP address, when I enter the IP,
without the /MyAPp extension, it loads the web page I want normally, not
the Apache default page

2- I always delete temp files and clear my cookies whenever I'm trying

3- After uninstalling Tomcat, I deleted all its folders, especially the
ones that contain conf/server.xml and conf/web.xml

4- No, my ISA isn't on the same machine, and my ISA acts as a
firewall/gateway, and I in this case, I use it to publish my
application/web site

A small comment, my application used to be published via IIS, and not
Apache tomcat, and to get over this /MyApp extension, I simple created a
simple .html redirect file in the wwroot folder inside the inetpub
folder of the IIS. Can't the same be somehow achieved via Tomcat? Via
the Welcome files or something..


-Original Message-
From: Konstantin Kolinko [mailto:[EMAIL PROTECTED] 
Sent: Monday, September 01, 2008 2:23 AM
To: Tomcat Users List
Subject: Re: Default application or HTML redirect

1. Is your host accessible by its IP address?

Also, can you access your application locally, but using external
(not 127.0.0.1) IP address?

2. I hope, that it is not a caching issue (Ctrl+F5 from browser
retrieves non-cached instance of the page, and, I think, should also
refresh intermediate caches, if there are any).

3. I do not remember, whether reinstalling Tomcat will reset its
configuration (at least, when uninstalling it allows you to keep it).

You may download the *.zip distribution of Tomcat and
compare/replace your conf/server.xml and conf/web.xml files
with the ones from there.

4. Is your Microsoft Internet Security and Acceleration (ISA) 2006
server on the same PC?
You mentioned it, but where it comes into play here? I do not
have experience with that product.

Best regards,
Konstantin Kolinko

2008/8/30 Mostafa Mossaad [EMAIL PROTECTED]:
 Can you please tell me how?

 -Original Message-
 From: Mark Thomas [mailto:[EMAIL PROTECTED]
 Sent: Saturday, August 30, 2008 8:45 PM
 To: Tomcat Users List
 Subject: Re: Default application or HTML redirect

 Christopher Schultz wrote:
 Mark,

 Mark Thomas wrote:
 Mostafa Mossaad wrote:
  however, all my trails only seemed to make the application
 accessible via http://localhost only, not from the Internet.
 Then you have a proxy / dns / routing issue, not a Tomcat one.

 It's possible that his default Host has not been set, and that the
 name of the only Host is localhost. That'd do it.

 Mostafa, could you post your entire server.xml? Any changes you made
 to
 CATALINA_BASE/conf/web.xml should be changed back.

 Yep, that would do it although the OP claimed a new Tomcat install so
 the default host should be set.

 Mark


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




__ Information from ESET NOD32 Antivirus, version of virus
signature database 3402 (20080831) __

The message was checked by ESET NOD32 Antivirus.

  Email message - is OK

http://www.eset.com

 

__ Information from ESET NOD32 Antivirus, version of virus
signature database 3402 (20080831) __

The message was checked by ESET NOD32 Antivirus.

  Email message - is OK
  Email message - is OK

http://www.eset.com
 



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




__ Information from ESET NOD32 Antivirus, version of virus
signature database 3402 (20080831) __

The message was checked by ESET NOD32 Antivirus.

  Email message - is OK

http://www.eset.com

 

__ Information from ESET NOD32 Antivirus, version of virus
signature database 3404 (20080901) __

The message was checked by ESET NOD32 Antivirus.

  Email message - is OK
  Email message - is OK

http://www.eset.com
 



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



Re: Ignorance about some things.

2008-09-01 Thread Ronald Klop

My experience is also that java likes more memory on 64-bit systems. But I 
can't prove or explain it.

Ronald.


On Mon Sep 01 13:41:18 CEST 2008 Tomcat Users List users@tomcat.apache.org 
wrote:



Subject: Ignorance about some things.
Date: Mon Sep 01 13:41:18 CEST 2008
From: Manuel Trujillo [EMAIL PROTECTED]


Hi!

Excuse me if this question is not correct for this list (also about my
bad english...).

I have two machines with tomcat 5.5. One is an Opensuse 10.3 32 bits,
the other is the same *but* in 64 bits. Same hardware, same config,
same... all.
In the 32 bits machine we haven't any error about insuficient java
memory; never, while into the 64 bits we need to make an automatic
restart of tomcat every 50 minutes.

Is the java 64 bits more memory-eat than 32 bits?

Thank you for your help.

Regards

--
Manu

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








Re: Ignorance about some things.

2008-09-01 Thread Gregor Schneider
On Mon, Sep 1, 2008 at 3:57 PM, Ronald Klop [EMAIL PROTECTED] wrote:
 My experience is also that java likes more memory on 64-bit systems. But I
 can't prove or explain it.


You can tell Java exactly how much memory to use:

Have a look at the -Xms and -XMX-parameters for the JVM (java -X will
give you some information).

You might also want to check out the -d64 - argument of the JVM.

Cheers

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

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



Re: Ignorance about some things.

2008-09-01 Thread Manuel Trujillo
On Mon, Sep 1, 2008 at 16:05, Gregor Schneider [EMAIL PROTECTED] wrote:
 On Mon, Sep 1, 2008 at 3:57 PM, Ronald Klop [EMAIL PROTECTED] wrote:
 My experience is also that java likes more memory on 64-bit systems. But I
 can't prove or explain it.


 You can tell Java exactly how much memory to use:

 Have a look at the -Xms and -XMX-parameters for the JVM (java -X will
 give you some information).

 You might also want to check out the -d64 - argument of the JVM.

Sorry, because this is a date that I should have said before.
The machine has 4 Gb RAM, and this is the java config (memory):

JAVA_OPTS=-Xms500M -Xmx2560M

Thank you for your answers.

-- 
Manuel Trujillo Albarral
Director de Sistemas Informáticos
VLEX NETWORKS S.L.
Telf: 93-272.26.85 ext. 157
GoogleTalk [EMAIL PROTECTED]
http://www.vlex.com


RE: Ignorance about some things.

2008-09-01 Thread Peter Crowther
 From: Ronald Klop [mailto:[EMAIL PROTECTED]
 My experience is also that java likes more memory on 64-bit
 systems. But I can't prove or explain it.

I would expect 64-bit Java to use 64-bit object pointers, and 32-bit Java to 
use 32-bit object pointers.  Given how often object pointers occur in typical 
Java programs, that's a fair bit of extra memory.  If you assume that half of a 
typical object's state is references to other objects, then (naively) you'll 
use 50% more memory.

Now I'll sit back and wait for Chuck to contradict me :-).

- Peter

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



Re: APR SSL not working

2008-09-01 Thread Markus Schönhaber

Gregor Schneider wrote:


seems I was a bit too optimistic...

although I compiled APR with /dev/urandomPLUS creating $HOME/.rnd
(changed 2048 to 4096 since this is the value specified in
/proc/sys/kernal/poolsize), it's again taking ages to start up tomcat.


AFAIK is /dev/urandom guaranteed not to block. If initializing the HTTPS 
connector takes very long nevertheless, I'd make sure that /dev/urandom 
is indeed used - and not /dev/random. You could, for example, use lsof 
to check.


Is the libtcnative your Tomcat uses really linked against your 
self-compiled version of APR (ldd to check)?



Do you know of any additional option to speed up the process of
creating some entropy?


I'm not sure, but maybe a lot of activity generated in a ssh session 
might help too.


Regards
  mks

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



JDBCRealm.getRoles causes NullPointerException

2008-09-01 Thread DIGLLOYD INC

I'm running Tomcat 6.0.16 with DIGEST auth using:

MySQL 5.0.51b + mysql-connector-java-5.1.6-bin.jar

Things work well until complete failure: every few days, all  
authentication begins to fail.  When this happens, nothing appears in  
catalina.out to indicate a problem, and unless I restart Tomcat, no  
authentication ever succeeds again.  It begins working immediately  
after Tomcat is restarted.  I've never had to restart MySQL for 2  
months.


The only clue I see in catalina.out is the stack trace below (10 of  
them or so), about 9 hours *prior* to my detecting the authentication  
failure.  However, my access logs show that users logged in  
successfully *after* that series of failures.


I'm not sure where or how to debug this further.  It seems that Tomcat  
is making a bad call to next() which causes the NPE, but that's  
unclear; perhaps it's ResultSetImpl with a problem.  It's also unclear  
why there's a burst of such problems, then no further ones in the log,  
then the hours-later complete failure.


Aug 31, 2008 5:30:48 PM org.apache.catalina.connector.CoyoteAdapter  
service
SEVERE: An exception or error occurred in the container during the  
request processing

java.lang.NullPointerException
	at  
com.mysql.jdbc.ResultSetImpl.setRowPositionValidity(ResultSetImpl.java: 
826)

at com.mysql.jdbc.ResultSetImpl.next(ResultSetImpl.java:7046)
at org.apache.catalina.realm.JDBCRealm.getRoles(JDBCRealm.java:632)
at org.apache.catalina.realm.JDBCRealm.getPrincipal(JDBCRealm.java:596)
at org.apache.catalina.realm.RealmBase.authenticate(RealmBase.java:400)
	at  
org 
.apache 
.catalina 
.authenticator 
.DigestAuthenticator.findPrincipal(DigestAuthenticator.java:283)
	at  
org 
.apache 
.catalina 
.authenticator 
.DigestAuthenticator.authenticate(DigestAuthenticator.java:176)
	at  
org 
.apache 
.catalina 
.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:491)

at com.diglloyd.tomcat.BadInputValve.invoke(BadInputValve.java:284)
	at  
org 
.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java: 
128)
	at  
org 
.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java: 
102)
	at  
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java: 
568)
	at  
org 
.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java: 
394)
	at  
org 
.apache 
.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
	at  
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java: 
286)
	at  
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java: 
844)
	at org.apache.coyote.http11.Http11Protocol 
$Http11ConnectionHandler.process(Http11Protocol.java:583)
	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java: 
447)

at java.lang.Thread.run(Thread.java:613)


Lloyd Chambers
http://diglloyd.com

[Mac OS X 10.5.2 Intel, Tomcat 6.0.16]





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



RE: ERROR Starting 2nd instance of Tomcat

2008-09-01 Thread Eduardo Ponce de Leon
David,
I can´t start the newly stock tomcat version. When I try to start up tomcat
by ./catalina.sh run I am getting an error which is pointing to the original
tomcat version.. how can I avoid that and just start the instance Ive just
installed?


-Original Message-
From: David Smith [mailto:[EMAIL PROTECTED] 
Sent: Friday, August 29, 2008 10:08 AM
To: Tomcat Users List
Subject: Re: ERROR Starting 2nd instance of Tomcat

I mean your command line for starting the second tomcat includes the 
phrase 'In the config file'. Why is that there? I doubt it's coincidence 
your error message contains the exact same phrase that you have on the 
command line. It's most likely the source of your problem. 'tomcat5-test 
start' should be more than enough to get the second instance going.

--David

Eduardo Ponce de León wrote:
 I'vedone that to start my second instance! Don’t I need a script to start
it
 up?

 Eduardo Ponce de León
 Desarrollador
  
 Latino Mobile 
 ---
 Moliere 450A-101, México D.F.
 (T) +5255 -   52 50 65 52
 (M)+5255 -   55 06 37 16
 (E) [EMAIL PROTECTED]
 ---
 www.latinomobile.com.mx
 El Mejor Contenido Latino para Móviles

 -Original Message-
 From: David Smith [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, August 28, 2008 11:38 PM
 To: Tomcat Users List
 Subject: Re: ERROR Starting 2nd instance of Tomcat

 Ok ... taking a second look at this, why on earth are you using the 
 command 'tomcat5-test start In the config file' to start tomcat?  In 
 particular, 'In the config file' phrase has no place on the command line.

 --David

 Eduardo Ponce de León wrote:
   
  

 I am trying to run a 2nd instace of tomcat. For this, ive duplicated the
 tomcat folder and modified the server.xml files with different ports.
I've
 also created a startup script, but when I run the script I am getting
this
 error... Can anyone help please!!

 [EMAIL PROTECTED] tomcat5-test]# tomcat5-test start In the config file
 Starting tomcat5-test: [ FAILED ] 

 This is what i get in my catalina.out 

 -sh: line 0: export: `In the config file': not a valid identifier
 /bin/bash: /usr/bin/tomcat5-test: Permission denied
 -sh: line 0: export: `In the config file': not a valid identifier
 /bin/bash: /usr/bin/tomcat5-test: Permission denied

 This is my startup script... #!/bin/bash # # tomcat5 This shell script
 
 takes
   
 care of starting and stopping Tomcat # # chkconfig: - 80 20 # ### BEGIN
 
 INIT
   
 INFO
 # Provides: tomcat5
 # Required-Start: $network $syslog
 # Required-Stop: $network $syslog
 # Default-Start:
 # Default-Stop:
 # Description: Release implementation for Servlet 2.4 and JSP 2.0
 # Short-Description: start and stop tomcat
 ### END INIT INFO
 # # - originally written by Henri Gomez, Keith Irwin, and Nicolas Mailhot
 # - heavily rewritten by Deepak Bhole and Jason Corley
 # # commented out until the RHEL and FC daemon functions converge
 # Source the function library
 #if [ -r /etc/rc.d/init.d/functions ]; then
 #. /etc/rc.d/init.d/functions
 #fi
 NAME=$(basename $0)
 unset ISBOOT
 if [ ${NAME:0:1} = S -o ${NAME:0:1} = K ]; then
 NAME=${NAME:3}
 ISBOOT=1
 fi
 # For SELinux we need to use 'runuser' not 'su'
 if [ -x /sbin/runuser ]; then
 SU=/sbin/runuser
 else
 SU=su
 fi
 # Get the tomcat config (use this for environment specific settings)
 TOMCAT_CFG=/etc/tomcat5/tomcat5.conf
 if [ -r $TOMCAT_CFG ]; then
 . ${TOMCAT_CFG}
 fi
 # Get instance specific config file
 if [ -r /etc/sysconfig/${NAME} ]; then
 . /etc/sysconfig/${NAME}
 fi
 # Define which connector port to use
 CONNECTOR_PORT=${CONNECTOR_PORT:-8080}
 # Path to the tomcat launch script TOMCAT_SCRIPT=/usr/bin/tomcat5-test
 # Path to the script that will refresh jar symlinks on startup
 TOMCAT_RELINK_SCRIPT=${CATALINA_HOME}/bin/relink
 # Tomcat program name
 TOMCAT_PROG=$NAME
 # Define the tomcat username
 TOMCAT_USER=${TOMCAT_USER:-tomcat}
 # Define the tomcat log file
 TOMCAT_LOG=${TOMCAT_LOG:-/usr/share/tomcat5-test/logs/logscatalina.out}
 RETVAL=0
 # remove when the RHEL and FC daemon functions converge
 # (pulled from /etc/rc.d/init.d/functions)
 function checkpid() {
 local i
 for i in $* ; do
 if [ -d /proc/${i} ]; then
 return 0
 fi
 done
 return 1
 }
 # remove when the RHEL and FC daemon functions converge
 # (pulled from /etc/rc.d/init.d/functions)
 function echo_failure() {
 echo -en \\033[60G file:///\\033[60G 
 echo -n [ 
 echo -n $FAILED
 echo -n  ]
 echo -ne \r
 return 1
 }
 # remove when the RHEL and FC daemon functions converge
 # (pulled from /etc/rc.d/init.d/functions)
 function echo_success() {
 echo -en \\033[60G file:///\\033[60G 
 echo -n [ 
 echo -n $OK
 echo -n  ]
 echo -ne \r
 return 0
 }
 # Look for open ports, as the function name might imply
 function findFreePorts() {
 local isSet1=false
 local isSet2=false
 local isSet3=false
 local lower=8000
 randomPort1=0
 randomPort2=0
 randomPort3=0
 local -a listeners=( $(

Re: APR SSL not working

2008-09-01 Thread Gregor Schneider
Hi Marcus,

On Mon, Sep 1, 2008 at 4:56 PM, Markus Schönhaber
[EMAIL PROTECTED] wrote:

 Is the libtcnative your Tomcat uses really linked against your self-compiled
 version of APR (ldd to check)?


looks as if you're becoming my personal hero...

I just had the development-headers of the APR installed, meaning the
APR was the pre-compiled Debian-version.

Now I've downloaded the APR-sources, compiled them with

./configure --with-devrandom=/dev/urandom

make  make install

Really a big, big thanks for helping me to make it work!

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

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



Re: EJB with Tomcat 6.0.16

2008-09-01 Thread Johnny Kewl


- Original Message - 
From: Gaurav Pruthi [EMAIL PROTECTED]

To: users@tomcat.apache.org
Sent: Monday, September 01, 2008 9:48 AM
Subject: EJB with Tomcat 6.0.16



Dear Friends,

Is it possible to integrate EJB with tomcat v6 and higher? If yes then
kindly provide the How-To link. I googled but didn't find anything
information which is worthy.

Thanks,
Gaurav Pruthi


Calling an EJB server from TC... yes...
Running EAR files in TC... no, its not a EJB server on its own, its a 
servlet container.

---
HARBOR : http://www.kewlstuff.co.za/index.htm
The most powerful application server on earth.
The only real POJO Application Server.
See it in Action : http://www.kewlstuff.co.za/cd_tut_swf/whatisejb1.htm
--- 



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



Re: EJB with Tomcat 6.0.16

2008-09-01 Thread Gregor Schneider
Tomcat is a webserver plus a servlet-container.

To run EJBs, you need an application-server.

Have a look at JBoss (www.jboss.org):

It's an application-server incorporating Tomcat as a servlet-container
/ web-server.

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

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



Re: Ignorance about some things.

2008-09-01 Thread Johnny Kewl


- Original Message - 
From: Manuel Trujillo [EMAIL PROTECTED]

To: users@tomcat.apache.org
Sent: Monday, September 01, 2008 1:41 PM
Subject: Ignorance about some things.



Hi!

Excuse me if this question is not correct for this list (also about my
bad english...).

I have two machines with tomcat 5.5. One is an Opensuse 10.3 32 bits,
the other is the same *but* in 64 bits. Same hardware, same config,
same... all.
In the 32 bits machine we haven't any error about insuficient java
memory; never, while into the 64 bits we need to make an automatic
restart of tomcat every 50 minutes.

Is the java 64 bits more memory-eat than 32 bits?

Thank you for your help.

Regards

--
Manu


Manu 64 bit JRE is a relatively new thing in Java...
The memory handling is different but its swings and balances and I dont 
believe it should be crashing your machine every 50 mins...


The guys tell me that the JRE did have a memory heap allocation bug... in 
pre JRE's 6...
Its not tomcat apparently if you want to play with 64 bit... get the 
very latest JRE 6 from SUN direct.

Have fun...

And dont use 64 bit on client JRE's yet... thats not all right yet, like 
webstart wont function etc...


---
HARBOR : http://www.kewlstuff.co.za/index.htm
The most powerful application server on earth.
The only real POJO Application Server.
See it in Action : http://www.kewlstuff.co.za/cd_tut_swf/whatisejb1.htm
---


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



Re: Ignorance about some things.

2008-09-01 Thread Gregor Schneider
On Mon, Sep 1, 2008 at 7:38 PM, Johnny Kewl [EMAIL PROTECTED] wrote:


 The guys tell me that the JRE did have a memory heap allocation bug... in
 pre JRE's 6...
 Its not tomcat apparently if you want to play with 64 bit... get the
 very latest JRE 6 from SUN direct.
 Have fun...

 And dont use 64 bit on client JRE's yet... thats not all right yet, like
 webstart wont function etc...


Johnny,

you got any sources on that?

We're running all 64bit-Sun-JVMs (JDK 1.5) on Debian (Lenny) Linux and
we're all fine om the server-side (Tomcat and our own server-apps).

We don't have any experience with 64bit-clientside, though...

Cheers

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

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



Re: Ignorance about some things.

2008-09-01 Thread Johnny Kewl


- Original Message - 
From: Gregor Schneider [EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Sent: Monday, September 01, 2008 9:04 PM
Subject: Re: Ignorance about some things.



On Mon, Sep 1, 2008 at 7:38 PM, Johnny Kewl [EMAIL PROTECTED] wrote:



The guys tell me that the JRE did have a memory heap allocation bug... in
pre JRE's 6...
Its not tomcat apparently if you want to play with 64 bit... get the
very latest JRE 6 from SUN direct.
Have fun...

And dont use 64 bit on client JRE's yet... thats not all right yet, like
webstart wont function etc...



Johnny,

you got any sources on that?

We're running all 64bit-Sun-JVMs (JDK 1.5) on Debian (Lenny) Linux and
we're all fine om the server-side (Tomcat and our own server-apps).

We don't have any experience with 64bit-clientside, though...

Cheers


Linux admin guys just knocked off... I'll ask them to explain the details in 
the morning...
They just said something about a major/minor heap allocation problem on 
earlier JREs

You know these debian dudes... talk a language from another planet ;)

---
HARBOR : http://www.kewlstuff.co.za/index.htm
The most powerful application server on earth.
The only real POJO Application Server.
See it in Action : http://www.kewlstuff.co.za/cd_tut_swf/whatisejb1.htm
--- 



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



Re: Ignorance about some things.

2008-09-01 Thread Leon Rosenberg
Hello Manuell,

having OutOfMemoryError in your logs doesnt necessary mean that you
are out of memory. OutOfMemory error can be caused by many things, for
example the impossiblity to create a new thread.

What's happening with your tomcat after 50 minutes, do you have any logs?
Also, detailed info about your hardware and software setup would be helpful

regads
Leon

On Mon, Sep 1, 2008 at 2:41 PM, Manuel Trujillo [EMAIL PROTECTED] wrote:
 Hi!

 Excuse me if this question is not correct for this list (also about my
 bad english...).

 I have two machines with tomcat 5.5. One is an Opensuse 10.3 32 bits,
 the other is the same *but* in 64 bits. Same hardware, same config,
 same... all.
 In the 32 bits machine we haven't any error about insuficient java
 memory; never, while into the 64 bits we need to make an automatic
 restart of tomcat every 50 minutes.

 Is the java 64 bits more memory-eat than 32 bits?

 Thank you for your help.

 Regards

 --
 Manu

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



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



Re: Ignorance about some things.

2008-09-01 Thread Gregor Schneider
Hi Johnny,

On Mon, Sep 1, 2008 at 9:26 PM, Johnny Kewl [EMAIL PROTECTED] wrote:

 Linux admin guys just knocked off... I'll ask them to explain the details in
 the morning...
 They just said something about a major/minor heap allocation problem on
 earlier JREs
 You know these debian dudes... talk a language from another planet ;)

well, I'm a Debian-dude myself, and that's why I'm keen to know about
those issues.

If you can manage to talk to them again, send me the transcript, I'm
gonna translate it for you ;)

Cheers

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

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



Re: adding a virtual host with jmx

2008-09-01 Thread Olivier Vergès
hi,
 so i'm using tomcat 6.0.15.

I'm trying  now to add a josso valve:  Valve
className=org.josso.tc60.agent.SSOAgentValve debug=1/ always by jmx.

I don't  get your lines, in fact...

Could you please help me a little more?

O.V




2008/7/31 Bill Barker [EMAIL PROTECTED]

 It's a lot of lines of code, but not that hard.  You haven't mentioned your
 Tomcat version, so I'll give a sort of generic setup.
ObjectName loader = getServerLoader(); // depends on the settings and
 version
ObjectName registry = getRegistry(); // depends on the settings and
 version
MBeanServer server = getTCMBeansServer(); // generally the first one,
 unless you (or your J2EE) are playing games

String hname = Catalina:type=Host,host=+hostName; // Assuming the
 default Engine name of Catalina
ObjectName ohost = new ObjectName(hname);
Object host = server.instantiate(HOST_CLASS, loader);
server.invoke(registry, registerComponent,
new Object[] {host, hname, null},
new String[]
 {java.lang.Object,java.lang.String,java.lang.String});
server.setAttribute(ohost, new Attribute(appBase, appBase));
//  Set more attributes, and aliases etc here
// Things like Realms and Contexts work much the same way if you follow
 Tomcat's naming conventions
server.invoke(ohost, start, null, null);
// Start your contexts here, if you don't have automatic deployment set.

 As long as you follow Tomcat's naming conventions for ObjectNames, invoking
 start will automagically add the new elements to where they should live.
 You can get the values for the loader and registry by hooking up a JMX
 console to your existing Tomcat.

 Olivier Vergès [EMAIL PROTECTED] wrote in message
 news:[EMAIL PROTECTED]
  hi all,
 
  I'm creating a web application for auto deploying virtual host through
  apache and tomcat on a production server.
  Everything is ok except for the Tomcat part:
  As tomcat can't be reloaded  and as i can't restart anytime I want,  I
 've
  heard jmx was great cause it was possible to modify a running tomcat (is
  the
  english expression is on the fly?).
 
  So, Connection to Mbean server is ok...
 
  My problem is :
  when i invoke the addChild (org.apache.catalina.core.Container) method of
  Engine I get this error:
  java.io.NotSerializableException:
  org.apache.catalina.util.LifecycleSupport
   at
  java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1156)
   at
 
 java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)...
 
 
  So i try to create my own addChildByString(String;String,String,String)
  which takes the appabase and the name of th virtual host, and path and
  docBase of the first needed context. But i've got a problem with the
  context
  now,
   GRAVE: Error getConfigured (and nothing else)
 
  i'm a little lost with all the classes and functions and I haven't found
  any
  docs about adding vh by jmx.
 
  has anyone tried to add and directly make worked a virtual host and a
  context on a running tomcat ?
 
  thx,
  Olivier
 




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




Tomcat 6 and images

2008-09-01 Thread Mathias P.W Nilsson

Hi!

I'm using tomcat with wicket framework for my webapplication. My images,
css, flashes resides outside the container and therefor I'm using a Servlet
to serve the files.

Is there any builtin function to get files outside the container?
-- 
View this message in context: 
http://www.nabble.com/Tomcat-6-and-images-tp19260262p19260262.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



Re: Tomcat 6 and images

2008-09-01 Thread Johnny Kewl


- Original Message - 
From: Mathias P.W Nilsson [EMAIL PROTECTED]

To: users@tomcat.apache.org
Sent: Monday, September 01, 2008 10:26 PM
Subject: Tomcat 6 and images




Hi!

I'm using tomcat with wicket framework for my webapplication. My images,
css, flashes resides outside the container and therefor I'm using a 
Servlet

to serve the files.

Is there any builtin function to get files outside the container?


It always depends on exactly what you up to, how you deploy etc...
But yes... one way is to...

Set the (read up on context stuff) the docbase to an external folder ...
So you have a webapp that works outside of /webapps
Then in your webapp proper... you just adress the URI of that webapps for 
images.


If you decide later to put the images on say Apache... no problem, same 
idea.


So you dont really have to write a servlet to do it... although if well 
done, its nice having that as well.

The browser comes back for images... so just about anything is possible.
---
HARBOR : http://www.kewlstuff.co.za/index.htm
The most powerful application server on earth.
The only real POJO Application Server.
See it in Action : http://www.kewlstuff.co.za/cd_tut_swf/whatisejb1.htm
---


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



RE: Tomcat 6 and images

2008-09-01 Thread Martin Gainty

static images,css and flash are normally served by apache 
http://httpd.apache.org/could you explain specifically what you want to serve 
inside TC and why you prefer to serve static resources in a container vs 
Apache httpd webserver?Martin __ 
Disclaimer and confidentiality note Everything in this e-mail and any 
attachments relates to the official business of Sender. This transmission is of 
a confidential nature and Sender does not endorse distribution to any party 
other than intended recipient. Sender does not necessarily endorse content 
contained within this transmission.  Date: Mon, 1 Sep 2008 13:26:48 -0700 
From: [EMAIL PROTECTED] To: users@tomcat.apache.org Subject: Tomcat 6 and 
images   Hi!  I'm using tomcat with wicket framework for my 
webapplication. My images, css, flashes resides outside the container and 
therefor I'm using a Servlet to serve the files.  Is there any builtin 
function to get files outside the container? --  View this message in 
context: http://www.nabble.com/Tomcat-6-and-images-tp19260262p19260262.html 
Sent from the Tomcat - User mailing list archive at Nabble.com.   
- To start 
a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL 
PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] 
_
Get thousands of games on your PC, your mobile phone, and the web with Windows®.
http://clk.atdmt.com/MRT/go/108588800/direct/01/

RE: adding a virtual host with jmx

2008-09-01 Thread Martin Gainty

did you follow bill's code sample ?...did you have different result?also please 
display the exact structure and calls you are making to instantiate your 
javax.management.MBeanServerand which class is executing the addChild
 
javadocs located at
http://java.sun.com/j2ee/1.4/docs/api/javax/management/package-summary.htmlthanks/Martin
 __ Disclaimer and confidentiality 
note Everything in this e-mail and any attachments relates to the official 
business of Sender. This transmission is of a confidential nature and Sender 
does not endorse distribution to any party other than intended recipient. 
Sender does not necessarily endorse content contained within this transmission. 
 Date: Mon, 1 Sep 2008 21:57:55 +0200 From: [EMAIL PROTECTED] To: 
users@tomcat.apache.org Subject: Re: adding a virtual host with jmx  hi, so 
i'm using tomcat 6.0.15.  I'm trying now to add a josso valve: Valve 
className=org.josso.tc60.agent.SSOAgentValve debug=1/ always by jmx.  I 
don't get your lines, in fact...  Could you please help me a little more?  
O.V 2008/7/31 Bill Barker [EMAIL PROTECTED]   It's a lot of lines 
of code, but not that hard. You haven't mentioned your  Tomcat version, so 
I'll give a sort of generic setup.  ObjectName loader = getServerLoader(); // 
depends on the settings and  version  ObjectName registry = getRegistry(); 
// depends on the settings and  version  MBeanServer server = 
getTCMBeansServer(); // generally the first one,  unless you (or your J2EE) 
are playing games   String hname = Catalina:type=Host,host=+hostName; // 
Assuming the  default Engine name of Catalina  ObjectName ohost = new 
ObjectName(hname);  Object host = server.instantiate(HOST_CLASS, loader);  
server.invoke(registry, registerComponent,  new Object[] {host, hname, 
null},  new String[]  
{java.lang.Object,java.lang.String,java.lang.String});  
server.setAttribute(ohost, new Attribute(appBase, appBase));  // Set more 
attributes, and aliases etc here  // Things like Realms and Contexts work 
much the same way if you follow  Tomcat's naming conventions  
server.invoke(ohost, start, null, null);  // Start your contexts here, if 
you don't have automatic deployment set.   As long as you follow Tomcat's 
naming conventions for ObjectNames, invoking  start will automagically add 
the new elements to where they should live.  You can get the values for the 
loader and registry by hooking up a JMX  console to your existing 
Tomcat.   Olivier Vergès [EMAIL PROTECTED] wrote in message  
news:[EMAIL PROTECTED]   hi all, I'm creating a web application 
for auto deploying virtual host through   apache and tomcat on a production 
server.   Everything is ok except for the Tomcat part:   As tomcat can't 
be reloaded and as i can't restart anytime I want, I  've   heard jmx was 
great cause it was possible to modify a running tomcat (is   the   
english expression is on the fly?). So, Connection to Mbean server 
is ok... My problem is :   when i invoke the addChild 
(org.apache.catalina.core.Container) method of   Engine I get this error:  
 java.io.NotSerializableException:   
org.apache.catalina.util.LifecycleSupport   at   
java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1156)   at 
   
java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)...
   So i try to create my own 
addChildByString(String;String,String,String)   which takes the appabase and 
the name of th virtual host, and path and   docBase of the first needed 
context. But i've got a problem with the   context   now,GRAVE: 
Error getConfigured (and nothing else) i'm a little lost with all 
the classes and functions and I haven't found   any   docs about adding 
vh by jmx. has anyone tried to add and directly make worked a virtual 
host and a   context on a running tomcat ? thx,   Olivier   
 
-  To 
start a new topic, e-mail: users@tomcat.apache.org  To unsubscribe, e-mail: 
[EMAIL PROTECTED]  For additional commands, e-mail: [EMAIL PROTECTED]  
_
Talk to your Yahoo! Friends via Windows Live Messenger.  Find out how.
http://www.windowslive.com/explore/messenger?ocid=TXT_TAGLM_WL_messenger_yahoo_082008

Re: Tomcat 6 and images

2008-09-01 Thread Johnny Kewl

Hi Martin,
Listen just thought I tell you that your email (mailing list stuff) is 
coming out as one long

line of unpunctuated text... on Outlook anyway.

Its not easy to read it...
---
HARBOR : http://www.kewlstuff.co.za/index.htm
The most powerful application server on earth.
The only real POJO Application Server.
See it in Action : http://www.kewlstuff.co.za/cd_tut_swf/whatisejb1.htm
--- 



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



Re: Can't execute servlet project

2008-09-01 Thread sam wun
Hi,



I have added testdb.jsp in the following path in Suse linux (the tomcat 
server):

/tomcat/apache-tomcat-5.5.26/webapps/DBTest/



The content of the testdb.jsp code is:



%@ taglib uri=http://java.sun.com/jsp/jstl/sql; prefix=sql %
%@ taglib uri=http://java.sun.com/jsp/jstl/core; prefix=c %

sql:query var=rs dataSource=jdbc/TestDB
select FIRST_NAME from DBTest.Customer
/sql:query

html
  head
    titleDB Test/title
  /head
  body

  h2Results/h2

c:forEach var=row items=${rs.rows}
    Foo ${row.foo}br/
    Bar ${row.bar}br/
/c:forEach

  /body
/html



when I execute url 10.1.9.1:8080/testdb.jsp in firefox web browser, it 
shown the following error:

HTTP Status 500 - 

type Exception report

message 

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

exception org.apache.jasper.JasperException: The absolute uri: 
http://java.sun.com/jsp/jstl/sql cannot be resolved in either web.xml or 
the jar files deployed with this application

org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:51)

org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:409)

org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:116)

org.apache.jasper.compiler.TagLibraryInfoImpl.generateTLDLocation(TagLibraryInfoImpl.java:317)

org.apache.jasper.compiler.TagLibraryInfoImpl.init(TagLibraryInfoImpl.java:148)
org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:424)
org.apache.jasper.compiler.Parser.parseDirective(Parser.java:493)
org.apache.jasper.compiler.Parser.parseElements(Parser.java:1557)
org.apache.jasper.compiler.Parser.parse(Parser.java:127)

org.apache.jasper.compiler.ParserController.doParse(ParserController.java:212)

org.apache.jasper.compiler.ParserController.parse(ParserController.java:101)
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:156)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:296)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:277)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:265)

org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:564)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:302)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)

Here is the web.xml file I got:

(in the path /tomcat/apache-tomcat-5.5.26/webapps/DBTest/WEB-INF/)



?xml version=1.0 encoding=UTF-8?
web-app id=WebApp_ID version=2.4 
xmlns=http://java.sun.com/xml/ns/j2ee; 
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; 
xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee 
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd;
    display-name
    DBTest/display-name
    servlet
    description
    Create customer servlet/description
    display-name
    CreateCustomerServlet/display-name
    
servlet-nameCreateCustomerServlet/servlet-name
    servlet-class
    
servlet.CreateCustomerServlet/servlet-class
    /servlet
    servlet-mapping
    
servlet-nameCreateCustomerServlet/servlet-name
    
url-pattern/CreateCustomerServlet/url-pattern
    /servlet-mapping
    welcome-file-list
    welcome-fileindex.html/welcome-file
    welcome-fileindex.htm/welcome-file
    welcome-fileindex.jsp/welcome-file
    welcome-filedefault.html/welcome-file
    welcome-filedefault.htm/welcome-file
    welcome-filedefault.jsp/welcome-file
    /welcome-file-list
    resource-ref
    
descriptionDB Connection/description
    
res-ref-namejdbc/TestDB/res-ref-name
    
res-typejavax.sql.DataSource/res-type
    
res-authContainer/res-auth
  /resource-ref
/web-app




Thanks

Sam

javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

 - Original Message -
 From: Martin Gainty
 Sent: 28/08/08 10:07 pm
 To: [EMAIL PROTECTED]
 Subject: RE: Can't execute servlet project
 
 david's advice is correct..
 
 configure ./META-INF/ApplicationContext.xml 
 Context path=/DBTest docBase=DBTest
 debug=5 reloadable=true crossContext=true
 
 !-- maxActive: Maximum number of dB connections in pool. Make sure 
 you
  configure your mysqld max_connections large enough to handle
  all of your db connections. Set to 0 for no limit.
  --
 
 !-- maxIdle: Maximum number of idle dB connections to retain in 
 pool.
  Set to -1 for no limit.  See also the DBCP documentation on this
  and the minEvictableIdleTimeMillis 

Re: Re: Can't execute servlet project

2008-09-01 Thread sam wun
Hi there,



I have followed the tutorial about how to setup db connection (with mysql).

But still giving me the followoing errors:

type Exception report

message 

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

exception org.apache.jasper.JasperException: The absolute uri: 
http://java.sun.com/jsp/jstl/sql cannot be resolved in either web.xml or 
the jar files deployed with this application

org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:51)

org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:409)

org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:116)

org.apache.jasper.compiler.TagLibraryInfoImpl.generateTLDLocation(TagLibraryInfoImpl.java:317)

org.apache.jasper.compiler.TagLibraryInfoImpl.init(TagLibraryInfoImpl.java:148)
org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:424)
org.apache.jasper.compiler.Parser.parseDirective(Parser.java:493)
org.apache.jasper.compiler.Parser.parseElements(Parser.java:1557)
org.apache.jasper.compiler.Parser.parse(Parser.java:127)

org.apache.jasper.compiler.ParserController.doParse(ParserController.java:212)

org.apache.jasper.compiler.ParserController.parse(ParserController.java:101)
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:156)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:296)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:277)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:265)

org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:564)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:302)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)   
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)



I feel a bit confused about where to put the web.xml file and context.xml 
file.

Here I assumed create the context.xml file in 

/tomcat/apache-tomcat-5.5.26/webapps/DBTest/META-INF

and web.xml in

/tomcat/apache-tomcat-5.5.26/webapps/DBTest/WEB-INF



and mysql-connector-java is in the following path:

linux:~/tomcat/apache-tomcat-5.5.26/webapps/DBTest/WEB-INF/lib # ls
.  ..  mysql-connector-java-5.1.3-rc-bin.jar





What is missing and where I incorrectly setup the file?



Your suggestion is highly appreciated.



Thanks




 - Original Message -
 From: David Smith
 Sent: 28/08/08 03:06 am
 To: Tomcat Users List
 Subject: Re: Can't execute servlet project
 
 The datasource for your webapp isn't setup correctly.  Take a look at 
 
 http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-examples-howto.html 
 for help on how to properly setup a database connection pool.  My only 
 edit that article I would recommend is don't add ?autoReconnect=true to 
 the end of the mysql database url.  Instead, add validationQuery=select 
 1 to the Resource ... / element in your context.xml file so 
 connections are tested and regenerated as needed.
 
 --David
 
 sam wun wrote:
  HI there,
 
 
 
  I managed to fix the jdk version error, now it comes with a different 
  error.
 
  The url I am trying to put on the firefox browser is 
 
  http://10.1.9.1:8080/DBTest/CreateCustomerServlet
 
 
 
 
 
  The error is:
 
  TTP Status 500 - 
 
  type Exception report
 
  message 
 
  description The server encountered an internal error () that prevented 
 it 
  from fulfilling this request.
 
  exception javax.servlet.ServletException: Cannot create JDBC driver of 
  class '' for connect URL 'null'
  servlet.CreateCustomerServlet.doGet(CreateCustomerServlet.java:38)
  javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
  javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
 
  root cause org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot 
 create 
  JDBC driver of class '' for connect URL 'null'
  
  
 org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1150)
  
  
 org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.java:880)
  command.CommandExecutor.getConnection(CommandExecutor.java:54)
  
 command.CommandExecutor.executeDatabaseCommand(CommandExecutor.java:38)
  servlet.CreateCustomerServlet.doGet(CreateCustomerServlet.java:33)
  javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
  javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
 
  root cause java.sql.SQLException: No suitable driver
  java.sql.DriverManager.getDriver(Unknown Source)
  
  
 org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1143)
  
  
 org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.java:880)