You
will most probably run into these issues when you have a custom jar
or an open source jar that you would like to use in you custom WCS
logic, here are some basics of how WCS classloader and possible steps
to solve the classloader issue.
In
general there are two different classloaders that load custom jar
files that you may place under stores.war/web-inf/lib
- The classloader for Stores WAS loads everything under this
directory to classpath.
By
default, a Web module has its own Web application archive (WAR) class
loader to load the contents of the Web module, which are in
the WEB-INF/classes and WEB-INF/lib directories.
This can be used as a technique to quickly deploy your customization to a WC server environment by creating jar of patch that overrides a implementation which was packaged in WebSphereCommerceServerExtensionsLogic.jar and drop it in stores.war/web-inf/lib
This can be used as a technique to quickly deploy your customization to a WC server environment by creating jar of patch that overrides a implementation which was packaged in WebSphereCommerceServerExtensionsLogic.jar and drop it in stores.war/web-inf/lib
you
can also place custom jars under following location, but these would
require registering the modules
installedApps/WC_guest_cell/WC_guest.ear
installedApps/WC_guest_cell/WC_guest.ear/lib
InitializationServlet.war
is OOB WAR file which is used during startup, OOB EJB's are
referenced in META-INF file of this WAR file
If you have the
utiliy jar being reference and used in any of the class files in
these jars you will have to make an entry in META-INF file of
corresponding Jar file.
WebSphereCommerceServerExtensionsData.jar
WebSphereCommerceServerExtensionsLogic.jar
MANIFEST.MF
from Stores.war needs to reference these
jars if they will be placed right under the WC_ear directory.
Sill have a
classloader problem?
Follow
this tech
link http://www-01.ibm.com/support/docview.wss?uid=swg21196187
and enable the
trace components com.ibm.ws.classloader.*=all and work with your
IBM support for diagnose the issue further.
This is very informative. I just recently encountered a problem with the classloader and don't even have the solution to figure it out. Thanks for these I have now the idea to troubleshoot this problem just by having open source jar.
ReplyDelete
ReplyDeletepakistan super league
pakistan super league 3
pakistan super league song
pakistan super league 2018
pakistan super league teams
pakistan super league schedule and squad
pakistan super league Schedual
pakistan super league schedule
pakistan super league live streaming
psl 2018 live streaming
pakistan super league auction live
pakistan super league broadcast
pakistan super league broadcast in india
pakistan super league live cricket score
pakistan super league live in uk
pakistan super league live telecast
psl 2018 live telecast in india
psl 2018 live streaming in india
pakistan super league final
Good artcile, but it would be better if in future you can share more about this subject. Keep posting. webstagram
ReplyDelete