APAR status
Closed as program error.
Error description
The general recreate scenario is:
1) Create a servlet, MyServlet (Technically, this can be any
application class)
2) Create a session listener, MySessionListener
3) In MySessionListener, place the following code...
static {
Thread.currentThread().getContextClassLoader().loadClass
("MyServlet"); }
4) Deploy the application. You will get a
ClassNotFoundException, without a doubt, when the WebContaine
loads MySessionListener.
Local fix
Search Keywords: classloader
Problem summary
****************************************************************
* USERS AFFECTED: WebSphere Application Server web *
* applications that load classes in a static *
* block. *
****************************************************************
* PROBLEM DESCRIPTION: When loading classes in a static block, *
* a ClassNotFound exception is thrown. *
****************************************************************
* RECOMMENDATION: We do not recommend loading classes in a *
* static block. *
****************************************************************
When loading classes in a war from a static block, a
ClassNotFound exception is thrown because the class loader is
not set correctly.
Problem conclusion
Setting the war class loader before laoding servlets resolves
the problem. This fix is scheduled to be in fixpack 5.0.2.10
and 5.1.1.4
Please refer to the Recommended Updates page for delivery dates:
http://www-1.ibm.com/support/docview.wss?rs=180&context=SSEQTP
&uid=swg27004980
Temporary fix Comments
APAR information |
APAR number |
PQ98035 |
Reported component name |
WAS NETWRK DEPL |
Reported component ID |
5630A3601 |
Reported release |
00S |
Status |
CLOSED PER |
PE |
NoPE |
HIPER |
NoHIPER |
Special Attention |
NoSpecatt |
Submitted date |
2004-12-06 |
Closed date |
2005-02-03 |
Last modified date |
2005-10-14 |
APAR is sysrouted FROM one or more of the following:
APAR is sysrouted TO one or more of the following:
Modules/Macros
Publications Referenced
Applicable component levels |
R003 PSY |
UP |
R00A PSY |
UP |
R00H PSY |
UP |
R00I PSY |
UP |
R00P PSY |
UP |
R00S PSY |
UP |
R00W PSY |
UP |
R103 PSY |
UP |
R10A PSY |
UP |
R10H PSY |
UP |
R10I PSY |
UP |
R10P PSY |
UP |
R10S PSY |
UP |
R10W PSY |
UP |
|