waarp / WaarpProxyR66

All Waarp modules have been regrouped in a new repository: https://github.com/waarp/Waarp-All. This repository is outdated and will not be maintained anymore.
Other
3 stars 3 forks source link

Cannot start R66Proxy : REQER_HOST_ID error #1

Closed ghost closed 11 years ago

ghost commented 11 years ago

Hello,

It seems that the configuration has no field for REQER_HOST_ID but the file FileBasedConfiguration.java is trying ot use one. I get the following error message when trying to start the Proxy:

[root@waarp-proxy conf]# /opt/jdk1.7.0_17/jre/bin/java -server -Xms256m -Xmx4096m  -cp  /opt/R66/lib/WaarpProxyR66-1.0.0.jar:/opt/R66/lib/*   -Dlogback.configurationFile=/opt/R66/conf/logback.xml   org.waarp.openr66.proxy.R66Proxy /opt/R66/conf/config-serverproxy.xml
Exception in thread "main" java.lang.NoSuchFieldError: REQER_HOST_ID
    at org.waarp.openr66.proxy.configuration.FileBasedConfiguration.loadIdentity(FileBasedConfiguration.java:448)
    at org.waarp.openr66.proxy.configuration.FileBasedConfiguration.setConfigurationProxyFromXml(FileBasedConfiguration.java:1054)
    at org.waarp.openr66.proxy.R66Proxy.initialize(R66Proxy.java:62)
    at org.waarp.openr66.proxy.R66Proxy.main(R66Proxy.java:47)

Is that the right way of starting the proxy ? I've taken example on how to start the server, there's no documentation on how to start the proxy by the way.

Regards,

fredericBregier commented 11 years ago

Hello,

First of all, yes, I agree that this module misses really a documentation. I was hoping that the following could be enough:

The Proxy is launched like a R66 server, but with less argument in the configuration file, and with some totally dedicated to the proxy mode. So the command line you give is correct. It can be stopped like R66 servers too.

Now back to the error: between 2.4.10 and 2.4.15 of R66, those 2 fields disapear since there were not used at all anywhere (even in Proxy). So the issue is on the version of Waarp R66 used with Proxy jar.

I will fix this immediately and promote a new version of Proxy.

Once the Proxy is started, it has also a HTTPS administration interface, as with R66, but of course with less options.

Regards,

fredericBregier commented 11 years ago

Hello again,

I just update R66 to 2.4.15 and Proxy to 1.0.1. A start of documentation is at:

http://waarp.github.io/Waarp/ProxyR66.html

Thanks to point us this issue ! Frederic

ghost commented 11 years ago

Thank you for your fast correction. The proxy is now starting without any issue. And the start of documentation is exactly what I was looking for (I had found the example file in the source code but it wasn't that clear to me).