Java Mailing List Archive

http://www.gg3721.com/

Home » Struts Users Mailing List »

user Digest 17 Jul 2008 16:51:37 -0000 Issue 8147

user-digest-help

2008-07-17


Author LoginPost Reply

user Digest 17 Jul 2008 16:51:37 -0000 Issue 8147

Topics (messages 189029 through 189047):

Re: Can't access bean from jsp
 189029 by: Lukasz Lenart
 189031 by: holod
 189033 by: Lukasz Lenart
 189034 by: holod

easy way to keep widget css style at default?
 189030 by: Giovanni Azua
 189032 by: Giovanni Azua

Checkbox List Problem...
 189035 by: Narayana S
 189038 by: Narayana S

Weired browser behaviour
 189036 by: Jan Froehlich

Re: autocompleter bug in forefox3 but not in ie6
 189037 by: Piotr Dzeviarylin

Re: [S2-ActionComponent] Action not on the stack while evaluating body
 189039 by: Jeromy Evans

s:div Append Href
 189040 by: cree
 189046 by: cree
 189047 by: Musachy Barroso

Help please TOMCAT 5 + Struts
 189041 by: STRUTS SL. Mailing List
 189042 by: Jorge Martín Cuervo
 189043 by: Jim Kiley
 189045 by: Paolo Niccolò Giubelli

Re: ExecAndWait (navigating back to the progress page)
 189044 by: Karr, David

Administrivia:

---------------------------------------------------------------------
To post to the list, e-mail: user@(protected)
To unsubscribe, e-mail: user-digest-unsubscribe@(protected)
For additional commands, e-mail: user-digest-help@(protected)

----------------------------------------------------------------------

Attachment: user_189029.ezm (zipped)
> name of the action in struts.xml, so you should put # in there.

It should be:
you shouldn't put # in there.


Regards
--
Lukasz
http://www.lenart.org.pl/

Attachment: user_189031.ezm (zipped)



Lukasz Lenart wrote:
>
>> name of the action in struts.xml, so you should put # in there.
>
> It should be:
> you shouldn't put # in there.
>
>
> Regards
> --
> Lukasz
> http://www.lenart.org.pl/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
>
I've fixed that already, the same exception. Seems like i've understood the
problem: I don't have jars which work with struts tags.

--
Sent from the Struts - User mailing list archive at Nabble.com.


Attachment: user_189033.ezm (zipped)
> I've fixed that already, the same exception. Seems like i've understood the
> problem: I don't have jars which work with struts tags.

That it looks like, missing constructor
HttpRequestParametersHashModel(HttpServletRequest)


Regards
--
Lukasz
http://www.lenart.org.pl/

Attachment: user_189034.ezm (zipped)

Finally, I found a error.
I've got freemaker.jar and freemaker-2.x.x.jar in classpath.
freemaker.jar is used by other app, freemaker-2.x.x is used by struts2 app.
So, the first freemaker.jar was on duty to provide classes.
Now, I've removed ald version of freemaker, and this terrible exception gone
away.
thank you for your help and attention. It was very-very silly mistake

Lukasz Lenart wrote:
>
>> I've fixed that already, the same exception. Seems like i've understood
>> the
>> problem: I don't have jars which work with struts tags.
>
> That it looks like, missing constructor
> HttpRequestParametersHashModel(HttpServletRequest)
>
>
> Regards
> --
> Lukasz
> http://www.lenart.org.pl/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
>

--
Sent from the Struts - User mailing list archive at Nabble.com.


Attachment: user_189030.ezm (zipped)
hi,

Is there any easy way to have a widget like e.g. dojo's datetimepicker
to keep its original style despite applying any global css?

TIA,
regards,
Giovanni

Attachment: user_189032.ezm (zipped)
Resolved!

Looking around a bit found couple of JIRA tickets about introducing the
datetimepicker parameter "templateCssPath". Also found the offending
entries in the global css theme. So what I did was to experiment and
create a new css file called datetimepickerfix.css that would resolve
the two offending margin and border settings. I then configured my
datetimepicker definition to:

<sx:datetimepicker templateCssPath="/styles/datetimepickerfix.css"
label="Next Run Date" displayFormat="yyyy.MM.dd"
 tooltip="Provide the next date to run the Job" name="nextRunDate"
