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 09-18-2009, 05:46 PM
jreichen's Avatar
jreichen jreichen is offline
Sage Icon
 
Join Date: Jul 2004
Posts: 1,192
Arrow Plugin: SageTV Web Interface V2 for Jetty

Version 2.25 of nielm's SageTV Web Interface introduces support for running in the Jetty web server in addition to existing support for the Tiny Java Web Server (TJWS). Up to this point, support for the web interface has been provided on the original thread. Support will continue to be provided there, but questions about Jetty setup, feature comparison, etc should be discussed in this thread.

See post 2356 in the other thread for the version 2.25 announcement.

Jetty Support
This release has a new build included that will deploy the web interface so it runs in Jetty. A lot of work went into maintaining compatibility so RSS and XML links from 3rd party apps that use the web interface as a data source will still work. The previous downloads for running nielm's web interface on its own web server (Tiny Java Web Server - TJWS) are still available for the time being, but it's definitely moving in the direction of being deployed in Jetty. Version 2.x will continue to be supported on TJWS, but version 3 will only run on Jetty.

Installation
See the wiki page for instructions on installing the web interface on Jetty and for migrating if you were running the web interface on TJWS.

Downloads
Beginning with this release, three downloads will be delivered for the web interface.
The first and second choices are Nielm's original webserver that runs on Tiny Java Web Server (TJWS). One in zip format and one with a Windows installer. Neither of these are for Jetty.

The 3rd one is the Jetty version of Nielm's webserver. This is the only one you should download if you want to run it in Jetty.

No matter what you should only download and install ONE of these three.
[Thanks to sleonard for clarifying the downloads.]
__________________
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; 03-25-2010 at 02:00 PM. Reason: Fix download links
Reply With Quote
  #2  
Old 09-18-2009, 05:46 PM
jreichen's Avatar
jreichen jreichen is offline
Sage Icon
 
Join Date: Jul 2004
Posts: 1,192
This post intentionally left non-blank. If there had been something to post here, it would have been posted here; however, there is currently nothing of importance to say here. Nothing of importance.
__________________
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
  #3  
Old 09-18-2009, 09:31 PM
rmac321 rmac321 is offline
Sage Advanced User
 
Join Date: Dec 2008
Posts: 194
Quote:
Originally Posted by jreichen View Post
[LIST=1][*]Remove the existing /webserver folder and jar files
Which jar files do we remove? I'll check to see what was added when I installed, but I'm concerned that I might accidentally remove a shared jar.

Thanks
__________________
SageTV v9.1.10.479 on Ubuntu
(testing v9.1.10.479 on Debian and Win10)
Reply With Quote
  #4  
Old 09-18-2009, 10:34 PM
jreichen's Avatar
jreichen jreichen is offline
Sage Icon
 
Join Date: Jul 2004
Posts: 1,192
Quote:
Originally Posted by rmac321 View Post
Which jar files do we remove? I'll check to see what was added when I installed, but I'm concerned that I might accidentally remove a shared jar.

Thanks
  • servlet.jar
  • nielm_sagewebserver.jar
  • nielm_sageutls.jar
  • nielm_sagexmlinfo.jar
Note: nielm_sageutls.jar and nielm_sagexmlinfo.jar are also installed by some other plugins. Save those to a backup location in case you later find that you need 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 09-19-2009, 10:37 AM
rmac321 rmac321 is offline
Sage Advanced User
 
Join Date: Dec 2008
Posts: 194
Fixed

Quote:
Originally Posted by jreichen View Post
  • servlet.jar
  • nielm_sagewebserver.jar
  • nielm_sageutls.jar
  • nielm_sagexmlinfo.jar
Note: nielm_sageutls.jar and nielm_sagexmlinfo.jar are also installed by some other plugins. Save those to a backup location in case you later find that you need them.
I've either removed too much, too little, or need a nudge in the right direction. I stopped the sage service. I removed the jars, the /webserver folder and the portion of my load at startup line in sage.properties. I unzipped the new v2.25 zip. Unfortunately, I can't seem to get to the (new) Web Interface.

