Question : JspBatchCompiler.sh to precompile jsp's

i was precompilling my jsp's, /usr/local/fisher/WebSphere/AppServer/bin/JspBatchCompiler.sh -war.path /usr/local/fisher/WebSphere/PortalServer/installedApps/sicom.ear/sicom.war/ -compileToDir ~/jith/ -jspCompileClasspath /export/home/admin/lib

And i am putting all my jar files in the /export/home/admin/lib and when i run jspcompiler, it compile few jsp's and then kicks out by saying classnotfound error. I see that jar file exists in /export/home/admin/lib (there are around 150 jar files exists in /export/home/admin/lib  directory i copied all my WebSPhere application server library jar's and application jars to that folder).

Please let me know how to set classpath efficiently, so that compiler will use them.

Thanks in advance for your valuable help

Answer : JspBatchCompiler.sh to precompile jsp's

you can use shared library and it is best practise

Shared library files in WebSphere Application Server consist of a symbolic name, a Java classpath, and a native path for loading Java Native Interface (JNI) libraries.

You can define a shared library at the application level

A separate class loader is used for shared libraries that are associated with an application server.

IBM recommend to use shared libraries and it is easy to manage and troubleshoot the problem.

example check this link

http://www.ibm.com/developerworks/websphere/library/techarticles/0611_totapally/0611_totapally.html
Random Solutions  
 
programming4us programming4us