Results 1 to 6 of 6

Thread: Adding custom HTTPProvider makes the VHost not starting.

  1. #1

    Default Adding custom HTTPProvider makes the VHost not starting.

    So I had my Wowza set up in another computer running on Ubuntu. Now I want to connect my custom HTTP Provider. I edited the VHost.xml in the conf directory. But after I restart my server, the vhost won't start automatically. Also, the ports indicated in the VHost.xml won't bind. I've made sure that the xml is correct but still it won't work. Later, I've reverted my the changes I made in the VHost.xml and it worked. But I tried adding again, still the vhost won't start.

    My Wowza is in its latest version.
    <HTTPProviders>
    <HTTPProvider>
    <BaseClass>com.wowza.wms.http.HTTPCrossdomain</BaseClass>
    <RequestFilters>*crossdomain.xml</RequestFilters>
    <AuthenticationMethod>none</AuthenticationMethod>
    </HTTPProvider>
    <HTTPProvider>
    <BaseClass>com.wowza.wms.http.HTTPClientAccessPolicy</BaseClass>
    <RequestFilters>*clientaccesspolicy.xml</RequestFilters>
    <AuthenticationMethod>none</AuthenticationMethod>
    </HTTPProvider>
    <HTTPProvider>
    <BaseClass>com.wowza.wms.http.HTTPProviderMediaList</BaseClass>
    <RequestFilters>*jwplayer.rss|*jwplayer.smil|*medialist.smil|*manifest-rtmp.f4m</RequestFilters>
    <AuthenticationMethod>none</AuthenticationMethod>
    </HTTPProvider>
    <HTTPProvider>
    <BaseClass>com.wowza.wms.timedtext.http.HTTPProviderCaptionFile</BaseClass>
    <RequestFilters>*.ttml|*.srt|*.scc|*.vtt</RequestFilters>
    <AuthenticationMethod>none</AuthenticationMethod>
    </HTTPProvider>
    <HTTPProvider>
    <BaseClass>com.wowza.wms.webapps.MyNewProvider</BaseClass>
    <RequestFilters>testprovider*</RequestFilters>
    <AuthenticationMethod>none</AuthenticationMethod>
    </HTTPProvider>
    <HTTPProvider>
    <BaseClass>com.wowza.wms.http.HTTPServerVersion</BaseClass>
    <RequestFilters>*</RequestFilters>
    <AuthenticationMethod>none</AuthenticationMethod>
    </HTTPProvider>
    </HTTPProviders>

    Am I missing something? Thanks.

  2. #2

    Default

    Hello,

    Do you see any indication of the issue in the logs? You can start Wowza in stand alone mode and view the output in the console [install-dir]/bin/startup.bat|startup.sh

    Thank you,

    Salvadore

  3. #3

    Default

    Quote Originally Posted by salvadore View Post
    Hello,

    Do you see any indication of the issue in the logs? You can start Wowza in stand alone mode and view the output in the console [install-dir]/bin/startup.bat|startup.sh

    Thank you,

    Salvadore

    Hey, thanks for the reply. The logs get stuck before binding the virtual ports. I don't know why this doesn't work while it works in my EC2. No errors.

  4. #4

    Default

    Oh, I saw it. Here's the exception:

    java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at com.wowza.wms.bootstrap.Bootstrap.startServer(Bootstrap.java:555)
    at com.wowza.wms.bootstrap.Bootstrap.main(Bootstrap.java:67)
    Caused by: java.lang.UnsupportedClassVersionError: com/wowza/wms/webapps/WinOneCaster : Unsupported major.minor version 52.0
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
    at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:191)
    at com.wowza.wms.util.VHostUtils.loadHTTPProvider(VHostUtils.java:61)
    at com.wowza.wms.util.VHostUtils.loadHostPort(VHostUtils.java:609)
    at com.wowza.wms.util.VHostUtils.loadHostPortList(VHostUtils.java:686)
    at com.wowza.wms.util.VHostUtils.loadConfigFile(VHostUtils.java:978)
    at com.wowza.wms.vhost.VHost.c(VHost.java:1185)
    at com.wowza.wms.vhost.VHost.init(VHost.java:501)
    at com.wowza.wms.vhost.VHostSingleton.init(VHostSingleton.java:62)
    at com.wowza.wms.server.Server.startVHost(Server.java:2242)
    at com.wowza.wms.server.Server.startVHosts(Server.java:2791)
    at com.wowza.wms.server.Server.start(Server.java:1016)
    ... 6 more

  5. #5

    Default

    I got it now. My EC2 and my other server have two different java versions. Thanks for helping.

  6. #6

    Default

    Cool, thanks for the update and glad you got this sorted out.

    Salvadore

Similar Threads

  1. VHost.getApplication() freezes module when called in HTTPProvider
    By gradicus in forum Wowza Streaming Server Java API
    Replies: 1
    Last Post: 05-16-2014, 08:10 AM
  2. Starting to develop a custom module
    By alpexdigital in forum Wowza Streaming Server Java API
    Replies: 3
    Last Post: 05-05-2014, 04:41 PM
  3. Adding a custom log file and custom log fields.
    By arkroan in forum Server Administration Discussion
    Replies: 17
    Last Post: 01-28-2014, 05:59 AM
  4. Adding/stopping/starting streams from the shell
    By doctordbx in forum General Forum
    Replies: 1
    Last Post: 01-04-2012, 07:27 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •