SageTV Community  

Go Back   SageTV Community > SageTV Development and Customizations > SageTV Customizations
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

SageTV Customizations This forums is for discussing and sharing user-created modifications for the SageTV application created by using the SageTV Studio or through the use of external plugins. Use this forum to discuss customizations for SageTV version 6 and earlier, or for the SageTV3 UI.

Reply
 
Thread Tools Search this Thread Display Modes
  #81  
Old 12-02-2007, 09:26 PM
spacecadet spacecadet is offline
Sage Aficionado
 
Join Date: May 2005
Location: Lexington, MA
Posts: 388
I installed SRE today and am very impressed. It handled the NFL games today perfectly!

Now that I have some time today, I am trying to use the webserver to tweak some of the properties. However, I am getting a 404 error trying to access the SRE servlet.

I noticed that a couple of other people in this thread have had the same problem. I tried the things that have previously been suggested, but with no luck.

Here is what I believe to be true:

1. I added the following to servlet.properties: "servlet./sage/SRE.code=slugger.sagetv.sre.SREServlet"
2. I bounced the SageTV service after installing SRE and configuring the webserver
3. I know that SRE is running b/c today's NFL games were extended (they were all converted to manual recordings and padded by anywhere from 5-10 minutes each)
4. I know that the webserver is running b/c I can log into the webserver with no trouble
5. When I try to access: http://myserver:port/sage/SRE, I get a 404 error
6. When I look in the webserver log, I see the following error: "[Sun Dec 02 22:13:10 EST 2007] Class not found: slugger.sagetv.sre.SREServlet"
7. I can see the SRE jar files in my classpath. Here is the excerpt from the server log:

Code:
Sun 12/2 22:11:42.790 classpath=C:\Program Files\Frey Technologies\SageTV\Sage.jar;
C:\Program Files\Frey Technologies\SageTV\xerces.jar;
C:\Program Files\Frey Technologies\SageTV\plugin.jar;
C:\Program Files\Frey Technologies\SageTV\;
;JARs\commons-jxpath-1.1.jar;
JARs\commons-logging-api.jar;
JARs\commons-logging.jar;
JARs\df_sageutils.jar;
JARs\df_sleep_timer.jar;
JARs\gkusnick.sagetv.jar;
JARs\jcifs-1.1.6.jar;JARs\jdic.jar;
JARs\json.jar;JARs\mtsa.jar;
JARs\mx4j-impl.jar;
JARs\mx4j-jmx.jar;
JARs\mx4j-remote.jar;
JARs\mx4j-tools.jar;
JARs\nielm_autoaspect.jar;
JARs\nielm_sageimdb.jar;
JARs\nielm_sagemenureader.jar;
JARs\nielm_sageutls.jar;
JARs\nielm_sagewebserver.jar;
JARs\nielm_sagexmlinfo.jar;
JARs\sbbi-jmx-1.0.jar;
JARs\sbbi-upnplib-1.0.3.jar;
JARs\servlet.jar;
JARs\slugger_sage-recording-extender.jar;
JARs\sqlitejdbc-nested.jar
I also tried rebooting, but with no luck.

Any thoughts on what I might have done wrong?

Last edited by spacecadet; 12-02-2007 at 09:29 PM.
Reply With Quote
  #82  
Old 12-02-2007, 11:06 PM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
Quote:
Originally Posted by spacecadet View Post
I installed SRE today and am very impressed. It handled the NFL games today perfectly!

Now that I have some time today, I am trying to use the webserver to tweak some of the properties. However, I am getting a 404 error trying to access the SRE servlet.

I noticed that a couple of other people in this thread have had the same problem. I tried the things that have previously been suggested, but with no luck.

Here is what I believe to be true:

