FORUMS: list search recent posts

CatDV Server 6.8b1 with external web server

COW Forums : Square Box CatDV

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
Toni Popovic
CatDV Server 6.8b1 with external web server
on Apr 17, 2013 at 6:45:46 am

Hey,

Has anyone tried the latest CatDV Server version with an external web server? I upgraded from 6.6b11 in Windows and now I have trouble figuring out the right settings for the control panel:

  • The documentation states some embedded server settings should be used (at least the port number) even if the embedded web server is disabled. This is confusing in my opinion.
  • Also the Web Client URL (in the embedded web server settings) is a bit weird because two different .war files are provided: catdv2 and websample. Where should the relative URL point?
  • The Document Root is presumably the Tomcat webapps directory where the catdv2 webapp is deployed.

  • I also think that something has fundamentally changed with the catdv2.war file as my Tomcat can't start it anymore. The basic Tomcat manager tells me that the websample app is running but the catdv2 app is not and I can't get it to start whatever I try. The webserver worked before I deployed the new catdv2.war. Since then, the webclient stopped answering even after numerous reboots and restarts.

    If this makes any difference the control panel says next to the webserver "Unexpected end of file from server". This probably is related to the catdv2 webapp not starting at all.

    Any ideas or comments?

    Best,
    Toni Popovic


    Return to posts index

    John Vaudin
    Re: CatDV Server 6.8b1 with external web server
    on Apr 17, 2013 at 10:12:34 am

    Starting with server 6.8 the preferred method of deploying the web client is using the built in web server. You can still use an external copy of Tomcat, but you have to set it up manually.

    Taking your specific questions:

    1. The reason you still need to fill in the port if you are using Tomcat is so that the Control Panel can monitor the web service and check it's running OK. It doesn't affect the anything in Tomcat.

    2. The catdv2.war file contains the CatDV WebClient itself, whereas the websamples.war file contains the sample web apps that you are free to use as the starting point for any custom web client you might want to create.

    We no longer deploy the catdv2.war file automatically to Tomcat. The default set up assumes you use the embedded Web Server (which is just embedded Tomcat anyway). Support for using an external copy of Tomcat is really just there for backwards compatibility and also to support running the web server on another machine.

    3. The Document Root typically points to web app installed as the default application (websamples by default). The Web Client url is a relative url from the where the CatDV WebClient should appear - traditionally this is /catdv2. None of these settings are relevant if you are using an external copy of Tomcat.

    If you want to deploy the Web Client to Tomcat you need to copy the catdv.war file to the Tomcat webapps folder. You then need to manually expand it using jar. You then need to copy the lib folder from the CatDV Server installation directory to inside the catdv2 directory you just created. It should then work OK.

    But it's far easier just to use the embedded server!

    John


    Return to posts index

    Toni Popovic
    Re: CatDV Server 6.8b1 with external web server
    on Apr 17, 2013 at 12:02:36 pm

    Thanks for the quick response John!

    I'll try your suggestion about copying the lib folder to the catdv2 directory when I get the chance.

    The reason I decided to continue using the separate web server is SSL-encryption that is not configurable in the embedded version of Tomcat.

    Best,
    Toni Popovic


    Return to posts index


    Toni Popovic
    Re: CatDV Server 6.8b1 with external web server
    on Apr 17, 2013 at 12:40:39 pm

    I tested umpacking the catdv2.war manually, copying the entire lib folder from the CatDV server folder to the tomcatpath\webapps\catdv2 directory, but it did not help. The Tomcat manager still says: FAIL - Application at context path /catdv2 could not be started. Should I copy only the contents or the entire folder?

    Any further ideas? There's also a lib directory in the tomcatpath. Should I copy the CatDV Server lib contents there?

    BR,
    Toni Popovic


    Return to posts index

    Rolf Howarth
    Re: CatDV Server 6.8b1 with external web server
    on Apr 17, 2013 at 11:14:24 pm

    Try searching the various Tomcat log files that should be produced to see if they contain any relevant messages or exceptions.



    Return to posts index

    Toni Popovic
    Re: CatDV Server 6.8b1 with external web server
    on Apr 19, 2013 at 12:31:26 pm

    Hey Rolf,
    Here is some additional information from Tomcat logs:

    Tomcat stderr:

    2013-04-19 15:21:24 Commons Daemon procrun stderr initialized
    huhti 19, 2013 3:21:25 IP. org.apache.catalina.core.AprLifecycleListener init
    INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:Program FilesApache Software FoundationTomcat 7.0bin;C:WindowsSunJavabin;C:Windowssystem32;C:Windows;C:Program Files (x86)AMD APPbinx86_64;C:Program Files (x86)AMD APPbinx86;C:Program Files (x86)Xugglebin;C:Windowssystem32;C:Windows;C:WindowsSystem32Wbem;C:WindowsSystem32WindowsPowerShellv1.0;C:Program Files (x86)ATI TechnologiesATI.ACECore-Static;c:Program Files (x86)Microsoft SQL Server90Toolsbinn;C:Program Files (x86)MySQLMySQL Server 5.5bin;C:Program FilesJavajdk1.7.0bin;C:Program Files (x86)QuickTimeQTSystem;;.
    huhti 19, 2013 3:21:25 IP. org.apache.coyote.AbstractProtocol init
    INFO: Initializing ProtocolHandler ["http-bio-8080"]
    huhti 19, 2013 3:21:25 IP. org.apache.coyote.AbstractProtocol init
    INFO: Initializing ProtocolHandler ["http-bio-8443"]
    huhti 19, 2013 3:21:25 IP. org.apache.catalina.startup.Catalina load
    INFO: Initialization processed in 628 ms
    huhti 19, 2013 3:21:25 IP. org.apache.catalina.core.StandardService startInternal
    INFO: Starting service Catalina
    huhti 19, 2013 3:21:25 IP. org.apache.catalina.core.StandardEngine startInternal
    INFO: Starting Servlet Engine: Apache Tomcat/7.0.22
    huhti 19, 2013 3:21:25 IP. org.apache.catalina.startup.HostConfig deployWAR
    INFO: Deploying web application archive websamples.war
    huhti 19, 2013 3:21:25 IP. org.apache.catalina.startup.SetContextPropertiesRule begin
    WARNING: [SetContextPropertiesRule]{Context} Setting property 'debug' to '1' did not find a matching property.
    huhti 19, 2013 3:21:25 IP. org.apache.catalina.startup.HostConfig deployDirectory
    INFO: Deploying web application directory catdv2
    huhti 19, 2013 3:21:26 IP. org.apache.catalina.core.StandardContext startInternal
    SEVERE: Error listenerStart
    huhti 19, 2013 3:21:26 IP. org.apache.catalina.core.StandardContext startInternal
    SEVERE: Context [/catdv2] startup failed due to previous errors
    huhti 19, 2013 3:21:26 IP. org.apache.catalina.startup.HostConfig deployDirectory
    INFO: Deploying web application directory manager
    huhti 19, 2013 3:21:26 IP. org.apache.coyote.AbstractProtocol start
    INFO: Starting ProtocolHandler ["http-bio-8080"]
    huhti 19, 2013 3:21:26 IP. org.apache.coyote.AbstractProtocol start
    INFO: Starting ProtocolHandler ["http-bio-8443"]
    huhti 19, 2013 3:21:26 IP. org.apache.catalina.startup.Catalina start
    INFO: Server startup in 385 ms


    Localhost:


    huhti 19, 2013 3:21:25 IP. org.apache.catalina.core.ApplicationContext log
    INFO: Marking servlet cgi as unavailable
    huhti 19, 2013 3:21:25 IP. org.apache.catalina.core.StandardContext loadOnStartup
    SEVERE: Servlet /websamples threw load() exception
    java.lang.SecurityException: Restricted class org.apache.catalina.servlets.CGIServlet
    at org.apache.catalina.core.DefaultInstanceManager.checkAccess(DefaultInstanceManager.java:546)
    at org.apache.catalina.core.DefaultInstanceManager.checkAccess(DefaultInstanceManager.java:537)
    at org.apache.catalina.core.DefaultInstanceManager.loadClassMaybePrivileged(DefaultInstanceManager.java:509)
    at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:126)
    at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1099)
    at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1043)
    at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4957)
    at org.apache.catalina.core.StandardContext$3.call(StandardContext.java:5284)
    at org.apache.catalina.core.StandardContext$3.call(StandardContext.java:5279)
    at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
    at java.util.concurrent.FutureTask.run(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)

    huhti 19, 2013 3:21:26 IP. org.apache.catalina.core.StandardContext listenerStart
    SEVERE: Error configuring application listener of class squarebox.catdv.web.services.SessionManager
    java.lang.ClassNotFoundException: squarebox.catdv.web.services.SessionManager
    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1678)
    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1523)
    at org.apache.catalina.core.DefaultInstanceManager.loadClass(DefaultInstanceManager.java:525)
    at org.apache.catalina.core.DefaultInstanceManager.loadClassMaybePrivileged(DefaultInstanceManager.java:507)
    at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:126)
    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4660)
    at org.apache.catalina.core.StandardContext$1.call(StandardContext.java:5226)
    at org.apache.catalina.core.StandardContext$1.call(StandardContext.java:5221)
    at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
    at java.util.concurrent.FutureTask.run(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)

    huhti 19, 2013 3:21:26 IP. org.apache.catalina.core.StandardContext listenerStart
    SEVERE: Error configuring application listener of class squarebox.catdv.restapi.SessionManager
    java.lang.ClassNotFoundException: squarebox.catdv.restapi.SessionManager
    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1678)
    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1523)
    at org.apache.catalina.core.DefaultInstanceManager.loadClass(DefaultInstanceManager.java:525)
    at org.apache.catalina.core.DefaultInstanceManager.loadClassMaybePrivileged(DefaultInstanceManager.java:507)
    at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:126)
    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4660)
    at org.apache.catalina.core.StandardContext$1.call(StandardContext.java:5226)
    at org.apache.catalina.core.StandardContext$1.call(StandardContext.java:5221)
    at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
    at java.util.concurrent.FutureTask.run(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)

    huhti 19, 2013 3:21:26 IP. org.apache.catalina.core.StandardContext listenerStart
    SEVERE: Skipped installing application listeners due to previous error(s)


    Everything works fine with the old catdv2 directory, which I made a backup of before upgrading. As soon as I put the new webapp in place this happens. I hope this helps if it is a software bug.

    Kind regards,
    Toni Popovic


    Return to posts index


    Rolf Howarth
    Re: CatDV Server 6.8b1 with external web server
    on Apr 19, 2013 at 3:32:43 pm

    Try deleting (or moving) the old contents of the catdv2 folder after copying catdv2.war into the webapps folder. Also, be aware that there's a new 6.8b3 version available at http://www.squarebox.co.uk/download/CatDVServer6.8b3.dmg and http://www.squarebox.co.uk/download/CatDVServer6.8b3.exe

    -Rolf



    Return to posts index


    John Vaudin
    Re: CatDV Server 6.8b1 with external web server
    on Apr 22, 2013 at 9:25:08 am

    Sorry - my mistake - when I said copy the lib folder into catdv2 what I actually meant to say was copy the lib folder into catdv2/WEB-INF.

    Sorry
    John


    Return to posts index

    Toni Popovic
    Re: CatDV Server 6.8b1 with external web server
    on Apr 22, 2013 at 9:45:14 am

    Thanks John and Rolf for the help. The lib folder was in the wrong directory and everything works fine after I moved it to WEB-INF.

    Best,
    Toni Popovic


    Return to posts index

    << PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
    © 2017 CreativeCOW.net All Rights Reserved
    [TOP]