Dev - Service engine only in one component

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Dev - Service engine only in one component

Oleg Kozyrev Jr.
Hello all,

Is there any way to define service engine only for one component?
The problem is that Java file with service engine implementation wouldn't be in classpath at the moment of framework/service component loading. Also this service engine will be required only by the given component.

Thanks,

Oleg.
 
_______________________________________________
Dev mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/dev
Reply | Threaded
Open this post in threaded view
|

Dev - Strange error

Oleg Kozyrev Jr.
Hello all,

I'm getting this error when including some libraries in my own component:

12635 (main) [            UtilXml.java:242:DEBUG] XML Read 0.023s: /home/ofbiz/ofbiz/applications/marketing/servicedef/services.xml
12642 (main) [ ModelServiceReader.java:244:INFO ] Loaded 41 Service definitions from file:/home/ofbiz/ofbiz/applications/marketing/servicedef/services.xml
12649 (main) [  GenericDispatcher.java:85 :INFO ] [LocalDispatcher] : Created Dispatcher for: entity-default
13304 (main) [            UtilXml.java:242:DEBUG] XML Read 0.013s: file:/home/ookozyrev/ofbiz-config/important/catalina/config/mime-type.xml
14202 (main) [    ContainerLoader.java:83 :INFO ] [Startup] Starting containers...
14230 (main) [  ServiceDispatcher.java:169:INFO ] Registered dispatcher: RMIDispatcher
14249 (main) [  GenericDispatcher.java:85 :INFO ] [LocalDispatcher] : Created Dispatcher for: RMIDispatcher
14415 (main) [  ServiceDispatcher.java:169:INFO ] Registered dispatcher: RMIFopPrintServer
14421 (main) [  GenericDispatcher.java:85 :INFO ] [LocalDispatcher] : Created Dispatcher for: RMIFopPrintServer
14470 (main) [  ServiceDispatcher.java:169:INFO ] Registered dispatcher: JavaMailDispatcher
14474 (main) [  GenericDispatcher.java:85 :INFO ] [LocalDispatcher] : Created Dispatcher for: JavaMailDispatcher
14500 (main) [            UtilXml.java:242:DEBUG] XML Read 0.0070s: /home/ofbiz/ofbiz/framework/common/servicedef/smcas_test.xml
14517 (main) [     ServiceMcaUtil.java:116:INFO ] Loaded 1 Service MCA definitions from file:/home/ofbiz/ofbiz/framework/common/servicedef/smcas_test.xml
14586 (main) [  JavaMailContainer.java:229:INFO ] Update URL - imap//[user]@[host]:-1![pass];null
14587 (main) [  JavaMailContainer.java:177:INFO ] URLName - imap://%5Buser%5D:%5Bpass%5D@[host]
14613 (main) [  JavaMailContainer.java:190:ERROR] Unable to connect to mail store : imap://%5Buser%5D@[host]
14613 (main) [  JavaMailContainer.java:132:WARN ] No JavaMail Store(s) configured; poller disabled.
Exception in thread "main" java.lang.ExceptionInInitializerError
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:3975)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012)
        at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012)
        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
        at org.apache.catalina.startup.Embedded.start(Embedded.java:789)
        at org.ofbiz.catalina.container.CatalinaContainer.start(CatalinaContainer.java:225)
        at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:89)
        at org.ofbiz.base.start.Start.startStartLoaders(Start.java:272)
        at org.ofbiz.base.start.Start.startServer(Start.java:323)
        at org.ofbiz.base.start.Start.start(Start.java:327)
        at org.ofbiz.base.start.Start.main(Start.java:413)
Caused by: java.lang.IllegalArgumentException: xercesImpl,xml-apis,fop,batik,avalon-framework,ant,junit,hsqldb,log4j,rhino-Extension-Name
        at java.util.jar.Attributes$Name.<init>(Unknown Source)
        at java.util.jar.Attributes.getValue(Unknown Source)
        at org.apache.catalina.util.ManifestResource.getRequiredExtensions(ManifestResource.java:199)
        at org.apache.catalina.util.ManifestResource.processManifest(ManifestResource.java:168)
        at org.apache.catalina.util.ManifestResource.<init>(ManifestResource.java:52)
        at org.apache.catalina.util.ExtensionValidator.addSystemResource(ExtensionValidator.java:214)
        at org.apache.catalina.util.ExtensionValidator.<clinit>(ExtensionValidator.java:96)
        ... 12 more


I don't understand what is the problem. Any ideas?

Thanks,

Oleg.

 
_______________________________________________
Dev mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/dev
Reply | Threaded
Open this post in threaded view
|

Re: Dev - Strange error

BJ Freeman
file:/home/ookozyrev/ofbiz-config/important/catalina/config/mime-type.xml
is not part of the normal ofbiz path, to start with.
probably a good Idea to get more understanding of ofbiz workings, before
attempting a new component.

