Skip to main content

Error starting Glassfish

1 reply [Last post]
laqa
Offline
Joined: 2003-06-13

I just downloaded and registered Glassfish successfully to Netbeans6.5. I just chose admin/admin as username and password. JDK is 1.6. I am getting this error at the server log:

|2009-01-20T20:26:39.342-0300|WARNING|sun-appserver9.1|javax.enterprise.system.stream.err|_ThreadID=10;_ThreadName=main;_RequestID=a5657efd-0db3-4df4-bfcc-c192b3749ce8;|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:597)
at com.sun.enterprise.server.PELaunch.main(PELaunch.java:412)
Caused by: java.lang.ExceptionInInitializerError
at com.sun.enterprise.security.SecurityLifecycle.onInitialization(SecurityLifecycle.java:101)
at com.sun.enterprise.server.ApplicationServer.onInitialization(ApplicationServer.java:262)
at com.sun.enterprise.server.ondemand.OnDemandServer.onInitialization(OnDemandServer.java:101)
at com.sun.enterprise.server.PEMain.run(PEMain.java:401)
at com.sun.enterprise.server.PEMain.main(PEMain.java:338)
... 5 more
Caused by: java.lang.IllegalStateException: Keystore was tampered with, or password was incorrect
at com.sun.enterprise.security.SecuritySupportImpl.loadStores(SecuritySupportImpl.java:114)
at com.sun.enterprise.security.SecuritySupportImpl.initJKS(SecuritySupportImpl.java:82)
at com.sun.enterprise.security.SecuritySupportImpl.(SecuritySupportImpl.java:76)
at com.sun.enterprise.security.SecuritySupportImpl.(SecuritySupportImpl.java:71)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at java.lang.Class.newInstance0(Class.java:355)
at java.lang.Class.newInstance(Class.java:308)
at com.sun.enterprise.pluggable.PluggableFeatureFactoryBaseImpl.invoke(PluggableFeatureFactoryBaseImpl.java:84)
at $Proxy0.getSecuritySupport(Unknown Source)
at com.sun.enterprise.security.SecurityUtil.getSecuritySupport(SecurityUtil.java:365)
at com.sun.enterprise.security.SSLUtils.(SSLUtils.java:102)
... 10 more

I had uninstalled Netbeans bundled Glassfish because I forgot registered password and was not able to change it through the Tools Menu (it just did not react to changes). There was also a master password to which I did not have any clue.

Thanks,

Luis.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
km
Offline
Joined: 2005-10-28

I think you somehow created a domain with its keystore locked with a password other than
"changeit" which is the default (the so-called master password).

You should use a passwordfile with contents:
AS_ADMIN_PASSWORD=admin (assuming this is what you provided to NB)
AS_ADMIN_MASTERPASSWORD=admin (assuming this is what you provided to NB)
and the use

asadmin start-domain --passwordfile passwordfile

-Kedar