Cache?

Need help? Post your questions here.

Moderator: moderators

Cache?

Postby midez » Fri Dec 17, 2010 3:29 pm

I have done some changes to the playlist in the bottom frame. I have replaced the text with some icons. When i'm replacing the playlist.jsp in the war file and reloading the frame, nothing happens. No changes. Is it cached somewhere or what is the problem? I have tried to access my susonic from both home and at work so it seams to be a server problem.
midez
 
Posts: 6
Joined: Thu Jun 17, 2010 6:16 am

Postby GJ51 » Fri Dec 17, 2010 6:33 pm

You could try a server reboot to clear any caching, but it sounds as if the changes you made may have caused the problem. If you can't get it working, just reinstall SS.
Gary J

http://bios-mods.com
http://www.maplegrovepartners.com
http://theaverageguy.tv/category/tagpodcasts/cyberfrontiers/
User avatar
GJ51
 
Posts: 3492
Joined: Wed Oct 20, 2010 11:58 pm
Location: Western New York

Postby stozher » Sun Dec 19, 2010 1:54 pm

First clear browser cache and reload page. For Firefox go to Preferences / Advanced / Network storage - Offline storage: Clear Now (button)... close preferences and reload page.

Other problems: if changed some jsp-fiile and after this back original version with older date... I see jetty server cached in '/srv/subsonic/jetty/1944/jsp/org/apache/jsp/WEB_002dINF' directory but I not experimented with deletion of this files...
http://music.stozher.com:8080/login.view?user=guest&password=
User avatar
stozher
 
Posts: 313
Joined: Tue Nov 16, 2010 10:56 am
Location: Sofia, Bulgaria

Postby midez » Mon Dec 20, 2010 7:41 am

Thenks stozher, I had allready reinstalled it but i will absolutly try the directory WEB_002dINF next time because it didn't help to clear the cache in FF.
midez
 
Posts: 6
Joined: Thu Jun 17, 2010 6:16 am

Postby 3R3 » Fri Jan 14, 2011 8:32 pm

Thanks for that tip stozher. I had been looking for some cache for ages but i didnt think jetty would cache jsp files as .java and .class files...

Yes clearing this folder (see above) does make your SS operational again if you changed something while server was running or sometimes even if its just some weird behaviour. And its less of a pain than a reinstall, at least if you did some modding^^
User avatar
3R3
 
Posts: 332
Joined: Mon May 04, 2009 2:09 pm
Location: Germany

Postby stozher » Sat Jan 15, 2011 8:42 pm

"JSP simply puts Java inside HTML pages. You can take any existing HTML page and change its extension to ".jsp" instead of ".html". In fact, this is the perfect exercise for your first JSP.

Take the HTML file you used in the previous exercise. Change its extension from ".html" to ".jsp". Now load the new file, with the ".jsp" extension, in your browser.

You will see the same output, but it will take longer! But only the first time. If you reload it again, it will load normally.

What is happening behind the scenes is that your JSP is being turned into a Java file, compiled and loaded. This compilation only happens once, so after the first load, the file doesn't take long to load anymore. (But everytime you change the JSP file, it will be re-compiled again.)"

http://www.jsptut.com/

Stop server. Remove folder ".../subsonic/jetty/XXXX/jsp". Start server again... Enjoy!
http://music.stozher.com:8080/login.view?user=guest&password=
User avatar
stozher
 
Posts: 313
Joined: Tue Nov 16, 2010 10:56 am
Location: Sofia, Bulgaria


Return to Help

Who is online

Users browsing this forum: No registered users and 16 guests