type="date" onchange="false" toggleType="fade"
 toggleDuration="500" />

The style fix is cumulatively and nicely applied to the widget, so
instead of overwriting everything, it only applies the specified
settings on top of the existing default and global settings. Maybe not
the most beautiful solution but works for me ... perhaps a better way
would be extracting the dojo template and fixing the templateCssPath
setting there but then whenever you pull and redefine a template it also
means a maintenance trade-off i.e. you have to keep up sync-ing in every
new release of Struts to keep your redefined templates up to date with
the new version. I personally don't like this.

regards,
Giovanni

PS:

*********************************************
datetimepickerfix.css
*********************************************
  table {
    font-size: 1em;
    margin: 0 0 0 0; /* <=== FIXED here */
    padding: 0;
  }

  .table tfoot th, tfoot td {
    border: 0px;     /* <=== FIXED here */
    text-align: left;
    font-size: 1em;
    background: #e8e8cf;
  }  
*********************************************

Giovanni Azua wrote:
> hi,
>
> Is there any easy way to have a widget like e.g. dojo's datetimepicker
> to keep its original style despite applying any global css?
>
> TIA,
> regards,
> Giovanni
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>  


Attachment: user_189035.ezm (zipped)
Hi,

  In my form I have employee number, name, and roles, here employee number
and name are text fields and roles is a checkboxlist, to generate the list
boxes i had a map called rolesMap in my action class, as well i have a set
called userRoles that specifies the items to be selected.
*jsp*

<s:checkboxlist key="roles" list="rolesMap" value="userRoles"
name="userRoles" />

*action class*

  public Set<Long> getUserRoles() {
    return userRoles;
  }

@RequiredFieldValidator(type=ValidatorType.SIMPLE,fieldName="userRoles",message="",key="requiredstring")
  public void setUserRoles(Set<Long> userRoles) {
    this.userRoles = userRoles;
  }
  public Map<Long, String> getRolesMap() {
    generateRoles();
    return rolesMap;
  }
  public void setRolesMap(Map<Long, String> rolesMap) {
    this.rolesMap = rolesMap;
  }
  private generateRoles(){
  ----
  ----
  }

it is coming fine when i generate the form, but when i submit the form it is
throwing exception....
*stack trace ...*

Jul 17, 2008 2:25:33 PM org.apache.catalina.core.ApplicationDispatcher
invoke
SEVERE: Servlet.service() for servlet jsp threw exception
tag 'checkboxlist', field 'list', name 'userRoles': The requested list key
'rolesMap' could not be resolved as a
collection/array/map/enumeration/iterator type. Example: people or
people.{name} - [unknown location]
  at
org.apache.struts2.components.Component.fieldError (Component.java:231)
  at org.apache.struts2.components.Component.findValue (Component.java:293)
  at
org.apache.struts2.components.ListUIBean.evaluateExtraParams (ListUIBean.java:79)

i couldnt find the fix for this... can any one please guide me to solve this
problem.

Attachment: user_189038.ezm (zipped)
Hi,

Please discard this email. as my action mapping is wrong it is behaving
like this, now i could fix the issue.

Sorry.

On Thu, Jul 17, 2008 at 4:03 PM, Narayana S <narayanasgs1@(protected):

