You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "Jacques Le Roux (JIRA)" <ji...@apache.org> on 2011/02/17 10:57:24 UTC

[jira] Closed: (OFBIZ-865) Deploy exception when "serviceengine.xml" contains resource-loader

     [ https://issues.apache.org/jira/browse/OFBIZ-865?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jacques Le Roux closed OFBIZ-865.
---------------------------------

    Resolution: Won't Fix
      Assignee: Jacques Le Roux

Sorry but this patch is totally outdated

> Deploy exception when "serviceengine.xml" contains resource-loader
> ------------------------------------------------------------------
>
>                 Key: OFBIZ-865
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-865
>             Project: OFBiz
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: SVN trunk
>            Reporter: Victor Polischuk
>            Assignee: Jacques Le Roux
>            Priority: Minor
>             Fix For: SVN trunk
>
>         Attachments: OFBIZ-865.patch, OFBIZ-865.patch
>
>
> If in "serviceengine.xml" uses internal <resource-loader>, org.ofbiz.base.config.ResourceLoader could not found it, because <resource-loader> does not exists in root element <service-config> (now it has been moved into <service-engine>).
> For example: 
> <service-config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
>         xsi:noNamespaceSchemaLocation="http://www.ofbiz.org/dtds/service-config.xsd">
>     <service-engine name="default">
>            ...
>            <resource-loader name="service-classloader" class="..."/>
>            <global-services loader = "service-classloader" location = "..../services.xml" /> 
>            ...
>     </service-engine>
> </service-config>
> java.lang.IllegalArgumentException: ResourceLoader not found with name [service-classloader] in serviceengine.xml
>         at org.ofbiz.base.config.ResourceLoader.loadResource(ResourceLoader.java:47)
>         at org.ofbiz.base.config.MainResourceHandler.getStream(MainResourceHandler.java:75)
>         at org.ofbiz.base.config.MainResourceHandler.getDocument(MainResourceHandler.java:64)
>         at org.ofbiz.service.ModelServiceReader.getModelServices(ModelServiceReader.java:125)
>         at org.ofbiz.service.ModelServiceReader.<init>(ModelServiceReader.java:100)
>         at org.ofbiz.service.ModelServiceReader.getModelServiceMap(ModelServiceReader.java:81)
>         at org.ofbiz.service.DispatchContext.getGlobalServiceMap(DispatchContext.java:309)
>         at org.ofbiz.service.DispatchContext.loadReaders(DispatchContext.java:79)
>         at org.ofbiz.service.GenericDispatcher.init(GenericDispatcher.java:127)
>         at org.ofbiz.service.GenericDispatcher.<init>(GenericDispatcher.java:115)
>         at org.ofbiz.service.GenericDispatcher.getLocalDispatcher(GenericDispatcher.java:75)
>         at org.ofbiz.service.GenericDispatcher.getLocalDispatcher(GenericDispatcher.java:39)
>         at org.ofbiz.entityext.EntityServiceFactory.getLocalDispatcher(EntityServiceFactory.java:34)
>         at org.ofbiz.entityext.EntityServiceFactory.getDispatchContext(EntityServiceFactory.java:39)
>         at org.ofbiz.entityext.eca.DelegatorEcaHandler.setDelegator(DelegatorEcaHandler.java:53)
>         at org.ofbiz.entity.GenericDelegator.<init>(GenericDelegator.java:234)
>         at org.ofbiz.entity.GenericDelegator.getGenericDelegator(GenericDelegator.java:116)
>         at org.ofbiz.catalina.container.CatalinaContainer.init(CatalinaContainer.java:163)
>         at org.ofbiz.base.container.ContainerLoader.loadContainer(ContainerLoader.java:141)
>         at org.ofbiz.base.container.ContainerLoader.load(ContainerLoader.java:65)
>         at org.ofbiz.base.start.Start.initStartLoaders(Start.java:248)
>         at org.ofbiz.base.start.Start.init(Start.java:87)
>         at org.ofbiz.base.start.Start.main(Start.java:403)
> Solution: change the org.ofbiz.base.util.UtilXml.firstChildElement(Element, String, String, String).

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira