Andrew Nguyen

How to Access Public Tasks using Wildfly 8.2.1 Final

Blog Post created by Andrew Nguyen Employee on Apr 29, 2016

This issue only pertains to using JBoss Wildfly 8.2.1 Final as other versions of Wildfly and Jboss don't see this issue occurring.

 

When accessing public tasks directly on Identity Manager, an error screen will show up like so:

 

Exception during page display:

 

java.lang.NullPointerException

  at java.io.File.(File.java:277)

  at org.apache.jsp.app.imcss.index_jsp._jspService(index_jsp.java:249)

  at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:69)

  at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)

  at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:366)

  at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:326)

  at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:259)

  at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)

  at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:86)

  at io.undertow.servlet.handlers.FilterHandler.handleRequest(FilterHandler.java:82)

  at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:62)

...

 

This occurs when accessing these links:

- http://<hostname>:<port>/iam/im/publictasks/ui7/index.jsp?task.tag=forgottenuserid

- http://<hostname>:<port>/iam/im/publictasks/ui7/index.jsp?task.tag=forgottenpassword

- http://<hostname>:<port>/iam/im/publictasks/ui7/index.jsp?task.tag=selfregistration

 

Solution:

 

Navigate to the folder: <WILDFLY_HOME>\modules\system\layers\base\io\undertow\servlet\main

 

Replace the modules.xml with this:

 

OLD:

<resources>

        <resource-root path="undertow-servlet-1.1.8.Final.jar"/>

    </resources>

 

NEW:

    <resources>

        <resource-root path="undertow-servlet-1.1.0.Final.jar"/>

    </resources>

 

Make sure you replace the undertow-servlet-1.1.8.Final.jar present in the folder with undertow-servlet-1.1.0.Final.jar. This file can be found in older versions of Wildfly. The undertow-servlet-1.1.8.Final.jar is no longer necessay once the undertow-servlet-1.1.0.Final.jar is located in the folder. Delete or save file as desired.

 

Restart Wildfly server for changes to take effect.

Outcomes