I used org.apache.http.impl.client.HttpClients to upload file from wowza app to external server.
In WMS 3.6.4 all works fine.
In WSE 4.0.1 I get error:
ERROR server comment 2014-03-11 16:36:57 - - - - - 24.472 - invoke(createSnapshotLive): java.lang.NoSuchFieldError: INSTANCE: org.apache.http.impl.io.DefaultHttpRequestWriterFactory.<init>(DefaultHttpRequestWriterFactory.java:52)
I found why this happens here http://stackoverflow.com/questions/21864521/java-lang-nosuchfielderror-org-apache-http-message-basiclineformatter-instance
The problem is that WSE 4.0.1 has conflicted class with apache http client library.
If I testing my upload file component. No error. Using class from original apache jar
jar:file:/C:/Program%20Files%20(x86)/Wowza%20Media%20Systems/Wowza%20Streaming%20Engine%204.0.1/lib/httpcore-4.3.2.jar!/org/apache/http/message/BasicLineFormatter.class
Then run component from wowza app. Error. Used class from wms-restlet-2.1.6.jar:
jar:file:/usr/local/WowzaStreamingEngine/lib/wms-restlet-2.1.6.jar!/org/apache/http/message/BasicLineFormatter.class
How should I use apache http client 4.3.3 lib in WSE 4.0.1?