The unzip was successful as there is a new /webserver folder and the new context file is in the /jetty/contexts folder. It appears from the context.xml that /sage is the proper address to append to the server and port.

I already have jetty working and can access sagealert and bmt. To try to use the new jetty version of the Web User Interface, I used the same address as before, but changed the port to the jetty port. Is there some other change to the address, or have I missed something else?

http://sageserver:8080/bmt/ opens bmt user interface page
http://sageserver:8080/sagealert/ opens sagealert page
http://sageserver:8080/sage/ result is error 404
http://sageserver:8080/sage/home result is error 404

If I use the old port: http://sageserver:8081/sage/Home, then I get a Failed to Connect which I would expect.

What am I missing?
Thanks

Edit: Problem Solved! I was still running v1.5 of the Jetty Starter. I wasn't subscribed to that thread and my other jetty apps were working fine, so I missed the 1.6 upgrade. Upgraded Jetty Starter to v1.6 and all is good.
Thanks jreichen for Jetty Starter and the new Jetty version of the Web Interface.
Thanks Brent for the upgrade instructions.
Thanks nielm for the Web User Interface.
__________________
SageTV v9.1.10.479 on Ubuntu
(testing v9.1.10.479 on Debian and Win10)

Last edited by rmac321; 09-23-2009 at 09:40 AM. Reason: Fixed
Reply With Quote
  #6  
Old 09-19-2009, 05:19 PM
toricred's Avatar
toricred toricred is offline
Sage Icon
 
Join Date: Jan 2006
Location: Northern New Mexico
Posts: 1,729
I'm having this problem too. I haven't actually removed the jar files yet.
Reply With Quote
  #7  
Old 09-19-2009, 05:31 PM
b-morgan b-morgan is offline
Sage User
 
Join Date: Oct 2007
Posts: 36
It worked for me (after I stopped and started SageTV). Make sure you've done that (including stopping and starting the service if used).

There may be a way to just restart jetty but I don't know how to do that. Restarting SageTV is easy for me to do.

Regards,

Brad
Reply With Quote
  #8  
Old 09-19-2009, 05:47 PM
toricred's Avatar
toricred toricred is offline
Sage Icon
 
Join Date: Jan 2006
Location: Northern New Mexico
Posts: 1,729
But what was the URL?
Reply With Quote
  #9  
Old 09-19-2009, 06:23 PM
b-morgan b-morgan is offline
Sage User
 
Join Date: Oct 2007
Posts: 36
The following work for me:

http://localhost:8080/sage/Home

http://localhost:8080/sjq/SJQClient.html

Also:

http://localhost:8080/

Shows a list of installed applications with their links (on a page with a 404 error).

Regards,

Brad
Reply With Quote
  #10  
Old 09-19-2009, 06:27 PM
toricred's Avatar
toricred toricred is offline
Sage Icon
 
Join Date: Jan 2006
Location: Northern New Mexico
Posts: 1,729
All I get are 404 errors on the first and last link. I don't use SJQ so it doesn't surprise me that that one won't work. On the last one there are no links just the plain 404. Also on the last one I get a forbidden message.

Edit: I got it now. I thought the Sage Service was shut down when I extracted the files, but apparently not. Anyhow it's working fine now.

Last edited by toricred; 09-19-2009 at 06:35 PM.
Reply With Quote
  #11  
Old 09-19-2009, 06:53 PM
toricred's Avatar
toricred toricred is offline
Sage Icon
 
Join Date: Jan 2006
Location: Northern New Mexico
Posts: 1,729
Now DVRMS Toolbox can't connect. Any thoughts? I'm also going to post in babgvant's forum.
Reply With Quote
  #12  
Old 09-20-2009, 11:05 AM
jreichen's Avatar
jreichen jreichen is offline
Sage Icon
 
Join Date: Jul 2004
Posts: 1,192
Quote:
Originally Posted by rmac321 View Post
The unzip was successful as there is a new /webserver folder and the new context file is in the /jetty/contexts folder. It appears from the context.xml that /sage is the proper address to append to the server and port.
Is there a nielm_sagewebserver.war in the jetty/webapps folder?

