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