[jboss-jira] [JBoss JIRA] Commented: (JBAS-9177) Launch script does not work on Windows

Max Rydahl Andersen (JIRA) jira-events at lists.jboss.org
Thu Mar 31 21:48:38 EDT 2011


    [ https://issues.jboss.org/browse/JBAS-9177?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12593099#comment-12593099 ] 

Max Rydahl Andersen commented on JBAS-9177:
-------------------------------------------

running on windows 7 virtual machine and I don't set JAVA_HOME and the server is in a no-space dir things starts up with the following message:

Y:\jboss-runtimes\jboss-7.0.0.Beta1\bin>standalone.bat
Config file not found Y:\jboss-runtimes\jboss-7.0.0.Beta1\bin\standalone.conf.ba
t
JAVA_HOME is not set. Unexpected results may occur.
Set JAVA_HOME to the directory of your local JDK to avoid this message.
===============================================================================
<normal output here after>
03:24:41,271 INFO  [org.jboss.as] (MSC service thread 1-1) JBoss AS 7.0.0.Beta1
"Ides of March" started in 8828ms - Started 88 of 112 services (24 services are
passive or on-demand)

Unfortunately localhost:8080 shows nothing (it says can't connect).

jboss-admin.bat and connect does though show it is communicating.

turns out 127.0.0.1:8080 does return the white blank page.

So you can start AS 7 on Windows you just have to do it on a non-spaced directory; and not set JAVA_HOME to something with spaces.






> Launch script does not work on Windows 
> ---------------------------------------
>
>                 Key: JBAS-9177
>                 URL: https://issues.jboss.org/browse/JBAS-9177
>             Project: JBoss Application Server
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>            Reporter: Max Rydahl Andersen
>            Priority: Critical
>
> Launching AS 7 does not work on windows.
> Several issues:
> Quoting java_home causes error:
> set JAVA_HOME="C:\Program Files\Java\jdk1.6.0_24"
> Y:\products\jboss 7.0.0.Beta1\bin>standalone.bat
> Config file not found Y:\products\jboss 7.0.0.Beta1\bin\standalone.conf.bat
> Files\Java\jdk1.6.0_24"" was unexpected at this time.
> Non quoting and you get this:
> Y:\products\jboss 7.0.0.Beta1\bin>set JAVA_HOME=C:\Program Files\Java\jdk1.6.0_2
> 4
> Y:\products\jboss 7.0.0.Beta1\bin>standalone.bat
> Config file not found Y:\products\jboss 7.0.0.Beta1\bin\standalone.conf.bat
> ===============================================================================
>   JBoss Bootstrap Environment
>   JBOSS_HOME: Y:\products\jboss 7.0.0.Beta1
>   JAVA: C:\Program Files\Java\jdk1.6.0_24\bin\java
>   JAVA_OPTS: -Dprogram.name=standalone.bat  -server
> ===============================================================================
> Exception in thread "main" java.lang.NoClassDefFoundError: 7/0/0/Beta1\standalon
> e\log\boot/log
> Caused by: java.lang.ClassNotFoundException: 7.0.0.Beta1\standalone\log\boot.log
>         at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
>         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
> Could not find the main class: 7.0.0.Beta1\standalone\log\boot.log.  Program wil
> l exit.
> Press any key to continue . . .
> And it seem to be looking for standalone.conf.bat which does not exist.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jboss-jira mailing list