Quote:
Originally Posted by rmac321 View Post
I already have jetty working and can access sagealert and bmt. To try to use the new jetty version of the Web User Interface, I used the same address as before, but changed the port to the jetty port. Is there some other change to the address, or have I missed something else?

http://sageserver:8080/bmt/ opens bmt user interface page
http://sageserver:8080/sagealert/ opens sagealert page
http://sageserver:8080/sage/ result is error 404
http://sageserver:8080/sage/home result is error 404
Make sure you're using a capital 'H' on the word 'Home' in the URL.

If that doesn't work, turn on SageTV's debug logging and see if the log has anything helpful.
__________________
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
  #13  
Old 09-20-2009, 11:14 AM
jreichen's Avatar
jreichen jreichen is offline
Sage Icon
 
Join Date: Jul 2004
Posts: 1,192
Quote:
Originally Posted by b-morgan View Post
There may be a way to just restart jetty but I don't know how to do that.
Right now there's no way to restart Jetty. Jetty's API supports restarts but the plugin doesn't support it right now. I'd like to create some tools to make installation and configuration of Jetty easier, it's just a matter of having time to do it and its priority on the feature 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 09-20-2009, 11:30 AM
jreichen's Avatar
jreichen jreichen is offline
Sage Icon
 
Join Date: Jul 2004
Posts: 1,192
Quote:
Originally Posted by toricred View Post
Now DVRMS Toolbox can't connect. Any thoughts? I'm also going to post in babgvant's forum.
I haven't used that plugin. The web server should still support all the URLs that other plugins rely on. If you can provide some details about what doesn't work then I'll try to fix the incompatibility.
__________________
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 09-20-2009, 01:44 PM
toricred's Avatar
toricred toricred is offline
Sage Icon
 
Join Date: Jan 2006
Location: Northern New Mexico
Posts: 1,729
I figured out the problem with DTB, but it is strange. It actually only fails when testing the config because it is trying to go to /sage/home (all lower case). I've posted that on babgvant's forum and hopefully he'll just make a change to how he tests.
Reply With Quote
  #16  
Old 09-21-2009, 09:13 AM
mkanet's Avatar
mkanet mkanet is offline
SageTVaholic
 
Join Date: Feb 2004
Posts: 3,359
Migration instructions for people who currently have https

Jreichen, thank you for providing instructions on how to migrate to all Jetty. However, I am using https for Neilms webserver. Could you please update the intructions for people who want to move over to Jetty AND also retain their https capability? I followed the instructions for getting Neilms webserver to use https. I would like to also use https after switching to Jetty. I currently have Jetty 1.6 up and running.

Thanks so much

Quote:
Originally Posted by jreichen View Post
Version 2.25 is now available on SourceForge.

ENHANCEMENTS
  • (slugger, stuckless, jreichen) Run as an application on the Jetty web server plugin (deploy as a .war file)
  • (jreichen) System Messages page and RSS feed (requires SageTV 6.5.17 or later)
The list is rather short this time, but I think they're a couple of good features.

Jetty Support
This release has a new build included that will deploy the web interface so it runs in Jetty. A lot of work went into maintaining compatibility so RSS and XML links from 3rd party apps that use the web interface as a data source will still work. The previous downloads for running nielm's web interface on its own web server are still available for the time being, but it's definitely moving in the direction of being deployed in Jetty.

There isn't any documentation for how to move nielm's web interface to Jetty yet. I'll be updating the wiki with more information soon. Initially I'm anticipating that early adopters will be the first to move anyway and will be up for a challenge In fact, feel free to update the wiki along the way

Here's a quick summary:
  1. Remove the existing /webserver folder and jar files as well as the load_at_startup_runnable_classes entry in Sage.properties.
  2. Just like you would install other Jetty web apps, unzip the new download into the SageTV directory. A context xml and war file will be extracted. The extenders.properties, paths.properties, and transcode.properties files will be extracted to the previous /webserver folder to maintain compatibility with those features. Sorry, aliases.properties could not be supported because it was part of the old server (Tiny Java Web Server) that is replaced by Jetty.
Downloads
For the first time I am releasing the update rather than nielm. Unfortunately that means the downloads page cannot be updated with the most recent version. You'll need to download directly from SourceForge or use one of these download links.
__________________
Upgraded to Comcast X1 + Netflix/Amazon Video streaming

