dev@glassfish.java.net

problem building admin-gui module "unknown argument: -cp"

From: Bobby Bissett <Robert.Bissett_at_Sun.COM>
Date: Fri, 12 Jan 2007 10:44:57 -0500

Hi,

This isn't related to the previous emails about the build being broken,
as it was happening to me earlier and I just got back to this machine.
GF has been building fine for me on a couple machines, but on one
machine it always fails to build with the attached log. Does this look
familiar to anyone? It's a solaris machine running jdk 1.5.0_09, which
is the same jdk running on the win machine where the workspace does build.

I can't tell what it is about this machine that is choking on the -cp
argument, and I also can't tell really where that argument is coming from.

Thanks,
Bobby


     [java] Executing '/kauai/beach/jdk1.5.0_09/jre/bin/java' with arguments:
'-Xmx256M'
'-Dant.home=/kauai/beach/ws/publish/glassfish/lib/ant'
'-classpath'
'/kauai/beach/ws/publish/glassfish/lib/ant/lib/ant-antlr.jar:/kauai/beach/ws/publish/glassfish/lib/ant/lib/ant-apache-bcel.jar:/kauai/beach/ws/publish/glassfish/lib/ant/lib/ant-apache-bsf.jar:/kauai/beach/ws/publish/glassfish/lib/ant/lib/ant-apache-log4j.jar:/kauai/beach/ws/publish/glassfish/lib/ant/lib/ant-apache-oro.jar:/kauai/beach/ws/publish/glassfish/lib/ant/lib/ant-apache-regexp.jar:/kauai/beach/ws/publish/glassfish/lib/ant/lib/ant-apache-resolver.jar:/kauai/beach/ws/publish/glassfish/lib/ant/lib/ant-commons-logging.jar:/kauai/beach/ws/publish/glassfish/lib/ant/lib/ant-commons-net.jar:/kauai/beach/ws/publish/glassfish/lib/ant/lib/ant-icontract.jar:/kauai/beach/ws/publish/glassfish/lib/ant/lib/ant-jai.jar:/kauai/beach/ws/publish/glassfish/lib/ant/lib/ant-javamail.jar:/kauai/beach/ws/publish/glassfish/lib/ant/lib/ant-jdepend.jar:/kauai/beach/ws/publish/glassfish/lib/ant/lib/ant-jmf.jar:/kauai/beach/ws/publish/glassfish/lib/ant/lib/ant-jsch.jar:/kauai/beach/ws/publish/glassfish/lib/ant/lib/ant-junit.jar:/kauai/beach/ws/publish/glassfish/lib/ant/lib/ant-launcher.jar:/kauai/beach/ws/publish/glassfish/lib/ant/lib/ant-netrexx.jar:/kauai/beach/ws/publish/glassfish/lib/ant/lib/ant-nodeps.jar:/kauai/beach/ws/publish/glassfish/lib/ant/lib/ant-starteam.jar:/kauai/beach/ws/publish/glassfish/lib/ant/lib/ant-stylebook.jar:/kauai/beach/ws/publish/glassfish/lib/ant/lib/ant-swing.jar:/kauai/beach/ws/publish/glassfish/lib/ant/lib/ant-trax.jar:/kauai/beach/ws/publish/glassfish/lib/ant/lib/ant-vaj.jar:/kauai/beach/ws/publish/glassfish/lib/ant/lib/ant-weblogic.jar:/kauai/beach/ws/publish/glassfish/lib/ant/lib/ant-xalan1.jar:/kauai/beach/ws/publish/glassfish/lib/ant/lib/ant-xslp.jar:/kauai/beach/ws/publish/glassfish/lib/ant/lib/ant.jar:/kauai/beach/ws/publish/glassfish/lib/ant/lib/xercesImpl.jar:/kauai/beach/ws/publish/glassfish/lib/ant/lib/xml-apis.jar:/kauai/beach/jdk1.5.0_09/lib/tools.jar'
'org.apache.tools.ant.Main'
'-f'
'/kauai/beach/ws/glassfish/admin-gui/build.xml'
'-Dglassfish.maven=/kauai/beach/ws/glassfish/bootstrap'
'-Dglassfish.home=/kauai/beach/ws/publish/glassfish'
'all'
'-Dbuild_id=local'
'-Dmaven.proxy.host=webcache.east.sun.com'
'-Dmaven.proxy.port=8080'
'-Dnative.build='
'-Duse.jks=true'
''

The ' characters around the executable and arguments are
not part of the command.

     [java] Buildfile: /kauai/beach/ws/glassfish/admin-gui/build.xml
     [java]
     [java] init:
     [java]
     [java] compile-admin:
     [java]
     [java] init:
     [java]
     [java] build-framework:
     [java]
     [java] init:
     [java]
     [java] compile:
     [java] [echo] CC: /kauai/beach/ws/publish/glassfish/lib/install/applications/admingui/adminGUI_war/WEB-INF/lib/cc.jar
     [java] [echo] JATO: /kauai/beach/ws/publish/glassfish/lib/install/applications/admingui/adminGUI_war/WEB-INF/lib/jato.jar
     [java]
     [java] assemble:
     [java] [jar] Building jar: /kauai/beach/ws/publish/glassfish/lib/install/applications/admingui/adminGUI_war/WEB-INF/lib/framework.jar
     [java] [jar] Building jar: /kauai/beach/ws/publish/glassfish/lib/install/applications/admingui/adminGUI_war/WEB-INF/lib/framework-en.jar
     [java]
     [java] assemble-xml:
     [java] [jar] Building jar: /kauai/beach/ws/publish/glassfish/lib/install/applications/admingui/adminGUI_war/WEB-INF/lib/framework-xml.jar
     [java]
     [java] all:
     [java]
     [java] compile-java:
     [java] [echo] CC: /kauai/beach/ws/publish/glassfish/lib/install/applications/admingui/adminGUI_war/WEB-INF/lib/cc.jar
     [java] [echo] JATO: /kauai/beach/ws/publish/glassfish/lib/install/applications/admingui/adminGUI_war/WEB-INF/lib/jato.jar
     [java] [echo] JSF: /kauai/beach/ws/publish/glassfish/lib/install/applications/admingui/adminGUI_war/WEB-INF/lib/jsftemplating.jar
     [java] [javac] Compiling 1 source file to /kauai/beach/ws/glassfish/admin-gui/admin/build
     [java]
     [java] assemble-java:
     [java] [jar] Building jar: /kauai/beach/ws/publish/glassfish/lib/install/applications/admingui/adminGUI_war/WEB-INF/lib/admin.jar
     [java] [jar] Building jar: /kauai/beach/ws/publish/glassfish/lib/install/applications/admingui/adminGUI_war/WEB-INF/lib/admin-en.jar
     [java]
     [java] assemble-xml:
     [java] [jar] Building jar: /kauai/beach/ws/publish/glassfish/lib/install/applications/admingui/adminGUI_war/WEB-INF/lib/admin-xml.jar
     [java]
     [java] assemble-helpfiles:
     [java] [jar] Building jar: /kauai/beach/ws/publish/glassfish/lib/install/applications/admingui/adminGUI_war/WEB-INF/lib/help.jar
     [java]
     [java] create-xml-serializefile:
     [java] [java] Success!
     [java] [jar] Updating jar: /kauai/beach/ws/publish/glassfish/lib/install/applications/admingui/adminGUI_war/WEB-INF/lib/admin-xml.jar
     [java] [delete] Deleting: /kauai/beach/ws/glassfish/admin-gui/admin/viewXML.ser
     [java]
     [java] build:
     [java]
     [java] copyfiles:
     [java]
     [java] assemble-war:
     [java] [echo] Copying content for admingGUI_war: /kauai/beach/ws/publish/glassfish/lib/install/applications/admingui/adminGUI_war
     [java] [copy] Copying 4 files to /kauai/beach/ws/publish/glassfish/lib/install/applications/admingui/adminGUI_war/WEB-INF
     [java] [copy] Copying 357 files to /kauai/beach/ws/publish/glassfish/lib/install/applications/admingui/adminGUI_war
     [java] [copy] Copying 1 file to /kauai/beach/ws/publish/glassfish/lib/install/applications/admingui/adminGUI_war/WEB-INF/lib
     [java]
     [java] extract-comsunjsps:
     [java] [unjar] Expanding: /kauai/beach/ws/publish/glassfish/lib/install/applications/admingui/adminGUI_war/WEB-INF/lib/com_sun_web_ui.jar into /kauai/beach/ws/publish/glassfish/lib/install/applications/admingui/adminGUI_war
     [java]
     [java] compile-jsp:
     [java] [echo] SUNAPPSERV = /kauai/beach/ws/publish/glassfish/lib/sun-appserv-ant.jar
     [java] [mkdir] Created dir: /kauai/beach/ws/publish/glassfish/lib/install/applications/admingui/adminGUI_war/WEB-INF/generated
     [java] [sun-appserv-jspc] Executing Jasper Compiler
     [java] [java] Jan 12, 2007 10:15:19 AM org.apache.jasper.JspC initClassLoader
     [java] [java] WARNING: TLD files should not be placed in /WEB-INF/lib
     [java] [java] Jan 12, 2007 10:15:19 AM org.apache.jasper.JspC initClassLoader
     [java] [java] WARNING: TLD files should not be placed in /WEB-INF/lib
     [java] [java] Jan 12, 2007 10:15:19 AM org.apache.jasper.JspC initClassLoader
     [java] [java] WARNING: TLD files should not be placed in /WEB-INF/lib
     [java] [javac] Compiling 276 source files to /kauai/beach/ws/publish/glassfish/lib/install/applications/admingui/adminGUI_war/WEB-INF/generated
     [java] [javac] Note: Some input files use or override a deprecated API.
     [java] [javac] Note: Recompile with -Xlint:deprecation for details.
     [java] [javac] Note: Some input files use unchecked or unsafe operations.
     [java] [javac] Note: Recompile with -Xlint:unchecked for details.
     [java]
     [java] assemble-jsp:
     [java] [jar] Building jar: /kauai/beach/ws/publish/glassfish/lib/install/applications/admingui/adminGUI_war/WEB-INF/lib/admingui-jsp.jar
     [java] [delete] Deleting 552 files from /kauai/beach/ws/publish/glassfish/lib/install/applications/admingui/adminGUI_war/WEB-INF/generated
     [java] [delete] Deleted 14 directories from /kauai/beach/ws/publish/glassfish/lib/install/applications/admingui/adminGUI_war/WEB-INF/generated
     [java] [delete] Deleting 259 files from /kauai/beach/ws/publish/glassfish/lib/install/applications/admingui/adminGUI_war/jsp
     [java] [delete] Deleted 1 directory from /kauai/beach/ws/publish/glassfish/lib/install/applications/admingui/adminGUI_war/jsp
     [java]
     [java] compile:
     [java]
     [java] admin-jsf:
     [java]
     [java] init:
     [java]
     [java] compile-java:
     [java]
     [java] [exec] Unknown argument: -cp
     [java] [exec] ant [options] [target [target2 [target3] ...]]
     [java] [exec] Options:
     [java] [exec] -help, -h print this message
     [java] [exec] -projecthelp, -p print project help information
     [java] [exec] -version print the version information and exit
     [java] [exec] -diagnostics print information that might be helpful to
     [java] [exec] diagnose or report problems.
     [java] [exec] -quiet, -q be extra quiet
     [java] [exec] -verbose, -v be extra verbose
     [java] [exec] -debug, -d print debugging information
     [java] [exec] -emacs, -e produce logging information without adornments
     [java]
     [java] BUILD FAILED
     [java] /kauai/beach/ws/glassfish/admin-gui/build.xml:48: The following error occurred while executing this line:
     [java] [exec] -lib <path> specifies a path to search for jars and classes
     [java] [exec] -logfile <file> use given file for log
     [java] [exec] -l <file> ''
     [java] [exec] -logger <classname> the class which is to perform logging
     [java] /kauai/beach/ws/glassfish/admin-gui/admin-jsf/build.xml:58: exec returned: 1
     [java]
     [java] Total time: 1 minute 43 seconds
     [java] [exec] -listener <classname> add an instance of class as a project listener
     [java] [exec] -noinput do not allow interactive input
     [java] [exec] -buildfile <file> use given buildfile
     [java] [exec] -file <file> ''
     [java] [exec] -f <file> ''
     [java] [exec] -D<property>=<value> use value for given property
     [java] [exec] -keep-going, -k execute all targets that do not depend
     [java] [exec] on failed target(s)
     [java] [exec] -propertyfile <name> load all properties from file with -D
     [java] [exec] properties taking precedence
     [java] [exec] -inputhandler <class> the class which will handle input requests
     [java] [exec] -find <file> (s)earch for buildfile towards the root of
     [java] [exec] -s <file> the filesystem and use it
     [java] [exec] -nice number A niceness value for the main thread:
     [java] [exec] 1 (lowest) to 10 (highest); 5 is the default
     [java]
     [java] Java Result: 1