Subsonic fails to start

Need help? Post your questions here.

Moderator: moderators

Subsonic fails to start

Postby dozer » Sun Jul 29, 2007 1:15 pm

Hi there, I am having problems installing subsonic in my computer.

OS: Ubuntu 7.04 (Feisty Fawn)
Tomcat: 5.5
Java: java-6-sun-1.6.0

First I had some problems installing tomcat, because the ubuntu repositories were broken, I had to set up the tomcat using these instructions http://ubuntuforums.org/showthread.php?t=436295
Well, now everything works except the subsonic. I placed it under the /webapps, but it doesn't even seem to load it if I start the Tomcat. Then I tried to load the .war using tomcat management-application. It fails to start and catalina.out says:

Code: Select all
Jul 29, 2007 3:32:29 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive subsonic.war
log4j:WARN No appenders could be found for logger (org.apache.commons.digester.Digester).
log4j:WARN Please initialize the log4j system properly.
Jul 29, 2007 3:32:35 PM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
Jul 29, 2007 3:32:35 PM org.apache.catalina.core.StandardContext start
SEVERE: Context [/subsonic] startup failed due to previous errors


Any ideas?
dozer
 
Posts: 5
Joined: Sun Jul 29, 2007 12:41 pm

Postby sindre_mehus » Mon Jul 30, 2007 4:00 pm

Hi. To diagnose the problem further, 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

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

Postby sindre_mehus » Mon Jul 30, 2007 4:01 pm

Hi. To diagnose the problem further, 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

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

Postby dozer » Tue Jul 31, 2007 5:04 pm

OK, I finally got subsonic to start. The logger-thing there didn't help me, because I still got no log entries from subsonic.

But here is what i did:

I created file TOMCAT_HOME/conf/Catalina/localhost/subsonic.xml
with content:

Code: Select all
<Context path="/subsonic" docBase="/usr/share/tomcat5.5/server/webapps/subsonic"
        debug="0" privileged="true">

</Context>



... and that did it
dozer
 
Posts: 5
Joined: Sun Jul 29, 2007 12:41 pm


Return to Help

Who is online

Users browsing this forum: No registered users and 14 guests