5 Replies Latest reply on Apr 3, 2005 11:35 AM by starksm64

    Building jboss-4.0/jboss-head from cvs sources is broken

    rhanus

      Hi,

      I don't know if I did something wrong but I cannot build jbossas from cvs sources.
      I followed instructions on wiki page:
      http://www.jboss.org/wiki/Wiki.jsp?page=JBossInstallation
      but the build process failed in varia module due to the missing castor libraries. I tried to checkout both jboss-4.0 and jboss-head with tag JBoss_4_0_1 but the same problem arose.

      When I downloaded castor libs manually and then build succeeded.

      Bye,
      Radim

        • 1. Re: Building jboss-4.0/jboss-head from cvs sources is broken
          starksm64

          You have an inconsistent snapshot then as castor usage is gone from our codebase.

          • 2. Re: Building jboss-4.0/jboss-head from cvs sources is broken
            rhanus

            OK, but how can I get a consistent one ?

            Simply I wanna checkout jbossas 4.0.1 and then build it succesfully :)

            Thanx,
            Radim

            • 3. Re: Building jboss-4.0/jboss-head from cvs sources is broken
              raykrueger

              I also checked out the JBoss_4_0_1_SP1 tag, jboss-4.0
              module.

              The Castor jars were removed for the following Jira entry I assume...
              http://jira.jboss.com/jira/browse/JBAS-1359?page=all

              JBoss_4_0_1_SP1 fails to build because the castor jars are missing, but are still referenced by classes in the varia module.

              The jars may have been removed from CVS, but not from the developer or cruisecontrol machines maybe, so the build still works there.

              I'm doing a fresh "fresh checkout", that takes forever. As soon as it finishes and the build fails, I'll post the log.

              • 4. Re: Building jboss-4.0/jboss-head from cvs sources is broken
                raykrueger

                Here is what I did....
                cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/jboss co -r JBoss_4_0_1 jboss-4.0
                cd jboss-4.0\build
                build

                Here is the result....

                configure:
                 [echo] groups: default
                 [echo] modules: common,jmx,system,naming,aop,j2ee,transaction,server,deployment,security,messaging,connector,jaxrpc,jboss.net,webservice,remoting,cluster,varia,iiop,management,cache,tomcat,console,compatibility,aspects,media,hibernate
                
                init:
                
                ...
                
                C:\sourceforge\jboss-4.0\varia\src\main\org\jboss\web\loadbalancer\scheduler\AbstractScheduler.java --> ServiceMBeanSupport qualified to org.jboss.web.loadbalancer.scheduler.ServiceMBeanSupport
                C:\sourceforge\jboss-4.0\varia\src\main\org\jboss\jdo\castor\CastorJDOImpl.java --> MBeanServer qualified to org.jboss.jdo.castor.MBeanServer
                C:\sourceforge\jboss-4.0\varia\src\main\org\jboss\jdo\castor\CastorJDOImpl.java --> ObjectName qualified to org.jboss.jdo.castor.ObjectName
                
                compile-xsds:
                 [java] java.lang.NoClassDefFoundError: org/exolab/castor/builder/SourceGenerator
                 [java] Exception in thread "main"
                 [java] Java Result: 1
                 [java] java.lang.NoClassDefFoundError: org/exolab/castor/builder/SourceGenerator
                 [java] Exception in thread "main"
                 [java] Java Result: 1
                
                compile-classes:
                 [mkdir] Created dir: C:\sourceforge\jboss-4.0\varia\output\classes
                 [javac] Compiling 190 source files to C:\sourceforge\jboss-4.0\varia\output\classes
                C:\sourceforge\jboss-4.0\varia\src\main\org\jboss\jdo\castor\CastorJDOImpl.java:69: package org.exolab.castor.jdo does not exist
                import org.exolab.castor.jdo.Database;
                 ^
                C:\sourceforge\jboss-4.0\varia\src\main\org\jboss\jdo\castor\CastorJDOImpl.java:71: package org.exolab.castor.jdo does not exist
                import org.exolab.castor.jdo.DataObjects;
                 ^
                C:\sourceforge\jboss-4.0\varia\src\main\org\jboss\jdo\castor\CastorJDOImpl.java:73: package org.exolab.castor.jdo does not exist
                import org.exolab.castor.jdo.JDO;
                 ^
                C:\sourceforge\jboss-4.0\varia\src\main\org\jboss\jdo\castor\CastorJDOImpl.java:75: package org.exolab.castor.jdo does not exist
                import org.exolab.castor.jdo.DatabaseNotFoundException;
                 ^
                C:\sourceforge\jboss-4.0\varia\src\main\org\jboss\jdo\castor\CastorJDOImpl.java:77: package org.exolab.castor.jdo does not exist
                import org.exolab.castor.jdo.PersistenceException;
                 ^
                C:\sourceforge\jboss-4.0\varia\src\main\org\jboss\jdo\castor\CastorJDOImpl.java:79: package org.exolab.castor.persist.spi does not exist
                import org.exolab.castor.persist.spi.LogInterceptor;
                 ^
                C:\sourceforge\jboss-4.0\varia\src\main\org\jboss\jdo\castor\CastorJDOImpl.java:81: package org.exolab.castor.xml does not exist
                import org.exolab.castor.xml.Unmarshaller;
                 ^
                C:\sourceforge\jboss-4.0\varia\src\main\org\jboss\jdo\castor\CastorJDOImpl.java:117: cannot resolve symbol
                symbol : class DataObjects
                location: class org.jboss.jdo.castor.CastorJDOImpl
                 implements DataObjects, ObjectFactory, Referenceable, Serializable,
                 ^
                C:\sourceforge\jboss-4.0\varia\src\main\org\jboss\jdo\castor\CastorJDOImpl.java:119: cannot resolve symbol
                symbol : class LogInterceptor
                location: class org.jboss.jdo.castor.CastorJDOImpl
                 CastorJDOImplMBean, MBeanRegistration, LogInterceptor
                 ^
                C:\sourceforge\jboss-4.0\varia\src\main\org\jboss\jdo\castor\CastorJDOImpl.java:137: cannot resolve symbol
                symbol : class JDO
                location: class org.jboss.jdo.castor.CastorJDOImpl
                 private JDO _jdo = new JDO();
                 ^
                C:\sourceforge\jboss-4.0\varia\src\main\org\jboss\jdo\castor\CastorJDOImpl.java:645: cannot resolve symbol
                symbol : class Database
                location: class org.jboss.jdo.castor.CastorJDOImpl
                 public Database getDatabase()
                 ^
                C:\sourceforge\jboss-4.0\varia\src\main\org\jboss\jdo\castor\CastorJDOImpl.java:647: cannot resolve symbol
                symbol : class DatabaseNotFoundException
                location: class org.jboss.jdo.castor.CastorJDOImpl
                 throws DatabaseNotFoundException, PersistenceException
                 ^
                C:\sourceforge\jboss-4.0\varia\src\main\org\jboss\jdo\castor\CastorJDOImpl.java:647: cannot resolve symbol
                symbol : class PersistenceException
                location: class org.jboss.jdo.castor.CastorJDOImpl
                 throws DatabaseNotFoundException, PersistenceException
                 ^
                C:\sourceforge\jboss-4.0\varia\src\main\org\jboss\jmx\adaptor\snmp\agent\TrapEmitter.java:32: package org.jboss.jmx.adaptor.snmp.config.manager does not exist
                import org.jboss.jmx.adaptor.snmp.config.manager.Manager;
                 ^
                C:\sourceforge\jboss-4.0\varia\src\main\org\jboss\jmx\adaptor\snmp\agent\TrapEmitter.java:33: package org.jboss.jmx.adaptor.snmp.config.manager does not exist
                import org.jboss.jmx.adaptor.snmp.config.manager.ManagerList;
                 ^
                C:\sourceforge\jboss-4.0\varia\src\main\org\jboss\jmx\adaptor\snmp\agent\TrapFactorySupport.java:30: package org.jboss.jmx.adaptor.snmp.config.notification does not exist
                import org.jboss.jmx.adaptor.snmp.config.notification.Mapping;
                 ^
                C:\sourceforge\jboss-4.0\varia\src\main\org\jboss\jmx\adaptor\snmp\agent\TrapFactorySupport.java:31: package org.jboss.jmx.adaptor.snmp.config.notification does not exist
                import org.jboss.jmx.adaptor.snmp.config.notification.NotificationMapList;
                 ^
                C:\sourceforge\jboss-4.0\varia\src\main\org\jboss\jmx\adaptor\snmp\agent\TrapFactorySupport.java:32: package org.jboss.jmx.adaptor.snmp.config.notification does not exist
                import org.jboss.jmx.adaptor.snmp.config.notification.VarBind;
                 ^
                C:\sourceforge\jboss-4.0\varia\src\main\org\jboss\jmx\adaptor\snmp\agent\TrapFactorySupport.java:33: package org.jboss.jmx.adaptor.snmp.config.notification does not exist
                import org.jboss.jmx.adaptor.snmp.config.notification.VarBindList;
                 ^
                C:\sourceforge\jboss-4.0\varia\src\main\org\jboss\jmx\adaptor\snmp\agent\TrapFactorySupport.java:95: cannot resolve symbol
                symbol : class NotificationMapList
                location: class org.jboss.jmx.adaptor.snmp.agent.TrapFactorySupport
                 private NotificationMapList notificationMapList = null;
                 ^
                C:\sourceforge\jboss-4.0\varia\src\main\org\jboss\jdo\castor\CastorJDOImpl.java:137: cannot resolve symbol
                symbol : class JDO
                location: class org.jboss.jdo.castor.CastorJDOImpl
                 private JDO _jdo = new JDO();
                 ^
                C:\sourceforge\jboss-4.0\varia\src\main\org\jboss\jdo\castor\CastorJDOImpl.java:221: package org.exolab.castor.jdo.conf does not exist
                 org.exolab.castor.jdo.conf.Database database;
                 ^
                C:\sourceforge\jboss-4.0\varia\src\main\org\jboss\jdo\castor\CastorJDOImpl.java:223: cannot resolve symbol
                symbol : class Unmarshaller
                location: class org.jboss.jdo.castor.CastorJDOImpl
                 Unmarshaller unm;
                 ^
                C:\sourceforge\jboss-4.0\varia\src\main\org\jboss\jdo\castor\CastorJDOImpl.java:271: cannot resolve symbol
                symbol : class Unmarshaller
                location: class org.jboss.jdo.castor.CastorJDOImpl
                 unm = new Unmarshaller(org.exolab.castor.jdo.conf.Database.class);
                 ^
                C:\sourceforge\jboss-4.0\varia\src\main\org\jboss\jdo\castor\CastorJDOImpl.java:271: package org.exolab.castor.jdo.conf does not exist
                 unm = new Unmarshaller(org.exolab.castor.jdo.conf.Database.class);
                 ^
                C:\sourceforge\jboss-4.0\varia\src\main\org\jboss\jdo\castor\CastorJDOImpl.java:273: package org.exolab.castor.jdo.conf does not exist
                 database = (org.exolab.castor.jdo.conf.Database) unm.unmarshal(new InputSource( _dbUrl ));
                 ^
                C:\sourceforge\jboss-4.0\varia\src\main\org\jboss\jmx\adaptor\snmp\agent\TrapEmitter.java:235: cannot resolve symbol
                symbol : class ManagerList
                location: class org.jboss.jmx.adaptor.snmp.agent.TrapEmitter
                 ManagerList managerList = null;
                 ^
                C:\sourceforge\jboss-4.0\varia\src\main\org\jboss\jmx\adaptor\snmp\agent\TrapEmitter.java:238: cannot resolve symbol
                symbol : variable ManagerList
                location: class org.jboss.jmx.adaptor.snmp.agent.TrapEmitter
                 managerList = ManagerList.unmarshal(in);
                 ^
                C:\sourceforge\jboss-4.0\varia\src\main\org\jboss\jmx\adaptor\snmp\agent\TrapEmitter.java:254: cannot resolve symbol
                symbol : class Manager
                location: class org.jboss.jmx.adaptor.snmp.agent.TrapEmitter
                 Manager m = managerList.getManager(i);
                 ^
                C:\sourceforge\jboss-4.0\varia\src\main\org\jboss\jmx\adaptor\snmp\agent\TrapFactorySupport.java:150: cannot resolve symbol
                symbol : variable NotificationMapList
                location: class org.jboss.jmx.adaptor.snmp.agent.TrapFactorySupport
                 this.notificationMapList = NotificationMapList.unmarshal(in);
                 ^
                C:\sourceforge\jboss-4.0\varia\src\main\org\jboss\jmx\adaptor\snmp\agent\TrapFactorySupport.java:267: cannot resolve symbol
                symbol : class Mapping
                location: class org.jboss.jmx.adaptor.snmp.agent.TrapFactorySupport
                 Mapping m = this.notificationMapList.getMapping(index);
                 ^
                C:\sourceforge\jboss-4.0\varia\src\main\org\jboss\jmx\adaptor\snmp\agent\TrapFactorySupport.java:293: cannot resolve symbol
                symbol : class VarBindList
                location: class org.jboss.jmx.adaptor.snmp.agent.TrapFactorySupport
                 VarBindList vbList = m.getVarBindList();
                 ^
                C:\sourceforge\jboss-4.0\varia\src\main\org\jboss\jmx\adaptor\snmp\agent\TrapFactorySupport.java:296: cannot resolve symbol
                symbol : class VarBind
                location: class org.jboss.jmx.adaptor.snmp.agent.TrapFactorySupport
                 VarBind vb = vbList.getVarBind(i);
                 ^
                C:\sourceforge\jboss-4.0\varia\src\main\org\jboss\jmx\adaptor\snmp\agent\TrapFactorySupport.java:338: cannot resolve symbol
                symbol : class Mapping
                location: class org.jboss.jmx.adaptor.snmp.agent.TrapFactorySupport
                 Mapping m = this.notificationMapList.getMapping(index);
                 ^
                C:\sourceforge\jboss-4.0\varia\src\main\org\jboss\jmx\adaptor\snmp\agent\TrapFactorySupport.java:355: cannot resolve symbol
                symbol : class VarBindList
                location: class org.jboss.jmx.adaptor.snmp.agent.TrapFactorySupport
                 VarBindList vbList = m.getVarBindList();
                 ^
                C:\sourceforge\jboss-4.0\varia\src\main\org\jboss\jmx\adaptor\snmp\agent\TrapFactorySupport.java:357: cannot resolve symbol
                symbol : class VarBind
                location: class org.jboss.jmx.adaptor.snmp.agent.TrapFactorySupport
                 VarBind vb=vbList.getVarBind(i);
                 ^
                C:\sourceforge\jboss-4.0\varia\output\gen-src\org\jboss\varia\stats\DataSourceInterceptor.java:724: warning: setUnicodeStream(int,java.io.InputStream,int) in java.sql.PreparedStatement has been deprecated
                 target.setUnicodeStream(parameterIndex, x, length);
                 ^
                36 errors
                1 warning
                
                BUILD FAILED
                
                C:\sourceforge\jboss-4.0\varia\build.xml:273: Compile failed; see the compiler error output for details.
                 at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:938)
                 at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:758)
                 at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
                 at org.apache.tools.ant.Task.perform(Task.java:364)
                 at org.apache.tools.ant.Target.execute(Target.java:341)
                 at org.apache.tools.ant.Target.performTasks(Target.java:369)
                 at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
                 at org.jboss.tools.buildmagic.task.CallTarget.execute(CallTarget.java:141)
                 at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
                 at org.apache.tools.ant.Task.perform(Task.java:364)
                 at org.apache.tools.ant.Target.execute(Target.java:341)
                 at org.apache.tools.ant.Target.performTasks(Target.java:369)
                 at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
                 at org.jboss.tools.buildmagic.task.Ant.execute(Ant.java:261)
                 at org.jboss.tools.buildmagic.task.module.ExecuteModules$1.run(ExecuteModules.java:361)
                 at org.jboss.tools.buildmagic.task.module.ExecuteModules.executeModule(ExecuteModules.java:376)
                 at org.jboss.tools.buildmagic.task.module.ExecuteModules.execute(ExecuteModules.java:241)
                 at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
                 at org.apache.tools.ant.Task.perform(Task.java:364)
                 at org.apache.tools.ant.Target.execute(Target.java:341)
                 at org.apache.tools.ant.Target.performTasks(Target.java:369)
                 at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
                 at org.apache.tools.ant.Project.executeTargets(Project.java:1062)
                 at org.apache.tools.ant.Main.runBuild(Main.java:673)
                 at org.apache.tools.ant.Main.startAnt(Main.java:188)
                 at org.apache.tools.ant.launch.Launcher.run(Launcher.java:196)
                 at org.apache.tools.ant.launch.Launcher.main(Launcher.java:55)
                


                • 5. Re: Building jboss-4.0/jboss-head from cvs sources is broken
                  starksm64

                  Ok, I thought you were building the head of the 4.0 branch, not a specific tag. You should simply be using the source downloads for a tagged release. Its certain to work since that was the source used for the build and its infinitely faster than the slow sourceforge cvs channel.

                  The underlying problem has also been fixed so that if you feel you must build from a tagged cvs checkout you can. That is once the anonymous cvs contents have synched up which could be 24-48 hours.