Can't Start Subsonic (Permission Problem?)

Need help? Post your questions here.

Moderator: moderators

Can't Start Subsonic (Permission Problem?)

Postby ejmarino » Tue Sep 26, 2006 5:48 pm

Hi! I'm installed Java5 and Tomcat using apt-get in my Ubuntu 6.06. I configured Tomcat to use Sun Java. When i dragged the subsonic war file, tomcat deployed it and tried to started it. next is a part of the exception it throwed:

[...]
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'daoHelper' defined in ServletContext resource [/WEB-INF/applicationContext-service.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [net.sourceforge.subsonic.dao.DaoHelper]: Constructor threw exception; nested exception is java.security.AccessControlException: access denied (java.util.PropertyPermission subsonic.home read)
Caused by:
org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [net.sourceforge.subsonic.dao.DaoHelper]: Constructor threw exception; nested exception is java.security.AccessControlException: access denied (java.util.PropertyPermission subsonic.home read)
Caused by:
java.security.AccessControlException: access denied (java.util.PropertyPermission subsonic.home read)
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:264)
at java.security.AccessController.checkPermission(AccessController.java:427)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
at java.lang.SecurityManager.checkPropertyAccess(SecurityManager.java:1285)
at java.lang.System.getProperty(System.java:627)
at net.sourceforge.subsonic.service.SettingsService.getSubsonicHome(SettingsService.java:155)
at net.sourceforge.subsonic.dao.DaoHelper.createDataSource(DaoHelper.java:38)
at net.sourceforge.subsonic.dao.DaoHelper.<init>(DaoHelper.java:25)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
[...]

I think it's an easy one for someone who knows :) (i hope)

Thanks!
ejmarino
 
Posts: 2
Joined: Tue Sep 26, 2006 5:42 pm

Postby sindre_mehus » Tue Sep 26, 2006 7:03 pm

Hi,

Sounds like you're starting Tomcat with the "-security" option. I suggest you remove that.

More info about "-security" on this blog: http://www.petrovic.org/blog/?p=134

Hope this helps,
Sindre
User avatar
sindre_mehus
 
Posts: 1955
Joined: Tue Nov 29, 2005 6:19 pm
Location: Oslo, Norway

Working!

Postby ejmarino » Tue Sep 26, 2006 7:07 pm

You are right. i looked at /etc/init.d/tomcat5 init script that ubuntu made and change the security option.

Thanks
ejmarino
 
Posts: 2
Joined: Tue Sep 26, 2006 5:42 pm


Return to Help

Who is online

Users browsing this forum: No registered users and 17 guests