1. I added the following to servlet.properties: "servlet./sage/SRE.code=slugger.sagetv.sre.SREServlet"
2. I bounced the SageTV service after installing SRE and configuring the webserver
3. I know that SRE is running b/c today's NFL games were extended (they were all converted to manual recordings and padded by anywhere from 5-10 minutes each)
4. I know that the webserver is running b/c I can log into the webserver with no trouble
5. When I try to access: http://myserverort/sage/SRE, I get a 404 error
6. When I look in the webserver log, I see the following error: "[Sun Dec 02 22:13:10 EST 2007] Class not found: slugger.sagetv.sre.SREServlet"
7. I can see the SRE jar files in my classpath. Here is the excerpt from the server log:

Code:
Sun 12/2 22:11:42.790 classpath=C:\Program Files\Frey Technologies\SageTV\Sage.jar;
C:\Program Files\Frey Technologies\SageTV\xerces.jar;
C:\Program Files\Frey Technologies\SageTV\plugin.jar;
C:\Program Files\Frey Technologies\SageTV\;
;JARs\commons-jxpath-1.1.jar;
JARs\commons-logging-api.jar;
JARs\commons-logging.jar;
JARs\df_sageutils.jar;
JARs\df_sleep_timer.jar;
JARs\gkusnick.sagetv.jar;
JARs\jcifs-1.1.6.jar;JARs\jdic.jar;
JARs\json.jar;JARs\mtsa.jar;
JARs\mx4j-impl.jar;
JARs\mx4j-jmx.jar;
JARs\mx4j-remote.jar;
JARs\mx4j-tools.jar;
JARs\nielm_autoaspect.jar;
JARs\nielm_sageimdb.jar;
JARs\nielm_sagemenureader.jar;
JARs\nielm_sageutls.jar;
JARs\nielm_sagewebserver.jar;
JARs\nielm_sagexmlinfo.jar;
JARs\sbbi-jmx-1.0.jar;
JARs\sbbi-upnplib-1.0.3.jar;
JARs\servlet.jar;
JARs\slugger_sage-recording-extender.jar;
JARs\sqlitejdbc-nested.jar
I also tried rebooting, but with no luck.

Any thoughts on what I might have done wrong?
Is the web server running on the same host at your SageTV server? Are you running the web server on a client host perhaps? The SRE jar needs to be installed on the same host the web server is running on.
Reply With Quote
  #83  
Old 12-04-2007, 07:08 AM
spacecadet spacecadet is offline
Sage Aficionado
 
Join Date: May 2005
Location: Lexington, MA
Posts: 388
Quote:
Originally Posted by Slugger View Post
Is the web server running on the same host at your SageTV server? Are you running the web server on a client host perhaps? The SRE jar needs to be installed on the same host the web server is running on.
The web server is on the same host as the server (where SRE is running).

I am running the 6.3.2 beta, could this be causing an issue?
Reply With Quote
  #84  
Old 12-04-2007, 01:56 PM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
Quote:
Originally Posted by spacecadet View Post
The web server is on the same host as the server (where SRE is running).

I am running the 6.3.2 beta, could this be causing an issue?
I doubt it's an issue, but I've done no testing on the 6.3.x betas with any of my plugins (or their interactions with the web server). The error seems to indicate that the servlet class is not being loaded. Perhaps a bad jar file? I doubt that, too, but I'm running out of ideas. Grab the download again and replace the jar file and see if that works.
Reply With Quote
  #85  
Old 12-05-2007, 06:20 AM
spacecadet spacecadet is offline
Sage Aficionado
 
Join Date: May 2005
Location: Lexington, MA
Posts: 388
Quote:
Originally Posted by Slugger View Post
I doubt it's an issue, but I've done no testing on the 6.3.x betas with any of my plugins (or their interactions with the web server). The error seems to indicate that the servlet class is not being loaded. Perhaps a bad jar file? I doubt that, too, but I'm running out of ideas. Grab the download again and replace the jar file and see if that works.
Tried the re-download and still no luck. I can see in the log file that SRE is successfully loaded by the server (I even changed the loading property so that SRE is loaded before the webserver):

