7 Replies Latest reply on Jul 24, 2008 10:38 PM by david bennett

    external directories - serving static content - jboss 4.2.x

    david bennett Newbie

      Hopefully someone has had a similar problem and found a solution. I have seen numerous posts and pages relating to this problem. My specific case.

      currently migrating from jboss 4.0.5 to 4.2.x, started on 4.2.2, now moved to 4.2.3 with jdk6 support.

      I had an external directory setup in 4.0.5 serving image files from

      C:\developmentnewides\ApecsSystem\Resources\webresources

      this was setup in {jbosshome}\deploy\jbossweb-tomcat55.sar\server.xml as



      which is consistent with the solutions found. This works fine on the current release version using 4.0.5

      In 4.2.x on server startup, I get the message "00:02:49,459 WARN [config] Unable to process deployment descriptor for context '/ApecsResources'"

      not too helpful. I tried changing the context docbase to an absolute file path .. same problem.
      I then looked at the server.log for more info and it lists the following when trying to setup the external directory:

      2008-07-24 00:02:49,181 INFO [org.apache.catalina.core.StandardService] Starting service jboss.web
      2008-07-24 00:02:49,183 INFO [org.apache.catalina.core.StandardEngine] Starting Servlet Engine: JBossWeb/2.0.1.GA
      2008-07-24 00:02:49,424 DEBUG [javax.enterprise.resource.webcontainer.jsf.config] ConfigureListener.contextInitialized(/ApecsResources)
      2008-07-24 00:02:49,431 DEBUG [javax.enterprise.resource.webcontainer.jsf.config] JSF1021: [/ApecsResources] Configuration option 'com.sun.faces.displayConfiguration' - DISABLED
      2008-07-24 00:02:49,431 DEBUG [javax.enterprise.resource.webcontainer.jsf.config] JSF1021: [/ApecsResources] Configuration option 'com.sun.faces.validateXml' - DISABLED
      2008-07-24 00:02:49,431 DEBUG [javax.enterprise.resource.webcontainer.jsf.config] JSF1021: [/ApecsResources] Configuration option 'com.sun.faces.verifyObjects' - DISABLED
      2008-07-24 00:02:49,431 DEBUG [javax.enterprise.resource.webcontainer.jsf.config] JSF1021: [/ApecsResources] Configuration option 'com.sun.faces.forceLoadConfiguration' - DISABLED
      2008-07-24 00:02:49,431 DEBUG [javax.enterprise.resource.webcontainer.jsf.config] JSF1021: [/ApecsResources] Configuration option 'com.sun.faces.enableHtmlTagLibValidator' - DISABLED
      2008-07-24 00:02:49,431 DEBUG [javax.enterprise.resource.webcontainer.jsf.config] JSF1021: [/ApecsResources] Configuration option 'com.sun.faces.preferXHTML' - DISABLED
      2008-07-24 00:02:49,431 DEBUG [javax.enterprise.resource.webcontainer.jsf.config] JSF1021: [/ApecsResources] Configuration option 'com.sun.faces.compressViewState' - ENABLED
      2008-07-24 00:02:49,431 DEBUG [javax.enterprise.resource.webcontainer.jsf.config] JSF1021: [/ApecsResources] Configuration option 'com.sun.faces.compressJavaScript' - ENABLED
      2008-07-24 00:02:49,431 DEBUG [javax.enterprise.resource.webcontainer.jsf.config] JSF1021: [/ApecsResources] Configuration option 'com.sun.faces.externalizeJavaScript' - DISABLED
      2008-07-24 00:02:49,431 DEBUG [javax.enterprise.resource.webcontainer.jsf.config] JSF1021: [/ApecsResources] Configuration option 'com.sun.faces.sendPoweredByHeader' - ENABLED
      2008-07-24 00:02:49,431 DEBUG [javax.enterprise.resource.webcontainer.jsf.config] JSF1021: [/ApecsResources] Configuration option 'com.sun.faces.enableJSStyleHiding' - DISABLED
      2008-07-24 00:02:49,431 DEBUG [javax.enterprise.resource.webcontainer.jsf.config] JSF1021: [/ApecsResources] Configuration option 'com.sun.faces.enableScriptsInAttributeValues' - ENABLED
      2008-07-24 00:02:49,431 DEBUG [javax.enterprise.resource.webcontainer.jsf.config] JSF1021: [/ApecsResources] Configuration option 'com.sun.faces.writeStateAtFormEnd' - ENABLED
      2008-07-24 00:02:49,431 DEBUG [javax.enterprise.resource.webcontainer.jsf.config] JSF1021: [/ApecsResources] Configuration option 'com.sun.faces.enableLazyBeanValidation' - ENABLED
      2008-07-24 00:02:49,431 DEBUG [javax.enterprise.resource.webcontainer.jsf.config] JSF1021: [/ApecsResources] Configuration option 'com.sun.faces.enabledLoadBundle11Compatibility' - DISABLED
      2008-07-24 00:02:49,431 DEBUG [javax.enterprise.resource.webcontainer.jsf.config] JSF1021: [/ApecsResources] Configuration option 'com.sun.faces.enableRestoreView11Compatibility' - DISABLED
      2008-07-24 00:02:49,431 DEBUG [javax.enterprise.resource.webcontainer.jsf.config] JSF1021: [/ApecsResources] Configuration option 'com.sun.faces.serializeServerState' - DISABLED
      2008-07-24 00:02:49,431 DEBUG [javax.enterprise.resource.webcontainer.jsf.config] JSF1021: [/ApecsResources] Configuration option 'com.sun.faces.enableViewStateIdRendering' - ENABLED
      2008-07-24 00:02:49,432 DEBUG [javax.enterprise.resource.webcontainer.jsf.config] JSF1021: [/ApecsResources] Configuration option 'com.sun.faces.registerConverterPropertyEditors' - DISABLED
      2008-07-24 00:02:49,432 DEBUG [javax.enterprise.resource.webcontainer.jsf.config] JSF1021: [/ApecsResources] Configuration option 'com.sun.faces.disableUnicodeEscaping' - DISABLED
      2008-07-24 00:02:49,432 DEBUG [javax.enterprise.resource.webcontainer.jsf.config] JSF1021: [/ApecsResources] Configuration option 'com.sun.faces.developmentMode' - DISABLED
      2008-07-24 00:02:49,432 DEBUG [javax.enterprise.resource.webcontainer.jsf.config] JSF1018: [/ApecsResources] Configuration option 'javax.faces.STATE_SAVING_METHOD' set to 'server'
      2008-07-24 00:02:49,432 DEBUG [javax.enterprise.resource.webcontainer.jsf.config] JSF1018: [/ApecsResources] Configuration option 'javax.faces.DEFAULT_SUFFIX' set to '.jsp'
      2008-07-24 00:02:49,432 DEBUG [javax.enterprise.resource.webcontainer.jsf.config] JSF1018: [/ApecsResources] Configuration option 'com.sun.faces.numberOfViewsInSession' set to '15'
      2008-07-24 00:02:49,432 DEBUG [javax.enterprise.resource.webcontainer.jsf.config] JSF1018: [/ApecsResources] Configuration option 'com.sun.faces.numberOfLogicalViews' set to '15'
      2008-07-24 00:02:49,432 DEBUG [javax.enterprise.resource.webcontainer.jsf.config] JSF1018: [/ApecsResources] Configuration option 'com.sun.faces.injectionProvider' set to 'org.jboss.web.jsf.integration.injection.JBossInjectionProvider'
      2008-07-24 00:02:49,432 DEBUG [javax.enterprise.resource.webcontainer.jsf.config] JSF1018: [/ApecsResources] Configuration option 'com.sun.faces.responseBufferSize' set to '1024'
      2008-07-24 00:02:49,432 DEBUG [javax.enterprise.resource.webcontainer.jsf.config] JSF1018: [/ApecsResources] Configuration option 'com.sun.faces.clientStateWriteBufferSize' set to '8192'
      2008-07-24 00:02:49,432 DEBUG [javax.enterprise.resource.webcontainer.jsf.config] JSF1018: [/ApecsResources] Configuration option 'com.sun.faces.expressionFactory' set to 'com.sun.el.ExpressionFactoryImpl'
      2008-07-24 00:02:49,459 WARN [javax.enterprise.resource.webcontainer.jsf.config] Unable to process deployment descriptor for context '/ApecsResources'

      so, i dont know what jsf has to do with external directories, but looks as though it has an issue here, i think.

      I then tried to remove jsf support from jboss from info found on another website. This appeared to remove jsf, however, jboss no longer attempted to setup the external directory and it was not available when i tried to access it via the url

      http://localhost/ApecsResources (yes I am using port 80).

      I have no idea what is causing the problem and would appreciate any help, advise, suggestions, etc.

      thanks,
      dave.