> Hi,
>
>   In my form I have employee number, name, and roles, here employee
> number and name are text fields and roles is a checkboxlist, to generate the
> list boxes i had a map called rolesMap in my action class, as well i have a
> set called userRoles that specifies the items to be selected.
> *jsp*
>
> <s:checkboxlist key="roles" list="rolesMap" value="userRoles"
> name="userRoles" />
>
> *action class*
>
>   public Set<Long> getUserRoles() {
>      return userRoles;
>   }
>
> @RequiredFieldValidator(type=ValidatorType.SIMPLE,fieldName="userRoles",message="",key="requiredstring")
>   public void setUserRoles(Set<Long> userRoles) {
>      this.userRoles = userRoles;
>   }
>   public Map<Long, String> getRolesMap() {
>      generateRoles();
>      return rolesMap;
>   }
>   public void setRolesMap(Map<Long, String> rolesMap) {
>      this.rolesMap = rolesMap;
>   }
>   private generateRoles(){
>    ----
>    ----
>   }
>
> it is coming fine when i generate the form, but when i submit the form it
> is throwing exception....
> *stack trace ...*
>
> Jul 17, 2008 2:25:33 PM org.apache.catalina.core.ApplicationDispatcher
> invoke
> SEVERE: Servlet.service() for servlet jsp threw exception
> tag 'checkboxlist', field 'list', name 'userRoles': The requested list key
> 'rolesMap' could not be resolved as a
> collection/array/map/enumeration/iterator type. Example: people or
> people.{name} - [unknown location]
>   at
> org.apache.struts2.components.Component.fieldError (Component.java:231)
>   at
> org.apache.struts2.components.Component.findValue (Component.java:293)
>   at
> org.apache.struts2.components.ListUIBean.evaluateExtraParams (ListUIBean.java:79)
>
> i couldnt find the fix for this... can any one please guide me to solve
> this problem.
>

Attachment: user_189036.ezm (zipped)
Hi list...

I got a page that has got a sx:div loading its content from an action
(result is search.jsp) and a div that is loaded via
divDisplay.innerHTML=data; and topic.subscribe after I clicked on a
button in search.jsp that publishes the necessary topic.

The publish topic is called from a js function that looks like that:
function searchProcess() {
 var sSearchProcess = document.getElementById("Prozess").value;
 var sSearchField = document.getElementById("Suchfeld").value;
 dojo.event.topic.publish('daskaSuchen', { Prozess:
sSearchProcess, Suchfeld: sSearchField });
 return false;
}
And my subscription to that topic looks like
dojo.event.topic.subscribe("daskaSuchen", function daskaSuchen(doc) {
   dojo.io.bind({
      url: "<s:url value='SearchDaska.action'
/>?Prozess="+doc.Prozess+"&Suchfeld="+doc.Suchfeld,
       load: function(type, data, evt) {
          var divDisplay = dojo.byId("resultDiv");
          divDisplay.innerHTML=data;
       },
       mimeType: "text/html"
    });
  });

The problem I got is, that document.getElementById(...) works fine in
Firefox 2.x - Internet Explorer 7 and Firefox 3 seem to have problems to
find the input fields in the sx:div jsp page.

I also tried to get the values from the input fields with dojo.byId -
but its just the same.

Any hints how to send the values of the input fields without page submit
to the action for the second div?

Kind regards
Jan Froehlich

Attachment: user_189037.ezm (zipped)
I've checked the request and those values from hidden input fields
(name, nameKey) are not there.

> I noticed that.... but I don't think id is a mandatory field... id is
> give for users to do manipulation on the widget, other wise it would be
> mandatory field.

> Any way did you check what is the value sending to server? I mean the
> HTTP header?

> Regards,

> Jishnu Viswanath



> <input dojoattachpoint="comboBoxValue" value="" name="name"
> tabindex="-1" style="display: none;"/>
> <input dojoattachpoint="comboBoxSelectionValue" value="" name="nameKey"
> tabindex="-1" style="display: none;"/>

> We don't have <id> param here, only <name>. And FF I think use
> getElementBuId() func, which return null if missed id param. IE in such
> cases use <name> param instead of <id>.
> But I still don't know how to fix problem.
> Don't anyone face this challenge?




Attachment: user_189039.ezm (zipped)
Kris.BEAUMONT@(protected):
> Hello,
>
> I think I found a problem in struts 2.1.1 (or misunderstood the documentation).
>
> I have an action that can search for persons (querystring for name, list of persons retreived).
> I wanted to reuse that functionality for a form where a user has to be picked (to be added to a group of users).
>
> So I did this:
>  
Thorough analysis! I cringe thinking of how much time it's cost you as
I've been there myself. Unfortunately the s:action tag contains several
major bugs like this (browse JIRA); another major one is that
ThreadLocal context is replaced by the nested action's context and is
never restored afterwards, potentially causing problems for tags AFTER
the closing action tag.

I recommended you raise the issue in JIRA and not to use the s:action
tag as a component like this. It's only useful in the simplest cases.

