From what I understand JBoss 5 is supposed to be able to start with
just a JRE and uses the Eclipse JDT library to do all its dynamic JSP compiling. However,
when I try to start the default configuration on Windows using run.bat, or run.sh from
Cygwin, I get the following error:
| $ ./run.sh
| =========================================================================
|
| JBoss Bootstrap Environment
|
| JBOSS_HOME: c:\jbia-src\binaries\jboss-5.0.0.Beta3
|
| JAVA: /cygdrive/c/jre1.5.0_07/bin/java
|
| JAVA_OPTS: -Dprogram.name=run.sh -server -Xms128m -Xmx512m -XX:MaxPermSize=256m
-Dorg.jboss.resolver.warning=true -Dsun.rmi.dgc.client.gcInterval=3600000
-Dsun.rmi.dgc.server.gcI
| nterval=3600000
|
| CLASSPATH: c:\jbia-src\binaries\jboss-5.0.0.Beta3\bin\run.jar
|
| =========================================================================
|
| Error: no `server' JVM at `c:\jre1.5.0_07\bin\server\jvm.dll'.
|
From this JIRA issue (
http://jira.jboss.org/jira/browse/JBAS-4161), it
seems like there should be no complaints when trying to start with a JRE since JBoss 5
Beta 2.
When you comment out the following lines (putting rem in front of the second and third
lines) in the run.bat script, the server starts:
| rem Add -server to the JVM options, if supported
| "%JAVA%" -version 2>&1 | findstr /I hotspot > nul
| if not errorlevel == 1 (set JAVA_OPTS=%JAVA_OPTS% -server)
|
I'm guessing that this is a bug in the script?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4125872#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...