Yes Kyle,
CNCController is in 2 places. we are using MVC model to call the application. All the Controllers are servlets, Handlers are
java objects. What happend is when I import the web project, it has created all the corresponding classes for controllers and handlers under WEB-INF\classes. But that time the application could not able to load all the handlers, so I thought the web application is not visible to the Test server. Then I created one executatble jar file with all controllers and handlers, that I added in the "ws.ext.dirs" of the server. Then it can able to load all the handlers, I hope it is not the proper way. But I don't know why it is failing to load the handlers.
Actually "CNCController" and the "PasswordResetter" are the 2 controllers which are started at the time to starting up the server. I will try to change the load on start up to "1". Actually I am not setting that -1 value for load on start up, if we click on the load on start up check box automatically, it is putting -1.
And also I am giving two XML files for the as the property file to initialize these 2 servlets. In app.xml I have mentioned all the handler which has to be loaded while starting the applicaiton.
For your refernece:
app.xml:
<?xml version="1.0" encoding="UTF-8"?>
<application>
<properties>
<property>
<key>bypassSSO</key>
<value>true</value>
</property>
<property>
<key>ccc.adminId</key>
<value>cccccc</value>
</property>
<property>
<key>SSO.adPass</key>
<value>vvvvvv</value>
</property>
<property>
<key>activityReportXsl</key>
<value>/wasapp/cncapp/classes/activityreport.xsl</value>
</property>
<property>
<key>slaReportXsl</key>
<value>/wasapp/cncapp/classes/slareport.xsl</value>
</property>
<property>
<key>login.url</key>
<value>index.html</value>
</property>
<property>
<key>sla.npv</key>
<value>40</value>
</property>
<property>
<key>sla.pwo</key>
<value>21</value>
</property>
<property>
<key>sla.pvw</key>
<value>21</value>
</property>
<property>
<key>logout.url</key>
<value>
https://ccc.com LOCALE=cnc_en_US</value>
</property>
<property>
<key>pru.rock.url</key>
<value>
http://www.ccc.com</value>
</property>
<property>
<key>gi.home.url</key>
<value>
http://www.ccc.com/gi</value>
</property>
<property>
<key>gi.employees.url</key>
<value>
http://www.ccc.com/giemployee</value>
</property>
<property>
<key>gi.employers.url</key>
<value>
http://www.ccc.com/giemployer</value>
</property>
<property>
<key>gi.producers.url</key>
<value>
http://www.ccc.com/giproducer</value>
</property>
</properties>
<messages>
<message>
<key>CNCERR00002</key>
<value>Session timed out.</value>
</message>
<message>
<key>CNCERR00003</key>
<value>Communication failure: The application could not contact the EJB.<br>
Please call the technical help desk for assistance.</value>
</message>
<message>
<key>CNCERR00004</key>
<value>Could not determine if user is a Case Installer.<br>
Please call the technical help desk for assistance.</value>
</message>
<message>
<key>CNCERR00005</key>
<value>Required parameter [%1] is misssing</value>
</message>
<message>
<key>CNCERR00006</key>
<value>[%1] Parameter is not valid</value>
</message>
<message>
<key>CNCERR00007</key>
<value>Generic SQL Error [%1]</value>
</message>
<message>
<key>CNCERR00008</key>
<value>You do not have permissions set at this time. Please contact your ccc Representative for assistance.</value>
</message>
<message>
<key>CNCERR00010</key>
<value>Error: rollback database transaction.</value>
</message>
<message>
<key>CNCERR00101</key>
<value>Error retrieving document content. Please try again.</value>
</message>
<message>
<key>CNCERR00102</key>
<value>Error uploading document content. Please try again.</value>
</message>
<message>
<key>CNCERR00103</key>
<value>The file selected does not appear to be a PDF.<br>
Please check the file and try again.</value>
</message>
<message>
<key>CNCERR00104</key>
<value>The file selected is either empty or does not exist.<br>
Please check your entry and try again.</value>
</message>
<message>
<key>CNCERR00110</key>
<value>Posted content type isn't multipart/form-data.</value>
</message>
<message>
<key>CNCERR00113</key>
<value>An error (no separation boundary defined) occurred while uploading the file.<br>
Please try uploading the file again.</value>
</message>
<message>
<key>CNCERR00114</key>
<value>An error (no leading boundary defined) occurred while uploading the file.<br>
Please try uploading the file again.</value>
</message>
<message>
<key>CNCERR00121</key>
<value>An error occurred while uploading the file.<br>
Please try again.</value>
</message>
<message>
<key>CNCERR00131</key>
<value>An error occurred while trying to open the file.<br>
Please try again.</value>
</message>
<message>
<key>CNCERR00151</key>
<value>Employee is not found.<br>
Please check your entry and try again.</value>
</message>
<message>
<key>CNCERR00152</key>
<value>Error: Multiple target control numbers.</value>
</message>
<message>
<key>CNCERR00153</key>
<value>The case you are looking for has not yet been estbalished within the system, please verify the control number and try again. If the case still can not be found please contact your ccc Account Representative.
</value>
</message>
<message>
<key>CNCERR00202</key>
<value>The case you are looking for has not yet been established within the system, please verify the control number and try again. If the case still can not be found please contact your ccc Account Representative.
</value>
</message>
<message>
<key>CNCERR00301</key>
<value>The document you selected could not be deleted.<br>
It may have already been deleted by another user.</value>
</message>
<message>
<key>CNCERR00401</key>
<value>The user '%1' was not found in the application database</value>
</message>
<message>
<key>CNCERR00402</key>
<value>The user '%1' is marked as disabled</value>
</message>
<message>
<key>CNCERR00501</key>
<value>The case was not successfully installed.<br>
Please try again.</value>
</message>
<message>
<key>CNCERR00502</key>
<value>The control number of the case you are trying to install already exists.</value>
</message>
<message>
<key>CNCERR00503</key>
<value>The case was not successfully modified.<br>
Please try again.</value>
</message>
<message>
<key>CNCERR00550</key>
<value>The end date is before the start date.</value>
</message>
<message>
<key>CNCERR00601</key>
<value>Error creating new user.</value>
</message>
<message>
<key>CNCERR00602</key>
<value>The user id [%1] already exists.<br>
Please use a different id.</value>
</message>
<message>
<key>CNCERR00603</key>
<value>The user id [%1] already exists in SSO.</value>
</message>
<message>
<key>CNCERR00701</key>
<value>Error: modifying existing user.</value>
</message>
<message>
<key>CNCERR00702</key>
<value>Error: There is more than one permission record for this user.<br>
You are now in a parallel universe.</value>
</message>
<message>
<key>CNCERR00751</key>
<value>The user '%1' was not deleted.<br>
Please try again.</value>
</message>
<message>
<key>CNCERR00761</key>
<value>There was a problem removing the user from the SSO database.<br>
Please try again.</value>
</message>
<message>
<key>CNCERR00800</key>
<value>The user id '%1' was not found in the SSO database</value>
</message>
<message>
<key>CNCERR00801</key>
<value>The SSOAdmin username and/or password failed.</value>
</message>
<message>
<key>CNCERR00802</key>
<value>SSO appears to be down.<br>
Please try back in a few minutes.</value>
</message>
<message>
<key>CNCERR00901</key>
<value>Error: deleting case.</value>
</message>
<message>
<key>CNCERR00903</key>
<value>Error: Can not delete Pru magic case.</value>
</message>
<message>
<key>CNCERR99999</key>
<value>An application error has occurred.<br>
Please call the technical help desk for assistance and give the operator the following information:<br>
[%1].</value>
</message>
</messages>
<handlers>
<handler>
<key>LoginHandler</key>
<value>com.pru.gi.cnc.handlers.LoginHandler</value>
</handler>
<handler>
<key>DownloadContentHandler</key>
<value>com.pru.gi.cnc.handlers.DownloadContentHandler</value>
</handler>
<handler>
<key>UploadContentHandler</key>
<value>com.pru.gi.cnc.handlers.UploadContentHandler</value>
</handler>
<handler>
<key>SwitchCaseHandler</key>
<value>com.pru.gi.cnc.handlers.SwitchCaseHandler</value>
</handler>
<!--<handler>
<key>FolderHandler</key>
<value>com.pru.gi.cnc.handlers.FolderHandler</value>
</handler> -->
<handler>
<key>DeleteContentHandler</key>
<value>com.pru.gi.cnc.handlers.DeleteContentHandler</value>
</handler>
<handler>
<key>ShowUserHandler</key>
<value>com.pru.gi.cnc.handlers.ShowUserHandler</value>
</handler>
<handler>
<key>AcceptAgreementHandler</key>
<value>com.pru.gi.cnc.handlers.AcceptAgreementHandler</value>
</handler>
<handler>
<key>CaseDetailHandler</key>
<value>com.pru.gi.cnc.handlers.CaseDetailHandler</value>
</handler>
<handler>
<key>CaseInstallHandler</key>
<value>com.pru.gi.cnc.handlers.CaseInstallHandler</value>
</handler>
<handler>
<key>SetupUserHandler</key>
<value>com.pru.gi.cnc.handlers.SetupUserHandler</value>
</handler>
<handler>
<key>InstallUserHandler</key>
<value>com.pru.gi.cnc.handlers.InstallUserHandler</value>
</handler>
<handler>
<key>ModifyUserHandler</key>
<value>com.pru.gi.cnc.handlers.ModifyUserHandler</value>
</handler>
<handler>
<key>ResetUserHandler</key>
<value>com.pru.gi.cnc.handlers.ResetUserHandler</value>
</handler>
<handler>
<key>RemoveUserHandler</key>
<value>com.pru.gi.cnc.handlers.RemoveUserHandler</value>
</handler>
<handler>
<key>SSOLoginHandler</key>
<value>com.pru.gi.cnc.handlers.SSOLoginHandler</value>
</handler>
<handler>
<key>RevokeUsersHandler</key>
<value>com.pru.gi.cnc.handlers.RevokeUsersHandler</value>
</handler>
<handler>
<key>ReportHandler</key>
<value>com.pru.gi.cnc.handlers.ReportHandler</value>
</handler>
<handler>
<key>ModCaseHandler</key>
<value>com.pru.gi.cnc.handlers.ModCaseHandler</value>
</handler>
</handlers>
<database>
<pool name="CNC">
<lookupName>jdbc/ccc</lookupName>
<userId>Wcc</userId>
<password>cccc</password>
</pool>
</database>
</application>
I removed that application.jar from the "ws.ext.dirs" of the server and I changed the load on start up to "1", now I am getting NoClassDefFoundError for all the 19 handlers.
Here I have mentioned only one handler's Exception, others are getting the same exception:
[Tid={Thread-1} Ts={Tuesday, February 4, 2003 9:07:59 AM EST} Cli={CERTSWeb}]
java.lang.ClassNotFoundException: com.pru.gi.cnc.handlers.SwitchCaseHandler
at java.net.URLClassLoader.findClass(URLClassLoader.java(Compiled Code))
at java.lang.ClassLoader.loadClass(ClassLoader.java(Compiled Code))
at java.lang.ClassLoader.loadClass(ClassLoader.java(Compiled Code))
at java.lang.Class.forName1(Native Method)
at java.lang.Class.forName(Class.java:142)
at framework.lite.type.HandlerBundle.loadHandler(HandlerBundle.java:63)
at framework.lite.type.HandlerBundle.loadHandlers(HandlerBundle.java:79)
at framework.lite.runtime.Application.postInit(Application.java:505)
at com.pru.gi.cnc.controllers.CNCController.postInit(CNCController.java:778)
at framework.lite.runtime.Controller.init(Controller.java:106)
at com.ibm.servlet.engine.webapp.StrictServletInstance.doInit(ServletManager.java:802)
at com.ibm.servlet.engine.webapp.StrictLifecycleServlet._init(StrictLifecycleServlet.java:141)
at com.ibm.servlet.engine.webapp.PreInitializedServletState.init(StrictLifecycleServlet.java:254)
at com.ibm.servlet.engine.webapp.StrictLifecycleServlet.init(StrictLifecycleServlet.java:107)
at com.ibm.servlet.engine.webapp.ServletInstance.init(ServletManager.java:388)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)
at com.ibm.servlet.engine.webapp.ServletManager.addServlet(ServletManager.java:84)
at com.ibm.servlet.engine.webapp.WebAppServletManager.loadServlet(WebAppServletManager.java:225)
at com.ibm.servlet.engine.webapp.WebAppServletManager.loadAutoLoadServlets(WebAppServletManager.java:357)
at com.ibm.servlet.engine.webapp.WebApp.loadServletManager(WebApp.java:1172)
at com.ibm.servlet.engine.webapp.WebApp.init(WebApp.java:141)
at com.ibm.servlet.engine.srt.WebGroup.loadWebApp(WebGroup.java:235)
at com.ibm.servlet.engine.srt.WebGroup.init(WebGroup.java:144)
at com.ibm.servlet.engine.ServletEngine.addWebApplication(ServletEngine.java:652)
at com.ibm.ws.runtime.WebContainer.install(WebContainer.java:36)
at com.ibm.ws.runtime.Server.startModule(Server.java:617)
at com.ibm.ws.runtime.StandardServer.initializeModules(StandardServer.java:333)
at com.ibm.ws.runtime.StandardServer.initializeRuntime0(StandardServer.java:349)
at com.ibm.ws.runtime.Server.initializeRuntime(Server.java:884)
at com.ibm.ws.runtime.StandardServer.main(StandardServer.java:519)
at java.lang.reflect.Method.invoke(Native Method)
at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:158)
at com.ibm.etools.websphere.tools.runner.api.ServerRunnerV4$1.run(ServerRunnerV4.java:56)
Let me know if you have any idea.
Thank you so much,
Shanmugam.