Wed 12/5 7:16:55.486 Loading startup runnable:slugger.sagetv.sre.SageRecordingExtender
Wed 12/5 7:16:55.504 Loaded startup runnable:slugger.sagetv.sre.SageRecordingExtender
Wed 12/5 7:16:55.505 Loading startup runnable:net.sf.sageplugins.webserver.StartServer
Wed 12/5 7:16:55.506 Loaded startup runnable:net.sf.sageplugins.webserver.StartServer
Wed 12/5 7:16:55.507 Starting webserver with args: [-p, 8081, -root, webserver, -t, throttles.properties, -s, servlets.properties, -r, realms.properties, -a, aliases.properties, -nohup]
Wed 12/5 7:16:55.641 StorageDeviceDetector started...
Wed 12/5 7:16:55.643 Acme httpd server:8081 listening.

But for whatever reason, it's like SRE does not end up in the webserver's classpath.
Reply With Quote
  #86  
Old 12-05-2007, 06:25 AM
spacecadet spacecadet is offline
Sage Aficionado
 
Join Date: May 2005
Location: Lexington, MA
Posts: 388
Quote:
Originally Posted by spacecadet View Post
Tried the re-download and still no luck. I can see in the log file that SRE is successfully loaded by the server (I even changed the loading property so that SRE is loaded before the webserver)
SOLVED IT!

In servlets.properties, I had a single, extra space at the end of the line where I defined the SREServlet, like this (pretend # is a space):

servlet./sage/SRE.code=slugger.sagetv.sre.SREServlet#

I guess the webserver treats the space as part of the class name, hence the class not found error.

Pretty obscure, but everything seems to be working now.

Thanks for your help Slugger (and for writing a great plug-in)!
Reply With Quote
  #87  
Old 12-15-2007, 11:00 PM
Fastrack Fastrack is offline
Sage Aficionado
 
Join Date: Oct 2003
Location: Toronto, Ontario, Canada
Posts: 268
Send a message via ICQ to Fastrack
Kind of odd question But is there anyway to utilize this great sounding plugin in reverse? IE: Football on Sundays always goes longer and 60 minutes is delayed therefore cutting into time slots (Amazing Race for example). So it would freakin' amazing if it could change the start time of the shows after the game to the amount that the game ran over....

I would highly doubt this, but let me know..

Thanks,

Ben
__________________
Ben
Intel Core2Duo E6600 2.4GHz - Win7 64bit
Antenna: Homemade Gray-Hoverman DBGH, Channel Master 7777 pre-amp, Mid-60s CM Rotor
Tuners: HDHomeRun v1, Hauppauge HVR1600
Video: BenQ W5000 1080p, ASUS ATI 6670
Storage (10TB): Seagate 2TB, Hitachi Coolspin 2TB x 4 Data Drives + 2TB x 2 Parity Drives using FlexRaid 2.0 (RAID6 T2+)
SageTV: 7.1.9 Final ?
Reply With Quote
  #88  
Old 12-16-2007, 12:14 AM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
Quote:
Originally Posted by Fastrack View Post
Kind of odd question But is there anyway to utilize this great sounding plugin in reverse? IE: Football on Sundays always goes longer and 60 minutes is delayed therefore cutting into time slots (Amazing Race for example). So it would freakin' amazing if it could change the start time of the shows after the game to the amount that the game ran over....

I would highly doubt this, but let me know..

Thanks,

Ben
CBS does offer an email alert system that reports the exact time Sunday shows start when they're delayed by the NFL (and we've discussed the use of this service by SRE earlier in this thread). I've subscribed to this service and have seen the email alerts sent by CBS. I've even been able to complete an initial proof of concept that actually modifies the recording times for these shows based on these email alerts. However, there are some issues with the timing and information in the alerts received so I'm a little skeptical to release any of this code for public consumption at this time. My attempts to contact CBS to perhaps address my concerns have gone unanswered to this point so I'd say that this is going to be possible, but I highly doubt this functionality will be released in any public release of SRE prior to the start of the 2008 NFL season.

