Re: tomcat cache wierd behaviour

2008-04-09 Thread loredana loredana
I still can't understand how winscp has any part in this. I don't copy 
anything, I only use it to view the files. Tomcat automatically creates the 
.java and .class files. I could use putty or some other tool and the result 
would be the same. But it's even wierder. Now I see even the catalina.out file 
(which is updated very often) has the timestamp +1 hour. Like that wouldn't be 
enough, the servers are in Italy, where the time is now 9:05 (so the server 
time is 9:05), i'm in Romania where the time is 10:05, and catalina out was 
last modified(aparently) at 11:05.  too wierd

- Original Message 
From: David Smith [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Tuesday, April 8, 2008 10:49:35 PM
Subject: Re: tomcat cache wierd behaviour

Winscp isn't a command line tool -- it's one of those GUI enabled 
transfer tools with the split panels.  Think of something more along the 
lines of Explorer or Norton Commander -- the two interfaces styles 
available from winscp out of the box.  By default it set's the date/time 
of the recently sent file to the client's date/time so it can implement 
a synchronize feature.  I changed the settings in mine to prevent this 
because my server time would float a little between ntp updates.  Tomcat 
wouldn't see the updates until a couple of minutes after I uploaded them. 

Issues of times on the remote system being off by an hour are discussed 
on the winscp website (as the OP described in his example in the 
original post):
http://winscp.net/eng/docs/timestamp

The setting to preserve timestamps on uploads can be changed:
http://winscp.net/eng/docs/ui_copy -- here you can see the checkbox 
labeled Preserve timestamp in the screenshot, far right side under 
'Attributes'.


--David

Christopher Schultz wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 David,

 David Smith wrote:
 | I've seen some transfer clients (like winscp) default to setting the
 | date/time on the remote copy the same as the local.

 If 'winscp' acts anything like UNIX scp, then the default mode is to set
 the modification time on the destination to the destination's current
 date (basically, 'touch' the file upon creation). The -p switch allows
 you to preserve the existing modification time of the source file, so
 that the destination matches the source after the copy. It's unclear how
 different time zones are handled.

 I would check to see what 'winscp' does by default. You probably want
 any files you copy to your server to be date-stamped with the current
 date on the server, rather than preserving the source file's
 modification time.

 The OP never mentioned what the timezone was on the source machine, only
 the destination (CEST, UTC +2).

 - -chris

 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.8 (MingW32)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

 iEYEARECAAYFAkf7xUUACgkQ9CaO5/Lv0PCT8gCggO1z8trzf40N1YNbgAgy0cUP
 SjkAoJqJiFYvg56JthbKEkFihH3LARPq
 =LrfO
 -END PGP SIGNATURE-

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



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


  

You rock. That's why Blockbuster's offering you one month of Blockbuster Total 
Access, No Cost.  
http://tc.deals.yahoo.com/tc/blockbuster/text5.com


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



Re: tomcat cache wierd behaviour

2008-04-09 Thread loredana loredana
Solved

well, i guess you guys were right. problem was winscp which had an option 
preserve timestamp in the preferences panel. Disabled it and now it seems to 
show all times corectly.

10x a lot for everybody's help! really thanks!

- Original Message 
From: loredana loredana [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Wednesday, April 9, 2008 10:06:10 AM
Subject: Re: tomcat cache wierd behaviour

I still can't understand how winscp has any part in this. I don't copy 
anything, I only use it to view the files. Tomcat automatically creates the 
.java and .class files. I could use putty or some other tool and the result 
would be the same. But it's even wierder. Now I see even the catalina.out file 
(which is updated very often) has the timestamp +1 hour. Like that wouldn't be 
enough, the servers are in Italy, where the time is now 9:05 (so the server 
time is 9:05), i'm in Romania where the time is 10:05, and catalina out was 
last modified(aparently) at 11:05.  too wierd

- Original Message 
From: David Smith [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Tuesday, April 8, 2008 10:49:35 PM
Subject: Re: tomcat cache wierd behaviour

Winscp isn't a command line tool -- it's one of those GUI enabled 
transfer tools with the split panels.  Think of something more along the 
lines of Explorer or Norton Commander -- the two interfaces styles 
available from winscp out of the box.  By default it set's the date/time 
of the recently sent file to the client's date/time so it can implement 
a synchronize feature.  I changed the settings in mine to prevent this 
because my server time would float a little between ntp updates.  Tomcat 
wouldn't see the updates until a couple of minutes after I uploaded them. 

Issues of times on the remote system being off by an hour are discussed 
on the winscp website (as the OP described in his example in the 
original post):
http://winscp.net/eng/docs/timestamp

The setting to preserve timestamps on uploads can be changed:
http://winscp.net/eng/docs/ui_copy -- here you can see the checkbox 
labeled Preserve timestamp in the screenshot, far right side under 
'Attributes'.


--David

Christopher Schultz wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 David,

 David Smith wrote:
 | I've seen some transfer clients (like winscp) default to setting the
 | date/time on the remote copy the same as the local.

 If 'winscp' acts anything like UNIX scp, then the default mode is to set
 the modification time on the destination to the destination's current
 date (basically, 'touch' the file upon creation). The -p switch allows
 you to preserve the existing modification time of the source file, so
 that the destination matches the source after the copy. It's unclear how
 different time zones are handled.

 I would check to see what 'winscp' does by default. You probably want
 any files you copy to your server to be date-stamped with the current
 date on the server, rather than preserving the source file's
 modification time.

 The OP never mentioned what the timezone was on the source machine, only
 the destination (CEST, UTC +2).

 - -chris

 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.8 (MingW32)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

 iEYEARECAAYFAkf7xUUACgkQ9CaO5/Lv0PCT8gCggO1z8trzf40N1YNbgAgy0cUP
 SjkAoJqJiFYvg56JthbKEkFihH3LARPq
 =LrfO
 -END PGP SIGNATURE-

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



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


  

You rock. That's why Blockbuster's offering you one month of Blockbuster Total 
Access, No Cost.  
http://tc.deals.yahoo.com/tc/blockbuster/text5.com


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

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


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



tomcat cache wierd behaviour

2008-04-08 Thread loredana loredana
Hi, I have a wierd problem with tomcat cache. Let's say now time its 15:00. i 
create a test.jsp in the application folder. Using winscp, I see the tab 
Changed(last modified) 15:00. I access the jsp in the browser. In the work 
folder now will appear 2 new files: test.java and test.class files. The wierd 
thing is these files have the tab changed 16:00. how is that possible? This 
is the reason why my jsp files are not updated. But I can't understand why 
those 2 files show 16:00 at last changed when the time is 15:00did anyone 
ever had similar problem?


  

You rock. That's why Blockbuster's offering you one month of Blockbuster Total 
Access, No Cost.  
http://tc.deals.yahoo.com/tc/blockbuster/text5.com


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



Re: tomcat cache wierd behaviour

2008-04-08 Thread loredana loredana
I don't think so. 
I run a date command on the server (which is ubuntu) and got Tue Apr  8 
15:50:01 CEST 2008
Is there any configurations I have to do in tomcat? set TZ variables or 
anything?



- Original Message 
From: William Bonnet [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Tuesday, April 8, 2008 3:43:12 PM
Subject: Re: tomcat cache wierd behaviour


Hi

 Hi, I have a wierd problem with tomcat cache. Let's say now time its
15:00.
 i create a test.jsp in the application folder. Using winscp, I see the
tab
 Changed(last modified) 15:00. I access the jsp in the browser. In the
 work folder now will appear 2 new files: test.java and test.class
files.
 The wierd thing is these files have the tab changed 16:00. how is that
 possible? This is the reason why my jsp files are not updated. But I
can't
 understand why those 2 files show 16:00 at last changed when the time
is
 15:00did anyone ever had similar problem?

It seems you have a problem with your date  time settings on your
machines.. Are you sure your timezone is well configured ? any problem with
summer time or daylight saving time ? 

Regards

-- 
William  http://www.wbonnet.net

http://www.sunwizard.net Le site français des amateurs de stations Unix
http://www.blastwave.org An OpenSolaris Community Site
http://www.guses.orgFrench speaking Solaris User Group


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


  

You rock.. That's why Blockbuster's offering you one month of Blockbuster Total 
Access, No Cost.  
http://tc.deals.yahoo.com/tc/blockbuster/text5.com


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



Re: tomcat cache wierd behaviour

2008-04-08 Thread loredana loredana
winscp is a tool...like windows commander or total commander, . is just to view 
the files in an organized matter. :) i'm sure the problem is not winscp :)

- Original Message 
From: Hassan Schroeder [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Tuesday, April 8, 2008 5:33:44 PM
Subject: Re: tomcat cache wierd behaviour

On Tue, Apr 8, 2008 at 7:12 AM, loredana loredana
[EMAIL PROTECTED] wrote:

  I run a date command on the server (which is ubuntu) and got Tue Apr  8 
 15:50:01 CEST 2008

 Using winscp, I see ...

So it sounds like your problem is with winscp, whatever that is, not
Tomcat :-)Maybe this is a question for the winscp user list?

-- 
Hassan Schroeder  [EMAIL PROTECTED]

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


  

You rock. That's why Blockbuster's offering you one month of Blockbuster Total 
Access, No Cost.  
http://tc.deals.yahoo.com/tc/blockbuster/text5.com


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



disable jsp cache in tomcat work folder

2008-04-07 Thread loredana loredana
Long story short, as everyone know, jsp files are cached in the work folder of 
tomcat. If I modify something in the jsp, I can't see the difference unless I 
delete the files under work folder. My problem is that I don't have 
rights/access to delete files under that folder. Is there any other way I can 
delete those files or tell tomcat not to cache files anymore? I tried 
restarting tocmat after I made a change in the jsp, I still see the old one, I 
read about the reload=true suggestion but I don't have any context tag in the 
server.xml. Anyone can give me any other suggestions on this issue?

10x a lot in advance


  

You rock. That's why Blockbuster's offering you one month of Blockbuster Total 
Access, No Cost.  
http://tc.deals.yahoo.com/tc/blockbuster/text5.com


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



Re: tomcat and active x problem

2008-03-23 Thread loredana loredana
this is the code of the page:

html
head
script language=javascript
function OpenOutlookDoc()
{
try
{
var outlookApp = new ActiveXObject(Outlook.Application);
var nameSpace = outlookApp.getNameSpace(MAPI);
mailFolder = nameSpace.getDefaultFolder(6);
mailItem = mailFolder.Items.add('IPM.Note.FormA');
mailItem.Subject=a subject test;
mailItem.To = [EMAIL PROTECTED];
mailItem.HTMLBody = bbold/b;
mailItem.display (0);
}
catch(e)
{
alert(e);
// act on any error that you get
}
}
/script
/head
body
input type=button value=click onclick=OpenOutlookDoc()/
/body
/html


now, if u have outlook instaled, it should work. if u run the file 
locally(right click open with IE) it should work. leave it unedited and move it 
in a tomcat project and run it using localhost:8080/projectname/... and it will 
alert you the exception. You might be right, it might not be a tomcat related 
issue, but so far, I am using same browser, same code, and under tomcat it 
doesn't work for some reason.so my first thought is that it might have 
something to do with tomcat. anyway, 10x for the reply. About the Object error 
, this is the only alert I get. I don't know if there is a way to print a stack 
trace in javascript. In my try catch block I just put an alert(exception) in 
case I get any and all I get is [Object error].

10x in advance

- Original Message 
From: Nikola Milutinovic [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Sunday, March 23, 2008 1:38:08 PM
Subject: Re: tomcat and active x problem

 Hi, i have an html page that has a javascript function that opens an outlook 
 mail window .the function is pretty basic:
 
 function OpenOutlookDoc()
 {try{
 var outlookApp = new ActiveXObject(Outlook.Application);
 var nameSpace = outlookApp.getNameSpace(MAPI);
 mailFolder = nameSpace.getDefaultFolder(6);
 mailItem = mailFolder.Items.add('IPM.Note.FormA');
 mailItem.Subject=a subject test;
 mailItem.To = [EMAIL PROTECTED];
 mailItem.HTMLBody = bbold/b;
 mailItem.display (0);
 }catch(e){
 alert(e);
 // act on any error that you get
 }}
 
 if I run the file locally, with the url looking like: file://C:/things 
 are ok, page works, if I copy
 the html page in one of my projects and run int like
 localhost:8080/project/file.html I get an [Object error] alert..i 
 remember reading somewhere
 about some problems using Active -x in tomcat.


First of all, this is entirely client side stuff, so it should not make any 
difference if it is deployed on Tomcat, Apache, WebSphere or IIS. In this 
script, there is no interaction with the server, whatsoever, so, it is not 
Tomcat related in any way.

You should give us more info on the Object error you're getting, but I must 
warn you - your problems are IE related and have nothing to do with TC, so you 
may get help, but then again, you may not.

Nix.




  

Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  
http://tools.search.yahoo.com/newsearch/category.php?category=shopping


  

Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  
http://tools.search.yahoo.com/newsearch/category.php?category=shopping


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



Re: tomcat and active x problem

2008-03-23 Thread loredana loredana
Hi, after searching google today for a couple of hours I found out what I think 
was the problem. As you said, it was IE security settings.
I think there is a difference between running a file as local and runing it 
from tomcat.(enters a different security level). So I modified the security 
settings for 
Initialize and script Active x control not marked as safe from disable to 
prompt and it worked under tomcat as well.

10x


- Original Message 
From: loredana loredana [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Sunday, March 23, 2008 2:10:32 PM
Subject: Re: tomcat and active x problem

this is the code of the page:

html
head
script language=javascript
function OpenOutlookDoc()
{
try
{
var outlookApp = new ActiveXObject(Outlook.Application);
var nameSpace = outlookApp.getNameSpace(MAPI);
mailFolder = nameSpace.getDefaultFolder(6);
mailItem = mailFolder.Items.add('IPM.Note.FormA');
mailItem.Subject=a subject test;
mailItem.To = [EMAIL PROTECTED];
mailItem.HTMLBody = bbold/b;
mailItem.display (0);
}
catch(e)
{
alert(e);
// act on any error that you get
}
}
/script
/head
body
input type=button value=click onclick=OpenOutlookDoc()/
/body
/html


now, if u have outlook instaled, it should work. if u run the file 
locally(right click open with IE) it should work. leave it unedited and move it 
in a tomcat project and run it using localhost:8080/projectname/... and it will 
alert you the exception. You might be right, it might not be a tomcat related 
issue, but so far, I am using same browser, same code, and under tomcat it 
doesn't work for some reason.so my first thought is that it might have 
something to do with tomcat. anyway, 10x for the reply. About the Object error 
, this is the only alert I get. I don't know if there is a way to print a stack 
trace in javascript. In my try catch block I just put an alert(exception) in 
case I get any and all I get is [Object error].

10x in advance

- Original Message 
From: Nikola Milutinovic [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Sunday, March 23, 2008 1:38:08 PM
Subject: Re: tomcat and active x problem

 Hi, i have an html page that has a javascript function that opens an outlook 
 mail window .the function is pretty basic:
 
 function OpenOutlookDoc()
 {try{
 var outlookApp = new ActiveXObject(Outlook.Application);
 var nameSpace = outlookApp.getNameSpace(MAPI);
 mailFolder = nameSpace.getDefaultFolder(6);
 mailItem = mailFolder.Items.add('IPM.Note.FormA');
 mailItem.Subject=a subject test;
 mailItem.To = [EMAIL PROTECTED];
 mailItem.HTMLBody = bbold/b;
 mailItem.display (0);
 }catch(e){
 alert(e);
 // act on any error that you get
 }}
 
 if I run the file locally, with the url looking like: file://C:/things 
 are ok, page works, if I copy
 the html page in one of my projects and run int like
 localhost:8080/project/file.html I get an [Object error] alert..i 
 remember reading somewhere
 about some problems using Active -x in tomcat.


First of all, this is entirely client side stuff, so it should not make any 
difference if it is deployed on Tomcat, Apache, WebSphere or IIS. In this 
script, there is no interaction with the server, whatsoever, so, it is not 
Tomcat related in any way.

You should give us more info on the Object error you're getting, but I must 
warn you - your problems are IE related and have nothing to do with TC, so you 
may get help, but then again, you may not.

Nix.




  

Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  
http://tools.search.yahoo.com/newsearch/category.php?category=shopping


  

Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  
http://tools.search.yahoo.com/newsearch/category.php?category=shopping


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


  

Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs


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



tomcat and active x problem

2008-03-22 Thread loredana loredana
Hi, i have an html page that has a javascript function that opens an outlook 
mail window .the function is pretty basic:

function OpenOutlookDoc()
{try{
var outlookApp = new ActiveXObject(Outlook.Application);
var nameSpace = outlookApp.getNameSpace(MAPI);
mailFolder = nameSpace.getDefaultFolder(6);
mailItem = mailFolder.Items.add('IPM.Note.FormA');
mailItem.Subject=a subject test;
mailItem.To = [EMAIL PROTECTED];
mailItem.HTMLBody = bbold/b;
mailItem.display (0);
}catch(e){
alert(e);
// act on any error that you get
}}

if I run the file locally, with the url looking like: file://C:/things are 
ok, page works, if I copy the html page in one of my projects and run int like 
localhost:8080/project/file.html I get an [Object error] alert..i remember 
reading somewhere about some problems using Active -x in tomcat.

can anyone give me a clue on what to do?10x


  

Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs


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



Re: tomcat process doesn't stop

2007-11-16 Thread loredana loredana
well, I don't know exactly what to tell you. the guys at networking installed 
java and tomcat and everything else. On tomcat release notes I see it says 
Apache Tomcat Version 6.0.14 annd when I run java -version I get

java version 1.4.2_15
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_15-b02)
Java HotSpot(TM) Client VM (build 1.4.2_15-b02, mixed mode)



- Original Message 
From: Caldarale, Charles R [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Friday, November 16, 2007 9:43:15 AM
Subject: RE: tomcat process doesn't stop


 From: loredana loredana [mailto:[EMAIL PROTECTED] 
 Subject: tomcat process doesn't stop
 
 Hi, i'm running tomcat 6 with jdk 1.4.2 on ubuntu.

Not possible; Tomcat 6 requires JDK 1.5 or higher.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE
 PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

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






  

Get easy, one-click access to your favorites. 
Make Yahoo! your homepage.
http://www.yahoo.com/r/hs 


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



Re: java.lang.OutOfMemoryError: PermGen space

2007-11-16 Thread loredana loredana
I don't dynamically generate classes . however I do redeploy my webapps quite 
often. But I do that using the classic tomcat restart. so I don't know if that 
could cause it. I also use a caching system (Ehcache) but I use it to cache 
html files that change their content often. I will look into the xerces 
solution. 10x

- Original Message 
From: Martin Gainty [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Friday, November 16, 2007 4:53:42 PM
Subject: Re: java.lang.OutOfMemoryError: PermGen space


2 options will help Xerces consume less memory
1)turn OFF validation for any Documents created from the
DocumentBuilderFactory e.g.
factory.setValidating(false);

2)turn OFF namespace awareness for any Documents created from the
DocumentBuilderFactory e.g.
factory.setNamespaceAware(false);

More info available at
http://mia.ece.uic.edu/~papers/WWW/MultimediaStandards/Parsers.pdf

M-

- Original Message -
From: loredana loredana [EMAIL PROTECTED]
To: users@tomcat.apache.org
Sent: Friday, November 16, 2007 9:11 AM
Subject: java.lang.OutOfMemoryError: PermGen space


 I'm having some problems figuring out what webapp is causing this
 problem.
I figure the cause of this is the fact that garbage collector does not
 clean
up and memory allocated for java object generation is used . Right now
 i
have a hunch on one of the webapps:
 I have an application which connects every 5 minutes to an url, opens
 a
stream and reads some data(about 20 lines from an xml file) appends
 that
text to a local file, draws a chart based on that data and creates some
 html
files. The xml files where the text is appended can get to a max of 30
 kb at
the end of the day. That's not that much. But still, could something
 like
this cause the PermGen space error? 10x







 Never miss a thing.  Make Yahoo your home page.
 http://www.yahoo.com/r/hs


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




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






  

Be a better pen pal. 
Text or chat with friends inside Yahoo! Mail. See how.  
http://overview.mail.yahoo.com/


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



tomcat process doesn't stop

2007-11-16 Thread loredana loredana
Hi, i'm running tomcat 6 with jdk 1.4.2 on ubuntu. Every time I try to stop 
tomcat I get an error in catalina.out just after the line 
log4j:ERROR LogMananger.repositorySelector was null likely due to error in 
class reloading, using NOPLoggerRepository.

Tomcat stops listening on port 8080 but the process itself keeps running and 
most of the time I have to stop it with kill command. I don't know what that 
error can do to determine this behaviour. Can I somehow force tomcat to stop 
process on shutdown.sh or to ignore these errors? 




  

Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs


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



java.lang.OutOfMemoryError: PermGen space

2007-11-16 Thread loredana loredana
I'm having some problems figuring out what webapp is causing this problem. I 
figure the cause of this is the fact that garbage collector does not clean up 
and memory allocated for java object generation is used . Right now i have a 
hunch on one of the webapps:
I have an application which connects every 5 minutes to an url, opens a stream 
and reads some data(about 20 lines from an xml file) appends that text to a 
local file, draws a chart based on that data and creates some html files. The 
xml files where the text is appended can get to a max of 30 kb at the end of 
the day. That's not that much. But still, could something like this cause the 
PermGen space error? 10x




  

Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs


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



running! a servlet at tomcat startup

2007-11-05 Thread loredana loredana
This issue is a classic one already I think. I've googled it and haven't found 
anything that could help solving this problem. I'm probably not the one to 
think about this but...if you would add the  
load-on-startup1/load-on-startup to a servlet, and from the init() method 
you would somehow try to call the doGet() method, wouldn't that do it? wouldn't 
that run the servlet at startup?  did anybody try this already? I am trying to 
do this but I'm having some problem creating HttpServletRequest and Response 
objects so I can call doGet(). So if anyone did this already, pls let me know 
how this issue can be fixed! 10x a lot!



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


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



Re: running! a servlet at tomcat startup

2007-11-05 Thread loredana loredana
thanks for the response johnny. That's probably the only way it can be done.. 
Unfortunatelly for me, I need variables like request.getContextPath() and from 
init() method i can't retrieve those values. 10x a lot anyway.

- Original Message 
From: Johnny Kewl [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Monday, November 5, 2007 10:58:54 AM
Subject: Re: running! a servlet at tomcat startup



---
HARBOR: http://coolharbor.100free.com/index.htm
Now Tomcat is also a cool pojo application server
---
- Original Message - 
From: loredana loredana [EMAIL PROTECTED]
To: users@tomcat.apache.org
Sent: Monday, November 05, 2007 10:32 AM
Subject: running! a servlet at tomcat startup


This issue is a classic one already I think. I've googled it and
 haven't 
found anything that could help solving this problem. I'm probably not
 the 
one to think about this but...if you would add the 
load-on-startup1/load-on-startup to a servlet, and from the init() 
method you would somehow try to call the doGet() method, wouldn't that
 do 
it? wouldn't that run the servlet at startup?  did anybody try this
 already? 
I am trying to do this but I'm having some problem creating 
HttpServletRequest and Response objects so I can call doGet(). So if
 anyone 
did this already, pls let me know how this issue can be fixed! 10x a
 lot!
===
Hi  loredana,
Not sure if you asking or answering ;)

Yes, load-on-startup and then do stuff in the INIT method.
No, why try call doGet() just init the functions that need initing,
 like 
the dBPool, or image processing.
The doGet implies you want to return info to a browser there isnt
 one?
The Init method runs just once thats the idea.
load-on-startup just lets you get the INIT out of the way, otherwise
 it 
will happen on the first browser request, and if it takes a long time
 the 
browser will seem very slow to the user... but that only happens once 
anyway.





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


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



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





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


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



2 tomcat beginer problems

2007-10-29 Thread loredana loredana
1. I have installed tomcat 6.0.14. Everytime I make a modification in a jsp 
page I either have to rename the file or delete the jsp from work directory in 
order to see the modifications. How can I make jsp reload automatically? So 
that if I make a modifications in my jsp, a simple refresh page will make me 
see the modifications? for now I modified web.xml and set keepgenerated to 
false but I don't think that's the best solution.

2. the ol' how to execute!! a servlet on tomcat startup. I need to execute a 
servlet on tomcat startup. I googled the problem but all I could find is how to 
load the servlet with load-on-startup. load on startup only calls the init 
method. but I would need to call the doGet method. I can't call the doGet 
method from init cause I need the parameters. So is there actually any way to 
execute a servlet on startup?

10x a lot!



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


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



request.getRemoteuser returns null

2007-10-16 Thread loredana loredana
I'll try to make this as short and clear as I can. I have an instalation of 
Apache 2.2.6 and tomcat 6.0.14. On the apache side we have instaled the 
kerberos mod for authentication. that one is installed ok, we have a php file 
that prints out the headers and remoteuser has the correct value. I am trying 
to do the same thing for a jsp file in tomcat(I want the request.getParameter 
to return the login name of the user logged in). Now as I remember, for tomcat 
in server.xml in conf, by setting the tomcatAuthentication=false for the 
AJP1.3 connector the getRemoteUser should return the user authenticated through 
Apache, right? still, my request.getRemoteuser returns null. So what am I doing 
wrong or what else needs configuring?

10x in advance




  

Fussy? Opinionated? Impossible to please? Perfect.  Join Yahoo!'s user panel 
and lay it on us. http://surveylink..yahoo.com/gmrs/yahoo_panel_invite.asp?a=7 



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



tomcat and java cache

2007-10-15 Thread loredana loredana
I have a pretty big website that uses java cache from which it retrieves the 
html. So I have a scheduled job(servlet) that get's some data from a server and 
stores it in a java cache(Oscache or Ehcache for those who know it). My problem 
is next: whenever the server (tomcat) is restarted, the cache is emptyed and 
should be populated when the server is back on.So long story short...is there 
any way to run a servlet whenever tomcat starts? so when tomcat starts, a 
servlet should be run. I don't know if that's possible but can someone tell me 
if it is and how it should be done?

10x




   

Be a better Heartthrob. Get better relationship answers from someone who knows. 
Yahoo! Answers - Check it out. 
http://answers.yahoo.com/dir/?link=listsid=396545433


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



why/how to use ajp connector...

2007-10-02 Thread loredana loredana
Ok, my project manager asked me to set up a server with tomcat, apache and ajp 
connector. This is the first time I do it and after reading some of the 
documentation on the ajp connector I still can't figure out it's purpose. Can 
anybody tell me what is it's use? I read 

This is used for cases
  where you wish to invisibly integrate Tomcat 4 into an existing (or new)
  Apache installation, and you want Apache to handle the static content
  contained in the web application 

I don't know if I understand that right. Can anybody give me a simple example?

And one more question. After reading the documentation and making the changes 
to the configuration and everything, when I run my application how can I 
test/verify that the connector is working? how can I determine if apache is 
handling the static content and not tomcat?

10x in advance and sorry for if the question sounds too newby




  

Catch up on fall's hot new shows on Yahoo! TV. Watch previews, get listings, 
and more!
http://tv..yahoo.com/collections/3658


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



jsp modifications not visible after tomcat restart?

2007-10-02 Thread loredana loredana
I remember something like this happened to me a couple of years back but  don't 
remember how I solved it. I run a tomcat 6 and I have a jsp file within an 
application. I remember that if I do a modification in a jsp file I don't have 
to restart tomcat, it's enough to copy the jsp file in the webapps/appfolder/ 
and refresh in browser. well that doesn't work for me. Even worse, I can even 
restart tomcat and the modifications in the jsp are still not visible. The only 
way I can see the modification is if I rename the file. So if have an 
index.jsp, I modify something in it...refresh the browser...nothing. I go and 
rename the index.jsp in index2.jsp then i will see the modifications. What can 
cause this behaviour? I thought it's the browser cache but it's not..cleaned 
it, even restarted broswer and still nothing. the only way I can see the 
modifications is if I rename the file. Anybody had a similar problem?




   

Got a little couch potato? 
Check out fun summer activities for kids.
http://search.yahoo.com/search?fr=oni_on_mailp=summer+activities+for+kidscs=bz


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