Tomcat on Windows: advantages of running as a service?

2005-10-12 Thread Tom Burke
I'm running Tomcat 5.0.28 on a Windows 2003 server, and I need to 
automatically shut it down  restart it. One way is to control it via 
shutdown.bat  startup.bat, and run these as scheduled tasks at (say) 
3:30am and 3:31am. However, I've noticed that while shutdown.bat will 
shut it down if it was previously started as a service, startup.bat 
won't run it as a service, it starts it at a command prompt.


My question is: does this matter? If I'm running on Windows are there 
any advantages to running Tomcat as a service? Or disadvantages to 
running from the command prompt? The server is dedicated to tomcat, by 
the way.


Tom Burke 



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



Fw: Tomcat on Windows: advantages of running as a service?

2005-10-12 Thread Tom Burke
Thanks to Peter and other who made this, in retrospect, obvious 
suggestion! I'm pleased to say it works perfectly.


Tom Burke


- Original Message - 
From: Peter Crowther [EMAIL PROTECTED]

To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Wednesday, October 12, 2005 11:49 AM
Subject: RE: Tomcat on Windows: advantages of running as a service?



From: Tom Burke [mailto:[EMAIL PROTECTED]
Sent: 12 October 2005 11:18
To: Tomcat Users List
Subject: Tomcat on Windows: advantages of running as a service?

I'm running Tomcat 5.0.28 on a Windows 2003 server, and I need to
automatically shut it down  restart it. One way is to control it via
shutdown.bat  startup.bat, and run these as scheduled tasks at (say)
3:30am and 3:31am. However, I've noticed that while shutdown.bat will
shut it down if it was previously started as a service, startup.bat
won't run it as a service, it starts it at a command prompt.


Why not use net stop servicename and net start servicename with the
name of the Tomcat service?


My question is: does this matter? If I'm running on Windows are there
any advantages to running Tomcat as a service? Or disadvantages to
running from the command prompt?


If you run it as a service: you can ensure it restarts if the machine
reboots unexpectedly for any reason; you can take actions if the service
crashes; and you can run the service as a specified user fairly simply.
If you run from the command line, you have none of these options.

- Peter


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



RemoteAddrValve not working for admin and manger apps

2005-09-28 Thread Tom . Guthrie
Hello:

Sorry if this has been addressed already but I am having difficulty adding 
remote host valves to my manager and admin web apps in Tomcat 5.0.30 on 
Win2K .

Adding a valve to manager.xml or simply uncommenting the example remote 
host valve for the admin web app in the admin.xml does not work. I restart 
the tomcat service after each xml configuration changes. I have used 
double and single quotes around the IP address.

Is there any additional configuration required  -maybe in the server.xml 
that has been ommitted from the documentation? 
Here is the context from my admin.xml

Context path=/admin docBase=${catalina.home}/server/webapps/admin
debug=0 privileged=true

  !-- Uncomment this Valve to limit access to the Admin app to localhost
   for obvious security reasons. Allow may be a comma-separated list of
   hosts (or even regular expressions). --

  Valve className=org.apache.catalina.valves.RemoteAddrValve
allow='127.0.0.1'/
 

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

/Context


Thanks

Re: Configure multiple number of aliases / sub-domains

2005-09-22 Thread Tom Burke
The Hosts file is hold-over from the pre-DNS method of finding IP 
addresses. Basically, there's a file - 'Hosts' - that holds addresses, 
in the format:


domain_nameip_address eg
myhost.co.uk123.45.123.45

At one time this was the only way that machines on the Internet knew the 
addresses of other machines, and a new Hosts file would be circulated 
(by email) to all the sysadmins who managed connected hosts. (Google for 
'Jonathan Postel' if you want to know more about these early days.) 
Obviously, DNS has replaced all this, except that Hosts remains - in a 
Windows system you'll find it in:

[windir]\System32\Drivers\Etc

In Linux/Unix I think it's still in /etc ; I remember frantically 
editing /etc/hosts on many systems in the past!


So this is all a part of server-name resolution within networking, not 
Tomcat.


Tom


- Original Message - 
From: Assaf [EMAIL PROTECTED]

To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Thursday, September 22, 2005 9:02 AM
Subject: Re: Configure multiple number of aliases / sub-domains



My problem is not with the DNS settings. They are
mapped to the same IP address (my machine) and that
works fine.

What do you mean your 'hosts' file? Currently I have a
host node in the server.xml file. Under it I define
the various aliases (subdomains).

Thanks,

Assaf

--- Kyle [EMAIL PROTECTED] wrote:


You'll have to programmatically update your 'hosts'
file to add in each
and every new sub-domain(i.e. virtualhost name) as
they signup and make
sure your machine is set to check 'hosts' for dns
before going anywhere
else.

That should do the trick.

Disclaimer: I've done this on Windows, but haven't
tried it on linux.

Kyle





__
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: tomcat restart ptoblem

2005-09-21 Thread Tom Burke

What's the system? Windows, Linux/Unix?

Tom


- Original Message - 
From: mukesh [EMAIL PROTECTED]

To: tomcat-user@jakarta.apache.org
Sent: Wednesday, September 21, 2005 11:12 AM
Subject: tomcat restart ptoblem



Hi friends,



   I have installed Tomcat 5.5. It was working fine but my 
system
has got restarted and then onwards I am not able to restart the 
server.




   What could be the reasons? (Sorry if this question have 
been

already asked)



   Please advice.



Regards,

Mukesh Kumar





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



Re: tomcat restart ptoblem

2005-09-21 Thread Tom Burke
Is it installed as a Windows Service? Is the Service set to start 
automatically? If it isn't, you know what to do!


If it is but it isn't starting successfully, try the following:-

a) try to Start the service manually;
b) if it fails, examine the Windows Event log, as well as the various 
Tomcat logs.


Tom


- Original Message - 
From: mukesh [EMAIL PROTECTED]

To: 'Tomcat Users List' tomcat-user@jakarta.apache.org
Sent: Wednesday, September 21, 2005 1:57 PM
Subject: RE: tomcat restart ptoblem



Hi Tom,

Its WindowsServer 2003 Standard Edition.

Regards,
Mukesh

