4 Replies Latest reply on Jan 3, 2008 9:47 AM by MAUREL NICOLAS

    Not deploy and not scan some directories at the start of Jbo



      I am beginner on the jboss using and setting.
      I would like to know if it's possible to configure jboss in order to not deploy some directories or some files (example with the extension .html or .doc).

      For example : i have an application deployed under this directory

      but in access ,I have one directory (../jboss/..../deploy/.../access/ docFiles ) where i put some doc files and the number of theses files are more than 10000.

      I would like to know if i can exclude this directory from the scanning of jboss when it starts because jboss start in more than 20 minutes.
      When this directory was empty,it started with only 30 seconds.

      Thanks to all very much for advance,

        • 1. Re: Not deploy and not scan some directories at the start of
          Peter Johnson Master

          Look at the server/xxx/conf/jboss-service.xml file, lats mbean in the file, the FilterInstance attribute and its properties.

          • 2. Re: Not deploy and not scan some directories at the start of
            MAUREL NICOLAS Newbie


            thanks for ur answer.
            I tried to look at jboss-service.xml and i added theses lines :


            <!-- BEGIN OF MY ADDING
            The FilterInstance specifies a URLLister.URLFilter for scanned
            directories. This DeploymentFilter is initialized with the given
            prefixes, suffixes and matches that define which URLs should be

            <!-- Files starting with theses strings are ignored -->
            <!-- Files ending with theses strings are ignored -->
            <!-- Files matching with theses strings are ignored -->

            <!-- NCM : 20/12/2007 Ajout de cette partie pour test , END OF MY ADDING -->

            but when i restarted jboss i had this message on boot.log :

            2007-12-20 12:25:28,723 INFO [org.jboss.deployment.MainDeployer] Deployed package: file:/E:/INTEG/AccessCommerce/CDS/jboss-3.2.3/server/CDS/conf/jboss-service.xml
            2007-12-20 12:25:28,739 ERROR [org.jboss.system.server.Server] Root deployment has missing dependencies; continuing
            Incomplete Deployment listing:
            Packages waiting for a deployer:

            Incompletely deployed packages:

            MBeans waiting for classes:

            MBeans waiting for other MBeans:
            [ObjectName: jboss.deployment:type=DeploymentScanner,flavor=URL
            state: FAILED
            I Depend On: jboss.system:service=MainDeployer

            Depends On Me: org.jboss.deployment.DeploymentException: No Attribute found with name: FilterInstance]
            at org.jboss.deployment.MainDeployer.checkIncompleteDeployments(MainDeployer.java:1135)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:608)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:589)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:324)
            at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
            at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
            at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
            at $Proxy5.deploy(Unknown Source)
            at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:384)
            at org.jboss.system.server.ServerImpl.start(ServerImpl.java:291)
            at org.jboss.Main.boot(Main.java:150)
            at org.jboss.Main$1.run(Main.java:395)
            at java.lang.Thread.run(Thread.java:534)

            did i make a mistake ??


            • 3. Re: Not deploy and not scan some directories at the start of
              Peter Johnson Master

              You never said which version of JBossAS you were using so I assumed the latest version, 4.2.3, and my suggestion was based on that assumption.

              If the FilterInstance attribute does not appear in 3.2.3 (which appears to be the case, based on the error message), then you cannot use this capability.

              Finally, when posting xml text, always bracket it with code tags ([ code ]...[ /code ], without the spaces).

              • 4. Re: Not deploy and not scan some directories at the start of
                MAUREL NICOLAS Newbie

                hi !!

                firstable, i want to wish u a happy new year.

                Do you have another solution for jboss 3.2.2 ??