asimail Posted February 2, 2010 Share Posted February 2, 2010 Hello,I am running Jasperserver 3.7 on Websphere 6. The app is up and running but when you go to any of the folders like root and right click to select "Permisions...", we get the following error: objPermissionToRole.jsp failed to compile Any idea, below is the error: Thanks com.ibm.ws.jsp.JspCoreException: JSPG0049E: /WEB-INF/jsp/objectPermission/objPermissionToRole.jsp failed to compile : JSPG0091E: An error occurred at line: 35 in the file: /WEB-INF/jsp/objectPermission/objPermissionToRole.jspJSPG0093E: Generated servlet error from file: /WEB-INF/jsp/objectPermission/objPermissionToRole.jsp /opt/WebSphere/AppServer/profiles/NodeDev01/temp/NodeDev01/DEV-PM3_1Ca/jasperserver_war/jasperserver.war/WEB-INF/jsp/objectPermission/_objPermissionToRole.java : 169 : The method setAttribute(String, Object) in the type ServletRequest is not applicable for the arguments (String, boolean) at com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionServletWrapper.translateJsp(AbstractJSPExtensionServletWrapper.java:555) at com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionServletWrapper._checkForTranslation(AbstractJSPExtensionServletWrapper.java:428) at com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionServletWrapper.checkForTranslation(AbstractJSPExtensionServletWrapper.java:290) at com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionServletWrapper.handleRequest(AbstractJSPExtensionServletWrapper.java:145) at com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionProcessor.handleRequest(AbstractJSPExtensionProcessor.java:288) at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:321) at org.springframework.web.servlet.view.InternalResourceView.renderMergedOutputModel(InternalResourceView.java:236) at org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:257) at org.springframework.webflow.mvc.servlet.ServletMvcView.doRender(ServletMvcView.java:50) at org.springframework.webflow.mvc.view.AbstractMvcView.render(AbstractMvcView.java:179) at org.springframework.webflow.engine.ViewState.render(ViewState.java:282) at org.springframework.webflow.engine.ViewState.doEnter(ViewState.java:186) at org.springframework.webflow.engine.State.enter(State.java:194) Link to comment Share on other sites More sharing options...
asimail Posted February 4, 2010 Author Share Posted February 4, 2010 Just an update, this error happens with Websphere only. Tomcat and Jboss ran with no issues Link to comment Share on other sites More sharing options...
asimail Posted February 8, 2010 Author Share Posted February 8, 2010 Fixed it myself by going to the code and building the war file. Now I have to look into how to submit the code to be included in the actual build.Code:Old code:========= objPermissionToRole.jsp ============for (Iterator it = roles.iterator(); it.hasNext();) { Role role = (Role) it.next(); if (role.getRoleName().equals("ROLE_SUPERUSER")) { request.setAttribute("isSuperUser", true); }New Code:========= objPermissionToRole.jsp ============for (Iterator it = roles.iterator(); it.hasNext();) { Role role = (Role) it.next(); if (role.getRoleName().equals("ROLE_SUPERUSER")) { //Error in websphere request.setAttribute("isSuperUser", true); request.setAttribute("isSuperUser", new Boolean(true)); } Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now