Address already in use error

2005-04-28 Thread Pawson, David
tc 5028 on Redhat.

catalina.out shows

28-Apr-2005 07:55:35 org.apache.coyote.http11.Http11Protocol init
SEVERE: Error initializing endpoint
java.net.BindException: Address already in use:80

Cleared by rebooting the system.

Any suggestions as to a cause please?
Apache isn't running, AFAIK there are no other port 80 users
on the system.


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]



RE: Address already in use error

2005-04-28 Thread Pawson, David
 

-Original Message-
From: Lutz Zetzsche 

 28-Apr-2005 07:55:35 org.apache.coyote.http11.Http11Protocol init
 SEVERE: Error initializing endpoint
 java.net.BindException: Address already in use:80

 Cleared by rebooting the system.

 Any suggestions as to a cause please?
 Apache isn't running, AFAIK there are no other port 80 
users on the 
 system.

I can reproduce this error message on my system when trying 
to start Tomcat although it is already running.

Ah! That would make sense, I did start and stop it many times.

Thanks for that.

regards DaveP

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



doPost action in response to curl post

2005-04-19 Thread Pawson, David

I'm a bit lost using doPost() to react to a curl test
post with an xml file, either post or put.
http://curl.haxx.se/docs/httpscripting.html

Seemingly I need to use commons fileupload for 
an RFC 1867 post
curl -F [EMAIL PROTECTED] -F press=OK [URL]

which seems overly complex for a simple file.
I'm really unsure how to access a single xml file
uploaded using a put.

  curl -T uploadfile http://localhost/myapp

Does anyone have any url's with examples of this please?


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]



RE: Can't multipart post large(ish) files via Tomcat 5.0.28

2005-04-19 Thread Pawson, David
http://jakarta.apache.org/commons/fileupload/using.html

says

// Create a new file upload handler
DiskFileUpload upload = new DiskFileUpload();

// Set upload parameters
upload.setSizeThreshold(yourMaxMemorySize);
upload.setSizeMax(yourMaxRequestSize);
upload.setRepositoryPath(yourTempDirectory);


which enables the use of a write to disk when big facility.

HTH DaveP.
 

