These have to work. It looks like all 3 the necessary properties are being detected, so you're specifying them in the correct place (system property or IC environment). The only explanation could be that the values aren't just right yet.
So, set the following and see if it works: openejb.deployments.classpath.filter.descriptors=true openejb.deployments.classpath.include="" openejb.deployments.classpath.exclude=".*" What happens when you specify the above. It should then not load ANYTHING. If it works, you can start adjusting it till satisfied. You should remember that it is a regular expression on the URL, so specify like "file:///c:/path/to/classes/.*" Also, if the libs is under your build/ directory, that would explain why it finds it. Lastly, neither of these options take precedence. A list of urls are taken, on which the excludes are run to give a list, then the includes are run to give a list. These 2 lists are then combined and used as the list of classpaths to scan. So you can choose to use both, or only one. If you want to use ONLY includes, then use the exclude from above with your own include. If you want to use ONLY excludes, do the same, but the other way around. Also, if you're still not finding love, send your complete OpenEJB output. Q On Sat, Oct 24, 2009 at 3:47 PM, hypnosat7 <[email protected]> wrote: > > No change ! > I still got the message : > WARN - Searched 78 classpath urls in 6917 milliseconds. Average 88 > milliseconds per url. > WARN - Consider adjusting your openejb.deployments.classpath.exclude and > openejb.deployments.classpath.include settings. Current settings: > exclude='".*"', > include='"G:/data/eclipse/workspace_0/Educa-serveur/build/.*"' > > > Jean-Louis MONTEIRO wrote: >> >> Hi, >> >> try adding this property >> >> openejb.deployments.classpath.filter.descriptors=true >> >> Jean-Louis >> >> >> hypnosat7 wrote: >>> >>> Hello, >>> >>> I'm looking for a way to make my tests runing quickly. When I see the >>> log trace of my test run, there's a lot of things done by OpenEjb >>> (dicovering clientModule, checking for ejbs in the JBoss jars!, ...). How >>> can I say to OpenEJB to look for ejbs only in a path of my choice ? >>> >>> In fact I've tried this: >>> openejb.deployments.classpath.exclude = ".*" >>> openejb.deployments.classpath.include = >>> "G:/data/eclipse/workspace_0/Educa-serveur/build/.*" >>> >>> But when I run my test I'm still seing: >>> WARN - Inspecting classpath for applications: 78 urls. >>> WARN - ADJUST THE EXCLUDE/INCLUDE!!!. Current settings: >>> openejb.deployments.classpath.exclude='".*"', >>> openejb.deployments.classpath.include='"G:/data/eclipse/workspace_0/Educa-serveur/build/.*"' >>> >> >> > > -- > View this message in context: > http://www.nabble.com/Optimizing-the-OpenEjb-modules-discovery-tp26036547p26039164.html > Sent from the OpenEJB User mailing list archive at Nabble.com. > >