regards,
Jeromy Evans

PS. it's usually best to describe the problem the top of the email,
otherwise we trail off before reaching the end (speaking for myself
anyway, although I got there eventually).



Attachment: user_189040.ezm (zipped)

Hello All,

I am trying to use an s:div tag but need to update the href dynamically.

To give an idea I have a <s:div listenTopic="/refresh" id="updateDiv"
href="testAction.action?" theme="ajax"/>. I would like to on some user
event to either in javascript or any other way allow the href to append
specific variables. I have tried to href="testAction?someVar=%{someVar}"
where someVar can be say a text field with the name someVar.

That initially didnt work (not sure if I am missing something), but the next
attempt I did was to invoke a javascript function that would directly append
to the href of the div. I read a bit and understand that the href is
stripped from the s:div tag, but I would like to at least append to it or
even use the variables that have been changed in the text field.

Thanks in advance
--
Sent from the Struts - User mailing list archive at Nabble.com.


Attachment: user_189046.ezm (zipped)

So I was able to achieve what I wanted to by setting separateScripts="false"
, I did read that somewhere but I was setting the separateScripts="false" in
the wrong div (using a div to load another div). Now even after changing
the href to something completely different then publishing to the div to
refresh the href that has been changed is ignored and it reloads the page
that was initially set.

Am I using struts 2's div tags incorrectly, and or am I just not allowed to
do this with the div href tags.

Again thank you all for any input.



cree wrote:
>
> Hello All,
>
> I am trying to use an s:div tag but need to update the href dynamically.
>
> To give an idea I have a <s:div listenTopic="/refresh" id="updateDiv"
> href="testAction.action?" theme="ajax"/>. I would like to on some user
> event to either in javascript or any other way allow the href to append
> specific variables. I have tried to href="testAction?someVar=%{someVar}"
> where someVar can be say a text field with the name someVar.
>
> That initially didnt work (not sure if I am missing something), but the
> next attempt I did was to invoke a javascript function that would directly
> append to the href of the div. I read a bit and understand that the href
> is stripped from the s:div tag, but I would like to at least append to it
> or even use the variables that have been changed in the text field.
>
> Thanks in advance
>

--
Sent from the Struts - User mailing list archive at Nabble.com.


Attachment: user_189047.ezm (zipped)
what you are looking for is the "formId" attribute. You can specify
the id of a form, and the fields of the form will be submitted when
the request is made. Check showcase for examples.

musachy

On Thu, Jul 17, 2008 at 11:38 AM, cree <vint@(protected):
>
> Hello All,
>
> I am trying to use an s:div tag but need to update the href dynamically.
>
> To give an idea I have a <s:div listenTopic="/refresh" id="updateDiv"
> href="testAction.action?" theme="ajax"/>. I would like to on some user
> event to either in javascript or any other way allow the href to append
> specific variables. I have tried to href="testAction?someVar=%{someVar}"
> where someVar can be say a text field with the name someVar.
>
> That initially didnt work (not sure if I am missing something), but the next
> attempt I did was to invoke a javascript function that would directly append
> to the href of the div. I read a bit and understand that the href is
> stripped from the s:div tag, but I would like to at least append to it or
> even use the variables that have been changed in the text field.
>
> Thanks in advance
> --
> View this message in context: http://www.nabble.com/s%3Adiv-Append-Href-tp18511393p18511393.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>



--
"Hey you! Would you help me to carry the stone?" Pink Floyd

Attachment: user_189041.ezm (zipped)
Hello for everybody;



We have a big trouble with our Web Application. Our Tomcat 5.5 Server is working properly, as we can see. The problem is concerning to the Web Project. It’s frizzing randomly. It doesn’t matter how many time was reloaded. From this moment never user can get in the Web Site. At the browser address bar we can see the session id that was assigned to the new session, but never the home page is presented, and we must be going to reload it. This reloading is making on the Tomcat Server.



Web application historical summary:



The Trapsatur Project was hosting on a Tomcat 4 Web Server, it was installed in our offices. It was working almost properly, but slowly. Cause that, we decided to get out this Server to be housing at office’s ISP, front to Internet. At this moment we passed to Tomcat 5.5.26. It was begin of troubles.