-Original Message-
From: Derrick Koes [mailto:[EMAIL PROTECTED] 
Sent: 19 April 2005 13:43
To: Tomcat Users List
Subject: RE: Can't multipart post large(ish) files via Tomcat 5.0.28


Are you using struts?

Make sure your controller element tempDir property value 
matches that of the web apps context element's workDir.  
The workDir is where uploaded files over a certain size 
(256KB is the default I think) will be written prior to 
their final destination.  Perhaps Jboss has a working 
directory that needs to match as well.  H.


-Original Message-
From: Gareth Williams [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 19, 2005 7:31 AM
To: Tomcat Users List
Subject: RE: Can't multipart post large(ish) files via Tomcat 5.0.28

Using commons-fileupload results in the same problem.  I 
looked at the source, and the commons class FileUploadBase 
gets its input stream from the HttpServletRequest (as you 
would expect :) and hence I get the same errors/problematic 
behaviour.  Whatever is going wrong would appear to be 
either within Tomcat or within the underlying windows 
socket tcp/ip stuff 

I am surprised nobody else seems to have hit this upload 
problem given the number of people using Tomcat5.0.28 + 
Jboss 3.2.6.  Has anyone got any ideas?

Cheers, Gareth


#
Winner - e-Government excellence 2004. 
Runner up - European Information Management awards 2004:
- The Premier Project Award. 
- B2C Commerce Project Award. 
- CRM Project Award. 

For more information visit us at www.voxgen.com


#
Note:
This message is for the named person's use only.  It may 
contain confidential, proprietary or legally privileged 
information.  No confidentiality or privilege is waived or 
lost by any mistransmission.  If you receive this message 
in error, please immediately delete it and all copies of it 
from your system, destroy any hard copies of it and notify 
the sender.  You must not, directly or indirectly, use, 
disclose, distribute, print, or copy any part of this 
message if you are not the intended recipient. Vox 
Generation Limited and any of its subsidiaries each reserve 
the right to monitor all e-mail communications through its networks.

Any views expressed in this message are those of the 
individual sender, except where the message states 
otherwise and the sender is authorised to state them to be 
the views of any such entity.

Thank You.

#


#
This e-mail message has been scanned for Viruses and 
Content and cleared by NetIQ MailMarshal 

#


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



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

java.lang.UnsupportedClassVersionError ?

2005-04-15 Thread Pawson, David

Been trying out java 1.5
Now back to using 1.4.2.06

When I run what was a working servlet, I'm getting 
the above error, and

'Unsupported major.minor version 49.0'

Is this Tomcat or java please?

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]



RE: java.lang.UnsupportedClassVersionError ?

2005-04-15 Thread Pawson, David
 

-Original Message-
From: Peter Crowther
 
 'Unsupported major.minor version 49.0'
 
 Is this Tomcat or java please?

Java.  A .class file has been compiled with a more recent 
compiler than the runtime that's in use.  Did you compile 
the servlet with the 1.5 javac?  If so, clean out the 
.class files and recompile with 1.4.2.

Thanks Peter.

regards DaveP

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



RE: webapps/MYAPP/* removed

2005-04-13 Thread Pawson, David
 

-Original Message-
From: Anoop kumar V 
If you need help then u will have to provide more 
information. Since this is quite an unusual problem - 
anything out of the ordinary will be a good place to start from.

I suggest you start from the log files - check them and 
tell us what is in them - any messages on the console..


See log below.

By the way - what is contained in the MYAPP folder - have 
you followed the creation of a web app - WEB-INF 
WEB-INF/web.xml WEB-INF/classes WEB-INF/lib

Yes, since its being removed I'm now copying to there as part of a script
(on win2k).

{catalina_home}/webapps
   /hub
 /WEB-INF
   web.xml
   /classes
 hub.class
   /ROOT
 index.html


(MYAPP = hub)



etc etc..
   

Apr 12, 2005 11:38:27 AM org.apache.catalina.core.ApplicationContext log
INFO: HTMLManager: list: Listing contexts for virtual host 'localhost'
java.io.FileNotFoundException: C:\tomcat557\webapps\hub\WEB-INF (Access is 
denied)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.init(Unknown Source)
at 
org.apache.catalina.startup.ExpandWar.copyInternal(ExpandWar.java:226)
at org.apache.catalina.startup.ExpandWar.copy(ExpandWar.java:192)
at 
org.apache.catalina.startup.ContextConfig.antiLocking(ContextConfig.java:882)
at 
org.apache.catalina.startup.ContextConfig.beforeStart(ContextConfig.java:919)
at 
org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:251)
at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:3871)
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.deployDescriptor(HostConfig.java:590)
at 
org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:535)
at 
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:470)
at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1169)
at 
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:292)
at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at 
org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1301)
at 
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1561)
at 
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1570)
at 
org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1550)
at java.lang.Thread.run(Unknown Source)

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



RE: webapps/MYAPP/* removed

2005-04-13 Thread Pawson, David
 

-Original Message-
From: Tom A 

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.

Hi Tom.
  I don't find the documentation very clear on the context/ element.
Used to be a part of server.xml, probably should be in 
/conf/Catalina/localhost/ and named after the app( which I believe is 
correct?). 
  
I have Context displayName=RNIB Hub
docBase=hub
path=/hub
workDir=work/Catalina/localhost/hub
reloadable=true

  logger className=org.apache.catalina.logger.FileLogger 
  directory=logs
  prefix=hub. 
  suffix=.log 
  timestamp=true
  /
/Context

in hub.xml in /conf/Catalina/localhost/

I've stopped using the manager app, which seems quite happy to zap
most of my configuration files, and seems to drop dated context
files all over the place.


I *think* my setup is OK, certainly worked OK on 5029. 
(btw, the examples and documentation seem to conflict for web.xml,
one used a DTD, the other an XSD schema, I'm assuming the DTD is
still valid? I don't think that's a problem, my web.xml is valid
to the DTD, I haven't tried it against the Schema).

regards DaveP


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



RE: clean start. Was webapps/MYAPP/* removed

2005-04-13 Thread Pawson, David
Clean installation of tomcat 559,
Change the port to 80 (server.xml)
No security.

System now working well.

Lesson, dont install the admin gzip unless you know
what you are doing :-)

Sorry to waste the bandwidth.

Final question. I chose the .gzip package rather than
the .exe (for win2k install). Is the 'services' in the
tray the only difference? I.e. a quicker way of
starting|stopping?

regards DaveP

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



RE: tomcat 5.5 help

2005-04-13 Thread Pawson, David
Just run through similar checks.

Clean install of 559,
html at /ROOT works
jsp  at webapps/myapp/index.jsp works
.class at webapps/myapp/WEB-INF/classes works.

Early problem was not using the jar files from 
the new installation for compiling.

Just need to check that logging works.
I think that has changed.

Not sure if that helps.
regards DaveP

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



RE: clean start. Logging in tomcat 559

2005-04-13 Thread Pawson, David
Now I have logging working.
Using log4j-1.2.9

My application is 'hub'

put the properties file named log4j.properties in tc's classpath
(I use webapps/hub/WEB-INF/classes )

put the log4j-1.2.9.jar into webapps/hub/WEB-INF/lib

Init as follows:

//jakarta log4j
import org.apache.log4j.*;
import org.apache.log4j.BasicConfigurator;
import org.apache.log4j.Level;

Logger lg = Logger.getLogger(hub1);
The 'name' (hubl) is arbitrary, read the log4j manual for more.
then use as needed, e.g.

lg.error(** hub logging started **);

The properties file I used is below.
It produces output in ${catalina.home}/logs/tomcat.log
as specified in the properties file


log4j.rootLogger=DEBUG, hubl
#log4j.appender.hubl=org.apache.log4j.ConsoleAppender
log4j.appender.hubl=org.apache.log4j.RollingFileAppender
log4j.appender.hubl.File=/tomcat559/logs/tomcat.log 
log4j.appender.hubl.MaxFileSize=1MB
log4j.appender.hubl.MaxBackupIndex=3
log4j.appender.hubl.layout=org.apache.log4j.PatternLayout
log4j.appender.hubl.layout.ConversionPattern=et%d{-MMM-dd 
HH:mm}/tlvl%-5p/lvlm%m/m/e%n

You may not want output in XML format, in which case again
go do some reading.
http://logging.apache.org/log4j/docs/api/org/apache/log4j/PatternLayout.html  
(warning, long url)
provides the full story.

http://logging.apache.org/log4j/docs/manual.html is worth reading,
and I found
http://supportweb.cs.bham.ac.uk/documentation/tutorials/docsystem/build/tutorials/log4j/log4j.html
 to be useful.


Perhaps the tomcat documentation might benefit from such a tiny inclusion?

HTH DaveP.


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



RE: META-INF/context.xml question

2005-04-12 Thread Pawson, David
 

-Original Message-
From: [EMAIL PROTECTED] 



 
 Following is a version of a context.xml file that goes in 
the META-INF directory of a webapp.
 
 ?xml version=1.0 encoding=UTF-8?
 Context path=/Ex12
   Logger 
className=org.apache.catalina.logger.FileLogger 
prefix=Ex12. suffix=.log timestamp=true/
   Realm className=org.apache.catalina.realm.MemoryRealm 
pathname=conf/myUsers.xml /  /Context
 
 hth,

Thanks Luke.

  Trying to move up to 5.5.7 (or .9 now :-)
  Confused over this file. Previously (5.0.28) I placed it in 
{}/conf/Catalina/localhost,
now in /META-INF

Is this the preferred location for this file please?
Doco mentions this processing as of 5.5

regards DaveP

regards DaveP

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



webapps/MYAPP/* removed

2005-04-12 Thread Pawson, David
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]



RE: special characters in property files

2005-04-08 Thread Pawson, David

I need to retrieve a value from a property file with a '$' 
as part of the data. How do I decorate this character so 
that the value will be loaded when I call 
ResourceBundle.getString() ? I am not having much success 
googling for it.

If its an XML file, then specify the encoding
?xml version=1.0 encoding=utf-8 ?

and then use a numerical character reference for the character.

See www.unicode.org/charts to find the one you want.

E.g. nbsp is #x0A; i.e. 160 decimal.

When the parser parses the file prior to passing it to the application,
the reference is turned into a unicode character.

HTH 

DaveP

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



RE: error-page in web.xml and cache-control

2005-04-07 Thread Pawson, David
 

-Original Message-
From: Jason Bainbridge

 Hence I'm looking for a means of trapping that error for either a 
 re-direct, or to an error page. HTTP 1.1 seems not to 
class that as an 
 error, hence I'm looking for another way to access that 
'bad' state.

I don't think you can do anything about that, I don't think 
a request even hits the server for it, install 
ieHttpHeaders (google it) and monitor the request/response 
headers to see what is going on but I'm fairly sure you 
won't see anything hitting the server from that back button press.

Aaarggh! Thanks Jason, appreciated.

Now I know I'm chasing shadows I'll address that differently.

regards DaveP.

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



RE: Custom 404 page when a webapp is stopped by the manager

2005-04-07 Thread Pawson, David
 

-Original Message-
From: Pascal Gauthier 


we have a tomcat webapp that needs to be down if we are 
doing a maintenance to the database. The manager seems to 
be the perfect solution to make the application unavailable 
but we found out that the 404 error-page cannot be customized.

Even if we modified the default web.xml (in conf/) to add 
the error-page 404,  it doesn't seems to be resolved when 
the context is stopped.

Do you know which web.xml is in use at any particular time?

If a client interacts with webapp A, is it the web.xml 
in {tchome}/webapps/A/WEB-INF/web.xml that is in control?

What about the web.xml in ROOT/WEB-INF/web.xml? When does
that come into use?

And what is the purpose of /conf/web.xml ?

For error handling purposes, should all these be lined up if I 
want to use the same error pages?

regards DaveP

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



error-page in web.xml and cache-control

2005-04-06 Thread Pawson, David

I'm using response.setHeader(cache-control,no-cache);

and tomcat is correctly telling me that the page has expired
when I use the browser back button.

I can't find out what error (if any) this is, to trap it
using the error-page element.

Is it possible to trap this error please?


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]



RE: error-page in web.xml and cache-control

2005-04-06 Thread Pawson, David
 

-Original Message-
From: Anto Paul 
 
 I'm using response.setHeader(cache-control,no-cache);
 
 and tomcat is correctly telling me that the page has 
expired when I 
 use the browser back button.

What is the exact message you get when clicking back button 
in browser ?. What browser you use ?. I think it is issued 
by browser not Tomcat.



Warning: Page has Expired The page you requested was created using information 
you submitted in a form. This page is no longer available. As a security 
precaution, Internet Explorer does not automatically resubmit your information 
for you. 

To resubmit your information and view this Web page, click the Refresh button. 



Its ie 6.

regards DaveP

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



RE: error-page in web.xml and cache-control

2005-04-06 Thread Pawson, David
 

-Original Message-
From: Jon Wingfield

Sounds like the message IE gives when you hit back to a 
page served in response to a POST request.

http://theserverside.com/news/thread.tss?thread_id=28366
http://theserverside.com/news/thread.tss?thread_id=29758


It is Jon. As that (rather long:-) thread indicates, I'm similarly
trying to maintain state through the website, and a user hitting
back screws that up.

Hence I'm looking for a means of trapping that error for either
a re-direct, or to an error page. HTTP 1.1 seems not to class
that as an error, hence I'm looking for another way to access that
'bad' state.

regards DaveP

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



RE: error-page in web.xml and cache-control

2005-04-06 Thread Pawson, David
Bit of clarification. 
A = initial page
B = target of link
both pages have cachecontrol set to no-cache.

Follow link from A
Hit back button

then the message shows.

The only time I get *any* of my error pages to show
is when I do a refresh on A, after getting there by a back button.
Then it goes to the 

   error-page
error-code404/error-code
location/file_not_found.html/location
/error-page   

page. 

Typing in a bad address shows the standard ie6 404 page.

regards DaveP


-Original Message-
From: Jon Wingfield

Sounds like the message IE gives when you hit back to a 
page served in response to a POST request.

http://theserverside.com/news/thread.tss?thread_id=28366
http://theserverside.com/news/thread.tss?thread_id=29758


It is Jon. As that (rather long:-) thread indicates, I'm 
similarly trying to maintain state through the website, and 
a user hitting back screws that up.

Hence I'm looking for a means of trapping that error for 
either a re-direct, or to an error page. HTTP 1.1 seems not 
to class that as an error, hence I'm looking for another 
way to access that 'bad' state.

regards DaveP

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



RE: cache issue

2005-04-05 Thread Pawson, David
Using ie6, when I use the 'previous page' link from the browser,
the request.getHeader(referer) value is untrue.
If I link through a site, A - B - C then back to B,
the 'referer' value still shows A.

Has anyone resolved this please?

regards DaveP 

-Original Message-
From: David Causse 
When using tomcat 5.5.7 with apache 1.3.x I have problem 
that pages I 
have visited before are cached in the browser -so changes 
cannot be 
seen.  I don't have this problem when I just use tomcat as the 
web-server, only once I started using apache.  Clearly this is a 
problem because the url is the same and that's just they 
way browsers work.

Is there any solution to this problem.  Is there some way 
I change add 
a random parameter to each url request (built with c:url 
for example
http://domain/mypage.jsp?random=tr445e) - that would fix 
it or is there 
some config property in apache/tomcat to resolve this?
  

Hi Steven,

I have to use this hack to fix an MS IE bug that didn't 
reload correctly page that are opened as modal windows, but 
you should not do this for normal pages except if you find 
a bug in a product you don't have any control.

I don't have any problems like this with apache 
2/mod_jk2/tomcat 5.0.28 but we have http meta no-cache in our jsps.


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



RE: Fwd: non-root on 80

2005-04-05 Thread Pawson, David
 

-Original Message-
From: Pete Stevens 


You can do it with jscv which binds port 80 as root and 
then drops the priviledges for running tomcat.

Our guide for virtual linux servers is here, it's a ready 
to roll config if you have tomcat in /usr/local/tomcat 
running on whitebox / redhat linux.

http://www.mythic-beasts.com/support/topic_vds_java.html

For which thanks.
  Very useful.

regards DaveP

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



Location of javascript files.

2005-03-29 Thread Pawson, David
I'm having problems locating a javascript file.

{catalina_home}/project/x.html
finds an external javascript file in the same directory
quite happily.
script language=JavaScript1.2 
type=text/javascript src=upload.js/script 

Same thing from a jsp file

When I convert the jsp file to 
/project/WEB-APPS/class/x.class

where would you expect the javascript file to be found please?

Placing it in /project/upload.js works well on Firefox, fails
on IE.



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



RE: Location of javascript files.

2005-03-29 Thread Pawson, David
 

-Original Message-
From: Peter Crowther 
When I convert 
 the jsp file to /project/WEB-APPS/class/x.class
 
 where would you expect the javascript file to be found please?

By what URL is the client accessing the page (FileProperties or
right-clickProperties in IE)?  It needs to be in that 
folder, assuming
you've stuck with the relative path.

{url}/project/x 

I.e. the project root. 


And that works in FireFox.  Place the javascript file there and it finds it.
(Neither reports a missing javascript file at all well :-)

With IE I get a confusing 'Line 22, char 1, object expected' error message.

regards DaveP

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



RE: Location of javascript files.

2005-03-29 Thread Pawson, David
Problem solved! Worthy of note:

script language=JavaScript type=text/javascript  src=upload.js/script

the space after javascript was the criminal! remove it and
its back working again.

Because I'd converted from jsp to java,
I'd been careless with the whitespace;

Odd one is that MS was picky, Firefox far more lenient.

Thanks to Peter for showing me the accessLogValve.

regards DaveP

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



RE: jsp imports

2005-03-24 Thread Pawson, David
 

-Original Message-
From: Darek Czarkowski

I am not sure if this is relevant but, is session data a 
full name of the package?
I would expect to see something like com.packagename.sessionData

As I've been told, I need to wrap it in a package... or in my case
I'm going to re-write 3 jsp's in Java, its easier.

regards DaveP

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



RE: commons-fileupload memory problem

2005-03-24 Thread Pawson, David
 

-Original Message-
From: Elihu Smails 




I am trying to use the commons-fileupload classes and 
cannot figure out how to keep my uploads from getting 
stored in memory.  I am using the following methods:

DefaultFileItemFactory fileItemFactory = new 
DefaultFileItemFactory( 10, new File(/tmp) ); 
DiskFileUpload upload = new DiskFileUpload( fileItemFactory );

When I run tomcat using JDK 1.5's jconsole program and 
upload a file, my memory usage jumps to about 10x the size 
of the attachment.

Has anyone else used the library successfully?  

Yes, very little problem once I got the hang of it.

regards DaveP

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



jsp imports

2005-03-23 Thread Pawson, David
Tomcat 5.0.28

In my index.jsp file I have

%@ page import=sessionData%
%
sessionData s = new sessionData();
s.clrSession(session, index.jsp);

%

And I get the error, 
Cannot resolve symbol 'sessionData'.

It is not in a package. 

What syntax must I use to locate the class please?
Or is it required to be packaged?


Regards DaveP.

 snip here *


RE: jsp imports

2005-03-23 Thread Pawson, David
 

-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED] 
Sent: 23 March 2005 11:31
To: Tomcat Users List
Subject: Re: jsp imports

It must be in a package.

thanks Tim.
  Is there any logic in that?
   If tomcat searches %servlet%/WEB-INF/classes/package/class
   why can't it search without the package layer?



Ah well.

regards DaveP


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



RE: jsp imports

2005-03-23 Thread Pawson, David
 

-Original Message-
From: QM
:If tomcat searches %servlet%/WEB-INF/classes/package/class
:why can't it search without the package layer?

It's got naught to do with a Tomcat failing;
I'm not 'blaming' Tomcat, just saying its a mismatch
with standard java.

 
  packageless 
classes are considered a poor programming practice.  As 
such, they're not allowed under servlet spec 2.4.

Sounds like a 'sound' committee decision :-)

That's a view I don't share. I'd say its a judgement
that Sun shouldn't have made IMHO.

regards DaveP

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



RE: jsp imports

2005-03-23 Thread Pawson, David
 

-Original Message-
From: Tim Funk 

The java file generated by the JSP is in a package. The 
java lanaguage disallows a packageless class if you are in 
a package.

Makes more sense Tim.
Thanks for that.

Boring rewrites ahead, or convert the jsp to java.
Probably the latter.

regards DaveP

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



url of caller?

2005-03-22 Thread Pawson, David
Is it possible to determine the url of the webpage
from which a particular servlet was called please?
I.e. the target of a 'back' action on the browser?

public java.lang.String getRequestURI() is the 'current'
page, I need the calling page.

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]



RE: url of caller?

2005-03-22 Thread Pawson, David
 

-Original Message-
From: Mike Fowler
You could use the 'referer' header, eg.

String referedURL = request.getHeader(referer);

Note that the String is null if the header isn't present 
which usually indicates that the user typed the URL in 
their browser.

Thanks PA, Mike.
  Perfect.
  The caveat is worth noting!
If a user does that, they deserve to be redirected :-)

regards DaveP

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



RE: url of caller?

2005-03-22 Thread Pawson, David
 

-Original Message-
From: Mark Benussi

Worth mentioning this as I have been down this path.

Symantec Intenet Security products and the like, will 
remove this header. 

for this use, internal to my organisation, Norton isn't installed
luckily!

Another Gotcha worth noting though, thanks Mark.

regards DaveP

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



Tomcat versions vs java vsns

2005-02-11 Thread Pawson, David

http://jakarta.apache.org/tomcat/faq/version.html relates 
tomcat vsns to the servlet versions.

Is there a similar relationship between java versions please?
Simply, will 5.0.28 run happily with java 1.5?

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]



RE: Tomcat versions vs java vsns

2005-02-11 Thread Pawson, David
 

-Original Message-
From: Tim Funk 

Tomcat 5.0 will run on java 1.4 or 1.5.

Tomcat 5.5 runs on java1.5. TO use 1.4 - you need the 
compat libraries.

What of the other way round Tim?
I want to run tc5.0.28 with java 1.5
(since I need 1.5 for other applications),
and I haven't moved up to 5.5 yet.

regards DaveP




-Tim

Pawson, David wrote:

 http://jakarta.apache.org/tomcat/faq/version.html relates 
tomcat vsns 
 to the servlet versions.
 
 Is there a similar relationship between java versions please?
 Simply, will 5.0.28 run happily with java 1.5?
 



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



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



RE: [OT]Attn developers of Tomcat and JK

2005-02-09 Thread Pawson, David
 

-Original Message-
From: Didier McGillis 

Really this is way out of line.  As everyone has said this 
is a free product with no formalized support structure, and 
no claims of any support. 

Just doodling.
  My guess, tomcat in various guises, is being used commercially
pretty widely. The guy doing the download research may be able
to put some figure to that.
  Rather than out of line, is this an opportunity for the inquisitive
to see if there is a business opportunity here?
  I'd guess that there are sufficient commercial users who would be
willing to pay for support. I'll quote MySQL as prior art. 
  I'm convinced there is sufficient expertise lurking on this list
to start such an enterprise, even if part time at first.
  Just a thought.

regards DaveP.

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



RE: jsp version of session variable access. Pointer to syntax wanted.

2005-02-08 Thread Pawson, David
 

-Original Message-
From: Tim Funk 

Via EL: (assuming sessionData.FILECOUNT = mySessionVariableName)

${sessionContext.mySessionVariableName}


Via snippet:
%=session.getAttribute(sessionData.FILECOUNT)%

In a jsp - the session variable is given to you as implicit 
variable.


Thanks Tim ( and fstmncn ).

Hadn't come across 'EL'.
So the choice is one from 3?
JSP 1.0 rev B.
JSP (is it 1.2 or 2.0?) (XML syntax)
and 
Expression Language.

so what's JSTL, 
http://jakarta.apache.org/taglibs/doc/standard-doc/standard/GettingStarted.html 
?
quoteJSTL encapsulates, as simple tags, core functionality common to many JSP 
applications./quote
Is that the full name of the EL?

http://java.sun.com/products/jsp/jstl/1.1/docs/tlddocs/index.html  seems
to be the spec. Is there a reasonable tutorial anywhere please?



Can they be mixed in a page?
  I *think* the JSP version is determined by the vsn of Tomcat,
which relates to the servlets version, but can I mix EL and JSP?

Is the relationship documented anywhere please?

regards DaveP



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



RE: jsp version of session variable access. Pointer to syntax wanted.

2005-02-08 Thread Pawson, David
 

-Original Message-
From: Tim Funk

EL first arrives as part of JSTL. Which was available in 
JSP 1.2. But using EL required that is was used in a tag.

With JSP 2.0 - EL can be used anywhere one a page. 

Worthy of note! Thanks Tim.
Do you know of any web pages that put this mix into context please?
Sun don't do very well on this one.
regards DaveP

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



RE: Online docs, was jsp version of session variable access.

2005-02-08 Thread Pawson, David
 

-Original Message-
From: Tim Funk 

The JSP examples from a default tomcat install might have some.

Some, and leads into Sun documentation, which often dates from 2000.

From an hours googling:

regards DaveP


DATE: 2005-02-08T12:39:27Z

KEYWORDS:jsp, EL, 


Tomcat 5.0 uses the Jasper 2 JSP Engine to implement the JavaServer
Pages 2.0 specification.


* Documentation


-http://java.sun.com/products/jsp/docs.html  Includes quick reference cards.

-http://java.sun.com/products/jsp/syntax/1.0/tags.html 1.0 Syntax reference


-http://www.apl.jhu.edu/%7Ehall/java/Servlet-Tutorial/  Tutorial

-http://java.sun.com/products/jsp/syntax/1.2/syntaxref12.html  1.2 syntax 
reference

-http://java.sun.com/products/jsp/syntax/2.0/syntaxref20.html  2.0 syntax 
reference.


** Intro/training course documentation.

Objectives

By the end of this module you will be able to:

 Manage session-related information from JSP
 Communicate between JSP pages
 Process forms with JSP

-http://java.sun.com/developer/onlineTraining/JSPIntro/contents.html

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



jsp version of session variable access. Pointer to syntax wanted.

2005-02-07 Thread Pawson, David
Looking for the syntax to gain access to a session variable
in a jsp page, rather than converting it to java.

HttpSession session=request.getSession();
String s = (String)session.getAttribute(sessionData.FILECOUNT);

I'm not using the xml syntax (as yet).
tomcat 5028.

any pointers appreciated please.

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]



RE: Error FOP/BATIK ... PDFXMLHandler:253 - svg graphic could not be built

2005-02-04 Thread Pawson, David
 

-Original Message-
From: Richard Mixon (qwest) 
Bingo! That was it. I changed it from file:// to 
file:/// and all works now. You earlier mentioned that 
might be it - but I was so focused on the fact that it 
worked on Java 1.4.1 that I figured I had it correctly.

That is weird though that moving past Java 1.4.1 breaks this.

Thats not the java, its the XML parser change.
   That's the only software that looks at that element of the XML.
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]



RE: How to run Tomcat 5.5 as a user ?

2005-02-03 Thread Pawson, David
 

-Original Message-
From: hicham [mailto:[EMAIL PROTECTED] 
Sent: 02 February 2005 19:20
To: Tomcat user mailing list
Subject: How to run Tomcat 5.5 as a user ?

Hello
   usin Tomcat 5.5 under Fedora core linux , How do I get 
to launch it as user and not as root ?

http://www.mythic-beasts.com/support/topic_vds_java.html

Adjust the script
http://www.mythic-beasts.com/support/tomcat-initscript
to match your environment,

build the jsvc application (as delivered)
and run it as a service, owned (I used apache user) by
an appropriate user.

HTH DaveP

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



RE: Trouble with XSL transforms with JSP

2005-01-28 Thread Pawson, David
 

-Original Message-
From: [EMAIL PROTECTED] 

I decided to start with something I know about, so I am 
attempting to transform an XML document to an HTML page via 
JSP. For a sanity check, I have downloaded O'Reilly's 
source code from JavaServer Pages, 3rd edition. 
Specifically, chapter 15 has an example of what I wish to 
do. The example works flawlessly, but my transform coughs 
up this error message.

... org.xml.sax.SAXParseException: Content is not allowed 
in prolog.

I have researched this to some degree and found that this 
class sometimes gags on UTF-8 files. 
This came up on the saxon list Charles.
You could try the saxon archives or ask Mike,
If you change parser (-x cmnd line option, less sure from java)
you may resolve it. I'm assuming you've tried from the command
line and can get it to work.

regards DaveP.

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



RHEL, mysql 4.1.9 tomcat 5028, form authentication login failure.

2005-01-27 Thread Pawson, David
After chasing for a day, a nasty arose I thought
others might like to know of.

rhel has /etc/hosts localhost entry as

127.0.0.1   localhost.localdomain localhost


If you use form authentication, with server.xml entries such as

Realm  className=org.apache.catalina.realm.JDBCRealm 
  debug=0  
  driverName=com.mysql.jdbc.Driver
  connectionURL=jdbc:mysql://localhost/tcusers
  connectionName=tomcat 
  connectionPassword=s
  userTable=x 
  userNameCol=y 
  userCredCol=z
 
  /



then the connection is most likely to fail, not allowed, mysql error indicating
that this user is invalid as [EMAIL PROTECTED]

reverse the /etc/hosts entry such that localhost is found first
and it works.

127.0.0.1localhost localhost.localdomain

Sheesh.



regards DaveP.

** snip here **








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]



RE: RHEL, mysql 4.1.9 tomcat 5028, form authentication login failure.

2005-01-27 Thread Pawson, David
 

-Original Message-
From: David Smith

Or grant privileges on the database to 'x'@'localhost' and 
'x'@'localhost.localdomain'.  Then give both accounts the 
same password.  It won't matter which one mysql sees 
because they'll both work. 

Thanks, easier than tweaking each new install of rhel.


For the record, mysql does a reverse lookup of the host and 
makes that part of the credentials matching it up with the 
host field in the mysql.user table. 

I added a note to the mysql man pages, hopefully might
trigger others to avoid this one.

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]



RE: [ANN] Apache Jakarta Tomcat 5.5.7-alpha Released

2005-01-21 Thread Pawson, David

Lionel Farbos wrote:
 Question :
 What is the reference or stable version for servlet 2.4 ?
 Is it Tomcat 5.0.28 or Tomcat 5.5.4 ?
 
 I don't understand why you implement 2 versions (2 
branches) for this servlet API ...?


http://jakarta.apache.org/site/binindex.cgi

Also has 5.0.30.

Stability for production use seems pretty low on the priorities list.

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]



File upload location.

2005-01-18 Thread Pawson, David
I've an servlet running from
/tc5028/webapps/repository

and I'm storing client data in 
/tc5028/webapps/repository/data/ 

I'm curious what strategy people adopt when 
upgrading. I'm thinking of moving up to java 1.5
and the more recent tomcat, do people overwrite
the tc installation or move everything to a new
/tc55 directory. That would allow testing prior
to going live. 

That's inconvenient to say the least with a few
gigs of data to move, but seemingly necessary.

what do others do please?


regards DaveP


** snip here **








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]



RE: File upload location.

2005-01-18 Thread Pawson, David
 

-Original Message-
From: Francois JEANMOUGIN 
That's why I use catalina.base and catalina.home (CATALINA_BASE and
CATALINA_HOME) as described in RUNNING.txt so that tomcat 
installation is independent of webapps installtion. I just 
have to take care about syntax incompatibility in 
server.xml (for example).

The method is described in
(4) Advanced Configuration - Multiple Tomcat 5 Instances 
from RUNNING.txt. 

Using this binary separation will allow you to upgrade 
smoothly without loosing data or long service interruption problem.

That says,
When you use this -Dcatalina.base=$CATALINA_BASE argument, Tomcat 5 will
calculate all relative references for files in the following directories based
on the value of $CATALINA_BASE instead of $CATALINA_HOME:

So in using

/tc5028/webapps/repository/data/ 

If catalina base is set to /elsewhere,
then all the configuration files and my application code will be there too?

in /elsewhere/webapps/repository/data

and CATALINA_HOME can still point to /tomcat5028.  

Yes, that all makes sense.

Francois, you also note I just have to take care about syntax incompatibility 
in server.xml (for example).

Quick look, and I can't see anything that has path problems there?
Can you explain please?


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]



HttpSession usage

2005-01-17 Thread Pawson, David
I need to maintain state across two form submissions;
the first one requires that a user confirm an int and string;
the second one records a small amount of metadata, user information
and transaction information.

Am I right in thinking that HttpSession getAttribute and putAttribute
are the right way to acess  and record such state information for common
access in different servlets please?

When the second post occurs,   How do I check that I've got the right
users session data please, if there are a number of users logged in?

Is this the idea of passing the sessionID as a query string to the servlet
the normal way in which these two are matched? QueryString= session.getId() ?

Which raises the question, what to do on a mismatch? I guess that's down
to the application. The class appears not to have the ability to get
sessionData matching a  specific sessionID  value.




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]



RE: HttpSession usage

2005-01-17 Thread Pawson, David

Sounds to me like you need to do some reading on 
JSP/Servlets, any book will explain sessions to you and 
provide examples. There are numerous online resources too.

No problem, nice to know I'm reading the right stuff though!



You don't need to worry about identifying the user in most 
cases, this is managed internally with cookies, i.e you 
would not need to check, you can assume. 



The reason you see jsessionid being appended onto some URLs 
ni JSPs is because the user may have cookies turned off, in 
which case when they post or whatever back to the server, 
the server may create a new session.

Which then raises the question, do I (can I) check that a user
has cookies enabled?

HttpSession sess = request.getSession(true);
if( sess.isNew() )
logger.info(pNew Session/p);
else
logger.info(pExisting Session/p);

Or is this sufficient? From this and my own flow logic
I guess I can see if the user is 'new' when she shouldn't
be.

I'm not entirely sure of the strategy or decisions 
developers use to determine if they are going to add 
jsessionid manually to URLs in JSPs, perhaps someone can 
pick that up for you. It may be that you could test the 
user's ability to store cookies and make a decision there. 

I would recommend picking up a good JSP/Servlet manual for examples.


I've got the O'Reilly book, and Google :-)


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



RE: HttpSession usage

2005-01-17 Thread Pawson, David
 

-Original Message-
From: Christoph Kutzinski

check the API. You can probably use:
request.|*isRequestedSessionIdFromCookie
http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/http/Ht
tpServletRequest.html#isRequestedSessionIdFromCookie%28%29*()

Looks good Christoph; thanks.

James Milks  noted:

FYI - putAttribute() has been depricated and you shoud use
setAttribute() when working with sessions.


Sorry, my bad. thanks.


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]



request.getParameter(), works on get, not on post

2005-01-17 Thread Pawson, David
With an input form

form method=get
  action=/repository/ckDoc
  name=form
  enctype=multipart/form-data
  label for=reposoArchive number:/label
input name=reposno
   id=reposno
   type=text
   size=9
   maxlength=8 value=123456 


in ckDoc.java I have

public void doGet(HttpServletRequest request, HttpServletResponse response)
throws IOException, ServletException {
HttpSession session = request.getSession(); // 
//String s = request.getQueryString();
String t = request.getParameter(reposno);
System.err.println(Ano is  + t);

which nicely prints out the Archive number value.

When I change the get to a post,
getParameter returns null, intimating that there is no such form item.

I can access the data (though very messily) using the fileUpload object,
but it seems so simple using getParameter();

Can anyone suggest why it won't work with the post please?


regards DaveP

 ** snip here **











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]



RE: request.getParameter(), works on get, not on post

2005-01-17 Thread Pawson, David
 

-Original Message-
From: Allistair Crossley [mailto:[EMAIL PROTECTED] 
Sent: 17 January 2005 14:11
To: Tomcat Users List
Subject: RE: request.getParameter(), works on get, not on post

yeah you need to use a special request processing api for 
posted forms when encType is multipart, lookup Commons FileUploader.

Yes, Thanks Allistair (and Ben).

That was a remnant of processing n uploaded files.

form method=post
  action=/repository/ckDoc
  name=form
  enctype=form-data

And now getParameter('name') works as expected.

Thanks for the tip.

Simple but subtle (for me anyway :-)

regards DaveP

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



RE: ssl configuration. 5.0.28

2004-12-02 Thread Pawson, David
 

-Original Message-
From: Shapira, Yoav 

Now how do I close down the http://localhost/ port, just 
remove the 
port 80 connector?

Yeah.


And the next tiny step:

To make the entire site use https, no port mentioned,
Two more changes, to use 443 instead of 8443

I'm now providing https://localhost wholly under https!

Thanks for the help folks.

DaveP.

Connector 
   port=443 
   minProcessors=5 
   maxProcessors=75
   disableUploadTimeout=true
   acceptCount=100 
   debug=0 
   scheme=https 
   secure=true
   clientAuth=false 
   sslProtocol=TLS
enableLookups=false
connectionTimeout=2000 
keystoreFile=webapps/repository/.keystore
keystorePass=pwd
   /

and

  Connector port=8009 
   enableLookups=false redirectPort=443 debug=0
   protocol=AJP/1.3 /


Since the default port for https I'm told is 443.


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



ssl configuration. 5.0.28

2004-12-01 Thread Pawson, David
server.xml shows

  !-- Define a SSL Coyote HTTP/1.1 Connector on port 8443 --
!--
Connector port=8443 
   maxThreads=150 minSpareThreads=25 maxSpareThreads=75
   enableLookups=false disableUploadTimeout=true
   acceptCount=100 debug=0 scheme=https secure=true
   clientAuth=false sslProtocol=TLS /
--


%catalina-home%/webapps/tomcat-docs/ssl-howto.html

shows



-- Define a SSL Coyote HTTP/1.1 Connector on port 8443 --
!--
Connector className=org.apache.coyote.tomcat5.CoyoteConnector
   port=8443 minProcessors=5 maxProcessors=75
   enableLookups=true disableUploadTimeout=true
   acceptCount=100 debug=0 scheme=https secure=true;
   clientAuth=false sslProtocol=TLS/
--

Nothing found in 2.3 spec.

which is definitive/correct/better please? Or where is
the definitive list found?


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]



RE: ssl configuration. 5.0.28

2004-12-01 Thread Pawson, David
 

-Original Message-
From: Allistair Crossley 

There is no concept of definitive, only valid. 

Look at the connector reference for 5.0 and make your mind 
up about what suits your needs. The SSL specific attributes 
are also on this page.

http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/http.html
Thanks Allistair.
  

regards DaveP

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



RE: ssl configuration. 5.0.28

2004-12-01 Thread Pawson, David
 

-Original Message-
From: QM

: which is definitive/correct/better please? Or where is
: the definitive list found?

I'm not sure what you mean.  What definitive list?  The 
online Tomcat docs should be fine, 

It is, as Allistair pointed out.
Tks. 
  I'd perhaps expected the two examples to be the same.
My bad.



regards DaveP

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



RE: ssl configuration. 5.0.28

2004-12-01 Thread Pawson, David
 

-Original Message-
From: Allistair Crossley 

There is no concept of definitive, only valid. 

In which case the example in 
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/ssl-howto.html
would seem to be wrong.
 Although it names a tomcat class,
there is no such attribute defined.

-- Define a SSL Coyote HTTP/1.1 Connector on port 8443 --
!--
Connector className=org.apache.coyote.tomcat5.CoyoteConnector
   port=8443 minProcessors=5 maxProcessors=75
   enableLookups=true disableUploadTimeout=true
   acceptCount=100 debug=0 scheme=https secure=true;
   clientAuth=false sslProtocol=TLS/
--

I'm still getting a 404 (ie),
connection refused (firefox)
when accessing with
http://localhost:8443:/

  There appears to be no further setup that I can find?

Is it only conf/server.xml please?

regards DaveP


Look at the connector reference for 5.0 and make your mind 
up about what suits your needs. The SSL specific attributes 
are also on this page.

http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/http.html
 %catalina-home%/webapps/tomcat-docs/ssl-howto.html
 
 shows
 
   
 
 -- Define a SSL Coyote HTTP/1.1 Connector on port 8443 --
 !--
 Connector className=org.apache.coyote.tomcat5.CoyoteConnector
port=8443 minProcessors=5 maxProcessors=75
enableLookups=true disableUploadTimeout=true
acceptCount=100 debug=0 scheme=https 
secure=true;
clientAuth=false sslProtocol=TLS/
 --



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



RE: ssl configuration. 5.0.28

2004-12-01 Thread Pawson, David

className is a common attribute of the Connector element. 
look at the common attributes table in 
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/http.html

Sorry. Missed that.


can you post what you have used for the SSL Connector?

Connector 
   port=8443 
   minProcessors=5 
   maxProcessors=75
   enableLookups=true 
   disableUploadTimeout=true
   acceptCount=100 
   debug=0 
   scheme=https 
   secure=true
   clientAuth=false 
   sslProtocol=TLS
keystoreFile=webapps/repository/.keystore
keystorePass=myPassword
   /

(No, its not commented out :-)

 have 
you checked localhost_log for errors after startup?

I was hopeful, but nothing.


2004-12-01 14:06:23 
StandardContext[/balancer]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]]
2004-12-01 14:06:24 StandardContext[/jsp-examples]ContextListener: 
contextInitialized()
2004-12-01 14:06:24 StandardContext[/jsp-examples]SessionListener: 
contextInitialized()
2004-12-01 14:06:24 StandardContext[/servlets-examples]ContextListener: 
contextInitialized()
2004-12-01 14:06:24 StandardContext[/servlets-examples]SessionListener: 
contextInitialized()


regards DaveP

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



RE: ssl configuration. 5.0.28

2004-12-01 Thread Pawson, David
 

-Original Message-
From: Allistair Crossley 

correction to my last post about SSL page returning squares 
.. I was requesting http.

https://localhost:8443/

works for my suggestions with default tomcat page.

And works for me sigh/
I was concentrating on the configuration to much.
Thanks for making the mistake Allistair... made
me realise the silly :-)

Now how do I close down the http://localhost/ port,
just remove the port 80 connector?

Many thanks.
 Another tiny step forward.

regards DaveP

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



RE: ssl configuration. 5.0.28

2004-12-01 Thread Pawson, David
actually, I notice you are using keystoreFile. are you 
certain when you ran keystore that you used -keystore 
parameter? it might well be that. i generated my key 
without using -keystore which tomcat looks at by default. 
try getting that working first.

On win2k, so the default location is /documents and settings etc.


%JAVA_HOME%\bin\keytool -genkey -alias tomcat -keyalg RSA \
  -keystore webapps/repository

enables my to store it in /webapps/repository which
is where I told tomcat to look.


regards DaveP


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



What's a sealing violation please?

2004-11-02 Thread Pawson, David
From the log

2004-11-02 09:24:51 StandardContext[/servlets-examples]SessionListener: 
contextInitialized()
2004-11-02 09:25:52 StandardWrapperValve[putpr]: Servlet.service() for servlet putpr 
threw exception
java.lang.SecurityException: sealing violation: can't seal package nu.xom: already 
loaded
at java.net.URLClassLoader.defineClass(URLClassLoader.java:234)
at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:187)



Any help appreciated.


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]



RE: What's a sealing violation please?

2004-11-02 Thread Pawson, David
 Thanks for the reply Jon.

-Original Message-
From: Jon Wingfield 
It's part of the core java security model. If a package is 
sealed within a jar then packages of the same name cannot 
be defined in another jar, or elsewhere on the classpath.

Within the manifest file of the jar file which is being 
loaded by your putpr servlet you'll probably have a couple 
of lines like:

Name: nu/xom
Sealed: true

The XOM jar that I have (xom-1.0d8.jar) doesn't seal its 
packages. So, you need to find the jar which is sealing the 
nu.xom package and stop it doing so. (Or work out your xom 
dependencies)

I'm guessing its xercesImpl jar? Having removed it the error 'went'.
I also got a clue, just import nu.xom.*; rather than individual ones?
 Unsure which  one cleared the error,
but its OK now.

  What the heck do I do if I want xom to validate?

regard sDaveP



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



RE: Response and file downloads

2004-11-01 Thread Pawson, David
 

-Original Message-
From: Justin Ruthenbeck


It seems like what you want is for a user to fill out a 
form, click submit, then be presented with a new, fresh, 
form again ... with the file download on the side.  If you 
have determined that you absolutely want this behavior 
(it's atypical, so doing it won't be particularly robust), 
consider programmatically opening another browser window on 
form submit from which the download will happen ... and 
reload your form in your main browser window.  This will, 
of course, subject you to any headaches associated with 
javascipt window opening.

Justin, since I want a basic download, I'd be interested in
what you consider typical please?

I need to offer the user a list of files (I'd thought of a form or list of links)
They select one,
then download it.

What's the tomcat way please?

regards DaveP

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



RE: Can Tomcat be configured to be an FTP Server?

2004-10-25 Thread Pawson, David
 

-Original Message-
From: Cees van de Griend 
   Is it possible to configure Tomcat as an FTP Server?
 
  No.
 
  Tomcat is a HTTP server, not a FTP server: different 
port numbers, 
  different commands, different kind of application.

cut/

Yes, in theory you are right, but practical you have to 
write a ServletContainer which is FTP aware; not a simple 
task as FTP is not a simple protocol.

Take a look at a new Apache project: FtpServer at 
http://incubator.apache.org/projects/ftpserver/.

What are you trying to do?

I've a similar need, but it would be helpful if I could hand off
uploads/downloads to an ftpserver.

My concern is timeouts with large file transfers, which I believe
ftp to be better suited?

It may not be very common, but I guess this is not unusual.


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]



RE: Can Tomcat be configured to be an FTP Server?

2004-10-25 Thread Pawson, David
 

-Original Message-
From: Dov Rosenberg

If you need to include some logic with your FTP, you should 
really look at Kermit (I think it is from University of 
Chicago). It has the best command line interface around and 
is very capable and open source to boot. You could easily 
wrap a servlet around it if needed

Now there's a thought!
Has Kermit progressed from the 232+tty interface it had last time
I used  it :-)

Thanks.

DaveP.

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



RE: encoding problems with UTF-8

2004-10-20 Thread Pawson, David
 It looks like everything works fine if 
the XSL output is set to ISO-8859 but it doesn't with 
UTF-8. It does not seem to depend on the client browser either.
Any idea?

  xsl:output method=html indent=yes encoding=utf-8/

  xsl:template match=/
html
head
  titlewebapps/app/WEB-INF/web.xml /title
link rel=STYLESHEET href=xxx.css type=text/css/
meta http-equiv=Content-Type content=text/html; charset=utf-8 /
/head 
  body bgcolor=#FF
xsl:apply-templates/
  /body
/html
  /xsl:template


Ensure the http-eqiv is set as well as the encoding attribute.

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



RE: bad error-code syntax - ignore or throw exception?

2004-10-15 Thread Pawson, David
 

-Original Message-
From: Shapira, Yoav
Tomcat will complain if it finds errors it can't deal with. 
 We encourage people to use an independent tool, such as 
XMLSpy or one of the free online variants, to validate any 
all XML configuration files.
That applies to web.xml as well.

Even valid files can be in error though?
  I was missing one block, in WEB-INF/web.xml,
  and it bombed horrendously, despite being valid to the DTD.


I had servlet-mapping without the corresponding servlet
No DTD will catch that. Nor XSD schema.


  Perhaps schematron validation could be used
to provide improved validation in some future version?



regards DaveP

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



RE: multiple tomcat instance and log4j

2004-10-13 Thread Pawson, David
 

-Original Message-
From: Simon Zeng 
Thanks for the quick response. Seperate logs for each 
tomcat was my proposal too. But people like to have an easy 
way to view them as a whole. A nice merge tool would be 
nice. The first and minumum requirement for the tool is to 
merge and sort all log records by time so that it can 
really be viewed as if there is only one log file. 
grep/sort command in unix might help, but we are in 
Windows. Chainsaw and Lumbermill provides nice GUI and 
filtering but i don't see merge function in them. Any suggestions?

http://unxutils.sourceforge.net/  has grep and sort for windows?

Another thought.
  If you wrote the logs as XML,
   XSLT could merge and sort.

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]



RE: Help!

2004-10-12 Thread Pawson, David
 

-Original Message-
From: Martin Crowe 

Could anyone point me in the right direction please - any 
pointers to manuals or webpages that would help, or just 
any knowledge that could be passed on to me regarding this.

http://cymulacrum.net/writings/tomcat5/book1.html helped me a lot.

Thereafter its just a slog working with the documents to get what
you want.

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



RE: Upload File

2004-10-06 Thread Pawson, David
 

-Original Message-
From: Michael McGrady [mailto:[EMAIL PROTECTED] 
Sent: 05 October 2004 15:10
To: Tomcat Users List
Subject: Re: Upload File

Do you just not use ActionForm, David?
Sorry Michael. I don't know what ActionForm is.

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]



RE: Turn off session persistence

2004-10-06 Thread Pawson, David
 Jargon call :-)

-Original Message-
From: Shapira, Yoav 
Someone know a way to turn off the persistence in the web.xml ?

Being a container-specific feature, and not a Servlet Spec 
feature, means this can never go in web.xml.
containers
servlet
...


As someone who is often made aware of the jargon he uses,
I wonder if anyone has the time to put together a basic jargon
buster for Tomcat, perhaps extending it to server speak more generally?

For programmers new to this arena, Tomcat is pretty heavy.
A few paras on the basics, then how all these terms fit together?

I'd be pleased to help as a guinnea pig/editor markup whatever;
but I sure couldn't write it.

Just a thought for a todo list.

regards DaveP.

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



RE: Using XInclude in tomcat's config files

2004-10-05 Thread Pawson, David
 

-Original Message-
From: Shankar Unni
 Try an entity instead of xinclude? Not many parsers are good for 
 xinclude as yet (a mainly uninformed statement). Entity 
resolution is 
 easier if the parser is setup correctly.

Oh, that's what we are doing now, but entity resolution 
doesn't have a concept of relative paths.
Does your parser support xml:base?
That makes relative paths work.


All in all, entity includes are inflexible and a terrific 
pain to work with.

Its an alternative.

regards DaveP

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



RE: File upload from main program

2004-10-05 Thread Pawson, David
 

-Original Message-
From: Sng Wee Jim

Is there any free API around that allows uploading of files 
to the server (tomcat or weblogic) via a servlet from a 
main application program? (instead of from a web browser)


Anything from the jakarta fileupload project that can be 
reused here?
http://jakarta.apache.org/commons/fileupload/
I use that (commons-fileupload); No problems, though I wanted multiple file selection,
for which I had to write some javascript.


HTH DaveP.

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



RE: Upload File

2004-10-05 Thread Pawson, David
If these questions are asked on the main list,
others can learn too?

 

-Original Message-
From: Caroline Jen 

I am trying to upload files from clients machine.   
 

I understand that we must specify METHOD=post and 
ENCTYPE=multipart/form-data in the FORM tag.

Would you please help me with a number of questions:

1. Once the client makes a selection from his/her PC, the 
file name will appear in the text field.  How do I 'save 
the file name'?  
within the servlet, 

DiskFileUpload upload = new DiskFileUpload();
boolean isMultipart = FileUpload.isMultipartContent(request);
if (!isMultipart) {
logger.warn(userName(request)+File upload is not multipart);
ULerr = FORMNOTMULTIPART;
}
// Set upload parameters
...
try {
java.util.List items = upload.parseRequest(request);
// Process the uploaded items
String [] parms = gParms (items, request);
String [] gfileList = gFiles (items, request);

I have some plain textboxes as well as the list of files.
I'm re-working this piece;
 currently

   /**
 *unwrap filelist, return as string array.
 **/
public String [] gFiles(java.util.List items,HttpServletRequest request){
String[] retval=null;
java.util.Iterator iter = items.iterator();
int pos=0;
while (iter.hasNext()) {
FileItem item = (FileItem) iter.next();
if (!item.isFormField()) {
String fieldName = item.getFieldName();
String fileName = item.getName();
String contentType = item.getContentType();
boolean isInMemory = item.isInMemory();
long sizeInBytes = item.getSize();
if (sizeInBytes == 0){
logger.info(userName(request)+ No files selected);
out.println(liNo files selected/li);
}else{ // file OK
pos +=1;
retval[pos] = fileName; // full path and filename
}
}//end of if is Form field
}// end of while more items

return retval;

}// end of gfiles()

That collects the list of filenames, prior to uploading them?
  That should be sufficient to get you started.
The rest of my code is messed with the functionality I need?

HTH DaveP.









2. Do I save what I download from the
http://www.htmlhelp.com/reference/html40/forms/input.html

in my $TOMCAT/common/lib directory?  Do I have to save it 
in my $TOMCAT/webapps/AppName/WEB-INF/lib
directory.

No, its just java once you have the filenames. Just write them whereever you need them 
to be.



3. Are there anything else I have to do to make file uploading work?

Patience :-)

