When I investigated this further, I found that there was a problem with my
java home directory because of the space between Program and Files in the
asenv.bat file (Sun\AppServer\config\asenv.bat) so the verify-domain-xml executed
with error ADMVAL 1022
[b]set AS_JAVA=E:\Program Files\Java\jdk1.6.0_12 (original)[/b]
Element : java-config
Error : ADMVAL1022: '[Files/Java/jdk1.6.0_12/lib/ext;E:/Program, Files/Java/j
dk1.6.0_12/jre/lib/ext;${com.sun.aas.instanceRoot}/lib/ext;C:/Sun/AppServer/java
db/lib]' is invalid JVM option. Options must start with - (dash).
Command verify-domain-xml executed successfully.
[b]set AS_JAVA=E:\Progra~1\Java\jdk1.6.0_12 (modified; Tim suggested this)[/b]
C:\Sun\AppServer\bin>asadmin verify-domain-xml --echo --verbose
verify-domain-xml --verbose=true --echo=true --terse=false
All Tests Passed, domain.xml is valid
Command verify-domain-xml executed successfully.
Next, I installed it as a service as per the code of Ryan de Laplante
[u]
http://wiki.glassfish.java.net/Wiki.jsp?page=FaqRunAsWindowsService[/u]
Windows 2000 sc.exe (to create the service) is available for download at:
[u]
ftp://ftp.microsoft.com/reskit/win2000/sc.zip. [/u]
The logs folder now has a jvm.log and server folder with subdir tx.
The starting page and the admin console can now be viewed.
As a further check, I stopped the windows service and
executed asadmin at command line with debug option . Below are the
additional lines denoting successful start of domain1
ASLauncher Executing command .. (would stop at this linebefore the change to java
install directory)
InputLine ->null<-
InputLine ->null<-
InputLine ->changeit<-
Redirecting output to C:/Sun/AppServer/domains/domain1/logs/server.log
Listening for transport dt_socket at address: 9009
Application server is listening at address 9009 for debugger to attach using tra
nsport dt_socket
Domain domain1 is ready to receive client requests. Additional services are bein
g started in background.
Domain [domain1] is running [Sun GlassFish Enterprise Server v2.1 (9.1.1) (build
b60e-fcs)] with its configuration and logs at: [C:\Sun\AppServer\domains].
Admin Console is available at [
http://localhost:4848].
Use the same port [4848] for "asadmin" commands.
User web applications are available at these URLs:
[
http://localhost:8080 https://localhost:8181 ].
Following web-contexts are available:
[/web1 /__wstx-services wsrp-producer-portlet amserver portletdriver producer w
srp-consumer-portlet WelcomePortlet ].
Standard JMX Clients (like JConsole) can connect to JMXServiceURL:
[service:jmx:rmi:///jndi/rmi://gkserver:8686/jmxrmi] for domain management purpo
ses.
Domain listens on at least following ports for connections:
Also, stop and start default server through programs menu also works.
Thanks to all who took the time to read the original message posted on March 3.
Diana
[Message sent by forum member 'dlauren' (dlauren)]
http://forums.java.net/jive/thread.jspa?messageID=335220