Dinesh Patil wrote:
> just to clarify my last reply: On Mac (Darwin) we have to use
> JDK1.5.0_06 as later version not available on Mac, but if you use JDK
> 1.5.0_10, this problem shouldn't be seen.
Thanks Dinesh. I am going to update my JDK and hopefully the problem
goes away. Is there documented somewhere the min. JDK version required
to run ?
Also, i still don't understand why 1.5.0_06 is ok on Mac, but not on
WinXP.
thanks
Anissa.
> thanks
> Dinesh
>
> Dinesh Patil wrote:
>> Yes, this may be due to JDK1.5.0_06, this class is present in
>> appserv-rt.jar file.
>> > jar -tvf appserv-rt.jar |grep ResourceManagerImpl
>> 5371 Mon Jan 08 13:32:02 PST 2007
>> com/sun/enterprise/resource/ResourceManagerImpl.class
>>
>> But we have to use JDK 1.5.0_06 (as Mac doesn't have later JDK
>> version available yet) and we do jarpacking/unpacking for
>> appserv-rt.jar on Mac also, where we didn't see this problem. So this
>> may not be jarpacking/unpacking issue.
>> Is your java version same as this?
>>
>> % java version "1.5.0_06"
>> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-112)
>> Java HotSpot(TM) Client VM (build 1.5.0_06-64, mixed mode, sharing)
>>
>> thanks
>> Dinesh
>>
>> Anissa Lam wrote:
>>> kedar wrote:
>>>> Is this related to jarunpacking?
>>>> What JDK are you using?
>>> As seen in the server.log
>>>
>>> Jan 12, 2007 9:02:07 AM
>>> com.sun.enterprise.admin.servermgmt.launch.ASLauncher buildCommand
>>> INFO: *C:/Program Files/Java/jdk1.5.0_06/jre/..\bin\java*
>>> -client
>>> -Xmx512m
>>> -XX:NewRatio=2
>>>
>>> Anissa
>>>>
>>>> I am using JDK 1.5.0_09-b03 and don't see
>>>> it to be a problem.
>>>>
>>>> Kedar
>>>>
>>>> Anissa Lam wrote:
>>>>> Hi,
>>>>> I downloaded b31 (glassfish-installer-v2-b31-winnt.jar
>>>>> <http://java.net/download/javaee5/promoted/WINNT/glassfish-installer-v2-b31.jar>
>>>>> ) from https://glassfish.dev.java.net/downloads/v2-b31.html
>>>>> follow the instructions to install, which is
>>>>> java -Xmx256m -jar /filename.jar
>>>>> /cd glassfish
>>>>> ant -f setup.xml
>>>>>
>>>>> then i start the server without changing anything. Server failed
>>>>> to startup,
>>>>> asadmin> start-domain
>>>>> Starting Domain domain1, please wait.
>>>>> Log redirected to
>>>>> C:\Sun\9.1\EE\GF-b31\glassfish\domains\domain1\logs\server.log.
>>>>> Redirecting output to
>>>>> C:/Sun/9.1/EE/GF-b31/glassfish/domains/domain1/logs/server.log
>>>>> Timeout waiting for domain domain1 to go to starting state.
>>>>> CLI156 Could not start the domain domain1.
>>>>> asadmin>
>>>>>
>>>>> Server.log shows the following exception:
>>>>>
>>>>> [#|2007-01-12T09:02:09.890-0800|WARNING|sun-appserver9.1|javax.enterprise.system.stream.err|_ThreadID=10;_ThreadName=main;|java.lang.reflect.InvocationTargetException
>>>>>
>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>> at
>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>>>>
>>>>> at
>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>>>>
>>>>> at java.lang.reflect.Method.invoke(Method.java:585)
>>>>> at com.sun.enterprise.server.PELaunch.main(PELaunch.java:272)
>>>>> Caused by: java.lang.ClassFormatError: Invalid index 2 in
>>>>> LocalVariableTable in class file
>>>>> com/sun/enterprise/resource/ResourceManagerImpl
>>>>> at java.lang.ClassLoader.defineClass1(Native Method)
>>>>> at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
>>>>>
>>>>> I have attached entire server.log. Someone reported that he cannot
>>>>> startup up GUI on build 31 on WinXP, so i try to reproduce it.
>>>>> But i can't even startup the server.
>>>>> Anyone sees the same problem ?
>>>>> As shown in the log file, i am using JDK 1.5.0_06
>>>>>
>>>>> thanks
>>>>> Anissa.
>>>>>
>>>>>
>>>>> ------------------------------------------------------------------------
>>>>>
>>>>>
>>>>> Jan 12, 2007 9:02:07 AM
>>>>> com.sun.enterprise.admin.servermgmt.launch.ASLauncher buildCommand
>>>>> INFO: C:/Program Files/Java/jdk1.5.0_06/jre/..\bin\java
>>>>> -client
>>>>> -Xmx512m
>>>>> -XX:NewRatio=2
>>>>> -Dcom.sun.aas.defaultLogFile=C:/Sun/9.1/EE/GF-b31/glassfish/domains/domain1/logs/server.log
>>>>>
>>>>> -Djava.endorsed.dirs=C:/Sun/9.1/EE/GF-b31/glassfish/lib/endorsed
>>>>> -Djava.security.policy=C:/Sun/9.1/EE/GF-b31/glassfish/domains/domain1/config/server.policy
>>>>>
>>>>> -Djava.security.auth.login.config=C:/Sun/9.1/EE/GF-b31/glassfish/domains/domain1/config/login.conf
>>>>>
>>>>> -Dsun.rmi.dgc.server.gcInterval=3600000
>>>>> -Dsun.rmi.dgc.client.gcInterval=3600000
>>>>> -Djavax.net.ssl.keyStore=C:/Sun/9.1/EE/GF-b31/glassfish/domains/domain1/config/keystore.jks
>>>>>
>>>>> -Djavax.net.ssl.trustStore=C:/Sun/9.1/EE/GF-b31/glassfish/domains/domain1/config/cacerts.jks
>>>>>
>>>>> -Djava.ext.dirs=C:/Program
>>>>> Files/Java/jdk1.5.0_06/jre/../lib/ext;C:/Program
>>>>> Files/Java/jdk1.5.0_06/jre/../jre/lib/ext;C:/Sun/9.1/EE/GF-b31/glassfish/domains/domain1/lib/ext;C:/Sun/9.1/EE/GF-b31/glassfish/javadb/lib
>>>>>
>>>>> -Djdbc.drivers=org.apache.derby.jdbc.ClientDriver
>>>>> -Djavax.management.builder.initial=com.sun.enterprise.admin.server.core.jmx.AppServerMBeanServerBuilder
>>>>>
>>>>> -Dcom.sun.enterprise.config.config_environment_factory_class=com.sun.enterprise.config.serverbeans.AppserverConfigEnvironmentFactory
>>>>>
>>>>> -Dcom.sun.enterprise.taglibs=appserv-jstl.jar,jsf-impl.jar
>>>>> -Dcom.sun.enterprise.taglisteners=jsf-impl.jar
>>>>> -Dcom.sun.aas.classloader.optionalOverrideableChain=webservices-rt.jar,webservices-tools.jar,commons-logging.jar,commons-launcher.jar
>>>>>
>>>>> -Dcom.sun.aas.classloader.appserverChainJars=admin-cli.jar,admin-cli-ee.jar,dbschema.jar,j2ee-svc.jar
>>>>>
>>>>> -Dcom.sun.aas.classloader.serverClassPath.ee=%HADB_HOME%/lib/hadbjdbc4.jar,C:/Sun/9.1/EE/GF-b31/glassfish/lib/SUNWjdmk/5.1/lib/jdmkrt.jar,%HADB_HOME%/lib/dbstate.jar,%HADB_HOME%/lib/hadbm.jar,%HADB_HOME%/lib/hadbmgt.jar,%MFWK_HOME%/lib/mfwk_instrum_tk.jar
>>>>>
>>>>> -Dcom.sun.aas.configName=server-config
>>>>> -Ddomain.name=domain1
>>>>> -Djmx.invoke.getters=true
>>>>> -Dcom.sun.aas.classloader.optionalOverrideableChain.ee=
>>>>> -Dcom.sun.updatecenter.home=C:/Sun/9.1/EE/GF-b31/glassfish/updatecenter
>>>>>
>>>>> -Dcom.sun.aas.instanceRoot=C:/Sun/9.1/EE/GF-b31/glassfish/domains/domain1
>>>>>
>>>>> -Dcom.sun.aas.domainName=domain1
>>>>> -Dcom.sun.aas.classloader.sharedChainJars=javaee.jar,C:/Program
>>>>> Files/Java/jdk1.5.0_06/jre/../lib/tools.jar,install/applications/jmsra/imqjmsra.jar,commons-launcher.jar,C:/Sun/9.1/EE/GF-b31/glassfish/imq/lib/jaxm-api.jar,C:/Sun/9.1/EE/GF-b31/glassfish/imq/lib/fscontext.jar,C:/Sun/9.1/EE/GF-b31/glassfish/imq/lib/imqbroker.jar,C:/Sun/9.1/EE/GF-b31/glassfish/imq/lib/imqjmx.jar,C:/Sun/9.1/EE/GF-b31/glassfish/imq/lib/imqxm.jar,C:/Sun/9.1/EE/GF-b31/glassfish/lib/ant/lib/ant.jar,webservices-rt.jar,webservices-tools.jar,mail.jar,jsf-api.jar,jsf-impl.jar,appserv-jstl.jar,appserv-env.jar,jmxremote_optional.jar,C:/Sun/9.1/EE/GF-b31/glassfish/lib/SUNWjdmk/5.1/lib/jdmkrt.jar,commons-logging.jar,activation.jar,appserv-rt.jar,appserv-admin.jar,appserv-cmp.jar,C:/Sun/9.1/EE/GF-b31/glassfish/updatecenter/lib/updatecenter.jar
>>>>>
>>>>> -Dcom.sun.aas.classloader.sharedChainJars.ee=appserv-se.jar,appserv-ee.jar,%HADB_HOME%/lib/dbstate.jar,%HADB_HOME%/lib/hadbjdbc4.jar,jgroups-all.jar,%MFWK_HOME%/lib/mfwk_instrum_tk.jar
>>>>>
>>>>> -Djava.util.logging.manager=com.sun.enterprise.server.logging.ServerLogManager
>>>>>
>>>>> -Dcom.sun.enterprise.overrideablejavaxpackages=javax.xml.bind,javax.help,javax.portlet
>>>>>
>>>>> -Dcom.sun.aas.classloader.serverClassPath=C:/Sun/9.1/EE/GF-b31/glassfish/lib/install/applications/jmsra/imqjmsra.jar,C:/Sun/9.1/EE/GF-b31/glassfish/imq/lib/jaxm-api.jar,C:/Sun/9.1/EE/GF-b31/glassfish/imq/lib/fscontext.jar,C:/Sun/9.1/EE/GF-b31/glassfish/imq/lib/imqbroker.jar,C:/Sun/9.1/EE/GF-b31/glassfish/imq/lib/imqjmx.jar,C:/Sun/9.1/EE/GF-b31/glassfish/lib/ant/lib/ant.jar,C:/Sun/9.1/EE/GF-b31/glassfish/lib/SUNWjdmk/5.1/lib/jdmkrt.jar
>>>>>
>>>>> -Dcom.sun.aas.classloader.appserverChainJars.ee=
>>>>> -Dcom.sun.aas.configRoot=C:/Sun/9.1/EE/GF-b31/glassfish/config
>>>>> -Djava.library.path=C:\Sun\9.1\EE\GF-b31\glassfish\lib;C:\Sun\9.1\EE\GF-b31\glassfish\lib;C:\Sun\9.1\EE\GF-b31\glassfish\bin;C:\Sun\9.1\EE\GF-b31\glassfish\lib
>>>>>
>>>>> -Dcom.sun.aas.instanceName=server
>>>>> -Dcom.sun.aas.processLauncher=SE
>>>>> -Dcom.sun.aas.installRoot=C:/Sun/9.1/EE/GF-b31/glassfish
>>>>> -Dcom.sun.aas.ClassPathPrefix=
>>>>> -Dcom.sun.aas.ClassPathSuffix=
>>>>> -Dcom.sun.aas.ServerClassPath=
>>>>> -Dcom.sun.aas.promptForIdentity=true
>>>>> -cp
>>>>> ;C:/Sun/9.1/EE/GF-b31/glassfish/lib/appserv-launch.jar
>>>>> com.sun.enterprise.server.PELaunch
>>>>> start
>>>>> [#|2007-01-12T09:02:07.890-0800|INFO|sun-appserver9.1|javax.enterprise.system.core|_ThreadID=10;_ThreadName=main;|Starting
>>>>> Sun Java System Application Server 9.1 (build b31) ...|#]
>>>>>
>>>>> [#|2007-01-12T09:02:09.453-0800|INFO|sun-appserver9.1|javax.enterprise.system.core|_ThreadID=10;_ThreadName=main;|CORE5098:
>>>>> AS Socket Service Initialization has been completed.|#]
>>>>>
>>>>> [#|2007-01-12T09:02:09.515-0800|INFO|sun-appserver9.1|javax.enterprise.system.core|_ThreadID=10;_ThreadName=main;Java
>>>>> HotSpot(TM) Client VM;1.5.0_06;Sun Microsystems Inc.;|CORE5076:
>>>>> Using [Java HotSpot(TM) Client VM, Version 1.5.0_06] from [Sun
>>>>> Microsystems Inc.]|#]
>>>>>
>>>>> [#|2007-01-12T09:02:09.593-0800|INFO|sun-appserver9.1|javax.enterprise.system.core.security|_ThreadID=10;_ThreadName=main;|SEC1002:
>>>>> Security Manager is OFF.|#]
>>>>>
>>>>> [#|2007-01-12T09:02:09.890-0800|WARNING|sun-appserver9.1|javax.enterprise.system.stream.err|_ThreadID=10;_ThreadName=main;|java.lang.reflect.InvocationTargetException
>>>>>
>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>> at
>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>>>>
>>>>> at
>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>>>>
>>>>> at java.lang.reflect.Method.invoke(Method.java:585)
>>>>> at com.sun.enterprise.server.PELaunch.main(PELaunch.java:272)
>>>>> Caused by: java.lang.ClassFormatError: Invalid index 2 in
>>>>> LocalVariableTable in class file
>>>>> com/sun/enterprise/resource/ResourceManagerImpl
>>>>> at java.lang.ClassLoader.defineClass1(Native Method)
>>>>> at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
>>>>> at
>>>>> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
>>>>>
>>>>> at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
>>>>> at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
>>>>> at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
>>>>> at java.security.AccessController.doPrivileged(Native Method)
>>>>> at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>>>>> at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>>>>> at
>>>>> com.sun.appserv.server.util.ASURLClassLoader.loadClass(ASURLClassLoader.java:100)
>>>>>
>>>>> at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
>>>>> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
>>>>> at
>>>>> com.sun.enterprise.resource.PoolManagerImpl.<init>(PoolManagerImpl.java:88)
>>>>>
>>>>> at
>>>>> com.sun.enterprise.connectors.ConnectorConnectionPoolAdminServiceImpl.initialize(ConnectorConnectionPoolAdminServiceImpl.java:1535)
>>>>>
>>>>> at
>>>>> com.sun.enterprise.connectors.ConnectorConnectionPoolAdminServiceImpl.<init>(ConnectorConnectionPoolAdminServiceImpl.java:77)
>>>>>
>>>>> at
>>>>> com.sun.enterprise.connectors.ConnectorAdminServicesFactory.getService(ConnectorAdminServicesFactory.java:49)
>>>>>
>>>>> at
>>>>> com.sun.enterprise.connectors.ConnectorRuntime.createServices(ConnectorRuntime.java:130)
>>>>>
>>>>> at
>>>>> com.sun.enterprise.connectors.ConnectorRuntime.getRuntime(ConnectorRuntime.java:90)
>>>>>
>>>>> at
>>>>> com.sun.jdo.spi.persistence.support.sqlstore.ejb.SunTransactionHelper.<clinit>(SunTransactionHelper.java:96)
>>>>>
>>>>> at java.lang.Class.forName0(Native Method)
>>>>> at java.lang.Class.forName(Class.java:242)
>>>>> at
>>>>> com.sun.jdo.spi.persistence.support.sqlstore.ejb.PersistenceManagerServiceImpl.forceInit(PersistenceManagerServiceImpl.java:71)
>>>>>
>>>>> at
>>>>> com.sun.jdo.spi.persistence.support.sqlstore.ejb.PersistenceManagerServiceImpl.<clinit>(PersistenceManagerServiceImpl.java:54)
>>>>>
>>>>> at java.lang.Class.forName0(Native Method)
>>>>> at java.lang.Class.forName(Class.java:164)
>>>>> at
>>>>> com.sun.enterprise.server.ondemand.OnDemandServer.instantiateRuntimeServices(OnDemandServer.java:158)
>>>>>
>>>>> at
>>>>> com.sun.enterprise.server.ApplicationServer.onInitialization(ApplicationServer.java:233)
>>>>>
>>>>> at
>>>>> com.sun.enterprise.server.ondemand.OnDemandServer.onInitialization(OnDemandServer.java:93)
>>>>>
>>>>> at com.sun.enterprise.server.PEMain.run(PEMain.java:316)
>>>>> at com.sun.enterprise.server.PEMain.main(PEMain.java:260)
>>>>> ... 5 more
>>>>> |#]
>>>>>
>>>>>
>>>>>
>>>>> ------------------------------------------------------------------------
>>>>>
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>>>>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>>>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>>>
>>>
>>
>