HTH DaveP.
Shout again if I can help.

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



RE: Tomcat Question - HELP

2004-10-04 Thread Pawson, David
 

-Original Message-
From: Shapira, Yoav 
Personally, I'd take this support list over any commercial 
support organization, hands down. 

+1
   Try asking questions like (almost any on this list) to Redmond
and see what the response is :-)

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]



RE: Using XInclude in tomcat's config files

2004-10-04 Thread Pawson, David
 

-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Shankar Unni
Sent: 01 October 2004 21:44

Alas, that didn't help. I tried setting both 
org.xml.sax.parser and 
org.apache.xerces.xni.parser.XMLParserConfiguration (the 
latter one being the one described in the Xerces XInclude FAQ at
http://xml.apache.org/xerces2-j/faq-xinclude.html) on the 
java command line to 
org.apache.xerces.parsers.XIncludeParserConfiguration, 
but neither seems to have had the least effect.

The

 xi:include href=../../../etc/tomcat/dbparams.xml
 xmlns:xi=http://www.w3.org/2003/XInclude/

is completely ignored in my server.xml, and it is as if 
this directive weren't even present. (The file contains a 
ResourceParams root element for insertion into the 
Context that I've declared in server.xml).

Anything else I can try?

Try an entity instead of xinclude? Not many parsers are good
for xinclude as yet (a mainly uninformed statement). Entity
resolution is easier if the parser is setup correctly.

I'm not familiar with xinlude, but are you OK to use relative
url's in the href attribute? Does it need a file:// protocol?

HTH DaveP.





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



RE:logging, configuration.

2004-10-04 Thread Pawson, David
 

-Original Message-
From: Jacob Kjome
Is it the commons-logging that produces 
catalina_log.date.txt? Is there 
a config file as per log4j?

Even when testing, this file becomes quite significant.
It would be nice to reduce/minimise its output.

Ultimately, Tomcat uses commons-logging for logging, but 
uses its own Logger interface which is configured in 
context configuration files or server.xml.  Note that this 
is no longer the case in 5.5.x.  Read the docs on Tomcat's 
Logger's for more info.

tc 5.0.27, server.xml has

   Logger className=org.apache.catalina.logger.FileLogger
 directory=logs  
 prefix=localhost_log. 
 suffix=.txt
timestamp=true/

and
  Logger className=org.apache.catalina.logger.FileLogger
  prefix=catalina_log. 
  suffix=.txt
  verbosity=1
  timestamp=true/

The documentation states that verbosity = 1 should log errors only?
(which it states to be the default)

I don't think the log output below constitute errors?
Is there somewhere else that I can restrict the log output
to errors only please?

regards DaveP



2004-10-04 09:22:16 RequestDumperValve[Catalina]: 
===
2004-10-04 09:22:20 RequestDumperValve[Catalina]: REQUEST URI   =/repository/getit
2004-10-04 09:22:20 RequestDumperValve[Catalina]:   authType=null
2004-10-04 09:22:20 RequestDumperValve[Catalina]:  characterEncoding=null
2004-10-04 09:22:20 RequestDumperValve[Catalina]:  contentLength=692
2004-10-04 09:22:20 RequestDumperValve[Catalina]:
contentType=multipart/form-data; boundary=---7d4115142050a
2004-10-04 09:22:20 RequestDumperValve[Catalina]:contextPath=/repository
2004-10-04 09:22:20 RequestDumperValve[Catalina]: 
cookie=JSESSIONID=01EAE058F0AEC86BC398EA7903822329
2004-10-04 09:22:20 RequestDumperValve[Catalina]: header=accept=image/gif, 
image/x-xbitmap, image/jpeg, image/pjpeg, application/xhtml+xml, 
application/x-shockwave-flash, application/vnd.ms-excel, 
application/vnd.ms-powerpoint, application/msword, */*
2004-10-04 09:22:20 RequestDumperValve[Catalina]: 
header=referer=http://localhost/repository/upload/index.html
2004-10-04 09:22:20 RequestDumperValve[Catalina]: 
header=accept-language=en-gb
2004-10-04 09:22:20 RequestDumperValve[Catalina]: 
header=content-type=multipart/form-data; 
boundary=---7d4115142050a
2004-10-04 09:22:20 RequestDumperValve[Catalina]: 
header=accept-encoding=gzip, deflate
2004-10-04 09:22:20 RequestDumperValve[Catalina]: 
header=user-agent=Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; MathPlayer 2.0; 
.NET CLR 1.1.4322)
2004-10-04 09:22:20 RequestDumperValve[Catalina]: header=host=localhost
2004-10-04 09:22:20 RequestDumperValve[Catalina]: header=content-length=692
2004-10-04 09:22:20 RequestDumperValve[Catalina]: 
header=connection=Keep-Alive
2004-10-04 09:22:20 RequestDumperValve[Catalina]: 
header=cache-control=no-cache
2004-10-04 09:22:20 RequestDumperValve[Catalina]: 
header=cookie=JSESSIONID=01EAE058F0AEC86BC398EA7903822329
2004-10-04 09:22:20 RequestDumperValve[Catalina]: locale=en_GB
2004-10-04 09:22:20 RequestDumperValve[Catalina]: method=POST
2004-10-04 09:22:20 RequestDumperValve[Catalina]:   pathInfo=null
2004-10-04 09:22:20 RequestDumperValve[Catalina]:   protocol=HTTP/1.1
2004-10-04 09:22:20 RequestDumperValve[Catalina]:queryString=null
2004-10-04 09:22:20 RequestDumperValve[Catalina]: remoteAddr=127.0.0.1
2004-10-04 09:22:20 RequestDumperValve[Catalina]: remoteHost=127.0.0.1
2004-10-04 09:22:20 RequestDumperValve[Catalina]: remoteUser=null
2004-10-04 09:22:20 RequestDumperValve[Catalina]: 
requestedSessionId=01EAE058F0AEC86BC398EA7903822329
2004-10-04 09:22:20 RequestDumperValve[Catalina]: scheme=http
2004-10-04 09:22:20 RequestDumperValve[Catalina]: serverName=localhost
2004-10-04 09:22:20 RequestDumperValve[Catalina]: serverPort=80
2004-10-04 09:22:20 RequestDumperValve[Catalina]:servletPath=/getit
2004-10-04 09:22:20 RequestDumperValve[Catalina]:   isSecure=false
2004-10-04 09:22:20 RequestDumperValve[Catalina]: 
---
2004-10-04 09:22:20 RequestDumperValve[Catalina]: 
---
2004-10-04 09:22:20 RequestDumperValve[Catalina]:   authType=FORM
2004-10-04 09:22:20 RequestDumperValve[Catalina]:  contentLength=-1
2004-10-04 09:22:20 RequestDumperValve[Catalina]:contentType=text/html
2004-10-04 09:22:20 RequestDumperValve[Catalina]:message=null
2004-10-04 

RE: logging, configuration.

2004-10-04 Thread Pawson, David
 

-Original Message-
From: Shapira, Yoav 
Comment out the RequestDumperValve (in 
$CATALINA_HOME/conf/server.xml)
altogether: it's output is not errors, as you noted.  
However, it's also not a Logger per-se and so the Logger 
congifuration doesn't apply to it.
It's commented out by default, so go back to the default ;)  

Groan :-)
  Lousy choice to uncomment.
Thanks Yoav.
  I can cancel those terabyte club san's now!

regards DaveP

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



RE: Security of Servlets

2004-10-01 Thread Pawson, David
 

-Original Message-
From: QM 

Executables and other server-side dynamic content( CGI, 
servlets/JSPs, PHP, etc) permit end-users to interact with 
the server in a different
way: they must process user input, and in doing so, watch 
out for malformed values.

Which has me scratching my head as to how.
I'm using mySQL for login name, password validation.
This from a standard html static page.

I can't see how I can get to this data to validate it?
Is it possible?

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]



RE: Security of Servlets

2004-10-01 Thread Pawson, David
 

-Original Message-
From: Shapira, Yoav
I'm using mySQL for login name, password validation.
This from a standard html static page.

I can't see how I can get to this data to validate it?
Is it possible?

On a standard HTML static page you can use JavaScript 

Even if you didn't want to use JavaScript, you could (and 
should) add checking to whatever handles the login on the 
server side, e.g. the servlet/JSP/login bean/login action, 
whatever technology you're using.

tc 5.0.27; 

form method=POST action=j_security_check name=login

Which I'm guessing is picked up by Tomcat,
though I don't know how to 'add checking to it'?
Any advice appreciated, since I'd prefer java to jscript!

regards DaveP

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



RE: [OT] Re: log4j.properties file co-opting container logging. - Found word(s) optin in the subject

2004-09-30 Thread Pawson, David
 

-Original Message-
From: Jacob Kjome

 Do you know what logger is used by default by commons-logging in 
 Tomcat if log4j isn't present?


I'm not very privy to the internals of commons-logging, but 
I think they have some sort of simple logger which is used 
when there is no other logging implementation available.  
Don't quote me on that, though.

Is it the commons-logging that produces
catalina_log.date.txt? Is there a config file as per log4j?

Even when testing, this file becomes quite significant.
It would be nice to reduce/minimise its output.

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]



Session based object, accessible to all classes.

2004-09-28 Thread Pawson, David
My tomcat 5.0.27 app currently generates session based data in
a number of classes.
  Is there a common way of sharing a data structure across
these classes?
 I want to instantiate it when a user logs in, add to it from 
one class, then retrieve data from another class.
  This data will vary across users, hence is not common to 
all sessions. 


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



RE: Session based object, accessible to all classes.

2004-09-28 Thread Pawson, David
 

-Original Message-
From: werner 

Eh, store the object in the session with 
session.setAttribute(name, object) retrieve it with 
(cast-to your object)session.getAttribute(name).

Or is this a too simple answer for your problem ?

javax.servlet.http 
Interface HttpSession ? Is that the one you mean Werner?
Just give it any recognisable name and it returns the object
based on this users session?

Sounds about right, so long as it is session based,
which it seems to be from the javadocs.

Much appreciated.  

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]



RE: Session based object, accessible to all classes.

2004-09-28 Thread Pawson, David
 

-Original Message-
From: QM

Yes.  Think of session as another scope, like request or
application: it's a bucket in which you can store any old 
Object (just be sure to cast it back to your expected 
object when you get it back).

Session scope is special because it is bound to, well, a 
session, which should be a particular instance of a 
particular user account.  (i.e. if bob logs in twice from 
different browsers, he will likely have two different sessions.)

-QM


Thanks. Appreciated.
Another step forwards.

regards DaveP

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