ClassNotFoundException when using search center

Technote (troubleshooting)


Problem

Attempts to use search center on IBM WebSphere Portal 7.0.0.2 results in the error ClassNotFoundException: com.ibm.portal.search.servlets.PortalSearchServlet

Symptom

The search center produces an 'EJPJN0001E: A problem occurred during the search' message


Diagnosing the problem

SystemOut.log noted:

[9/24/12 10:08:54:398 EDT] 00000034 servlet E com.ibm.ws.webcontainer.servlet.ServletWrapper run [Servlet Error]-[class java.lang.ClassNotFoundException: com.ibm.portal.search.servlets.
PortalSearchServlet]: java.lang.ClassNotFoundException: class java.lang.ClassNotFoundException: com.ibm.portal.search.servlets.PortalSearchServlet
at java.beans.Beans.instantiate(Beans.java:194)
at java.beans.Beans.instantiate(Beans.java:75)
at com.ibm.ws.webcontainer.servlet.ServletWrapper$1.run(ServletWrapper.java:1909)
at com.ibm.ws.security.util.AccessController.doPrivileged(AccessController.java:118)

Running a jarscan on the class found that it existed in the wp.search.feed.jar file.

===============================================
Found: com.ibm.portal.search.servlets.PortalSearchServlet
Class: com.ibm.portal.search.servlets.PortalSearchServlet
Package: com.ibm.portal.search.servlets
Library Name: wp.search.feed.jar
Library Path:
/zippy/portal/WebSphere/PortalServer/search/wp.search.servlets/feed/servletEAR/installableApps/wp.search.feed.servletEAR.ear/wp.search.feed.war/WEB-INF/lib/wp.search.feed.jar
===============================================

Confirmed that the jar file exists in this location and the permissions are set correctly.

Next, checked the application that is deployed under the profile found at:

/zippy/portal/WebSphere/wp_profile/config/cells/cellname/applications/Feed_Servlet.ear/deployments/Feed_Servlet

Reviewing the deployment.xml, it noted the binariesURL as:

binariesURL="${WPS_HOME}/search/wp.search.servlets/feed/servletEAR/installableApps/wp.search.feed.servletEAR.ear/Feed_Servlet.ear"

This path did not exist.


Resolving the problem

Set the binariesURL to

binariesURL="${WPS_HOME}/search/wp.search.servlets/feed/servletEAR/installableApps/wp.search.feed.servletEAR.ear"

Restart Portal and access search center after logging into system.



Rate this page:

(0 users)Average rating

Add comments

Document information


More support for:

WebSphere Portal

Software version:

7.0

Operating system(s):

AIX, Linux, Solaris, Windows

Reference #:

1615368

Modified date:

2013-10-10

Translate my page

Machine Translation

Content navigation