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
  #1  
Old 11-23-2008, 08:00 PM
jreichen's Avatar
jreichen jreichen is offline
Sage Icon
 
Join Date: Jul 2004
Posts: 1,192
Arrow Plugin: Jetty Starter 1.6

The Jetty Starter plugin provides integration of the Jetty web server within SageTV. It enables running one web server engine inside the SageTV process that can host multiple web applications.

The first application written to run in Jetty was the mobile web interface. Early support for this plugin was provided in the thread that requested the mobile web interface. A separate thread is now being created here to support developers who are writing other applications to run in Jetty. See the download page and wiki for more information including installation instructions. Source code is available on SourceForge.

Please Note: any questions regarding the upgrade of the Jetty plugin from SageTV V6 to SageTV V7 should be posted in the thread over in the SageTV V7 Customizations forum. Questions regarding Jetty 2.0, which adopts the SageTV V7 Plugin Manager, should be posted to its thread, also in the SageTV V7 Customizations forum.
__________________
Server: Intel Core i5 760 Quad, Gigabyte GA-H57M-USB3, 4GB RAM, Gigabyte GeForce 210, 120GB SSD (OS), 1TB SATA, HD HomeRun.
Extender: STP-HD300, Harmony 550 Remote,
Netgear MCA1001 Ethernet over Coax.
SageTV: SageTV Server 7.1.8 on Ubuntu Linux 11.04, SageTV Placeshifter for Mac 6.6.2, SageTV Client 7.0.15 for Windows, Linux Placeshifter 7.1.8 on Server and Client
, Java 1.6.
Plugins: Jetty, Nielm's Web Server, Mobile Web Interface.


Last edited by jreichen; 05-28-2010 at 10:31 PM.
Reply With Quote
  #2  
Old 11-23-2008, 08:57 PM
geogecko geogecko is offline
Sage Icon
 
Join Date: Dec 2004
Location: North Oklahoma
Posts: 2,273
Linky for download has an extra http...

Thanks again for your work on this!
__________________
-Jason
Reply With Quote
  #3  
Old 11-23-2008, 08:59 PM
jreichen's Avatar
jreichen jreichen is offline
Sage Icon
 
Join Date: Jul 2004
Posts: 1,192
Fixed. Thanks!
__________________
Server: Intel Core i5 760 Quad, Gigabyte GA-H57M-USB3, 4GB RAM, Gigabyte GeForce 210, 120GB SSD (OS), 1TB SATA, HD HomeRun.
Extender: STP-HD300, Harmony 550 Remote,
Netgear MCA1001 Ethernet over Coax.
SageTV: SageTV Server 7.1.8 on Ubuntu Linux 11.04, SageTV Placeshifter for Mac 6.6.2, SageTV Client 7.0.15 for Windows, Linux Placeshifter 7.1.8 on Server and Client
, Java 1.6.
Plugins: Jetty, Nielm's Web Server, Mobile Web Interface.

Reply With Quote
  #4  
Old 11-29-2008, 06:46 PM
jreichen's Avatar
jreichen jreichen is offline
Sage Icon
 
Join Date: Jul 2004
Posts: 1,192
Since each application must have a unique context root, I created a wiki page to track them.
__________________
Server: Intel Core i5 760 Quad, Gigabyte GA-H57M-USB3, 4GB RAM, Gigabyte GeForce 210, 120GB SSD (OS), 1TB SATA, HD HomeRun.
Extender: STP-HD300, Harmony 550 Remote,
Netgear MCA1001 Ethernet over Coax.
SageTV: SageTV Server 7.1.8 on Ubuntu Linux 11.04, SageTV Placeshifter for Mac 6.6.2, SageTV Client 7.0.15 for Windows, Linux Placeshifter 7.1.8 on Server and Client
, Java 1.6.
Plugins: Jetty, Nielm's Web Server, Mobile Web Interface.

Reply With Quote
  #5  
Old 11-29-2008, 08:09 PM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Quote:
Since each application must have a unique context root, I created a wiki page to track them.
I just added /smt (Sage Media Tools - Web Front End for Batch Metadata Tools). And thanks for adding the /sagex for me
Reply With Quote
  #6  
Old 12-06-2008, 02:05 PM
beerandt beerandt is offline
Sage User
 
