Hi.
I got such situation:
When I run my application from eclipse everything works fine.
Registry is created, Log4j is initialized and all services working, but
when I run the same application from ANT, I got "There is no service
point for interface XXX".
The only one idea for me is that my "hivemodule.xml" can't be found on
classpath, but I can't
understand why. I tried to copy it into the same directory where my
log4j.properties are but
with the same result. The strangest thing about it is that running from
eclipse everything works fine.
The code that constructs Registry looks like:
<code>
RegistryBuilder registryBuilder= new RegistryBuilder();
ClassLoader classLoader= ClassLoader.getSystemClassLoader();
ClassResolver classResolver= new DefaultClassResolver( classLoader );
ModuleDescriptorProvider moduleDescriptorProvider= new
XmlModuleDescriptorProvider( classResolver, "hivemodule.xml" );
registryBuilder.addModuleDescriptorProvider( moduleDescriptorProvider );
registryBuilder.addDefaultModuleDescriptorProvider();
Locale locale= Locale.getDefault();
registry= registryBuilder.constructRegistry( locale );
</code>
I also was testing is "hivemodule.xml" file accessible from classpath
and yes, it was, so I am out of ideas.
Any help?
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]