Action methods stopped working

2007-05-22 Thread Michal Glowacki
 Hi,

 I have a very big problem, that I can't solve myself. Recently,
action
 methods from links and buttons has stopped working. And not only from one
 componenty family, but 2 (Sun Web UI and Ajax4JSF). I don't know what
caused
 the problem, I've only add an attribute URIEncoding=UTF-8 to Connector
 tag in server.xml. I've made another simple application from the scratch,
 the same problem so it must be something with web container.

 Has anybody had similar problem?

 Regards,
Michal



-
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: Action methods stopped working

2007-05-22 Thread Michal Glowacki
No... I forgot to add that the problem is only in IE, anyway I've no
validation or javascript errors.

Michal

- Original Message -
From: Mark Thomas [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Tuesday, May 22, 2007 1:44 PM
Subject: Re: Action methods stopped working


 Michal Glowacki wrote:
   I don't know what caused
   the problem, I've only add an attribute URIEncoding=UTF-8 to
Connector
 Does removing this fix the problem?

 Mark

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



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



Cannot re-set component value

2007-03-06 Thread Michal Glowacki

Hi

   I've written about this problem already, but still I didn't find 
solution. The problem is that my components on the pages somehow are saving 
values that are assigned to them for the first time. So, when I am first 
time at page A and set hidden field value to 3, then go to B, and then once 
again to A (not with back button), value is still 3, even when I assign new 
one to it! I thought it can be OSCache, but I flush data from cache and old 
value still is there!


   I even changed the way of keeping value from hidden field to request 
scoped bean with ajax4jsf keepAlive component (which holds new value 
properly), but call to #{MyBean.value} results in old value in the html 
code!


   I would be grateful for any tips,
Michal 



-
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: page remembers data

2007-03-01 Thread Michal Glowacki
Yes, for sure. I've flushed browser cache and didn't help. Checked in FF and 
IE.


Regards,
Michal

- Original Message - 
From: Pid [EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Sent: Thursday, March 01, 2007 8:47 AM
Subject: Re: page remembers data



Michal Glowacki wrote:

Hi

   I'm not sure if it's the problem of Tomcat, but I've spotted it after
upgrading to JBoss 4.0.5 (Tomcat 5.5.20). This not the problem of session
scoped beans as I'm using request ones. When I enter some data, submit 
them
and return back to that page, the data remains there. I've no clue why 
it's

like this. Has anyone idea what can be the problem?


sure it's the page and not the browser?


Regards,
Michal


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





-
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: page remembers data

2007-03-01 Thread Michal Glowacki
No, I don't store bean in static variable (and it's not when 'back' is 
pressed :-) ). The code was unchanged and was working ok some time ago. 
That's why I've started to think it could be Tomcat issue.


The problem should be this (from server logs, when web-app is accessed for 
the first time after deploy)


07:57:07,953 INFO  [ServletCacheAdministrator] Created new instance of 
ServletCacheAdministrator
07:57:07,953 INFO  [ServletCacheAdministrator] Created new 
application-scoped cache at key: __oscache_cache


Looks like OSCache library, but I never added anything to descriptors which 
uses cache. But I put oscache.jar into jsf-lib directory, as ajax4jsf 
library needs it.


Could it be the problem?

Regards,
Michal


