0 Replies Latest reply on Sep 9, 2002 11:03 AM by svante

    Web application ClassLoader issue?

    svante

      Guys,
      My enterprise application, packaged into an ear-file uses a Properties file (server.properties) for various configuration data --- both for EJBs and the web application. The EJBs pick up server.properties via a classpath entry in their respetive manifest files. No probs.

      For the web application, I've copied server.properties into WEB-INF/classes. However, Jetty can't see it

      • .

        As an experiment, I deploy the same war-file separately, i.e. not as part of the ear-file. WEB-INF/classes/server.properties is then picked up by the ClassLoader. Why is that? And more importantly, why is it not picked up when I package my war-file in the above mentioned ear-file?

        The manifest.mf of the EJB jars looks like this:

        Manifest-Version: 1.0
        Created-By: [not shown]
        Class-Path: lib/ lib/core.jar

        The same server.properties file is copied into the lib/ folder and the WEB-INF/classes of the web application.

        It works fine in WebLogic. Ideas, anyone?


        Cheers,
        Svante Hedin, London, UK


      • 15:12:33,165 ERROR [STDERR] ERROR: Could not load server properties file : java.util.MissingResourceException: Can't find bundle for base name server, locale en_GB