Copy your class file into portal’s WAR staging area.
The portal’s WAR staging area is typically PortalServer-base/web-src. If you have a standalone class file, copy the file into PortalServer-base/web-src/WEB-INF/classes directory; if you have a JAR file, copy it into PortalServer-base/web-src/WEB-INF/lib directory.
Redeploy the web container. To redeploy, use the psadmin deploy subcommand.
You can customize the return codes and then redeploy the web container. See Customizing the Return Codes for more information.