- Original Message - 
From: Pid [EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Sent: Thursday, March 01, 2007 11:15 AM
Subject: Re: page remembers data



(Please reply to the list only, I don't need to get the message twice.)

I'm assuming you're not clicking back to get there, but if it's not your 
browser then it sounds like you aren't initialising the bean properly.


Have you stored the bean in a static variable?

Can you change the code of the beans to log what happens when they're 
changed or called?



p




Michal Glowacki wrote:
Yes, for sure. I've flushed browser cache and didn't help. Checked in FF 
and IE.


Regards,
Michal

- Original Message - From: Pid [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Thursday, March 01, 2007 8:47 AM
Subject: Re: page remembers data



Michal Glowacki wrote:

Hi

   I'm not sure if it's the problem of Tomcat, but I've spotted it 
after
upgrading to JBoss 4.0.5 (Tomcat 5.5.20). This not the problem of 
session
scoped beans as I'm using request ones. When I enter some data, submit 
them
and return back to that page, the data remains there. I've no clue why 
it's

like this. Has anyone idea what can be the problem?


sure it's the page and not the browser?


Regards,
Michal


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





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





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



page remembers data

2007-02-28 Thread Michal Glowacki

Hi

   I'm not sure if it's the problem of Tomcat, but I've spotted it after
upgrading to JBoss 4.0.5 (Tomcat 5.5.20). This not the problem of session
scoped beans as I'm using request ones. When I enter some data, submit them
and return back to that page, the data remains there. I've no clue why it's
like this. Has anyone idea what can be the problem?

Regards,
Michal


-
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: Performance problem with Tomcat?

2007-02-16 Thread Michal Glowacki

Thanks for the hints.

One more question, after upgrading server deployment of WAR files is much 
more longer than before. It's something like with those pages. I've got info 
in console about undeploy of war (that I'm replacing with new one), nothing 
happens for more than 15 secs, and then deployment info appears. Is this 
tomcat and if yes what can I do about this?


Regards,
Michal

- Original Message - 
From: Zack Grafton [EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Sent: Friday, February 16, 2007 7:50 AM
Subject: Re: Performance problem with Tomcat?



Michal,

This is the link to precompiling your JSP files.
http://tomcat.apache.org/tomcat-5.5-doc/jasper-howto.html

You might need to live with it while you're developing the application, 
but when you are ready to put it in to production, it might be wise to 
precompiling the JSP files.


Zack

Michal Glowacki wrote:
That is right, only for the first time, even 10-12 secs, but later 
maximum 2.


Thanks for all help,
Michal

- Original Message - From: Zack Grafton 
[EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Sent: Thursday, February 15, 2007 5:43 PM
Subject: Re: Performance problem with Tomcat?



Michal,

Your JSP files will be compiled regardless the first time they are 
accessed.  If you try refreshing the page, or loading it in a different 
browser, you might notice a speed up.  You can also precompile your JSP 
files and that should also speed up the first access.  Please let us 
know if it is just the first visit or if the problem happens on every 
access.


Zack


Michal Glowacki wrote:

Thank you for your fast response!

Which version of EJB. Local EJB of remote EJB? With or without 
security?

EJBs have the bad reputation to be slow, and cubersome to develop
(probably improved in version 3, this was an aim at sun)


It's EJB 2.1 (JBoss 4). I'm using remote interfaces everywhere, that's 
what I read in the books - local interfaces are used very seldom. For 
read-only data I'm creating DAOs, but it doesn't improves performance 
significantly.


1) JSF servlet startup, that may take a few seconds and occurs at 
first

jsf operation after webapp startup


Ok, that means that I can experience latency during development as I 
redeploy app very often, but when finished and deployed to target 
server it should not happen?



2) JSP compilation, which occurs if your jsp did change


It's deployed as war file, probably extracted to 
jboss/server/default/temp directory, and I do not change there 
anything. I believe this is not the cause as I'm changing JSPs only in 
IDE before deploy.



3) JSP initialisation, which occur during first access of JSP, after
compilation, like any other servlet. Depending on how much taglibs are
referenced, and complexity of JSP, this can take a bit of time too.


Like 1)


4) The operations you do inside your JSF backing beans


Yes, but this I can measure and reduce, this part is understable for 
me.



Regards,
Michal

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





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





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



PermGen space

2007-02-16 Thread Michal Glowacki

Hi

   After upgrading to Tomcat 5.5.20 (in jboss 4.0.5ga) I keep getting
OutOfMemoryException: PermGen space every hour (more or less) during
deployment. I can't solve this problem, I had changed GC interval from 1
hours to 15mins, but didn't help. JVM Memory settings are as follows:

JAVA_OPTS=%JAVA_OPTS% -Xms128m -Xmx512m
JAVA_OPTS=%JAVA_OPTS% -Dsun.rmi.dgc.client.gcInterval=90 
-Dsun.rmi.dgc.server.gcInterval=90
JAVA_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=y
%JAVA_OPTS%

Can anyone help? It's little bit annoying during development, when I have to
restart server every XX minutes.

Regards,
Michal

PS. Sorry if it's not Tomcat but Jboss issue, still learning...


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



Performance problem with Tomcat?

2007-02-15 Thread Michal Glowacki
Hi 

I'm quite new to Jboss/Tomcat, so please forgive me if my questions are without 
sense... 

I have created a JSF application that uses EJB. It deploys successfully, but 
the thing that concerns me is: 

When I go to any page (locally, e.g. localhost:8080/Test/faces/Page1.jsp) I can 
see in jboss console that nothing happens for some time. No processing, page 
generation, nothing. What is that? It takes even few seconds and then the whole 
page appears. I'm still at development phase, but it concerns me already. 
Second thing is that makes development harder, when I've to wait for page to be 
loaded each time. I am very concerned what could happen when I will finish and 
many people will come to the page at once... 

Please give me a hint what to do, or at least where to start/search. 

Thank you in advance, 
Michal 


Re: Performance problem with Tomcat?

2007-02-15 Thread Michal Glowacki

Thank you for your fast response!


Which version of EJB. Local EJB of remote EJB? With or without security?
EJBs have the bad reputation to be slow, and cubersome to develop
(probably improved in version 3, this was an aim at sun)


It's EJB 2.1 (JBoss 4). I'm using remote interfaces everywhere, that's what 
I read in the books - local interfaces are used very seldom. For read-only 
data I'm creating DAOs, but it doesn't improves performance significantly.



1) JSF servlet startup, that may take a few seconds and occurs at first
jsf operation after webapp startup


