JBoss fails to start on Windows if profile home is not located in server directory
Issue
- The a JBoss server profile fails to start on Windows if the $PROFILE_HOME is not located with the $JBOSS_HOME/server directory
-
Server is started with the -Djboss.server.base.dir and -Djboss.server.base.url parameters :
run.bat -b 0.0.0.0 -c server_profile -Djboss.server.base.dir=$PROFILE_HOME -Djboss.server.base.url=file:$PROFILE_HOME -
Server fails to start with the following message:
java.lang.IllegalArgumentException: Null path at org.jboss.virtual.plugins.vfs.helpers.PathTokenizer.getTokens(PathTokenizer.java:106) at org.jboss.virtual.plugins.vfs.helpers.PathTokenizer.applySpecialPathsToTokens(PathTokenizer.java:260) at org.jboss.virtual.VFSUtils.stripProtocolToTokens(VFSUtils.java:1112) at org.jboss.virtual.VFSUtils.stripProtocol(VFSUtils.java:1128) at org.jboss.virtual.plugins.cache.IterableVFSCache.findContext(IterableVFSCache.java:48) at org.jboss.virtual.plugins.cache.CombinedVFSCache.findContext(CombinedVFSCache.java:112) at org.jboss.virtual.plugins.registry.DefaultVFSRegistry.getFile(DefaultVFSRegistry.java:91) at org.jboss.virtual.plugins.registry.DefaultVFSRegistry.getFile(DefaultVFSRegistry.java:140) at org.jboss.virtual.VFS.getRoot(VFS.java:264)
Environment
- JBoss Enterprise Application Platform (EAP) 5.0.1
- Windows
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.