subsonic 404 error

Need help? Post your questions here.

Moderator: moderators

subsonic 404 error

Postby rlefig » Wed Oct 03, 2007 2:41 pm

I am running ubuntu with tomcat5 using Using JAVA_HOME: /usr/lib/jvm/java-1.5.0-sun-1.5.0.11

Tomcat seems to load fine see http://ww2.lefig.net:8180/, I have copied subsonic.war to /var/lib/tomcat5/webapps and it does create a subsonic directory with tomcat5 as the owner. But when i go to :8180/subsonic i get the following error

Status report

message /subsonic/

description The requested resource (/subsonic/) is not available.

Here is some output from /var/lib/tomcat5/logs/catalina_2007-10-03.log

Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean wit
h name 'playerDao' defined in ServletContext resource [/WEB-INF/applicationConte
xt-service.xml]: Cannot resolve reference to bean 'daoHelper' while setting bean
property 'daoHelper'; nested exception is org.springframework.beans.factory.Bea
nCreationException: Error creating bean with name 'daoHelper' defined in Servlet
Context resource [/WEB-INF/applicationContext-service.xml]: Instantiation of bea
n failed; nested exception is org.springframework.beans.BeanInstantiationExcepti
on: Could not instantiate bean class [net.sourceforge.subsonic.dao.DaoHelper]: C
onstructor threw exception; nested exception is java.security.AccessControlExcep
tion: access denied (java.util.PropertyPermission subsonic.home read)
Caused by:
org.springframework.beans.factory.BeanCreationException: Error creating bean wit
h name 'daoHelper' defined in ServletContext resource [/WEB-INF/applicationConte
xt-service.xml]: Instantiation of bean failed; nested exception is org.springfra
mework.beans.BeanInstantiationException: Could not instantiate bean class [net.s
ourceforge.subsonic.dao.DaoHelper]: Constructor threw exception; nested exceptio
n is java.security.AccessControlException: access denied (java.util.PropertyPerm
ission subsonic.home read)
Caused by:
org.springframework.beans.BeanInstantiationException: Could not instantiate bean
class [net.sourceforge.subsonic.dao.DaoHelper]: Constructor threw exception; ne
sted exception is java.security.AccessControlException: access denied (java.util
.PropertyPermission subsonic.home read)
Caused by:
java.security.AccessControlException: access denied (java.util.PropertyPermissio
n subsonic.home read)

SEVERE: Error listenerStart
Oct 3, 2007 10:40:12 AM org.apache.catalina.core.StandardContext start
SEVERE: Context startup failed due to previous errors
rlefig
 
Posts: 7
Joined: Wed Oct 03, 2007 2:28 pm

tomcat manager can deploy war

Postby rlefig » Wed Oct 03, 2007 3:41 pm

But when I try and start it i get

FAIL - Application at context path /subsonic could not be started
rlefig
 
Posts: 7
Joined: Wed Oct 03, 2007 2:28 pm

lind of resolved

Postby rlefig » Wed Oct 03, 2007 5:23 pm

tomcat_security = no resolves the issue
rlefig
 
Posts: 7
Joined: Wed Oct 03, 2007 2:28 pm

Some observations

Postby linuxman » Wed Oct 03, 2007 5:48 pm

I run it on fc7 and after loading it about 4 times have now finally figured what issues are encountered with java/subsonic and permissions.

First you have to play with the variables that point to which java is used. Your error you're seeing is typically caused because the jdk is actually picking up and using an environment variable pointing to 1.4 and not the 1.5 you installed and configured. FC7 uses the debian based alternatives to source system links to java and that is where my issues were at. the jdk_home variable was pointing to 1.4 and when I used alternatives commands to add the 1.5 jdk folder and then pointed alternatives there it all works.

You must also make sure that 777 is set on the /var/subsonic folder as well. Never played with ubuntu as I learned the redhat system and got my rhce and just stick with what I know now. I tried debian and its too purist and difficult to install and navigate for me. I can dabble in any of the distros that broke off redhat like mandriva, suse, and such and get by but the debians throw me hard.
User avatar
linuxman
 
Posts: 58
Joined: Sat Sep 23, 2006 5:53 am

Postby sping » Mon Dec 03, 2007 11:33 pm

i get 404 subsonic/index.view not available.
turning security off didn't help, altiernatives
and JAVA_HOME both checked.

any ideas?


debian testing
subsonic 3.2 stable
tomcat 5.5
java 6 update 3
User avatar
sping
 
Posts: 6
Joined: Sun May 20, 2007 10:50 pm
Location: Berlin, Germany


Return to Help

Who is online

Users browsing this forum: No registered users and 13 guests