3 Replies Latest reply on Oct 5, 2004 11:07 PM by ben.wang

    Building JBossCache from source

    dres1011

      This may not be the right forum but are there instructions for building JBossCache. I checked out all of jboss-head. Is all of that really necessary?

      I am trying to build subcomponents 1 at a time but I don't seem to be able to figure out how to finally get the cache component to compile.

      I'm sure I'm missing something but shouldn't the build xml call the build scripts of the projects the cache depends upon?

        • 1. Re: Building JBossCache from source
          dres1011

           

          
          $ ./build.bat
          Calling ..\tools\bin\ant.bat -logger org.apache.tools.ant.NoBannerLogger
          Buildfile: build.xml
          
          _buildmagic:init:
          Trying to override old definition of task property
          
          configure:
          Overriding previous definition of reference to xdoclet.task.classpath
          
          compile-mbean-sources:
          [jmxdoclet] (XDocletMain.start 47 ) Running <mbeaninterface/>
          [jmxdoclet] INFO: Some classes refer to other classes that were not found among the sources or on the classpath.
          [jmxdoclet] (Perhaps the referred class doesn't exist? Hasn't been generated yet?)
          [jmxdoclet] The referring classes do not import any fully qualified classes matching these classes.
          [jmxdoclet] However, since no packages are imported, xjavadoc has assumed that the referred classes
          [jmxdoclet] belong to the same package as the referring class. The classes are:
          [jmxdoclet] C:\workspace\jboss-head\cache\src\main\org\jboss\cache\TreeCacheView.java --> WindowListener qualified to org.jboss.cache.WindowListener
          [jmxdoclet] C:\workspace\jboss-head\cache\src\main\org\jboss\cache\TreeCacheView.java --> TreeSelectionListener qualified to org.jboss.cache.TreeSelectionLis
          [jmxdoclet] C:\workspace\jboss-head\cache\src\main\org\jboss\cache\TreeCacheView.java --> TableModelListener qualified to org.jboss.cache.TableModelListener
          [jmxdoclet] C:\workspace\jboss-head\cache\src\main\org\jboss\cache\TreeCacheView.java --> MouseAdapter qualified to org.jboss.cache.MouseAdapter
          [jmxdoclet] C:\workspace\jboss-head\cache\src\main\org\jboss\cache\TreeCacheView.java --> AbstractAction qualified to org.jboss.cache.AbstractAction
          [jmxdoclet] C:\workspace\jboss-head\cache\src\main\org\jboss\cache\TreeCacheView.java --> DefaultMutableTreeNode qualified to org.jboss.cache.DefaultMutableT
          [jmxdoclet] C:\workspace\jboss-head\cache\src\main\org\jboss\cache\TreeCacheView.java --> JFrame qualified to org.jboss.cache.JFrame
          [jmxdoclet] C:\workspace\jboss-head\cache\src\main\org\jboss\cache\TreeCacheView2.java --> WindowListener qualified to org.jboss.cache.WindowListener
          [jmxdoclet] C:\workspace\jboss-head\cache\src\main\org\jboss\cache\TreeCacheView2.java --> TreeSelectionListener qualified to org.jboss.cache.TreeSelectionLi
          [jmxdoclet] C:\workspace\jboss-head\cache\src\main\org\jboss\cache\TreeCacheView2.java --> TableModelListener qualified to org.jboss.cache.TableModelListener
          [jmxdoclet] C:\workspace\jboss-head\cache\src\main\org\jboss\cache\TreeCacheView2.java --> MouseAdapter qualified to org.jboss.cache.MouseAdapter
          [jmxdoclet] C:\workspace\jboss-head\cache\src\main\org\jboss\cache\TreeCacheView2.java --> AbstractAction qualified to org.jboss.cache.AbstractAction
          [jmxdoclet] C:\workspace\jboss-head\cache\src\main\org\jboss\cache\TreeCacheView2.java --> DefaultMutableTreeNode qualified to org.jboss.cache.DefaultMutable
          [jmxdoclet] C:\workspace\jboss-head\cache\src\main\org\jboss\cache\TreeCacheView2.java --> JFrame qualified to org.jboss.cache.JFrame
          [jmxdoclet] C:\workspace\jboss-head\cache\src\main\org\jboss\cache\aop\TreeCacheAopView.java --> WindowListener qualified to org.jboss.cache.aop.WindowListen
          [jmxdoclet] C:\workspace\jboss-head\cache\src\main\org\jboss\cache\aop\TreeCacheAopView.java --> TreeCacheListener qualified to org.jboss.cache.aop.TreeCache
          [jmxdoclet] C:\workspace\jboss-head\cache\src\main\org\jboss\cache\aop\TreeCacheAopView.java --> TreeSelectionListener qualified to org.jboss.cache.aop.TreeS
          [jmxdoclet] C:\workspace\jboss-head\cache\src\main\org\jboss\cache\aop\TreeCacheAopView.java --> TableModelListener qualified to org.jboss.cache.aop.TableMod
          [jmxdoclet] C:\workspace\jboss-head\cache\src\main\org\jboss\cache\aop\TreeCacheAopView.java --> MouseAdapter qualified to org.jboss.cache.aop.MouseAdapter
          [jmxdoclet] C:\workspace\jboss-head\cache\src\main\org\jboss\cache\aop\TreeCacheAopView.java --> AbstractAction qualified to org.jboss.cache.aop.AbstractActi
          [jmxdoclet] C:\workspace\jboss-head\cache\src\main\org\jboss\cache\aop\TreeCacheAopView.java --> DefaultMutableTreeNode qualified to org.jboss.cache.aop.Defa
          [jmxdoclet] C:\workspace\jboss-head\cache\src\main\org\jboss\cache\aop\TreeCacheAopView.java --> JFrame qualified to org.jboss.cache.aop.JFrame
          [jmxdoclet] WARNING: Some classes refer to other classes that were not found among the sources or on the classpath.
          [jmxdoclet] (Perhaps the referred class doesn't exist? Hasn't been generated yet?)
          [jmxdoclet] The referring classes do not import any fully qualified classes matching these classes.
          [jmxdoclet] Since at least one package is imported, it is impossible for xjavadoc to figure out
          [jmxdoclet] what package the referred classes belong to. The classes are:
          [jmxdoclet] C:\workspace\jboss-head\cache\src\main\org\jboss\cache\TreeCache.java --> TreeCacheMBean qualified to org.jboss.cache.TreeCacheMBean
          [jmxdoclet] C:\workspace\jboss-head\cache\src\main\org\jboss\cache\TreeCacheView.java --> TreeCacheViewMBean qualified to org.jboss.cache.TreeCacheViewMBean
          [jmxdoclet] C:\workspace\jboss-head\cache\src\main\org\jboss\cache\aop\TreeCacheAop.java --> TreeCacheAopMBean qualified to org.jboss.cache.aop.TreeCacheAopM
          
          compile-classes:
           [javac] Compiling 100 source files to C:\workspace\jboss-head\cache\output\classes
           [javac] C:\workspace\jboss-head\cache\src\main\org\jboss\cache\TreeCache.java:16: package org.jboss.naming does not exist
           [javac] import org.jboss.naming.NonSerializableFactory;
           [javac] ^
           [javac] C:\workspace\jboss-head\cache\src\main\org\jboss\cache\loader\FileCacheLoader.java:7: package org.jboss.invocation does not exist
           [javac] import org.jboss.invocation.MarshalledValueInputStream;
           [javac] ^
           [javac] C:\workspace\jboss-head\cache\src\main\org\jboss\cache\loader\FileCacheLoader.java:8: package org.jboss.invocation does not exist
           [javac] import org.jboss.invocation.MarshalledValueOutputStream;
           [javac] ^
           [javac] C:\workspace\jboss-head\cache\src\main\org\jboss\cache\TreeCache.java:1298: cannot resolve symbol
           [javac] symbol : variable NonSerializableFactory
           [javac] location: class org.jboss.cache.TreeCache
           [javac] NonSerializableFactory.bind(jndi_name, this);
           [javac] ^
           [javac] C:\workspace\jboss-head\cache\src\main\org\jboss\cache\TreeCache.java:1316: cannot resolve symbol
           [javac] symbol : class NonSerializableFactory
           [javac] location: class org.jboss.cache.TreeCache
           [javac] Reference ref=new Reference(this.getClass().getName(), addr, NonSerializableFactory.class.getName(), null);
           [javac] ^
           [javac] C:\workspace\jboss-head\cache\src\main\org\jboss\cache\TreeCache.java:1334: cannot resolve symbol
           [javac] symbol : variable NonSerializableFactory
           [javac] location: class org.jboss.cache.TreeCache
           [javac] NonSerializableFactory.unbind(key);
           [javac] ^
           [javac] C:\workspace\jboss-head\cache\src\main\org\jboss\cache\loader\FileCacheLoader.java:210: cannot resolve symbol
           [javac] symbol : class MarshalledValueOutputStream
           [javac] location: class org.jboss.cache.loader.FileCacheLoader
           [javac] ObjectOutputStream out=new MarshalledValueOutputStream(out_stream);
           [javac] ^
           [javac] C:\workspace\jboss-head\cache\src\main\org\jboss\cache\loader\FileCacheLoader.java:256: cannot resolve symbol
           [javac] symbol : class MarshalledValueInputStream
           [javac] location: class org.jboss.cache.loader.FileCacheLoader
           [javac] MarshalledValueInputStream in=new MarshalledValueInputStream(in_stream);
           [javac] ^
           [javac] C:\workspace\jboss-head\cache\src\main\org\jboss\cache\loader\FileCacheLoader.java:256: cannot resolve symbol
           [javac] symbol : class MarshalledValueInputStream
           [javac] location: class org.jboss.cache.loader.FileCacheLoader
           [javac] MarshalledValueInputStream in=new MarshalledValueInputStream(in_stream);
           [javac] ^
           [javac] 9 errors
          
          BUILD FAILED
          C:\workspace\jboss-head\cache\build.xml:205: Compile failed; see the compiler error output for details.
          


          • 2. Re: Building JBossCache from source
            norbert
            • 3. Re: Building JBossCache from source

              You will need to build the whole jboss-head project since cache depends on other libraries, e.g., jboss-aop, system, etc.

              Simply go to build directory and do a "build.sh", it should build the whole shebang. After that if you want distro, under cache, do "build.sh dist".

              -Ben