Join Date: Dec 2008
Posts: 11
text/properties files have no line breaks

Hi- I'm fairly new to the world of sagetv and was playing around trying to install jetty starter. I'm not sure if this is something I'm doing wrong or not, so I figured I ask.

The JettyStarter.properties file and realm.properties files that I downloaded don't seem to have any line breaks in them. I also checked the license text files, and it seem to be the same thing.

Is there something wrong with the files, or am I doing something wrong?

Thanks
Reply With Quote
  #7  
Old 12-06-2008, 02:13 PM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
jreichen probably created them in linux. They should still work fine. you can try to edit them with wordpad instead of notepad, since wordpad support unix line feeds.
Reply With Quote
  #8  
Old 12-06-2008, 04:17 PM
beerandt beerandt is offline
Sage User
 
Join Date: Dec 2008
Posts: 11
That worked! Thanks for the quick reply. I knew it was probably something simple like that, but I got nervous editing a file that lacked any -visible- formatting.

Thanks!

Last edited by beerandt; 12-06-2008 at 04:22 PM.
Reply With Quote
  #9  
Old 12-06-2008, 07:28 PM
jreichen's Avatar
jreichen jreichen is offline
Sage Icon
 
Join Date: Jul 2004
Posts: 1,192
stuckless is right, I use Linux. I modified the build script so the build process will convert the line feeds to Windows format starting with the next release. The web server will work either way but it's easier for Windows users to read and edit the files if the line feeds are in Windows format.
__________________
Server: Intel Core i5 760 Quad, Gigabyte GA-H57M-USB3, 4GB RAM, Gigabyte GeForce 210, 120GB SSD (OS), 1TB SATA, HD HomeRun.
Extender: STP-HD300, Harmony 550 Remote,
Netgear MCA1001 Ethernet over Coax.
SageTV: SageTV Server 7.1.8 on Ubuntu Linux 11.04, SageTV Placeshifter for Mac 6.6.2, SageTV Client 7.0.15 for Windows, Linux Placeshifter 7.1.8 on Server and Client
, Java 1.6.
Plugins: Jetty, Nielm's Web Server, Mobile Web Interface.

Reply With Quote
  #10  
Old 01-03-2009, 10:37 AM
bcjenkins bcjenkins is offline
SageTVaholic
 
Join Date: Jan 2006
Posts: 3,764
How to add root context?

Jason,

How do you add support for http://server/ file usage?

TIA

B
__________________
Running SageTV on unRAID via Docker
Tuning handled by HDHR3-6CC-3X2 using OpenDCT
Reply With Quote
  #11  
Old 01-03-2009, 05:25 PM
jreichen's Avatar
jreichen jreichen is offline
Sage Icon
 
Join Date: Jul 2004
Posts: 1,192
Do you mean Serving other files with Sage Web Server, but with the Jetty server rather than nielm's web server?

I'm not positive, but I don't remember nielm's using a servlet, so it's probably down in the server code, meaning I can't just configure a reference to a servlet of his (that probably wouldn't work in the root context anyway).

I think you can put files in the jetty/webapps folder and serve them up, but in order to point to somewhere else on the file system, I'd have to research how Jetty handles the root context and override it.
__________________
Server: Intel Core i5 760 Quad, Gigabyte GA-H57M-USB3, 4GB RAM, Gigabyte GeForce 210, 120GB SSD (OS), 1TB SATA, HD HomeRun.
Extender: STP-HD300, Harmony 550 Remote,
Netgear MCA1001 Ethernet over Coax.
SageTV: SageTV Server 7.1.8 on Ubuntu Linux 11.04, SageTV Placeshifter for Mac 6.6.2, SageTV Client 7.0.15 for Windows, Linux Placeshifter 7.1.8 on Server and Client
, Java 1.6.
Plugins: Jetty, Nielm's Web Server, Mobile Web Interface.

Reply With Quote
  #12  
Old 01-04-2009, 09:24 AM
bcjenkins bcjenkins is offline
SageTVaholic
 
Join Date: Jan 2006
Posts: 3,764
Specifically, I am having issues with serving http://server/crossdomain.xml. I am getting a 404. The file is in webapps and in /remote as well. I am not familiar enough with Jetty to understand the syntaxing, but a quick trip to Google with "jetty crossdomain.xml" does turn up some hits. It's not for Jetty though, some variant of it.

