users@glassfish.java.net

Problem after creating domain2 on AS8.2 - no keystore.jks found

From: <glassfish_at_javadesktop.org>
Date: Sun, 01 Jun 2008 19:18:42 PDT

I'm trying to create a 2nd Domain on Sun AS 8.2 and it's failing when I try to start the Domain with the message in the log file:

Exception in thread "main" [#|2008-06-02T03:00:32.885+0100|WARNING|sun-appserver
-ee8.2|javax.enterprise.system.stream.err|_ThreadID=10;|java.lang.ExceptionInIni
tializerError
        at com.sun.enterprise.security.SecurityLifecycle.onInitialization(Securi
tyLifecycle.java:59)
        at com.sun.enterprise.server.ApplicationServer.onInitialization(Applicat
ionServer.java:215)
        at com.sun.enterprise.server.PEMain.run(PEMain.java:284)
        at com.sun.enterprise.server.PEMain.main(PEMain.java:220)
Caused by: java.lang.IllegalStateException: /var/opt/SUNWappserver/domains/domai
n2/config/keystore.jks (No such file or directory)

This is because there is no keystore.jks file at that location (/var/opt/SUNWappserver/domains/domain2/config/). It doesn't get created for some reason. Anyone know why? I checked in the corresponding location for Domain1, and it's not there either. The file /var/opt/SUNWappserver/domains/domai
n2/config/domain.xml is where this file gets listed as a JVM option "javax.net.ssl.keyStore"

To give some background here Domain1 is running Portal Server 7.1 and Access Manager 7.1.

To create Domain 2 I'm using the command:


/opt/SUNWappserver/sbin/asadmin create-domain
--template /opt/SUNWappserver/appserver/lib/install/templates/default-domain.xml.template
--adminport 34848 --adminuser admin --savemasterpassword=true
--passwordfile /opt/SUNWappserver/appserver/config/password.domain2
--instanceport 38080 --checkports=true domain2

which gives:
Default port 7676 for JMS is in use. Using 47658
Default port 3700 for IIOP is in use. Using 47659
Default port 8181 for HTTP_SSL is in use. Using 47660
Default port 3820 for IIOP_SSL is in use. Using 47661
Default port 3920 for IIOP_MUTUALAUTH is in use. Using 47662
Default port 8686 for JMX_ADMIN is in use. Using 47663
Domain domain2 created.
[Message sent by forum member 'scondo01' (scondo01)]

http://forums.java.net/jive/thread.jspa?messageID=277775