We are adjusting the Web Application and the Tomcat Server continuously. We resolved problems with DB connection, someone errors with SMTP server. In addition we adjusted several Tomcat’s and JVM’s parameters. Now we are doing some tests. We have assumed that the problem is the difference between servlet.jar used by our Web Project, and the servlet.jar used by Tomcat Server.



We want to thank in advance any help from any body.  



Best regard;



/* Some mistakes catalina.out */



Exception in thread "DefaultQuartzScheduler_Worker-0" java.lang.OutOfMemoryError: PermGen space

Exception in thread "DefaultQuartzScheduler_QuartzSchedulerThread" java.lang.OutOfMemoryError: PermGen space

Exception in thread "http-80-Processor31" java.lang.OutOfMemoryError: PermGen space

Exception in thread "http-80-Processor32" java.lang.OutOfMemoryError: PermGen space

Exception in thread "ContainerBackgroundProcessor[StandardEngine[Catalina]]" java.lang.OutOfMemoryError: PermGen space

17-jul-2008 16:37:56 org.apache.coyote.http11.Http11BaseProtocol pause

INFO: Pausing Coyote HTTP/1.1 on http-80

java.lang.reflect.InvocationTargetException

Exception in thread "main" java.lang.OutOfMemoryError: PermGen space

17-jul-2008 16:38:59 org.apache.catalina.core.AprLifecycleListener lifecycleEvent

INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /opt/jdk1.5.0_15/jre/lib/i386/server:/opt/jdk1.5.0_15/jre/lib/i386:/opt/jdk1.5.0_15/jre/../lib/i386

17-jul-2008 16:38:59 org.apache.coyote.http11.Http11BaseProtocol init





********************************

Christian A. Villamizar Lamus.

Dpto. Informática – Trapsatur.

Tel: 91.542.6666 – Fax: 91.548.0044

Э-mail: c.villamizar@(protected)>

www.trapsatur.com <http://www.trapsatur.com/>

www.excursionesenmadrid.com <http://www.excursionesenmadrid.com/>

www.excursionesenmadrid.es <http://www.excursionesenmadrid.es/>

C/ San Bernardo 5 – 7.

28013 – Madrid. España.




Attachment: user_189042.ezm (zipped)
Hi Cristian,

it looks like a out of memory problem, try to assign more memory to you
JVM with:

export JAVA_OPTS='-Xmx756m -server -XX:MaxPermSize=256m'
export CATALINA_OPTS='-Djava.awt.headless=true'



