Yep, shared classes need to be in the ear classpath.
Can you expand on "do not work"? Exception?
When you say managed beans do you mean Seam components?
Thanks for the replies. Managed to get it working.
btw. By "do not work" I meant the root of the tree is rendered but the children are not. No exceptions were thrown.
The solution is to put the trinidad api reference in application.xml
<module> <java>trinidad-api-incubator-m1-SNAPSHOT.jar</java> </module>
and put trinidad-impl-incubator-m1-SNAPSHOT.jar file in web-inf/lib
Back to one kind of stuff, excellent.
I'm having the same "does not work" exception. I tried the solution given above but in my case it does not work. I'm getting such an exception:
03:16:17,840 ERROR [MainDeployer] Could not initialise deployment: file:/Applications/jboss-4.0.5.GA/server/default/deploy/youdo.ear/
org.jboss.deployment.DeploymentException: url file:/Applications/jboss/server/default/deploy/projectName.ear/trinidad-api-incubator-m1-SNAPSHOT.jar could not be opened, does it exist?
My project is one ear consisting of war and jar parts.
Thanks in advance for any suggestions,
The JAR does not go into /ear/war/WEB-INF/lib but into /ear.
Well, of course I tried this and it didn't help, still only the tree root is displayed...
Thanks a lot guys!
I finally got it working! The strange thing is that I thought I did exactly this and it didn't help but now I saw that I forgot to remove trinidad-api.jar from WEB-INF/lib and this was causing trouble. Still I find it a bit strange that this is a class loader issue and there were absolutely no exceptions... anyway, happy to get it working.