2 Replies Latest reply on Dec 24, 2003 4:22 PM by Medhat Galal

    CVS build error: Nukes 1.0.0 RC1

    Medhat Galal Newbie

      Hi,
      I encountered a build error after checking out the RC1 of nukes. I'm running jboss 3.2.3 with Tomcat 4.1.29 and jdk1.3.1_09 and MySQL 3.23.58. Are there any prerequisites before building? The nukes page mentions only $JBOSS_HOME.

      -----------------------------------------------------------------------------------------------------------------
      [jboss@mgalal build]$ ./build.sh
      build.sh: Executing: /opt/jboss/cvs/nukes/tools/bin/ant -logger org.apache.tools.ant.NoBannerLogger
      Buildfile: build.xml

      _buildmagic:init:
      Trying to override old definition of task property

      configure-project:
      [echo] groups: default
      [echo] modules: common,nukes,adminmessages,bb,faq,jmx,journal,list,mp3player,news,polls,quotes,script,sections,template

      _buildmagic:modules:most:

      ==============================================================
      ==
      == Executing 'most' in module 'common'...
      ==
      ==

      configure-defaults:
      Overriding previous definition of reference to javac.classpath

      generate-parsers:
      [mkdir] Created dir: /opt/jboss/cvs/nukes/common/output/gen/classes/org/jboss/nukes/common/template/model
      [javacc] Java Compiler Compiler Version 2.0 (Parser Generator)
      [javacc] Copyright (c) 1996-2000 Sun Microsystems, Inc.
      [javacc] Copyright (c) 1997-2000 Metamata, Inc.
      [javacc] (type "javacc" with no arguments for help)
      [javacc] Reading from file /opt/jboss/cvs/nukes/common/src/main/org/jboss/nukes/common/template/TemplateAnalyzer.jj . . .
      [javacc] File "TokenMgrError.java" does not exist. Will create one.
      [javacc] File "ParseException.java" does not exist. Will create one.
      [javacc] File "Token.java" does not exist. Will create one.
      [javacc] File "ASCII_CharStream.java" does not exist. Will create one.
      [javacc] Parser generated successfully.

      _default:compile-classes:
      [mkdir] Created dir: /opt/jboss/cvs/nukes/common/output/classes
      [depend] Deleted 0 out of date files in 0 seconds
      [javac] Compiling 20 source files to /opt/jboss/cvs/nukes/common/output/classes

      _default:compile-etc:
      [mkdir] Created dir: /opt/jboss/cvs/nukes/common/output/etc
      [copy] Copying 1 file to /opt/jboss/cvs/nukes/common/output/etc

      _default:compile-resources:
      [mkdir] Created dir: /opt/jboss/cvs/nukes/common/output/resources

      output:
      [mkdir] Created dir: /opt/jboss/cvs/nukes/common/output/lib
      [jar] Building jar: /opt/jboss/cvs/nukes/common/output/lib/nukes-common-lib.jar

      ==
      ==
      == Finished 'most' in module 'common'.
      ==
      ==============================================================


      ==============================================================
      ==
      == Executing 'most' in module 'nukes'...
      ==
      ==

      generate-classes:
      [mkdir] Created dir: /opt/jboss/cvs/nukes/nukes/output/gen/classes
      [execmodules] [INFO] start - -Running
      [execmodules] Generating Local interface for 'org.jboss.nukes.core.ejb.UserEJB'.
      [execmodules] Generating Local interface for 'org.jboss.nukes.core.ejb.GroupEJB'.
      [execmodules] Generating Local interface for 'org.jboss.nukes.core.ejb.FileEJB'.
      [execmodules] Generating Local interface for 'org.jboss.nukes.core.ejb.AbstractUserEJB'.
      [execmodules] Generating Local interface for 'org.jboss.nukes.core.ejb.AbstractGroupEJB'.
      [execmodules] Generating Local interface for 'org.jboss.nukes.core.ejb.BaseEJB'.
      [execmodules] [INFO] start - -Running
      [execmodules] Generating Local Home interface for 'org.jboss.nukes.core.ejb.UserEJB'.
      [execmodules] Generating Local Home interface for 'org.jboss.nukes.core.ejb.GroupEJB'.
      [execmodules] Generating Local Home interface for 'org.jboss.nukes.core.ejb.FileEJB'.
      [execmodules] Generating Local Home interface for 'org.jboss.nukes.core.ejb.AbstractUserEJB'.
      [execmodules] Generating Local Home interface for 'org.jboss.nukes.core.ejb.AbstractGroupEJB'.
      [execmodules] Generating Local Home interface for 'org.jboss.nukes.core.ejb.BaseEJB'.
      [execmodules] [INFO] start - -Running
      [execmodules] Generating EJB deployment descriptor (ejb-jar.xml).
      [execmodules] [INFO] start - -Running
      [execmodules] Generating jboss.xml.
      [execmodules] Generating jbosscmp-jdbc.xml.
      [execmodules] INFO: Some classes refer to other classes that were not found among the sources or on the classpath.
      [execmodules] (Perhaps the referred class doesn't exist? Hasn't been generated yet?)
      [execmodules] The referring classes do not import any fully qualified classes matching these classes.
      [execmodules] However, since no packages are imported, xjavadoc has assumed that the referred classes
      [execmodules] belong to the same package as the referring class. The classes are:
      [execmodules] /opt/jboss/cvs/nukes/nukes/src/main/org/jboss/nukes/core/ejb/FileEJB.java --> FileEJBLocal qualified to org.jboss.nukes.core.ejb.FileEJBLocal

      _default:compile-classes:
      [mkdir] Created dir: /opt/jboss/cvs/nukes/nukes/output/classes
      [depend] Deleted 0 out of date files in 0 seconds
      [javac] Compiling 139 source files to /opt/jboss/cvs/nukes/nukes/output/classes
      [execmodules] error: compiler message file broken: key=compiler.err.sun.io.MalformedInputException arguments=null, null, null, null, null, null, null
      [execmodules] /opt/jboss/cvs/nukes/nukes/src/main/org/jboss/nukes/flash/io/AMFSerializer.java:23: cannot resolve symbol
      [execmodules] symbol : class XmlDocument
      [execmodules] location: package tree
      [execmodules] import org.apache.crimson.tree.XmlDocument;
      [execmodules] ^
      [execmodules] /opt/jboss/cvs/nukes/nukes/src/main/org/jboss/nukes/flash/io/AMFSerializer.java:227: cannot resolve symbol
      [execmodules] symbol : class XmlDocument
      [execmodules] location: class org.jboss.nukes.flash.io.AMFSerializer
      [execmodules] private void writeXML(XmlDocument value) throws IOException
      [execmodules] ^
      ccccccc[execmodules] /opt/jboss/cvs/nukes/nukes/src/main/org/jboss/nukes/html/Page.java:64: warning: isRequestedSessionIdFromUrl() in javax.servlet.http.HttpServletRequest has been deprecated
      c[execmodules] public class Page implements NukesRequest, NukesResponse
      [execmodules] ^
      [execmodules] /opt/jboss/cvs/nukes/nukes/src/main/org/jboss/nukes/html/Page.java:64: warning: getRealPath(java.lang.String) in javax.servlet.ServletRequest has been deprecated
      [execmodules] public class Page implements NukesRequest, NukesResponse
      [execmodules] ^
      [execmodules] /opt/jboss/cvs/nukes/nukes/src/main/org/jboss/nukes/html/Page.java:64: warning: setStatus(int,java.lang.String) in javax.servlet.http.HttpServletResponse has been deprecated
      [execmodules] public class Page implements NukesRequest, NukesResponse
      [execmodules] ^
      [execmodules] /opt/jboss/cvs/nukes/nukes/src/main/org/jboss/nukes/html/Page.java:64: warning: encodeRedirectUrl(java.lang.String) in javax.servlet.http.HttpServletResponse has been deprecated
      [execmodules] public class Page implements NukesRequest, NukesResponse
      [execmodules] ^
      [execmodules] /opt/jboss/cvs/nukes/nukes/src/main/org/jboss/nukes/html/Page.java:64: warning: encodeUrl(java.lang.String) in javax.servlet.http.HttpServletResponse has been deprecated
      [execmodules] public class Page implements NukesRequest, NukesResponse
      [execmodules] ^
      [execmodules] /opt/jboss/cvs/nukes/nukes/src/main/org/jboss/nukes/core/modules/block/BlockModule.java:392: valueOf(java.lang.String) in java.lang.Boolean cannot be applied to (boolean)
      [execmodules] collapsed = Boolean.valueOf(collapsed == null || !collapsed.booleanValue());
      [execmodules] ^
      [execmodules] /opt/jboss/cvs/nukes/nukes/src/main/org/jboss/nukes/core/modules/core/CoreModule.java:715: encode(java.lang.String) in java.net.URLEncoder cannot be applied to (java.lang.String,java.lang.String)
      [execmodules] value = URLEncoder.encode(key, charset);
      [execmodules] ^
      [execmodules] /opt/jboss/cvs/nukes/nukes/src/main/org/jboss/nukes/core/modules/mail/MailModule.java:190: warning: Name(java.lang.String) in org.xbill.DNS.Name has been deprecated
      [execmodules] Name _name = new Name(name); // Name _name = Name.fromString(name); does not work, why ?
      [execmodules] ^
      [execmodules] /opt/jboss/cvs/nukes/nukes/src/main/org/jboss/nukes/flash/FlashHandler.java:92: cannot resolve symbol
      [execmodules] symbol : method getCause ()
      [execmodules] location: class org.jboss.nukes.flash.invoker.ServiceInvocationException
      [execmodules] e.getCause().printStackTrace();
      [execmodules] ^
      [execmodules] /opt/jboss/cvs/nukes/nukes/src/main/org/jboss/nukes/flash/invoker/ServiceInvocationException.java:26: cannot resolve symbol
      [execmodules] symbol : constructor Exception (java.lang.Throwable)
      [execmodules] location: class java.lang.Exception
      [execmodules] super(cause);
      [execmodules] ^
      [execmodules] /opt/jboss/cvs/nukes/nukes/src/main/org/jboss/nukes/flash/invoker/ServiceInvocationException.java:34: cannot resolve symbol
      [execmodules] symbol : constructor Exception (java.lang.Throwable)
      [execmodules] location: class java.lang.Exception
      [execmodules] super(cause);
      [execmodules] ^
      [execmodules] /opt/jboss/cvs/nukes/nukes/src/main/org/jboss/nukes/flash/invoker/ServiceInvocationException.java:43: cannot resolve symbol
      [execmodules] symbol : class StackTraceElement
      [execmodules] location: class org.jboss.nukes.flash.invoker.ServiceInvocationException
      [execmodules] StackTraceElement[] stackTrace = cause.getStackTrace();
      [execmodules] ^
      [execmodules] /opt/jboss/cvs/nukes/nukes/src/main/org/jboss/nukes/flash/invoker/ServiceInvocationException.java:43: cannot resolve symbol
      [execmodules] symbol : method getStackTrace ()
      [execmodules] location: class java.lang.Throwable
      [execmodules] StackTraceElement[] stackTrace = cause.getStackTrace();
      [execmodules] ^
      [execmodules] /opt/jboss/cvs/nukes/nukes/src/main/org/jboss/nukes/flash/invoker/ServiceInvocationException.java:47: cannot resolve symbol
      [execmodules] symbol : class StackTraceElement
      [execmodules] location: class org.jboss.nukes.flash.invoker.ServiceInvocationException
      [execmodules] StackTraceElement element = stackTrace;
      [execmodules] ^
      [execmodules] /opt/jboss/cvs/nukes/nukes/src/main/org/jboss/nukes/flash/io/AMFSerializer.java:133: cannot resolve symbol
      [execmodules] symbol : class XmlDocument
      [execmodules] location: class org.jboss.nukes.flash.io.AMFSerializer
      [execmodules] writeXML((XmlDocument) value);
      [execmodules] ^
      [execmodules] /opt/jboss/cvs/nukes/nukes/src/main/org/jboss/nukes/security/Permission.java:148: initialize(int,int) is inherited from org.jboss.nukes.utils.AbstractPool and hides method in outer class org.jboss.nukes.security.Permission. An explicit 'this' qualifier must be used to select the desired instance.
      [execmodules] initialize(maxSize, initialSize);
      [execmodules] ^
      [execmodules] /opt/jboss/cvs/nukes/nukes/src/main/org/jboss/nukes/servlet/ResourceServlet.java:76: warning: isRequestedSessionIdFromUrl() in javax.servlet.http.HttpServletRequest has been deprecated
      [execmodules] static class ResourceRequestImpl implements ResourceRequest
      [execmodules] ^
      [execmodules] /opt/jboss/cvs/nukes/nukes/src/main/org/jboss/nukes/servlet/ResourceServlet.java:76: warning: getRealPath(java.lang.String) in javax.servlet.ServletRequest has been deprecated
      [execmodules] static class ResourceRequestImpl implements ResourceRequest
      [execmodules] ^
      [execmodules] /opt/jboss/cvs/nukes/nukes/src/main/org/jboss/nukes/servlet/ResourceServlet.java:344: warning: setStatus(int,java.lang.String) in javax.servlet.http.HttpServletResponse has been deprecated
      [execmodules] static class ResourceResponseImpl implements ResourceResponse
      [execmodules] ^
      [execmodules] /opt/jboss/cvs/nukes/nukes/src/main/org/jboss/nukes/servlet/ResourceServlet.java:344: warning: encodeRedirectUrl(java.lang.String) in javax.servlet.http.HttpServletResponse has been deprecated
      [execmodules] static class ResourceResponseImpl implements ResourceResponse
      [execmodules] ^
      [execmodules] /opt/jboss/cvs/nukes/nukes/src/main/org/jboss/nukes/servlet/ResourceServlet.java:344: warning: encodeUrl(java.lang.String) in javax.servlet.http.HttpServletResponse has been deprecated
      [execmodules] static class ResourceResponseImpl implements ResourceResponse
      [execmodules] ^
      [execmodules] /opt/jboss/cvs/nukes/nukes/src/main/org/jboss/nukes/servlet/ServletContextImpl.java:27: warning: log(java.lang.Exception,java.lang.String) in javax.servlet.ServletContext has been deprecated
      [execmodules] public class ServletContextImpl implements ServletContext
      [execmodules] ^
      [execmodules] /opt/jboss/cvs/nukes/nukes/src/main/org/jboss/nukes/servlet/ServletContextImpl.java:27: warning: getServletNames() in javax.servlet.ServletContext has been deprecated
      [execmodules] public class ServletContextImpl implements ServletContext
      [execmodules] ^
      [execmodules] /opt/jboss/cvs/nukes/nukes/src/main/org/jboss/nukes/servlet/ServletContextImpl.java:27: warning: getServlets() in javax.servlet.ServletContext has been deprecated
      [execmodules] public class ServletContextImpl implements ServletContext
      [execmodules] ^
      [execmodules] /opt/jboss/cvs/nukes/nukes/src/main/org/jboss/nukes/servlet/ServletContextImpl.java:27: warning: getServlet(java.lang.String) in javax.servlet.ServletContext has been deprecated
      [execmodules] public class ServletContextImpl implements ServletContext
      [execmodules] ^
      [execmodules] 13 errors
      [execmodules] 15 warnings


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


      I would appreciate any pointers or help with this issue.
      Thanks,
      -M