4 Replies Latest reply on Jun 14, 2005 9:34 AM by Andrew Oliver

    Problem building M2 from CVS

    Flush Newbie

      Hi, I've got a problem building M2 downloaded from CVS. It doesn't find Hibernate jars. What shall I download and where shall I put it? Is it enough to download the HBN jars and put these under the lib folder?

        • 1. Re: Problem building M2 from CVS
          Michael Barker Apprentice

          AFAIK, M2 does not have any hibernate code.

          What version of JBoss are you building against? What command did you use to check out the source?

          Mike.

          • 2. Re: Problem building M2 from CVS
            Flush Newbie

            I downloaded the jboss-mail as Eclipse project from CVS using the following server:

            anoncvs.forge.jboss.com

            and the following root:

            /cvsroot/jboss

            and then from the head I downloaded jboss-mail.

            I then run the build.bat file and obtain the following error messages:


            Buildfile: build.xml

            Main targets:

            deploy-juniteewar Deploy JUnitEE tests
            juniteewar Web App for junitee
            xdoclet XDoclet for Hibernate
            Default target: main
            D:\OPENSOURCES\eclipse_projects\jboss-mail>build
            Buildfile: build.xml

            prepare:
            [echo] jbhome=D:\OPENSOURCES\jboss-4.0.0

            compile:
            [echo] sourcedir = D:\OPENSOURCES\eclipse_projects\jboss-mail/src
            [echo] sourcejavadir = D:\OPENSOURCES\eclipse_projects\jboss-mail/src/java
            [javac] Compiling 251 source files to D:\OPENSOURCES\eclipse_projects\jboss-mail\build\classes
            [javac] D:\OPENSOURCES\eclipse_projects\jboss-mail\src\java\org\jboss\mail\msgstore\hn\HnMessageStore.java:17:
            package net.sf.hibernate does not exist
            [javac] import net.sf.hibernate.Criteria;
            [javac] ^
            [javac] D:\OPENSOURCES\eclipse_projects\jboss-mail\src\java\org\jboss\mail\msgstore\hn\HnMessageStore.java:18:
            package net.sf.hibernate does not exist
            [javac] import net.sf.hibernate.Query;
            [javac] ^
            [javac] D:\OPENSOURCES\eclipse_projects\jboss-mail\src\java\org\jboss\mail\msgstore\hn\HnMessageStore.java:19:
            package net.sf.hibernate does not exist
            [javac] import net.sf.hibernate.Session;
            [javac] ^
            [javac] D:\OPENSOURCES\eclipse_projects\jboss-mail\src\java\org\jboss\mail\msgstore\hn\HnMessageStore.java:20:
            package net.sf.hibernate does not exist
            [javac] import net.sf.hibernate.Transaction;
            [javac] ^
            [javac] D:\OPENSOURCES\eclipse_projects\jboss-mail\src\java\org\jboss\mail\store\paged\PagedStore.java:17: pack
            age net.sf.hibernate does not exist
            [javac] import net.sf.hibernate.Criteria;
            [javac] ^
            [javac] D:\OPENSOURCES\eclipse_projects\jboss-mail\src\java\org\jboss\mail\store\paged\PagedStore.java:18: pack
            age net.sf.hibernate does not exist
            [javac] import net.sf.hibernate.HibernateException;
            [javac] ^
            [javac] D:\OPENSOURCES\eclipse_projects\jboss-mail\src\java\org\jboss\mail\store\paged\PagedStore.java:19: pack
            age net.sf.hibernate does not exist
            [javac] import net.sf.hibernate.Session;
            [javac] ^
            [javac] D:\OPENSOURCES\eclipse_projects\jboss-mail\src\java\org\jboss\mail\store\paged\PagedStore.java:20: pack
            age net.sf.hibernate does not exist
            [javac] import net.sf.hibernate.Transaction;
            [javac] ^
            [javac] D:\OPENSOURCES\eclipse_projects\jboss-mail\src\java\org\jboss\mail\store\paged\PagedStore.java:21: pack
            age net.sf.hibernate.expression does not exist
            [javac] import net.sf.hibernate.expression.Expression;
            [javac] ^
            [javac] D:\OPENSOURCES\eclipse_projects\jboss-mail\src\java\org\jboss\mail\store\paged\PagedStore.java:158: can
            not find symbol
            [javac] symbol : class Session
            [javac] location: class org.jboss.mail.store.paged.PagedStore
            [javac] private Page getPage(Session session, Object id, int pageNo) throws HibernateException, StoreExcepti
            on
            [javac] ^
            [javac] D:\OPENSOURCES\eclipse_projects\jboss-mail\src\java\org\jboss\mail\store\paged\PagedStore.java:158: can
            not find symbol
            [javac] symbol : class HibernateException
            [javac] location: class org.jboss.mail.store.paged.PagedStore
            [javac] private Page getPage(Session session, Object id, int pageNo) throws HibernateException, StoreExcepti
            on
            [javac] ^
            [javac] D:\OPENSOURCES\eclipse_projects\jboss-mail\src\java\org\jboss\mail\util\HibernateUtil.java:13: package
            net.sf.hibernate does not exist
            [javac] import net.sf.hibernate.HibernateException;
            [javac] ^
            [javac] D:\OPENSOURCES\eclipse_projects\jboss-mail\src\java\org\jboss\mail\util\HibernateUtil.java:14: package
            net.sf.hibernate does not exist
            [javac] import net.sf.hibernate.Session;
            [javac] ^
            [javac] D:\OPENSOURCES\eclipse_projects\jboss-mail\src\java\org\jboss\mail\util\HibernateUtil.java:15: package
            net.sf.hibernate does not exist
            [javac] import net.sf.hibernate.SessionFactory;
            [javac] ^
            [javac] D:\OPENSOURCES\eclipse_projects\jboss-mail\src\java\org\jboss\mail\util\HibernateUtil.java:16: package
            net.sf.hibernate does not exist
            [javac] import net.sf.hibernate.Transaction;
            [javac] ^
            [javac] D:\OPENSOURCES\eclipse_projects\jboss-mail\src\java\org\jboss\mail\util\HibernateUtil.java:51: cannot f
            ind symbol
            [javac] symbol : class Session
            [javac] location: class org.jboss.mail.util.HibernateUtil
            [javac] public static Session getSession() throws NamingException,
            [javac] ^
            [javac] D:\OPENSOURCES\eclipse_projects\jboss-mail\src\java\org\jboss\mail\util\HibernateUtil.java:52: cannot f
            ind symbol
            [javac] symbol : class HibernateException
            [javac] location: class org.jboss.mail.util.HibernateUtil
            [javac] HibernateException {
            [javac] ^
            [javac] D:\OPENSOURCES\eclipse_projects\jboss-mail\src\java\org\jboss\mail\util\HibernateUtil.java:58: cannot f
            ind symbol
            [javac] symbol : class Session
            [javac] location: class org.jboss.mail.util.HibernateUtil
            [javac] public static Transaction getTransaction(Session session, String name) throws HibernateException
            [javac] ^
            [javac] D:\OPENSOURCES\eclipse_projects\jboss-mail\src\java\org\jboss\mail\util\HibernateUtil.java:58: cannot f
            ind symbol
            [javac] symbol : class Transaction
            [javac] location: class org.jboss.mail.util.HibernateUtil
            [javac] public static Transaction getTransaction(Session session, String name) throws HibernateException
            [javac] ^
            [javac] D:\OPENSOURCES\eclipse_projects\jboss-mail\src\java\org\jboss\mail\util\HibernateUtil.java:58: cannot f
            ind symbol
            [javac] symbol : class HibernateException
            [javac] location: class org.jboss.mail.util.HibernateUtil
            [javac] public static Transaction getTransaction(Session session, String name) throws HibernateException
            [javac] ^
            [javac] D:\OPENSOURCES\eclipse_projects\jboss-mail\src\java\org\jboss\mail\util\HibernateUtil.java:71: cannot f
            ind symbol
            [javac] symbol : class Session
            [javac] location: class org.jboss.mail.util.HibernateUtil
            [javac] public static void safeCloseSession(Logger log, Session session) {
            [javac] ^
            [javac] D:\OPENSOURCES\eclipse_projects\jboss-mail\src\java\org\jboss\mail\util\HibernateUtil.java:97: cannot f
            ind symbol
            [javac] symbol : class Transaction
            [javac] location: class org.jboss.mail.util.HibernateUtil
            [javac] public static void safeCommit(Logger log, Transaction tx) {
            [javac] ^
            [javac] D:\OPENSOURCES\eclipse_projects\jboss-mail\src\java\org\jboss\mail\util\HibernateUtil.java:125: cannot
            find symbol
            [javac] symbol : class Transaction
            [javac] location: class org.jboss.mail.util.HibernateUtil
            [javac] public static void safeRollback(Logger log, Transaction tx) {
            [javac] ^
            [javac] D:\OPENSOURCES\eclipse_projects\jboss-mail\src\java\org\jboss\mail\msgstore\hn\HnMessageStore.java:61:
            cannot find symbol
            [javac] symbol : class Session
            [javac] location: class org.jboss.mail.msgstore.hn.HnMessageStore
            [javac] Session session = null;
            [javac] ^
            [javac] D:\OPENSOURCES\eclipse_projects\jboss-mail\src\java\org\jboss\mail\msgstore\hn\HnMessageStore.java:62:
            cannot find symbol
            [javac] symbol : class Transaction
            [javac] location: class org.jboss.mail.msgstore.hn.HnMessageStore
            [javac] Transaction tx = null;
            [javac] ^
            [javac] D:\OPENSOURCES\eclipse_projects\jboss-mail\src\java\org\jboss\mail\msgstore\hn\HnMessageStore.java:68:
            cannot find symbol
            [javac] symbol : class Criteria
            [javac] location: class org.jboss.mail.msgstore.hn.HnMessageStore
            [javac] Criteria crit = session.createCriteria(HnStoredMessage.class);
            [javac] ^
            [javac] D:\OPENSOURCES\eclipse_projects\jboss-mail\src\java\org\jboss\mail\msgstore\hn\HnMessageStore.java:93:
            cannot find symbol
            [javac] symbol : class Session
            [javac] location: class org.jboss.mail.msgstore.hn.HnMessageStore
            [javac] Session session = null;
            [javac] ^
            [javac] D:\OPENSOURCES\eclipse_projects\jboss-mail\src\java\org\jboss\mail\msgstore\hn\HnMessageStore.java:94:
            cannot find symbol
            [javac] symbol : class Transaction
            [javac] location: class org.jboss.mail.msgstore.hn.HnMessageStore
            [javac] Transaction tx = null;
            [javac] ^
            [javac] D:\OPENSOURCES\eclipse_projects\jboss-mail\src\java\org\jboss\mail\msgstore\hn\HnMessageStore.java:100:
            cannot find symbol
            [javac] symbol : class Query
            [javac] location: class org.jboss.mail.msgstore.hn.HnMessageStore
            [javac] Query q = session
            [javac] ^
            [javac] D:\OPENSOURCES\eclipse_projects\jboss-mail\src\java\org\jboss\mail\msgstore\hn\HnMessageStore.java:126:
            cannot find symbol
            [javac] symbol : class Session
            [javac] location: class org.jboss.mail.msgstore.hn.HnMessageStore
            [javac] Session session = null;
            [javac] ^
            [javac] D:\OPENSOURCES\eclipse_projects\jboss-mail\src\java\org\jboss\mail\msgstore\hn\HnMessageStore.java:127:
            cannot find symbol
            [javac] symbol : class Transaction
            [javac] location: class org.jboss.mail.msgstore.hn.HnMessageStore
            [javac] Transaction tx = null;
            [javac] ^
            [javac] D:\OPENSOURCES\eclipse_projects\jboss-mail\src\java\org\jboss\mail\msgstore\hn\HnMessageStore.java:154:
            cannot find symbol
            [javac] symbol : class Session
            [javac] location: class org.jboss.mail.msgstore.hn.HnMessageStore
            [javac] Session session = null;
            [javac] ^
            [javac] D:\OPENSOURCES\eclipse_projects\jboss-mail\src\java\org\jboss\mail\msgstore\hn\HnMessageStore.java:155:
            cannot find symbol
            [javac] symbol : class Transaction
            [javac] location: class org.jboss.mail.msgstore.hn.HnMessageStore
            [javac] Transaction tx = null;
            [javac] ^
            [javac] D:\OPENSOURCES\eclipse_projects\jboss-mail\src\java\org\jboss\mail\msgstore\hn\HnMessageStore.java:191:
            cannot find symbol
            [javac] symbol : class Session
            [javac] location: class org.jboss.mail.msgstore.hn.HnMessageStore
            [javac] Session session = null;
            [javac] ^
            [javac] D:\OPENSOURCES\eclipse_projects\jboss-mail\src\java\org\jboss\mail\msgstore\hn\HnMessageStore.java:192:
            cannot find symbol
            [javac] symbol : class Transaction
            [javac] location: class org.jboss.mail.msgstore.hn.HnMessageStore
            [javac] Transaction tx = null;
            [javac] ^
            [javac] D:\OPENSOURCES\eclipse_projects\jboss-mail\src\java\org\jboss\mail\msgstore\hn\HnMessageStore.java:221:
            cannot find symbol
            [javac] symbol : class Session
            [javac] location: class org.jboss.mail.msgstore.hn.HnMessageStore
            [javac] Session session = null;
            [javac] ^
            [javac] D:\OPENSOURCES\eclipse_projects\jboss-mail\src\java\org\jboss\mail\msgstore\hn\HnMessageStore.java:222:
            cannot find symbol
            [javac] symbol : class Transaction
            [javac] location: class org.jboss.mail.msgstore.hn.HnMessageStore
            [javac] Transaction tx = null;
            [javac] ^
            [javac] D:\OPENSOURCES\eclipse_projects\jboss-mail\src\java\org\jboss\mail\store\paged\PagedStore.java:79: cann
            ot find symbol
            [javac] symbol : class Session
            [javac] location: class org.jboss.mail.store.paged.PagedStore
            [javac] Session session = null;
            [javac] ^
            [javac] D:\OPENSOURCES\eclipse_projects\jboss-mail\src\java\org\jboss\mail\store\paged\PagedStore.java:80: cann
            ot find symbol
            [javac] symbol : class Transaction
            [javac] location: class org.jboss.mail.store.paged.PagedStore
            [javac] Transaction tx = null;
            [javac] ^
            [javac] D:\OPENSOURCES\eclipse_projects\jboss-mail\src\java\org\jboss\mail\store\paged\PagedStore.java:160: can
            not find symbol
            [javac] symbol : class Criteria
            [javac] location: class org.jboss.mail.store.paged.PagedStore
            [javac] Criteria crit = session.createCriteria(Page.class);
            [javac] ^
            [javac] D:\OPENSOURCES\eclipse_projects\jboss-mail\src\java\org\jboss\mail\store\paged\PagedStore.java:161: can
            not find symbol
            [javac] symbol : variable Expression
            [javac] location: class org.jboss.mail.store.paged.PagedStore
            [javac] crit.add(Expression.eq("blobId", id));
            [javac] ^
            [javac] D:\OPENSOURCES\eclipse_projects\jboss-mail\src\java\org\jboss\mail\store\paged\PagedStore.java:162: can
            not find symbol
            [javac] symbol : variable Expression
            [javac] location: class org.jboss.mail.store.paged.PagedStore
            [javac] crit.add(Expression.eq("pageNo", new Integer(pageNo)));
            [javac] ^
            [javac] D:\OPENSOURCES\eclipse_projects\jboss-mail\src\java\org\jboss\mail\store\paged\PagedStore.java:183: can
            not find symbol
            [javac] symbol : class Session
            [javac] location: class org.jboss.mail.store.paged.PagedStore
            [javac] Session session = null;
            [javac] ^
            [javac] D:\OPENSOURCES\eclipse_projects\jboss-mail\src\java\org\jboss\mail\store\paged\PagedStore.java:184: can
            not find symbol
            [javac] symbol : class Transaction
            [javac] location: class org.jboss.mail.store.paged.PagedStore
            [javac] Transaction tx = null;
            [javac] ^
            [javac] D:\OPENSOURCES\eclipse_projects\jboss-mail\src\java\org\jboss\mail\store\paged\PagedStore.java:317: can
            not find symbol
            [javac] symbol : class Session
            [javac] location: class org.jboss.mail.store.paged.PagedStore
            [javac] Session session = null;
            [javac] ^
            [javac] D:\OPENSOURCES\eclipse_projects\jboss-mail\src\java\org\jboss\mail\store\paged\PagedStore.java:318: can
            not find symbol
            [javac] symbol : class Transaction
            [javac] location: class org.jboss.mail.store.paged.PagedStore
            [javac] Transaction tx = null;
            [javac] ^
            [javac] D:\OPENSOURCES\eclipse_projects\jboss-mail\src\java\org\jboss\mail\store\paged\PagedStore.java:408: can
            not find symbol
            [javac] symbol : class Transaction
            [javac] location: class org.jboss.mail.store.paged.PagedStore
            [javac] Transaction tx = null;
            [javac] ^
            [javac] D:\OPENSOURCES\eclipse_projects\jboss-mail\src\java\org\jboss\mail\store\paged\PagedStore.java:409: can
            not find symbol
            [javac] symbol : class Session
            [javac] location: class org.jboss.mail.store.paged.PagedStore
            [javac] Session sess = null;
            [javac] ^
            [javac] D:\OPENSOURCES\eclipse_projects\jboss-mail\src\java\org\jboss\mail\store\paged\PagedStore.java:451: can
            not find symbol
            [javac] symbol : class Session
            [javac] location: class org.jboss.mail.store.paged.PagedStore
            [javac] Session session = null;
            [javac] ^
            [javac] D:\OPENSOURCES\eclipse_projects\jboss-mail\src\java\org\jboss\mail\store\paged\PagedStore.java:452: can
            not find symbol
            [javac] symbol : class Transaction
            [javac] location: class org.jboss.mail.store.paged.PagedStore
            [javac] Transaction tx = null;
            [javac] ^
            [javac] D:\OPENSOURCES\eclipse_projects\jboss-mail\src\java\org\jboss\mail\store\paged\PagedStore.java:509: can
            not find symbol
            [javac] symbol : class Session
            [javac] location: class org.jboss.mail.store.paged.PagedStore
            [javac] Session session = null;
            [javac] ^
            [javac] D:\OPENSOURCES\eclipse_projects\jboss-mail\src\java\org\jboss\mail\store\paged\PagedStore.java:510: can
            not find symbol
            [javac] symbol : class Transaction
            [javac] location: class org.jboss.mail.store.paged.PagedStore
            [javac] Transaction tx = null;
            [javac] ^
            [javac] D:\OPENSOURCES\eclipse_projects\jboss-mail\src\java\org\jboss\mail\util\HibernateUtil.java:54: cannot f
            ind symbol
            [javac] symbol : class SessionFactory
            [javac] location: class org.jboss.mail.util.HibernateUtil
            [javac] SessionFactory fact = (SessionFactory) ctx.lookup(HIBERNATE_SESSION_FACTORY);
            [javac] ^
            [javac] D:\OPENSOURCES\eclipse_projects\jboss-mail\src\java\org\jboss\mail\util\HibernateUtil.java:54: cannot f
            ind symbol
            [javac] symbol : class SessionFactory
            [javac] location: class org.jboss.mail.util.HibernateUtil
            [javac] SessionFactory fact = (SessionFactory) ctx.lookup(HIBERNATE_SESSION_FACTORY);
            [javac] ^
            [javac] D:\OPENSOURCES\eclipse_projects\jboss-mail\src\java\org\jboss\mail\util\HibernateUtil.java:60: cannot f
            ind symbol
            [javac] symbol : class Transaction
            [javac] location: class org.jboss.mail.util.HibernateUtil
            [javac] Transaction t = session.beginTransaction();
            [javac] ^
            [javac] Note: Some input files use unchecked or unsafe operations.
            [javac] Note: Recompile with -Xlint:unchecked for details.
            [javac] 55 errors

            BUILD FAILED
            D:\OPENSOURCES\eclipse_projects\jboss-mail\build.xml:476: Compile failed; see the compiler error output for details
            .

            Total time: 11 seconds
            D:\OPENSOURCES\eclipse_projects\jboss-mail>


            • 3. Re: Problem building M2 from CVS
              Michael Barker Apprentice

              O.K., you checked out the latest. If you want M2 you will need to check out the version tagged JBOSS_MAIL_M2_FINAL.

              Also JBoss 4.0.0 is a bit out of date. To compile the latest from HEAD try with 4.0.2.

              Regards,
              Mike.

              • 4. Re: Problem building M2 from CVS
                Andrew Oliver Master

                If you just want to run then the M2 binary is linked from the left hand side under the little disk icon.. (why we show a 3.5" floppy I do not know)