Subsonic on Linux (shared server)

Need help? Post your questions here.

Moderator: moderators

Subsonic on Linux (shared server)

Postby harryandjules » Wed Feb 14, 2007 4:37 am

Hello. Sindre or anyone else, please help!

I need to get subsonic up and running on the web. Instead of turning my pc into a server, i purchased hosting with eapps.com While they are very helpful, we have been unable to get subsonic running on there.

Server: Linux
Tomcat: 5.5
Subsonic: 2.9 (prefered) but tried beta 3.0 also with no luck.

It is verified that Tomcat is running correctly.
Tried to start the subsonic webapp with the following error message:
Message:

FAIL - Application at context path /subsonic could not be started

At The following URL (myip):8080/subsonic I get the following error.
HTTP Status 404 - /subsonic/

type Status report

message /subsonic/

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

Apache Tomcat/5.5 Can enyone help me? Thanks in advance!
harryandjules
 
Posts: 1
Joined: Wed Feb 14, 2007 3:20 am

Postby sindre_mehus » Wed Feb 14, 2007 11:42 am

Can you please read this post and this and see if that solves your problem?

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

writable directory

Postby jdcub128 » Thu Feb 15, 2007 3:56 am

jvm 1 | Feb 14, 2007 10:48:04 PM org.apache.catalina.core.StandardContext start
jvm 1 | SEVERE: Error listenerStart
jvm 1 | Feb 14, 2007 10:48:04 PM org.apache.catalina.core.StandardContext start
jvm 1 | SEVERE: Context [/subsonic] startup failed due to previous errors
------------------------------------------------------------------------------------

The issue here was that the servlet needed to be able to write to a directory called /var/subsonic

so You need to run

mkdir /var/subsonic
chmod tomcat:tomcat /var/subsonic

restart tomcat and it worked

eApps Techincal Support
http://www.eapps.com
jdcub128
 
Posts: 1
Joined: Thu Feb 15, 2007 3:48 am

Directory issues under Linux

Postby trace_on » Mon Feb 26, 2007 11:23 am

Hi all,

I am having pretty much the same issues. I'm using Tomcat 5.5 and Subsonic 3 beta in a PC running Kubuntu.

Tomcat is installed in /usr/share/tomcat5. It creates a system user called "tomcat5", no group.

I copy subsonic.war in the webapps directory, which is unpacked by tomcat. I have previously created a directory /var/subsonic that belongs to tomcat5:root

From http://localhost:8180/subsonic I get the same error message:

<<
HTTP Status 404 - /subsonic/
type Status report
message /subsonic/
description The requested resource (/subsonic/) is not available.
>>

I can't think of anything else anymore... Any ideas?

Thanks very much in advance!

-Alex
trace_on
 
Posts: 4
Joined: Mon Feb 26, 2007 11:13 am

Postby sindre_mehus » Mon Feb 26, 2007 1:25 pm

Hi,

If you haven't done so already, please upgrade to 3.0.beta2. I added some code there which checks if Subsonic is able to write to /var/subsonic, and gives a proper error message if not.

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

No changes...

Postby trace_on » Wed Feb 28, 2007 9:13 pm

Hi Sindre,

Thanks a lot for your message. Unfortunately I get exactly the same output in my browser. There is a /var/subsonic that belongs to "tomcat5"... but the applet still gives me the same error message on the browser.

*scratches his head...*

-Alex
trace_on
 
Posts: 4
Joined: Mon Feb 26, 2007 11:13 am

Postby sindre_mehus » Thu Mar 01, 2007 12:16 am

Hm, ok. Can you please do the following:

1. Stop Tomcat
2. Delete all files in TOMCAT_HOME/logs
3. Create a new file TOMCAT_HOME/webapps/subsonic/WEB-INF/classes/log4j.properties with the following content:
Code: Select all
log4j.rootLogger=WARN, A1
log4j.appender.A1=org.apache.log4j.ConsoleAppender
log4j.appender.A1.layout=org.apache.log4j.PatternLayout
log4j.appender.A1.layout.ConversionPattern=[%-5p] %c %x - %m%n

4. Start Tomcat and access the Subsonic web page.
5. Look for error messages in TOMCAT_HOME/logs

Maybe this will provide us with some clues :-)

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

Log information

Postby trace_on » Thu Mar 01, 2007 12:34 am

Hi again,

I did what you told me and I grepped the logfile for "subsonic" occurrences. This is what I got:

INFO: Deploying web application archive subsonic.war
org.springframework.beans.factory.CannotLoadBeanClassException: Error loading class [net.sourceforge.subsonic.service.SecurityService] for bean with name 'securityService' defined in ServletContext resource [/WEB-INF/applicationContext-service.xml]: problem with class file or dependent class; nested exception is java.lang.NoClassDefFoundError: org/acegisecurity/userdetails/UserDetailsService
[ERROR] org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/subsonic] - Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.CannotLoadBeanClassException: Error loading class [net.sourceforge.subsonic.service.SecurityService] for bean with name 'securityService' defined in ServletContext resource [/WEB-INF/applicationContext-service.xml]: problem with class file or dependent class; nested exception is java.lang.NoClassDefFoundError: org/acegisecurity/userdetails/UserDetailsService
SEVERE: Context [/subsonic] startup failed due to previous errors

I've noticed that the last line (SEVERE...) was already before I added the file you told me. All the rest is new.

I hope this gives you a clue. Personally, I'm ever so lost :)

Thanks!

-Alex
trace_on
 
Posts: 4
Joined: Mon Feb 26, 2007 11:13 am

Postby sindre_mehus » Thu Mar 01, 2007 4:45 am

Well, it's not related to /var/subsonic, at least.

Can you please check which JVM Tomcat uses? It's available from this page: http://localhost:8080/manager/status

Do you have any other applications deployed in Tomcat?

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

Running Tomcat

Postby trace_on » Mon Mar 05, 2007 8:33 pm

Sorry it took me so long to reply. I got this from Tomcat:

Tomcat Version: Apache Tomcat/5.5
JVM Version: 1.6.0-b105
JVM Vendor: Sun Microsystems Inc.
OS Name: Linux
OS Version: 2.6.17-11-generic
OS Architecture: i386

I do have other applications running:

localhost/
localhost/balancer
localhost/manager
localhost/jsp-examples
localhost/host-manager
localhost/admin
localhost/servlets-examples
localhost/webdav
localhost/tomcat-docs
localhost/subsonic

The only one that is not running is actually subsonic (the only one that matters to me, this computer hates me!) :)

Thanks a lot for looking into this matter.

Cheers,

-Alex
trace_on
 
Posts: 4
Joined: Mon Feb 26, 2007 11:13 am

Postby java100 » Fri Mar 13, 2009 1:31 pm

JSP and Servlet at http://javaprovider.net no one can beat them
java100
 
Posts: 1
Joined: Fri Mar 13, 2009 1:30 pm


Return to Help

Who is online

Users browsing this forum: No registered users and 25 guests