That may change if anyone from CBS actually contacts me, but since it's been well over a week now, I'm not holding my breath.
Reply With Quote
  #89  
Old 12-16-2007, 12:51 PM
cte cte is offline
Sage User
 
Join Date: Sep 2007
Posts: 67
I downloaded SRE and read the instructions. This is my first loadable plugin, so I am uncertain about this statement: "Add slugger.sagetv.sre.SageRecordingExtender as loadable plugin in Sage.properties or SageClient.properties as needed." Exactly where in Sage.properties do I put slugger.sagetv.sre.SageRecordingExtender? ... on any line? ... and with what syntax?
Reply With Quote
  #90  
Old 12-16-2007, 05:24 PM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
Quote:
Originally Posted by cte View Post
I downloaded SRE and read the instructions. This is my first loadable plugin, so I am uncertain about this statement: "Add slugger.sagetv.sre.SageRecordingExtender as loadable plugin in Sage.properties or SageClient.properties as needed." Exactly where in Sage.properties do I put slugger.sagetv.sre.SageRecordingExtender? ... on any line? ... and with what syntax?
Look for the line load_at_startup_runnable_classes and append the above class name to this property.

Code:
load_at_startup_runnable_classes=slugger.sagetv.sre.SageRecordingExtender
If there are already other classes listed on this line then append the SRE class by using semicolons to separate each class name on the line.
Reply With Quote
  #91  
Old 12-18-2007, 06:57 AM
cte cte is offline
Sage User
 
Join Date: Sep 2007
Posts: 67
Thanks!
Reply With Quote
  #92  
Old 12-21-2007, 12:02 PM
Stuntman's Avatar
Stuntman Stuntman is offline
Sage Fanatic
 
Join Date: Dec 2003
Location: Hemet, CA - USA
Posts: 784
Adding to WebServer Menu..

I finally got this plugin running.. but wonder... exactly how to I add it as a menu item to the Webserver? Would be convenient..

Thanks!!!!

Last edited by Stuntman; 12-21-2007 at 12:22 PM.
Reply With Quote
  #93  
Old 12-22-2007, 12:41 AM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
Quote:
Originally Posted by Stuntman View Post
I finally got this plugin running.. but wonder... exactly how to I add it as a menu item to the Webserver? Would be convenient..

Thanks!!!!
Edit /webserver/webroot/sage/menu_items.js

Look at the structure of the file to learn how to add new menu items.
Reply With Quote
  #94  
Old 01-24-2008, 01:00 PM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
SRE v1.5.1 is now available.

This release is a bug fix release that addresses some issues with the included configuration servlet. Users of IE will definitely want to install this update as it includes a vital fix for caching issues discovered in IE.

Code:
v1.5.0 -> v1.5.1
================

* Bug 37: Unicode characters are not properly encoded before constructing JSON structures
* Bug 39: AJAX responses do not include proper caching instructions for browsers
Reply With Quote
  #95  
Old 01-27-2008, 01:37 AM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
SRE v1.5.2 is now available.

This is a bug fix release that adds support for monitoring Sunday's NHL All Star game along with a preemptive fix to ensure that SRE will be able to properly monitor next Sunday's Super Bowl XLII.

If you plan to monitor either of these events you will need to upgrade SRE to this latest version.

Code:
v1.5.1 -> v1.5.2
================

* Bug 41: Add ability to monitor NHL All Star game
* Bug 42: Ensure NFL monitor will work for Super Bowl XLII
Reply With Quote
  #96  
Old 01-28-2008, 10:02 PM
Sparhawk6 Sparhawk6 is offline
Sage Aficionado
 