-Original Message-
From: Tom Burke [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 21, 2005 4:21 PM
To: Tomcat Users List
Subject: Re: tomcat restart ptoblem

What's the system? Windows, Linux/Unix?

Tom


- Original Message - 
From: mukesh [EMAIL PROTECTED]

To: tomcat-user@jakarta.apache.org
Sent: Wednesday, September 21, 2005 11:12 AM
Subject: tomcat restart ptoblem



Hi friends,



   I have installed Tomcat 5.5. It was working fine but my
system
has got restarted and then onwards I am not able to restart the
server.



   What could be the reasons? (Sorry if this question have
been
already asked)



   Please advice.



Regards,

Mukesh Kumar





-
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: Virtual Hosts

2005-09-16 Thread Tom Burke
I, too, am having problems configuring virtual hosts, in a Tomcat 5.0.28 
server, with no Apache, on a Windows XP machine. I've studied the 
documentation and am puzzled by one area in particular: the definition 
of 'appBase'. For example, in the text below you suggest putting this in 
the Host  ...  section within server.xml:


appBase=deploy

In a Windows environment, what is deploy? Is it a directory within the 
tomcat installation? If so, where? I can't see where this location is 
defined, it just seems to be mentioned in server.xml, in other examples 
as well as this one. Obviously there's something I'm not 
understanding...


Tom Burke


- Original Message - 
From: Mahesh S Kudva [EMAIL PROTECTED]

To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Friday, September 16, 2005 2:00 PM
Subject: Re: Virtual Hosts


This setup has been tested on Apache2+JBoss+mod_jk-1.2.14_for MacOSX. 
And
am sure it will work on other platforms as well. This setup also 
handles

Apache related webapps..

Make the required entries in the DNS

webapp.war: Extract the war file using zip and rename the folder
with .war extension. Please put it in your deployment folder.

mod-jk.so: Obtain the modjk.so library file from www.apache.org and 
place

then in the modules folder.

Apache-Virtual Host config
--
NameVirtualHost *.*.*.*:80

VirtualHost *.*.*.*:80
   ServerName webapp.domainname.com
   ServerAlias www.webapp.domainname.com
   ServerAdmin [EMAIL PROTECTED]
   DocumentRoot /Volumes/Extra/jboss/server/default/deploy/webapp.war
   JkMount /* loadbalancer
   DirectoryIndex index.html index.jsp
   ErrorLog logs/webapp-error_log
   CustomLog logs/webapp-access_log common
/VirtualHost
-
mod-jk.conf

LoadModule jk_module /opt/apache2/modules/mod_jk.so

JkWorkersFile /opt/apache2/conf/workers.properties
JkLogFile /opt/apache2/logs/mod_jk.log
JkLogLevel info
JkLogStampFormat [%a %b %d %H:%M:%S %Y]
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
JkRequestLogFormat %w %V %T
JkMount /webapp.domain.com/*.jsp loadbalancer
JkMountFile /opt/apache2/conf/uriworkermap.properties
JkShmFile /opt/apache2/logs/jk.shm
Location /jkstatus/
JkMount status
Allow from 127.0.0.1
   Deny from All
/Location

--
Server.xml
-

Host name=webapp.domain.com debug=0 appBase=deploy
unpackWARs=true
Aliaswww.webapp.domain.com/Alias
Logger className=org.apache.catalina.logger.FileLogger
directory=logs prefix=webapp_log1. suffix=.log
timestamp=true/
Context path=
docBase=${jboss.server.home.dir}/deploy/webapp.war debug=0
reloadable=true/
/Host

--
--
uriworkermap.properties

/jmx-console=loadbalancer
/jmx-console/*=loadbalancer
/web-console=loadbalancer
/web-console/*=loadbalancer
/webapp.domain.com/*.jsp

--
--
workers.properties


worker.list=loadbalancer,status

worker.webapp.port=8009
worker.webapp.host=webapp.domain.com
worker.webapp.type=ajp13
worker.webapp.lbfactor=1
worker.webapp.cachesize=10

worker.loadbalancer.type=lb
worker.loadbalancer.balance_workers=library
worker.loadbalancer.sticky_session=1
worker.loadbalancer.local_worker_only=1
worker.list=loadbalancer

worker.status.type=status

_

Regards  Thanks

Mahesh S Kudva


-Original Message-
From: Steve Dodge [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Date: Thu, 15 Sep 2005 15:57:04 -0500
Subject: Re: Virtual Hosts


You probably want to change the appBase. You can control the contexts
by
creating a context snippet in conf/[Engine name]/[Host name]  or add 
it

to META-INF/context.xml in each war.

Hope that helps,
Steve

Durfee, Bernard wrote:

Okay, so I created two host elements in my server.xml...

  Host name=app01.myserver.com
appBase=webapps
autoDeploy=true
deployOnStartup=true
deployXML=true
unpackWARs=true
xmlValidation=false
xmlNamespaceAware=false /

  Host name=app02.myserver.com
appBase=webapps
autoDeploy=true
deployOnStartup=true
deployXML=true
unpackWARs=true
xmlValidation=false
xmlNamespaceAware=false /

...but how do I tell Tomcat which context to process? There will be 
no

context correct? Do I need a separate appBase directory for each
host
element?

Thanks,
Bernie





-Original Message-
From: Allistair Crossley [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 15, 2005 12:10 PM
To: Tomcat Users List
Subject: RE: Virtual Hosts


Simplistically ...

Configure Host elements inside your Engine. Create a folder
for each application

Re: Virtual Hosts

2005-09-16 Thread Tom Burke

Mahesh

Thanks for your help.

I think something I don't understand is: what's its root of the virtual 
server's appbase?


I have tomcat (5.0.28) installed in c:\Tomcat 5.0, with the usual set 
of directories

within that - bin, common, conf, logs, server, shared, temp, webapps,
work. I don't have a development environment at all. I have applications
installed within webapps, using the defaulthost (localhost) and they
work fine. Here's a sample of my server.xml:

Engine defaultHost=localhost name=Catalina

 Host appBase=webapps name=localhost
   Logger className=org.apache.catalina.logger.FileLogger
suffix=.txt prefix=localhost_log. timestamp=true/
Valve className=org.apache.catalina.valves.AccessLogValve
fileDateFormat=-MM-dd suffix=.txt/
 /Host

 Host appBase=webapps/some_host name=some_host.com
   Logger className=org.apache.catalina.logger.FileLogger
suffix=.txt prefix=some_host_log. timestamp=true/
   Valve className=org.apache.catalina.valves.AccessLogValve
fileDateFormat=-MM-dd suffix=.txt/
 /Host

 Logger className=org.apache.catalina.logger.FileLogger
suffix=.txt prefix=catalina_log. timestamp=true/
 Realm className=org.apache.catalina.realm.UserDatabaseRealm/
   /Engine

I've created a directory within webapps called 'some_host' and within
that is a simple jsp, a 'welcome' script. I know that the server, and an 
external PC, know (from use of Hosts files) that some_host.com is mapped 
to the server's IP address, and I can successfully ping that address. 
But I'm not getting the jsp to run! - I just get a 'page unavailable' 
response. There are no errors in the startup log so I think it must be 
that Tomcat doesn't know where to look for the welcome.jsp, which 
suggests that specifying appbase = webapps/some_host isn't working.


Tom


- Original Message - 
From: Mahesh S Kudva [EMAIL PROTECTED]

To: [EMAIL PROTECTED]
Sent: Friday, September 16, 2005 3:18 PM
Subject: RE: Virtual Hosts



Hi Tom

deploy is a directory in any platform you are running Tomcat until
unless specified. You need to create the directory if not found.
Generally it can be found at /jboss/server/default/deploy

Regards  Thanks

Mahesh S Kudva


---
Robosoft Technologies - Partners in Product Development





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



INDEX.JSP in webapps/ROOT

2005-08-24 Thread Tom Spence

Hello...

I understand that TomCat's front page (index.jsp) that I can't change it cuz it 
is precompiled.  I want to change something on my own website from index.jsp to 
index.html?

Also I am trying to learn (of course I am newbie) how to change in web.xml in 
ROOT/WEB-INF.

I appreciate your assist...



(__[TomCigar]___~~~ 




Re: INDEX.JSP in webapps/ROOT

2005-08-24 Thread Tom Spence
GREAT!  It works!  Also many thanks for giving the URl about web.xml that I am 
going to learn how to use.

David Delbecq [EMAIL PROTECTED] wrote:Le Mercredi 24 Août 2005 14:58, Tom 
Spence a écrit :
 
 Hello...
 
 I understand that TomCat's front page (index.jsp) that I can't change it cuz 
 it is precompiled. 

Yes and no, you can't simply replace it's content, but you also have to change 
web.xml 
remove those lines to suppres use of precompiled index.jsp :


org.apache.jsp.index_jsp
org.apache.jsp.index_jsp



org.apache.jsp.index_jsp
/index.jsp




 I want to change something on my own website from index.jsp to index.html? 

just remove index.jsp mapping in web.xml, tomcat will then do the default 
searching 
(index.jsp, index.html, index.htm if my memory is not too corrupted)

 
 Also I am trying to learn (of course I am newbie) how to change in web.xml in 
 ROOT/WEB-INF.

with a text editor (better if text editor support xml enlighting)
More seriously, i suggest you read some documentations on java web servers tu 
understand
what is in the web.xml
there is list of tags in web.xml:
http://e-docs.bea.com/wls/docs61/webapp/web_xml.html

 
 I appreciate your assist...
 
 
 
 (__[TomCigar]___~~~ 
 
 
 

-- 
David Delbecq
Royal Meteorological Institute of Belgium

-
Is there life after /sbin/halt -p?

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





(__[TomCigar]___~~~ 




Re: WebDav on Port 80

2005-08-22 Thread Tom Spence
On 5.5.9...
 
* Go to webapps/webdav/WEB-INF
* Edit web.xml
 
Go to bottom and fix...
 
welcome-file-list
welcome-fileindex.html/welcome-file
/welcome-file-list
 
After I fixed, still not work...
 
Tom


Kyle [EMAIL PROTECTED] wrote:
On 5.5.9,

I can get http://localhost/webdav/index.html to serve up the webdav home 
page. If I just put /webdav in, I get the directory index. Though, I 
suspect I could get it to serve it up straight away if I play with the 
mapping.

AH!!! Just occured to me. I'm picking it up through Apache as opposed to 
Tomcat standalone.

K

Marius Hanganu wrote:
 The problem can be reproduced. There is already a bug describing this
 issue:
 
 http://issues.apache.org/bugzilla/show_bug.cgi?id=26449
 
 Regards,
 Marius 
 
 -Original Message-
 From: George Francis [mailto:[EMAIL PROTECTED] 
 Sent: Sunday, August 21, 2005 7:07 PM
 To: tomcat-user@jakarta.apache.org
 Subject: WebDav on Port 80
 
 Hello,
 If I downloaded the latest Tomcat 5.0 or 5.5, WebDav works 'straight out
 of the box' by starting the server and opening 'localhost:8080/webdav'
 as a web folder.
 Great!
 If I then go in to server.xml and change the port to 80; the WebDav
 functionality is lost - I get a message from IE saying Cannot open
 'localhost:80/webdav' as a web folder - would you like to see it's
 default view instead.
 Can anyone else reproduce this? Are you all able to run webdav on port
 80 without issues? Is there any trick Im missing?
 Any help greatly appreciated!.
 G
 
 -
 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]
 

-- 

Kind Regards

Kyle Lange

Tel: +61 (0)431 88 3978


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



Error log

2005-08-18 Thread Tom Spence

Hi...

Any idea why I got error message while I go to ADMIN page?

Aug 18, 2005 8:52:39 AM org.apache.struts.action.RequestProcessor processMapping
SEVERE: Invalid path /login was requested

But while I am using ADMIN page which is no problem...  Any idea.

I appreciate your assist...

Tom


RE: TomCat 5.5.9 - 8443

2005-08-17 Thread Tom Spence
Now TomCat 5.5.9 can run with 8443 that I am so happy but need to have a 
certificate.  I don't have any certificate so is there anyway for us to get 
free instead of pay to verisign?

Paul Kimbrel [EMAIL PROTECTED] wrote:
I've only used keytool - and it worked like a charm for me. 

-Original Message-
From: Tom Spence [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 16, 2005 9:23 AM
To: Tomcat Users List
Subject: Re: TomCat 5.5.9 - 8443

Can I use ikeyman or keytool or both?

Cuz, I need to use SSL like 8443 so bad...

Paul Kimbrel 
wrote:
Something I forgot to mention. When you are generating your certificate, it
will ask for your first and last name. Enter the name of the server your
appliation will be running on. In the case of development - this is usally
localhost. Otherwise, the certificate will be rejected when your website
loads.

--PK

On 8/15/2005, [EMAIL PROTECTED]

wrote:

It sounds like you need to set up an SSL certificate for Java. Here's a 
site that outlines how to do this:

http://jasigch.princeton.edu:9000/display/CAS/Solving+SSL+issues

To use this example, make sure you have your JAVA_HOME environment 
variable set properly (or replace it in the example with the 
appropriate value). Also, the example references %FILE_NAME%. Don't 
use this - in all the other places in the example, it uses server.crt 
- use that instead of the FILE_NAME variable. And finally, it will 
still pop up and ask you for the keystore pass code. Just enter changeit.
And don't change it - until you've gotten down the road and figure out 
how all that works. I tried it once, and things got reallys screwed up.

But once, you get that up and running, you should be gold!

--PK

On 8/15/2005, Tom Spence wrote:

 I can open
 
 http://localhost:8080
 
 but, can't open
 
 https://localhost:8443
 
 Any idea why?
 
 Of course I did uncomment at 8443 area in server.xml and set up by 
using keytool. Nothing happened.
 
 
 
 (__[TomCigar]___~~~
 

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




(__[TomCigar]___~~~ 




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




(__[TomCigar]___~~~ 




Re: TomCat 5.5.9 - 8443

2005-08-16 Thread Tom Spence
Can I use ikeyman or keytool or both?
 
Cuz, I need to use SSL like 8443 so bad...

Paul Kimbrel [EMAIL PROTECTED] wrote:
Something I forgot to mention. When you are generating your certificate,
it will ask for your first and last name. Enter the name of the server
your appliation will be running on. In the case of development - this
is usally localhost. Otherwise, the certificate will be rejected
when your website loads.

--PK

On 8/15/2005, [EMAIL PROTECTED]

wrote:

It sounds like you need to set up an SSL certificate for Java. Here's a
site that outlines how to do this:

http://jasigch.princeton.edu:9000/display/CAS/Solving+SSL+issues

To use this example, make sure you have your JAVA_HOME environment
variable set properly (or replace it in the example with the appropriate
value). Also, the example references %FILE_NAME%. Don't use this -
in all the other places in the example, it uses server.crt - use
that instead of the FILE_NAME variable. And finally, it will still pop
up and ask you for the keystore pass code. Just enter changeit. 
And don't change it - until you've gotten down the road and figure out
how all that works. I tried it once, and things got reallys screwed up.

But once, you get that up and running, you should be gold!

--PK

On 8/15/2005, Tom Spence wrote:

 I can open
 
 http://localhost:8080
 
 but, can't open
 
 https://localhost:8443
 
 Any idea why?
 
 Of course I did uncomment at 8443 area in server.xml and set up by  using 
 keytool. Nothing happened.
 
 
 
 (__[TomCigar]___~~~
 

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




(__[TomCigar]___~~~ 




TomCat 5.5.9 - 8443

2005-08-15 Thread Tom Spence

I can open

http://localhost:8080

but, can't open

https://localhost:8443

Any idea why?

Of course I did uncomment at 8443 area in server.xml and set up by using 
keytool.  Nothing happened.



(__[TomCigar]___~~~ 




Re: TomCat 5.5.9 - 8443

2005-08-15 Thread Tom Spence
Here what I got...
 
Aug 15, 2005 8:38:24 AM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Aug 15, 2005 8:38:24 AM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8443
Aug 15, 2005 8:38:24 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 3008 ms
Aug 15, 2005 8:38:24 AM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Aug 15, 2005 8:38:24 AM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.9
Aug 15, 2005 8:38:24 AM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Aug 15, 2005 8:38:30 AM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Aug 15, 2005 8:38:30 AM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8443
Aug 15, 2005 8:38:30 AM org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
Aug 15, 2005 8:38:31 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 7101 ms
 
I opened https://localhost:8443 and wait for loading for forever...


Paul Singleton [EMAIL PROTECTED] wrote:
Tom Spence wrote:
 I can open
 
 http://localhost:8080
 
 but, can't open
 
 https://localhost:8443
 
 Any idea why?
 
 Of course I did uncomment at 8443 area in server.xml and set up by using 
 keytool. Nothing happened.

What kind of nothing?

Connection refused? Failed to connect after timeout?
Page not found?

Do the startup msgs claim that e.g.

09-Aug-2005 15:29:04 org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8443

09-Aug-2005 15:29:09 org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8443

Paul Singleton




-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.338 / Virus Database: 267.10.9/72 - Release Date: 14/Aug/2005


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




(__[TomCigar]___~~~ 




Error msg after catalina.sh run

2005-08-09 Thread Tom Spence

I am using AIX 5.2, TC 5.5.9, JAVA 1.4

I am working on 8443 (443) but got an error and how can I solve this problem?

Using CATALINA_BASE:   /usr/local/jakarta-tomcat
Using CATALINA_HOME:   /usr/local/jakarta-tomcat
Using CATALINA_TMPDIR: /usr/local/jakarta-tomcat/temp
Using JRE_HOME:   /usr/java14
Created MBeanServer with ID: 52d4d891:1059af76990:-8000:xxx.xxx.xxx.xxx:1
Aug 9, 2005 7:19:33 AM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Aug 9, 2005 7:19:34 AM org.apache.coyote.http11.Http11Protocol init
SEVERE: Error initializing endpoint
java.io.IOException: Algorithm SunX509 not available
at 
org.apache.tomcat.util.net.jsse.JSSE14SocketFactory.init(JSSE14SocketFactory.java:125)
at 
org.apache.tomcat.util.net.jsse.JSSESocketFactory.createSocket(JSSESocketFactory.java:88)
at 
org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoint.java:292)
at org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:142)
at 
org.apache.catalina.connector.Connector.initialize(Connector.java:928)
at 
org.apache.catalina.core.StandardService.initialize(StandardService.java:580)
at 
org.apache.catalina.core.StandardServer.initialize(StandardServer.java:764)
at org.apache.catalina.startup.Catalina.load(Catalina.java:490)
at org.apache.catalina.startup.Catalina.load(Catalina.java:509)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)
at java.lang.reflect.Method.invoke(Method.java:391)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:243)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:408)
Aug 9, 2005 7:19:34 AM org.apache.catalina.startup.Catalina load
SEVERE: Catalina.start
LifecycleException:  Protocol handler initialization failed: 
java.io.IOException: Algorithm SunX509 not available
at 
org.apache.catalina.connector.Connector.initialize(Connector.java:930)
at 
org.apache.catalina.core.StandardService.initialize(StandardService.java:580)
at 
org.apache.catalina.core.StandardServer.initialize(StandardServer.java:764)
at org.apache.catalina.startup.Catalina.load(Catalina.java:490)
at org.apache.catalina.startup.Catalina.load(Catalina.java:509)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)
at java.lang.reflect.Method.invoke(Method.java:391)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:243)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:408)




(__[TomCigar]___~~~ 




Re: R: JSTL Question

2005-08-09 Thread Tom Spence

Hi,

I plan to use TOMCAT 5.5.9 for http server but my supervisor wants me to use 
HTTP Server.

I am done for set up with HTTP Server so how can HTTP Server redirect to TOMCAT?

I apprecaite your assist...

Tom


IBM IHS and TOMCAT 5.5.9

2005-08-09 Thread Tom Spence

Hi,

I plan to use TOMCAT 5.5.9 for http server but my supervisor wants me to use 
HTTP Server.

I am done for set up with HTTP Server so how can HTTP Server redirect to TOMCAT?

I apprecaite your assist...

Tom



HTTP Server and TC 5.5.9

2005-08-08 Thread Tom Spence
Hello everyone...

My supervisor wants me to work on tomcat 5.5.9 instead
of websphere.  So I am working on it now which is my
first time.  I hope you guys help me.  SMILE!!!

Am I required to use HTTP Server first before tomcat,
correct?

I appreciate your assist...

Tom


(__[TomCigar]___~~~ 




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



Help: IndexOutOfBoundsException using JMX management

2005-08-05 Thread Tom
Hi,

I want to monitore and manage my tomcat instance using
JMX. I use tomcat-5.4.4 and a JDK-1.5 under suse
linux.
I do the actions specified in the official
documentation (Monitoning and managing tomcat).

~/bin/startup.sd

export CATALINA_OPTS=-Dcom.sun.management.jmxremote  
 \
   
-Dcom.sun.management.jmxremote.port=8789\
   
-Dcom.sun.management.jmxremote.ssl=false\
   
-Dcom.sun.management.jmxremote.authenticate=false

~/conf/server.xml

Connector  port=8790
handler.list=mx
mx.enabled=true
mx.httpHost=Linux2
mx.httpPort=8789
protocol=AJP/1.3 /

I don't use passwords, I am just testing the JMX
funcionality. In a near future, I will activate
passwords with a better security.

When I start tomcat, the JMX service is activated. I
can see the ports related to JMX in the netstat
output.

Linux2:/home/ctomcat # netstat -nap | grep tcp
tcp0  0 0.0.0.0:111 0.0.0.0:* 
 LISTEN  760/
tcp0  0 0.0.0.0:60000.0.0.0:* 
 LISTEN  1689/X
tcp0  0 127.0.0.1:250.0.0.0:* 
 LISTEN  1133/
tcp0  0 127.0.0.1:8005  :::*  
 LISTEN  6483/java
tcp0  0 :::33128:::*  
 LISTEN  6483/java
tcp0  0 :::8009 :::*  
 LISTEN  6483/java
tcp0  0 :::8080 :::*  
 LISTEN  6483/java
tcp0  0 :::8789 :::*  
 LISTEN  6483/java
--- JMX port
tcp0  0 :::8790 :::*  
 LISTEN  6483/java
--- JMX connector port
tcp0  0 :::22   :::*  
 LISTEN  955/sshd

The problem arises when I do a JMX request with any
web broser.

For example:

[EMAIL PROTECTED]:~ wget http://localhost:8790
--14:04:07--  http://localhost:8790/
   = `index.html'
Resolving localhost... done.
Connecting to localhost[::1]:8790... connected.
HTTP request sent, awaiting response...
14:04:07 ERROR -1: No data received.

In the ~/logs/catalina.log appears:

05-ago-2005 14:03:07 org.apache.jk.common.MsgAjp
processHeader
GRAVE: BAD packet signature 18245
05-ago-2005 14:03:07
org.apache.jk.common.ChannelSocket processConnection
GRAVE: Error, processing connection
java.lang.IndexOutOfBoundsException
at
java.io.BufferedInputStream.read(BufferedInputStream.java:306)
at
org.apache.jk.common.ChannelSocket.read(ChannelSocket.java:598)
at
org.apache.jk.common.ChannelSocket.receive(ChannelSocket.java:554)
at
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:663)
at
org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:866)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)

How can I solve this problem? I must upgrade to a
newer tomcat version. I consult the changelogs between
5.4.4 and the last Tomcat and I don't see any
references about this problem. Is this problem solved
or it is an erroniuos configuration.

Thanks a lot for your attention.

Regards,

Xevi.



__ 
Renovamos el Correo Yahoo! 
Nuevos servicios, más seguridad 
http://correo.yahoo.es

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



Hi...

2005-08-03 Thread Tom Spence
Hello I am rookie...
 
I plan to download the source but it can't open by using tar command while I am 
using AIX 5.2.  Should I download binary file?
 
I apprecaite your help...
 
Tom Spence


Re: Hi...

2005-08-03 Thread Tom Spence
What about jakarta-tomcat-5.5.10.tar.gz?
 
Or I should use 5.5.9?

Markus Schönhaber [EMAIL PROTECTED] wrote:
Am Mittwoch, 3. August 2005 17:51 schrieb Markus Schönhaber:

 gunzip -c jakarta-tomcat-5.5.9.tar.gz | tar -x

Exchange jakarta-tomcat-5.5.9.tar.gz to the actual name of the file you want 
to unpack.

Regards
mks

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




(__[TomCigar]___~~~ 




illogical redirect on Tomcat 4.1

2005-08-01 Thread Tom
My Tomcat 4.1.24 returns a 302 (redirect) status on all its physical 
files (so not JSPs or servlets), complete with a valid redirect path. 
Anyone seen this behaviour before?


It also happens on other systems, so it is an Tomcat/application issue. 
But since the application has nothing to do with the physical files...


Tom



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



Cannot create JDBC driver of class - help!!

2005-08-01 Thread Anish Tom Ashley
Hi,
I'm trying to create a struts based application which tries to
access MySQL dB using mysql-connector-java-3.1.10 connector.
I'm having problem with my getConnection() code. The following error
is occurring.

org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC
driver of class ' ' for connect URL 'null'
at
org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.jav
a:780)
at
org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:5
40)
at
com.tavant.app1_2.dao.MySQLLoader.executeQuery(MySQLLoader.java:29)
at
com.tavant.app1_2.action.HomePageAction.execute(HomePageAction.java:28)
at
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProces
sor.java:419)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
..etcetc


I've pasted the server.xml, web.xml and my java program only
including relevant parts.

 server.xml

?xml version='1.0' encoding='utf-8'?
Server
  context path=/teststruts docBase=teststruts.war debug=1
reloadable=true 
Resource name=mydatasource type=javax.sql.DataSource/
ResourceParams name=mydatasource
  parameter
namefactory/name
valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
  /parameter
  parameter
namemaxWait/name
value5000/value
  /parameter
  parameter
namemaxActive/name
value4/value
  /parameter
  parameter
namepassword/name
valuef_695248/value
  /parameter
  parameter
nameurl/name
valuejdbc:mysql://localhost:3306/tavant/value
  /parameter
  parameter
namedriverClassName/name
valuecom.mysql.jdbc.Driver/value
  /parameter
  parameter
namemaxIdle/name
value2/value
  /parameter
  parameter
nameusername/name
valueroot/value
  /parameter
/ResourceParams
  /context  
/Server


-
 web.xml

?xml version=1.0 encoding=ISO-8859-1?

!DOCTYPE web-app
  PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
  http://java.sun.com/j2ee/dtds/web-app_2_3.dtd;
web-app 
 resource-ref
   description
Resource reference to a factory for java.sql.Connection
instances that may be used for talking to a particular
database that is configured in the server.xml file.
   /description
   res-ref-namemydatasource/res-ref-name
   res-typejavax.sql.DataSource/res-type
   res-authContainer/res-auth
 /resource-ref
/web-app


-


 MySQLLoader.java

package com.tavant.app1_2.dao;
import java.sql.Connection;
import java.sql.SQLException;
import java.sql.Statement;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.sql.DataSource;

public class MySQLLoader {
public void executeQuery() {
try { 
InitialContext ctx = new InitialContext();
Context ctx2 = (Context)ctx.lookup(java:comp/env);

DataSource ds = (DataSource)ctx2.lookup(mydatasource);
Connection conn = ds.getConnection();
Statement stmt = conn.createStatement();
stmt.executeUpdate(Insert into customer
values('001','Anish','001'));
stmt.close();   
conn.close();  
 } catch(Exception e) { 
//some code
 } finally{
//some code
 }
}


-



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



Re: Having problem posting to the group

2005-08-01 Thread Tom
Maybe you subscribed with an alias (a different email address than you 
reply-to that also arrives in the same mailbox)?


Tom



Ikonne, Ike wrote:


Hi all,

Could anyone explain to me why I can't post to
[EMAIL PROTECTED]

I get the following error message when I make a post to the group:


Unable to deliver message to the following address(es)
tomcat-user@jakarta.apache.org.
Remote host said: 554 delivery error: This user doesn't have an ac


I know that I subscribe to the group and I do receive postings from the 
members of the group.


Thanks,

Ike


-
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: Problem Running Tomcat on Russian MS Windows

2005-07-28 Thread Tom



1) Why doesn't Tomcat work on Russian MS Windows?
 

May I suggest you describe what the problem is, including the Windows, 
Tomcat, Java versions? Most of us do not have access to Russian Windows 
systems so we can't check it ourselves.



2) Is there anything i can do for Tomcat to run on Russian MS Windows?
 


First have to understand the problem before an answer can be given.


2) Is there any other solution which allows me to run JSP off Russian
MS Windows?
 



There are other Servlet/JSP implementations, like Resin, Oracle, BEA, IBM.

Tom


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



302 for missing files?

2005-07-27 Thread Tom
I'm currently using Tomcat 4.1.24 on WXP. The behaviour that is baffling 
me, is that when a request goes out for a non existing physical file, TC 
returns a 302 (Moved temporarily = redirect) complete with a Location 
for redirection (which is a valid path an the entry point somewhere in 
the application). As a result, the application gets swamped with request 
of the redirection path (on a page with 4 missing images, there are 4 
redirection requests). There is a filter in place on other URLs, and it 
is correctly not accessed by the request-that-gets-a-302.


So:
- Where does the 302 come from?
- And how can Tomcat know a valid Location for the 302?

The same application in production but then with Apache running before 
Tomcat, returns a correct 404.


Tom

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



Compile error in v5 but not v4

2005-07-27 Thread Tom Willson
Hello;

An application I'm trying to support runs without error on Tomcat 4.1.24 on
Windows and Tomcat 4.0.3 on HPUX.

When attempting to have it run on Tomcat 5.0.28 on Windows one of the very
large JSP pages fails to compile:

Jul 27, 2005 3:02:46 PM org.apache.jasper.compiler.Compiler generateClass
SEVERE: Javac exception
Compile failed; see the compiler error output for details.

jsp.java:9924: code too large for try statement
} catch (Throwable t) {

The code is large because of LOT of include statements. No doubt 9924 lines
is excessive. But, is there a setting that will allow this to run in Tomcat
5 or am I faced with refactoring this application?

Thanks,

Tom


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



Embedded Tomcat SSL

2005-05-31 Thread tom ONeill

Hi all,

Can anybody show me how I might get SSL working with embedded Tomcat. When 
creating a Connector I have set the value of the secure parameter equals to 
true but after this I am not sure what else I need to do.


I have taken a look at the code of Embedded and I notice that there is a 
comment of FIX ME where the HTTPS protocol is handled. Does this mean that 
the implementation of SSL with embedded Tomcat is not complete?




} else if (protocol.equals(https)) {
   connector = new Connector();
   connector.setScheme(https);
   connector.setSecure(true);
   // FIXME  SET SSL PROPERTIES
   }

/

Cheers,
Tom

_
Start dating right now with FREE Match.com membership! http://match.msn.ie


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



Re: Embedded Tomcat SSL

2005-05-31 Thread tom ONeill

Hi Aleksandar,

Thanks for this. When I update my code to do this I still cannot connect 
from a browser using HTTPS (https://localhost:443/). I get a Cannot find 
server error in my browser.
But if I change my URL so that I use HTTP (http://localhost:443/) I can see 
the Tomcat homepage. Seems like Tomcat is still only able to handle http 
requests even though I think I have enabled it for SSL.


I have included a extract of my code to illustrate what I am doing.


//


   Connector httpConnector = embedded.createConnector( 
(java.net.InetAddress) null,

443,
true);

   IntrospectionUtils.setProperty(httpConnector, sslProtocol, TLS);
   IntrospectionUtils.setProperty(httpConnector, keypass, 
changeit);
   IntrospectionUtils.setProperty(httpConnector, keystore, 
C:/Documents and Settings/tom/.keystore);



   embedded.addConnector( httpConnector );

  embedded.start();



//


Any ideas what I am doing wrong (I forgot to mention that I am using 
embedded Tomcat 5.5.9).


Cheers,
Tom



From: Aleksandar Valchev [EMAIL PROTECTED]
Reply-To: Tomcat Users List tomcat-user@jakarta.apache.org
To: Tomcat Users List tomcat-user@jakarta.apache.org
Subject: Re: Embedded Tomcat  SSL
Date: Tue, 31 May 2005 11:55:42 +0300

You have to tell tomcat where to find keystore file:

IntrospectionUtils.setProperty(connector, sslProtocol, TLS);
IntrospectionUtils.setProperty(connector, keypass, keystore-password);
IntrospectionUtils.setProperty(connector, keystore, path-to-keystore);

Hope this helps
Aleksandar

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



_
It's finally here! Download Messenger 7.0 - still FREE 
http://messenger.msn.co.uk



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



Re: Embedded Tomcat SSL

2005-05-31 Thread tom ONeill

Hi Aleksandar,

Thanks for this. When I update my code to do this I still cannot connect
from a browser using HTTPS (https://localhost:443/). I get a Cannot find
server error in my browser.
But if I change my URL so that I use HTTP (http://localhost:443/) I can see
the Tomcat homepage. Seems like Tomcat is still only able to handle http
requests even though I think I have enabled it for SSL.

I have included a extract of my code to illustrate what I am doing.


//


   Connector httpConnector = embedded.createConnector(
(java.net.InetAddress) null,
443,
true);

   IntrospectionUtils.setProperty(httpConnector, sslProtocol, TLS);
   IntrospectionUtils.setProperty(httpConnector, keypass,
changeit);
   IntrospectionUtils.setProperty(httpConnector, keystore,
C:/Documents and Settings/tom/.keystore);


   embedded.addConnector( httpConnector );

  embedded.start();



//


Any ideas what I am doing wrong (I forgot to mention that I am using
embedded Tomcat 5.5.9).

Cheers,
Tom



From: Aleksandar Valchev [EMAIL PROTECTED]
Reply-To: Tomcat Users List tomcat-user@jakarta.apache.org
To: Tomcat Users List tomcat-user@jakarta.apache.org
Subject: Re: Embedded Tomcat  SSL
Date: Tue, 31 May 2005 11:55:42 +0300

You have to tell tomcat where to find keystore file:

IntrospectionUtils.setProperty(connector, sslProtocol, TLS);
IntrospectionUtils.setProperty(connector, keypass, keystore-password);
IntrospectionUtils.setProperty(connector, keystore, path-to-keystore);

Hope this helps
Aleksandar

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



_
Start dating right now with FREE Match.com membership! http://match.msn.ie


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



Re: Embedded Tomcat SSL

2005-05-31 Thread tom ONeill

Hi Aleksandar,

When I enabled logging using the BasicConfigurator I now get much more 
logging information (how exactly the logging is configured and what impact 
the value of CATALINA_HOME has I havent been able to figure out but Im sure 
Ill get it eventually).


Anyway the exception being displayed is

/

179070 [http-443-Processor4] DEBUG 
org.apache.tomcat.util.net.PoolTcpEndpoint  - Handshake

failed
javax.net.ssl.SSLHandshakeException: Remote host closed connection during 
handshake

   at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA6275)
   at com.sun.net.ssl.internal.ssl.SSLSocketImpl.j(DashoA6275)
   at 
com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(DashoA6275)




Im guessing this exception is occurring because the server is trying to 
authenticate the client and expects the client to send a certificate so I 
updated my code by adding the line


IntrospectionUtils.setProperty(httpConnector, clientauth, false);

This hasnt resolved my problem but Im sure Ill figure it out eventually. 
Thanks for all your help.


Tom



From: Aleksandar Valchev [EMAIL PROTECTED]
Reply-To: Tomcat Users List tomcat-user@jakarta.apache.org
To: Tomcat Users List tomcat-user@jakarta.apache.org
Subject: Re: Embedded Tomcat  SSL
Date: Tue, 31 May 2005 13:14:14 +0300

On Tuesday 31 May 2005 12:39, tom ONeill wrote:
You see tomcat home page on http://localhost:443/  because tomcat redirects
connection (I think so :) ).

I test this on jakarta-tomcat-5.5.9-embedded:

Connector httpConnector = new Connector();

httpConnector.setScheme(https);
httpConnector.setSecure(true);
httpConnector.setEnableLookups(false);

IntrospectionUtils.setProperty(httpConnector, sslProtocol, TLS);
IntrospectionUtils.setProperty(httpConnector, keypass, changeit);
IntrospectionUtils.setProperty(httpConnector, keystore, C:/Documents and
Settings/tom/.keystore);
IntrospectUtils.setProperty(httpConnector, address,
InetAddress.getLocalhost());
IntrospectUtils.setProperty(httpConnector, port, +443);

Of course you have to create your keystore according to tomcat-5.5.9
documentation.

See in your logs. There has to be errors. To see more tomcat messages while
tomcat starts add at the top of your code BasicConfigurator.configure(). 
This

line configures commons-logging to output debug messages.

If you see Cannot find server, I think the problem is in your 
httpConnector.

While tomcat starts it looks for certificate and private key and if it does
not find it connector just would not start.

I advise you to see your logs ($CATALINA_HOME/logs directory) more 
carefully.


 Hi Aleksandar,

 Thanks for this. When I update my code to do this I still cannot connect
 from a browser using HTTPS (https://localhost:443/). I get a Cannot 
find

 server error in my browser.
 But if I change my URL so that I use HTTP (http://localhost:443/) I can 
see

 the Tomcat homepage. Seems like Tomcat is still only able to handle http
 requests even though I think I have enabled it for SSL.

 I have included a extract of my code to illustrate what I am doing.


 
///

///


 Connector httpConnector = embedded.createConnector(
 (java.net.InetAddress) null,
  443,
  true);

 IntrospectionUtils.setProperty(httpConnector, sslProtocol,
 TLS); IntrospectionUtils.setProperty(httpConnector, keypass,
 changeit);
 IntrospectionUtils.setProperty(httpConnector, keystore,
 C:/Documents and Settings/tom/.keystore);


 embedded.addConnector( httpConnector );

embedded.start();



 
///

///


 Any ideas what I am doing wrong (I forgot to mention that I am using
 embedded Tomcat 5.5.9).

 Cheers,
 Tom

 From: Aleksandar Valchev [EMAIL PROTECTED]
 Reply-To: Tomcat Users List tomcat-user@jakarta.apache.org
 To: Tomcat Users List tomcat-user@jakarta.apache.org
 Subject: Re: Embedded Tomcat  SSL
 Date: Tue, 31 May 2005 11:55:42 +0300
 
 You have to tell tomcat where to find keystore file:
 
 IntrospectionUtils.setProperty(connector, sslProtocol, TLS);
 IntrospectionUtils.setProperty(connector, keypass, 
keystore-password);
 IntrospectionUtils.setProperty(connector, keystore, 
path-to-keystore);

 
 Hope this helps
 Aleksandar
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

 _
 It's finally here! Download Messenger 7.0 - still FREE
 http://messenger.msn.co.uk


 -
 To unsubscribe, e-mail

Can not get Tomcat 5.5.x (specifically 5.5.9) to recompile modified jsp

2005-05-26 Thread Tom Autera
Hello,

When I modify an existing jsp, Tomcat 5.5.9 does not recompile and serve
the jsp.  I have been messing around with the following options, but
nothing seems to work.  I have to bounce Tomcat to get the refresh.

servlet
servlet-namejsp/servlet-name
 
servlet-classorg.apache.jasper.servlet.JspServlet/servlet-class
init-param
param-namecheckInterval/param-name
param-value4/param-value
/init-param
init-param
param-namedevelopment/param-name
param-valuefalse/param-value
/init-param
init-param
param-namemodificationTestInterval/param-name
param-value0/param-value
/init-param
init-param
param-namekeepgenerated/param-name
param-valuefalse/param-value
/init-param
init-param
param-namefork/param-name
param-valuefalse/param-value
/init-param
init-param
param-namexpoweredBy/param-name
param-valuefalse/param-value
/init-param
load-on-startup1/load-on-startup
/servlet


Tom Autera
Yamaha Motor, Cypress
(714) 761-6146


Re: apache-tomcat-mod_jk-ssl

2005-05-24 Thread Tom Holmes Jr.
I have Tomcat 5.5.9 and Apache 2.0.54 running on Windows 2000, 
connecting them with mod_jk (not jk2).
The only thing I want to do now is have Apache run Tomcat in-process 
like I did with jk2, is this possible?

And if it is, what files do I need to update and configure?

Thanks.

 Tom


faisal wrote:


hi guyz
i ve just configured to use my tomcat 5.5.x running on win2k machine with
apache web server 2.0.49 running on fedora core 2 machine. my application
are running perfectly well. infact i m noticing a certain level of increase
in performance. however, i get into troubles as soon as i take my login page
to SSL. i get the error The connection was refused when attempting to
contact myserver:8443.

i will appreciate any help or any pointer to any thread.
P.S. i did try to search through those hundreds of threads.

Thanx in advance



-
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/Apache/JK(2)?

2005-05-20 Thread Tom Holmes Jr.
I have Tomcat 5.5.9 using JK to communicate with Apache 2.0.54 just 
fine.  The workers.properties file is configured correctly, the 
httpd.conf is configured correctly, and I had to make a small change to 
server.xml to call my new site.   This is all running on one Windows 
2000 Server machine.

When I first started this I was getting the problem listed below.   
Looking at the mod_jk.log I found that Tomcat 5.5.9 wasn't listening.   
So, basically what I had to do was start Tomcat MANUALLY, and then 
everything worked perfectly.

So, what I'd like to do is configure JNI so with JK (not JK2 since it is 
now deprecated) and get Apache 2.0.54 to automatically start Tomcat 
5.5.9.   Or, I'd like to use JK (via Apache 2.0.54) to start Tomcat 
5.5.9 in-process.

In short, can I do this? If I can, can someone refer me to the steps 
I have to take in workers.properties, server.xml, and httpd.config to 
make this happen.  

BTW, in my research I have found people using JK to connect Apache 2.0.x 
to Tomat 4.x, but it usually involves modifying server.xml to use the 
Tomcat4 CoyoteConnector, and I wasn;t sure if that was available for 
Tomcat 5.5.

Any help would be much appreciated, and if you need any more information 
from me, please let me know.   Thanks.

  Tom
Tom Holmes Jr. wrote:
I agree I should work with the files first to see if I can get it to 
work.  I used the sample workers.properties file from Tomcat 5.5 in 
order to create my working workers,properties file.So, now when I 
restart Apache2, it doesn't complain and it looks like it is 
communicating with Tomcat 5.5.

However, when I try my JSP page, I get a big 'OK' at the top of the 
screen and then I get this error message:
The server encountered an internal error or misconfiguration and was 
unable to complete your request.

Please contact the server administrator, 
[EMAIL PROTECTED] and inform them of the time the error 
occurred, and anything you might have done that may have caused the 
error.

More information about this error may be available in the server error 
log.

So . after reading the documentation you referred me to, it looks 
like I need to update my httpd.conf file a bit more.   I mean I got 
the LoadModule working, but it looks like I need to add some Jk 
commands like JkMount to my httpd.conf file.   So, I am playing with 
that now.

I might need your files as a sample, but I'll work on this on my own 
for a little while. Thanks very much.

  Tom
Darryl Wilburn wrote:
Tom,
If you need them, I can send you my actual files. Although I 
encourage you to do all you can do on your
own to figure it out.  It'll pay huge dividends in the
end if you understand what you had to do to make it
work.

DW
--- Tom Holmes Jr. [EMAIL PROTECTED] wrote:
 

I can't thank you enough.  I was wondering if anyone
had done it, and you certainly have.
The sample files I have has always been the biggest
hurdle for me also.  The mod_jk.so I am using is
mod_jk-1.2.13-apache-2.0.54.so which I think is for Windows.
I'll refer to the same directions you used, and I am
sure I will get it also.   Thanks for giving me hope that it can be 
done!  Now
I just have to get past those sample files also.

Thanks again!
 Tom
Darryl Wilburn wrote:
  

Tom,
I have Tomcat 5.5.7, Apache 2.0.54, JRE 1.5.0_03,

JK
  

1.2.11, running on Win2k3 server with no problems. The biggest 
hurdle I had to get over was making the
necessary changes on the sample files included with
the software.  (the worker names didn't match)  The
files required are mod_jk.so (downloaded at

http://www.apache.org/dist/jakarta/tomcat-connectors/jk/binaries/)
  

The instructions I followed are at

http://jakarta.apache.org/tomcat/connectors-doc/howto/apache.html.
  

The other files involved are workers.properties,
mod_jk.conf.  The HowTo instructions at the above

link
  

are excellent.
DW
--- Tom Holmes Jr. [EMAIL PROTECTED] wrote:


Ok, I'm not a newbie to Apache 2.x, Tomcat 4.x,
  

JK2
  

with Java SDK 1.4.x  ... I have gotten these to work over the years
  

with
  

few problems either on a Windows or Linux environment.  I've modified
the httpd.conf file and workers2.properties files under Apache 2.x,
  

and
  

the server.xml and jk2.properties under Tomcat 4.x.
However, now I am in unfamiliar territory once
  

more.
  

I am working on Windows 2000, and I want to use Apache 2.x which I
have no problems working with.  But now, I want it to work with
Tomcat 5.5.x ...  so, here the questions begins:
I understand that I should be using the Java SDK
  

1.5
  

now with Tomcat 5.5.x, is that correct?
I always thought that JK2 was the new version of
  

JK.
  

I have always used JK2 to connect tomcat 4.x to Apache 2.x.  I
understand that JK2 is now deprecated and is no longer getting any 
support?  Does this mean I should now use JK to connect Tomcat 
5.5.x

Re: Tomcat/Apache/JK(2)?

2005-05-19 Thread Tom Holmes Jr.
I agree I should work with the files first to see if I can get it to 
work.  I used the sample workers.properties file from Tomcat 5.5 in 
order to create my working workers,properties file.So, now when I 
restart Apache2, it doesn't complain and it looks like it is 
communicating with Tomcat 5.5.

However, when I try my JSP page, I get a big 'OK' at the top of the 
screen and then I get this error message:
The server encountered an internal error or misconfiguration and was 
unable to complete your request.

Please contact the server administrator, [EMAIL PROTECTED] 
and inform them of the time the error occurred, and anything you might 
have done that may have caused the error.

More information about this error may be available in the server error log.
So . after reading the documentation you referred me to, it looks 
like I need to update my httpd.conf file a bit more.   I mean I got the 
LoadModule working, but it looks like I need to add some Jk commands 
like JkMount to my httpd.conf file.   So, I am playing with that now.

I might need your files as a sample, but I'll work on this on my own for 
a little while. Thanks very much.

  Tom
Darryl Wilburn wrote:
Tom,
If you need them, I can send you my actual files. 
Although I encourage you to do all you can do on your
own to figure it out.  It'll pay huge dividends in the
end if you understand what you had to do to make it
work.

DW
--- Tom Holmes Jr. [EMAIL PROTECTED] wrote:
 

I can't thank you enough.  I was wondering if anyone
had done it, and 
you certainly have.

The sample files I have has always been the biggest
hurdle for me also.  
The mod_jk.so I am using is
mod_jk-1.2.13-apache-2.0.54.so which I 
think is for Windows.

I'll refer to the same directions you used, and I am
sure I will get it 
also.   
Thanks for giving me hope that it can be done!  Now
I just have to get 
past those sample files also.

Thanks again!
 Tom
Darryl Wilburn wrote:
   

Tom,
I have Tomcat 5.5.7, Apache 2.0.54, JRE 1.5.0_03,
 

JK
   

1.2.11, running on Win2k3 server with no problems. 
The biggest hurdle I had to get over was making the
necessary changes on the sample files included with
the software.  (the worker names didn't match)  The
files required are mod_jk.so (downloaded at
 

http://www.apache.org/dist/jakarta/tomcat-connectors/jk/binaries/)
   

The instructions I followed are at
 

http://jakarta.apache.org/tomcat/connectors-doc/howto/apache.html.
   

The other files involved are workers.properties,
mod_jk.conf.  The HowTo instructions at the above
 

link
   

are excellent.
DW
--- Tom Holmes Jr. [EMAIL PROTECTED] wrote:
 

Ok, I'm not a newbie to Apache 2.x, Tomcat 4.x,
   

JK2
   

with Java SDK 1.4.x  
... I have gotten these to work over the years
   

with
   

few problems either 
on a Windows or Linux environment.  I've modified
the httpd.conf file 
and workers2.properties files under Apache 2.x,
   

and
   

the server.xml and 
jk2.properties under Tomcat 4.x.

However, now I am in unfamiliar territory once
   

more.
   

I am working on 
Windows 2000, and I want to use Apache 2.x which I
have no problems 
working with.  But now, I want it to work with
Tomcat 5.5.x ...  so, 
here the questions begins:

I understand that I should be using the Java SDK
   

1.5
   

now with Tomcat 
5.5.x, is that correct?

I always thought that JK2 was the new version of
   

JK.
   

I have always used 
JK2 to connect tomcat 4.x to Apache 2.x.  I
understand that JK2 is now 
deprecated and is no longer getting any support?  
Does this mean I 
should now use JK to connect Tomcat 5.5.x with
Apache 2.x?   Do I still 
need a workers2.properties file?

Where can I find documentation on using JK in
   

order
   

to connect Apache 
2.x with Tomcat 5.5.x?   Any sample files I need?

I know I've seen a lot of questions about this on
this list and on the 
net (yes, Google is my friend), but I only get
   

bits
   

and pieces of the 
whole, I was looking for anything more
comprehensive.

Thanks for any help you guys can provide!

   

   

  
Tom

  

   

-
   


 

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

   

		
__ 
Yahoo! Mail Mobile 
Take Yahoo! Mail with you! Check email on your
 

mobile phone. 
   

http://mobile.yahoo.com/learn/mail 

 

-
   

To unsubscribe, e-mail:
 

[EMAIL PROTECTED]
   

For additional commands, e-mail:
 

[EMAIL PROTECTED]
   


 

   

-
 

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

Tomcat/Apache/JK(2)?

2005-05-18 Thread Tom Holmes Jr.
Ok, I'm not a newbie to Apache 2.x, Tomcat 4.x, JK2 with Java SDK 1.4.x  
... I have gotten these to work over the years with few problems either 
on a Windows or Linux environment.  I've modified the httpd.conf file 
and workers2.properties files under Apache 2.x, and the server.xml and 
jk2.properties under Tomcat 4.x.

However, now I am in unfamiliar territory once more.  I am working on 
Windows 2000, and I want to use Apache 2.x which I have no problems 
working with.  But now, I want it to work with Tomcat 5.5.x ...  so, 
here the questions begins:

I understand that I should be using the Java SDK 1.5 now with Tomcat 
5.5.x, is that correct?

I always thought that JK2 was the new version of JK.  I have always used 
JK2 to connect tomcat 4.x to Apache 2.x.  I understand that JK2 is now 
deprecated and is no longer getting any support?   Does this mean I 
should now use JK to connect Tomcat 5.5.x with Apache 2.x?   Do I still 
need a workers2.properties file?

Where can I find documentation on using JK in order to connect Apache 
2.x with Tomcat 5.5.x?   Any sample files I need?

I know I've seen a lot of questions about this on this list and on the 
net (yes, Google is my friend), but I only get bits and pieces of the 
whole, I was looking for anything more comprehensive.

Thanks for any help you guys can provide!

Tom

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


Re: Tomcat/Apache/JK(2)?

2005-05-18 Thread Tom Holmes Jr.
I can't thank you enough.  I was wondering if anyone had done it, and 
you certainly have.

The sample files I have has always been the biggest hurdle for me also.  
The mod_jk.so I am using is mod_jk-1.2.13-apache-2.0.54.so which I 
think is for Windows.

I'll refer to the same directions you used, and I am sure I will get it 
also.   
Thanks for giving me hope that it can be done!  Now I just have to get 
past those sample files also.

Thanks again!
 Tom
Darryl Wilburn wrote:
Tom,
I have Tomcat 5.5.7, Apache 2.0.54, JRE 1.5.0_03, JK
1.2.11, running on Win2k3 server with no problems. 
The biggest hurdle I had to get over was making the
necessary changes on the sample files included with
the software.  (the worker names didn't match)  The
files required are mod_jk.so (downloaded at
http://www.apache.org/dist/jakarta/tomcat-connectors/jk/binaries/)
 The instructions I followed are at
http://jakarta.apache.org/tomcat/connectors-doc/howto/apache.html.
The other files involved are workers.properties,
mod_jk.conf.  The HowTo instructions at the above link
are excellent.

DW
--- Tom Holmes Jr. [EMAIL PROTECTED] wrote:
 

Ok, I'm not a newbie to Apache 2.x, Tomcat 4.x, JK2
with Java SDK 1.4.x  
... I have gotten these to work over the years with
few problems either 
on a Windows or Linux environment.  I've modified
the httpd.conf file 
and workers2.properties files under Apache 2.x, and
the server.xml and 
jk2.properties under Tomcat 4.x.

However, now I am in unfamiliar territory once more.
I am working on 
Windows 2000, and I want to use Apache 2.x which I
have no problems 
working with.  But now, I want it to work with
Tomcat 5.5.x ...  so, 
here the questions begins:

I understand that I should be using the Java SDK 1.5
now with Tomcat 
5.5.x, is that correct?

I always thought that JK2 was the new version of JK.
I have always used 
JK2 to connect tomcat 4.x to Apache 2.x.  I
understand that JK2 is now 
deprecated and is no longer getting any support?  
Does this mean I 
should now use JK to connect Tomcat 5.5.x with
Apache 2.x?   Do I still 
need a workers2.properties file?

Where can I find documentation on using JK in order
to connect Apache 
2.x with Tomcat 5.5.x?   Any sample files I need?

I know I've seen a lot of questions about this on
this list and on the 
net (yes, Google is my friend), but I only get bits
and pieces of the 
whole, I was looking for anything more
comprehensive.

Thanks for any help you guys can provide!
   
   
Tom

   

-
 

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


		
__ 
Yahoo! Mail Mobile 
Take Yahoo! Mail with you! Check email on your mobile phone. 
http://mobile.yahoo.com/learn/mail 

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


Commons-modeler

2005-04-29 Thread Tom Grassia
Hello,
I'm running Fedora Core 2, and am trying to install the latest version of
OX.  I've gone to
Sietse Visser's installation site 
(http://sietse.net/exoops/modules/OpenXchange/) for Fedora/Redhat and have 
made it down
to installing tomcat.

When I try to do the apt-get install tomcat5 I get the following error:
The following packages have unmet dependencies:
tomcat5: Depends: jakarta-commons-modeler but it is not going to be
installed
E: Broken packages
To my knowledge I installed modeler and mx4j (which holds mxri).  Can
someone point me to some very specific instructions to resolve this, or at
least point me in the right direction?
Thanks,
--Tom 


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


Multiple Security Providers with Tomcat

2005-04-18 Thread Tom Bednarz
I have a customer who likes to introduce chipcards with client 
certificates for single-sign-on. I need to add support for that in a 
web-application we provided.

The problem is, that not ALL users of the application may have a 
certificate. So for all not able to present a valid certificate I should 
offer a login screen to authenticate with username / password (which is 
basically the current solution)

Is there any way of configuring multiple security providers in Tomcat 
5.0 and go through them in the authentication process?  If this is 
possible could anybody point me to a configuration exemple?

Many thanks for your help.
Tom
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: webapps/MYAPP/* removed

2005-04-12 Thread Tom A
David,

We have seen this before when accidentally leaving a old context
descriptor in $tomcat_home/conf/Catalina/localhost/
This happened after we created a context.xml inside the WAR and forgot
to delete the old one.

Tom.

On Tue, 12 Apr 2005 15:25:50 +0100, Pawson, David
[EMAIL PROTECTED] wrote:
 tc 5.5.7, 
 each time I try and access localhost/MYAPP
 a) I get a 404
 b) Every now and then the entire structure under webapps/MYAPP
 is deleted.
 
 Is there some control I'm missing please?
 
 Perplexed. 
 
 
 Regards DaveP.
 
  snip here *
 
 -- 
 DISCLAIMER:
 
 NOTICE: The information contained in this email and any attachments is 
 confidential and may be privileged.  If you are not the intended 
 recipient you should not use, disclose, distribute or copy any of the 
 content of it or of any attachment; you are requested to notify the 
 sender immediately of your receipt of the email and then to delete it 
 and any attachments from your system.
 
 RNIB endeavours to ensure that emails and any attachments generated by
 its staff are free from viruses or other contaminants.  However, it 
 cannot accept any responsibility for any  such which are transmitted.
 We therefore recommend you scan all attachments.
 
 Please note that the statements and views expressed in this email and 
 any attachments are those of the author and do not necessarily represent
 those of RNIB.
 
 RNIB Registered Charity Number: 226227
 
 Website: http://www.rnib.org.uk
 
 
 
 
 -
 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]



JasperException, JSP calling wrong overloaded method

2005-03-23 Thread Tom Bryan
I have a custom tag MessageTag that has an overloaded setValue method.  It is 
being used like this.
title
fmt:message value=exception.title /
/title

Instead of calling the setValue(String v) method, the generated code for the 
JSP is calling 
_jspx_th_fmt_message_0.setValue(
(com.cisco.tims.utils.MessageBundle.Descriptor)
org.apache.jasper.runtime.JspRuntimeLibrary.getValueFromPropertyEditorManager(
com.cisco.tims.utils.MessageBundle.Descriptor.class, 
value, 
exception.title)
);

The exception stacktrace starts like this
org.apache.jasper.JasperException: jsp.error.beans.property.conversion
at 
org.apache.jasper.runtime.JspRuntimeLibrary.getValueFromPropertyEditorManager(JspRuntimeLibrary.java:885)
at 
org.apache.jsp.jsp.exception_jsp._jspx_meth_fmt_message_0(exception_jsp.java:329)
at org.apache.jsp.jsp.exception_jsp._jspService(exception_jsp.java:132)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

I would have expected the generated code to be
_jspx_th_fmt_message_0.setValue(exception.title)

Oddly, this code works fine on a Mac OSX machine and a Solaris machine.  I'm  
only seeing this error on my Thinkpad, which is running a customized RedHat 
Enterprise Linux install.  I've tried running with Tomcat 5.0.28 and 5.0.30.  
I've also tried both IBM's and Sun's JDK 1.4.2.  Same error with every 
combination.

Are overloaded setters like this supported?  If so, any pointers on where to 
turn next to troubleshoot this problem?  I've killed a day on it, and I'm out 
of ideas.  I'm hoping that I've just misconfigured something that's easy to 
overlook in my Tomcat installation.

-- 
Tom Bryan 
Test Information Systems  Central Engineering Services
Cisco Systems  USA  NC  RTP

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



SSL Question

2005-03-01 Thread Reis, Tom
I have a quick question about SSL. If I am already running SSL on a 
server with a certificate imported into a .keystore file and I create a new 
certificate will it automatically overwrite the .keystore file by creating a 
new one or does it just add the info into the existing .keystore file. Thanks.


tomcat manager application access

2005-02-24 Thread tom 12345
Hi,
 
We have a requirement to allow the manager application of tomcat to be
accessed only from the local machine, it should not be accessed from remote.
What are the possible ways to achive this.
Can we specify filter request in the manager application context as below
  context value=/manager
 
  Valve className=org.apache.catalina.valves.RemoteHostValve
 allow=127.0.0.1/
  cotext
Will it only allow requests from 127.0.0.1 or should we specify deny attribute 
also.


-
Do you Yahoo!?
 Yahoo! Mail - 250MB free storage. Do more. Manage less.

Re: Tomcat 5.5.7 cannot connect to mysql datasource - what changed?

2005-02-22 Thread Tom A
Richard,

In your context file change

 userName=ltojsw
to
 username=ltojsw

(and of course change your passwd now that it's on the 'net ;-)

This is why you see the error:
Access denied for user ''@'kingfishS11'

I just tried to find some docs to make sure I'm right but I can't see
anything under the 5.5 documentation :-S

Hope this helps
Tom.

On Mon, 21 Feb 2005 07:32:29 -0700, Richard Mixon (qwest)
[EMAIL PROTECTED] wrote:
 
 -Original Message-
 From: Richard Mixon (qwest) [mailto:[EMAIL PROTECTED]
 Sent: 21 February, 2005 7:53 AM
 To: tomcat-user@jakarta.apache.org
 Subject: Tomcat 5.5.7 cannot connect to mysql datasource - what changed?
 
 We have been using Sun Java 1.4.2, Tomcat 5.0.19, MySQL 4.1.7, MySQL
 Connector/J 3.0.15 with Hibernate 2.1.7c with no problems. This is on
 both Windows XP Pro SP2 (development) and SuSE Linux SLES9 (test and
 production).
 
 In order to get failover to work the way we wanted we upgraded to Tomcat
 5.5.7 and Sun Java 1.5. The main change in our application was the new
 format for data soruces in the application context. No problem on
 Windows XP. We've tried to install on one of our Linux servers and are
 having no end of grief getting a DB connection to properly happen.
 
 Any help or ideas would be much appreciated. I've included the
 application context and the catalina log error messages below.
 
 Thanks in advance - Richard
 
 ***- APPLICATION CONTEXT:
 Context path=/stars docBase=stars debug=99 reloadable=true
 privileged=true antiResourceLocking=false antiJARLocking=true
 
 Logger className=org.apache.catalina.logger.FileLogger
 prefix=stars. suffix=.log timestamp=true/
 Realm className=org.apache.catalina.realm.JDBCRealm debug=99
   driverName=com.mysql.jdbc.Driver
connectionURL=jdbc:mysql://192.168.11.3:3306/ltojsw?autoReconnec
 t=trueamp;autoCommit=true
   connectionName=ltojsw connectionPassword=586579
userTable=PoAssociate userNameCol=userid
 userCredCol=password
userRoleTable=PoUserRole roleNameCol=roleName /
 Resourcename=jdbc/stars
  type=javax.sql.DataSource
  auth=Container
 maxActive=100
   maxIdle=10
   maxWait=1
 defaultAutoCommit=true
  userName=ltojsw
  password=586579
   driverClassName=com.mysql.jdbc.Driver
   url=jdbc:mysql://192.168.11.3:3306/ltojsw?aut
 oReconnect=trueamp;autoCommit=true
   removeAbandoned=true
 removeAbandonedTimeout=60
   logAbandoned=true
 /
 /Context
 
 ***- CATALINA ERROR MESSAGES:
 
 SNIP
 19:37:27,642  INFO [http-8080-Processor25]
 DatasourceConnectionProvider:51 - Using datasource:
 java:comp/env/jdbc/stars
 19:37:27,648  INFO [http-8080-Processor25]
 TransactionManagerLookupFactory:33 - No TransactionManagerLookup
 configured (in JTA environment, use of process level read-write cache is
 not recommended)
 AbandonedObjectPool is used
 ([EMAIL PROTECTED])
LogAbandoned: true
RemoveAbandoned: true
RemoveAbandonedTimeout: 60
 19:37:41,696  WARN [http-8080-Processor25] SettingsFactory:107 - Could
 not obtain connection metadata
 org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create
 PoolableConnectionFactory (Server connection failure during transaction.
 Due to underlying exception: 'java.sql.SQLException: Access denied for
 user ''@'kingfishS11' (using password: YES)'.
 
 ** BEGIN NESTED EXCEPTION **
 
 java.sql.SQLException
 MESSAGE: Access denied for user ''@'kingfishS11' (using password: YES)
 
 STACKTRACE:
 
 java.sql.SQLException: Access denied for user ''@'kingfishS11' (using
 password: YES)
 SNIP
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED

Help on config JNDI datasource for DB2

2005-02-22 Thread tom chen
Hello All,
 
Can some show how to set db2 jndi datasource in tomcat 5.5.7.
DB2 and tomcat all in windows XP.
 
tomcat can talk to db2 with direct jdbc connection.
 
Why it is so hard for db2?
 
Thank you very much!
 
--tom


-
Do you Yahoo!?
 Yahoo! Search presents - Jib Jab's 'Second Term'

Tomcat 5.0.28 and ssl

2005-02-22 Thread Reis, Tom
I have set a Tomcat 5.0.28 server with jsdk 1.4.2_04. I had setup the 
keystore and imported the received certificate from verisign. I have configured 
the Tomcat server to use SSL and it shows the certificate is valid but it says 
the name on certificate does not match the site. I look at the name on the 
certificate and it is the dsn name of the server. Is there something I am 
missing?


Can't do log rotation on windows

2005-02-14 Thread Cervenka, Tom








Ive got tomcat 4 running on a win2003 server and it
spits its log messages to a catalina.out file. Once a day I want to
rotate the log  copy it, zip up the copy and truncate the original. I do
this on linux with a simple shell script. Tomcat is running during all of this
and has its mitts into the file but linux doesnt seem to care. Different
story on windows, however. The short story is that catalina.out is corrupted big
time.



Ive had 2 ideas to work around this. One is to stop
the service before truncating the file and start it up again afterwards. This
works but win2003 cant always restart the service, like 50% of the time.
So Ive given up on this route. I need a solution that works while tomcat
is running.



The only idea Ive had for this is to try to get
tomcat to use a filelogger like it provides for its contexts. I made the
changes to server.xml but then never did doodly squat. I know Im not the
only one thats had trouble doing this on windows as Ive seen
other notes to list about it. I posted a note a while back (attached) but no
response. Is it because no one runs tomcat on windows?



-Tom






---BeginMessage---
Title: Tomcat 4 logging on Windows






How do you configure Tomcat 4 on windows to redirect output to a

filelogger type class the creates a new log file every day and releases

old log file handles so the log can be rotated? 


I am talking about global output that normally goes to the console

window, stdout and stderr, not context logging. Looking at the

server.xml one would believe that this is already configured:


!-- Global logger unless overridden at lower levels --

Logger className=org.apache.catalina.logger.FileLogger

prefix=catalina_log. suffix=.txt timestamp=true/


But this doesn't seem to do anything. 


-Tom



-

To unsubscribe, e-mail: [EMAIL PROTECTED]

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



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

Fw: can't deploy Cocoon DependencyCheck Failed

2005-02-05 Thread Tom Sparks
- Original Message - 
From: Tom Sparks [EMAIL PROTECTED]
To: users@cocoon.apache.org
Sent: Saturday, February 05, 2005 1:40 PM
Subject: can't deploy Cocoon DependencyCheck Failed


 help me
 Can't deploy Cocoon on tomcat 5.5
 
 5/02/2005 13:12:18
 org.apache.catalina.core.ApplicationContext log
 INFO: HTMLManager: list: Listing contexts for
virtual
 host 'localhost'
 5/02/2005 13:12:41
 org.apache.catalina.startup.HostConfig deployWAR
 INFO: Deploying web application archive cocoon.war
 5/02/2005 13:12:49
 org.apache.catalina.core.StandardContext start
 SEVERE: Error in dependencyCheck
 java.util.zip.ZipException: invalid entry size
 (expected 2472738816 but got 48 bytes)
 at java.util.zip.ZipInputStream.readEnd(Unknown
 Source)
 at java.util.zip.ZipInputStream.read(Unknown Source)
 at java.util.jar.JarInputStream.read(Unknown Source)
 at java.io.BufferedInputStream.fill(Unknown Source)
 at java.io.BufferedInputStream.read1(Unknown Source)
 at java.io.BufferedInputStream.read(Unknown Source)
 at java.util.jar.JarInputStream.getBytes(Unknown
 Source)
 at java.util.jar.JarInputStream.init(Unknown
 Source)
 at java.util.jar.JarInputStream.init(Unknown
 Source)
 at

org.apache.catalina.util.ExtensionValidator.getManifest(ExtensionValidator.java:368)
 at

org.apache.catalina.util.ExtensionValidator.validateApplication(ExtensionValidator.java:187)
 at

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

org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
 at

org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
 at

org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
 at

org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:800)
 at

org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:497)
 at

org.apache.catalina.startup.HostConfig.check(HostConfig.java:1183)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke0(Native
 Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(Unknown
 Source)
 at

sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
 Source)
 at java.lang.reflect.Method.invoke(Unknown Source)
 at

org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
 at

com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(Unknown
 Source)
 at
 com.sun.jmx.mbeanserver.MetaDataImpl.invoke(Unknown
 Source)
 at

com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(Unknown
 Source)
 at

com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(Unknown
 Source)
 at

org.apache.catalina.manager.ManagerServlet.check(ManagerServlet.java:1377)
 at

org.apache.catalina.manager.HTMLManagerServlet.doPost(HTMLManagerServlet.java:213)
 at

javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
 at

javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
 at

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
 at

org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
 at

org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
 at

org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
 at

org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:482)
 at

org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
 at

org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
 at

org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
 at

org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
 at

org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:825)
 at

org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:738)
 at

org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:526)
 at

org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
 at

org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
 at java.lang.Thread.run(Unknown Source)
 5/02/2005 13:12:49
 org.apache.catalina.core.StandardContext start
 SEVERE: Error getConfigured
 5/02/2005 13:12:49
 org.apache.catalina.core.StandardContext start
 SEVERE: Context startup failed due to previous
errors
 5/02/2005 13:12:49
 org.apache.catalina.core.StandardContext start
 SEVERE: Exception during cleanup after start failed
 LifecycleException:  Container

org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/cocoon]
 has not been started
 at

org.apache.catalina.core.StandardContext.stop(StandardContext.java:4231)
 at

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

org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
 at

org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
 at

org.apache.catalina.core.StandardHost.addChild

RE: My very first servlet cannot be run

2005-01-28 Thread Cervenka, Tom
Change

ACTION=/test.Log4jTester

to

ACTION=/log4j

-Original Message-
From: Van Den Bemt, Patrick (P.) [mailto:[EMAIL PROTECTED] 
Sent: Friday, January 28, 2005 2:08 AM
To: tomcat-user@jakarta.apache.org
Subject: FW: My very first servlet cannot be run

Hi there,

I have got an issue running a very first servlet on tomcat5.

The valid Servlet code for Log4jTester :
package test;
public class Log4jTester {
public void doGet(HttpServletRequest request,
HttpServletResponse response)   throws ServletException, IOException {
}
}

The valid web.xml :
?xml version=1.0 encoding=ISO-8859-1?
!DOCTYPE web-app
PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
http://java.sun.com/dtd/web-app_2_3.dtd;
web-app
display-namePatrickWorkspace/display-name
descriptionThis is the Patrick workspace/description
servlet
servlet-namelog4j/servlet-name
servlet-classtest.Log4jTester/servlet-class
/servlet
servlet-mapping
servlet-namelog4j/servlet-name
url-pattern/log4j/url-pattern
/servlet-mapping
/web-app

The valid log4j.html
HTML
HEAD
TITLE log4jtest /TITLE
HEAD
BODY
FORM TYPE = submit ACTION=/test.Log4jTester METHOD=GET
CENTER 
INPUT TYPE=submit NAME=submit VALUE=go
/CENTER
/FORM
/BODY
/HTML

The valid index.html
HTML
HEAD /HEAD
BODY
A HREF = html/log4j.html log4j /A 
/BODY
/HTML

Deployment:
The deployment works fine.
Tomcat manager lists the PatrickWorkSpace.
PatrickWorkSpace opens the index.html.
Index.html opens the log4j.html
Clicking the Go button on log4j.html results in following error
HTTP Status 404 - /PatrickWorkSpace/test.Log4jTester
type Status report
message /PatrickWorkSpace/test.Log4jTester
description The requested resource (/PatrickWorkSpace/test.Log4jTester)
is not available.

I hope anyone can give me some good hints and tips.

Patrick.

-
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: logging remote IP address

2005-01-28 Thread Cervenka, Tom
Mark,

Why do want to know the internal NAT ip address of a request? How is
this helpful?

Also, what if the requests come from clients with accounts on the same
multiuser system? Are you trying to figure out how to tell them apart?
There is no NAT address in this case.

Maybe what you are trying to do is best solved by using cookies? What is
it that you are trying to do?

Tom




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



Tomcat 4 logging on Windows

2005-01-27 Thread Cervenka, Tom
How do you configure Tomcat 4 on windows to redirect output to a
filelogger type class the creates a new log file every day and releases
old log file handles so the log can be rotated? 

I am talking about global output that normally goes to the console
window, stdout and stderr, not context logging. Looking at the
server.xml one would believe that this is already configured:

!-- Global logger unless overridden at lower levels --
Logger className=org.apache.catalina.logger.FileLogger
prefix=catalina_log. suffix=.txt timestamp=true/

But this doesn't seem to do anything. 

-Tom


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



Tomcat belches out megabytes of white space during log rotation

2005-01-26 Thread Cervenka, Tom
I have this weird problem with an instance of tomcat 4.1.30 running on
Windows Server 2003. Tomcat output (log messages) is directed into
CATALINA_HOME/logs/catalina.out. Every 4 hours a little log rotation
script runs while tomcat is active. It zips catalina.out into an
archived logs folder and then truncates it. All this seems to work ok
and you end up with a small 1KB file. 

 

The problem is that the next log entry to catalina.out (from the next
request) is preceded by around 9MB of white space! After heaving this
load it settles down and writes log messages normally. Until the next
rotation that is. Then the same thing happens. At the first http request
to the server after catalina.out is trucated, boom, around 9 more MB of
white space is dumped into it. Not the exact same amount as before.
Actually, the amount has been going on for several months and the actual
amount of white space spew has been increasing. It started out around
4MB.

 

Has anyone seen this or something similar? I don't see this behavior on
Linux servers. The same script works fine. I feel I should also mention
that this server is configured to reply to SSL (https:) requests
although I'm not sure this is relevant info.

 

-Tom Cervenka



Cannot solve error - No Host name matches server name. Apache 2.0.52, Tomcat 5.5.7

2005-01-25 Thread Tom Kennelly
I am running Apache 2.0.52, Tomcat 5.5.7 (and have tested with Tomcat 
5.5.4 as well) and  mod_jk is 1.28.  All of these major components were 
download in binary mode (no compiling on any component) to run on my 
Fedora system.  Just to clarify both Apache and Tomcat are running on 
the same machine.

I cannot determine why I am getting a  No Host name matches server 
nameerror when trying to execute a jsp on Tomcat through the 
ajp13 connector from Apache.  According to the logs below I believe the 
request is flowing from Apache to Tomcat correctly.

Here is the error I receive according to the Catalina log (see last line):
Jan 25, 2005 11:07:52 AM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Jan 25, 2005 11:07:53 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 12252 ms
Jan 25, 2005 11:07:56 AM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Jan 25, 2005 11:07:56 AM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.7
Jan 25, 2005 11:07:56 AM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Jan 25, 2005 11:08:07 AM org.apache.catalina.core.ApplicationContext log
INFO: org.apache.webapp.balancer.BalancerFilter: init(): ruleChain: 
[org.apache.webapp.balancer.RuleChain: 
[org.apache.webapp.balancer.rules.URLStringMatchRule: Target string: 
News / Redirect URL: http://www.cnn.com], 
[org.apache.webapp.balancer.rules.RequestParameterRule: Target param 
name: paramName / Target param value: paramValue / Redirect URL: 
http://www.yahoo.com], 
[org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL: 
http://jakarta.apache.org]]
Jan 25, 2005 11:08:09 AM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
Jan 25, 2005 11:08:09 AM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
Jan 25, 2005 11:08:11 AM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
Jan 25, 2005 11:08:11 AM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
Jan 25, 2005 11:08:12 AM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Jan 25, 2005 11:08:12 AM org.apache.catalina.startup.ContextConfig 
applicationWebConfig
INFO: Missing application web.xml, using defaults only 
StandardEngine[Catalina].StandardHost[tkennelly].StandardContext[/mydefaults]
Jan 25, 2005 11:08:13 AM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Jan 25, 2005 11:08:14 AM org.apache.jk.common.ChannelSocket init
INFO: JK2: ajp13 listening on /0.0.0.0:8009
Jan 25, 2005 11:08:14 AM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/146  config=null
Jan 25, 2005 11:08:14 AM org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
Jan 25, 2005 11:08:15 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 21274 ms
Jan 25, 2005 1:34:50 PM org.apache.catalina.valves.RequestDumperValve invoke
INFO: REQUEST URI   =/tomk.jsp
Jan 25, 2005 1:34:50 PM org.apache.catalina.valves.RequestDumperValve invoke
INFO:   authType=null
Jan 25, 2005 1:34:50 PM org.apache.catalina.valves.RequestDumperValve invoke
INFO:  characterEncoding=null
Jan 25, 2005 1:34:50 PM org.apache.catalina.valves.RequestDumperValve invoke
INFO:  contentLength=0
Jan 25, 2005 1:34:50 PM org.apache.catalina.valves.RequestDumperValve invoke
INFO:contentType=null
Jan 25, 2005 1:34:50 PM org.apache.catalina.valves.RequestDumperValve invoke
INFO:contextPath=null
Jan 25, 2005 1:34:50 PM org.apache.catalina.valves.RequestDumperValve invoke
INFO: header=host=tkennelly.gotdns.com
Jan 25, 2005 1:34:50 PM org.apache.catalina.valves.RequestDumperValve invoke
INFO: header=user-agent=Mozilla/5.0 (Windows; U; Windows NT 
5.0; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0
Jan 25, 2005 1:34:50 PM org.apache.catalina.valves.RequestDumperValve invoke
INFO: 
header=accept=text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Jan 25, 2005 1:34:50 PM org.apache.catalina.valves.RequestDumperValve invoke
INFO: header=accept-language=en-us,en;q=0.5
Jan 25, 2005 1:34:50 PM org.apache.catalina.valves.RequestDumperValve invoke
INFO: header=accept-encoding=gzip,deflate
Jan 25, 2005 1:34:50 PM org.apache.catalina.valves.RequestDumperValve invoke
INFO: header=accept-charset=ISO-8859-1,utf-8;q=0.7,*;q=0.7
Jan 25, 2005 1:34:50 PM org.apache.catalina.valves.RequestDumperValve invoke
INFO: header=keep-alive=300
Jan 25, 2005 1:34:50 PM org.apache.catalina.valves.RequestDumperValve invoke
INFO: header=connection=keep-alive
Jan 25, 2005 1:34:50 PM 

Re: Cannot solve error - No Host name matches server name. Apache 2.0.52, Tomcat 5.5.7

2005-01-25 Thread Tom Kennelly
Should I also rename the folder in CATALINA_HOME/conf/Catalina from
tkennelly to tkennelly.gotdns.com ?
- Original Message - 
From: Mladen Turk [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Tuesday, January 25, 2005 2:18 PM
Subject: Re: Cannot solve error - No Host name matches server name. Apache
2.0.52, Tomcat 5.5.7


 Tom Kennelly wrote:
  I am running Apache 2.0.52, Tomcat 5.5.7 (and have tested with Tomcat
  5.5.4 as well) and  mod_jk is 1.28.  All of these major components were
  download in binary mode (no compiling on any component) to run on my
  Fedora system.  Just to clarify both Apache and Tomcat are running on
  the same machine.
 

 You are using mod_jk 1.2.6 not 1.2.8 ;).

 Also try to set:

 Host name=tkennelly.gotdns.com ...
 Aliastkennelly/Alias
 ...

 Mladen.

 -
 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: Cannot solve error - No Host name matches server name. Apache 2.0.52, Tomcat 5.5.7

2005-01-25 Thread Tom Kennelly
BTW good catch on the mod-Jk 1.2.6.  I went back and discovered that I can
go down the 1.2.8 path but the resultant binaries on apache.org are all
1.2.6.

- Original Message - 
From: Mladen Turk [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Tuesday, January 25, 2005 2:18 PM
Subject: Re: Cannot solve error - No Host name matches server name. Apache
2.0.52, Tomcat 5.5.7


 Tom Kennelly wrote:
  I am running Apache 2.0.52, Tomcat 5.5.7 (and have tested with Tomcat
  5.5.4 as well) and  mod_jk is 1.28.  All of these major components were
  download in binary mode (no compiling on any component) to run on my
  Fedora system.  Just to clarify both Apache and Tomcat are running on
  the same machine.
 

 You are using mod_jk 1.2.6 not 1.2.8 ;).

 Also try to set:

 Host name=tkennelly.gotdns.com ...
 Aliastkennelly/Alias
 ...

 Mladen.

 -
 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: Cannot solve error - No Host name matches server name. Apache 2.0.52, Tomcat 5.5.7

2005-01-25 Thread Tom Kennelly
I switched the host name and alias as suggested below, recycled both Tomcat
and Apache and received the same error.
- Original Message - 
From: Mladen Turk [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Tuesday, January 25, 2005 2:18 PM
Subject: Re: Cannot solve error - No Host name matches server name. Apache
2.0.52, Tomcat 5.5.7


 Tom Kennelly wrote:
  I am running Apache 2.0.52, Tomcat 5.5.7 (and have tested with Tomcat
  5.5.4 as well) and  mod_jk is 1.28.  All of these major components were
  download in binary mode (no compiling on any component) to run on my
  Fedora system.  Just to clarify both Apache and Tomcat are running on
  the same machine.
 

 You are using mod_jk 1.2.6 not 1.2.8 ;).

 Also try to set:

 Host name=tkennelly.gotdns.com ...
 Aliastkennelly/Alias
 ...

 Mladen.

 -
 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: Cannot solve error - No Host name matches server name. Apache 2.0.52, Tomcat 5.5.7

2005-01-25 Thread Tom Kennelly
Great question.  I rechecked the permissions and set them at 777 to make
sure.

- Original Message - 
From: Mladen Turk [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Tuesday, January 25, 2005 3:41 PM
Subject: Re: Cannot solve error - No Host name matches server name. Apache
2.0.52, Tomcat 5.5.7


 Tom Kennelly wrote:
  I switched the host name and alias as suggested below, recycled both
Tomcat
  and Apache and received the same error.

 Did you set all the permissions correctly?
 Is your vhost directory readable by the tomcat user?

 Mladen.

 -
 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 do you log with verbosity?

2004-11-10 Thread Cervenka, Tom
The Logger component has a verbosity attribute but the
ServletContext.log method doesn't. Now LoggerBase.log does. How do I
access this object from a servlet or jsp?

-Tom Cervenka
University of Illinois

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



Connecting to Apache

2004-11-01 Thread Kralidis,Tom [Burlington]

Hi,

Currently, on a FC2 box, we have tomcat 5.0.25 running on port 8080 and
Apache 2.0.49 running on port 80.  Both deployments are relatively
straightforward.

Having said this, we now have the requirement to serve all web content
from port 80 only.  I have done some initial sifting on how to do this,
and have found pointers to mod_jk and mod_jk2, but not much else in
terms of documentation.

Any hints or helpers, given the server versions above, would be much
appreciated.

Thanks

..Tom

=
Tom Kralidis
Systems Scientist
Environment Canada
Tel: +01-905-336-4409
http://www.ec.gc.ca/

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



RE: usebean not working --Accessing Bean From JSP -- irritating problem

2004-09-24 Thread Vekemans Tom
Close your jsp:setProperty tags properly: / instead of 

Tom
-Original Message-
From: Dinesh Keesara [mailto:[EMAIL PROTECTED] 
Sent: vendredi 24 septembre 2004 6:48
To: [EMAIL PROTECTED]
Subject: jsp:usebean not working --Accessing Bean From JSP -- irritating
problem

the following code is working perfectly:


[EMAIL PROTECTED] import=com.dinesh.* %
% IdCard myidcard=new IdCard();%
%
myidcard.setName(HariKiran);
myidcard.setRollNo(123);
%
%=myidcard.getName()%
br
%=myidcard.getRollNo()%

but if i replace it with jsp:usebean tag it is not working  like this :

[EMAIL PROTECTED] import=com.dinesh.* %
jsp:usebean id=myidcard  class=com.dinesh.IdCard scope=page
jsp:setProperty name=myidcard property=rollNo value=123 
jsp:setProperty name=myidcard property=name value=Harikiran 
%=myidcard.getName()%
br
%=myidcard.getRollNo()%
/jsp:usebean

_
Is cricket your religion? Check out the cricket shop! 
http://www.msn.co.in/Shopping/CricketShop/  CDs, books 'n all things 
cricket!


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



Access web from behind a proxy

2004-09-23 Thread Vekemans Tom
Hi,

We are dealing with an application which consists of some servlets
(running on our Tomcat server) contacting an external server through
HTTP calls. 

We have a proxy server + firewall between our server and the external
one, so we *must* pass trough this proxy server. What I am looking for
is a way to tell Tomcat to use that proxy for outbound calls, but I
don't get it to work. 

I can find a lot of documentation on Tomcat+Proxy but it all talks about
Tomcat being the destination of the requests. In my case, it is the
origin...

Does anyone have any ideas?

Thanks in advance,

Tom Vekemans


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



RE: design patterns

2004-09-23 Thread Vekemans Tom
Aris,

 A pattern describes a proven solution to a recurring design problem,
placing particular emphasis on the context and forces surrounding the
problem, and the consequences and impact of the solution. 

In other words, there is no such thing as a best design pattern, it
all depends on the problem that you are trying to solve.

A good site explaining the J2EE design patterns is this one: 

http://java.sun.com/blueprints/patterns/

Check out the Core J2EE Patterns link for J2EE patterns.

Tom Vekemans



-Original Message-
From: Aris Javier [mailto:[EMAIL PROTECTED] 
Sent: jeudi 23 septembre 2004 9:36
To: [EMAIL PROTECTED]
Subject: design patterns

Hello!
 
J2EE web development has so many design patterns...
Which design pattern is the best? or What are the
purpose of each design patterns?
 
Do you have any article about this?
 
coz i'm currently using MVC design pattern.. and i would
like to study other design patterns.. 
 
Thanks in advance!!!
 
Aris
 


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



RE: small but complex problem -jsp.error.badaction when accessing a bean from a jsp

2004-09-23 Thread Vekemans Tom
Deenesh,

3 tips, for what they are worth:

1) follow the JavaBean specifications when creating a JavaBean. The
class should be serializable, for example.

2) naming conventions: bean properties should start with a lowercase
character. In your bean, setRollNo is the setter for property rollNo.
Also look at naming conventions for classnames etc (usually start with
uppercase).

3) usually it works well but setting ints, longs, etc from a JSP page is
counter-intuitive to me. After all, all a JSP form sends in its request
is text/Strings. That's why I write my setters and getters so that they
accept/return Strings, with parsing contained in the method. So
something like this:

private int RollNo;

public void setRollNo(String num){
this.RollNo=Integer.parseInt(num);
}
public String getRollNo(){
return String.valueOf(RollNo);
}

As for your error: there probably is a root cause in your stacktrace
that should tell you more specifically what went wrong (like a
NullPointerException or some other kind of exception). In any case, it
has nothing to do with Tomcat if you ask me.

Tom
 

-Original Message-
From: Dinesh Keesara [mailto:[EMAIL PROTECTED] 
Sent: jeudi 23 septembre 2004 13:12
To: [EMAIL PROTECTED]
Subject: small but complex problem -jsp.error.badaction when accessing a
bean from a jsp 




Hey can anyone solve this ..

I am using Tomcat 4.1.30 on IE
I am Getting 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: /idcard.jsp(5,5) jsp.error.badaction
at 
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHand
ler.java:94)
at 
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java
:428)
at 
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java
:126)
at org.apache.jasper.compiler.Parser.parseAction(Parser.java:671)
at org.apache.jasper.compiler.Parser.parseElements(Parser.java:803)
at org.apache.jasper.compiler.Parser.parse(Parser.java:122)

and  blah blah blah ..

the jsp file looks as follows:

html
head
/head
body
@page import=com.dinesh.idcard 
jsp:usebean id=myidcard scope=page class=com.dinesh.idcard
jsp:setProperty name=myidcard property=RollNo value=123 /
jsp:setProperty name=myidcard property=Name value=Harikiran /
/jsp:usebean
%=myidcard.getName()%
br
%=myidcard.getRollNo()%
/body
/html

and the bean file looks as follows:

package com.dinesh;
public class idcard{
private int RollNo;
private String Name;
public void setRollNo(int num){
this.RollNo=num;
}
public int getRollNo(){
return RollNo;
}
public void setName(String Name)
{
this.Name=Name;

_
The new MSN toolbar! Your shortcut to the internet! 
http://toolbar.msn.co.in/ Access a world of convenience!


-
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: small but complex problem -jsp.error.badaction when accessing a bean from a jsp

2004-09-23 Thread Vekemans Tom
You will have another error for your usebean tag: it should end with /
instead of 

Tom
 

-Original Message-
From: Antony Paul [mailto:[EMAIL PROTECTED] 
Sent: jeudi 23 septembre 2004 13:59
To: Tomcat Users List
Subject: Re: small but complex problem -jsp.error.badaction when
accessing a bean from a jsp

The problem is at line number 5. org.apache.jasper.JasperException:
/idcard.jsp(5,5) jsp.error.badaction
You forgot to put % sign.
body
@page import=com.dinesh.idcard 
% @page import=com.dinesh.idcard %
jsp:usebean id=myidcard scope=page class=com.dinesh.idcard

rgds
Antony Paul

- Original Message -
From: Dinesh Keesara [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, September 23, 2004 4:42 PM
Subject: small but complex problem -jsp.error.badaction when accessing a
bean from a jsp





 Hey can anyone solve this ..

 I am using Tomcat 4.1.30 on IE
 I am Getting 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: /idcard.jsp(5,5)
jsp.error.badaction
 at

org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHand
ler.
java:94)
 at

org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java
:428
)
 at

org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java
:126
)
 at org.apache.jasper.compiler.Parser.parseAction(Parser.java:671)
 at org.apache.jasper.compiler.Parser.parseElements(Parser.java:803)
 at org.apache.jasper.compiler.Parser.parse(Parser.java:122)

 and  blah blah blah ..

 the jsp file looks as follows:

 html
 head
 /head
 body
 @page import=com.dinesh.idcard 
 jsp:usebean id=myidcard scope=page class=com.dinesh.idcard
 jsp:setProperty name=myidcard property=RollNo value=123 /
 jsp:setProperty name=myidcard property=Name value=Harikiran /
 /jsp:usebean
 %=myidcard.getName()%
 br
 %=myidcard.getRollNo()%
 /body
 /html

 and the bean file looks as follows:

 package com.dinesh;
 public class idcard{
 private int RollNo;
 private String Name;
 public void setRollNo(int num){
 this.RollNo=num;
 }
 public int getRollNo(){
 return RollNo;
 }
 public void setName(String Name)
 {
 this.Name=Name;

 _
 The new MSN toolbar! Your shortcut to the internet!
 http://toolbar.msn.co.in/ Access a world of convenience!


 -
 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: Classloading, jar-files in shared/lib works only when webapp is placed in $CATALINA_HOME/webapps (tomcat 5.0.28)

2004-09-23 Thread Vekemans Tom
What happens if you put the jar file(s) in %yourWebApp%/WEB-INF/lib?

Tom Vekemans
 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: jeudi 23 septembre 2004 14:25
To: Tomcat Users List
Subject: Classloading, jar-files in shared/lib works only when webapp is
placed in $CATALINA_HOME/webapps (tomcat 5.0.28)



I tested a very simple servlet application and found that classes in
jar-files that are placed in $CATALINA_HOME/shared/lib works just fine
when the application is placed under the $CATALINA_HOME/webapps
directory.

However, if the application is placed elsewhere on the disc, let us say
in d:/myTomcat5Test/exploded and then a context configuration file is is
created, let us say
$CATALINA_HOME/conf/Catalina/localhost/myTomcat5Test.xml and pointing
the docBase to d:/myTomcat5Test/exploded, then the application will
throw a ClassNotFoundException.


This is what the context snippet looks like 
*
Context path=/myTomcat5Test docBase=d:/myTomcat5Test/exploded
debug=0 privileged=true
  Logger className=org.apache.catalina.logger.FileLogger
 prefix=localhost_myTomcat5Test_log. suffix=.txt
  timestamp=true/
/Context


When testing the same application under Tomcat4, everyting works just
fine.

Any ideas why folks ?
Regards
Erik






On 2004-09-17 [EMAIL PROTECTED] wrote:


Hello 

Sorry to drag this issue on but, I still don't get Tomcat 5 to
recognize classes in jar files located in $CATALINA_HOME/shared/lib

I tried my orginal application (which was running fine under Tomcat
4.1.x, both on Windows and Linux)
with Tomcat 5.0.28 and then with 5.0.16, both under Windows and Linux,
but the problem with the ClassNotFoundEception still occurred.

Then I decided to reduce as many potential problem areas as possible,
by writing a new very simple application consisting of only one html
page and one servlet, and only one external jar-file. (My original
application was quite large with many jar dependencies)

So I started up my IDE, created the new application, created the
servlet, deployed in tomcat 4.1.x and, placed the jar-file in
/shared/lib and of course it works.
Then I deployed under Tomcat 5.0.28, but no, it does not work. After
moving the jarfile to /common/lib it works though.

This really puzzels me.

What can I do to get to the bottom with this ?
Is there any specific configuration that I could have missed ?
Any other test cases I should perform ?
Should I send my code to someone for inspection ?


Any help is appreciated


On 2004-09-01 Shapira Yoav  wrote:


Hi,
Oh yeah, that reminds me, we might have a bug still present with
classloading from shared/lib in 5.0.x.  Try a much earlier version,
e.g.
5.0.16, and let us know if that works.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 01, 2004 3:58 PM
To: [EMAIL PROTECTED]
Subject: What is the difference in classloading between tomcat 4.1.x
and
5.0.x


In a web application running under Tomcat, I have defined a filter in
the
web.xml file. The filter is pointing to a class that is packed in a
jar-
file, and the jar-file is kept in the $CATALINA_HOME/shared/lib
directory.

In Tomcat 4.1.x the application is working without any problems. When
trying to run the same application under Tomcat 5.0.28 a
java.lang.ClassNotFoundException is thrown.

If the jar-file is placed in $CATALINA_HOME/common/lib, then the
class
is
found  and the application runs without problem.

The same issue appears when using Listeners in the web.xml file.

I have also tried the same setup with 5.0.27 which leads to the same
result.

What is it that has changed between 4.1x and 5.0.x, in regards to
classloading, in order to cause this problem ?

Any help in understanding this problem is appreciated.
Regards
Erik


 **  stacktrace
**
2004-09-01 17:35:07
NamingContextListener[/Catalina/localhost/webdialInstance]:
Resource
parameters for UserTransaction = null
2004-09-01 17:35:07 StandardContext[/webdialInstance]Exception
starting
filter Compress
java.lang.ClassNotFoundException:
se.erit.web.servlet.filters.gzip.GZIPFilter
 at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa
de
r.ja
va:1340)
 at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoa
de
r.ja
va:1189)
 at
org.apache.catalina.core.ApplicationFilterConfig.getFilter(Applicatio
nF
ilte
rConfig.java:211)
 at
org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(Applica
ti
onFi
lterConfig.java:308)
 at
org.apache.catalina.core.ApplicationFilterConfig.init(ApplicationFi
lt
erCo
nfig.java:79)
 at
org.apache.catalina.core.StandardContext.filterStart(StandardContext.
ja
va:3
698)
 at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4
34
9

RE: Access web from behind a proxy

2004-09-23 Thread Vekemans Tom
Hi Andras,

You understood my problem allright. I have tried to set those parameters
but it still didn't work, so I was posting the question to see if there
were other things that I should look at.

Anyway, thank you for your reply.

Kind Regards,

Tom Vekemans

-Original Message-
From: Andras Balogh [mailto:[EMAIL PROTECTED] 
Sent: jeudi 23 septembre 2004 14:42
To: Tomcat Users List
Subject: Re: Access web from behind a proxy

Hello,

This is more like a java question, javva has paramters to set up a proxy

when making http request
(with java.net.URLConnection):
-Dhttp.proxyHost=IP-Proxy-Server -Dhttp.proxyPort=PORT-Proxy-Server
I hope i understood your problem correctly.

Best regards,
Andras.


Vekemans Tom wrote:

Hi,

We are dealing with an application which consists of some servlets
(running on our Tomcat server) contacting an external server through
HTTP calls. 

We have a proxy server + firewall between our server and the external
one, so we *must* pass trough this proxy server. What I am looking for
is a way to tell Tomcat to use that proxy for outbound calls, but I
don't get it to work. 

I can find a lot of documentation on Tomcat+Proxy but it all talks
about
Tomcat being the destination of the requests. In my case, it is the
origin...

Does anyone have any ideas?

Thanks in advance,

Tom Vekemans


-
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: Oracle Driver and JDBC-ODBC still refuses to load

2004-09-23 Thread Vekemans Tom
Hi,

My suggestion: package your application the J2EE way. Create a .war file
with in it a WEB-INF directory. Put your web.xml under WEB-INF, your
classes in WEB-INF\classes (including the package structure) and your
jars (driver classes) under WEB-INF\lib

Tom

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: jeudi 23 septembre 2004 14:55
To: Tomcat Users List
Subject: RE: Oracle Driver and JDBC-ODBC still refuses to load


Hi,
My suggestions: pretend DefaultContext doesn't exist.  Put the Resource
definition in an explicit Context tag for your webapp.  Your web.xml is
fine, and your code is fine.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 22, 2004 10:06 PM
To: tomat-user
Subject: Oracle Driver and JDBC-ODBC still refuses to load


I'm still having a driver loading problem. The error I get is 
:javax.servlet.ServletException: Cannot create JDBC driver of class ''
for
connect URL 'null', cause: No suitable driver
at
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageCon
text
Impl.java:867)
The tomcat version is 5.0.19. The OS is win2k. The Database is Oracle
9.2.
Java Version is 1.4.1
I have tried copying the classes12.zip and renaming to classes12.jar.
Additionally I want to Oracle's web site and tried a couple of
different
JDBC drivers. All gave the same error. I also tried the Oracle driver
for
1.4 as my JAVA_HOME is 1.4.1.02.
I have tried using the JDBC ODBC link driver I received the same error.
But
in this case I was not sure what jar file to copy to
$CATALINA_HOME\common\lib. So I am a bit unsure how valid that is.
I have tried making an xml file in
$CATALINA_HOME\conf\Catalina\localhost
but that did not seem to do any good.
To test the ODBC-JDBC and Oracle JDBC I setup a DefaultContext in
server.xml. I would comment out one and just use the other.
Here are the files let me know if you note anything.
server.xml
Server port=8005 shutdown=SHUTDOWN debug=0
  Listener
className=org.apache.catalina.mbeans.ServerLifecycleListener
debug=0/
  Listener
className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener
debug=0/
  !-- Global JNDI resources --
  GlobalNamingResources
!-- Test entry for demonstration purposes --
Environment name=simpleValue type=java.lang.Integer
value=30/
!-- Editable user database that can also be used by
 UserDatabaseRealm to authenticate users --
Resource name=UserDatabase auth=Container
  type=org.apache.catalina.UserDatabase
   description=User database that can be updated and saved
/Resource
ResourceParams name=UserDatabase
  parameter
namefactory/name

valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value
  /parameter
  parameter
namepathname/name
valueconf/tomcat-users.xml/value
  /parameter
/ResourceParams
  /GlobalNamingResources

 Service name=Catalina
Connector port=8080
   maxThreads=150 minSpareThreads=25
maxSpareThreads=75
   enableLookups=false redirectPort=8443
acceptCount=100
   debug=0 connectionTimeout=2
   disableUploadTimeout=true /
Connector port=8009
   enableLookups=false redirectPort=8443 debug=0
   protocol=AJP/1.3 /
  Realm className=org.apache.catalina.realm.UserDatabaseRealm
debug=0 resourceName=UserDatabase/
!--
   DefaultContext
Resource name=jdbc/OracleDB auth=Container
type=javax.sql.DataSource/
ResourceParams name=jdbc/OracleDB

parameternamefactory/namevalueorg.apache.commons.dbcp.BasicData
Sour
ceFactory/value/parameter
 parameternamemaxWait/namevalue-1/value/parameter
 parameternamemaxActive/namevalue20/value/parameter

parameternamedriverClassName/namevalueoracle.jdbc.driver.Oracle
Driv
er/value/parameter

parameternameurl/namevaluejdbc:oracle:thin:@192.168.1.101:1521:
to1
/value/parameter

parameternameusername/namevalueshankeyp/value/parameter
 parameternamepassword/namevaluezaq123/value/parameter
 parameternamemaxIdle/namevalue10/value/parameter

parameternameremoveAbandoned/namevaluetrue/value/parameter

parameternameremoveAbandonedTimeout/namevalue60/value/parame
ter

parameternamelogAbandoned/namevaluetrue/value/parameter
/ResourceParams
   /DefaultContext
--
   DefaultContext
Resource name=jdbcodbc/OracleDB auth=Container
type=javax.sql.DataSource/
ResourceParams name=jdbcodbc/OracleDB

parameternamefactory/namevalueorg.apache.commons.dbcp.BasicData
Sour
ceFactory/value/parameter

parameternamedriverClassName/namevaluesun.jdbc.odbc.JdbcOdbcDri
ver
/value/parameter

parameternameurl/namevaluejdbc:odbc:to1/value/parameter

parameternameusername/namevalueshankeyp/value/parameter
 parameternamepassword/namevaluezaq123/value/parameter
/ResourceParams
   /DefaultContext
  Host name=localhost debug=0 appBase=webapps
   unpackWARs=true

RE: Access web from behind a proxy

2004-09-23 Thread Vekemans Tom
Hi Andras,

Sounds great, I will give it another shot ;-)

Tom

-Original Message-
From: Andras Balogh [mailto:[EMAIL PROTECTED] 
Sent: jeudi 23 septembre 2004 15:01
To: Tomcat Users List
Subject: Re: Access web from behind a proxy

Hello Tom,

Where do you set these parameters?
We have exactly the same situation here, we are calling an external 
server's Web Service and
works fine.
I use Tomcat 5.0.16 and works also with Tomcat 4.1.x.
In my catalina.bat file i have:
set JAVA_OPTS=-Xms64M -Xmx180M -Dhttp.proxyHost=my.proxy 
-Dhttp.proxyPort=my.port

All the best,
Andras.

Vekemans Tom wrote:

Hi Andras,

You understood my problem allright. I have tried to set those
parameters
but it still didn't work, so I was posting the question to see if there
were other things that I should look at.

Anyway, thank you for your reply.

Kind Regards,

Tom Vekemans

  



-
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: Oracle Driver and JDBC-ODBC still refuses to load

2004-09-23 Thread Vekemans Tom
Thank you Yoav :-)

To set up a datasource on Tomcat (container provided connection pooling)
the following link might help:

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples
-howto.html

Tom Vekemans

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: jeudi 23 septembre 2004 15:10
To: Tomcat Users List
Subject: RE: Oracle Driver and JDBC-ODBC still refuses to load


Hi,

My suggestion: package your application the J2EE way. Create a .war
file
with in it a WEB-INF directory. Put your web.xml under WEB-INF, your
classes in WEB-INF\classes (including the package structure) and your
jars (driver classes) under WEB-INF\lib

That, of course, is impossible if you want to use container-provided
connection pooling.  If one wants to load and configure one's own
connection pooling, the above advice is excellent, and it's what I
follow myself usually.

Yoav



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


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



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



RE: Oracle Driver and JDBC-ODBC still refuses to load

2004-09-23 Thread Vekemans Tom
The web.xml wouldn't change much, just put a resource reference to your
datasource

web-app
  descriptionOracle Test App/description
[...] !-- other stuff regarding the app --
  resource-ref
descriptionOracle Datasource example/description
!-- use the same name as used in the server.xml file --
res-ref-namejdbc/myoracle/res-ref-name 
res-typejavax.sql.DataSource/res-type
res-authContainer/res-auth
  /resource-ref
/web-app

The thing that matters here is the server.xml file, which is where you
define the (application-server-wide-available) datasource.

The jar file should be in $CATALINA_HOME/common/lib/

Good luck,

Tom
 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: jeudi 23 septembre 2004 15:32
To: Tomcat Users List
Subject: RE: Oracle Driver and JDBC-ODBC still refuses to load

I did try what was explained in
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples
-howto.html  I could have missed some step I guess. 
Tom: what would a web.xml file look like if I tried it the J2EE way?


-- Original message -- 

 Thank you Yoav :-) 
 
 To set up a datasource on Tomcat (container provided connection
pooling) 
 the following link might help: 
 

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples

 -howto.html 
 
 Tom Vekemans 
 
 -Original Message- 
 From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
 Sent: jeudi 23 septembre 2004 15:10 
 To: Tomcat Users List 
 Subject: RE: Oracle Driver and JDBC-ODBC still refuses to load 
 
 
 Hi, 
 
 My suggestion: package your application the J2EE way. Create a .war 
 file 
 with in it a WEB-INF directory. Put your web.xml under WEB-INF, your 
 classes in WEB-INF\classes (including the package structure) and your

 jars (driver classes) under WEB-INF\lib 
 
 That, of course, is impossible if you want to use container-provided 
 connection pooling. If one wants to load and configure one's own 
 connection pooling, the above advice is excellent, and it's what I 
 follow myself usually. 
 
 Yoav 
 
 
 
 This e-mail, including any attachments, is a confidential business 
 communication, and may contain information that is confidential, 
 proprietary and/or privileged. This e-mail is intended only for the 
 individual(s) to whom it is addressed, and may not be saved, copied, 
 printed, disclosed or used by anyone else. If you are not the(an) 
 intended recipient, please immediately delete this e-mail from your 
 computer system and notify the sender. Thank you. 
 
 
 - 
 To unsubscribe, e-mail: [EMAIL PROTECTED] 
 For additional commands, e-mail: [EMAIL PROTECTED] 
 
 
 
 - 
 To unsubscribe, e-mail: [EMAIL PROTECTED] 
 For additional commands, e-mail: [EMAIL PROTECTED] 
 


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



RE: Oracle Driver and JDBC-ODBC still refuses to load

2004-09-23 Thread Vekemans Tom
As Yoav pointed out, this doen't work if you want to use/set up
datasources. In that case you should put the driver jar in
$CATALINA_HOME/common/lib/

Tom
 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: jeudi 23 septembre 2004 15:55
To: Tomcat Users List
Subject: RE: Oracle Driver and JDBC-ODBC still refuses to load

Wait a minute didn't you say to put the jars (driver classes) under
WEB-INF\lib ? 



-- Original message -- 

 The web.xml wouldn't change much, just put a resource reference to
your 
 datasource 
 
 
 Oracle Test App 
 [...] 
 
 Oracle Datasource example 
 
 jdbc/myoracle 
 javax.sql.DataSource 
 Container 
 
 
 
 The thing that matters here is the server.xml file, which is where you

 define the (application-server-wide-available) datasource. 
 
 The jar file should be in $CATALINA_HOME/common/lib/ 
 
 Good luck, 
 
 Tom 
 
 
 -Original Message- 
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
 Sent: jeudi 23 septembre 2004 15:32 
 To: Tomcat Users List 
 Subject: RE: Oracle Driver and JDBC-ODBC still refuses to load 
 
 I did try what was explained in 

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples

 -howto.html I could have missed some step I guess. 
 Tom: what would a web.xml file look like if I tried it the J2EE way? 
 
 
 -- Original message -- 
 
  Thank you Yoav :-) 
  
  To set up a datasource on Tomcat (container provided connection 
 pooling) 
  the following link might help: 
  
  

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples

 
  -howto.html 
  
  Tom Vekemans 
  
  -Original Message- 
  From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
  Sent: jeudi 23 septembre 2004 15:10 
  To: Tomcat Users List 
  Subject: RE: Oracle Driver and JDBC-ODBC still refuses to load 
  
  
  Hi, 
  
  My suggestion: package your application the J2EE way. Create a .war

  file 
  with in it a WEB-INF directory. Put your web.xml under WEB-INF,
your 
  classes in WEB-INF\classes (including the package structure) and
your 
 
  jars (driver classes) under WEB-INF\lib 
  
  That, of course, is impossible if you want to use container-provided

  connection pooling. If one wants to load and configure one's own 
  connection pooling, the above advice is excellent, and it's what I 
  follow myself usually. 
  
  Yoav 
  
  
  
  This e-mail, including any attachments, is a confidential business 
  communication, and may contain information that is confidential, 
  proprietary and/or privileged. This e-mail is intended only for the 
  individual(s) to whom it is addressed, and may not be saved, copied,

  printed, disclosed or used by anyone else. If you are not the(an) 
  intended recipient, please immediately delete this e-mail from your 
  computer system and notify the sender. Thank you. 
  
  
 
- 
  To unsubscribe, e-mail: [EMAIL PROTECTED] 
  For additional commands, e-mail: [EMAIL PROTECTED]

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

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


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



Tomcat courses

2004-09-23 Thread Reis, Tom
Do anyone know of any facility in the Illinois area that has technical 
training for Tomcat.Thanks.


Re: How to create/run a Java Service on UNIX

2004-09-10 Thread Tom Simons
Are you just looking for Unix to start a daemon every time it boots? 
That's typically done via a shell script, which accepts start 
stop arguments (sometimes start_msg  stop_msg, too).  These
scripts are in /etc/init.d (/sbin/init.d for HPUX), and there are
corresponding links in /etc/rc.* directories.  Your flavor of Unix
will execute these scripts at boot time (with startup as the arg). 
You just need to make that script execute your application program or
script.  Check out the scripts you already have - for example, the
lp daemon on my system has the usual shell script and 2 links:
find /sbin -name '*lp*' | xargs ls -l  # change /sbin to
/etc, if not HPUX
-r-xr-xr-x   1 bin  bin  1604 Oct 27  1997 /sbin/init.d/lp
lrwxr-xr-x  1 root sys15 Nov 16  2001 /sbin/rc1.d/K280lp -
/sbin/init.d/lp
lrwxr-xr-x  1 root sys15 Nov 16  2001 /sbin/rc2.d/S720lp -
/sbin/init.d/lp


On Fri, 10 Sep 2004 12:02:36 -0700, Daxin Zuo [EMAIL PROTECTED] wrote:
 First I thank very much for the replies. Please continue forward
 instruction.
 this service, written in Java,  will serves two applications: one is online
 with Tomcat, and another one is an offline application. these two
 applications will sometimes update the same data tables. This service will
 provide unique keys, and do something else for these two applications.
 
 This service will not depend on if Tomcat is running or not.
 I want this service on UNIX runs automatically when the computer is started,
 and keep running.
 
 Thanks.
 
 -Original Message-
 From: John Najarian [mailto:[EMAIL PROTECTED]
 Sent: Thursday, September 09, 2004 8:35 PM
 To: 'Tomcat Users List'
 Subject: RE: How to create/run a Java Service on UNIX
 
 It's very easy to launch a Java daemon in Linux/Unix.
 It used to be difficult  require some JNI programming.
 On the GNU site I found a slick way someone wronte in
 Java and it is simple.  What I wanted to know from the
 person asking the question is what they're trying to do
 with the 'Service'. 'Service' this is Unix not winblows.
 Get with the correct lingo! - LOL!
 
 -Original Message-
 From: John Gentilin [mailto:[EMAIL PROTECTED]
 Sent: Thursday, September 09, 2004 7:08 PM
 To: Tomcat Users List
 Subject: Re: How to create/run a Java Service on UNIX
 
 Sorry, missed the beginning of this thread but..
 
 I have this book
 http://half.ebay.com/cat/buy/prod.cgi?cpid=282172meta_id=1
 and I use it often. It has a very good section on how to create a single or
 multi threaded server. It does not go into how to launch this process as
 a daemon thread under Unix. I think all you really need to do is launch the
 process as a background task by appending the  to the end of the
 command line.
 Look at the tomcat Catalina.sh as an example of a startup script to run the
 service in the background.
 
 HTH
 -John G
 
 Daxin Zuo wrote:
 
 The program is written as Java class. Does it requires special functions?
 How to make it a service, keep running and ready to provid data?
 Thanks.
 
 -Original Message-
 From: Mike Curwen [mailto:[EMAIL PROTECTED]
 Sent: Thursday, September 09, 2004 3:30 PM
 To: 'Tomcat Users List'
 Subject: RE: How to create/run a Java Service on UNIX
 
 
 So you've already written this java program, and it has a public static
 void
 main() method, and it all interfaces properly with what you need it to, and
 you just want to know how to make it start when your UNIX box starts?
 
 Or you haven't written the program yet at all, and you want to know how to
 go about doing so?
 
 
 

 
 -Original Message-
 From: Daxin Zuo [mailto:[EMAIL PROTECTED]
 Sent: Thursday, September 09, 2004 5:19 PM
 To: Tomcat Users List
 Subject: RE: How to create/run a Java Service on UNIX
 
 
 Yes. It keep running and sometimes it replies and provides
 some data for other applications.
 
 -Original Message-
 From: John Najarian [mailto:[EMAIL PROTECTED]
 Sent: Thursday, September 09, 2004 2:59 PM
 To: 'Tomcat Users List'
 Subject: RE: How to create/run a Java Service on UNIX
 
 
 Do you want to run this as a daemon?
 
 
 
 
 
 -
 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]
 



How do I read only the XML data in doPost(req,res)?

2004-08-31 Thread tom ly
I'm receiving a HTTP POST request containg XML data and want to process the data in 
the doPost method of my servlet.  When I do request.getContentLength(), it gives the 
length of the entire request including the HTTP header etc, but I only want the XML 
portion of it.  I can't find any Java methods which will return only the data part of 
the request.  How can I do this?
 
Thanks,
Tom


-
Do you Yahoo!?
Win 1 of 4,000 free domain names from Yahoo! Enter now.

How do I read only the XML data in doPost(req,res)?

2004-08-31 Thread tom ly
I'm receiving a HTTP POST request containg XML data and want to process the data in 
the doPost method of my servlet.  When I do request.getContentLength(), it gives the 
length of the entire request including the HTTP header etc, but I only want the XML 
portion of it.  I can't find any Java methods which will return only the data part of 
the request.  How can I do this?
 
Thanks,
Tom




-
Do you Yahoo!?
Win 1 of 4,000 free domain names from Yahoo! Enter now.

How do I send and receive raw XML data(not SOAP) to and from Tomcat

2004-08-30 Thread tom ly
I'm familiar with using AXIS webservices to send SOAP-XML to Tomcat and back.  But how 
do i receive a request and send a response with raw XML data so that I can then parse 
the request with SAX?
 
Thanks so much,
Tom


-
Do you Yahoo!?
Win 1 of 4,000 free domain names from Yahoo! Enter now.

Re: [OT] How do I send and receive raw XML data(not SOAP) to and from Tomcat

2004-08-30 Thread tom ly
Duh haven't slept for 48 hours and forgot about servlets.  Thanks a lot for 
reminding me!
 
-Tom

QM [EMAIL PROTECTED] wrote:
On Mon, Aug 30, 2004 at 01:36:40PM -0700, tom ly wrote:
: 
: I'm familiar with using AXIS webservices to send SOAP-XML to Tomcat and back. But 
how do i receive a request and send a response with raw XML data so that I can then 
parse the request with SAX?

[I've marked your thread as off-topic.]

I'm not sure where you're going with this, but it doesn't sound
Tomcat-specific. 

If you still want to use Axis, scan the docs for message style
services.

Otherwise, Tomcat doesn't care whether it's processing HTML, plaintext,
binary, whatever: you write a servlet that processes the incoming
request and sends some response.

-QM

-- 

software -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


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


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

How can I display number of requests over the past n seconds?

2004-07-29 Thread tom ly
I need to display on a .jsp page the number of requests for Tomcat in the past 5 / 10 
/ 15/ 30 / 45 / 60 seconds.  I've already implement a Filter will count the total 
number of requests.  I did this with a static int, which is incremented everytime a 
request comes in.  But what should I do so that I can show number of request over past 
time intervals?  Since the present time is always changing, the past n seconds is 
constantly changing also.  
Thanks in advance,
Tom

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Tomcat 5.0.25 default page

2004-07-23 Thread Reis, Tom
Is there a way to change the default page that comes up when you type in the server 
url to come up with a JSP application's welcome page instead on the Tomcat welcome 
page or in there a redirection parameter in Tomcat. I have a server that is only 
running the one application and would like for it to come up when typing in the server 
url. Thanks.

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



Re: JK-Connector 1.2.x on IIS6 ?

2004-07-12 Thread Tom Burke
I don't know about JK-Connector 1.2. However, since I got JK_2 working
last week I have been running IIS 6 on a Windows 2003 Server in proper
'IIS 6' mode, ie with IIS 5 Emulation not ticked. All other config
details were as normal. It seems to work OK, in a very light load demo
environment.

This is with JK_2 2.04.

Tom Burke

- Original Message - 
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, July 12, 2004 10:27 AM
Subject: JK-Connector 1.2.x on IIS6 ?


Hello,

We run a TomCat4-Farm with JK-Connector's 1.2.x on IIS6 Frontends.
We can't upgrade to Tomcat5 / JK 2.x jet.
IIS 6 is set to IIS 5 Compatible Mode as described in the Setup.
Now I heared it is also possible to run that in normal IIS6-Mode
somehow...

Can anyone help / supply a Howto?

--
Björn Andersen

-
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: Authentication method 'DIGEST'

2004-07-12 Thread Tom Burke
What kind of Windows environment are you in? I think you've got to be a
NT or Active Directory domain.

Tom Burke

- Original Message - 
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, July 12, 2004 2:28 PM
Subject: Authentication method 'DIGEST'



 Does anyone know if the DIGEST authentication is supported by Tomcat
5?
 I have been trying to get it working with a Tomcat 5.0.24 on Windows
and the default UserDatabase, but have not been completely successful.
The authentication of a user seems to work OK (with the browser dialog
being and so), but the principal is not available and probably the roles
are not set and also I still get a

 HTTP Status 403 - Access to the requested resource has been denied

 With the same configuration, changing only the method from DIGEST to
BASIC works without problems.


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



Re: Integrating Tomcat and IIS

2004-07-09 Thread Tom Burke
Success in the end. Thanks to those who offered advice.

I have to say that I'm not too clear why it's working now but wasn't
before. There are a few differences in the configuration - eg, at which
level in IIS the filter is installed; the 'name' of the filter; changes
to jk2.properties - but none of these on its own seemed to make a
difference. Hopefully I can spend some time today stepping back one
difference at a time until I find what breaks it, then I'll mail that
finding to the list.

Tom Burke

- Original Message - 
From: Tom Burke [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, July 07, 2004 2:41 PM
Subject: Integrating Tomcat and IIS


 I sent a long email to the list on Tuesday asking for help with
problems
 I'm having intergating Tomcat with IIS. Sadly, there were no replies.
My
 email was rather long - lots of examples, config file extracts, etc -
so
 maybe recipients found it hard to digest.

 So I'll recast it as a shorter request: is there anyone on the list
who
 has succeeded in integrating Tomcat (4 or 5) with IIS (5 or 6)? If so,
 are there any tips you can pass on? Any problems you experienced and
 overcame? And if anyone else has had problems and *not* been able to
 overcome them, what were they?

 Incidentally, I was following this set of instructions:

https://www.rit.edu/~ack5504/tomcat-iis6-howto/narantugs-sengee-guide.html

 Tom Burke


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



Re: Integrating Tomcat and IIS

2004-07-08 Thread Tom Burke

- Original Message - 
From: Januski, Ken [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Wednesday, July 07, 2004 6:38 PM
Subject: RE: Integrating Tomcat and IIS


 I do believe though that you didn't mention whether you had the
 green arrow in the isapi filter on IIS.

Yes, it was...

 If so that tells us something. The
 one thing that has bitten me many times is setting the isapi filter in
more
 than one place, e.g. the default web app AND under Master Server
Properties.
 I've read people suggest both on this list. For me I know that the
default
 web app has worked but that if I had both it failed. Other than that
I'd
 suggest that you let us know whether or not you get the green arrow,
and if
 so then what errors you're seeing after that.

Ah! I may well have had the isapi filter installed in multiple
locations.

Tom


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



Integration of IIS and Tomcat

2004-07-05 Thread Tom Burke
These are early days with Tomcat for me. Specifically, I'm trying to
integrate Tomcat with IIS. I'm running Tomcat 4.1.30 and IIS 5.1 on XP
Pro. I have downloaded and installed  isapi-redirector2.dll, I have
configured IIS as required in the configuration instructions, I have
edited the registry and added the Keys and Key Words as required. I have
downloaded numerous configuration instructions, and have in particular
followed this one:-
https://www.rit.edu/~ack5504/tomcat-iis6-howto/narantugs-sengee-guide.html

I know that IIS is working as I can successfully browse to
http://localhost/iisstart.asp  . And I also know that Tomcat is working
because browsing to localhost:8080 brings up the familiar Tomcat welcome
screen.

Looking at the Testing section of that guide, I can run step 11 and 12,
and thus call up the  html page from IIS, but clicking on any of the jsp
links produces a 'Page cannot be displayed' error, with 'Cannot find
server or DNS error' as' as the reason.

Looking in the IIS logs I see this line after requesting the link to the
jsp:
12:49:08 127.0.0.1 GET /jakarta/isapi_redirector2.dll 200
which of course is the 'success' return code (as far as IIS is
concerned); ie, IIS is happy that it's passed the request on to the
redirector.

It looks as if the redirector simply isn't using any of the Tomcat
contexts. There's a couple of lines in workers2.properties that specifiy
a context:
[uri:/examples/jsp/*.jsp]
Context=/examples/jsp

However crawling through server.xml seemed to indicate that there wasn't
a context defined in there to match the context in workers2.properties,
so I added ths section to server.xml:

!--  Test /examples/jsp context... --
  Context path=/examples/jsp docBase=examples/jsp debug=5
reloadable=true crossContext=true
  Logger className=org.apache.catalina.logger.FileLogger
prefix=localhost_examples_jsp_log. suffix=.txt timestamp=true /
  Ejb name=ejb/EmplRecord type=Entity
home=com.wombat.empl.EmployeeRecordHome
remote=com.wombat.empl.EmployeeRecord /
  /Context

And again there's some evidence that this has been read and acted upon -
I now have a new logfile called localhost_examples_jsp_log.

But I'm still not getting .jsp pages served by IIS. Can anyone advise
any further action I can take, or places to look?

Tom Burke



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



RE: I've officially decided that JSTL is one of the worst things to ever happen to mankind

2004-07-04 Thread Tom K
Ivan, tell us how you really feel  :-)
 
Not to be a smart As_  but Ive felt the same way about changes, for the
better?  not always, but it progresses to the next point where there is
an improvement. For example, remember the old client/server
technology? It sounded good at first until everyone discovered that
maintaining Fat clients was a total nightmare. Now we use java and the
client is a browser, is it better? Yea, probably, but it could be
simpler if all browsers worked the same. Use the technology that fits
your needs.
 
Tom K.
 
 
 
-Original Message-
From: Ivan Jouikov [mailto:[EMAIL PROTECTED] 
Sent: Sunday, July 04, 2004 1:04 AM
To: 'Tomcat Users List'
Subject: I've officially decided that JSTL is one of the worst things to
ever happen to mankind
 
After getting convinced to try JSTL, I learned the following things:
 
1.   JSTL and EL are inefficient.  Tests on similar pages clearly
showed that.  (compare - ${name} with %=name%, run in a loop 1
times, youll see the difference)
2.   JSTL is cumbersome  someone told me once that the reason they
use JSTL is because their designers are scared of %=% code, but they
have no problem throwing around XML statements.  Well, whats my advice
to him: hire new designers, and fire your high school students.  On one
hand, yeah ${parameter.name} is very nice relatively to
%=request.getParameter(name)%.  But after playing around with JSTLs
ull see what I mean.  Also, when your designers screwes up with the
logical structure of your web-site cuz he thought he could just throw
around tags, youll think twice.  Which brings me to the next point
3.   XML is for data flow, not for logic.  Whoever the hell thought
of tags like c:if and c:choose should be murdered in the worst way
possible.  With JSTLs exporting and importing variables, and all the
logical statements and loops, the whole idea of XML gets destroyed.
4.   EL encourages sloppy syntax.  It doesnt even have data types
(well it has on the bottom level, but not on the surface).  Remember
JavaScript?  Did you know that at first, it was supposed to be
server-side scripting language?  You know the reason it didnt make it
(one of the major ones)?  Because of its sloppy syntax and the amount of
errors it caused.  Why bring it back?
5.   Server-side content and client-side content should be
separated.  When everything looks like HTML (in some way), its hard to
tell what actually gets processed, and what gets sent to the client as
static (if you have all-nighters, youll understand).
6.   JSTL is time-consuming.  The whole idea of JSTL was to speed up
the process.  Not only is it less efficient than embedding code the
normal way, but it also takes you forever to make something new with it.
Dont believe me?  Just try it.
7.   The only reason JSTL was made is so that guys at Apache could
write some stupid book explaining its hella complicated syntax, and
charge people $50 for it.  See, its just like the C++ story.  Why was
C++ invented?  To give programmers jobs.  No other reason whatsoever, C
does whatever C++ does just as good, and better.  So I am not sure if
JSTL is a step to having advanced developers who get paid more because
they took time to learn retarded JSTL syntax and EL, or is it just
Apaches developers way of making money (and I am surre Oreilly and
the bros are thankful too).
 
Point of this message:  DO NOT USE JSTL OR EL.  Youll regret it.  I
did.
 
 
   _  


Best Regards,

Ivan V. Jouikov
(206) 228-6670
HYPERLINK http://www.ablogic.net/;
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.701 / Virus Database: 458 - Release Date: 07.06.2004


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.682 / Virus Database: 444 - Release Date: 5/11/2004


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.682 / Virus Database: 444 - Release Date: 5/11/2004
 


RE: how to check if a String is empty?

2004-06-24 Thread Tom K
Every once in a while you see this question pop-up and the same thing
happens...you get a whole bunch of answers. Remember that a String is
an Object and not a primitive e.g. int, long etc. So in that regard if
it is not an int but an Integer what would you use to test for an empty
String. Think about it. 
Tom Kochanowicz


-Original Message-
From: Frank Zammetti [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 24, 2004 12:27 PM
To: [EMAIL PROTECTED]
Subject: Re: how to check if a String is empty?

Depends I guess :)  I personally find the use of a magic number to be
more 
complex.  To my eyes, it's clearer to see an empty string.  The
intention is 
more clear.

Kind of a silly debate I suppose because neither is exactly rocket
science 
;)


From: Robert F. Hall [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: Re: how to check if a String is empty?
Date: Thu, 24 Jun 2004 10:22:06 -0700

Howdy,

if (test == null || test.trim().length() == 0 ) { }  is simpler.

/Robert

Frank Zammetti wrote:

I've always done

if (test == null || test.trim().equalsIgnoreCase()) { }

(I'm anal about always using equalsIgnoreCase unless I know for sure
that 
case sensitivity is required).  No need to do anything more complex
than 
that in my experience. Always do the simplest thing that will work.

Frank


From: Robert Bateman [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: Re: how to check if a String is empty?
Date: Fri, 18 Jun 2004 12:58:30 -0400

Wouldn't   test.trim().length() be a better test?  length() after trm

would
tell you if non white-space was left.

Bob


On Thursday 24 June 2004 12:30 pm, Peter Guyatt wrote:
  Hi There,
 
  You could do the check test.length()  0
 
  Pete
 
  -Original Message-
  From: Carl Olivier [mailto:[EMAIL PROTECTED]
  Sent: 24 June 2004 17:18
  To: 'Tomcat Users List'
  Subject: RE: how to check if a String is empty?
 
 
  There is a trim() funtion in java.lang.String
 
  ?
 
  -Original Message-
  From: Marten Lehmann [mailto:[EMAIL PROTECTED]
  Sent: 24 June 2004 06:20 PM
  To: 'Tomcat Users List'
  Subject: how to check if a String is empty?
 
 
  Hello,
 
  maybe this is not the perfect group for my question, but as my
problem
  appears at the development of JSPs and tomcat is concerned with
that, 
I
  hope you can answer it.
 
  I often see the condition
 
  String test = req.getParameter(test);
 
  if (test == null) {
  /* string is empty */
  } else {
  /* string contains something */
  }
 
  But if test contains just blanks and other whitespaces, it's not