El jue, 17-07-2008 a las 18:05 +0200, STRUTS SL. Mailing List escribió:
> Hello for everybody;
>
>
>
> We have a big trouble with our Web Application. Our Tomcat 5.5 Server is working properly, as we can see. The problem is concerning to the Web Project. It’s frizzing randomly. It doesn’t matter how many time was reloaded. From this moment never user can get in the Web Site. At the browser address bar we can see the session id that was assigned to the new session, but never the home page is presented, and we must be going to reload it. This reloading is making on the Tomcat Server.
>
>
>
> Web application historical summary:
>
>
>
> The Trapsatur Project was hosting on a Tomcat 4 Web Server, it was installed in our offices. It was working almost properly, but slowly. Cause that, we decided to get out this Server to be housing at office’s ISP, front to Internet. At this moment we passed to Tomcat 5.5.26. It was begin of troubles.
>
>
>
> We are adjusting the Web Application and the Tomcat Server continuously. We resolved problems with DB connection, someone errors with SMTP server. In addition we adjusted several Tomcat’s and JVM’s parameters. Now we are doing some tests. We have assumed that the problem is the difference between servlet.jar used by our Web Project, and the servlet.jar used by Tomcat Server.
>
>
>
> We want to thank in advance any help from any body.  
>
>
>
> Best regard;
>
>
>
> /* Some mistakes catalina.out */
>
>
>
> Exception in thread "DefaultQuartzScheduler_Worker-0" java.lang.OutOfMemoryError: PermGen space
>
> Exception in thread "DefaultQuartzScheduler_QuartzSchedulerThread" java.lang.OutOfMemoryError: PermGen space
>
> Exception in thread "http-80-Processor31" java.lang.OutOfMemoryError: PermGen space
>
> Exception in thread "http-80-Processor32" java.lang.OutOfMemoryError: PermGen space
>
> Exception in thread "ContainerBackgroundProcessor[StandardEngine[Catalina]]" java.lang.OutOfMemoryError: PermGen space
>
> 17-jul-2008 16:37:56 org.apache.coyote.http11.Http11BaseProtocol pause
>
> INFO: Pausing Coyote HTTP/1.1 on http-80
>
> java.lang.reflect.InvocationTargetException
>
> Exception in thread "main" java.lang.OutOfMemoryError: PermGen space
>
> 17-jul-2008 16:38:59 org.apache.catalina.core.AprLifecycleListener lifecycleEvent
>
> INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /opt/jdk1.5.0_15/jre/lib/i386/server:/opt/jdk1.5.0_15/jre/lib/i386:/opt/jdk1.5.0_15/jre/../lib/i386
>
> 17-jul-2008 16:38:59 org.apache.coyote.http11.Http11BaseProtocol init
>
>
>
>
>
> ********************************
>
> Christian A. Villamizar Lamus.
>
> Dpto. Informática – Trapsatur.
>
> Tel: 91.542.6666 – Fax: 91.548.0044
>
> Э-mail: c.villamizar@(protected)>
>
> www.trapsatur.com <http://www.trapsatur.com/>
>
> www.excursionesenmadrid.com <http://www.excursionesenmadrid.com/>
>
> www.excursionesenmadrid.es <http://www.excursionesenmadrid.es/>
>
> C/ San Bernardo 5 – 7.
>
> 28013 – Madrid. España.
>
>
>
--
;-)
____________________________________
Jorge Martin Cuervo

Outsourcing Emarketplace
deFacto Powered by Standards

email <jorge.martin@(protected)>
voice +34 984 832 659
voice +34 660 026 384
____________________________________


