You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "Victor Polischuk (JIRA)" <ji...@apache.org> on 2007/04/02 14:10:32 UTC

[jira] Commented: (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:comment-tabpanel#action_12485993 ] 

Victor Polischuk commented on OFBIZ-865:
----------------------------------------

Also URI http://www.ofbiz.org/dtds/service-config.xsd returns old schema version.

> Deploy exception when "serviceengine.xml" contains resource-loader
> ------------------------------------------------------------------
>
>                 Key: OFBIZ-865
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-865
>             Project: OFBiz (The Open for Business Project)
>          Issue Type: Bug
>    Affects Versions: SVN trunk
>            Reporter: Victor Polischuk
>            Priority: Critical
>         Attachments: 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.
-
You can reply to this email to add a comment to the issue online.