Struts 2 + JBoss5: error with init-param "actionPackages"

2009-01-01 Thread Wolfgang Knauf
Hi all, I added an "init-param" "actionPackages" to the FilterDispatcher in web.xml. This worked with JBoss 4.2, but in 5.0 it raises an exception on deploy. The reason seems to be the virtual file system introduced in JBoss 5.0. To reproduce: Take the sample "struts2-blank-2.0.14.war". Add th

Struts 2 + JBoss5: URI scheme is not "file"

2009-01-01 Thread Wolfgang Knauf
Does anybody have an explanation or a workaround? According to the exception message, I suspect some problem with the new JBoss virtual file system, because there all file URIs start with "vfsfile://". Thanks Wolfgang Knauf 17:57:16,578 ERROR [[default]] Serv

Re: Struts 2 + JBoss5: URI scheme is not "file"

2009-01-04 Thread Wolfgang Knauf
Ooops, my sample still included 2.0.11 libraries. After updating to 2.0.14, it works. Wolfgang Wolfgang Knauf wrote: Hi all, I have a small sample which uses this ...-validation.xml config file: ... When calling the action, this results in the exception below. 17:57:16,578 ERROR [[default

Re: Struts 2 + JBoss5: error with init-param "actionPackages"

2009-01-04 Thread Wolfgang Knauf
Filed in JIRA: https://issues.apache.org/struts/browse/WW-2948 Wolfgang Wolfgang Knauf wrote: I added an "init-param" "actionPackages" to the FilterDispatcher in web.xml. This worked with JBoss 4.2, but in 5.0 it raises an

Doc for s:url tag has wrong "includeParams" default

2009-01-04 Thread Wolfgang Knauf
Hi everybody, it seems this page contains an error: http://struts.apache.org/2.0.14/docs/url.html The sentence "As of Struts 2.0.11.3/2.0.12/2.1.3 the includeParams constant defaults to 'none'." seems to be wrong: In file "org\apache\struts2\default.properties" in "struts2-core-2.0.14.jar" it

Re: Doc for s:url tag has wrong "includeParams" default

2009-01-07 Thread Wolfgang Knauf
Hi, I updated the page. thanks for reporting. http://struts.apache.org/2.0.14/docs/url.html shows still the wrong info "As of Struts 2.0.11.3/2.0.12/2.1.3 the includeParams constant defaults to 'none'". According to you, this was only changed in 2.1.x? Best regards Wolfgang ---

[S2] Exploding memory usage with JBoss5

2009-01-19 Thread Wolfgang Knauf
Hi all, I have a quite small Struts 2 application running on a JBoss 5.0GA. It contains some EJB3 entity beans, an EJB3 session bean, a handful of struts actions and three JSPs. After about 5 redeploys (I use JSR88), JBoss is consuming more and more memory (>500MB) and thus getting poorly slow.

[S2] s:action in value stack?

2009-01-19 Thread Wolfgang Knauf
Hi all, there is one thing about calling an action through the tag: I can provide an "id", and I can call the properties of the action with "#actionid.field" annotations later on the page. But I would expect this action to be placed on the value stack, so that e.g. would access "getField()"

Re: [S2] s:action in value stack?

2009-01-20 Thread Wolfgang Knauf
Hi, I would be careful about placing action execution logic in your view. This is really not the place to be making navigation decisions. I know ;-). I use it only on my index page, where I force creation of an action which provides me with a list of items to display on the start page. So

Re: [S2] s:action in value stack?

2009-01-20 Thread Wolfgang Knauf
Hi, Maybe the var is used if you did something like: or Unfortunately not, I gave this a try already (using "id" attribute, as Struts 2.0.14 does not know "var"). I might give it a try with 2.1.6. Wolfgang

Re: [S2] Exploding memory usage with JBoss5

2009-01-24 Thread Wolfgang Knauf
), the machine is constantly swapping, and the app is poorly slow. I suspect a JBoss 5 problem, but as I have only very basic struts knowledge, I don't know enough about the internals to file a struts or jboss JIRA. Thanks Wolfgang Knauf Wolfgang Knauf wrote: Hi all, I have a quite

Re: [S2] Exploding memory usage with JBoss5

