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 10-31-2011, 03:48 PM
hagur hagur is offline
Sage User
 
Join Date: Feb 2007
Posts: 65
Strange problem with the SageTV Jetty webserver, always returns 404

Hi,

Are these forums still active?

Anyways, I'm running SageTV 7 and I had enabled the Jetty web server and the mobile web interface and everything was going smoothly. I rarely used the web interface, just wanted to have it just in case I needed it. Then all of a sudden I notice that it's no longer working.

http://myhtpc:8080/apps/ always returns 404.

This is the exact message:

Code:
HTTP ERROR: 404

Problem accessing /apps/. Reason:

    NOT_FOUND
Powered by Jetty://
I spent a whole lot of time on it, I removed and reinstalled the Jetty server multiple times and I reinstalled SageTV but nothing worked. Eventually, I just gave up on it ....

... until now. I decided to give it a go again and see if I could get this to work.

I installed SageTV 7 on another machine I have at home, and activated the Jetty web server and installed the mobile web UI. Everything worked fine on that machine! So I copied the Jetty folder from that machine to my HTPC, restarted SageTV and tried again, still just gives me the same 404 error.

Then I started wondering .... what the H**** did I do (if anything) in the meantime which could have caused the Jetty server to stop working all of a sudden. Then I realized that I had installed the XmlTV plugin which involved some messing around with import paths and what not. That's probably when the Jetty web server stopped working.

So now I've enabled the SageTV debug log on both machines and also set the Jetty log to VERBOSE.

After carefully comparing the logs on both machines, I can see that there is an error occurring on the HTPC machine which is not occuring on the other machine. It seems to have something to do with the xerces XML parser, which is one of the things I had to mess around with to get the XmlTV plugin working.

Here's a snippet from the log on the HTPC machine, where Jetty is not working:

Code:
mán. 10/31 21:06:02.363 [SageTV@1ad086a] ::DEBUG: started CompressingFilter
mán. 10/31 21:06:02.363 [SageTV@1ad086a] ::DEBUG: loaded class org.apache.jasper.servlet.JspServlet from sun.misc.Launcher$AppClassLoader@7d772e
mán. 10/31 21:06:02.363 [SageTV@1ad086a] ::DEBUG: Holding class org.apache.jasper.servlet.JspServlet
mán. 10/31 21:06:02.364 [SageTV@1ad086a] ::DEBUG: getResource(META-INF/services/javax.xml.parsers.DocumentBuilderFactory)=jar:file:/C:/Program%20Files/Java/jre6/lib/ext/xerces.jar!/META-INF/services/javax.xml.parsers.DocumentBuilderFactory
mán. 10/31 21:06:02.364 [SageTV@1ad086a] ::DEBUG: loaded class org.apache.xerces.jaxp.DocumentBuilderFactoryImpl from sun.misc.Launcher$ExtClassLoader@11b86e7
mán. 10/31 21:06:02.365 [SageTV@1ad086a] ::WARN:  failed jsp
mán. 10/31 21:06:02.366 [SageTV@1ad086a] ::DEBUG: EXCEPTION 
mán. 10/31 21:06:02.366 [SageTV@1ad086a] ::DEBUG: loaded class org.mortbay.jetty.servlet.DefaultServlet
mán. 10/31 21:06:02.366 [SageTV@1ad086a] ::DEBUG: loaded class org.mortbay.jetty.servlet.DefaultServlet from sun.misc.Launcher$AppClassLoader@7d772e
mán. 10/31 21:06:02.367 [SageTV@1ad086a] ::DEBUG: Holding class org.mortbay.jetty.servlet.DefaultServlet
mán. 10/31 21:06:02.367 [SageTV@1ad086a] ::DEBUG: started org.mortbay.jetty.servlet.DefaultServlet$NIOResourceCache@1f2af1c
mán. 10/31 21:06:02.367 [SageTV@1ad086a] ::DEBUG: started org.mortbay.jetty.ResourceCache@1c6866d
mán. 10/31 21:06:02.367 [SageTV@1ad086a] ::DEBUG: resource base = file:/C:/Program%20Files/SageTV/SageTV/jetty/webapps/apps/webapp/
mán. 10/31 21:06:02.367 [SageTV@1ad086a] ::DEBUG: started default
mán. 10/31 21:06:02.367 [SageTV@1ad086a] ::WARN:  failed org.mortbay.jetty.webapp.WebAppContext@19ea173{/apps,C:\Program Files\SageTV\SageTV\jetty/webapps/apps.war}
Notice the Failed jsp part ? Must have got something to do with this?

The exact same line on the other machine (where Jetty is working):

Code:
mán. 10/31 21:16:12.882 [SageTV@118f375] ::DEBUG: started jsp
jsp starts fine there.

Any help would be greatly appreciated !
Reply With Quote
  #2  
Old 10-31-2011, 04:05 PM
hagur hagur is offline
Sage User
 
Join Date: Feb 2007
Posts: 65
Ok ... I'm a little bit closer to the problem, and it is indeed related to the xerces parser.

On the HTPC (where jetty is not working), I had put xerces.jar into the lib/ext folder, (Program Files\Java\jre6\lib\ext)

I removed the file, restarted SageTV and now everything is working correctly! But I assume the XmlTv plugin is not, since it depends on the xerces parser.

How can I resolve this?
Reply With Quote
  #3  
Old 10-31-2011, 05:04 PM
cat6man's Avatar
cat6man cat6man is offline
Sage Fanatic
 
Join Date: Jan 2006
Location: West of NYC, East of SF
Posts: 910
i don't have an answer for you, but i had a 404 problem with SRE web access a while ago (see SRE3 thread)..............it also seemed correlated with the occurrence of excessively high java heap usage.

i rebooted, the java heap usage went back to normal, but eventually went high again. i rebooted again, and it stayed low/normal since.

i can't look at anything now though as we have been without power since saturday.............so sagetv is hibernating (literally)
__________________
Q: dad, when will you stop changing all the electronics?
A: never, so you might as well get used to it.
Reply With Quote
  #4  
Old 11-01-2011, 01:20 PM
hagur hagur is offline
Sage User
 
Join Date: Feb 2007
Posts: 65
Thanks for you input.

So my problem is that the xmltv plugin requires the xerces parser, but including it in the classpath causes jetty to fail to serve .jsp pages.

Anyone running xmltv AND jetty/web/mobile interface at the same time?? If so, what version of xerces are you running ?

Really need some help here ....
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
Problems with the Jetty webserver plugin and SageTV web interface hagur SageTV v7 Customizations 0 06-06-2011 05:28 PM
Jetty and nielm webserver help mrrrl SageTV Customizations 4 11-08-2010 09:21 PM
Strange returns? pjpjpjpj SageTV v7 Customizations 8 06-22-2010 04:32 PM
Strange audio problem in HD shows recorded using HDHR and SageTV elwoodps Hardware Support 5 04-18-2009 11:36 AM
Strange Problem with Commskip & SageTV tealcomp SageTV Customizations 2 01-08-2005 09:48 AM


All times are GMT -6. The time now is 05:48 PM.


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