B
__________________
Running SageTV on unRAID via Docker
Tuning handled by HDHR3-6CC-3X2 using OpenDCT
Reply With Quote
  #13  
Old 01-04-2009, 08:18 PM
jreichen's Avatar
jreichen jreichen is offline
Sage Icon
 
Join Date: Jul 2004
Posts: 1,192
I have the same problem but haven't found a fix today. I'll put it on my todo list.
__________________
Server: Intel Core i5 760 Quad, Gigabyte GA-H57M-USB3, 4GB RAM, Gigabyte GeForce 210, 120GB SSD (OS), 1TB SATA, HD HomeRun.
Extender: STP-HD300, Harmony 550 Remote,
Netgear MCA1001 Ethernet over Coax.
SageTV: SageTV Server 7.1.8 on Ubuntu Linux 11.04, SageTV Placeshifter for Mac 6.6.2, SageTV Client 7.0.15 for Windows, Linux Placeshifter 7.1.8 on Server and Client
, Java 1.6.
Plugins: Jetty, Nielm's Web Server, Mobile Web Interface.

Reply With Quote
  #14  
Old 01-17-2009, 07:09 PM
jreichen's Avatar
jreichen jreichen is offline
Sage Icon
 
Join Date: Jul 2004
Posts: 1,192
The Jetty Plugin version 1.5 has been released and can be downloaded here. This addresses bcjenkins' crossdomain.xml file issue as well as a couple other things.
  • Serve static files from the jetty/static directory. Required for the crossdomain.xml file for shadeblue's remote control.
  • Convert end-of-line characters from LF (Linux) to CRLF (Windows). Most people use the Windows platform plus Linux editors handle the Windows format better than Windows Notepad handles the Linux format.
  • Expose version number
If you are using stuckless' remote APIs, you'll need to upgrade to version 6.4.8-12 to get his new sagex.xml context file - especially if you're using shadeblue's Flash remote control and need the crossdomain.xml file.

Jason

EDIT: Added download link.
__________________
Server: Intel Core i5 760 Quad, Gigabyte GA-H57M-USB3, 4GB RAM, Gigabyte GeForce 210, 120GB SSD (OS), 1TB SATA, HD HomeRun.
Extender: STP-HD300, Harmony 550 Remote,
Netgear MCA1001 Ethernet over Coax.
SageTV: SageTV Server 7.1.8 on Ubuntu Linux 11.04, SageTV Placeshifter for Mac 6.6.2, SageTV Client 7.0.15 for Windows, Linux Placeshifter 7.1.8 on Server and Client
, Java 1.6.
Plugins: Jetty, Nielm's Web Server, Mobile Web Interface.

Reply With Quote
  #15  
Old 01-17-2009, 07:33 PM
bcjenkins bcjenkins is offline
SageTVaholic
 
Join Date: Jan 2006
Posts: 3,764
danke
__________________
Running SageTV on unRAID via Docker
Tuning handled by HDHR3-6CC-3X2 using OpenDCT
Reply With Quote
  #16  
Old 05-04-2009, 09:41 PM
Skirge01's Avatar
Skirge01 Skirge01 is offline
SageTVaholic
 
Join Date: Jun 2007
Location: New Jersey
Posts: 2,599
I just spent the past 3 days trying to figure out how I hosed my Jetty installation on my WHS box and believe I've finally figure out the cause: IE8. I uninstalled and reinstalled everything I could possibly think of and then decided to remove IE8 and it's associated single update and now things are right back to where they were: working!

Basically, I could no longer connect to SJQ's interface, the Mobile Web Interface, or even nielm's Webserver. The Webserver issue could very well mean it's not only Jetty or that I managed to break it during my Jetty troubleshooting. So, take that part for what it's worth. I also had issues getting the SJQTaskClient service to stay running while IE8 was installed. I was getting "error code 1" messages.

Has anyone else noticed something similar? I'm not pointing a finger at Jetty or even at Microsoft at this point, but wanted to see if anyone else noticed anything that might help pinpoint the issue or a possible remedy (other than uninstalling IE8--not that I wanted it in the first place).
Reply With Quote
  #17  
