Results 1 to 3 of 3

Thread: Spring 3.2 portlet in Websphere issue

  1. #1
    Join Date
    Aug 2010
    Posts
    11

    Default Spring 3.2 portlet in Websphere issue

    I have a spring 3.1 portlet which works perfectly in liferay and websphere 7... When I update spring to 3.2(no spring 3.1 libraries exist anymore) the portlet no longer works completely in websphere, but works perfectly fine in liferay.

    In websphere I can bring up the initial page of the portlet, the problem is when I submit the form I get the error below

    Error 404: SRVE0190E: File not found: /wps/myportal/!ut/p/b1/04_SjzQyNjI3MrSwMNeP0I_KSyzLTE8syczPS8wB8aPM4oPDfE 1CnAJNDd2NfJwNPM0twkI9jByNDAzMgAoikRX4uwe6GHi6hgWa uXmEGLr7GVGm39mYOP0GOICjASH94fpRqEqw-ACvgmBzAgpAfgArwONIP4_83FT93KgcNzdLz8yAdEVFALgB75o !/pw/Z7_SVM4TBQ518M2F0I7Q6H7S62006/ren/p=submit=submit/-/

    It does not look like the request even hits spring, no exceptions are produced from my app.

    A cut down version of my code is below

    Code:
    @Controller("titleSearchController")
    @RequestMapping("VIEW")
    public class TitleSearchController {
        ...
    
        // THIS WORKS FINE
        @RenderMapping(params = "reset=true")
        public String showIndexPage(Model model) throws Exception {
        	return "home"; 
        }
        
        @RenderMapping(params="submit")
        public String submitForm(@ModelAttribute("command") LandTitleCriteria landtilecriteria, BindingResult bindingResult, WebRequest request, Model model) throws Exception {
    		model.addAttribute("command", landtilecriteria);
    		....
    		return "home";
    	}
    
        ...
    }
    cut down verion of the JSP
    HTML Code:
    <portlet:renderURL var="go">
    	<portlet:param name="submit" value="submit"></portlet:param>
    </portlet:renderURL>
    
    <form:form id="form" class="form-horizontal" commandName="command" action="${go}" onsubmit="return SubmitForm()" htmlEscape="false">
    ...
    </form:form>

    Any ideas why I get the error?

  2. #2
    Join Date
    Aug 2010
    Posts
    11

    Default

    I solved it.. spring 3.2.1 is causing the issue. Spring 3.2.0 works perfectly!... I have not dived into finding out why.

  3. #3
    Join Date
    Feb 2013
    Posts
    1

    Default

    Quote Originally Posted by monojetksi View Post
    I solved it.. spring 3.2.1 is causing the issue. Spring 3.2.0 works perfectly!... I have not dived into finding out why.
    Thanks a lot for posting this! Switching the spring 3.2.0 worked for me as well

    I've been having the same issue and couldn't find a solution.
    The actionURL used in href work fine but any submit action crashes with that same "File not found" error.

    Don't know why exactly either but there's definitely something in 3.2.1 that breaks the submit actions for WPS.


    (Running Websphere Portal 7.0.0.2, Spring 3.2.0.RELEASE, Webflow 2.4.0.M1)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •