Uploaded image for project: 'Railo'
  1. Railo
  2. RAILO-2966

Mapping to CFC-based resource provider causes continuous ServletException on restart

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 4.2.0.002
    • Fix Version/s: None
    • Environment:

      mac osx 10.9 / tomcat 6.0.27

    • Affects:
      Compatibility/Configuration

      Description

      I created a CFC-based resource provider for Azure Blob storage.
      To install in a web context, I added teh following in railo-web.xml.cfm:

      <resource-provider arguments="use-streams:false" component="AzureBlobResourceProvider" scheme="azure"/>

      When I now start the web context, I can successfully create a mapping to this provider. The resulting xml was:

      <mapping inspect-template="" physical="azure://xxxxAPIKEYxxx@myaccount.blob.core.windows.net/testcontainer" primary="physical" toplevel="true" virtual="/azureblob"/>

      I tested the mapping, all went fine.

      But after restarting Railo (from the admin, or by restarting th servlet container), I get the following error for any call to a cfm/cfc page in the web context:

      Mar 15, 2014 10:13:07 PM org.apache.catalina.core.StandardWrapperValve invoke
      SEVERE: Allocate exception for servlet GlobalCFMLServlet
      javax.servlet.ServletException
      	at railo.commons.io.res.type.cfml.CFMLResourceProvider.getCFC(CFMLResourceProvider.java:224)
      	at railo.commons.io.res.type.cfml.CFMLResourceProvider.callResourceRTE(CFMLResourceProvider.java:127)
      	at railo.commons.io.res.type.cfml.CFMLResourceProvider.getResource(CFMLResourceProvider.java:64)
      	at railo.commons.io.res.ResourcesImpl.getResource(ResourcesImpl.java:60)
      	at railo.runtime.config.ConfigImpl.getResource(ConfigImpl.java:2219)
      	at railo.runtime.config.ConfigWebUtil.getExistingResource(ConfigWebUtil.java:208)
      	at railo.runtime.MappingImpl.<init>(MappingImpl.java:124)
      	at railo.runtime.config.ConfigWebFactory.loadMappings(ConfigWebFactory.java:1492)
      	at railo.runtime.config.ConfigWebFactory.load(ConfigWebFactory.java:341)
      	at railo.runtime.config.ConfigWebFactory.newInstance(ConfigWebFactory.java:247)
      	at railo.runtime.engine.CFMLEngineImpl.loadJSPFactory(CFMLEngineImpl.java:202)
      	at railo.runtime.engine.CFMLEngineImpl.addServletConfig(CFMLEngineImpl.java:159)
      	at railo.loader.engine.CFMLEngineFactory.getInstance(CFMLEngineFactory.java:138)
      	at railo.loader.servlet.CFMLServlet.init(CFMLServlet.java:23)
      	at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1173)
      	at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:809)
      	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:129)
      	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
      	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
      	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
      	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
      	at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190)
      	at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:291)
      	at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:769)
      	at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:698)
      	at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:891)
      	at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690)
      	at java.lang.Thread.run(Thread.java:722)

      The error line CFMLResourceProvider.java:224 is:

      	component=pc.loadComponent(cfcPath);

      where pc==PageContext.
      My first guess would be, there is no pagecontext yet available?

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                micstriit Michael Offner
                Reporter:
                frinky Paul Klinkenberg
              • Votes:
                1 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: