Thou shalt not try me. Mom 24:7
Experience keeps a dear School, but Fools will learn in no other.
---
Benjamin Franklin - Postal official and Weather observer
Jim Venolia wrote:In my universe CGI is Computer Graphics Interactive. You know, the stuff that makes those awful Michael Bay movies possible.
I smell a possibility for confusion here.
Experience keeps a dear School, but Fools will learn in no other.
---
Benjamin Franklin - Postal official and Weather observer
been so long
Why ? Having some background over the same field, I do not see a direct relation between Tomcat/Java and the movies based CGI that can cause a confusion.Jim Venolia wrote: ... I smell a possibility for confusion here.
salvin francis wrote:
Why ? Having some background over the same field, I do not see a direct relation between Tomcat/Java and the movies based CGI that can cause a confusion.Jim Venolia wrote: ... I smell a possibility for confusion here.
Experience keeps a dear School, but Fools will learn in no other.
---
Benjamin Franklin - Postal official and Weather observer
Experience keeps a dear School, but Fools will learn in no other.
---
Benjamin Franklin - Postal official and Weather observer
Norm Radder wrote:Have you tried with a simpler URL: http://127.0.0.1:8080/Norms/cgi-bin/ENV2HTML.PL
I was able to configure TomCat 8.0.32 to call the perl script and return with it output to my browser
Tim Holloway wrote:OK, first of all NO Java webapp server - including Tomcat - will serve anything out of any file or directory under WEB-INF. That's defined by the 2EE/JEE standards specification. The WEB-INF directory is reserved to hold support files and other vital assets that outsiders shouldn't be able to mess around with, so it's hidden from URL web requests and so are its contents.
The How-To says something different? Have I misinterpreted it? : https://dzone.com/articles/enable-cgi-mode-in-tomcat
Secondly, jQuery isn't necessarily Java. The "j" is for Javascript, and it's a client-side library package used to support AJAX and other advanced client-side functions and features. It is very popular in Java apps, but it can be used with non-Java apps on non-java servers (such as Apache httpd server, which is a completely different software system from Apache Tomcat). It doesn't require or use CGI.
Sorry if I implied jQuery was java. I know it is javascript and I am trying to use AJAX;
Thirdly, Enterprise Java (J2EE/JEE) does NOT work on loose collections of files. It is based on the WAR (or EAR) architecture which can be represented as a ZIP (or more accurately a JAR) file. The Tomcat webapps directory is simply Tomcat's default place to keep deployed WARs, your WAR name is WebRTCApp and what you therefore have is what is known as an "exploded" WAR, which is to say an unzipped version of what would in strict JEE terms be a file named WebRTCApp.war.
And if that sounds needlessly pedantic never forget that computers are infinitely more pedantic, and if you don't understand the rules, you're likely to not follow them correctly and you're likely to have things fail for reasons you don't understand.
It might help if you could tell us where you got that webapp from. It's probably hideously obsolete, but at least then we could figure out what it really needs.
And finally, Tomcat doesn't normally listen on port 5443. I suspect that's supposed to be an SSL port, although Tomcat's default for SSL is 8443 and only a change to the Tomcat config file will make it listen on 5443.
The app is from antmedia.io the community version. And yes, it's configured to run ssl on 5443. I don't think it's obsolete. If does what it is developed to do. I'm just trying to slightly modify it via html and javascript.
Thanks for the response and appreciate it!
got the same error.
Norm Radder wrote:
got the same error.
Strange. The URL I posted does a GET not a POST.
Have you looked at the DOS window console where tomcat is running for error messages?
Experience keeps a dear School, but Fools will learn in no other.
---
Benjamin Franklin - Postal official and Weather observer
Experience keeps a dear School, but Fools will learn in no other.
---
Benjamin Franklin - Postal official and Weather observer
Tim Holloway wrote:That was rather loud.
OK, a quick trip to antmedia.io seems to be something I'd expect to be more up-to-date than CGI, but whatever.
I think the URL you want is more like https://localhost:5443/WebRTCApp/cgi-bin/hello.cgi
Tried it. It does not work.
Which, incidentally, is more like non-Java CGI URLs look as well. Now that I think of it, my Nagios server is CGI-based.
Also, as I said, Tomcat doesn't come pre-configured to use port 5443, so you're going to either have to use port 8443 or change the Tomcat server.xml file to use port 5443. And since this is SSL, you WILL need to setup a keystore and certificate no matter which port you use.
The app come with an ssl install script, using "Lets Encrypt" and port 5443.
Also, please warn us when cross-posting to other sites/forums. It helps in keeping people from getting confused.
I thought I answered this reply already but when I came back to read it, I didn't see any of the comments I made? Weird.
Tim Holloway wrote:Also, some general notes. Apparently some people are running this product in Docker containers. I don't know if that's an option for the Community Edition or not, but if so, it's probably going to be a lot easier to get running.
If I can get this to work, I am considering running this in containers, sure!
I think a system I worked on about 2 years ago did something similar, but it was based on MediaTomb, which is now known as Gerbera. That was a completely non-Java system, though.
Norm Radder wrote:Is there a window that you can open and issue the command to start tomcat so any error messages it prints out are shown?
On windows it writes lots of messages on the console window.
D:\apache-tomcat-8.0.32\bin>"C:\Program Files\Java\jdk1.8.0_60\jre\bin\java.exe" -cp bootstrap.jar;tomcat-juli.jar org.apache.catalina.startup.Bootstrap start
Jul 18, 2019 8:08:49 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server version: Apache Tomcat/8.0.32
Jul 18, 2019 8:08:49 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server built: Feb 2 2016 19:34:53 UTC
Jul 18, 2019 8:08:49 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server number: 8.0.32.0
Jul 18, 2019 8:08:49 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: OS Name: Windows 10
Jul 18, 2019 8:08:49 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: OS Version: 10.0
Jul 18, 2019 8:08:49 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: Architecture: amd64
Jul 18, 2019 8:08:49 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: Java Home: C:\Program Files\Java\jdk1.8.0_60\jre
Jul 18, 2019 8:08:49 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: JVM Version: 1.8.0_60-b27
Jul 18, 2019 8:08:49 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: JVM Vendor: Oracle Corporation
Jul 18, 2019 8:08:49 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: CATALINA_BASE: D:\apache-tomcat-8.0.32
Jul 18, 2019 8:08:49 AM org.apache.catalina.startup.VersionLoggerListener log
INFO: CATALINA_HOME: D:\apache-tomcat-8.0.32
Jul 18, 2019 8:08:49 AM org.apache.catalina.core.AprLifecycleListener lifecycleEvent
INFO: Loaded APR based Apache Tomcat Native library 1.2.4 using APR version 1.5.1.
Jul 18, 2019 8:08:49 AM org.apache.catalina.core.AprLifecycleListener lifecycleEvent
INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].
Jul 18, 2019 8:08:50 AM org.apache.catalina.core.AprLifecycleListener initializeSSL
INFO: OpenSSL successfully initialized (OpenSSL 1.0.2e 3 Dec 2015)
Jul 18, 2019 8:08:51 AM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-apr-8080"]
Jul 18, 2019 8:08:51 AM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-apr-8009"]
Jul 18, 2019 8:08:51 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 2813 ms
Jul 18, 2019 8:08:51 AM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
Jul 18, 2019 8:08:51 AM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/8.0.32
Jul 18, 2019 8:08:51 AM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive D:\apache-tomcat-8.0.32\webapps\quercus-4.0.39.war
Jul 18, 2019 8:08:53 AM org.apache.jasper.servlet.TldScanner scanJars
INFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
Jul 18, 2019 8:08:53 AM org.apache.catalina.util.SessionIdGeneratorBase createSecureRandom
INFO: Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [355] milliseconds.
Jul 18, 2019 8:08:53 AM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deployment of web application archive D:\apache-tomcat-8.0.32\webapps\quercus-4.0.39.war has finished in 1,935 ms
Jul 18, 2019 8:08:53 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory D:\apache-tomcat-8.0.32\webapps\docs
Jul 18, 2019 8:08:54 AM org.apache.jasper.servlet.TldScanner scanJars
INFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
Jul 18, 2019 8:08:54 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deployment of web application directory D:\apache-tomcat-8.0.32\webapps\docs has finished in 748 ms
Jul 18, 2019 8:08:54 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory D:\apache-tomcat-8.0.32\webapps\examples
Jul 18, 2019 8:08:57 AM org.apache.jasper.servlet.TldScanner scanJars
INFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
Jul 18, 2019 8:08:57 AM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
Jul 18, 2019 8:08:57 AM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
Jul 18, 2019 8:08:57 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deployment of web application directory D:\apache-tomcat-8.0.32\webapps\examples has finished in 3,009 ms
Jul 18, 2019 8:08:57 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory D:\apache-tomcat-8.0.32\webapps\HIW
Jul 18, 2019 8:08:58 AM org.apache.jasper.servlet.TldScanner scanJars
INFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
Jul 18, 2019 8:08:58 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deployment of web application directory D:\apache-tomcat-8.0.32\webapps\HIW has finished in 515 ms
Jul 18, 2019 8:08:58 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory D:\apache-tomcat-8.0.32\webapps\host-manager
Jul 18, 2019 8:08:58 AM org.apache.jasper.servlet.TldScanner scanJars
INFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
Jul 18, 2019 8:08:58 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deployment of web application directory D:\apache-tomcat-8.0.32\webapps\host-manager has finished in 541 ms
Jul 18, 2019 8:08:58 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory D:\apache-tomcat-8.0.32\webapps\jsp-examples
Jul 18, 2019 8:09:01 AM org.apache.jasper.servlet.TldScanner scanJars
INFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
Jul 18, 2019 8:09:01 AM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
Jul 18, 2019 8:09:01 AM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
Jul 18, 2019 8:09:01 AM org.apache.tomcat.util.descriptor.web.SecurityConstraint findUncoveredHttpMethods
SEVERE: For security constraints with URL pattern [/security/protected/*] only the HTTP methods [DELETE POST GET PUT] are covered. All other methods are uncovered.
Jul 18, 2019 8:09:01 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deployment of web application directory D:\apache-tomcat-8.0.32\webapps\jsp-examples has finished in 2,414 ms
Jul 18, 2019 8:09:01 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory D:\apache-tomcat-8.0.32\webapps\manager
Jul 18, 2019 8:09:01 AM org.apache.jasper.servlet.TldScanner scanJars
INFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
Jul 18, 2019 8:09:01 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deployment of web application directory D:\apache-tomcat-8.0.32\webapps\manager has finished in 651 ms
Jul 18, 2019 8:09:01 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory D:\apache-tomcat-8.0.32\webapps\Norms
Jul 18, 2019 8:09:03 AM org.apache.jasper.servlet.TldScanner scanJars
INFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
Jul 18, 2019 8:09:03 AM org.apache.tomcat.util.descriptor.web.SecurityConstraint findUncoveredHttpMethods
SEVERE: For security constraints with URL pattern [/jsp/security/protected/*] only the HTTP methods [DELETE POST GET PUT] are covered. All other methods are uncovered.
Jul 18, 2019 8:09:03 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deployment of web application directory D:\apache-tomcat-8.0.32\webapps\Norms has finished in 1,517 ms
Jul 18, 2019 8:09:03 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory D:\apache-tomcat-8.0.32\webapps\php
Jul 18, 2019 8:09:03 AM org.apache.jasper.servlet.TldScanner scanJars
INFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
Jul 18, 2019 8:09:03 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deployment of web application directory D:\apache-tomcat-8.0.32\webapps\php has finished in 638 ms
Jul 18, 2019 8:09:03 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory D:\apache-tomcat-8.0.32\webapps\ROOT
Jul 18, 2019 8:09:04 AM org.apache.jasper.servlet.TldScanner scanJars
INFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
Jul 18, 2019 8:09:04 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deployment of web application directory D:\apache-tomcat-8.0.32\webapps\ROOT has finished in 589 ms
Jul 18, 2019 8:09:04 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory D:\apache-tomcat-8.0.32\webapps\servlets-examples
Jul 18, 2019 8:09:05 AM org.apache.jasper.servlet.TldScanner scanJars
INFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
Jul 18, 2019 8:09:05 AM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
Jul 18, 2019 8:09:05 AM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
Jul 18, 2019 8:09:05 AM org.apache.tomcat.util.descriptor.web.SecurityConstraint findUncoveredHttpMethods
SEVERE: For security constraints with URL pattern [/jsp/security/protected/*] only the HTTP methods [DELETE POST GET PUT] are covered. All other methods are uncovered.
Jul 18, 2019 8:09:05 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deployment of web application directory D:\apache-tomcat-8.0.32\webapps\servlets-examples has finished in 627 ms
Jul 18, 2019 8:09:05 AM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-apr-8080"]
Jul 18, 2019 8:09:05 AM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["ajp-apr-8009"]
Jul 18, 2019 8:09:05 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 13320 ms
Experience keeps a dear School, but Fools will learn in no other.
---
Benjamin Franklin - Postal official and Weather observer
Experience keeps a dear School, but Fools will learn in no other.
---
Benjamin Franklin - Postal official and Weather observer
Tim Holloway wrote:1. Did you configure Tomcat to listen on port 5443?
Yes. I thought I mentioned that?
2. Did you setup an SSL keystore and define certs?
I'm not sure what that exactly means?
Until you do that, no URL path will work.
Again, like I said. This app works as designed, using https!
I am simply trying what should be an easy modification that I cannot get to work!
Ray Jender wrote:
Tim Holloway wrote:1. Did you configure Tomcat to listen on port 5443?
Yes. I thought I mentioned that?
2. Did you setup an SSL keystore and define certs?
I'm not sure what that exactly means?
Until you do that, no URL path will work.
Again, like I said. This app works as designed, using https!
I am simply trying what should be an easy modification that I cannot get to work!