Catch error scenario when user tries to start a server with a WEB-INF
Description
If you try to start a given cf engine in a folder that also has a WEB-INF if causes errors because runwar tries to load its jars as well. If we can't work around this in Runwar, then just catch the scenario and throw an error so the user knows that the heck is going on.
Usually the error looks something like:
Starting - port:59089 stop-port:60984 warpath:file:/C:/Users/tonyj/Desktop/websites/lineage/ context: / - version: 3.4.5 web-dirs: C:\Users\tonyj\Desktop\websites\lineage Log Directory: C:\Users\tonyj\.CommandBox\server\1FF9103FF4CF3F6EDC70E0521DFF2617-lineage\lucee-4.5.2.018\logs ****************************************************************************** Exception in thread "main" java.lang.NullPointerException at runwar.Server.getJarList(Server.java:702) at runwar.Server.startServer(Server.java:273) at runwar.Start.main(Start.java:12)
This needs to be fixed on the Runwar side. I've spoken with about it a few times via Slack, but today I entered this ticket so it wouldn't get forgotten about.
If you try to start a given cf engine in a folder that also has a WEB-INF if causes errors because runwar tries to load its jars as well. If we can't work around this in Runwar, then just catch the scenario and throw an error so the user knows that the heck is going on.
Usually the error looks something like:
stopping server
server did not appear to be running