Skip to main content

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

No replies
Joined: 2007-07-16

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
at com.sun.enterprise.server.ApplicationServer.onInitialization(Applicat
at com.sun.enterprise.server.PEMain.main(
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 ""

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.