[Design of EJB 3.0] - Plugin issues
by bstansberry@jboss.com
Been seeing some problems with the plugin:
| [bes@besdev trunk]$ java -jar plugin/target/jboss-ejb3-plugin-0.1.0-SNAPSHOT-installer.jar $JBOSS_HOME
| Exception in thread "main" java.lang.Error: Unresolved compilation problem:
| at org.jboss.ejb3.installer.Installer.main(Installer.java:142)
|
Think that came from EJBTHREE-1382 work that added a dependency on ejb3-common 0.1.1 to ejb3-installer.
To get it to work locally I added the following to the ejb3-installer and ejb3-plugin poms:
| <!-- EJB3 Common -->
| <dependency>
| <groupId>org.jboss.ejb3</groupId>
| <artifactId>jboss-ejb3-common</artifactId>
| <version>0.1.1</version>
| </dependency>
|
Had to add to the plugin pom to get the necessary class in the plugin jar.
Don't know if that's the correct fix, but it got my local env working enough that I can run the clustering testsuite.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4155476#4155476
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4155476
17 years, 10 months
[Design the new POJO MicroContainer] - Re: Alternative vfs jar implementation
by mstruk
The first problem you encounter and it's a reaper issue :)
As far as VFS is concerned -DforceNoReaper=true should do the trick here.
Regarding NoClassDefFoundError, this looks to be an issue beyond VFS, I may not totally understand the issue but some ideas - off the bat ...
So the essence of the problem is that when a deployed archive is removed jboss learns about it after the fact, there can be no beforeRemove event where components could be undeployed, and lifecycle events processed while classes are still available. But if required classes have already been loaded then there should be no issue.
For well known deployment modules that are part of wider jbossAS infrastructure we can know in advance what classes are still required after file removal. Deployer could have a preload feature - where it reads some configuration that tells it - 'when you load this class, also load these classes'.
It's a relatively high-maintenance solution (having to determine all the dependencies and keeping them up-to-date), but it might be a reasonable best-of-both-worlds.
For unknown third party components - like user applications - I don't see any other way but to either (1) use jboss-4 style tmp copies as suggested or (2) preload all the classes in the archive - this one could be used for small archives. Or (3) if we can determine in advance that after file removal there will be no need for any additional classes (depending on component type maybe) then we don't have to do anything, but I'm not sure it's possible to reliably predict that.
Now, I have no idea how difficult this would be to implement :)
Cheers,
- marko
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4155446#4155446
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4155446
17 years, 10 months