7 Replies Latest reply on Feb 3, 2007 9:01 AM by adamkoprowski

    One kind of stuff and Trinidad

    denis.diggin

      Great product.

      I just posted this to the trinidad components mailing list, I thought it might be of interest here also as I have seen some related posts.

      --
      A problem with ejb3 and the trinidad components (tree and file upload): if I put my managed beans in a war archive everything works ok, however, if I package them in an ejb3 archive (a ejb jar within an ear) the trinidad components do not work. I guess it has to do with the way the classes are loaded?
      --

      Denis

        • 1. Re: One kind of stuff and Trinidad
          gavin.king

          Yep, shared classes need to be in the ear classpath.

          • 2. Re: One kind of stuff and Trinidad
            pmuir

            Can you expand on "do not work"? Exception?

            When you say managed beans do you mean Seam components?

            • 3. Re: One kind of stuff and Trinidad
              denis.diggin

              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.

              • 4. Re: One kind of stuff and Trinidad
                kosl

                Dear all,

                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?
                at org.jboss.deployment.DeploymentInfo.<init>(DeploymentInfo.java:214)
                at org.jboss.deployment.EARDeployer.init(EARDeployer.java:250)


                My project is one ear consisting of war and jar parts.

                Thanks in advance for any suggestions,

                karol

                • 5. Re: One kind of stuff and Trinidad
                  christian.bauer

                  The JAR does not go into /ear/war/WEB-INF/lib but into /ear.

                  • 6. Re: One kind of stuff and Trinidad
                    kosl

                    Well, of course I tried this and it didn't help, still only the tree root is displayed...

                    • 7. Re: One kind of stuff and Trinidad
                      adamkoprowski

                      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.

                      Cheers,
                      Adam