Old 05-06-2009, 11:25 AM
Skirge01's Avatar
Skirge01 Skirge01 is offline
SageTVaholic
 
Join Date: Jun 2007
Location: New Jersey
Posts: 2,599
By the lack of responses, I guess I'm the only idiot who installed IE8.

In case anyone else tries to uninstall IE8, you may wind up with the following Windows Event errors:

Code:
Source: Userenv
TimeGenerated: 5/5/2009 1:50:45 PM
InstanceId: 3221226513
Catagory: (0)
CatagoryNumber: 0
EntryType: Error
Message: Windows cannot query DllName registry entry for {7B849a69-220F-451E-B3FE-2CB811AF94AE} and it will not be loaded. This is most likely caused by a faulty registration.
----

Source: Userenv
TimeGenerated: 5/5/2009 1:50:45 PM
InstanceId: 3221226513
Catagory: (0)
CatagoryNumber: 0
EntryType: Error
Message: Windows cannot query DllName registry entry for {CF7639F3-ABA2-41DB-97F2-81E2C5DBFC5D} and it will not be loaded. This is most likely caused by a faulty registration.
If you see the above error messages after uninstalling IE8, just search for the registry entries above and delete them. Obviously, the usual "back up your system before making changes to the registry" applies here.
Reply With Quote
  #18  
Old 05-25-2009, 10:01 AM
GollyJer's Avatar
GollyJer GollyJer is offline
Sage Aficionado
 
Join Date: Nov 2006
Posts: 318
Is IE8 really a barrier to getting this working? I'm running Neil's Web Interface without problems using IE8 but can't seem to get Jetty working. It won't run in Chrome or Firefox either. I find it hard to believe the browser makes a difference at the OS.

[Edit]
Never mind. This is working fine with IE8. I was going to the wrong URL.
I'm pretty sure IE8 didn't have anything to do with Skirge01's problem.
__________________
Currently using SageTV Media Center Server on Windows 7, SageTV Client as an HTPC on Windows 7, and an HD Theater HD200. The server controls 3 Motorola DCH-3200 cable boxes and 3 Hauppauge HD-PVRs (all Rev F1) with HD audio and changes channels via firewire WITH NO LOCKUPS. It's awesome.
4 Steps to Perfect Stutter Free Playback for SageTV
Quick Guide: How to Bitstream Audio in Windows 7

Last edited by GollyJer; 05-25-2009 at 10:35 AM.
Reply With Quote
  #19  
Old 05-26-2009, 12:47 PM
Skirge01's Avatar
Skirge01 Skirge01 is offline
SageTVaholic
 
Join Date: Jun 2007
Location: New Jersey
Posts: 2,599
If that's the case, then I sure would like to know what caused the issue. As far as I can recall, my WHS box had no other changes, except for installing IE8 on it and that's when it stopped working. I uninstalled IE8 and Jetty worked again. I really have no need for IE8 on my WHS box, so I won't bother trying it again unless (until?) Microsoft decides to lock users out of updates based on the IE browser version they have installed.
Reply With Quote
  #20  
Old 05-27-2009, 12:32 PM
iolaus iolaus is offline
Sage Advanced User
 
Join Date: Jan 2008
Posts: 83
jreichen,

Thanks for the awesome Jetty SageTV plugin. Quick question for you... is there an easy way to enable HTTP compression with the plug-in? I looked around for some documentation but wasn't knowledgeable enough about Jetty to easily piece together a solution from what I found.

The main motivation for this is that I'm using Stuckless's SageX APIs (hosted by Jetty) and I would like to test compression of the API call results to see if it would provide any speed increase.

Thanks!
Reply With Quote
Reply

Tags
web


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
Plugin: MizookLCD (Alternate SageTV LCDSmartie Plugin) cslatt SageTV Customizations 48 06-11-2012 10:44 AM
MediaPlayer Plugin/STV Import: Winamp Media Player Plugin deria SageTV Customizations 447 12-11-2010 07:38 PM
Hulu: Possible to Use XBMC Hulu Plugin to create SageTV Plugin? Brent SageTV Customizations 8 02-24-2009 04:16 PM
Plugin: MizookLCD spook SageTV Customizations 2 08-12-2008 11:31 AM
Caller ID Plugin computer33 SageTV Customizations 1 04-20-2005 09:02 PM


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


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