users@glassfish.java.net

Setting Glassfish Java Version (OSX)

From: <forums_at_java.net>
Date: Sat, 18 Aug 2012 14:40:31 -0500 (CDT)

Ok I have read heaps of documents about this but nothing seems to work! All
Im trying to do is get Glassfish 3.1.2.2 to use Java 7! I have generated a
JVM Report (awesome feature by the way!) and have attached it below so you
can see my full glassfish and OS config. As you can see my AS_JAVA is set to
1.7.0, My priority OSX JDK is 1.7.0, I have set JAVA_HOME to 1.7.0, I have
re-installed Glassfish and I'm all out of ideas! I just don't understand
where the settings are being generated from that are telling Glassfish to use
1.6.0? I would really really appreciate any help. Operating System
Information: Name of the Operating System: Mac OS X Binary Architecture name
of the Operating System: i386, Version: 10.7.4 Number of processors available
on the Operating System: 8 System load on the available processors for the
last minute: 1.74853515625. (Sum of running and queued runnable entities per
minute) General Java Runtime Environment Information for the VM:
7316_at_mac-pro.home JRE BootClassPath:
/Users/tarka/glassfish3/glassfish/modules/endorsed/javax.annotation.jar:/Users/tarka/glassfish3/glassfish/modules/endorsed/jaxb-api-osgi.jar:/Users/tarka/glassfish3/glassfish/modules/endorsed/webservices-api-osgi.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/jsfd.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/classes.jar:/System/Library/Frameworks/JavaVM.framework/Frameworks/JavaRuntimeSupport.framework/Resources/Java/JavaRuntimeSupport.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/ui.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/laf.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/sunrsasign.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/jsse.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/jce.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/charsets.jar
JRE ClassPath: /Users/tarka/glassfish3/glassfish/modules/glassfish.jar JRE
Native Library Path:
.:/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java JRE
name: Java HotSpot(TM) Client VM Vendor: Apple Inc. Version: 20.8-b03-424
List of System Properties for the Java Virtual Machine:
ANTLR_USE_DIRECT_CLASS_LOADING = true AS_CONFIG =
/Users/tarka/glassfish3/glassfish/config/../config AS_DEF_DOMAINS_PATH =
/Users/tarka/glassfish3/glassfish/config/../domains AS_DEF_NODES_PATH =
../nodes AS_DERBY_INSTALL =
/Users/tarka/glassfish3/glassfish/config/../../javadb AS_IMQ_BIN =
/Users/tarka/glassfish3/glassfish/config/../../mq/bin AS_IMQ_LIB =
/Users/tarka/glassfish3/glassfish/config/../../mq/lib AS_INSTALL =
/Users/tarka/glassfish3/glassfish/config/.. AS_JAVA =
/System/Library/Java/JavaVirtualMachines/1.7.0.jdk/Contents/Home/jre
GlassFish_Platform = Felix awt.nativeDoubleBuffering = true awt.toolkit =
apple.awt.CToolkit catalina.base =
/Users/tarka/glassfish3/glassfish/domains/domain1 catalina.home =
/Users/tarka/glassfish3/glassfish/domains/domain1 catalina.useNaming = false
com.sun.aas.agentRoot = /Users/tarka/glassfish3/glassfish/nodes
com.sun.aas.configRoot = /Users/tarka/glassfish3/glassfish/config
com.sun.aas.derbyRoot = /Users/tarka/glassfish3/javadb
com.sun.aas.domainsRoot = /Users/tarka/glassfish3/glassfish/domains
com.sun.aas.hostName = mac-pro.home com.sun.aas.imqBin =
/Users/tarka/glassfish3/mq/bin com.sun.aas.imqLib =
/Users/tarka/glassfish3/mq/lib com.sun.aas.installRoot =
/Users/tarka/glassfish3/glassfish com.sun.aas.installRootURI =
file:/Users/tarka/glassfish3/glassfish/ com.sun.aas.instanceName = server
com.sun.aas.instanceRoot = /Users/tarka/glassfish3/glassfish/domains/domain1
com.sun.aas.instanceRootURI =
file:/Users/tarka/glassfish3/glassfish/domains/domain1/ com.sun.aas.javaRoot
= /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
com.sun.aas.javaRoot.asenv =
/System/Library/Java/JavaVirtualMachines/1.7.0.jdk/Contents/Home/jre
com.sun.aas.productRoot = /Users/tarka/glassfish3
com.sun.enterprise.config.config_environment_factory_class =
com.sun.enterprise.config.serverbeans.AppserverConfigEnvironmentFactory
com.sun.enterprise.jaccprovider.property.repository =
/Users/tarka/glassfish3/glassfish/domains/domain1/generated/policy
com.sun.enterprise.security.httpsOutboundKeyAlias = s1as common.loader =
${catalina.home}/common/classes,${catalina.home}/common/endorsed/*.jar,${catalina.home}/common/lib/*.jar
felix.fileinstall.bundles.new.start = true
felix.fileinstall.bundles.startTransient = true felix.fileinstall.dir =
/Users/tarka/glassfish3/glassfish/modules/autostart/
felix.fileinstall.disableConfigSave = false felix.fileinstall.log.level = 2
felix.fileinstall.poll = 5000 file.encoding = MacRoman file.encoding.pkg =
sun.io file.separator = / ftp.nonProxyHosts =
local|*.local|169.254/16|*.169.254/16 glassfish.version = GlassFish Server
Open Source Edition 3.1.2 (build 23) gopherProxySet = false gosh.args =
--nointeractive http.nonProxyHosts = local|*.local|169.254/16|*.169.254/16
java.awt.graphicsenv = apple.awt.CGraphicsEnvironment java.awt.headless =
true java.awt.printerjob = apple.awt.CPrinterJob java.class.path =
/Users/tarka/glassfish3/glassfish/modules/glassfish.jar java.class.version =
50.0 java.endorsed.dirs =
/Users/tarka/glassfish3/glassfish/modules/endorsed:/Users/tarka/glassfish3/glassfish/lib/endorsed
java.ext.dirs =
/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/ext:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/jre/lib/ext:/Users/tarka/glassfish3/glassfish/domains/domain1/lib/ext
java.home = /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
java.io.tmpdir = /var/folders/8v/c8lgfjdx7bl9bb9kldn2c9f80000gn/T/
java.library.path =
.:/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java
java.rmi.server.randomIDs = true java.runtime.name = Java(TM) SE Runtime
Environment java.runtime.version = 1.6.0_33-b03-424-11M3720
java.security.auth.login.config =
/Users/tarka/glassfish3/glassfish/domains/domain1/config/login.conf
java.security.policy =
/Users/tarka/glassfish3/glassfish/domains/domain1/config/server.policy
java.specification.name = Java Platform API Specification
java.specification.vendor = Sun Microsystems Inc. java.specification.version
= 1.6 java.util.logging.config.file =
/Users/tarka/glassfish3/glassfish/domains/domain1/config/logging.properties
java.vendor = Apple Inc. java.vendor.url = http://www.apple.com/
java.vendor.url.bug = http://bugreport.apple.com/ java.version = 1.6.0_33
java.vm.info = mixed mode java.vm.name = Java HotSpot(TM) Client VM
java.vm.specification.name = Java Virtual Machine Specification
java.vm.specification.vendor = Sun Microsystems Inc.
java.vm.specification.version = 1.0 java.vm.vendor = Apple Inc.
java.vm.version = 20.8-b03-424 javax.management.builder.initial =
com.sun.enterprise.v3.admin.AppServerMBeanServerBuilder
javax.net.ssl.keyStore =
/Users/tarka/glassfish3/glassfish/domains/domain1/config/keystore.jks
javax.net.ssl.trustStore =
/Users/tarka/glassfish3/glassfish/domains/domain1/config/cacerts.jks
javax.rmi.CORBA.PortableRemoteObjectClass =
com.sun.corba.ee.impl.javax.rmi.PortableRemoteObject
javax.rmi.CORBA.StubClass =
com.sun.corba.ee.impl.javax.rmi.CORBA.StubDelegateImpl
javax.rmi.CORBA.UtilClass = com.sun.corba.ee.impl.javax.rmi.CORBA.Util
javax.security.jacc.PolicyConfigurationFactory.provider =
com.sun.enterprise.security.provider.PolicyConfigurationFactoryImpl
jdbc.drivers = org.apache.derby.jdbc.ClientDriver line.separator = mrj.build
= 11M3720 mrj.version = 1070.1.6.0_33-424 org.omg.CORBA.ORBClass =
com.sun.corba.ee.impl.orb.ORBImpl org.omg.CORBA.ORBSingletonClass =
com.sun.corba.ee.impl.orb.ORBSingleton os.arch = i386 os.name = Mac OS X
os.version = 10.7.4 osgi.shell.telnet.ip = 127.0.0.1
osgi.shell.telnet.maxconn = 1 osgi.shell.telnet.port = 6666 package.access =
package.definition = path.separator = : security.home =
/Users/tarka/glassfish3/glassfish/modules/security server.loader =
${catalina.home}/server/classes,${catalina.home}/server/lib/*.jar
shared.loader =
${catalina.home}/shared/classes,${catalina.home}/shared/lib/*.jar
socksNonProxyHosts = local|*.local|169.254/16|*.169.254/16
sun.arch.data.model = 32 sun.boot.class.path =
/Users/tarka/glassfish3/glassfish/modules/endorsed/javax.annotation.jar:/Users/tarka/glassfish3/glassfish/modules/endorsed/jaxb-api-osgi.jar:/Users/tarka/glassfish3/glassfish/modules/endorsed/webservices-api-osgi.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/jsfd.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/classes.jar:/System/Library/Frameworks/JavaVM.framework/Frameworks/JavaRuntimeSupport.framework/Resources/Java/JavaRuntimeSupport.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/ui.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/laf.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/sunrsasign.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/jsse.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/jce.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/charsets.jar
sun.boot.library.path =
/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Libraries
sun.cpu.endian = little sun.cpu.isalist = sun.io.unicode.encoding =
UnicodeLittle sun.java.command =
/Users/tarka/glassfish3/glassfish/modules/glassfish.jar --domain domain1
--domaindir /Users/tarka/glassfish3/glassfish/domains/domain1
sun.java.launcher = SUN_STANDARD sun.jnu.encoding = MacRoman
sun.management.compiler = HotSpot Client Compiler sun.os.patch.level =
unknown user.country = US user.dir =
/Users/tarka/glassfish3/glassfish/domains/domain1 user.home = /Users/tarka
user.language = en user.name = tarka user.timezone = Europe/Zurich web.home =
/Users/tarka/glassfish3/glassfish/modules/web

--
[Message sent by forum member 'tarks']
View Post: http://forums.java.net/node/889331