how to create httpprovider for wowza server - wowza

I Created a HTTP Provider and compiled it in eclipse and put the jar in /lib/ folder.
And added the HTTPProvider in VHost.xml
<HTTPProvider>
<BaseClass>com.domain.appname.CreateApp</BaseClass>
<RequestFilters>CreateProducerApp*</RequestFilters>
<AuthenticationMethod>none</AuthenticationMethod>
</HTTPProvider>
<HTTPProvider>
<BaseClass>com.wowza.wms.http.HTTPConnectionInfo</BaseClass>
<RequestFilters>connectioninfo*</RequestFilters>
<AuthenticationMethod>admin-digest</AuthenticationMethod>
</HTTPProvider>
I restarted wowza and i get this error
WARN server comment 2020-11-02 16:13:06 - - - - - 138.305 - - - - - - - - REST API: Server request (GET): Not Found (404) - The server has not found anything matching the request URI : http://localhost:8087/v2/machine/monitoring/historic?start=2020-11-02T20%3A13&end=2020-11-02T21%3A12
WARN server comment 2020-11-02 16:13:06 - - - - - 138.744 - - - - - - - - StatsDatabaseManager instance not available
Does anyone have any idea? Please help.

Your custom provider is linked to requests that have a pattern http://yourserver.com:port/CreateProducerApp but in the log snippet you were sharing with us, we can see a completely different URL mentioned http://localhost:8087/v2/machine/monitoring/historic. What is the URL that you are using to hit your custom http provider?

You mentioned in the comments that your server is not starting. This might be due to JAVA version. I faced the same issue. By Default, Wowza comes with Java 9. When I developed an HTTP Provider for my use-case, Wowza server didn't use to start after adding the jar file for the HTTP Provider.
I was using openjdk11 to build the source code in Wowza IDE.
I would recommend to check your JAVA Version which you are using to build the source code for provider. If the version in different than what Wowza is using that change the JAVA version in Wowza. Steps to change JAVA version in Wowza are mentioned here

Related

Mule Cloudhub - Service not available for request uri: /*

I am getting very strange problem where after deploying my plain HTTP application on cloudhub, I am getting response message as :
Service not available for request uri: /*
The same application works fine when I run it from my local anypoint studio embedded server.
Please could one help or have faced this issue ?
I assume you are using cloudhub url properly?
-Anand

WSO2 IOTS: HTTP Status 500 - Cannot call method "getUIPermissions" of undefined

when I trying to start WSO2 IoTs Server and go to https://localhost:9443/devicemgt, I'm getting the error
HTTP Status 500 - Cannot call method getUIPermissions of undefined.
I'm using MySQL and run WSO2 IoTs alone on localhost.
Carbon Logs here
This issue is raised when you try to start the pack with a -Dsetup. You can execute the database scripts that are available in the dbscripts folder manually and then run the product. This issue has been fixed after the alpha release.

WSO2 BPS - BPMN API not working

I'm trying to use the REST API for BPMN following the documentation, but even the most basic requests such as
https://localhost:9443/bpmn/repository/deployments
or
https://localhost:9443/bpmn/repository/process-definitions
return the following error
{"statusCode":400,"errorMessage":"javax.ws.rs.InternalServerErrorException.validate(Ljavax/ws/rs/core/Response;Ljavax/ws/rs/core/Response$Status;)Ljavax/ws/rs/core/Response;"}
I'm using BPS server 3.5.1 with Oracle JDK 1.8.0_77, as it was downloaded, with the only addition of a BPMN process to test its dashboard. The service is run as root (via sudo)
What can be done to fix this?
Thanks
I tried it on postman and it works perfectly. Please choose the correct request type (GET, POST, PUT or DELETE), if not the following error will be thrown on the server side:
javax.ws.rs.ClientErrorException.validate(Ljavax/ws/rs/core/Response;Ljavax/ws/rs/core/Response$Status$Family;)Ljavax/ws/rs/core/Response;

Google Admin SDK Channel Stop endpoint is broken in client libraries

There appears to be something wrong with the Google Admin SDK Channel Stop endpoint affecting all the language libraries. At least Node, Ruby and PHP.
I'm having the issue with "directory"…
It should be: https://www.googleapis.com/admin/directory/v1/channels/stop (404)
This works: https://www.googleapis.com/admin/directory_v1/channels/stop
This is generated: https://www.googleapis.com/admin/directory/v1//admin/directory_v1/channels/stop (404)
Someone else if having the problem with "reports"…
Stop watching google push notifications
Ruby library issue…
https://github.com/google/google-api-ruby-client/issues/251
Node client: https://github.com/google/google-api-nodejs-client/blob/1c0407e56e12a05ec8fa7679df19bdd2436969f5/apis/admin/directory_v1.js
Ruby client: https://github.com/google/google-api-ruby-client/blob/41d9d66e8190c8ced331fcc5e156c5123941d713/generated/google/apis/admin_directory_v1/service.rb
PHP client: https://github.com/google/google-api-php-client/blob/da350e19472f5711703a68a77c6df8d1f5ed4fd4/src/Google/Service/Directory.php
Yes, this appears to be a bug in our API serving system that only affects the Admin SDK Directory and Reports APIs. I'm working with the team to find a resolution.

Authentication and Autherization using ESB and IS

I am trying to follow up with the samples as mentioned in:
http://blog.facilelogin.com/2012/05/authentication-and-authorization-with.html
After following up with everystep, when I try to test it using TryIt, the Identity Server throws the following error:
Access Denied. Please Login First.
The Servers are running at their default configuration, except for the ports - ESB on 9443 and IS on 9445.
ESB version: 4.5.1
IS version: 3.2.3
Kindly let me know what configuration is missing.
Thanks,
Praveen
refer this to understand more on Authentication and Autherization using ESB and IS Patterns.
furthermore, this slide set has interesting Security patterns with ESB