DE FACTO STANDARDS, S.L., le informa que su dirección de correo electrónico, así
como el resto de los datos de carácter personal que nos facilite, serán objeto
de tratamiento automatizado en nuestros ficheros, con la finalidad del envío de
información comercial y/o personal por vía electrónica. Vd. podrá en cualquier
momento ejercer el derecho de acceso, rectificación, cancelación y oposición en
los términos establecidos en la Ley Orgánica de Protección de Datos de Carácter
Personal (LOPD. 15/1999), dirigiendo un escrito a C/ Rivero 31 1º Izda. - 33402
AVILES (Asturias), o a nuestra dirección de correo electrónico
(info@(protected)
e-mail es CONFIDENCIAL, siendo para uso exclusivo del destinatario arriba
mencionado. Si Usted lee este mensaje y no es el destinatario indicado, le
informamos que está totalmente prohibida cualquier utilización, divulgación,
distribución y/o reproducción de esta comunicación sin autorización expresa en
virtud de la legislación vigente. Si ha recibido este mensaje por error, le
rogamos nos lo notifique inmediatamente por esta misma vía y proceda a su
eliminación.

This e-mail contains information that will be added to our computerised guest
data base and will be trated in the strict confidence. If you wish to access,
correct, oppose or cancel your details, as specified the Law 15/99, December
13th, please send a certified letter to this effect to DE FACTO STANDARDS,
S.L.., (C/ Rivero 31 1º Izda. - 33402 AVILES (Asturias) SPAIN). If you read this
message, and is not the destinatary, we informal you that is forbidden anything
utility, distribution, divulgation or reproduction of this communication without
express authorization, of the present law. If you received this message for
mistake, we proud in order to the present law, immediate communication to us,
and please erase this e-mail


Attachment: user_189043.ezm (zipped)
All that is obvious from those errors is that the Tomcat application server
has run out of memory and has halted as a result. It is not obvious why
this would happen; there are many reasons it could happen.

Also, my own app does not have a copy of servlet.jar inside its WAR file and
I do not believe that it is a correct practice to have it there. Rely on
the one that Tomcat provides.

jk

On Thu, Jul 17, 2008 at 12:05 PM, STRUTS SL. Mailing List <
struts@(protected):

> Hello for everybody;
>
>
>
> We have a big trouble with our Web Application. Our Tomcat 5.5 Server is
> working properly, as we can see. The problem is concerning to the Web
> Project. It's frizzing randomly. It doesn't matter how many time was
> reloaded. From this moment never user can get in the Web Site. At the
> browser address bar we can see the session id that was assigned to the new
> session, but never the home page is presented, and we must be going to
> reload it. This reloading is making on the Tomcat Server.
>
>
>
> Web application historical summary:
>
>
>
> The Trapsatur Project was hosting on a Tomcat 4 Web Server, it was
> installed in our offices. It was working almost properly, but slowly. Cause
> that, we decided to get out this Server to be housing at office's ISP, front
> to Internet. At this moment we passed to Tomcat 5.5.26. It was begin of
> troubles.
>
>
>
> We are adjusting the Web Application and the Tomcat Server continuously. We
> resolved problems with DB connection, someone errors with SMTP server. In
> addition we adjusted several Tomcat's and JVM's parameters. Now we are doing
> some tests. We have assumed that the problem is the difference between
> servlet.jar used by our Web Project, and the servlet.jar used by Tomcat
> Server.
>
>
>
> We want to thank in advance any help from any body.
>
>
>
> Best regard;
>
>
>
> /* Some mistakes catalina.out */
>
>
>
> Exception in thread "DefaultQuartzScheduler_Worker-0"
> java.lang.OutOfMemoryError: PermGen space
>
> Exception in thread "DefaultQuartzScheduler_QuartzSchedulerThread"
> java.lang.OutOfMemoryError: PermGen space
>
> Exception in thread "http-80-Processor31" java.lang.OutOfMemoryError:
> PermGen space
>
> Exception in thread "http-80-Processor32" java.lang.OutOfMemoryError:
> PermGen space
>
> Exception in thread
> "ContainerBackgroundProcessor[StandardEngine[Catalina]]"
> java.lang.OutOfMemoryError: PermGen space
>
> 17-jul-2008 16:37:56 org.apache.coyote.http11.Http11BaseProtocol pause
>
> INFO: Pausing Coyote HTTP/1.1 on http-80
>
> java.lang.reflect.InvocationTargetException
>
> Exception in thread "main" java.lang.OutOfMemoryError: PermGen space
>
> 17-jul-2008 16:38:59 org.apache.catalina.core.AprLifecycleListener
> lifecycleEvent
>
> INFO: The Apache Tomcat Native library which allows optimal performance in
> production environments was not found on the java.library.path:
> /opt/jdk1.5.0_15/jre/lib/i386/server:/opt/jdk1.5.0_15/jre/lib/i386:/opt/jdk1.5.0_15/jre/../lib/i386
>
> 17-jul-2008 16:38:59 org.apache.coyote.http11.Http11BaseProtocol init
>
>
>
>
>
> ********************************
>
> Christian A. Villamizar Lamus.
>
> Dpto. Informática – Trapsatur.
>
> Tel: 91.542.6666 – Fax: 91.548.0044
>
> Э-mail: c.villamizar@(protected)>
>
> www.trapsatur.com <http://www.trapsatur.com/>
>
> www.excursionesenmadrid.com <http://www.excursionesenmadrid.com/>
>
> www.excursionesenmadrid.es <http://www.excursionesenmadrid.es/>
>
> C/ San Bernardo 5 – 7.
>
> 28013 – Madrid. España.
>
>
>
>


--
Jim Kiley
Technical Consultant | Summa
[p] 412.258.3346 [m] 412.445.1729
http://www.summa-tech.com

Attachment: user_189045.ezm (zipped)
Maybe you got some memory leak in your code. Use a memory-inspecting
tool and check for static objects.
If you check your memory usage, maybe you'll find that you eat all the
memory available, so you should tune your tomcat server changing the
memory parameters.
Regards,
Paolo Niccolò Giubelli

STRUTS SL. Mailing List ha scritto:
> Hello for everybody;
>
>
>
> We have a big trouble with our Web Application. Our Tomcat 5.5 Server is working properly, as we can see. The problem is concerning to the Web Project. It’s frizzing randomly. It doesn’t matter how many time was reloaded. From this moment never user can get in the Web Site. At the browser address bar we can see the session id that was assigned to the new session, but never the home page is presented, and we must be going to reload it. This reloading is making on the Tomcat Server.
>
>
>
> Web application historical summary:
>
>
>
> The Trapsatur Project was hosting on a Tomcat 4 Web Server, it was installed in our offices. It was working almost properly, but slowly. Cause that, we decided to get out this Server to be housing at office’s ISP, front to Internet. At this moment we passed to Tomcat 5.5.26. It was begin of troubles.
>
>
>
> We are adjusting the Web Application and the Tomcat Server continuously. We resolved problems with DB connection, someone errors with SMTP server. In addition we adjusted several Tomcat’s and JVM’s parameters. Now we are doing some tests. We have assumed that the problem is the difference between servlet.jar used by our Web Project, and the servlet.jar used by Tomcat Server.
>
>
>
> We want to thank in advance any help from any body.  
>
>
>
> Best regard;
>
>
>
> /* Some mistakes catalina.out */
>
>
>
> Exception in thread "DefaultQuartzScheduler_Worker-0" java.lang.OutOfMemoryError: PermGen space
>
> Exception in thread "DefaultQuartzScheduler_QuartzSchedulerThread" java.lang.OutOfMemoryError: PermGen space
>
> Exception in thread "http-80-Processor31" java.lang.OutOfMemoryError: PermGen space
>
> Exception in thread "http-80-Processor32" java.lang.OutOfMemoryError: PermGen space
>
> Exception in thread "ContainerBackgroundProcessor[StandardEngine[Catalina]]" java.lang.OutOfMemoryError: PermGen space
>
> 17-jul-2008 16:37:56 org.apache.coyote.http11.Http11BaseProtocol pause
>
> INFO: Pausing Coyote HTTP/1.1 on http-80
>
> java.lang.reflect.InvocationTargetException
>
> Exception in thread "main" java.lang.OutOfMemoryError: PermGen space
>
> 17-jul-2008 16:38:59 org.apache.catalina.core.AprLifecycleListener lifecycleEvent
>
> INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /opt/jdk1.5.0_15/jre/lib/i386/server:/opt/jdk1.5.0_15/jre/lib/i386:/opt/jdk1.5.0_15/jre/../lib/i386
>
> 17-jul-2008 16:38:59 org.apache.coyote.http11.Http11BaseProtocol init
>
>
>
>
>
> ********************************
>
> Christian A. Villamizar Lamus.
>
> Dpto. Informática – Trapsatur.
>
> Tel: 91.542.6666 – Fax: 91.548.0044
>
> Э-mail: c.villamizar@(protected)>
>
> www.trapsatur.com <http://www.trapsatur.com/>
>
> www.excursionesenmadrid.com <http://www.excursionesenmadrid.com/>
>
> www.excursionesenmadrid.es <http://www.excursionesenmadrid.es/>
>
> C/ San Bernardo 5 – 7.
>
> 28013 – Madrid. España.
>
>
>


Attachment: user_189044.ezm (zipped)
I'm guessing the operation you're waiting for can take quite a while to
complete. Otherwise modifying the architecture of this probably
wouldn't be worth it.

You might consider the flow of the original action to simply report a
simple "submitted and processing" result, and then implement an
Ajax-based timeout to quickly check the status of the long-running
process.

> -----Original Message-----
> From: Chase [mailto:chase@(protected)]
> Sent: Wednesday, July 16, 2008 4:23 PM
> To: user@(protected)
> Subject: ExecAndWait (navigating back to the progress page)
>
> I want my users to be able to leave the wait page and return.
> Can this be done, what is the best way?
>
> I've got two actions. ActionA displays a form and the form
> submits to ActionB. ActionB is using the ExecAndWait
> interceptor. Right now users have to resubmit the form to get
> back to their status page (possibly resubmitting the form if
> ActionB has finished). How can I have ActionA display the
> wait page of ActionB instead of the form?
>
> Also, is there anyway to make the ExecAndWait interceptor
> function per context instead per session? This is a low
> volume internal app.
>
> Thanks,
> Chase
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
©2008 gg3721.com - Jax Systems, LLC, U.S.A.