Sample App for MediaSense 9.0

Document created by cdnadmin on Jan 25, 2014
Version 1Show Document
  • View in full screen mode
This document was generated from CDN thread

Created by: Jeroen Hermans on 01-02-2013 03:15:50 AM
Hi, I'm trying to deploy the new Sample App for MediaSense 9.0 on a windows 2003 server running apache-tomcat-6.0.32 It's the same server were we are running the old sample app still called supervisor. This is what I've done so far: create a folder 'mediasense' in c:\program files\apache-tomcat-6.0.32\webapps\ Adapt the mediasenserequest.xml to have the baseurl point to my mediasense server (this now looks like https://192.168.12.14:8440/ora/) and copy this to c:\program files\apache-tomcat-6.0.32\webapps\mediasense\ Copy the contents of the WebContent folder to c:\program files\apache-tomcat-6.0.32\webapps\mediasense\ copy the Mediasense.war to c:\program files\apache-tomcat-6.0.32\webapps\ Open firefox and browse to http://192.168.12.17:8080/mediasense/ I get a login page, when I try to login I get the error in the attached screenshot. How can I resolve this?   Thanks, Jeroen    

Subject: Re: New Message from Jeroen Hermans in Cisco MediaSense (MediaSense) - Tech
Replied by: Vaishali Mithbaokar on 01-02-2013 09:42:25 PM
Hi Bruce, Crystal,

Since you have installed the SpinSci app (from CDN), can you take a look to see if the steps followed in the below case are correct?
And respond accordingly?


Thanks,
Vaishali

From: Cisco Developer Community Forums <cdicuser@developer.cisco.com<mailto:cdicuser@developer.cisco.com>>
Reply-To: "cdicuser@developer.cisco.com<mailto:cdicuser@developer.cisco.com>" <cdicuser@developer.cisco.com<mailto:cdicuser@developer.cisco.com>>
Date: Friday, February 1, 2013 1:16 AM
To: "cdicuser@developer.cisco.com<mailto:cdicuser@developer.cisco.com>" <cdicuser@developer.cisco.com<mailto:cdicuser@developer.cisco.com>>
Subject: New Message from Jeroen Hermans in Cisco MediaSense (MediaSense) - Technical Discussion: Sample App for MediaSense 9.0

Jeroen Hermans has created a new message in the forum "Technical Discussion": -------------------------------------------------------------- Hi, I'm trying to deploy the new Sample App for MediaSense 9.0 on a windows 2003 server running apache-tomcat-6.0.32 It's the same server were we are running the old sample app still called supervisor. This is what I've done so far: create a folder 'mediasense' in c:\program files\apache-tomcat-6.0.32\webapps\ Adapt the mediasenserequest.xml to have the baseurl point to my mediasense server (this now looks like https://192.168.12.14:8440/ora/) and copy this to c:\program files\apache-tomcat-6.0.32\webapps\mediasense\ Copy the contents of the WebContent folder to c:\program files\apache-tomcat-6.0.32\webapps\mediasense\ copy the Mediasense.war to c:\program files\apache-tomcat-6.0.32\webapps\ Open firefox and browse to http://192.168.12.17:8080/mediasense/ I get a login page, when I try to login I get the error in the attached screenshot. How can I resolve this?   Thanks, Jeroen
--
To respond to this post, please click the following link: http://developer.cisco.com/web/mediasense/community/-/message_boards/view_message/11395163 or simply reply to this email.

Subject: RE: Sample App for MediaSense 9.0
Replied by: Jeroen Hermans on 04-02-2013 08:27:53 AM
Hi Guys,
 
Any update on this? I'm eager to start testing this new version.
 
Rgds,
 
Jeroen

Subject: RE: Sample App for MediaSense 9.0
Replied by: Bruce Hsunyu Liu on 04-02-2013 09:55:44 AM
Hi Jeroen,

You need to first download the cert from your MediaSense by using Firefox, and add the cert by using the command below:
c:\Java\jdk1.7.0_10\jre\bin> keytool -import -alias mediasensesnp -file c:\ms90.crt -keystore %JAVA_HOME%/jre/lib/security/cacerts
I use Tomcat 7 in a Windows 2008 R2 server, by the way.
 
