Changes

Jump to navigation Jump to search
1,118 bytes added ,  14:10, 12 November 2019
* Run one of the {{Code|basexhttp}} or {{Code|basexhttp.bat}} scripts. Call the script with the {{Code|stop}} keyword to gracefully shut down the server.
* If you have installed BaseX on ''Windows'', click on the '''BaseX HTTP Server''' icon.
 
The command-line output will look something like that (the JSP warning message [http://stackoverflow.com/questions/3521654/missing-jsp-support-in-jetty-or-confusing-log-message can be ignored]):
 
<pre class="brush:xml">
BaseX [HTTP Server]
[main] INFO org.eclipse.jetty.util.log - Logging initialized @375ms to org.eclipse.jetty.util.log.Slf4jLog
[main] INFO org.eclipse.jetty.server.Server - jetty-9.4.21.v20190926; built: 2019-09-26T16:41:09.154Z; git: 72970db61a2904371e1218a95a3bef5d79788c33; jvm 13+33
[main] INFO org.eclipse.jetty.webapp.StandardDescriptorProcessor - NO JSP Support for /, did not find org.eclipse.jetty.jsp.JettyJspServlet
...
Server was started (port: 1984).
HTTP Server was started (port: 80).
HTTP STOP Server was started (port: 8985).
</pre>
 
You can adjust the Jetty logging level by adding the following properties to the start script:
 
<pre class="brush:xml">
-Dorg.eclipse.jetty.util.log.class=org.eclipse.jetty.util.log.StdErrLog -D{classref}.LEVEL=DEBUG
</pre>
 
After that, you can e. g. open your browser and navigate to the RESTXQ start page http://localhost:8984.
Various [[Command-Line_Options#HTTP Server|command-line options]] are available to simplify batch processing. The [[Start_Scripts|start script]] can be adjusted for individual purposed (e.g. if the default memory limit is too restrictive).
BaseX can also be deployed as web servlet in a servlet container or with Maven:
 
==Embedded==
==Servlet Container==
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu