Hi Sovello,
It could also be the port that’s used for stopping BaseX (8985). It can be adjusted via -s [1].
Cheers Christian
[1] http://docs.basex.org/wiki/Command-Line_Options#HTTP_Server
On Wed, May 18, 2016 at 5:18 PM, Dirk Kirsten dk@basex.org wrote:
Hello Sovello,
looks like there is already another service (most likely another instance of BaseX server) running on port 1984. Please note that by default there are two ports opened for the basexhttp server: One for the BaseX server (default 1984) and another one for the Jetty application container (default 8984).
You can define another port using the -h argument
Hope that helps, Dirk
On 05/18/2016 05:10 PM, Sovello Hildebrand Mgani wrote:
Hi! I have downloaded BaseX 8.4.4 and running it on Ubuntu 14.04[.4] I have added basex/bin to $PATH so I can be able to run basex, basexhttp ecc. I can successfully run basex and basexserver. RUnning the HTTP server fails with this message
$ basexhttp [main] INFO org.eclipse.jetty.server.Server - jetty-8.1.18.v20150929 [main] INFO org.eclipse.jetty.webapp.StandardDescriptorProcessor - NO JSP Support for /, did not find org.apache.jasper.servlet.JspServlet [main] INFO / - Aliases are enabled! Security constraints may be bypassed!!! Server was started (port: 1984). [main] INFO org.eclipse.jetty.server.AbstractConnector - Started SelectChannelConnector@0.0.0.0:8984 HTTP Server was started (port: 8984). Server is running or permission was denied. Server was stopped (port: 1984).
and the output when I run $ basexhttp -d DEBUG: true BaseX 8.4.4 [HTTP Server] [main] INFO org.eclipse.jetty.server.Server - jetty-8.1.18.v20150929 [main] INFO org.eclipse.jetty.webapp.StandardDescriptorProcessor - NO JSP Support for /, did not find org.apache.jasper.servlet.JspServlet [main] INFO / - Aliases are enabled! Security constraints may be bypassed!!! WEBPATH: /opt/oim/basex/webapp DEBUG: true Server was started (port: 1984). [main] INFO org.eclipse.jetty.server.AbstractConnector - Started SelectChannelConnector@0.0.0.0:8984 HTTP Server was started (port: 8984). java.net.BindException: Address already in use at java.net.PlainSocketImpl.socketBind(Native Method) at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:387) at java.net.ServerSocket.bind(ServerSocket.java:375) at java.net.ServerSocket.bind(ServerSocket.java:329) at org.basex.BaseXHTTP$StopServer.<init>(BaseXHTTP.java:430) at org.basex.BaseXHTTP.<init>(BaseXHTTP.java:147) at org.basex.BaseXHTTP.main(BaseXHTTP.java:52) Server is running or permission was denied. Server was stopped (port: 1984).
Which shows address is already in use. I only have apache2 and have run apache2 and tomcat earlier on the same laptop without issues, and I don't have any service that is listening on that port 8984.
(I have tried running BaseX from version 8.0 and get the same errors). Am not sure what is not OK.
Can you give me pointers to resolve this?
Cheers
-- :: Sovello Hildebrand Mgani ::
--If you teach man to fish, you'll feed him a lifetime--
-- Dirk Kirsten, BaseX GmbH, http://basexgmbh.de |-- Firmensitz: Blarerstrasse 56, 78462 Konstanz |-- Registergericht Freiburg, HRB: 708285, Geschäftsführer: | Dr. Christian Grün, Dr. Alexander Holupirek, Michael Seiferle `-- Phone: 0049 7531 91 68 276, Fax: 0049 7531 20 05 22