I got a little further, now
when I type:
$ maven build
I get this error:
[java] appserv-core:
[java]
[java] init:
[java] [mkdir] Created dir:
/usr/home/ws10/workspace/glassfish/appserv-core-ee/appserv-core/build
[java] [mkdir] Created dir:
/usr/home/ws10/workspace/glassfish/appserv-core-ee/appserv-core/build/include
[java]
[java] compile:
[java] [javac] Compiling 61 source files to
/usr/home/ws10/workspace/glassfish/appserv-core-ee/appserv-core/build
[java] [javac]
/usr/home/ws10/workspace/glassfish/appserv-core-ee/appserv-core/src/java/com/sun/enterprise/ee/security/EESecuritySupportImpl.java:79:
package sun.security.pkcs11 does not exist
[java] [javac] import sun.security.pkcs11.SunPKCS11;
[java] [javac] ^
[java] [javac]
/usr/home/ws10/workspace/glassfish/appserv-core-ee/appserv-core/src/java/com/sun/enterprise/ee/diagnostics/EERemoteTargetResolver.java:113:
warning: non-varargs call of varargs method with inexact argument type
for last parameter;
[java] [javac] cast to java.lang.Class for a varargs call
[java] [javac] cast to java.lang.Class[] for a non-varargs call
and to suppress this warning
[java] [javac] Method method =
classObj.getMethod(GET_AGENT_ROOT_METHOD, null);
[java]
[javac]
^
[java] [javac]
/usr/home/ws10/workspace/glassfish/appserv-core-ee/appserv-core/src/java/com/sun/enterprise/ee/diagnostics/EERemoteTargetResolver.java:114:
warning: non-varargs call of varargs method with inexact argument type
for last parameter;
[java] [javac] cast to java.lang.Object for a varargs call
[java] [javac] cast to java.lang.Object[] for a non-varargs
call and to suppress this warning
[java] [javac] repositoryDir =
(String)method.invoke(obj, null);
[java]
[javac] ^
[java] [javac]
/usr/home/ws10/workspace/glassfish/appserv-core-ee/appserv-core/src/java/com/sun/enterprise/ee/diagnostics/EERemoteTargetResolver.java:116:
warning: non-varargs call of varargs method with inexact argument type
for last parameter;
[java] [javac] cast to java.lang.Class for a varargs call
[java] [javac] cast to java.lang.Class[] for a non-varargs call
and to suppress this warning
[java] [javac] method =
classObj.getMethod(GET_AGENT_NAME, null);
[java]
[javac] ^
[java] [javac]
/usr/home/ws10/workspace/glassfish/appserv-core-ee/appserv-core/src/java/com/sun/enterprise/ee/diagnostics/EERemoteTargetResolver.java:117:
warning: non-varargs call of varargs method with inexact argument type
for last parameter;
[java] [javac] cast to java.lang.Object for a varargs call
[java] [javac] cast to java.lang.Object[] for a non-varargs
call and to suppress this warning
[java] [javac] repositoryName =
(String)method.invoke(obj, null);
[java]
[javac] ^
[java] [javac]
/usr/home/ws10/workspace/glassfish/appserv-core-ee/appserv-core/src/java/com/sun/enterprise/ee/security/EESecuritySupportImpl.java:202:
cannot find symbol
[java] [javac] symbol : class SunPKCS11
[java] [javac] location: class
com.sun.enterprise.ee.security.EESecuritySupportImpl
[java] [javac] if (providers[i] instanceof
SunPKCS11) {
[java] [javac] ^
[java] [javac]
/usr/home/ws10/workspace/glassfish/appserv-core-ee/appserv-core/src/java/com/sun/enterprise/ee/security/EESecuritySupportImpl.java:222:
cannot find symbol
[java] [javac] symbol : class SunPKCS11
[java] [javac] location: class
com.sun.enterprise.ee.security.EESecuritySupportImpl
[java] [javac] pkcs11Provider = new
SunPKCS11(configFile);
[java] [javac] ^
[java] [javac]
/usr/home/ws10/workspace/glassfish/appserv-core-ee/appserv-core/src/java/com/sun/enterprise/ee/security/EESecuritySupportImpl.java:245:
cannot find symbol
[java] [javac] symbol : class SunPKCS11
[java] [javac] location: class
com.sun.enterprise.ee.security.EESecuritySupportImpl
[java] [javac] pkcs11Provider = new
SunPKCS11(tokenName, configStream);
[java] [javac] ^
[java] [javac] Note: Some input files use or override a
deprecated API.
[java] [javac] Note: Recompile with -Xlint:deprecation for
details.
[java]
[java] BUILD FAILED
[java] [javac] Note: Some input files use unchecked or unsafe
operations.
[java] [javac] Note: Recompile with -Xlint:unchecked for
details.
[java] [javac] 4 errors
[java] [javac] 4 warnings
[java]
/usr/home/ws10/workspace/glassfish/appserv-core-ee/build.xml:55: The
following error occurred while executing this line:
[java]
/usr/home/ws10/workspace/glassfish/appserv-core-ee/appserv-core/build.xml:81:
Compile failed; see the compiler error output for details.
[java]
[java] Total time: 5 seconds
[java] [ERROR] Java Result: 1
BUILD FAILED
File...... /usr/home/ws10/workspace/glassfish/bootstrap/maven.xml
Element... fail
Line...... 619
Column.... 28
No message
Total time: 16 minutes 59 seconds
Finished at: Tue May 29 15:24:10 EST 2007
[ws10@ws10 /usr/home/ws10/workspace/glassfish/bootstrap]$
Am I missing some files here?
Michael
Michael Pope wrote:
I'm
having trouble getting Glassfish v2 working on FreeBSD.
I'm following the documentation from:
http://blogs.sun.com/hyau/entry/glassfish_on_freebsd_too
It's at Step 3, sub step 2 which I have problems.
I get the following error:
[ws10@ws10 /usr/home/ws10/workspace/glassfish/bootstrap]$ maven
checkout
__ __
| \/ |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \ ~ intelligent projects ~
|_| |_\__,_|\_/\___|_||_| v. 1.0.2
Starting the reactor...
Our processing order:
+----------------------------------------
| Checking out SJSAS PE first.
| Memory: 3M/4M
+----------------------------------------
build:start:
checkout:
build:start:
checkout-pe:
checkout-bootstrap:
[echo] Checking out: glassfish/bootstrap
[cvs] Using cvs passfile: /home/ws10/.cvspass
[cvs] ? glassfish/bootstrap/.project.properties.swp
[cvs] ? glassfish/bootstrap/ant-common.xml
[cvs] ? glassfish/bootstrap/appserv-admin.mf
[cvs] ? glassfish/bootstrap/appserv-deployment-client.mf
[cvs] ? glassfish/bootstrap/appserv-ext.mf
[cvs] ? glassfish/bootstrap/appserv-rt.mf
[cvs] cvs checkout: Updating glassfish/bootstrap
[cvs] cvs checkout: move away glassfish/bootstrap/ant-common.xml; it
is in the way
[cvs] ? glassfish/bootstrap/appserv-ws.mf
[cvs] ? glassfish/bootstrap/build.xml
[cvs] ? glassfish/bootstrap/glassfish.subcomponent.properties
[cvs] ? glassfish/bootstrap/glassfish.xml
[cvs] ? glassfish/bootstrap/j2ee-jar.mf
[cvs] ? glassfish/bootstrap/javaee-jar.mf
[cvs] ? glassfish/bootstrap/junit_targets.xml
[cvs] ? glassfish/bootstrap/legal
[cvs] ? glassfish/bootstrap/make
[cvs] ? glassfish/bootstrap/maven.xml
[cvs] ? glassfish/bootstrap/project-addons.xml
[cvs] ? glassfish/bootstrap/project-bootstrap-pe.xml
[cvs] ? glassfish/bootstrap/project-bootstrap.xml
[cvs] ? glassfish/bootstrap/project-pwc.xml
[cvs] ? glassfish/bootstrap/project-src.xml
[cvs] ? glassfish/bootstrap/project.properties
[cvs] ? glassfish/bootstrap/project.xml
[cvs] ? glassfish/bootstrap/setup-cluster.xml
[cvs] ? glassfish/bootstrap/setup.xml
[cvs] C glassfish/bootstrap/ant-common.xml
[cvs] C glassfish/bootstrap/appserv-admin.mf
[cvs] cvs checkout: move away glassfish/bootstrap/appserv-admin.mf;
it is in the way
[cvs] C glassfish/bootstrap/appserv-deployment-client.mf
[cvs] C glassfish/bootstrap/appserv-ext.mf
[cvs] cvs checkout: move away
glassfish/bootstrap/appserv-deployment-client.mf; it is in the way
[cvs] cvs checkout: move away glassfish/bootstrap/appserv-ext.mf; it
is in the way
[cvs] cvs checkout: move away glassfish/bootstrap/appserv-rt.mf; it
is in the way
[cvs] C glassfish/bootstrap/appserv-rt.mf
[cvs] C glassfish/bootstrap/appserv-ws.mf
[cvs] cvs checkout: move away glassfish/bootstrap/appserv-ws.mf; it
is in the way
[cvs] cvs checkout: move away glassfish/bootstrap/build.xml; it is in
the way
[cvs] C glassfish/bootstrap/build.xml
[cvs] C glassfish/bootstrap/glassfish.subcomponent.properties
[cvs] cvs checkout: move away
glassfish/bootstrap/glassfish.subcomponent.properties; it is in the way
[cvs] cvs checkout: move away glassfish/bootstrap/glassfish.xml; it
is in the way
[cvs] C glassfish/bootstrap/glassfish.xml
[cvs] C glassfish/bootstrap/j2ee-jar.mf
[cvs] cvs checkout: move away glassfish/bootstrap/j2ee-jar.mf; it is
in the way
[cvs] C glassfish/bootstrap/javaee-jar.mf
[cvs] cvs checkout: move away glassfish/bootstrap/javaee-jar.mf; it
is in the way
[cvs] cvs checkout: move away glassfish/bootstrap/junit_targets.xml;
it is in the way
[cvs] C glassfish/bootstrap/junit_targets.xml
[cvs] cvs checkout: move away glassfish/bootstrap/maven.xml; it is in
the way
[cvs] C glassfish/bootstrap/maven.xml
[cvs] cvs checkout: move away glassfish/bootstrap/project-addons.xml;
it is in the way
[cvs] C glassfish/bootstrap/project-addons.xml
[cvs] cvs checkout: move away
glassfish/bootstrap/project-bootstrap-pe.xml; it is in the way
[cvs] C glassfish/bootstrap/project-bootstrap-pe.xml
[cvs] cvs checkout: move away
glassfish/bootstrap/project-bootstrap.xml; it is in the way
[cvs] C glassfish/bootstrap/project-bootstrap.xml
[cvs] cvs checkout: move away glassfish/bootstrap/project-pwc.xml; it
is in the way
[cvs] C glassfish/bootstrap/project-pwc.xml
[cvs] cvs checkout: move away glassfish/bootstrap/project-src.xml; it
is in the way
[cvs] C glassfish/bootstrap/project-src.xml
[cvs] cvs checkout: move away glassfish/bootstrap/project.properties;
it is in the way
[cvs] C glassfish/bootstrap/project.properties
[cvs] cvs checkout: move away glassfish/bootstrap/project.xml; it is
in the way
[cvs] C glassfish/bootstrap/project.xml
[cvs] cvs checkout: move away glassfish/bootstrap/setup-cluster.xml;
it is in the way
[cvs] C glassfish/bootstrap/setup-cluster.xml
[cvs] cvs checkout: move away glassfish/bootstrap/setup.xml; it is in
the way
[cvs] C glassfish/bootstrap/setup.xml
[cvs] cvs checkout: Updating glassfish/bootstrap/legal
[cvs] cvs checkout: move away
glassfish/bootstrap/legal/3RD-PARTY-LICENSE-persistence.txt; it is in
the way
[cvs] C glassfish/bootstrap/legal/3RD-PARTY-LICENSE-persistence.txt
[cvs] cvs checkout: move away
glassfish/bootstrap/legal/3RD-PARTY-LICENSE.txt; it is in the way
[cvs] C glassfish/bootstrap/legal/3RD-PARTY-LICENSE.txt
[cvs] cvs checkout: move away
glassfish/bootstrap/legal/BinariesLicense; it is in the way
[cvs] C glassfish/bootstrap/legal/BinariesLicense
[cvs] cvs checkout: move away
glassfish/bootstrap/legal/CDDLHeader.txt; it is in the way
[cvs] C glassfish/bootstrap/legal/CDDLHeader.txt
[cvs] cvs checkout: move away glassfish/bootstrap/legal/CDDLv1.0.txt;
it is in the way
[cvs] C glassfish/bootstrap/legal/CDDLv1.0.txt
[cvs] cvs checkout: move away glassfish/bootstrap/legal/COPYRIGHT; it
is in the way
[cvs] C glassfish/bootstrap/legal/COPYRIGHT
[cvs] cvs checkout: move away glassfish/bootstrap/legal/LICENSE.txt;
it is in the way
[cvs] C glassfish/bootstrap/legal/LICENSE.txt
[cvs] C glassfish/bootstrap/legal/README
[cvs] cvs checkout: move away glassfish/bootstrap/legal/README; it is
in the way
[cvs] cvs checkout: move away
glassfish/bootstrap/legal/README-persistence; it is in the way
[cvs] C glassfish/bootstrap/legal/README-persistence
[cvs] C glassfish/bootstrap/make/README.build
[cvs] cvs checkout: Updating glassfish/bootstrap/make
[cvs] cvs checkout: move away glassfish/bootstrap/make/README.build;
it is in the way
[cvs] cvs checkout: move away
glassfish/bootstrap/make/bootstrap.properties; it is in the way
[cvs] C glassfish/bootstrap/make/bootstrap.properties
[cvs] cvs checkout: move away glassfish/bootstrap/make/defines-ee.mk;
it is in the way
[cvs] C glassfish/bootstrap/make/defines-ee.mk
[cvs] cvs checkout: move away glassfish/bootstrap/make/defines.mk; it
is in the way
[cvs] C glassfish/bootstrap/make/defines.mk
[cvs] cvs checkout: move away glassfish/bootstrap/make/rules.mk; it
is in the way
[cvs] C glassfish/bootstrap/make/rules.mk
[cvs] cvs checkout: Updating
glassfish/bootstrap/maven-glassfish-plugin
[cvs] cvs checkout: Updating
glassfish/bootstrap/maven-glassfish-plugin/src
[cvs] cvs checkout: Updating
glassfish/bootstrap/maven-glassfish-plugin/src/main
[cvs] cvs checkout: Updating
glassfish/bootstrap/maven-glassfish-plugin/src/main/java
[cvs] cvs checkout: Updating
glassfish/bootstrap/maven-glassfish-plugin/src/main/java/com
[cvs] cvs checkout: Updating
glassfish/bootstrap/maven-glassfish-plugin/src/main/java/com/sun
[cvs] cvs checkout: Updating
glassfish/bootstrap/maven-glassfish-plugin/src/main/java/com/sun/enterprise
[cvs] cvs checkout: Updating
glassfish/bootstrap/maven-glassfish-plugin/src/main/java/com/sun/enterprise/build
[cvs] cvs checkout: Updating
glassfish/bootstrap/maven-glassfish-plugin/src/main/java/org
[cvs] cvs checkout: Updating
glassfish/bootstrap/maven-glassfish-plugin/src/main/java/org/apache
[cvs] cvs checkout: Updating
glassfish/bootstrap/maven-glassfish-plugin/src/main/java/org/apache/maven
[cvs] cvs checkout: Updating
glassfish/bootstrap/maven-glassfish-plugin/src/main/java/org/apache/maven/scm
[cvs] cvs checkout: Updating
glassfish/bootstrap/maven-glassfish-plugin/src/main/java/org/apache/maven/scm/plugin
[cvs] cvs checkout: Updating
glassfish/bootstrap/maven-glassfish-plugin/src/main/resources
[cvs] cvs checkout: Updating
glassfish/bootstrap/maven-glassfish-plugin/src/main/resources/META-INF
[cvs] cvs checkout: Updating
glassfish/bootstrap/maven-glassfish-plugin/src/main/resources/META-INF/plexus
[cvs] cvs checkout: Updating
glassfish/bootstrap/maven-glassfish-plugin/src/test
[cvs] cvs checkout: Updating
glassfish/bootstrap/maven-glassfish-plugin/src/test/java
[cvs] cvs checkout: Updating
glassfish/bootstrap/maven-glassfish-plugin/src/test/java/com
[cvs] cvs checkout: Updating
glassfish/bootstrap/maven-glassfish-plugin/src/test/java/com/sun
[cvs] cvs checkout: Updating
glassfish/bootstrap/maven-glassfish-plugin/src/test/java/com/sun/enterprise
[cvs] cvs checkout: Updating
glassfish/bootstrap/maven-glassfish-plugin/src/test/java/com/sun/enterprise/build
[cvs] cvs checkout: Updating glassfish/bootstrap/package
BUILD FAILED
File...... /usr/home/ws10/workspace/glassfish/bootstrap/maven.xml
Element... maven:reactor
Line...... 329
Column.... 40
Unable to obtain goal [checkout-pe] --
/usr/home/ws10/workspace/glassfish/bootstrap/../../glassfish/bootstrap/maven.xml:282:44:
<ant:cvs> cvs exited with error code 1
Command line was [Executing 'cvs' with arguments:
'-d:pserver:map7@cvs.dev.java.net:/cvs'
'checkout'
'-r'
'SJSAS91_BETA2_BRANCH'
'glassfish/bootstrap'
The ' characters around the executable and arguments are
not part of the command.
environment:
KDE_FULL_SESSION=true
GS_LIB=/home/ws10/.fonts
KONSOLE_DCOP_SESSION=DCOPRef(yakuake,session-1)
USER=ws10
MAIL=/var/mail/ws10
SHLVL=1
OLDPWD=/usr/home/ws10/workspace/glassfish
HOME=/home/ws10
GTK_RC_FILES=/etc/gtk/gtkrc:/home/ws10/.gtkrc:/usr/home/ws10/.kde/share/config/gtkrc
MAVEN_HOME=/usr/local/share/java/maven
COLORTERM=
LOGNAME=ws10
_=/usr/local/bin/maven
http_proxy=http://proxy.lan:3128
WINDOWID=25292819
BLOCKSIZE=K
TERM=xterm
GTK2_RC_FILES=/etc/gtk-2.0/gtkrc:/home/ws10/.gtkrc-2.0:/usr/home/ws10/.kde/share/config/gtkrc-2.0
SESSION_MANAGER=local/ws10.lan:/tmp/.ICE-unix/2369
ANT_HOME=/usr/local
PATH=/usr/local/diablo-jdk1.5.0/bin:/usr/local/bin:/usr/local/share/java/maven/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin:/home/ws10/bin
XCURSOR_THEME=default
KONSOLE_DCOP=DCOPRef(yakuake,konsole)
DISPLAY=:0
SHELL=/usr/local/bin/bash
DCOP_YAKUAKE_SESSION=11
KDE_MULTIHEAD=false
JAVA_HOME=/usr/local/diablo-jdk1.5.0
PWD=/usr/home/ws10/workspace/glassfish/bootstrap
CVSROOT=:pserver:map7@cvs.dev.java.net:/cvs
XDG_DATA_DIRS=:/usr/share:/usr/local/share:/usr/X11R6/share:/usr/X11R6/share/gnome:/usr/local/share
XDG_CONFIG_DIRS=:/etc/xdg:/usr/local/etc/xdg:/usr/X11R6/etc/xdg:/usr/local/etc/xdg/xfce4:/usr/local/etc/xdg
FTP_PASSIVE_MODE=YES
LD_LIBRARY_PATH=/usr/local/diablo-jdk1.5.0/jre/lib/i386/client:/usr/local/diablo-jdk1.5.0/jre/lib/i386:/usr/local/diablo-jdk1.5.0/jre/../lib/i386
CVS_PASSFILE=/home/ws10/.cvspass]
Total time: 9 seconds
Finished at: Tue May 29 13:50:57 EST 2007
I've opened up this maven.xml file and looked at the line it complains
about:
<!-- Checkout bootstrap module -->
<goal name="checkout-bootstrap">
<ant:echo>Checking out:
${glassfish.cvs.project}/${glassfish.cvs.module} </ant:echo>
<ant:cvs cvsRoot="${glassfish.cvsroot}"
tag="${glassfish.cvstag}"
failonerror="true"
package="${glassfish.cvs.project}/${glassfish.cvs.module}"
dest="${glassfish.root}"/>
</goal>
I have defined these variables in my project.properties file.
glassfish.os.name=Darwin
glassfish.cvs.username=map7
glassfish.cvsroot=:pserver:${glassfish.cvs.username}@cvs.dev.java.net:/cvs
glassfish.cvstag=SJSAS91_BETA2_BRANCH
glassfish.cvs.project=glassfish
glassfish.cvs.module=bootstrap
glassfish.root=${basedir}/../..
glassfish.maven=${glassfish.root}/${glassfish.cvs.project}/${glassfish.cvs.module}
Any help appreciated.