12 Replies Latest reply on Mar 2, 2006 10:29 AM by Tim

    Cannot get the embedded ejb source code with CVS

    Martin Schmidt Newbie

      Can anybody help me?

      Since 2 week I try to get the source code of the embedded ejb source from CVS (location cvs.sourceforge.net/cvsroot/jboss) but the connetion gets always resetted.

      I have already have hibernate, hibernate annotations and hibernate entitymanager projects, and the standalone bootstrap code would really help me to find configuration problems and understanding the loading-protocol.

      Is there somewhere a repository with the source-files as zip-files or so?


      Thanks, Martin

        • 1. Re: Cannot get the embedded ejb source code with CVS
          Bill Burke Master

          that's because we are NO LONGER on sourceforge since like 10 months ago:

          http://www.jboss.com/wiki/Wiki.jsp?page=CVSRepository

          sf.net is just way to slow and unreliable to host such a big project

          • 2. Re: Cannot get the embedded ejb source code with CVS
            Martin Schmidt Newbie

            Pardon, I'm doing jboss only since 1 month...

            thanks for the info, Martin

            • 3. Re: Cannot get the embedded ejb source code with CVS
              Bill Burke Master

              let me know if you have any problems! Always happy to have somebody dive into the source.

              • 4. embedded ejb3 - which project(s)
                Martin Schmidt Newbie

                Hi,

                I'm searching for the project(s) containing the embedded ejb bootstrap classes (Ejb3Deployment, EJB3StandaloneDeployment ...)

                I have (between others)
                * hibernate-3.1 - src (works fine with the binary version of ejbedded-ejb)
                * hibernate-entitymanager-3.1beta5
                * hibernate-annotations-3.1beta7
                * jboss-ejb3 (Version 4.0.4 RC1) - src from anoncvs.forge.jboss.com - it does not work with my hibernate 3.1 (compile problems)

                Sorry, it isn't really easy to get all the projects together .... so maybe you can give me one more hint, I am already suffering ...


                Thanks, Martin

                • 5. Re: Cannot get the embedded ejb source code with CVS
                  Martin Schmidt Newbie

                  Ok, Bill - thank you for your proposal. Getting into jboss is really funny - when you have the source-code to find configuration problems and find programming hooks.

                  I have one more problem - related to hibernate-source.

                  On the hibernate WIKI documentation they refer to the cvs.sourceforge.net CVS repository- but it is really impossible to get something out of it (trying it since 2 weeks).

                  Is there also an alternative location for the hibernate stuff?

                  Thank you once more, Martin

                  ------------
                  PS.: Why do the jboss-project-names in the build-path differ to the project-names in the CVS-repository? It makes the assembling pretty hard (common is required, jboss-common is the cvs-name). Is there an assembly plan / project-name mapping? How do developers from JBoss setup an eclipse workspace containing embedded ejb with all the sources?

                  • 6. Re: Cannot get the embedded ejb source code with CVS
                    Bill Burke Master

                    Hibernate is on SourceForge. JBoss's CVS is JBoss Inc. hosted. Sourceforge, as you can see, sucks. Not much we can do about it. We are planning to move Hibernate off of Sourceforge as soon as we can.

                    As for embedded stuff? It is built off of CVS head as it will be a JBoss 5 "thing". Ive been meaning to bundle the source, but I haven't had the cycles yet.

                    • 7. Re: Cannot get the embedded ejb source code with CVS
                      Bill Burke Master

                      HEAD:

                      cvs checkout jboss-head

                      4.0 Branch:

                      cvs checkout -r Branch_4_0 jboss-4.0.x

                      If you checkout CVSROOT and look at the modules file you will see that there are aliases set up.

                      Don't ask me why it is like this. It goes way back in history to JBoss 2.x where we used to have each module built independently.

                      • 8. Re: Cannot get the embedded ejb source code with CVS
                        Bill Burke Master

                        BTW, the WIKI page I referenced has all this information.

                        • 9. Still problems...
                          Martin Schmidt Newbie

                          Hi Bill!

                          I have loaded the Branch_4_0 but have compile problems in the ejb3 project (the one I'm actually interested in):

                          (for example)
                          Ejb3Deployment.initializePersistenceUnits() wants to invoke PersistenceXmlLoader#deploy(persistenceXmlUrl, new HashMap()), but the PersistenceXmlLoader Implementation only defines PersistenceXmlLoader#deploy(persistenceXmlUrl).
                          I use the org.hibernate.ejb.packaging.PersistenceXmlLoader version defined in thirdparty/hibernate/lib/hibernate-entitymanager.jar.

                          I checked out all projects from head by using the mappings defined in CVSRoot.modules. Then I compared/replaced them with the Branch_4_0...
                          But I did not find the thirdparty project in the Branch_4_0, the one which contains the hibernate entitymanager.

                          I'm already thinking of giving up and wait until the embeddable ejb is in the head branch... but then the question will be of how to come to the hibernate source that matches to the ejb3 project (see sourceforge problem)

                          I even thought of taking a flight from munich to boston to make a copy of somebodys workspace :-)

                          The reason why I force this "fetching the embeddable source" project is that we want to add a more generic service layer for fetching an object with a set of associations, modifiying it, validating it and pass it back to the service. For this service I have to find a hook in the deployment where to add my annotation parsing, getting the ejb-mapping information and so on. We have model-interfaces, so we have to annotate our entities with links to the public interfaces (and many more stuff) - the src would make it much easier.



                          Best, Martin

                          • 10. Re: Cannot get the embedded ejb source code with CVS
                            Nic Holbrook Newbie

                            I'm getting errors, too. I would like to build this so I can do some testing of what may be bugs in the current 4.0.3 version. Hopefully, they're fixed and I can move on.

                            Here's the output from my build.

                            Thanks

                            Nic

                            -----------------------------------------------------------------------------------------------------------

                            /work/jboss-4.0/ejb3/src/main/org/jboss/ejb3/entity/ExtendedHibernateSession.java:49: org.jboss.ejb3.entity.ExtendedHibernateSession is not abstract and does not override abstract method update(java.lang.String,java.lang.Object,java.io.Serializable) in org.hibernate.Session
                            public class ExtendedHibernateSession implements Session, ExtendedPersistenceContext, Serializable
                            ^
                            /work/jboss-4.0/ejb3/src/main/org/jboss/ejb3/entity/ExtendedHibernateSession.java:309: delete(java.lang.Object) in org.hibernate.Session cannot be applied to (java.lang.String,java.lang.Object)
                            getHibernateSession().delete(entityName, object);
                            ^
                            /work/jboss-4.0/ejb3/src/main/org/jboss/ejb3/entity/ExtendedHibernateSession.java:454: cannot find symbol
                            symbol : method getTransaction()
                            location: interface org.hibernate.Session
                            return getHibernateSession().getTransaction();
                            ^
                            /work/jboss-4.0/ejb3/src/main/org/jboss/ejb3/entity/InjectedHibernateSession.java:52: org.jboss.ejb3.entity.InjectedHibernateSession is not abstract and does not override abstract method update(java.lang.String,java.lang.Object,java.io.Serializable) in org.hibernate.Session
                            public class InjectedHibernateSession implements Session, Externalizable
                            ^
                            /work/jboss-4.0/ejb3/src/main/org/jboss/ejb3/entity/InjectedHibernateSession.java:316: delete(java.lang.Object) in org.hibernate.Session cannot be applied to (java.lang.String,java.lang.Object)
                            getHibernateSession().delete(entityName, object);
                            ^
                            /work/jboss-4.0/ejb3/src/main/org/jboss/ejb3/entity/InjectedHibernateSession.java:461: cannot find symbol
                            symbol : method getTransaction()
                            location: interface org.hibernate.Session
                            return getHibernateSession().getTransaction();
                            ^
                            /work/jboss-4.0/ejb3/src/main/org/jboss/ejb3/entity/InjectedSessionFactory.java:92: cannot find symbol
                            symbol : method getDefinedFilterNames()
                            location: interface org.hibernate.SessionFactory
                            return getSessionFactory().getDefinedFilterNames();
                            ^
                            /work/jboss-4.0/ejb3/src/main/org/jboss/ejb3/entity/InjectedSessionFactory.java:97: cannot find symbol
                            symbol : method getFilterDefinition(java.lang.String)
                            location: interface org.hibernate.SessionFactory
                            return getSessionFactory().getFilterDefinition(filterName);
                            ^
                            Note: Some input files use unchecked or unsafe operations.
                            Note: Recompile with -Xlint:unchecked for details.
                            8 errors
                            9 warnings

                            BUILD FAILED

                            • 11. Re: Cannot get the embedded ejb source code with CVS
                              Tim Newbie

                              Hi,

                              Have you had any luck building jboss and getting the embedded ejb3 source?

                              I have been having a similar problem in that I need the latest version to get my JUnit tests going.

                              Right now it is an up hill battle!

                              If you have any additional hints it would be good.

                              Thanks

                              Tim

                              • 12. Re: Cannot get the embedded ejb source code with CVS
                                Tim Newbie

                                I am getting the following problem when I try to build from JBoss-Head (as explained in the wiki:

                                compile-rmi:
                                [rmic] RMI Compiling 1 class to /home/tim/testJB/jboss-head/naming/output/classes
                                java.lang.NoClassDefFoundError: com/sun/corba/se/internal/util/Utility