Re: Website downloading old file

2005-01-18 Thread Paul Taylor
BLimey, yes Test1 was miniscule whereas the original file was 11MB, Ill 
try this later on

Parsons Technical Services wrote:
Size is also a consideration. Were the two files the same size? Was 
test1 smaller?

With ISP proxies, it is a crap shot at how they have them configured.
Test theory:
Upload three files. One smaller, one same size and one large than 
file.bin.
Download each.
Change each.
Redownload each and check for changes.

Note: You may wish to repeat this test in the event the ISP proxy 
expires the cached item while you are testing. This may also be what 
happened to the test file. Some systems flush the cache at an interval 
and some do it on file age.

Doug
- Original Message - From: Paul Taylor [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Monday, January 17, 2005 2:30 PM
Subject: Re: Website downloading old file

Umm inconclusive
asp worked ok, i then created a text file called test1.bin downloaded 
it, edited and tried it again and it downloaded the new one correctly 
as well (this is without the ?var=bogus).

Ben Souther wrote:
Now, for kicks, try with a file with an '.asp' extension.
Your ISP's proxy server may have a list of extensions that don't get
cached.  This would explain why your dynamic JSPs are working but the
static files are being cached.
On Mon, 2005-01-17 at 13:47, Paul Taylor wrote:
OK I think you are onto something here,
the original file was called file.bin, new file replacing it also 
called file.bin and renamed to file2.bin

When I use the ?var=bogus the correct file is returned, but when I 
don't specify a parameter for file.bin it still returns the older 
file.

http://domain/context/file.bin  INCORRECT 
OLD VERSION
http://domain/context/file.bin?var=bogusOKNEW VERSION
http://domain/context/file2.bin?var=bogus  OK NEW VERSION

Ben Souther wrote:

Try requesting the file with a bogus querystring variable
http://domain/context/file.txt?bogus=var
See if the unique URL gets you the right file.
On Mon, 2005-01-17 at 12:43, Paul Taylor wrote:

Can you expand on this please, btw if I change any part of the 
web application itself such as a jsp the results are imediate.
Two ther bits of info which maybe relevent.
1. The host is based in Canada and hence has time set to Candian 
time which is earlier than UK time where Im downloading to.
2. The file Im trying to download is a .bin (Linux) file.

The problem is also happening on Internet Explorer.
Parsons Technical Services wrote:

Sounds like your ISP may have a proxy setup. Usually two 
different browsers don't know about each other.

Doug
- Original Message - From: Paul Taylor 
[EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Monday, January 17, 2005 12:26 PM
Subject: Re: Website downloading old file



I think it is a browser problem because I got a friend to download
from his computer and he received the correct file. Im using 
Firefox

and still get the same problem.
Ben Souther wrote:

Also, in the interest of not overlooking the obvious... Did 
you verify that the FTP write actually worked and that you didn't
accidentally ADD another file with a slightly different name?


On Mon, 2005-01-17 at 09:56, Parsons Technical Services wrote:

File permissions may be part of your problem.
What OS is Tomcat running on?
As for the showing the file after deleting it from the 
server, did you do a restart of Tomcat after deleting the 
file? I remember something on the list awhile back similar to 
this.

Doug
- Original Message - From: Paul Taylor 
[EMAIL PROTECTED]
To: tomcat-user@jakarta.apache.org
Sent: Monday, January 17, 2005 7:42 AM
Subject: Website downloading old file



Puzzled.
I have a Tomcat 5 application, associated with it a file 
that can be downloaded from the website, which is in the 
root directory of the context. (So if the context is called 
myapp the file is in myapp).

Everything was fine but then I realised that there was a 
problem with the file so I ftped a new file to replace it.
But when I try to download the file from the website it 
still refers to the earlier (larger) file.
This still happens even though I have:
shutdown tomcat,
restarted tomcat,
deleted tomcat work directory,
clerared out my browser cache
used a different browser.

It even still allows the file downloads if I delete the file 
from the server, how can this be ?

- 

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




- 

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



- 

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

Website downloading old file

2005-01-17 Thread Paul Taylor
Puzzled.
I have a Tomcat 5 application, associated with it a file that can be 
downloaded from the website, which is in the root directory of the 
context. (So if the context is called myapp the file is in myapp).

Everything was fine but then I realised that there was a problem with 
the file so I ftped a new file to replace it.
But when I try to download the file from the website it still refers to 
the earlier (larger) file.
This still happens even though I have:
shutdown tomcat,
restarted tomcat,
deleted tomcat work directory,
clerared out my browser cache
used a different browser.

It even still allows the file downloads if I delete the file from the 
server, how can this be ?

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


Re: Website downloading old file

2005-01-17 Thread Paul Taylor
I think it is a browser problem because I got a friend to download from 
his computer and he received the correct file. Im using Firefox and 
still get the same problem.

Ben Souther wrote:
Also, in the interest of not overlooking the obvious... 
Did you verify that the FTP write actually worked and that you didn't
accidentally ADD another file with a slightly different name?


On Mon, 2005-01-17 at 09:56, Parsons Technical Services wrote:
 

File permissions may be part of your problem.
What OS is Tomcat running on?
As for the showing the file after deleting it from the server, did you do a 
restart of Tomcat after deleting the file? I remember something on the list 
awhile back similar to this.

Doug
- Original Message - 
From: Paul Taylor [EMAIL PROTECTED]
To: tomcat-user@jakarta.apache.org
Sent: Monday, January 17, 2005 7:42 AM
Subject: Website downloading old file

   

Puzzled.
I have a Tomcat 5 application, associated with it a file that can be 
downloaded from the website, which is in the root directory of the 
context. (So if the context is called myapp the file is in myapp).

Everything was fine but then I realised that there was a problem with the 
file so I ftped a new file to replace it.
But when I try to download the file from the website it still refers to 
the earlier (larger) file.
This still happens even though I have:
shutdown tomcat,
restarted tomcat,
deleted tomcat work directory,
clerared out my browser cache
used a different browser.

It even still allows the file downloads if I delete the file from the 
server, how can this be ?

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

 

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


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


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


Re: Website downloading old file

2005-01-17 Thread Paul Taylor
Can you expand on this please, btw if I change any part of the web 
application itself such as a jsp the results are imediate.
Two ther bits of info which maybe relevent.
1. The host is based in Canada and hence has time set to Candian time 
which is earlier than UK time where Im downloading to.
2. The file Im trying to download is a .bin (Linux) file.

The problem is also happening on Internet Explorer.
Parsons Technical Services wrote:
Sounds like your ISP may have a proxy setup. Usually two different 
browsers don't know about each other.

Doug
- Original Message - From: Paul Taylor [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Monday, January 17, 2005 12:26 PM
Subject: Re: Website downloading old file

I think it is a browser problem because I got a friend to download 
from his computer and he received the correct file. Im using Firefox 
and still get the same problem.

Ben Souther wrote:
Also, in the interest of not overlooking the obvious... Did you 
verify that the FTP write actually worked and that you didn't
accidentally ADD another file with a slightly different name?


On Mon, 2005-01-17 at 09:56, Parsons Technical Services wrote:
File permissions may be part of your problem.
What OS is Tomcat running on?
As for the showing the file after deleting it from the server, did 
you do a restart of Tomcat after deleting the file? I remember 
something on the list awhile back similar to this.

Doug
- Original Message - From: Paul Taylor 
[EMAIL PROTECTED]
To: tomcat-user@jakarta.apache.org
Sent: Monday, January 17, 2005 7:42 AM
Subject: Website downloading old file


Puzzled.
I have a Tomcat 5 application, associated with it a file that can 
be downloaded from the website, which is in the root directory of 
the context. (So if the context is called myapp the file is in 
myapp).

Everything was fine but then I realised that there was a problem 
with the file so I ftped a new file to replace it.
But when I try to download the file from the website it still 
refers to the earlier (larger) file.
This still happens even though I have:
shutdown tomcat,
restarted tomcat,
deleted tomcat work directory,
clerared out my browser cache
used a different browser.

It even still allows the file downloads if I delete the file from 
the server, how can this be ?

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


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


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


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




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


Re: Website downloading old file

2005-01-17 Thread Paul Taylor
What is going on ?
I moved the file to a new filename and edited the jsp to point to the 
renamed file. Tried to download it and it downloaded as the correct size.
I then mnoved it back to the oldfilename and changed the jsp back to 
point to original filename and once again it downloads the old larger 
file which no longer exists !
Paul Taylor wrote:

Can you expand on this please, btw if I change any part of the web 
application itself such as a jsp the results are imediate.
Two ther bits of info which maybe relevent.
1. The host is based in Canada and hence has time set to Candian time 
which is earlier than UK time where Im downloading to.
2. The file Im trying to download is a .bin (Linux) file.

The problem is also happening on Internet Explorer.
Parsons Technical Services wrote:
Sounds like your ISP may have a proxy setup. Usually two different 
browsers don't know about each other.

Doug
- Original Message - From: Paul Taylor [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Monday, January 17, 2005 12:26 PM
Subject: Re: Website downloading old file

I think it is a browser problem because I got a friend to download 
from his computer and he received the correct file. Im using Firefox 
and still get the same problem.

Ben Souther wrote:
Also, in the interest of not overlooking the obvious... Did you 
verify that the FTP write actually worked and that you didn't
accidentally ADD another file with a slightly different name?


On Mon, 2005-01-17 at 09:56, Parsons Technical Services wrote:
File permissions may be part of your problem.
What OS is Tomcat running on?
As for the showing the file after deleting it from the server, did 
you do a restart of Tomcat after deleting the file? I remember 
something on the list awhile back similar to this.

Doug
- Original Message - From: Paul Taylor 
[EMAIL PROTECTED]
To: tomcat-user@jakarta.apache.org
Sent: Monday, January 17, 2005 7:42 AM
Subject: Website downloading old file


Puzzled.
I have a Tomcat 5 application, associated with it a file that can 
be downloaded from the website, which is in the root directory of 
the context. (So if the context is called myapp the file is in 
myapp).

Everything was fine but then I realised that there was a problem 
with the file so I ftped a new file to replace it.
But when I try to download the file from the website it still 
refers to the earlier (larger) file.
This still happens even though I have:
shutdown tomcat,
restarted tomcat,
deleted tomcat work directory,
clerared out my browser cache
used a different browser.

It even still allows the file downloads if I delete the file from 
the server, how can this be ?

- 

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


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


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


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




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


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


Re: Website downloading old file

2005-01-17 Thread Paul Taylor
OK I think you are onto something here,
the original file was called file.bin, new file replacing it also called 
file.bin and renamed to file2.bin

When I use the ?var=bogus the correct file is returned, but when I don't 
specify a parameter for file.bin it still returns the older file.

http://domain/context/file.bin  INCORRECT OLD 
VERSION
http://domain/context/file.bin?var=bogusOKNEW VERSION
http://domain/context/file2.bin?var=bogus  OK NEW VERSION

Ben Souther wrote:
Try requesting the file with a bogus querystring variable
http://domain/context/file.txt?bogus=var
See if the unique URL gets you the right file.
On Mon, 2005-01-17 at 12:43, Paul Taylor wrote:
 

Can you expand on this please, btw if I change any part of the web 
application itself such as a jsp the results are imediate.
Two ther bits of info which maybe relevent.
1. The host is based in Canada and hence has time set to Candian time 
which is earlier than UK time where Im downloading to.
2. The file Im trying to download is a .bin (Linux) file.

The problem is also happening on Internet Explorer.
Parsons Technical Services wrote:
   

Sounds like your ISP may have a proxy setup. Usually two different 
browsers don't know about each other.

Doug
- Original Message - From: Paul Taylor [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Monday, January 17, 2005 12:26 PM
Subject: Re: Website downloading old file
 

I think it is a browser problem because I got a friend to download 
from his computer and he received the correct file. Im using Firefox 
and still get the same problem.

Ben Souther wrote:
   

Also, in the interest of not overlooking the obvious... Did you 
verify that the FTP write actually worked and that you didn't
accidentally ADD another file with a slightly different name?


On Mon, 2005-01-17 at 09:56, Parsons Technical Services wrote:
 

File permissions may be part of your problem.
What OS is Tomcat running on?
As for the showing the file after deleting it from the server, did 
you do a restart of Tomcat after deleting the file? I remember 
something on the list awhile back similar to this.

Doug
- Original Message - From: Paul Taylor 
[EMAIL PROTECTED]
To: tomcat-user@jakarta.apache.org
Sent: Monday, January 17, 2005 7:42 AM
Subject: Website downloading old file


   

Puzzled.
I have a Tomcat 5 application, associated with it a file that can 
be downloaded from the website, which is in the root directory of 
the context. (So if the context is called myapp the file is in 
myapp).

Everything was fine but then I realised that there was a problem 
with the file so I ftped a new file to replace it.
But when I try to download the file from the website it still 
refers to the earlier (larger) file.
This still happens even though I have:
shutdown tomcat,
restarted tomcat,
deleted tomcat work directory,
clerared out my browser cache
used a different browser.

It even still allows the file downloads if I delete the file from 
the server, how can this be ?

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

 

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

   

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

 

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

   

 

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


 


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


Re: Website downloading old file

2005-01-17 Thread Paul Taylor
Umm inconclusive
asp worked ok, i then created a text file called test1.bin downloaded 
it, edited and tried it again and it downloaded the new one correctly as 
well (this is without the ?var=bogus).

Ben Souther wrote:
Now, for kicks, try with a file with an '.asp' extension.
Your ISP's proxy server may have a list of extensions that don't get
cached.  This would explain why your dynamic JSPs are working but the
static files are being cached.
On Mon, 2005-01-17 at 13:47, Paul Taylor wrote:
 

OK I think you are onto something here,
the original file was called file.bin, new file replacing it also called 
file.bin and renamed to file2.bin

When I use the ?var=bogus the correct file is returned, but when I don't 
specify a parameter for file.bin it still returns the older file.

http://domain/context/file.bin  INCORRECT OLD 
VERSION
http://domain/context/file.bin?var=bogusOKNEW VERSION
http://domain/context/file2.bin?var=bogus  OK NEW VERSION

Ben Souther wrote:
   

Try requesting the file with a bogus querystring variable
http://domain/context/file.txt?bogus=var
See if the unique URL gets you the right file.
On Mon, 2005-01-17 at 12:43, Paul Taylor wrote:
 

Can you expand on this please, btw if I change any part of the web 
application itself such as a jsp the results are imediate.
Two ther bits of info which maybe relevent.
1. The host is based in Canada and hence has time set to Candian time 
which is earlier than UK time where Im downloading to.
2. The file Im trying to download is a .bin (Linux) file.

The problem is also happening on Internet Explorer.
Parsons Technical Services wrote:
  

   

Sounds like your ISP may have a proxy setup. Usually two different 
browsers don't know about each other.

Doug
- Original Message - From: Paul Taylor [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Monday, January 17, 2005 12:26 PM
Subject: Re: Website downloading old file


 

I think it is a browser problem because I got a friend to download 
   

from his computer and he received the correct file. Im using Firefox 
 

and still get the same problem.
Ben Souther wrote:
  

   

Also, in the interest of not overlooking the obvious... Did you 
verify that the FTP write actually worked and that you didn't
accidentally ADD another file with a slightly different name?


On Mon, 2005-01-17 at 09:56, Parsons Technical Services wrote:


 

File permissions may be part of your problem.
What OS is Tomcat running on?
As for the showing the file after deleting it from the server, did 
you do a restart of Tomcat after deleting the file? I remember 
something on the list awhile back similar to this.

Doug
- Original Message - From: Paul Taylor 
[EMAIL PROTECTED]
To: tomcat-user@jakarta.apache.org
Sent: Monday, January 17, 2005 7:42 AM
Subject: Website downloading old file


  

   

Puzzled.
I have a Tomcat 5 application, associated with it a file that can 
be downloaded from the website, which is in the root directory of 
the context. (So if the context is called myapp the file is in 
myapp).

Everything was fine but then I realised that there was a problem 
with the file so I ftped a new file to replace it.
But when I try to download the file from the website it still 
refers to the earlier (larger) file.
This still happens even though I have:
shutdown tomcat,
restarted tomcat,
deleted tomcat work directory,
clerared out my browser cache
used a different browser.

It even still allows the file downloads if I delete the file from 
the server, how can this be ?

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



 

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

  

   

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



 

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

  

   



 

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

   


 

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


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

Re: Deploying an application with its own xml file

2005-01-14 Thread Paul Taylor
In what way, do you mean path seperator or something else ?
Within my context.xml im using forward slash (UNIX notation) for both 
and its the Windows one that is working
Phillip Qin wrote:

Windows and linux use different url.
-Original Message-
From: Paul Taylor [mailto:[EMAIL PROTECTED] 
Sent: January 13, 2005 4:22 AM
To: Tomcat Users List
Subject: Re: Deploying an application with its own xml file

Ok, it is working on my test (Windows) environment.
But with same war deploying it to my Live environment(Linux) results in 
it creating myapp.xml as a directory rather than a file !
Ive doubled checked this and the behaviour is constant, anyone ever 
sdeen this?

Paul Taylor wrote:
 

Thanks now working
I had previously found the bit about META-INF but called the file
myapp.xml not context.xml
Phillip Qin wrote:
   

Sotre your context.xml into META-INF. Pack your webapp as war. Then 
let catalina-ant task or Tomcat Manager to deploy your war.

-Original Message-
From: Paul Taylor [mailto:[EMAIL PROTECTED] Sent: January 12,
2005 4:47 AM
To: Tomcat Users List
Subject: Deploying an application with its own xml file
I have an application myapp.war and a corresponding xml file 
myapp.xml. Previously I was copying myapp.xml into 
tomcat/conf/catalina/localhost and manually unpacking my war. Now I 
realised I can put the war into tomcat/webapps and it will 
automatically deploy, but I then have to shutdown server copy over 
the myapp.xml and restart the server. Where can I put the myapp.xml 
file so it automatically gets deployed with the WAR file in a single 
step.

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


 

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


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
!DSPAM:41e63db745621951019963!
 


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


Re: Deploying an application with its own xml file

2005-01-13 Thread Paul Taylor
Ok, it is working on my test (Windows) environment.
But with same war deploying it to my Live environment(Linux) results in 
it creating myapp.xml as a directory rather than a file !
Ive doubled checked this and the behaviour is constant, anyone ever 
sdeen this?

Paul Taylor wrote:
Thanks now working
I had previously found the bit about META-INF but called the file 
myapp.xml not context.xml
Phillip Qin wrote:

Sotre your context.xml into META-INF. Pack your webapp as war. Then let
catalina-ant task or Tomcat Manager to deploy your war.
-Original Message-
From: Paul Taylor [mailto:[EMAIL PROTECTED] Sent: January 12, 
2005 4:47 AM
To: Tomcat Users List
Subject: Deploying an application with its own xml file

I have an application myapp.war and a corresponding xml file myapp.xml.
Previously I was copying myapp.xml into 
tomcat/conf/catalina/localhost and manually unpacking my war.
Now I realised I can put the war into tomcat/webapps and it will 
automatically deploy, but I then have to shutdown server copy over 
the myapp.xml and restart the server. Where can I put the myapp.xml 
file so it automatically gets deployed with the WAR file in a single 
step.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
!DSPAM:41e4fe7c238787962119335!
 


-
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: Multiple domain names to a single site

2005-01-13 Thread Paul Taylor
Still struggling perhaps I need to buy a book but Ive had a tentaive 
look at your options
Parsons Technical Services wrote:

Does the dnsmanager have a choice for redirection of an URL?
It has lots of choices, you can change the dn server, and can use their 
own dnsmanager to chanage various web,domain and email settings. 
Unfortunately there is a lack of documentation explaining it. There is 
nothing saying redirection but I have raised a support request so wiill 
see what happens.

If not:
If the URL is pointed to an IP it will not change on its own. You 
could set up an app under a host of myapp.net and do a redirect to 
.com yourself.

I think Im just llacking the understanding. My server.xml file and the 
one I previously used in another company just use the default host of 
localhost and that seemed to work ok. I did create a new host called 
www.mycompany.com which meant tomcat expect to find a directory of the 
same name underneath conf/Catalina but i cant really understand the 
point of it.

Or
I think you can do the rewrite of the URL from a jsp welcome page of 
myapp.
I think Im right in saying this will only work on the default page 
www.mycompany.net not if they go to straight to 
www.mycompany.net/page1.jsp ecetera.

OR
Try the alias. I don't know if the alias will change the URL or not. 
(Or is this what you were doing?)

Tried adding alises of www.mycompany.net and www.mycompany.com to the 
existing host of localhost but made no difference.


Doug

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


Deploying an application with its own xml file

2005-01-12 Thread Paul Taylor
I have an application myapp.war and a corresponding xml file myapp.xml.
Previously I was copying myapp.xml into tomcat/conf/catalina/localhost 
and manually unpacking my war.
Now I realised I can put the war into tomcat/webapps and it will 
automatically deploy, but I then have to shutdown server copy over the 
myapp.xml and restart the server. Where can I put the myapp.xml file so 
it automatically gets deployed with the WAR file in a single step.

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


Re: Deploying an application with its own xml file

2005-01-12 Thread Paul Taylor
Thanks now working
I had previously found the bit about META-INF but called the file 
myapp.xml not context.xml
Phillip Qin wrote:

Sotre your context.xml into META-INF. Pack your webapp as war. Then let
catalina-ant task or Tomcat Manager to deploy your war.
-Original Message-
From: Paul Taylor [mailto:[EMAIL PROTECTED] 
Sent: January 12, 2005 4:47 AM
To: Tomcat Users List
Subject: Deploying an application with its own xml file

I have an application myapp.war and a corresponding xml file myapp.xml.
Previously I was copying myapp.xml into tomcat/conf/catalina/localhost 
and manually unpacking my war.
Now I realised I can put the war into tomcat/webapps and it will 
automatically deploy, but I then have to shutdown server copy over the 
myapp.xml and restart the server. Where can I put the myapp.xml file so 
it automatically gets deployed with the WAR file in a single step.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
!DSPAM:41e4fe7c238787962119335!
 


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


Multiple domain names to a single site

2005-01-11 Thread Paul Taylor
I have three domains
mycompany.com
mycompany.net
myapp.com
I have setup a website with a hosting provider using Tomcat 5 which 
contains the ROOT application and myapp application so currently
if user goes to http://mycompany.host/ they will go to ROOT application 
and if they go to http://mycompany.host/myapp it will go to myapp 
appliation.

I now want to change the dns records of my domains to point to my website.
My question is are all the domains equal or is there a concept of a 
master and aliases, i.e should I just change the nameservers  of all 
three domains to use my hosts name servers or is it more complicated to 
that for example I could map mycompany.net to redirect to mycompany.com.

Also is it possible for myapp.com to go straight to the relvent 
application (http://mycompany.host/myapp) rather than the root 
application (http://mycompany.host/)

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


Re: Multiple domain names to a single site

2005-01-11 Thread Paul Taylor
Could anyone get me started on this please ?
Paul Taylor wrote:
I have three domains
mycompany.com
mycompany.net
myapp.com
I have setup a website with a hosting provider using Tomcat 5 which 
contains the ROOT application and myapp application so currently
if user goes to http://mycompany.host/ they will go to ROOT 
application and if they go to http://mycompany.host/myapp it will go 
to myapp appliation.

I now want to change the dns records of my domains to point to my 
website.

My question is are all the domains equal or is there a concept of a 
master and aliases, i.e should I just change the nameservers  of all 
three domains to use my hosts name servers or is it more complicated 
to that for example I could map mycompany.net to redirect to 
mycompany.com.

Also is it possible for myapp.com to go straight to the relvent 
application (http://mycompany.host/myapp) rather than the root 
application (http://mycompany.host/)

Thanks Paul
-
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: Multiple domain names to a single site

2005-01-11 Thread Paul Taylor
Parsons Technical Services wrote:
You will be working with the host entries in the server.xmlFrom how I 
read this you want mycompany..com and .net pointing at the same app. 
You can do this either at the dns level or in the host entry with an 
alias. As for master slave the master will be the desired URL. If you 
want people to use .com the set it up as your main entry and the 
redirect in the dns or alias .net to it. This way when they get to the 
site the URL in the address will be .com

If the mycompany site is the default site, as it appears to be, any 
URL that points to the server IP that does not have a matching host 
entry will go to the mycompany site. So you could just point both 
mycompany urls to the IP and it will work. With this the URL will 
remain as typed .com or .net   For public relations don't do this as 
confusion will result. Especially when it comes to email.

You have understood me correctly and I understand what you say in 
principal. I want to do achieve the first case you describe so that if 
they enter www.mycompany.com it will remain so, if they enter 
www.mycompany.net it will redirect as www.mycompany.com. But Im still 
not sure how to do this, when you say mainentry do you mean using dns or 
do you mean the first host in server.xml (currently I just have the 
default localhost confgured).  Then how do I create an alias for the 
second address is 'alias' a  tomcat thing or a dns thing ?


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


Re: Please recommend a Low Cost Tomcat Hosting platform

2005-01-10 Thread Paul Taylor
Ok,
Well I decided to try kgbinternet.com instead and its exactly what I 
wanted. You have complete control over configuration and Ive encoutered 
no problems so far, and its considerably cheaper.

Mark Benussi wrote:
H Paul,
Yes in terms of the logging and connection pooling I had that problem 
and so I implemented the commons database pooling and use log4j to do 
my logging.

Sorry it wasn't so clear for you
Original Message Follows
From: Paul Taylor [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: Mark Benussi [EMAIL PROTECTED],Tomcat Users List 
tomcat-user@jakarta.apache.org
Subject: Re: Please recommend a Low Cost Tomcat Hosting platform
Date: Fri, 07 Jan 2005 15:36:32 +

Review of noname.net
I made the mistake of selecting a Shared VM trial thinking I could get 
way with it but I couldnt.
I managed to get my basic application running, although deployment was 
a very hit a and miss affair, Tomcat Manager didnt work properly  and 
I didnt receive satisfactory explanations of what was going on. But I 
wanted to implement database connection pooling and changes to the 
tomcat logging and this was not possible so I requested an upgrade to 
a trial to a private JVM, but was told only one trial per customer is 
allowed.

At least they give a free trial but Im checking out 
http://www.servlets.com/isps/ and deciding on someone else to try.

Paul
Mark Benussi wrote:
Let me know how you get on Paul, and feel free to let them know I 
referred you ; )

As a tip I would recommend the following:
If you have any custom XMl with external DTD then ask them to make 
sure your account has external access to retrieve the DTD's (They 
don't do this by default). Also if you need SSL ask them now as they 
need to do some specifics with your host IP address.

Cheers,
Mark Benussi
Original Message Follows
From: Paul Taylor [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
CC: Tomcat Users List tomcat-user@jakarta.apache.org
Subject: Re: Please recommend a Low Cost Tomcat Hosting platform
Date: Tue, 04 Jan 2005 16:26:40 +
I've taken a look at the recommended options and this is my view from 
looking at the Websites provided.

1. WebConnexions has very little information regarding JSPs (there is 
only one question regarding Java on Support) and the pricing ids 
unfairly skewed to be cheaper for US accounts. Im a bit dubious about 
it because I have already signed up with a supposed Java Host and 
found it lacking.
2. MythicBeasts is very flexible but would require me to deal with 
the administration of the whole machine which isnt something I really 
want todo, having deployed by application I want to just leave it be 
as much as possible.
3. NameOnTheNet looks promising, they only seem to do Java Hosting 
and there is alot of support information and they are based in the UK 
so I think I might give them a try.
4. AssortedInternet look OK, but they seem to cover so many different 
types of hosting I am unsure of how important Java Hosting is, also 
based in US.

Paul Taylor wrote:
Hi
I have a Tomcat 4 Application ready to deploy as a WAR. It uses 
database pooling to connect to a MYSQL database. I recently selected 
a Tomcat hosting platform to deploy my application but the 
deployment is non -standard you have to copy various parts of the 
WAR to different locations which dont match the standard deployment 
and it doesnt use database pooling to connect to MYSQL. I have been 
unable to get my application to run on it because these issues.

This is not a high performance website and I do not need/cannot 
afford a dedicated server I just want to easily be able to deploy my 
application.

I am based in the UK so a UK/English Speaking host would be preferable.
Could anyone recommend a hostthat provides this straight forward 
deployment facilities.
Thanks paul


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


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


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


Preventing directory listings in WebApplication

2005-01-10 Thread Paul Taylor
Hi
How exactly do I stop the user going into directory containing jsps and 
listing all the jsps within it as a directory listing. I dont mind them 
specifying a particular jsp and going straight to that but I would / to 
map to the default page for the particular some section.

i.e
myapp/section1
i want go to myapp/section1/start.jsp
myapp/section2
i want go to myapp/section2/start.jsp
I guess its something to do with mappings the applications in web.xml 
but I cant get it working.

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


Re: Preventing directory listings in WebApplication

2005-01-10 Thread Paul Taylor
Ok Ive realised what I was doing wrong I was listing a file on each 
directory
as follows

welcome-file-list id=WelcomeFileList_1
  welcome-filesection1/start.jsp/welcome-file
  welcome-filesection2/start.jsp/welcome-file
/welcome-file-list
when i just needed to specify the file 

Also you can use it in conjunction with listing =false which I need because 
some directories do not have a suitable default.
Ben Souther wrote:
Just before the error page listings in your application's web.xml file.
  4305
  4306   welcome-file-list id=WelcomeFileList_1
  4307   welcome-fileindex.html/welcome-file
  4308   welcome-fileindex.jsp/welcome-file
  4308   welcome-filestart.jsp/welcome-file -
  4309/welcome-file-list
  4310 !--


On Mon, 2005-01-10 at 11:03, Paul Taylor wrote:
 

Hi
Are these exclusive options. I can disable the listings but cant get the 
default pages to work
Should the default pages go in the applications web.xml or Tomcats main 
web.xml

Ben Souther wrote:
   

You can add start.jsp to your welcome file list or you can 
set listings to false in the the default servlet entry of 
TOMCAT_HOME/conf/web.xml


On Mon, 2005-01-10 at 09:21, Paul Taylor wrote:
 

Hi
How exactly do I stop the user going into directory containing jsps and 
listing all the jsps within it as a directory listing. I dont mind them 
specifying a particular jsp and going straight to that but I would / to 
map to the default page for the particular some section.

i.e
myapp/section1
i want go to myapp/section1/start.jsp
myapp/section2
i want go to myapp/section2/start.jsp
I guess its something to do with mappings the applications in web.xml 
but I cant get it working.

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

   


 

   


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


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


Re: how to deploy using war file on tomcat 5

2005-01-07 Thread Paul Taylor
For this to work if you havent already you must have also configured 
your Tomcat Manager Application with a valid user and password if you 
havent already.Acess to documentation here 
http://localhost:8080/manager/manager-howto.html

Mike Fowler wrote:
Sandeep -
The ant deploy task you need is found in catalina-ant.jar in 
$TOMCAT_HOME/server/lib.

Then in your build file a target like this should do:
target name=deploy
deploy url=127.0.0.1:8080
username=${manager_username}
password=${manager_password}
path=${webapp_path}
war=${war_file}
update=true/
/target
Hope this helps!
-Mike Fowler
I could be a genius if I just put my mind to it, and I,
I could do anything, if only I could get 'round to it
Sandeep Kang wrote:
Hi all,
I have been trying hard to deploy my webapp on Tomcat-5.0.27 using a WAR
file. I have searched through the mail archives but havent been able to
find a well defined proceudre for deploying webapps using WAR files.
Plz can someone guide me on how to do that using Ant build.xml. Kindly
give detailed step by step procedure.
Thanks in advance.
Bye.

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


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


Re: Please recommend a Low Cost Tomcat Hosting platform

2005-01-07 Thread Paul Taylor
Review of noname.net
I made the mistake of selecting a Shared VM trial thinking I could get 
way with it but I couldnt.
I managed to get my basic application running, although deployment was a 
very hit a and miss affair, Tomcat Manager didnt work properly  and I 
didnt receive satisfactory explanations of what was going on. But I 
wanted to implement database connection pooling and changes to the 
tomcat logging and this was not possible so I requested an upgrade to a 
trial to a private JVM, but was told only one trial per customer is allowed.

At least they give a free trial but Im checking out 
http://www.servlets.com/isps/ and deciding on someone else to try.

Paul
Mark Benussi wrote:
Let me know how you get on Paul, and feel free to let them know I 
referred you ; )

As a tip I would recommend the following:
If you have any custom XMl with external DTD then ask them to make 
sure your account has external access to retrieve the DTD's (They 
don't do this by default). Also if you need SSL ask them now as they 
need to do some specifics with your host IP address.

Cheers,
Mark Benussi
Original Message Follows
From: Paul Taylor [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
CC: Tomcat Users List tomcat-user@jakarta.apache.org
Subject: Re: Please recommend a Low Cost Tomcat Hosting platform
Date: Tue, 04 Jan 2005 16:26:40 +
I've taken a look at the recommended options and this is my view from 
looking at the Websites provided.

1. WebConnexions has very little information regarding JSPs (there is 
only one question regarding Java on Support) and the pricing ids 
unfairly skewed to be cheaper for US accounts. Im a bit dubious about 
it because I have already signed up with a supposed Java Host and 
found it lacking.
2. MythicBeasts is very flexible but would require me to deal with the 
administration of the whole machine which isnt something I really want 
todo, having deployed by application I want to just leave it be as 
much as possible.
3. NameOnTheNet looks promising, they only seem to do Java Hosting and 
there is alot of support information and they are based in the UK so I 
think I might give them a try.
4. AssortedInternet look OK, but they seem to cover so many different 
types of hosting I am unsure of how important Java Hosting is, also 
based in US.

Paul Taylor wrote:
Hi
I have a Tomcat 4 Application ready to deploy as a WAR. It uses 
database pooling to connect to a MYSQL database. I recently selected 
a Tomcat hosting platform to deploy my application but the deployment 
is non -standard you have to copy various parts of the WAR to 
different locations which dont match the standard deployment and it 
doesnt use database pooling to connect to MYSQL. I have been unable 
to get my application to run on it because these issues.

This is not a high performance website and I do not need/cannot 
afford a dedicated server I just want to easily be able to deploy my 
application.

I am based in the UK so a UK/English Speaking host would be preferable.
Could anyone recommend a hostthat provides this straight forward 
deployment facilities.
Thanks paul


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


Please recommend a Low Cost Tomcat Hosting platform

2005-01-04 Thread Paul Taylor
Hi
I have a Tomcat 4 Application ready to deploy as a WAR. It uses database 
pooling to connect to a MYSQL database. I recently selected a Tomcat 
hosting platform to deploy my application but the deployment is non 
-standard you have to copy various parts of the WAR to different 
locations which dont match the standard deployment and it doesnt use 
database pooling to connect to MYSQL. I have been unable to get my 
application to run on it because these issues.

This is not a high performance website and I do not need/cannot afford a 
dedicated server I just want to easily be able to deploy my application.

I am based in the UK so a UK/English Speaking host would be preferable.
Could anyone recommend a hostthat provides this straight forward 
deployment facilities.
Thanks paul

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


Re: Please recommend a Low Cost Tomcat Hosting platform

2005-01-04 Thread Paul Taylor
Thanks, it loooks quite good but have you actually used it ?
Guy Katz wrote:
you have http://www.webconexion.net based @ the uk.
-Original Message-
From: Paul Taylor [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 04, 2005 4:32 PM
To: Tomcat Users List
Subject: Please recommend a Low Cost Tomcat Hosting platform
Hi
I have a Tomcat 4 Application ready to deploy as a WAR. It uses database 
pooling to connect to a MYSQL database. I recently selected a Tomcat 
hosting platform to deploy my application but the deployment is non 
-standard you have to copy various parts of the WAR to different 
locations which dont match the standard deployment and it doesnt use 
database pooling to connect to MYSQL. I have been unable to get my 
application to run on it because these issues.

This is not a high performance website and I do not need/cannot afford a 
dedicated server I just want to easily be able to deploy my application.

I am based in the UK so a UK/English Speaking host would be preferable.
Could anyone recommend a hostthat provides this straight forward 
deployment facilities.
Thanks paul

-
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: Please recommend a Low Cost Tomcat Hosting platform

2005-01-04 Thread Paul Taylor
I tried
nameonthenet.co.uk and it cant find it and nameonthenet.com is up for sale
Mark Benussi wrote:
Paul,
I use a company called name on the net who work out at £100 a year. 
They support WAR deployment in a pure sense (my only comment would be 
they provide a Tomcat 5 container). Support is good, they are a small 
company and from that point of view you always get a quick response.

Original Message Follows
From: Paul Taylor [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Subject: Please recommend a Low Cost Tomcat Hosting platform
Date: Tue, 04 Jan 2005 14:32:12 +
Hi
I have a Tomcat 4 Application ready to deploy as a WAR. It uses 
database pooling to connect to a MYSQL database. I recently selected a 
Tomcat hosting platform to deploy my application but the deployment is 
non -standard you have to copy various parts of the WAR to different 
locations which dont match the standard deployment and it doesnt use 
database pooling to connect to MYSQL. I have been unable to get my 
application to run on it because these issues.

This is not a high performance website and I do not need/cannot afford 
a dedicated server I just want to easily be able to deploy my 
application.

I am based in the UK so a UK/English Speaking host would be preferable.
Could anyone recommend a hostthat provides this straight forward 
deployment facilities.
Thanks paul

-
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: Please recommend a Low Cost Tomcat Hosting platform

2005-01-04 Thread Paul Taylor
I've taken a look at the recommended options and this is my view from 
looking at the Websites provided.

1. WebConnexions has very little information regarding JSPs (there is 
only one question regarding Java on Support) and the pricing ids 
unfairly skewed to be cheaper for US accounts. Im a bit dubious about it 
because I have already signed up with a supposed Java Host and found it 
lacking.
2. MythicBeasts is very flexible but would require me to deal with the 
administration of the whole machine which isnt something I really want 
todo, having deployed by application I want to just leave it be as much 
as possible.
3. NameOnTheNet looks promising, they only seem to do Java Hosting and 
there is alot of support information and they are based in the UK so I 
think I might give them a try.
4. AssortedInternet look OK, but they seem to cover so many different 
types of hosting I am unsure of how important Java Hosting is, also 
based in US.

Paul Taylor wrote:
Hi
I have a Tomcat 4 Application ready to deploy as a WAR. It uses 
database pooling to connect to a MYSQL database. I recently selected a 
Tomcat hosting platform to deploy my application but the deployment is 
non -standard you have to copy various parts of the WAR to different 
locations which dont match the standard deployment and it doesnt use 
database pooling to connect to MYSQL. I have been unable to get my 
application to run on it because these issues.

This is not a high performance website and I do not need/cannot afford 
a dedicated server I just want to easily be able to deploy my 
application.

I am based in the UK so a UK/English Speaking host would be preferable.
Could anyone recommend a hostthat provides this straight forward 
deployment facilities.
Thanks paul


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


Re: Please recommend a Low Cost Tomcat Hosting platform

2005-01-04 Thread Paul Taylor
Yeah, they have been mentioned before but I sent them an email a couple 
of weeks ago regarding some questions about hosting and they never got 
back to me.

Guy Katz wrote:
www.javaservlethosting.com is also considered one of the best out there.
-Original Message-
From: Paul Taylor [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 04, 2005 6:27 PM
To: [EMAIL PROTECTED]
Cc: Tomcat Users List
Subject: Re: Please recommend a Low Cost Tomcat Hosting platform
I've taken a look at the recommended options and this is my view from 
looking at the Websites provided.

1. WebConnexions has very little information regarding JSPs (there is 
only one question regarding Java on Support) and the pricing ids 
unfairly skewed to be cheaper for US accounts. Im a bit dubious about it 
because I have already signed up with a supposed Java Host and found it 
lacking.
2. MythicBeasts is very flexible but would require me to deal with the 
administration of the whole machine which isnt something I really want 
todo, having deployed by application I want to just leave it be as much 
as possible.
3. NameOnTheNet looks promising, they only seem to do Java Hosting and 
there is alot of support information and they are based in the UK so I 
think I might give them a try.
4. AssortedInternet look OK, but they seem to cover so many different 
types of hosting I am unsure of how important Java Hosting is, also 
based in US.

Paul Taylor wrote:
 

Hi
I have a Tomcat 4 Application ready to deploy as a WAR. It uses 
database pooling to connect to a MYSQL database. I recently selected a 
Tomcat hosting platform to deploy my application but the deployment is 
non -standard you have to copy various parts of the WAR to different 
locations which dont match the standard deployment and it doesnt use 
database pooling to connect to MYSQL. I have been unable to get my 
application to run on it because these issues.

This is not a high performance website and I do not need/cannot afford 
a dedicated server I just want to easily be able to deploy my 
application.

I am based in the UK so a UK/English Speaking host would be preferable.
Could anyone recommend a hostthat provides this straight forward 
deployment facilities.
Thanks paul

   


-
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: Deploying a war in TC4

2004-11-12 Thread Paul Taylor
I am still unable to get this to unpack automatically, I have to unpack 
it myself before starting Tomcat and then it is ok
in my web.xml I have
web-app
  servlet
   servlet-nameController/servlet-name
   servlet-classcom.testapp.Controller/servlet-class
   load-on-startup0/load-on-startup
   /servlet
   servlet-mapping
   servlet-nameController/servlet-name
   url-pattern/controller/url-pattern
   /servlet-mapping 
/web-app

Is there anything I can do here which might make a difference.
Paul Taylor wrote:
Thanks I use a File() constructor because the same class is used in a 
standalone situation
Ive checked my server.xml and it already seems to have unpacking set.

!-- Define the default virtual host --
 Host name=localhost debug=0 appBase=webapps
  unpackWARs=true autoDeploy=true
should my docbase me appname or appname.war
Shapira, Yoav wrote:
Hi,
 

How can I get round this ?
  

Two ways: either configure the Host in server.xml to unpackWARs (which
is the default I think even for Tomcat 4.x).  Or write your app to the
Servlet Spec, which means no File constructions except in the
javax.servlet.context.tempdir directory.
Yoav

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

 


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


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


Re: Use of Referer header

2004-11-11 Thread Paul Taylor
Ok, I misunderstood what it did. It seems to work ok on both IE and 
Firefox always returning a value when navigating from a page but being 
null when accessing the page directly because there is no referer.

So Ive just coded my page like to only show a back link when actually 
come from another page.

% if (request.getHeader(REFERER)!=null) { %
   pa href=%=request.getHeader(REFERER)%back/a/p
% } %
p/p
Jon Wingfield wrote:
Also from Section 14.36 of rfc2616:
extract
The Referer field MUST NOT be sent if the Request-URI was obtained 
from source that does not have its own URI, such as input from the 
user keyboard.
/extract

So you can't rely on it being present.
Shapira, Yoav wrote:
Hi,

But I have 2 questions:
1. Where are these header values defined I've not beeen able to find a
good source.

See the HTTP protocol RFC itself for common headers like referrer.
Other servers and routers may add custom headers along the way.  Your
app and other apps can also use custom headers if they wish.

2.  It worked when coming from my pages but I then tried going to
another page (e.g www.sun.com) and then pasting in the url and it just
returned null. Does referer only apply when hyperlink from another

page ?
Some browsers, including IE, are known to have bugs regarding the
referrer header.  Sometimes it's null or not included in the request at
all.  So your app, if it uses the referrer header, must be tolerant of
these bugs.
What about a history.go(-1) alternative to the referrer header?
Yoav

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

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


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


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


Re: Preventing users getting accessing to directory contents in Tomcat

2004-11-10 Thread Paul Taylor
Thanks works a treat
Is there a similar way to prevent the user typing in the url of a 
partciuar jsp or image and stop them being taken it. Ive looked at 
security-constraints but this seems to be based on only certain/logged 
in users gaining access. I have no concept of logged users in my 
application but I only want them to access pages via the interface 
rather than the url except for a few pages which they can access via url 
to allow them to bookmark them.

Shapira, Yoav wrote:
Hi,
Add a listings parameter to the DefaultServlet in conf/web.xml with a
param-value of false.  IIRC.
Yoav Shapira http://www.yoavshapira.com
 

-Original Message-
From: Paul Taylor [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 09, 2004 7:00 AM
To: Tomcat Users List
Subject: Preventing users getting accessing to directory contents in
   

Tomcat
 

Under tomcat 4 my jsps are held in a subdiir called jsp which contains
further subdirectories
What do I put into web.xml to stop requests such as
http//localhost:8080/myapp/jsp or http//localhost:8080/myapp/jsp/info
listing the contents of the directory.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
   



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


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


Re: Preventing users getting accessing to directory contents in Tomcat

2004-11-10 Thread Paul Taylor
Point taken regarding images.
But is this the only way to protect jsp ?
I have a directory structure as follows
/jsp/feedback/start.jsp
/jsp/feedback/finish.jsp
I  want them to be able to bookmark start.jsp and access it either 
through the interface or directly from the url. but I dont want them to 
access
finish.jsp directly because it doesnt make any sense as it is is only 
shown after processing start.jsp.

From what your saying I would have to either do
/WEB-INF/feedback/start.jsp
/WEB-INF/feedback/finish.jsp
which would mean they couldnt bookmark anything
or do
/jsp/feedback/start.jsp
/WEB-INF/feedback/finish.jsp
which screws up my links and stuff, meaning quite alot of rework and 
stuff over the whole site.

On a similar note, some of my jsps calls a servlet. In my web.xml it is 
defined and url mapped as follows
  servlet
   servlet-nameController/servlet-name
   servlet-classcom.myapp.Controller/servlet-class
   load-on-startup0/load-on-startup
   /servlet
   servlet-mapping
   servlet-nameController/servlet-name
   url-pattern/controller/url-pattern
   /servlet-mapping

My jsp would then call
form name=feedbackform2 method=post 
action=%=request.getContextPath()%/controller
to call the servlet

the trouble is the user can type directly into the url 
localhost:8080/myapp/controller

and call the servlet ot of context how do I stop that ?


Tim Funk wrote:
You can't prevent images from being taken.
As for JSP's. Move them to your WEB-INF directory. Then use a servlet 
to validate the incoming parameters and then forward to the JSP.

-Tim
Paul Taylor wrote:
Thanks works a treat
Is there a similar way to prevent the user typing in the url of a 
partciuar jsp or image and stop them being taken it. Ive looked at 
security-constraints but this seems to be based on only 
certain/logged in users gaining access. I have no concept of logged 
users in my application but I only want them to access pages via the 
interface rather than the url except for a few pages which they can 
access via url to allow them to bookmark them.

Shapira, Yoav wrote:
Hi,
Add a listings parameter to the DefaultServlet in conf/web.xml with a
param-value of false.  IIRC.
Yoav Shapira http://www.yoavshapira.com
 

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


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


How do default to get website to go straight to my webapp ?

2004-11-10 Thread Paul Taylor
How do you default to get website to go straight to my webapp ?
I have a web application called testapp and in web.xml I have
welcome-file-list
welcome-filejsp/overview.jsp/welcome-file
/welcome-file-list
Going to
   http://localhost:8080/testapp
takes the user to
   http://localhost:8080/testapp/jsp/overview.jsp
which is fine.
BUT how can I get the user to go straight to 
http://localhost:8080/testapp/jsp/overview.jsp
when they enter http://localhost:8080
at the moment it just goes to the tomcat home page index.jsp

and is there a way I can do without the user needing to specify the port 
i.e http://localhost as other servers seem to do.

Thanks, (one day i will get this webserver business)

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


Re: How do default to get website to go straight to my webapp ?

2004-11-10 Thread Paul Taylor
Thanks for the quick prompt reply.
Is this normal to do, it feels like I am messing up the standard config 
and would the end result be that the url would display as 
localhost/overview.jsp
rather than localhost/testapp/overview.jsp

Would it be better to replace ROOT app with a mini app. For example say 
I have two applications running on  tomcat could I create a third app 
which simply had a webpage giving links to the start of the other two apps


Shapira, Yoav wrote:
You need to make your webapp reside at context path  (the empty
string, not null and especially not /) in the Tomcat configuration.
That means you need to replace the ROOT webapp that ships with Tomcat
with your application.  

To do so, remove webapps/ROOT, remove conf/Catalina/localhost/root.xml
if it's present, and remove all contents of the work directory.  Then
add a testapp.xml file on conf/Catalina/localhost, containing a Context
element like
Context path= docBase=testapp /
Also set autoDeploy=false in the Host declaration in your
conf/server.xml file.
 


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


Re: How do default to get website to go straight to my webapp ?

2004-11-10 Thread Paul Taylor
Ok, ive done the section so that I can add an extra application at a 
later stage if I need to.
You say in your post index.xml do you mean index.jsp or web.xml
I've created a new index.jsp which  provides the user with a hyperlink 
to testapp but I dont know if I can make the new page automatically go 
to testapp either through further mod of index.jsp or whether the 
web.xml can reference my testapp.

Shapira, Yoav wrote:
Would it be better to replace ROOT app with a mini app. For example say
I have two applications running on  tomcat could I create a third app
which simply had a webpage giving links to the start of the other two
   

apps
That's also a fine option.  You can replace the ROOT index.xml file with
one that forwards to /testapp very easily.  This involves no server-side
configuration, so it's quick and easy.  However, URLs like
http://yourhost/somePageOtherThanIndex.html will not work.
Yoav
 

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


Re: How do default to get website to go straight to my webapp ?

2004-11-10 Thread Paul Taylor
Ok FYI, done it added
head
meta http-equiv=refresh  content=1; 
URL=../testapp/overview/startup.jsp/
/head
to index.jsp
Paul Taylor wrote:

I've created a new index.jsp which  provides the user with a hyperlink 
to testapp but I dont know if I can make the new page automatically go 
to testapp either through further mod of index.jsp or whether the 
web.xml can reference my testapp.

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


Re: Preventing users getting accessing to directory contents in Tomcat

2004-11-10 Thread Paul Taylor
Thanks Tim
For all non JSTLers I added this to my page:
%if (request.getMethod().equals(GET)) { 
response.sendError(HttpServletResponse.SC_NOT_FOUND); } %

Tim Funk wrote:
The easy way is to make start.jsp a GET and all the other pages POST.
When pages are bookmarked - they are asked for via GET requests. Code 
you JSP to look for the request method. If the method is NOT POST, 
then redirect them to some error page. (Or the start page)

For example, in JSTL (but not verified)
c:if test='${POST ne pageContext.request.method}'
  c:redirect url=start.jsp /
/c:if
-Tim
Paul Taylor wrote:
Point taken regarding images.
But is this the only way to protect jsp ?
I have a directory structure as follows
/jsp/feedback/start.jsp
/jsp/feedback/finish.jsp
I  want them to be able to bookmark start.jsp and access it either 
through the interface or directly from the url. but I dont want them 
to access
finish.jsp directly because it doesnt make any sense as it is is only 
shown after processing start.jsp.


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


Use of Referer header

2004-11-10 Thread Paul Taylor
I have a WebPage which can be called from two different webpages, and I 
wanted it to have a back button.

Originally I had the calling pages passing a parameter to tell the 
called page what called it. Then someone pointed
out %=request.getHeader(REFERER)% to m. This works much better.

But I have 2 questions:
1. Where are these header values defined I've not beeen able to find a 
good source.
2.  It worked when coming from my pages but I then tried going to 
another page (e.g www.sun.com) and then pasting in the url and it just 
returned null. Does referer only apply when hyperlink from another  page ?

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


Preventing users getting accessing to directory contents in Tomcat

2004-11-09 Thread Paul Taylor
Under tomcat 4 my jsps are held in a subdiir called jsp which contains 
further subdirectories
What do I put into web.xml to stop requests such as 
http//localhost:8080/myapp/jsp or http//localhost:8080/myapp/jsp/info
listing the contents of the directory.

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


Deploying a war in TC4

2004-11-05 Thread Paul Taylor
Hi I was originally deploying an application in Tomcat 4 using the 
exploded  directory structure.
Ive now created a war and tried to deploy that instead.
First attempt it didnt do anything I then changed docbase from appname 
to appname.war in server.xml and on starting tomcat it tried to deploy it.
Unfortunately I thought the first thing it would do was unpack the WAR 
and then run it but it seems to use it as is and in my default servlet I 
have some code which opens a file (new  File()...) this fails  because  
the war hasnt been upacked yet so the file is still in the WAR rather 
than directly n the file system.

If I unpack the war myself and change docbase back to appname things are ok.
How can I get round this ?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Deploying a war in TC4

2004-11-05 Thread Paul Taylor
Thanks I use a File() constructor because the same class is used in a 
standalone situation
Ive checked my server.xml and it already seems to have unpacking set.

!-- Define the default virtual host --
 Host name=localhost debug=0 appBase=webapps
  unpackWARs=true autoDeploy=true
should my docbase me appname or appname.war
Shapira, Yoav wrote:
Hi,
 

How can I get round this ?
   

Two ways: either configure the Host in server.xml to unpackWARs (which
is the default I think even for Tomcat 4.x).  Or write your app to the
Servlet Spec, which means no File constructions except in the
javax.servlet.context.tempdir directory.
Yoav

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


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


Tomcat 4.1 not starting, how do I track error (database pooling)

2004-11-04 Thread Paul Taylor
Hi
having written an application that ran fine on Tomcat 5 I am having to 
regress it to run on Tomcat 4.1 running on Windows. part of the 
deployment involves setting up database pooling.

First of all I deployed my application war only and started Tomcat using 
catalina start this worked ok, but I then needed to configure database 
pooling to get it fully working.

In Tomcat 5.0 I had a config file /contextname.xml /under 
CATLINA_HOME/conf/catalina/localhost which worked fine, under Tomcat 4.0 
I have added the contents to  server.xml. I then ran catalina.bat start 
this starts another window but then disappears immediately before I am 
able to trap the problem, there is nothing in the log file to indicate 
the problem.

Could anybody please help with any of the following ?
1. How do I stop the window started my Catalina from disappearing so I 
can see what the problem is.
2. In Tomcat 4.0 can I have a config file for my application rather than 
adding it to server.xml
3. I am using the mysqllConnectector 3.15 driver does this work with 
Tomcat 4.0.
4. Are pooling connections configured the same in 4 as 5 or not below I 
have listed the contents of my xml file from Tomcat 5.

Context path=/kijil displayname=kijil debug=0 privileged=true
Resource name=jdbc/kijil
   auth=Container
   type=javax.sql.DataSource/
 ResourceParams name=jdbc/kijil
   parameter
 namefactory/name
 valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
   /parameter
  
   parameter
 namemaxActive/name
 value100/value
   /parameter
 
   parameter
 namemaxIdle/name
 value30/value
   /parameter
 
   parameter
 namemaxWait/name
 value1/value
   /parameter

   parameter
nameusername/name
valuekijil/value
   /parameter
  
   parameter
namepassword/name
valueflyup/value
   /parameter

   parameter
 namedriverClassName/name
 valuecom.mysql.jdbc.Driver/value 
   /parameter
  
   parameter
 nameurl/name
 valuejdbc:mysql://localhost:3306/kijil?autoReconnect=true/value
   /parameter
 /ResourceParams

/Context

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


Re: Tomcat 4.1 not starting, how do I track error (database pooling)

2004-11-04 Thread Paul Taylor
Thanks very much all working, the problem was I had removed docbase 
paramter not hinking it was needed because the code was hosted directly 
under webapps.
BTW username is correct in TC4.

My context is privileged just because I copied it from somehwere else 
without knowing what it meant, no good reason.

Shapira, Yoav wrote:
Hi,
 

1. How do I stop the window started my Catalina from disappearing so I
can see what the problem is.
   

Use catalina.bat run instead of startup.bat (which calls catalina.bat
start).
 

2. In Tomcat 4.0 can I have a config file for my application rather
   

than
 

adding it to server.xml
   

No.
 

3. I am using the mysqllConnectector 3.15 driver does this work with
Tomcat 4.0.
   

Yes.
 

4. Are pooling connections configured the same in 4 as 5 or not below I
have listed the contents of my xml file from Tomcat 5.
   

Mostly the same, but some attribute names are different.
 

Context path=/kijil displayname=kijil debug=0 privileged=true
   

Why is your context privileged?
 

  parameter
   nameusername/name
   valuekijil/value
  /parameter
   

Try changing name to user instead of username -- I believe this was
a change made in DBCP.
Yoav

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


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


Re: using the Standard jdk 1.4 logging with Tomcat 5

2004-10-15 Thread Paul Taylor
Spoke to someone else who had the same problem.
As far as I can see this is a bug in Tomcat, it is unable to find the 
custom formatter unless anyone knows different Ill raise this as a bug.

Paul Taylor wrote:
Did you specify your own formatter in your properties file ?
Ive changed my code from
com.appserver.util.logging.LogProperties.setLevelFromParametersFromPrefs(); 

System.getProperties().setProperty(java.util.logging.config.class, 
com.appserver.util.logging.LogProperties);
LogManager.getLogManager().readConfiguration();

to
com.appserver.util.logging.LogProperties.setLevelFromParametersFromPrefs(); 

LogManager.getLogManager().readConfiguration(com.appserver.util.logging.LogProperties.getPropertiesAsStream()); 


Now I dont get any errors and only messages for the LEVEL is set to 
the value I specify in my LogProperties class are displayed. However I 
also specify a Formatter to use for console output but Tomcat just 
seems to ignore it and uses its own default formatter.

Jukka Uusisalo wrote:
Hi,
I have used jdk 1.4 logging  with  tomcat  5.0.x without any 
problems, but i have configured logging with 
java.util.logging.config.file property and
config file.

- Jukka -
Paul Taylor wrote:
Hi in a previous non Tomcat project I wrote some classes that used 
the java.util.logging library that comes with java 1.4 quite 
successfully. I am now trying to use the same classes with Toimcat 
5.0 but it doesnt like it. With the logging classes you can provide 
a configuration class which you define with a property 
java.util.logging.config.class, I put the class in my 
WEB_INF\classes with all the other classes.
When I run with Tomcat i have a servlet that does the following to 
try and initilse the logging

 
com.appserver.util.logging.LogProperties.setLevelFromParametersFromPrefs(); 

 System.getProperties().setProperty(java.util.logging.config.class, 
com.appserver.util.logging.LogProperties);
 LogManager.getLogManager().readConfiguration();

it complains it cant find the class, when running 
readConfiguration(), (The 1st two lines run ok). I think the problem 
is to do with Tomcat classloader, with a simple Java application the 
classes would be expected to be on the system classpath, but on 
Tomcat the system classpath only contains bootstrap.jar.

I realise I could probably get things working using Apaches log4j 
instead but it seems a bit silly to use that when there is a 
perfectly adequate logger built into the language now.

Anyone done this ?

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

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


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


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


Re: using the Standard jdk 1.4 logging with Tomcat 5

2004-10-07 Thread Paul Taylor
Did you specify your own formatter in your properties file ?
Ive changed my code from
com.appserver.util.logging.LogProperties.setLevelFromParametersFromPrefs();
System.getProperties().setProperty(java.util.logging.config.class, 
com.appserver.util.logging.LogProperties);
LogManager.getLogManager().readConfiguration();
to
com.appserver.util.logging.LogProperties.setLevelFromParametersFromPrefs();
LogManager.getLogManager().readConfiguration(com.appserver.util.logging.LogProperties.getPropertiesAsStream());

Now I dont get any errors and only messages for the LEVEL is set to the 
value I specify in my LogProperties class are displayed. However I also 
specify a Formatter to use for console output but Tomcat just seems to 
ignore it and uses its own default formatter.

Jukka Uusisalo wrote:
Hi,
I have used jdk 1.4 logging  with  tomcat  5.0.x without any problems, 
but i have configured logging with java.util.logging.config.file 
property and
config file.

- Jukka -
Paul Taylor wrote:
Hi in a previous non Tomcat project I wrote some classes that used 
the java.util.logging library that comes with java 1.4 quite 
successfully. I am now trying to use the same classes with Toimcat 
5.0 but it doesnt like it. With the logging classes you can provide a 
configuration class which you define with a property 
java.util.logging.config.class, I put the class in my 
WEB_INF\classes with all the other classes.
When I run with Tomcat i have a servlet that does the following to 
try and initilse the logging

 
com.appserver.util.logging.LogProperties.setLevelFromParametersFromPrefs(); 

 System.getProperties().setProperty(java.util.logging.config.class, 
com.appserver.util.logging.LogProperties);
 LogManager.getLogManager().readConfiguration();

it complains it cant find the class, when running 
readConfiguration(), (The 1st two lines run ok). I think the problem 
is to do with Tomcat classloader, with a simple Java application the 
classes would be expected to be on the system classpath, but on 
Tomcat the system classpath only contains bootstrap.jar.

I realise I could probably get things working using Apaches log4j 
instead but it seems a bit silly to use that when there is a 
perfectly adequate logger built into the language now.

Anyone done this ?

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

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


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


using the Standard jdk 1.4 logging with Tomcat 5

2004-09-27 Thread Paul Taylor
Hi in a previous non Tomcat project I wrote some classes that used the 
java.util.logging library that comes with java 1.4 quite successfully. I 
am now trying to use the same classes with Toimcat 5.0 but it doesnt 
like it. With the logging classes you can provide a configuration class 
which you define with a property java.util.logging.config.class, I put 
the class in my WEB_INF\classes with all the other classes. 

When I run with Tomcat i have a servlet that does the following to try 
and initilse the logging

 
com.appserver.util.logging.LogProperties.setLevelFromParametersFromPrefs();
 System.getProperties().setProperty(java.util.logging.config.class, 
com.appserver.util.logging.LogProperties);
 LogManager.getLogManager().readConfiguration();

it complains it cant find the class, when running readConfiguration(), 
(The 1st two lines run ok). I think the problem is to do with Tomcat 
classloader, with a simple Java application the classes would be 
expected to be on the system classpath, but on Tomcat the system 
classpath only contains bootstrap.jar.

I realise I could probably get things working using Apaches log4j 
instead but it seems a bit silly to use that when there is a perfectly 
adequate logger built into the language now.

Anyone done this ?
 

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


Writing your own realm for Tomcat 4.0

2003-07-10 Thread Paul Taylor

Im trying to write my own realm for Tomcat 4 WebDav application. I have already 
written some JAAS Authenication modules which are used by our main application and  
support Database and LDAP authentication but I need think I need to use tomcat realm 
for Webdav to force the user authentication wndow to come up when trying to map a 
Webdav folder. None of the existing realms are suitable because our LDAP tree does not 
conform to tomcats requirements, and some of our users are authenticated using a 
database realm rather than an LDAP realm. 

I have written a new class that extends RealmBase and written an authenticate method 
but it never gets called can someone tell me what else I have to do to make it a valid 
Realm Class.

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