null,
  but doesn't contain usable data anyhow. How can I check if a
string
  contains whitespaces only? I though of something like
 
  if (test == null || test.trim().equals()) {
  }
 
  but there's no trim()-function, right? How do you solve this
problem?
  With whitespaces I mean blanks, tabs and newlines.
 
  Regards
  Marten
 


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


_
Make the most of your family vacation with tips from the MSN Family
Travel 
Guide! http://dollar.msn.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]


_
FREE pop-up blocking with the new MSN Toolbar  get it now! 
http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/


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

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.682 / Virus Database: 444 - Release Date: 5/11/2004
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.682 / Virus Database: 444 - Release Date: 5/11/2004
 


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



log4j:WARN No appenders could be found

2004-06-17 Thread Tom K
I am using Tomcat 5.0.19 and I get the log4j:WARN No appenders could be
found error on startup. I have a log4j-1.2.8.jar file in my apps /lib
director. Should the log4j.properties file be in the same directory?
 
TIA 
 
Tom K.
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.682 / Virus Database: 444 - Release Date: 5/11/2004
 


RE: How can I access a file located in WEB-INF

2004-06-16 Thread Tom K
File dir = new File(directoryName);

String[] children = dir.list();
if (children == null) {
// Either dir does not exist or is not a directory
} else {
for (int i=0; ichildren.length; i++) {
// Get filename of file or directory
String filename = children[i];
}
}

