There is a disconnect between the directory structure of JBoss Native 2.0.4/2.0.5 and the run.bat that comes with JBossAS 5.0.0.CR2.
The directory structure in JBoss Native is:
bin/WEB-INF/lib/system/cpu
where 'system' is the os (such as windows) and cpu is the architecture, such as x86.
However, run.bat looks for:
if exist "%JBOSS_HOME%\bin\META-INF\lib\windows-%JAVA_PLATFORM%"
when it should look for:
if exist "%JBOSS_HOME%\bin\META-INF\lib\windows\%JAVA_PLATFORM%"
And of course it never finds the directory.
Fortunately, this is correct in run.sh:
JBOSS_NATIVE_DIR="$JBOSS_HOME/bin/META-INF/lib/$JBOSS_NATIVE_SYS/$JBOSS_NATIVE_CPU"
if [ -d "$JBOSS_NATIVE_DIR" ]; then
I guess the moral of the story is to always use Linux... ;-)