2009-01-24 Thread Wolfgang Knauf
Just to give some more information (maybe someone with more in-depth knowledge finds the time to take a look at this issue): On copying it to the deploy directory of JBoss, memory usage increases by 20 MB. On calling the first struts page (http://localhost:8080/KuchenZutatStrutsWeb/ - then

Re: [S2] s:action in value stack?

2009-01-25 Thread Wolfgang Knauf
Hi Musachy, Musachy Barroso wrote: Inside the action tag, the action will be on top of the stack, so you can reference it using #top. The action is added to the context under the "id" (2.0), or "var" (2.1) name, on the end of the tag, so you cannot reference it by name inside the action tag. Wow

Re: [S2] s:action in value stack?

2009-01-27 Thread Wolfgang Knauf
Hi Musachy, Musachy Barroso wrote: I think top doesn't need "#"(yeah I know I said "#top" ;) ). Either "top.id" or just "id" should get you the id. I uploaded a new sample to, with your change ("top" instead of "#top"). http://www.informatik.fh-wiesbaden.de/~knauf/private/struts2/Struts2Acti

Re: [S2] s:action in value stack?

2009-01-29 Thread Wolfgang Knauf
Musachy Barroso wrote: Yes, during the result of the invoked action, the invoked action will be on the top of the stack, but it is available "by name" in the stack, only outside the "action" tag. I cannot confirm the first half of this (see my sample). A action called by "s:action" seems to b

Re: [S2] s:action in value stack?

2009-01-31 Thread Wolfgang Knauf
Darn, "Ctrl+Enter" is no good So, one more try: Musachy Barroso wrote: what does prints in the action result? I updated my sample (http://www.informatik.fh-wiesbaden.de/~knauf/private/struts2/Struts2Action.war) so that the JSP outputs this: Inside s:action: Property "id": Inside

Re: [S2] s:action in value stack?

2009-02-01 Thread Wolfgang Knauf
Hi Musachy, Musachy Barroso wrote: what does prints in the action result? musachy On Thu, Jan 29, 2009 at 5:53 PM, Wolfgang Knauf wrote: Musachy Barroso wrote: Yes, during the result of the invoked action, the invoked action will be on the top of the stack, but it is available "by

Re: [S2] s:action in value stack?

2009-02-05 Thread Wolfgang Knauf
Hmmm, no reply. So I will bounce this issue one last time... Up to now, nobody could tell me why an action called by "" is not placed on the value stack the same way as an action called by URL. Wolfgang Wolfgang Knauf wrote: Musachy Barroso wrote: what does prints in the act

Re: [S2] s:action in value stack?

2009-02-06 Thread Wolfgang Knauf
Hi Musachy, what you say makes sense, but then I think one thing is missing in the doc for s:action (http://struts.apache.org/2.1.6/docs/action.html): I suggest something like this: "The action is never placed on the value stack like an action called by URL, so that accessing fields of it wit

Struts 7 config browser: error when clicking on an action

2024-10-19 Thread Wolfgang Knauf
I added "struts2-config-browser-plugin-7.0.0-M7-SNAPSHOT.jar" to my struts app. When clicking on one of my actions (in the section "Actions in default namespace"), this stack trace is printed: 20:17:33,371 ERROR [org.apache.struts2.config_browser.ShowConfigAction] (default task-1) Unable to get

Struts 7: error when "s:action" is used on jsp page and jsp is invoked directly in browser

2024-10-19 Thread Wolfgang Knauf
I have a "index.jsp" and invoke an action using "s:action" tag, then render data from this action. In the browser I navigate to this jsp direcly ("http://localhost/index.jsp"; instead of browsing to ".../index.action"). Snippet from my JSP: ...

Aw: Struts 7 config browser: error when clicking on an action

2024-10-19 Thread Wolfgang Knauf
Sorry, my error - the only binary download I had found deep in the apache sites was a a 7.0 M7 snapshot, but there is already 7.0 M9. With the new version, the config browser works. Best regards Wolfgang - To unsubscribe, e-m

Re: Struts 7: error when "s:action" is used on jsp page and jsp is invoked directly in browser

2024-10-20 Thread Wolfgang Knauf
20.10.24 um 11:02 schrieb Lukasz Lenart: sob., 19 paź 2024 o 15:18 Wolfgang Knauf napisał(a): I have a "index.jsp" and invoke an action using "s:action" tag, then render data from this action. In the browser I navigate to this jsp direcly ("http://localhost/index.jsp

Aw: Re: Struts 7: error when "s:action" is used on jsp page and jsp is invoked directly in browser

2024-10-20 Thread Wolfgang Knauf
ge and jsp is invoked directly in browser > > niedz., 20 paź 2024 o 11:14 Wolfgang Knauf > napisał(a): > > > > OK, I see. Thanks for the clarification. > > > > Is there any chance to improve the error message or detect this > > situation? You wrote that this is a r

Re: Struts 6.7.0 and xwork2 packages

2025-01-20 Thread Wolfgang Knauf
Hi Heikki, your description sounds like this parameter injection change: https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=293046977#Struts6.x.xto7.x.xmigration-Actionparameterinjection For testing purposes, you might disable this security feature completely: struts.parameters.req

Re: Issue with ServletActionContext.getRequest() returning null in JSP (Struts 7)

2025-03-26 Thread Wolfgang Knauf
Hi, how do you invoke the jsp? I had a (maybe) similar issue and learned that I cannot invoke JSPs directly (by browsing to the jsp url), but have to call an ".action" url instead. Best regards Wolfgang Am 26.03.25 um 09:37 schrieb Lidin NT: Hi all, I'm working on a Struts 7 application

Re: Issue in Struts 7.0.0 with tag

2025-04-17 Thread Wolfgang Knauf
Hi, the error "java.lang.NullPointerException: Cannot invoke "org.apache.struts2.ActionInvocation.getProxy()" because "invocation" is null" sounds like a problem that I ran into: https://issues.apache.org/jira/browse/WW-5475 Do you by any chance call JSP pages directly, instead of invoking an

Re: Questions about migrating to Struts 7.0

2025-03-11 Thread Wolfgang Knauf
Hi Nate, about "@StrutsParameter" and POJOs: you can set the "depth" attribute. A value of "1" means that all properties of the POJO can be set. Level 2 would set properties of classes of properties of the POJO and so on. @StrutsParameter(depth = 1) public MyPoJo getPojo() { ... } I don't k

Aw: Re: Struts 7 problem

2025-05-10 Thread Wolfgang Knauf
;].isUserInRole("Level_2_Processor") || > > #request["MYUtils"].isUserInRole("Level_3_Processor")] > > Caused by: java.lang.SecurityException: This expression exceeded maximum > > allowed length: #request["MYUtils"].isUserInRole("Program_Man

Re: Struts 7 problem

2025-05-09 Thread Wolfgang Knauf
Hi Deborah, could be a matter of casing - the attribute is "escapeHtml": https://struts.apache.org/tag-developers/property-tag.html Does this help? Wolfgang Am 09.05.25 um 20:15 schrieb Deborah White: I am getting this error after migrating to Struts 7.0.0. JBWEB004251: An error occurred a