Join Date: Jan 2005
Posts: 323
I downloaded and upgraded to 1.5.2, but when I click on the Servlet Log tab on the top, it says I'm running 1.5.1RC1. Do I have the right version?

Last edited by Sparhawk6; 01-28-2008 at 10:16 PM.
Reply With Quote
  #97  
Old 01-29-2008, 10:21 AM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
If the first config tab shows 1.5.2 for the version then you're fine. I only built the affected files before releasing 1.5.2 instead of rebuilding the entire plugin so the version number didn't get properly updated in the servlet log code.

I've rebuilt the zip and uploaded another version of 1.5.2 that will correct this, but functionally there is no difference so if you're seeing 1.5.2 on the first tab then you're set.
Reply With Quote
  #98  
Old 02-04-2008, 07:29 AM
kevine kevine is offline
Sage Expert
 
Join Date: Aug 2007
Posts: 514
Superbowl not extended. I installed it yesterday around 3. Checked to make sure it was monitoring recordings and it recorded 3:30 (til 9:30). Post game show after that on the schedule but did not think I needed to record that. My default padding is 60 minutes so I have no idea what happened. Is there some way I can tell?
Reply With Quote
  #99  
Old 02-04-2008, 01:26 PM
Slugger Slugger is offline
SageTVaholic
 
Join Date: Mar 2007
Location: Kingston, ON
Posts: 4,008
Quote:
Originally Posted by kevine View Post
Superbowl not extended. I installed it yesterday around 3. Checked to make sure it was monitoring recordings and it recorded 3:30 (til 9:30). Post game show after that on the schedule but did not think I needed to record that. My default padding is 60 minutes so I have no idea what happened. Is there some way I can tell?
Did you create an override for the game to tell SRE who was playing? In my EPG listings the teams were listed as "Teams TBA". As I mentioned in a post above, if that was the case for your EPG data then you would have also needed to create an override telling SRE that the game was "New England vs. NY Giants". Without the teams in the subtitle, SRE is not able to monitor an event.

Though I'm surprised the default padding wasn't applied to the recording. Assuming the program title was "NFL Football" then if the subtitle was "Teams TBA" then the default padding should have been applied. Can you confirm that you did not create an override and the program title for your recording was exactly "NFL Football"? If so, then I'll investigate the default padding issue.

Unfortunately, the log file needed to know exactly why it wasn't extended has long since been recycled by the plugin. I overwrite the log on each run because if left unattended the log grows extremely large very quickly so didn't want anyone to find a surprise.
Reply With Quote
  #100  
Old 02-07-2008, 03:46 PM
kevine kevine is offline
Sage Expert
 
Join Date: Aug 2007
Posts: 514
I did not create an override. It did say "Teams TBA". Unsure about NFL Football because I erased it. You post above said it was fixed for the superbowl and does not mention an override is needed in that post. Therefore, I assumed that you were not just looking for teams for this but but for the word "superbowl".

I would think the log should contain only items that SRE took action on or did not take action on because it matched something in ESPN. In other words, If I did not schedule it to record, it should not log it. If there was not a match to my recording vs. what is in ESPN it should not log it. If that were the case my log would have 1 entry, had I put the override in.

Isn't it also possible to know ahead of time if SRE found a matiching game with ESPN and will be monitored. "Yes, SRE found a game match for, NE Patriots vs NY Giants and will be monitored."

Thanks.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to edit plugin settings when using a HD extender? blade SageTV Customizations 1 12-08-2008 10:21 PM
IMDB Plugin for Extender tonysathre SageTV Customizations 6 08-20-2008 09:15 PM
Online Radio plugin for Extender koelec SageTV Customizations 23 02-28-2008 12:27 PM
Media Extender and Anders' DVB plugin Mahoney SageTV Media Extender 4 03-21-2006 01:19 AM


All times are GMT -6. The time now is 08:01 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, vBulletin Solutions Inc.
Copyright 2003-2005 SageTV, LLC. All rights reserved.