Results 1 to 2 of 2
  1. #1
    dkirvan is offline Member
    Join Date
    Oct 2008
    Posts
    4
    Rep Power
    0

    Default jsessionid imbedded in link causes it to fail

    I have separated our project into multiple wars and jars and now when links are created sometimes they get the jsessionid imbedded into them which causes the link to fail. I have told browser to enable cookies. The project when it was not separated into pieces did not put the jsessionid in the url links. Below is the "view source of one of the list jsp screens which shows the jsessionid in some of the links. Then the error screen follows. Do you know how I can stop the system from imbedding the jsessionid's into the links.



    <a href="#" id="ToDoListMenuList352Actuator" class="actuator">Filter</a>
    <ul id="ToDoListMenuList352Menu" class="menu">
    <li><a href="/partyRoleUI/roleTypeAttrList.do?do=listRoleTypeAttrActive;jses sionid=ABC050043B658172728D72ABBBF6EE64" title="Active Items" style="width: 100px">Active Items</a></li>
    <li><a href="/partyRoleUI/roleTypeAttrList.do?do=listRoleTypeAttrAll;jsessio nid=ABC050043B658172728D72ABBBF6EE64" title="All Items" style="width: 100px">All Items</a></li>
    <li><a href="/partyRoleUI/roleTypeAttrList.do?do=listRoleTypeAttrDeleted;jse ssionid=ABC050043B658172728D72ABBBF6EE64" title="Deleted Items" style="width: 150px">Deleted Items</a></li>
    </ul>
    </li>

    ** THIS IS THE ERROR I GET. IF I REMOVE THE JSESSIONID FROM THE ADDRESS LINE THE LINK WORKS.
    HTTP Status 500 -

    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    javax.servlet.ServletException: Action[/roleTypeAttrList] does not contain specified method (check logs)
    org.apache.struts.action.RequestProcessor.processE xception(RequestProcessor.java:535)
    org.apache.struts.action.RequestProcessor.processA ctionPerform(RequestProcessor.java:433)
    org.apache.struts.action.RequestProcessor.process( RequestProcessor.java:236)
    org.apache.struts.action.ActionServlet.process(Act ionServlet.java:1196)
    org.apache.struts.action.ActionServlet.doGet(Actio nServlet.java:414)
    javax.servlet.http.HttpServlet.service(HttpServlet .java:689)
    javax.servlet.http.HttpServlet.service(HttpServlet .java:802)
    com.opensymphony.module.sitemesh.filter.PageFilter .parsePage(PageFilter.java:119)
    com.opensymphony.module.sitemesh.filter.PageFilter .doFilter(PageFilter.java:55)
    root cause
    java.lang.NoSuchMethodException: Action[/roleTypeAttrList] does not contain specified method (check logs)
    org.apache.struts.actions.DispatchAction.dispatchM ethod(DispatchAction.java:264)
    org.apache.struts.actions.DispatchAction.execute(D ispatchAction.java:187)
    org.apache.struts.action.RequestProcessor.processA ctionPerform(RequestProcessor.java:431)
    org.apache.struts.action.RequestProcessor.process( RequestProcessor.java:236)
    org.apache.struts.action.ActionServlet.process(Act ionServlet.java:1196)
    org.apache.struts.action.ActionServlet.doGet(Actio nServlet.java:414)
    javax.servlet.http.HttpServlet.service(HttpServlet .java:689)
    javax.servlet.http.HttpServlet.service(HttpServlet .java:802)
    com.opensymphony.module.sitemesh.filter.PageFilter .parsePage(PageFilter.java:119)
    com.opensymphony.module.sitemesh.filter.PageFilter .doFilter(PageFilter.java:55)
    note The full stack trace of the root cause is available in the Apache Tomcat/5.0.28 logs.

  2. #2
    dkirvan is offline Member
    Join Date
    Oct 2008
    Posts
    4
    Rep Power
    0

    Default

    Resolved.
    I used WikiUrlSessionIdFilter which uses jboss-seam.jar
    I believe the filter was written by Christian Bauer.

    jira.jboss.org/jira/browse/JBSEAM-3018

Similar Threads

  1. jsf command link
    By Srikala in forum JavaServer Faces (JSF)
    Replies: 2
    Last Post: 06-29-2010, 03:38 PM
  2. jsf command link
    By Srikala in forum JavaServer Faces (JSF)
    Replies: 1
    Last Post: 06-25-2009, 09:03 AM
  3. Replies: 5
    Last Post: 10-25-2008, 09:42 AM
  4. Link for 64 bit JDK.
    By aparna in forum New To Java
    Replies: 0
    Last Post: 03-19-2008, 03:15 PM

Posting Permissions

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