Jump to content
Excelsior Forums

avernon

Members
  • Content count

    0
  • Joined

  • Last visited

    Never

Community Reputation

0 Neutral

About avernon

  • Rank
    Newbie
  • Birthday 01/01/01
  1. Platform Windows XP Product Jet Professional Ver 4.1
  2. OS Windows Jet 4.1 Professional Edition
  3. When I build an application (whether it is an NT Service or a plain exe) the system classpath includes the environment variable settings for classpath, eg... Classpath ivr-server.jar;icu4j_3_2.jar;commons-codec-1.3.jar;jdbcappender.jar;log4j-1.2.8.jar;truelicense1_20.jar;truexml1_20.jar;.;;E:\work\ist-tools\lib\postgres\postgresql-8.0-313.jdbc3.jar;E:\work\ivr-code-exe\jar\ivr-sample.jar However, when I package this up for deployment, the classpath in the resulting service or application does not include the environment variable settings for Classpath Classpath ivr-server.jar;icu4j_3_2.jar;commons-codec-1.3.jar;jdbcappender.jar;log4j-1.2.8.jar;truelicense1_20.jar;truexml1_20.jar;C:\IST\AGSvc The "." is logically replaced with the install directory (becuase a service runs from elsewhere). But where did the environment variable classpath settings disappear to?
  4. In mixed compilation mode, I have deliberately dropped the log4j jar from the initial compilation phase to determine the cause of a classpath problem I have been experiencing. This (correctly appreas in the build log)... List of absent classes: ? org/apache/log4j/Logger ? org/apache/log4j/MDC ? com/ibm/icu/util/Calendar ? org/apache/log4j/helpers/FileWatchdog My code has an anonymous inner class with the following code... ? ?final static void setup() { ? ? ? ? FileWatchdog propertyMonitor = new FileWatchdog(SERVER_PROPS_FILENAME) { ? ? ? ? ? ? protected void doOnChange() { ? ? ? ? ? ? ? ? ? ? ? ? ? ? configure(); ? ? ? ? ? ? } ? ? ? ? }; ? ? ? ? propertyMonitor.setDelay(10000); ? ? ? ? propertyMonitor.start(); ? ? } The log therefore contains the following List of classes with absent superclass or superinterface: ? com/istnet/ivr/server/base/AppSetup$1 superclass org/apache/log4j/helpers/FileWatchdog I have placed log4j on the classpath (which I have verified with a System.out.println("Classpath " + System.getProperty("java.class.path")); I was expecting the MCM to resolve the inner class dependency at runtime but I got this error. Exception in thread "main" java.lang.NoClassDefFoundError: com.istnet.ivr.server.base.AppSetup$1 ? ? ? ? at com.istnet.ivr.server.base.AppSetup.setup(AppSetup.java:60) ? ? ? ? at com.istnet.ivr.server.base.Exe.main(Exe.java:22) Maybe superclass dependencies must be resolved at compile time. Can someone please advise.
×