Ok, that means that I can experience latency during development as I 
redeploy app very often, but when finished and deployed to target server it 
should not happen?



2) JSP compilation, which occurs if your jsp did change


It's deployed as war file, probably extracted to jboss/server/default/temp 
directory, and I do not change there anything. I believe this is not the 
cause as I'm changing JSPs only in IDE before deploy.



3) JSP initialisation, which occur during first access of JSP, after
compilation, like any other servlet. Depending on how much taglibs are
referenced, and complexity of JSP, this can take a bit of time too.


Like 1)


4) The operations you do inside your JSF backing beans


Yes, but this I can measure and reduce, this part is understable for me.


Regards,
Michal 



-
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: Performance problem with Tomcat?

2007-02-15 Thread Michal Glowacki
That is right, only for the first time, even 10-12 secs, but later maximum 
2.


Thanks for all help,
Michal

- Original Message - 
From: Zack Grafton [EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Sent: Thursday, February 15, 2007 5:43 PM
Subject: Re: Performance problem with Tomcat?



Michal,

Your JSP files will be compiled regardless the first time they are 
accessed.  If you try refreshing the page, or loading it in a different 
browser, you might notice a speed up.  You can also precompile your JSP 
files and that should also speed up the first access.  Please let us know 
if it is just the first visit or if the problem happens on every access.


Zack


Michal Glowacki wrote:

Thank you for your fast response!


Which version of EJB. Local EJB of remote EJB? With or without security?
EJBs have the bad reputation to be slow, and cubersome to develop
(probably improved in version 3, this was an aim at sun)


It's EJB 2.1 (JBoss 4). I'm using remote interfaces everywhere, that's 
what I read in the books - local interfaces are used very seldom. For 
read-only data I'm creating DAOs, but it doesn't improves performance 
significantly.



1) JSF servlet startup, that may take a few seconds and occurs at first
jsf operation after webapp startup


Ok, that means that I can experience latency during development as I 
redeploy app very often, but when finished and deployed to target server 
it should not happen?



2) JSP compilation, which occurs if your jsp did change


It's deployed as war file, probably extracted to 
jboss/server/default/temp directory, and I do not change there anything. 
I believe this is not the cause as I'm changing JSPs only in IDE before 
deploy.



3) JSP initialisation, which occur during first access of JSP, after
compilation, like any other servlet. Depending on how much taglibs are
referenced, and complexity of JSP, this can take a bit of time too.


Like 1)


4) The operations you do inside your JSF backing beans


Yes, but this I can measure and reduce, this part is understable for me.


Regards,
Michal

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





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