Dear all,
I am struggling with the same problem, and reading the manual did not help ;-)
I have installed
VocBench 3 (v. 10.2.1) and ShowVoc (v. 1.2.1) and on my local machine (Windows 10), each in its own directory:
C:\ShowVoc\semanticturkey-10.2.1\
C:\VocBench3\semanticturkey-10.2.1\
When run separately, both applications work as expected. My problem is how to run them simultaneously.
My question:
What is the recommended configuration for running ShowVoc and VocBench simultaneously on a local machine?
This is what I did:
1. Use a different port for ShowVoc
Set
"org.osgi.service.http.port=1980" (in file C:\ShowVoc\semanticturkey-10.2.1\etc\
org.ops4j.pax.web.cfg)
VocBench uses port 1979. (I have also tried other ports for ShowVoc.)
2. Start both karaf.bat files
This leads to an error when the second karaf instance starts.
>>
Exception in thread "JMX Connector Thread [service:jmx:rmi://127.0.0.1:44444/jndi/rmi://127.0.0.1:1099/karaf-root]" java.lang.RuntimeException:
Port already in use: 44444;
You may have started two containers. If you need to start a second container or the default ports are already in use update the config file etc/org.apache.karaf.management.cfg and change the Registry Port and Server Port to unused ports
at org.apache.karaf.management.ConnectorServerFactory.lambda$init$0(ConnectorServerFactory.java:434)
at java.lang.Thread.run(Unknown Source)
Exception in thread "JMX Connector Thread [service:jmx:rmi://127.0.0.1:44444/jndi/rmi://127.0.0.1:1099/karaf-root]" java.lang.RuntimeException:
Port already in use: 44444;
You may have started two containers. If you need to start a second container or the default ports are already in use update the config file etc/org.apache.karaf.management.cfg and change the Registry Port and Server Port to unused ports
at org.apache.karaf.management.ConnectorServerFactory.lambda$init$0(ConnectorServerFactory.java:434)
at java.lang.Thread.run(Unknown Source)
____ __ _ ______ __
/ __/__ __ _ ___ ____ / /_(_)___ /_ __/_ ______/ /_____ __ __
_\ \/ -_) ' \/ _ `/ _ \/ __/ / __/ / / / // / __/ '_/ -_) // /
/___/\__/_/_/_/\_,_/_//_/\__/_/\__/ /_/ \_,_/_/ /_/\_\\__/\_, /
/___/
developed by ART (Artificial Intelligence Research at Tor Vergata).
Running on Apache Karaf (4.2.15)
Hit '<tab>' for a list of available commands
and '[cmd] --help' for help on a specific command.
Hit '<ctrl-d>' or 'osgi:shutdown' to shutdown Karaf.
17:27:24.461 ERROR [activator-1-thread-1] bind(/0.0.0.0:8101) - failed (BindException) to bind: Address already in use: bind
karaf@root()> ST Home Directory: file:/C:/VocBench3/vocbench3-10.2.1-full/semanticturkey-10.2.1/
Remote SPARQL Endpoints: []
Data dumps: []
Adding data located at: bundle://107.0:0/META-INF/it.uniroma2.art.maple/access_implementations.ttl
ST Started <<
After this, both applications run. It sort of works, except that I need to login again each time I switch from one app to the other. What am I missing?
Kind regards
Roland