Oleg Kozyrev Jr. sent the following on 4/11/06 12:43 AM:

> Hello all,
>
> I'm getting this error when including some libraries in my own component:
>
> 12635 (main) [            UtilXml.java:242:DEBUG] XML Read 0.023s: /home/ofbiz/ofbiz/applications/marketing/servicedef/services.xml
> 12642 (main) [ ModelServiceReader.java:244:INFO ] Loaded 41 Service definitions from file:/home/ofbiz/ofbiz/applications/marketing/servicedef/services.xml
> 12649 (main) [  GenericDispatcher.java:85 :INFO ] [LocalDispatcher] : Created Dispatcher for: entity-default
> 13304 (main) [            UtilXml.java:242:DEBUG] XML Read 0.013s: file:/home/ookozyrev/ofbiz-config/important/catalina/config/mime-type.xml
> 14202 (main) [    ContainerLoader.java:83 :INFO ] [Startup] Starting containers...
> 14230 (main) [  ServiceDispatcher.java:169:INFO ] Registered dispatcher: RMIDispatcher
> 14249 (main) [  GenericDispatcher.java:85 :INFO ] [LocalDispatcher] : Created Dispatcher for: RMIDispatcher
> 14415 (main) [  ServiceDispatcher.java:169:INFO ] Registered dispatcher: RMIFopPrintServer
> 14421 (main) [  GenericDispatcher.java:85 :INFO ] [LocalDispatcher] : Created Dispatcher for: RMIFopPrintServer
> 14470 (main) [  ServiceDispatcher.java:169:INFO ] Registered dispatcher: JavaMailDispatcher
> 14474 (main) [  GenericDispatcher.java:85 :INFO ] [LocalDispatcher] : Created Dispatcher for: JavaMailDispatcher
> 14500 (main) [            UtilXml.java:242:DEBUG] XML Read 0.0070s: /home/ofbiz/ofbiz/framework/common/servicedef/smcas_test.xml
> 14517 (main) [     ServiceMcaUtil.java:116:INFO ] Loaded 1 Service MCA definitions from file:/home/ofbiz/ofbiz/framework/common/servicedef/smcas_test.xml
> 14586 (main) [  JavaMailContainer.java:229:INFO ] Update URL - imap//[user]@[host]:-1![pass];null
> 14587 (main) [  JavaMailContainer.java:177:INFO ] URLName - imap://%5Buser%5D:%5Bpass%5D@[host]
> 14613 (main) [  JavaMailContainer.java:190:ERROR] Unable to connect to mail store : imap://%5Buser%5D@[host]
> 14613 (main) [  JavaMailContainer.java:132:WARN ] No JavaMail Store(s) configured; poller disabled.
> Exception in thread "main" java.lang.ExceptionInInitializerError
>         at org.apache.catalina.core.StandardContext.start(StandardContext.java:3975)
>         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012)
>         at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
>         at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012)
>         at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
>         at org.apache.catalina.startup.Embedded.start(Embedded.java:789)
>         at org.ofbiz.catalina.container.CatalinaContainer.start(CatalinaContainer.java:225)
>         at org.ofbiz.base.container.ContainerLoader.start(ContainerLoader.java:89)
>         at org.ofbiz.base.start.Start.startStartLoaders(Start.java:272)
>         at org.ofbiz.base.start.Start.startServer(Start.java:323)
>         at org.ofbiz.base.start.Start.start(Start.java:327)
>         at org.ofbiz.base.start.Start.main(Start.java:413)
> Caused by: java.lang.IllegalArgumentException: xercesImpl,xml-apis,fop,batik,avalon-framework,ant,junit,hsqldb,log4j,rhino-Extension-Name
>         at java.util.jar.Attributes$Name.<init>(Unknown Source)
>         at java.util.jar.Attributes.getValue(Unknown Source)
>         at org.apache.catalina.util.ManifestResource.getRequiredExtensions(ManifestResource.java:199)
>         at org.apache.catalina.util.ManifestResource.processManifest(ManifestResource.java:168)
>         at org.apache.catalina.util.ManifestResource.<init>(ManifestResource.java:52)
>         at org.apache.catalina.util.ExtensionValidator.addSystemResource(ExtensionValidator.java:214)
>         at org.apache.catalina.util.ExtensionValidator.<clinit>(ExtensionValidator.java:96)
>         ... 12 more
>
>
> I don't understand what is the problem. Any ideas?
>
> Thanks,
>
> Oleg.
>
>  
> _______________________________________________
> Dev mailing list
> [hidden email]
> http://lists.ofbiz.org/mailman/listinfo/dev
>
 
_______________________________________________
Dev mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/dev