***RIP SageTV***
Reply With Quote
  #17  
Old 09-21-2009, 11:01 AM
rmac321 rmac321 is offline
Sage Advanced User
 
Join Date: Dec 2008
Posts: 194
Quote:
Originally Posted by jreichen View Post
Is there a nielm_sagewebserver.war in the jetty/webapps folder?
Yes, it is there.

Quote:
Originally Posted by jreichen View Post
Make sure you're using a capital 'H' on the word 'Home' in the URL.
That was a typo, sorry. I originally used the old link and just changed the port, so the h was capitalized. I also tried it with several variations after it failed.

Quote:
Originally Posted by jreichen View Post
If that doesn't work, turn on SageTV's debug logging and see if the log has anything helpful.
I'll also try to reinstall to see if that helps. I was hoping I just missed something obvious.
__________________
SageTV v9.1.10.479 on Ubuntu
(testing v9.1.10.479 on Debian and Win10)
Reply With Quote
  #18  
Old 09-21-2009, 11:17 AM
rmac321 rmac321 is offline
Sage Advanced User
 
Join Date: Dec 2008
Posts: 194
Stopped or Started?

I know part of the beauty of jetty is that you don't have to stop the jetty server when you install a new app. But, does the Jetty Server need to be running when you install/extract jetty apps?

The reason I ask is because I had the Sage Service stopped when I extracted v2.25 because I needed to stop the service to make the sage.properties mods and delete the jar files. It was still stopped while I extracted v2.25.

I just re-extracted v2.25 without stopping the service, but still no joy.
__________________
SageTV v9.1.10.479 on Ubuntu
(testing v9.1.10.479 on Debian and Win10)
Reply With Quote
  #19  
Old 09-21-2009, 07:06 PM
jreichen's Avatar
jreichen jreichen is offline
Sage Icon
 
Join Date: Jul 2004
Posts: 1,192
Quote:
Originally Posted by mkanet View Post
Jreichen, thank you for providing instructions on how to migrate to all Jetty. However, I am using https for Neilms webserver. Could you please update the intructions for people who want to move over to Jetty AND also retain their https capability? I followed the instructions for getting Neilms webserver to use https. I would like to also use https after switching to Jetty. I currently have Jetty 1.6 up and running.

Thanks so much
Check out the Jetty SSL instructions. You can skip the Generating an SSL Certificate section and proceed to the JettyStarter.properties section.
__________________
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
  #20  
Old 09-21-2009, 07:14 PM
LehighBri LehighBri is offline
Sage Expert
 
Join Date: Sep 2006
Posts: 694
Quote:
Originally Posted by jreichen View Post
ENHANCEMENTS
  • (slugger, stuckless, jreichen) Run as an application on the Jetty web server plugin (deploy as a .war file)
Amazing job.... and this was very easy to switch to use the Jetty version (probably easy given I already am using Jetty and have other war files installed). Keep up the great work.
__________________
Server: Sage 7.1.9 beta; Dell Inspiron 530; Windows 7 Ultimate 32-bit (UAC turned off); 2TB Internal SATA (TV Recordings)
Storage: Synology DiskStation DS411+, RAID 5, 5x 2TB SATA for (DVDs/Music/Other Videos)
Tuners: Ceton InfiniTV w/ Verizon FIOS cablecard (using babgvant's SageDCT plugin)
Clients: 1x STP-HD300; 1x Acer Aspire Revo 3610 (Atom/Ion) w/ SageTV client (Win 7, EVR, FSE on)
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: Web User Interface for SageTV 2.2-6.6 (V2.25 18 Sep 2009) nielm SageTV Customizations 2644 10-24-2016 10:18 AM
Plugin: Jetty Starter 1.6 jreichen SageTV Customizations 122 09-07-2012 06:48 PM
Plugin: Mobile Web Interface 1.2 jreichen SageTV Customizations 281 06-17-2011 02:20 PM
SageTV Web Interface - recording padding snowyb79 SageTV Customizations 1 03-16-2011 01:10 AM


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.