Thanks, Bruce
 

Subject: RE: Sample App for MediaSense 9.0
Replied by: Jeroen Hermans on 04-02-2013 11:05:44 AM
Hi Bruce,
Thanks for your response.
I have added the certificate succesfully and have restarted tomcat (not sure if this was needed), but I'm still getting the same error.
Any other ideas?
 
Thanks
Jeroen

Subject: RE: Sample App for MediaSense 9.0
Replied by: Bruce Hsunyu Liu on 04-02-2013 11:35:11 AM
Assuming you've successfully configured the AXL Service Provider and API user in MediaSense, how did you download the cert from your MediaSense server, what did you define in the Mediasense.properties, and where is the mediasenserequest.xml located in your server?
-Bruce

Subject: RE: Sample App for MediaSense 9.0
Replied by: Jeroen Hermans on 04-02-2013 02:15:29 PM
Hi Bruce,
I don't have a Mediasense.properties file in that directory. I only have a web.xml file and a lib folder in that directory.When I downloaded the original Sample App for MediaSense 9.0.zip file, I extracted it and only copied the contents of the WebContent folder to a newly created Mediasense folder on my apache server.
When I check that original zip file, I can see there is a build folder which has a classes folder inside. In that folder I can see the mediasense.properties, but as said that file is not on my apache server.
Should I have copied more than just the webcontent folder?
 
Thanks again for your help.
 
Rgds,
 
jeroen

Subject: RE: Sample App for MediaSense 9.0
Replied by: Jeroen Hermans on 04-02-2013 01:52:26 PM
Hi,
AXL service provider and api users are setup correctly.
To get the certificate from the media sense server, I followed step 8 in the readme:
 
8)  Open the following page on your MediaSense 9.0 server by using FireFox browser:
 https://MEDIASENSE.IP:8443/ora/
If you do not yet have the MediaSense certificate on your browser, you will be prompted with a security exception. Confirm it.  After adding the exception, choose “Tools” -> “Options” from the Firefox menu and go to the “Advanced.” Tab. Select “Encryption” and click “View Certificates.”
Select the certificate from your "Cisco MediaSense” box.
Click “Export” and save the certificate.
 
My mediasenserequest.xml file is located in c:\Program Files\apache-tomcat-6.0.32\webapps\mediasense
The only thing that I adjusted was the base URL, it now looks like this: <baseurl>https://192.168.12.14:8443/ora/</baseurl>
 
If you wish we can setup a webex so you can have a look?
Thanks,
Jeroen

Subject: RE: Sample App for MediaSense 9.0
Replied by: Bruce Hsunyu Liu on 04-02-2013 02:07:41 PM
the instruction is for linux based servers.  try the following
* go to webapps\mediasense\WEB-INF\classes, and open Mediasense.properties.  change the XMLPATH to just mediasenserequest.xml, like this
XMLPATH=mediasenserequest.xml
* copy or move the mediasenserequest.xml to tomcat directory.  In your environement, it'd be c:\Program Files\apache-tomcat-6.0.32\
* the baseurl in the mediasenserequest.xml should be <baseurl>https://192.168.12.14:8440/ora/</baseurl>

give it a try.  if it still doesn't work, try to use Tomcat 7.  That's what I'm using..
-Bruce

Subject: RE: Sample App for MediaSense 9.0
Replied by: Bruce Hsunyu Liu on 04-02-2013 02:51:45 PM
copy the classes directory under the build folder to webapps\mediasense\WEB-INF as well, then follow my previous post for Mediasense.properties and
mediasenserequest.xml.

-Bruce

Subject: RE: Sample App for MediaSense 9.0
Replied by: Jeroen Hermans on 04-02-2013 03:00:55 PM
Hi Bruce,
 
After doing that, the page would not give the error anymore when trying to login, instead it would just reload like it was not accepting my credentials.
I then checked the tomcat logfiles and noticed that it was expeciting the xml file in this location : C:\Program Files\apache-tomcat-6.0.32\bin
After copying it there, I can login.
 
Thanks for all the help,
 
Jeroen

Attachments

    Outcomes