Tom Kochanowicz

-Original Message-
From: STOCKHOLM, Raymond [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 16, 2004 2:15 AM
To: Tomcat Users List
Subject: How can I access a file located in WEB-INF

Hi,

I need to access a file located in the directory WEB-INF of my web
application.
In fact, in WEB-INF/conf.
How can I open this file in one of my servlet ?

Any advise is welcome.

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

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.682 / Virus Database: 444 - Release Date: 5/11/2004
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.682 / Virus Database: 444 - Release Date: 5/11/2004
 


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



RE: How can I access a file located in WEB-INF

2004-06-16 Thread Tom K
I suppose you could use a getRelativePath()

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 16, 2004 2:15 PM
To: Tomcat Users List
Subject: RE: How can I access a file located in WEB-INF


Hi,
Just remember getRealPath returns null in a packed WAR file.  Better
approaches are in the tomcat FAQ.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Frank Zammetti [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 16, 2004 3:14 PM
To: [EMAIL PROTECTED]
Subject: RE: How can I access a file located in WEB-INF

Further, you will probably want to be able to construct the path to
/WEB-
INF
at runtime rather than hardcoding paths... You can do that as follows:

String fullPath = getServletContext().getRealPath(path);

where path is a context-relative path (can include a filename if you
want).

For instance, I use this in a Struts plug-in to initialize a custom
connection pool.  The value I use for path is /WEB-
INF/ConnPoolConfig.xml.
  The above gives you the full system path to the file (in my case,
C:\tomcat\webapps\toa\WEB-INF on my development machine), so you can
easily
open it then.

If you just use the above to get the path to a path (i.e., you want the
fully-qualified path to WEB-INF in the current webapp, but not a
specific
file), you will need to append a file separator character at the end
before
appending a filename.

Frank

From: Tom K [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Subject: RE: How can I access a file located in WEB-INF
Date: Wed, 16 Jun 2004 13:52:42 -0500

File dir = new File(directoryName);

 String[] children = dir.list();
 if (children == null) {
 // Either dir does not exist or is not a directory
 } else {
 for (int i=0; ichildren.length; i++) {
 // Get filename of file or directory
 String filename = children[i];
 }
 }

Tom Kochanowicz

-Original Message-
From: STOCKHOLM, Raymond [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 16, 2004 2:15 AM
To: Tomcat Users List
Subject: How can I access a file located in WEB-INF

Hi,

I need to access a file located in the directory WEB-INF of my web
application.
In fact, in WEB-INF/conf.
How can I open this file in one of my servlet ?

Any advise is welcome.

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

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.682 / Virus Database: 444 - Release Date: 5/11/2004


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.682 / Virus Database: 444 - Release Date: 5/11/2004



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


_
MSN 9 Dial-up Internet Access fights spam and pop-ups - now 3 months
FREE!
http://join.msn.click-url.com/go/onm00200361ave/direct/01/


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




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


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

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.682 / Virus Database: 444 - Release Date: 5/11/2004
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.682 / Virus Database: 444 - Release Date: 5/11/2004
 


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



Tomcat 4.1.30 and IIS 6.0

2004-06-16 Thread Reis, Tom
I am using the AJP13 connector with Tomcat 4.1.30 and IIS 6.0 (Windows
2003 server) and I am receiving the following errors. The application
appears to be running fine. Any ideas.
 
Wed Jun 16 14:50:22 2004]  [jk_ajp_common.c (738)]: ERROR: can't receive
the response message from tomcat, network problems or tomcat is down.
err=-1
[Wed Jun 16 14:50:22 2004]  [jk_ajp_common.c (1137)]: Error reading
reply from tomcat. Tomcat is down or network problems.
[Wed Jun 16 14:50:22 2004]  [jk_ajp_common.c (1290)]: ERROR: Receiving
from tomcat failed, recoverable operation. err=0
[Wed Jun 16 14:51:09 2004]  [jk_ajp_common.c (738)]: ERROR: can't
receive the response message from tomcat, network problems or tomcat is
down. err=-1
[Wed Jun 16 14:51:09 2004]  [jk_ajp_common.c (1137)]: Error reading
reply from tomcat. Tomcat is down or network problems.
[Wed Jun 16 14:51:09 2004]  [jk_ajp_common.c (1290)]: ERROR: Receiving
from tomcat failed, recoverable operation. err=0
[Wed Jun 16 14:54:28 2004]  [jk_ajp_common.c (738)]: ERROR: can't
receive the response message from tomcat, network problems or tomcat is
down. err=-1
[Wed Jun 16 14:54:28 2004]  [jk_ajp_common.c (1137)]: Error reading
reply from tomcat. Tomcat is down or network problems.
[Wed Jun 16 14:54:28 2004]  [jk_ajp_common.c (1290)]: ERROR: Receiving
from tomcat failed, recoverable operation. err=0
[Wed Jun 16 15:06:30 2004]  [jk_ajp_common.c (738)]: ERROR: can't
receive the response message from tomcat, network problems or tomcat is
down. err=-1
[Wed Jun 16 15:06:30 2004]  [jk_ajp_common.c (1137)]: Error reading
reply from tomcat. Tomcat is down or network problems.
[Wed Jun 16 15:06:30 2004]  [jk_ajp_common.c (1290)]: ERROR: Receiving
from tomcat failed, recoverable operation. err=0
[Wed Jun 16 15:09:45 2004]  [jk_ajp_common.c (738)]: ERROR: can't
receive the response message from tomcat, network problems or tomcat is
down. err=-1
[Wed Jun 16 15:09:45 2004]  [jk_ajp_common.c (1137)]: Error reading
reply from tomcat. Tomcat is down or network problems.
[Wed Jun 16 15:09:45 2004]  [jk_ajp_common.c (1290)]: ERROR: Receiving
from tomcat failed, recoverable operation. err=0
[Wed Jun 16 15:11:31 2004]  [jk_ajp_common.c (738)]: ERROR: can't
receive the response message from tomcat, network problems or tomcat is
down. err=-1
[Wed Jun 16 15:11:31 2004]  [jk_ajp_common.c (1137)]: Error reading
reply from tomcat. Tomcat is down or network problems.
[Wed Jun 16 15:11:31 2004]  [jk_ajp_common.c (1290)]: ERROR: Receiving
from tomcat failed, recoverable operation. err=0
[Wed Jun 16 15:12:30 2004]  [jk_ajp_common.c (738)]: ERROR: can't
receive the response message from tomcat, network problems or tomcat is
down. err=-1
[Wed Jun 16 15:12:30 2004]  [jk_ajp_common.c (1137)]: Error reading
reply from tomcat. Tomcat is down or network problems.
[Wed Jun 16 15:12:30 2004]  [jk_ajp_common.c (1290)]: ERROR: Receiving
from tomcat failed, recoverable operation. err=0
[Wed Jun 16 15:13:52 2004]  [jk_ajp_common.c (738)]: ERROR: can't
receive the response message from tomcat, network problems or tomcat is
down. err=-1
[Wed Jun 16 15:13:52 2004]  [jk_ajp_common.c (1137)]: Error reading
reply from tomcat. Tomcat is down or network problems.
[Wed Jun 16 15:13:52 2004]  [jk_ajp_common.c (1290)]: ERROR: Receiving
from tomcat failed, recoverable operation. err=0
[Wed Jun 16 15:14:47 2004]  [jk_ajp_common.c (738)]: ERROR: can't
receive the response message from tomcat, network problems or tomcat is
down. err=-1
[Wed Jun 16 15:14:47 2004]  [jk_ajp_common.c (1137)]: Error reading
reply from tomcat. Tomcat is down or network problems.
[Wed Jun 16 15:14:47 2004]  [jk_ajp_common.c (1290)]: ERROR: Receiving
from tomcat failed, recoverable operation. err=0
[Wed Jun 16 15:20:47 2004]  [jk_ajp_common.c (738)]: ERROR: can't
receive the response message from tomcat, network problems or tomcat is
down. err=-1
[Wed Jun 16 15:20:47 2004]  [jk_ajp_common.c (1137)]: Error reading
reply from tomcat. Tomcat is down or network problems.
[Wed Jun 16 15:20:47 2004]  [jk_ajp_common.c (1290)]: ERROR: Receiving
from tomcat failed, recoverable operation. err=0
[Wed Jun 16 15:37:59 2004]  [jk_ajp_common.c (738)]: ERROR: can't
receive the response message from tomcat, network problems or tomcat is
down. err=-1
[Wed Jun 16 15:37:59 2004]  [jk_ajp_common.c (1137)]: Error reading
reply from tomcat. Tomcat is down or network problems.
[Wed Jun 16 15:37:59 2004]  [jk_ajp_common.c (1290)]: ERROR: Receiving
from tomcat failed, recoverable operation. err=0



RE: Database connection problems after redeploying war

2004-06-14 Thread Tom . Williams





Go to this URL:

http://jakarta.apache.org/site/mail2.html#Tomcat

and click the Unsubscribe link and follow the instructions.

Peace

Tom



   
 Arikawe, 
 Akindele  
 (DeleArikawe) To 
 [EMAIL PROTECTED] Tomcat Users List 
 rontexaco.com[EMAIL PROTECTED]
cc 
 06/14/2004 01:06  
 AMSubject 
   RE: Database connection problems
   after redeploying war   
 Please respond to 
   Tomcat Users   
   List   
 [EMAIL PROTECTED] 
  rta.apache.org  
   
   




Please can you help me. I do I stop receiving emails from this
community? It's filling up my mail box rapidly

Thanks

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Friday, June 11, 2004 9:28 PM
To: [EMAIL PROTECTED]
Subject: Re: Database connection problems after redeploying war







We've got the exact same issue in our environment at all.   Every time
we
define a datasource, we have to restart Tomcat so that datasource can be
accessed.  Additionally, when using a traditional web server frontend,
like Apache or IIS, with mod_jk or mod_jk2, we have to restart the web
server so the mod_jk connector will restart and be able to use the
datasources
available to the restarted Tomcat.   We were hoping using a web server
frontend with a mod_jk(2) connector would not require bouncing the web
server each time we bounced Tomcat but that's just not the case.   :(

Any ideas for solving this would be greatly appreciated.

Peace...

Tom





 Chad Boyd

 [EMAIL PROTECTED]

 .net
To
   [EMAIL PROTECTED]

 06/11/2004 12:38
cc
 PM


Subject
   Database connection problems
after
 Please respond to redeploying war

   Tomcat Users

   List

 [EMAIL PROTECTED]

  rta.apache.org









I'm having trouble accessing a database connection after war
redeployment.  I've read the documentation several times and went
through suggestions posted in the mailing lists, but nothing has worked.
I prefer the approach of having the context.xml file in the META-INF
directory in the war itself.  When I try this, I get the infamous
Cannot create JDBC driver of class '' for connect URL 'null' error
message.  When I put the context element back into the server.xml
file, everything is fine, except for the fact that I can't redeploy the
war file without restarting Tomcat.  This is very frustrating and
time-consuming.  Does anyone know why the context.xml file is not
working for me?  I've included the contents of this file below.  I'm
using Tomcat 5.0.19.

Thanks in advance.

Chad

Context debug=0 docBase=h path=/h privileged=false
reloadable=false Logger
className=org.apache.catalina.logger.FileLogger
   prefix=localhost_h_log. suffix=.txt
timestamp=true/

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

   ResourceParams name=jdbc/myPool
   parameter
 namefactory/name
 valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
   /parameter
   parameter
 namemaxActive/name
 value100/value
   /parameter
   parameter
 namemaxIdle/name
 value30/value
   /parameter
   parameter
 namemaxWait/name
 value1/value
   /parameter
   parameter
 nameremoveAbandoned/name
 valuetrue/value
   /parameter
   parameter
 namelogAbandoned/name
 valuetrue/value
   /parameter
   parameter
 nameusername/name
 value.../value
 /parameter
   parameter
 namepassword/name
 value.../value
 /parameter
parameter
 namedriverClassName/name
 valuecom.inet.tds.TdsDriver/value
 /parameter
parameter
 nameurl/name
 value.../value
  /parameter
   /ResourceParams

RE: Database connection problems after redeploying war

2004-06-12 Thread Tom . Williams





Sweet!  Thanks for the info!

Peace

Tom



   
 Chad Boyd   
 [EMAIL PROTECTED] 
 .net  To 
   Tomcat Users List 
 06/12/2004 12:14  [EMAIL PROTECTED]
 PM cc 
   
   Subject 
 Please respond to RE: Database connection problems
   Tomcat Users   after redeploying war   
   List   
 [EMAIL PROTECTED] 
  rta.apache.org  
   
   
   




OK, finally figured it out.  I moved the Resource elements that
contained the connection pools into the GlobalNamingResources element
in server.xml.  I then created the context.xml file that contained
ResourceLink elements that pointed to the ones defined in the global
section mentioned before.  I had tried this before with no luck, but I
figured out why this didn't work before.  When deploying the war via the
manager app, I was specifying the path parameter in the URL.  I guess in
doing this the context.xml file was ignored during deployment.  I can
now redeploy the war without having to restart Tomcat.

-Original Message-
From: Chad Boyd
Sent: Friday, June 11, 2004 10:01 PM
To: Tomcat Users List
Subject: RE: Database connection problems after redeploying war

How about the original question.  It seems we got off subject here.  Can
someone please read the original post and see if you have a solution.

Thanks.

-Original Message-
From: Joyce Li [mailto:[EMAIL PROTECTED]
Sent: Friday, June 11, 2004 4:38 PM
To: 'Tomcat Users List'
Subject: RE: Database connection problems after redeploying war

Hans,

   Thanks very much for your reply.  I think it might still be related,
because the null pointer exception I got is from
DelegatingConnection.close().  However, I never thought it's bugs of
dbcp or Oracle driver, since if I setup the datasource manually
(following the example code in DBCP website), I have no problem to get
database connection.  I couldn't figure out why when Tomcat initiated
the action of configuring the dbcp resource, it will fail.  Anyway,
thanks again for your input.  It's encouraging to know someone else also
works on the similar problem.  Thanks again!

-Original Message-
From: Hans [mailto:[EMAIL PROTECTED]
Sent: Friday, June 11, 2004 2:29 PM
To: Tomcat Users List; 'Tomcat Users List'
Subject: RE: Database connection problems after redeploying war

Oops! Misread the stacktrace I am afraid my previous mail does not
apply to your problem... sorry ...
hmm perhaps I should go get some sleep

At 14:09 11/06/2004 -0700, Joyce Li wrote:
I also have 1 problem related the database connection which needs help.
I used to have the infamous No suitable driver error, but after I
corrected my connect string by adding schema into it (defined in
context.html), it works for me:

parameter
  nameurl/name

valuejdbc:oracle:thin:schema@server:port:sid/value
/parameter

 After this, Tomcat has no problem to locate the driver, and I got
a
valid DataSource back via JNDI lookup.  However, when I tried to use
DataSource to getConnection, I got the following error: (part of the
stack trace)

init exception: java.lang.NullPointerException
java.lang.NullPointerException
 at
org.apache.commons.dbcp.DelegatingConnection.close(DelegatingConnecti
on.java:195)
 at
org.apache.commons.dbcp.PoolableConnection.reallyClose(PoolableConnec
tion.java:129)
 at
org.apache.commons.dbcp.PoolableConnectionFactory.destroyObject(Poola
bleConnectionFactory.java:311)
 at
org.apache.commons.dbcp.BasicDataSource.validateConnectionFactory(Bas
icDataSource.java:842)
 at
org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSou
rce.java:821)
 at
org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource
.java:532)

  I have no idea where the Null Pointer Exception came from, and
the
DataSource I got back from server is not null either.  I posted this
problem before but no one answered.  Now I write a class just to load
the driver and get the database pool by myself, and it works!  But I
still want to have the database

RE: Execute servlet at an interval.

2004-06-11 Thread Tom K
Try Quartz http://www.quartzscheduler.org/quartz/

Tom Kochanowicz


-Original Message-
From: Gabi [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 11, 2004 2:03 AM
To: [EMAIL PROTECTED]
Subject: Execute servlet at an interval.

Hello, I'm going to migrate a Resin to Tomcat application, I'm beggining
with Tomcat, I'm very interested reading Tomcat feature, etc...
But I can't find a similar feature to Resin run-at parameter in the
configuration files for the servlets, wich is used to execute at regular
intervals a servlet.
¿Can I do the same without changing the application?
¿How?
Thanks in advance.


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

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.682 / Virus Database: 444 - Release Date: 5/11/2004
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.682 / Virus Database: 444 - Release Date: 5/11/2004
 


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



Re: Database connection problems after redeploying war

2004-06-11 Thread Tom . Williams





We've got the exact same issue in our environment at all.   Every time we
define a datasource, we have to restart Tomcat so that datasource can be
accessed.  Additionally, when using a traditional web server frontend, like
Apache or IIS, with mod_jk or mod_jk2, we have to restart the web server so
the mod_jk connector will restart and be able to use the datasources
available to the restarted Tomcat.   We were hoping using a web server
frontend with a mod_jk(2) connector would not require bouncing the web
server each time we bounced Tomcat but that's just not the case.   :(

Any ideas for solving this would be greatly appreciated.

Peace...

Tom



   
 Chad Boyd   
 [EMAIL PROTECTED] 
 .net  To 
   [EMAIL PROTECTED]
 06/11/2004 12:38   cc 
 PM
   Subject 
   Database connection problems after  
 Please respond to redeploying war 
   Tomcat Users   
   List   
 [EMAIL PROTECTED] 
  rta.apache.org  
   
   




I'm having trouble accessing a database connection after war
redeployment.  I've read the documentation several times and went
through suggestions posted in the mailing lists, but nothing has worked.
I prefer the approach of having the context.xml file in the META-INF
directory in the war itself.  When I try this, I get the infamous
Cannot create JDBC driver of class '' for connect URL 'null' error
message.  When I put the context element back into the server.xml
file, everything is fine, except for the fact that I can't redeploy the
war file without restarting Tomcat.  This is very frustrating and
time-consuming.  Does anyone know why the context.xml file is not
working for me?  I've included the contents of this file below.  I'm
using Tomcat 5.0.19.

Thanks in advance.

Chad

Context debug=0 docBase=h path=/h privileged=false
reloadable=false
Logger className=org.apache.catalina.logger.FileLogger
   prefix=localhost_h_log. suffix=.txt
timestamp=true/

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

   ResourceParams name=jdbc/myPool
   parameter
 namefactory/name
 valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
   /parameter
   parameter
 namemaxActive/name
 value100/value
   /parameter
   parameter
 namemaxIdle/name
 value30/value
   /parameter
   parameter
 namemaxWait/name
 value1/value
   /parameter
   parameter
 nameremoveAbandoned/name
 valuetrue/value
   /parameter
   parameter
 namelogAbandoned/name
 valuetrue/value
   /parameter
   parameter
 nameusername/name
 value.../value
 /parameter
   parameter
 namepassword/name
 value.../value
 /parameter
parameter
 namedriverClassName/name
 valuecom.inet.tds.TdsDriver/value
 /parameter
parameter
 nameurl/name
 value.../value
  /parameter
   /ResourceParams
/Context



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



RE: unable to connect to mysql db on localhost

2004-06-08 Thread Tom K
Are you using the latest connectorJ version? If so change
org.gjt.mm.mysql.Driver to com.mysql.jdbc.Driver


Tom Kochanowicz

-Original Message-
From: ilasno [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 08, 2004 9:34 PM
To: [EMAIL PROTECTED]
Subject: unable to connect to mysql db on localhost

hello,

i'm running tomcat 5.0.16 on debian linux with webmin, which provides 
mysql.  i've created a test database, and set up a user with what i 
think are the proper permissions.  here's the datasource resource from 
the server.xml that's nested within a context:

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

  ResourceParams name=jdbc/dbName

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

parameter
namemaxActive/name
value100/value
  /parameter

parameter
namemaxIdle/name
value30/value
  /parameter

parameter
namemaxWait/name
value1/value
  /parameter

parameter
nameusername/name
valuexx/value
  /parameter

parameter
namepassword/name
valuexx/value
  /parameter

parameter
namedriverClassName/name
valueorg.gjt.mm.mysql.Driver/value
  /parameter

parameter
nameurl/name
 
valuejdbc:mysql://localhost/dbName?autoReconnect=true/value
  /parameter

parameter
nameremoveAbandoned/name
valuetrue/value
  /parameter

parameter
namelogAbandoned/name
valuetrue/value
  /parameter
 
  /ResourceParams

but when i try to access, i get this exception, taken from the logs for 
that context:

2004-06-08 19:18:24 AbandonedObjectPool is used 
([EMAIL PROTECTED])
   LogAbandoned: true
   RemoveAbandoned: true
   RemoveAbandonedTimeout: 300
org.apache.commons.dbcp.SQLNestedException: Cannot create 
PoolableConnectionFactory, cause:
java.sql.SQLException: Cannot connect to MySQL server on localhost:3306.

Is there a MySQL server running on the machine/port you are trying to 
connect to? (java.net.ConnectException)
at org.gjt.mm.mysql.Connection.connectionInit(Unknown Source)

incidentally (or maybe not), i have other datasources configured pretty 
much identically that work fine for another context that are connecting 
to remote mysql servers.

any suggestions?

thanks for your time.

-- 
ilasno


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

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.682 / Virus Database: 444 - Release Date: 5/11/2004
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.682 / Virus Database: 444 - Release Date: 5/11/2004
 


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



RE: Problem in inserting word document into database as a blob object under tomcat server

2004-06-07 Thread Tom K
I see you are using an Oracle database.
String text;
while(re.next(){ 
dbBlob = (oracle.sql.BLOB)rs.getBlob(1)
}
text = dbBlob.getSubString(1,((intdbBlob.length()));

Why not use a CLOB if it's text.
Now you are my wife.

Tom K.



-Original Message-
From: Thangamani, Elanjchezhiyan (Cognizant)
[mailto:[EMAIL PROTECTED] 
Sent: Monday, June 07, 2004 11:11 PM
To: [EMAIL PROTECTED]
Subject: Problem in inserting word document into database as a blob
object under tomcat server


 Hi,
 I am inserting word document into database as a blob. It is inserting
successfully but we try to download it is not downloading. The insertion
itself having some problem



 //code listed below


 StringBuffer query = new StringBuffer(Insert into
PMS_Documents(DOCUMENTID, DOCUMENT_NAME, DOCUMENT_TYPE_ID,
DOCUMENT_DESCRIPTION, DOCUMENT_CTYPE,CREATED_BY,
CREATED_DATE,DOCUMENT_BLOB) values();
 pmskey =getSequence(Document.nextval);
 query.append(pmskey);
 query.append(,');
 query.append(form.getDocumentName());
 query.append(',);
 query.append(Integer.parseInt(getLookUPId(document,
form.getDocumentType(;
 query.append(,');
 query.append(form.getDocumentDescription().trim());
 query.append(',');
 query.append(form.getDocumentBlob().getContentType());
 query.append(',');
 query.append(form.getDocumentCreatedBy());
 query.append(',sysdate,EMPTY_BLOB()));
 query.toString();
 .
 conn = getConnection();
 conn.setAutoCommit(false);
 stat = conn.createStatement();
 stat.execute(query);
 stat.execute(commit);
 String SQL_GET_BY_PK =select document_blob from PMS_Documents where
documentId=+ pmskey + for update nowait ;
 rs = stat.executeQuery(SQL_GET_BY_PK);
 rs.next();
 ResourceBundle resBun = ResourceBundle.getBundle(pms);
 String server = resBun.getString(server);
 if (server.equals(tomcat)) {
 dbBlob = (oracle.sql.BLOB)rs.getBlob(1); //problem occurs here only

 }
 else {
 weblogic.jdbc.rmi.SerialOracleBlob cast1 =
(weblogic.jdbc.rmi.SerialOracleBlob)rs.getBlob(1);
 weblogic.jdbc.rmi.internal.OracleTBlobImpl cast2 =
(weblogic.jdbc.rmi.internal.OracleTBlobImpl)cast1.getTheRealBlob();
 dbBlob = (oracle.sql.BLOB)cast2.getTheRealBlob();
 }
 inStream = new
BufferedInputStream(form.getDocumentBlob().getInputStream());
 //createDocument(inStream);
 outStream = dbBlob.getBinaryOutputStream();
 while((len = inStream.read()) != -1) {
 outStream.write(len);
 fileSize += len;
 }
 if(inStream != null) {
 inStream.close();
 inStream = null;
 }
 if(outStream != null) {
 outStream.close();
 outStream = null;
 }


 I am getting problem in tomcat only . weblogic it is working fine.


 Thanks in Advance
 Elan
 



This e-mail and any files transmitted with it are for the sole use of
the intended recipient(s) and may contain confidential and privileged
information.
If you are not the intended recipient, please contact the sender by
reply e-mail and destroy all copies of the original message.

Any unauthorised review, use, disclosure, dissemination, forwarding,
printing or copying of this email or any action taken in reliance on
this e-mail is strictly

prohibited and may be unlawful.

  Visit us at http://www.cognizant.com

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.682 / Virus Database: 444 - Release Date: 5/11/2004
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.682 / Virus Database: 444 - Release Date: 5/11/2004
 


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



RE: How to know if platform is Windows or Linux from jsp?

2004-06-02 Thread Tom . Williams

Return Receipt
   
Your  RE: How to know if platform is Windows or Linux from jsp?
document   
:  
   
was   Tom Williams/HQ/dssi 
received   
by:
   
at:   06/02/2004 10:42:31 AM   
   





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



Which connector to use JK 1.2 or JK 2

2004-05-27 Thread Reis, Tom
I am confused as to which connector to use for connecting II 6.0 Tomcat 
4.1.30. It appears that either the JK 1.2 or the JK 2 will work but I am uncertain. If 
someone could clarify the difference between these connectors and which to use I would 
greatly appreciate it. Thanks.

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



  1   2   3   4   5   6   >