Hello,
I want to add my custom jars to the classpath of
application server. For this, I am adding the locations of the jars to the
asadmin.bat file which has the command for starting the application
server.
-------------------------------------------------------------------------------------------
"%AS_JAVA%\bin\java"
-Dcom.sun.aas.domainsMgrFactory="com.sun.enterprise.admin.servermgmt.pe.PEDomainsManagerFactory"
-Djava.library.path=%AS_INSTALL%\bin;%AS_ICU_LIB%
-Dcom.sun.aas.defaultLocale=%AS_LOCALE% -Dcom.sun.aas.icuLib=%AS_ICU_LIB%
-Dcom.sun.aas.webServicesLib=%AS_WEBSERVICES_LIB%
-Dcom.sun.aas.javaRoot="%AS_JAVA%" -Dcom.sun.aas.imqBin=%AS_IMQ_BIN%
-Dcom.sun.aas.imqLib=%AS_IMQ_LIB% -Dcom.sun.aas.installRoot=%AS_INSTALL%
-Dcom.sun.aas.configRoot=%AS_CONFIG% -Dcom.sun.aas.perlRoot=%AS_PERL%
-Dcom.sun.aas.domainsRoot=%AS_DEF_DOMAINS_PATH%
-Djava.endorsed.dirs=%AS_INSTALL%\share\lib\endorsed -cp
%AS_INSTALL%\lib\appserv-admin.jar;%AS_INSTALL%\lib\j2ee.jar;%AS_INSTALL%\lib\appserv-ext.jar;%AS_INSTALL%\lib\appserv-rt.jar;D:/MyLocation/temp.jar;
com.sun.enterprise.tools.cli.IasAdminMain %*
-------------------------------------------------------------------------------------------
Basically I am appending
D:/MyLocation/temp.jar after the standard jars like
appserv-rt.jar, j2ee.jar. However this does not seem to be working correctly and
I am getting a "NoClassDefFoundError".
Is there a different class loading
mechanism being utilized by the RI. Or is there some other way to add
custom jars to the classpath.
Sandeep
===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff J2EE-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".