• How to publish html files?
  • How to add servlets
  • How to run as NT service
  • How to provide user auth from Database?
  • How to edit the extracted WAR files?
  • The server wrapps exceptions in jsp. I need the exceptions for processing. How do I fix that?
    The server wrapps jsp exceptions so it can show the original jsp line # the exception is thrown. To disable it, uncheck "Allow jsp line # in jsp exception" under "servers" manu.
  • How to add virtual hosts?
      To add a virtual host, edit the config/virtualHost.properties file.
      If you want host name myHost to server htdocs directory, put:
      myHost=htdocs in the config/virtualHost.properties file.
  • How to prevent server automatically map servlet alias to /servlet/ServletAlias?
  • Auto reload is truned on, whey isn't the server autoload the new .war file I added in?
      If you added your .war file in the wars/ directory after server started, you must click on the "Reload Wars" button to init it. After the server know the .war file exists, it will mapp it and reload it if new version is available.
  • How to add a .war file in a .war file?
      To add a WAR in andother WAR, add the .war file in the other war file's WEB-INF/wars directory, and zip it alone with other files of the war. Example, you have aaa.war and bbb.war, put bbb.war in WEB-INF/wars/ directory in aaa.war and zip it. you can then access bbb by: aaa/bbb/.
  • How to implement a different server user DB
      Server User DB is a class that the server uses to identify the users of the server (used to authenticate user accesses). See the following link for code. See the faq
  • How to add users.
      You can either edit the config/users.properties directly or use config servlet.
      To edit the users.properties file directly, open the file, and to add user foo password bar and assign him/her the role of both admin and mngr, add the line:
      foo=bar,admin,mngr
      to the file. Then use the 'reloadUsers.bat' in the server's directory to let server know the new user (or just restart the server)
      To use the config servlet, connect to http://localhost/srvConfig/ and click on 'edit users' link on top. then just set username, password, and add roles sperated by comma (,).