1 Reply Latest reply on Apr 12, 2006 4:05 AM by jaikiran pai

    Deploying Multiple application in the same server

    Baiju Varugese Newbie

      Hi,

      We have a deployement time classloader issue. We need to deploy to more than on application into the same jboss server one is web application and the other one is an EAR. the deployement structure of the EAR is
      + myapp1.ear
      -META-INF/ -- application.xml and MANIFEST.MF
      - config/ --- We are keeping all application related configuration files
      - lib/ ---We are keeping all my libirary files
      + myapp1.jar
      -- all my classes
      -META-INF/MANIFEST.MF -- in the manifest file i am including the
      classpath for the libiraries(through
      build.xml )




      + myapp1.war
      -- all my wep application files
      META-INF/MANIFEST.MF -- in the manifest file i am including the
      classpath for the libiraries(through
      build.xml )





      If we deploy this application alone it is working fine.
      Our second application is an web application
      the structure of the application is
      + mywebapp.war
      -config/ all my config file
      -- All my jsp files
      -WEB-INF/lib/ -- all my libirary files

      both the application having MyFramework.jar, it having a Controller servlet which is loaded on startup, but at the time of deploying the second application the this servlet is not get loaded, while accessing the second application it pointing to the same configuration file of the first application


      * We developed an MVC framework for our application
      * It uses a singleton class to read the configuration details, the configuration file is readed using the following
      InputStream in = getClass().getResourceAsStream("/config/"+propertyFileName);


      * iset the unified class loaded false in jboss-service.xml

      please help me how to solve this