Re: Struts 1.1 application migration

2012-07-11 Thread vivek mishra
Hi Folks,

I did some googling but couldn't find anything regarding this error.

Any help will be much appreciated..

Thanks!
--
Vivek Mishra

On Wed, Jul 11, 2012 at 4:40 PM, vivek mishra wrote:

> Hi Folks,
>
> I am deploying my war on websphere app server which is on AIX box.
> Application devlopment has been done on windows box with tomcat
> server.
>
> I am facing below issue related to struts ActionServlet. Is there any
> other thing required in struts setup for deploying it on websphere.
> Here's the log:
>
>
> [7/11/12 3:41:37:528 PDT] 002b extension W
> com.ibm.wsspi.webcontainer.extension.WebExtensionProcessor
> createServletWrapper Servlet action is currently unavailable:
> SRVE0201E: Servlet [org.apache.struts.action.ActionServlet]: not a
> servlet class
> [7/11/12 3:41:37:531 PDT] 002b webcontainer  I
> com.ibm.ws.wswebcontainer.VirtualHost addWebApplication SRVE0250I: Web
> Module HWInventory has been bound to
> default_host[*:9080,*:80,*:9443,*:5060,*:5061,*:443,
> hidh220.hydc.sbc.com:9080,hidh220.hydc.sbc.com:80,
> hidh220.hydc.sbc.com:9443,hidh220.hydc.sbc.com:5060,
> hidh220.hydc.sbc.com:5061,hidh220.hydc.sbc.com:443].
> [7/11/12 3:41:37:548 PDT] 002b ApplicationMg A   WSVR0221I:
> Application started: HW-Inventory_war
> [7/11/12 3:41:37:550 PDT] 002b CompositionUn A   WSVR0191I:
> Composition unit WebSphere:cuname=HW-Inventory_war in BLA
> WebSphere:blaname=HW-Inventory_war started.
> [7/11/12 3:42:12:806 PDT] 0035 FfdcProvider  W
> com.ibm.ws.ffdc.impl.FfdcProvider logIncident FFDC1003I: FFDC Incident
> emitted on
> /opt/app/t1ls1m1/was/was70/profiles/node/logs/ffdc/empserver1_7df07df0_12.07.11_03.42.12.7828901877600843941052.txt
> com.ibm.ws.webcontainer.filter.WebAppFilterManager.loadFilter 303
> [7/11/12 3:42:12:822 PDT] 0035 FfdcProvider  W
> com.ibm.ws.ffdc.impl.FfdcProvider logIncident FFDC1003I: FFDC Incident
> emitted on
> /opt/app/t1ls1m1/was/was70/profiles/node/logs/ffdc/empserver1_7df07df0_12.07.11_03.42.12.8083026816414544817095.txt
> com.ibm.ejs.sm.client.ui.NLS.getString 353
> [7/11/12 3:42:12:847 PDT] 0035 FfdcProvider  W
> com.ibm.ws.ffdc.impl.FfdcProvider logIncident FFDC1003I: FFDC Incident
> emitted on
> /opt/app/t1ls1m1/was/was70/profiles/node/logs/ffdc/empserver1_7df07df0_12.07.11_03.42.12.8231623118843111297843.txt
> com.ibm.ws.webcontainer.filter.WebAppFilterManager.loadFilter 380
> [7/11/12 3:42:12:874 PDT] 0035 FfdcProvider  W
> com.ibm.ws.ffdc.impl.FfdcProvider logIncident FFDC1003I: FFDC Incident
> emitted on
> /opt/app/t1ls1m1/was/was70/profiles/node/logs/ffdc/empserver1_7df07df0_12.07.11_03.42.12.8483756132019284550693.txt
> com.ibm.ws.webcontainer.filter.WebAppFilterManager.getFilterInstanceWrapper
> 166
> [7/11/12 3:42:13:025 PDT] 0035 jsp   W
> com.ibm.ws.jsp.taglib.TldParser endElement JSPG0235E: The JSP
> container failed to load the TagExtraInfo class
> [org.apache.struts.taglib.html.MessagesTei]  from
> /WEB-INF/tlds/struts-html.tld
> [7/11/12 3:42:13:043 PDT] 0035 jsp   W
> com.ibm.ws.jsp.taglib.TldParser endElement JSPG0235E: The JSP
> container failed to load the TagExtraInfo class
> [org.apache.struts.taglib.bean.CookieTei]  from
> /WEB-INF/tlds/struts-bean.tld
> [7/11/12 3:42:13:045 PDT] 0035 jsp   W
> com.ibm.ws.jsp.taglib.TldParser endElement JSPG0235E: The JSP
> container failed to load the TagExtraInfo class
> [org.apache.struts.taglib.bean.DefineTei]  from
> /WEB-INF/tlds/struts-bean.tld
> [7/11/12 3:42:13:047 PDT] 0035 jsp   W
> com.ibm.ws.jsp.taglib.TldParser endElement JSPG0235E: The JSP
> container failed to load the TagExtraInfo class
> [org.apache.struts.taglib.bean.HeaderTei]  from
> /WEB-INF/tlds/struts-bean.tld
> [7/11/12 3:42:13:049 PDT] 0035 jsp   W
> com.ibm.ws.jsp.taglib.TldParser endElement JSPG0235E: The JSP
> container failed to load the TagExtraInfo class
> [org.apache.struts.taglib.bean.IncludeTei]  from
> /WEB-INF/tlds/struts-bean.tld
> [7/11/12 3:42:13:052 PDT] 0035 jsp   W
> com.ibm.ws.jsp.taglib.TldParser endElement JSPG0235E: The JSP
> container failed to load the TagExtraInfo class
> [org.apache.struts.taglib.bean.PageTei]  from
> /WEB-INF/tlds/struts-bean.tld
> [7/11/12 3:42:13:054 PDT] 0035 jsp   W
> com.ibm.ws.jsp.taglib.TldParser endElement JSPG0235E: The JSP
> container failed to load the TagExtraInfo class
> [org.apache.struts.taglib.bean.ParameterTei]  from
> /WEB-INF/tlds/struts-bean.tld
> [7/11/12 3:42:13:059 PDT] 0035 jsp   W
> com.ibm.ws.jsp.taglib.TldParser endElement JSPG0235E: The JSP
> container failed to load the TagExtraInfo class
> [org.apache.struts.taglib.bean.ResourceTei]  from
> /WEB-INF/tlds/struts-bean.tld
> [7/11/12 3:42:13:061 PDT] 0035 jsp   W
> com.ibm.ws.jsp.taglib.TldParser endElement JSPG0235E: The JSP
> container failed to load the TagExtraInfo class
> [org.apache.struts.taglib.bean.SizeTei]  from
> /WEB-INF/tlds/struts-bean.tld
> [7/11/12 3:42

Struts2_Jquery:_plugin : result definition for asynch.

2012-07-11 Thread ngald
Hi

I have a web application maden with struts2.2.x

I'm adding asynchronous function for refresh only 2 fields (says F1, F2) of
the main jsp. The total fields are 50. 
Even F1 F1 are inside a larger FORM for total submit after.
I Use  the plugin for jquery 3.3.1.
The F1 F2  fields are inside a DIV tag, who is the TARGET for the asynch
submit.
The asynch. submit is ok, with tags jquery  or 
the problem is that in the asynch. jsp answer  the fields F1 F2 are added to
the main, so are double and not refreshed.


The questions :
-- how is the struts result definition for "asynch" part ?  the same main
jsp ? Or a new jwp wiht the two field only ?
-- is it possibile annidate form sync (total submit, 50 fields)  with inner
form async.(for refresh F1 F2) ?

thanks  Nicola




--
View this message in context: 
http://struts.1045723.n5.nabble.com/Struts2-Jquery-plugin-result-definition-for-asynch-tp5710211.html
Sent from the Struts - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Struts2 RedirectAction Situation

2012-07-11 Thread Hernán
Some days ago I wrote about a problem I had with struts2. As nobody knew
the answer, I solved it but then I forgot to comment about it. So I'll do
it now.
I upgraded a Struts2, Spring, Hibernate Application to the latest version
of struts2 2.3.4, that's way I also upgraded it's corresponding Spring,
Spring security and Tiles dependencies. The web app had spring 2.5.6,
Spring security 2.0 and Tiles 2.0.6. Now it uses spring 3.0.7.RELEASE,
Spring Security 3.1 and Tiles 2.2.2.

The problem I had was with RedirectAction Result, in a nutshell: whenever
struts2 redirected an action, it added !Something#Something at the end of
the correct action I wanted to redirect. As you should know these are the
method and anchor parameters of RedirectAction result... The thing is that
this "Something" comes from Spring Security 3.1 (the same happened with
Spring Security 3.0 as I tried it)

















For an unknown reason (at least for me). The Struts2 class
ServletActionRedirectResult used this constructor and...

public ServletActionRedirectResult(String namespace, String actionName,
String method, String anchor) {
super(null, anchor);
this.namespace = namespace;
this.actionName = actionName;
this.method = method;
}

the values passed in each parameter where the String "Something" then there
was no way to avoid method and anchor parameters of being added to the
redirected action, that's why I made a patch and solve the problem.
What I did is something childish but efficient, I passed "null" String
value to parameters anchor and method and in the code, if the parameters
were the String "null" I set the parameters to null. I know it's a little
bit weird but it worked for me... Maybe I am doing something wrong. Dunno.
Anyway bear it in mind, maybe I'm wrong, maybe it's a bug. I don't know.

Here goes my Patch Adams Code Snippets:

struts.xml





${redirectToAction}
${redirectToNamespace}
null
null



org.apache.struts2.dispatcher.ServletActionRedirectResult.java

public void execute(ActionInvocation invocation) throws Exception {
actionName = conditionalParse(actionName, invocation);
if (namespace == null) {
namespace = invocation.getProxy().getNamespace();
} else {
namespace = conditionalParse(namespace, invocation);
}
if (method == null || method.equalsIgnoreCase("null")) {
method = "";
} else {
method = conditionalParse(method, invocation);
}

String tmpLocation = actionMapper.getUriFromActionMapping(new
ActionMapping(actionName, namespace, method, null));

setLocation(tmpLocation);

super.execute(invocation);
}

org.apache.struts2.dispatcher.ServletRedirectResult.java

public void execute(ActionInvocation invocation) throws Exception {
if (anchor != null && !anchor.equalsIgnoreCase("null") &&
!anchor.equalsIgnoreCase("")) {
anchor = conditionalParse(anchor, invocation);
}
super.execute(invocation);
}


Greetings, any comment will be appreciated.

-- 
Hernán


some issues upgrade struts from 2.2.3 to 2.3.4

2012-07-11 Thread Eric Tse
dear folks,

i have a portlet project which makes use of 2.2.3 for a year and currently 
prepare to upgrade to 2.3.4. However, a problem occurred after replacing struts 
jars. It seems to me that it is configuration problem (due to new config ??)  
but i cannot figure it out…. hope you can add some ideas to let me try it out….

Problem :

09:39:31,349 ERROR [jsp:154] Unable to locate action mapping for request, 
probably due to an invalid action path: /abcportlet/updateForm - [unknown 
location] 

Setup:

- I changed all struts*.jar from 2.2.3 to 2.3.4 (including 
struts2-portlet-plugin)
- i modified config param struts.action.extension from "" to "," 
- the portlet can load an input form, after clicking the submit button to 
invoke the updateForm action, the above error occurred.

struts.xml 

 
 
[...] 

jsp 

 
[...] 
 

portlet.xml 

 
abcportlet 
org.apache.struts2.portlet.dispatcher.Jsr168Dispatcher
 
 
portletNamespace 
/abcportlet 
 
 
viewNamespace 
/view 
 
 
defaultViewAction 
input 
 
[...] 
 

Regards,
Eric