Page 1 of 1

WAR Installation on FreeBSD 9.0-RC1

PostPosted: Sun Nov 06, 2011 4:37 am
by badhat101
Hi all,

I'm trying out the subsonic 4.5 from FreeBSD ports. I have set up my tomcat server correctly and I can access localhost:8180 (the tomcat server's listening port). However, trying localhost:8180/subsonic brings me to a 404 error page by tomcat. What gives?

Re: WAR Installation on FreeBSD 9.0-RC1

PostPosted: Sun Nov 06, 2011 12:04 pm
by powderedegg
What are the error logs saying?

Re: WAR Installation on FreeBSD 9.0-RC1

PostPosted: Sun Nov 06, 2011 3:42 pm
by badhat101
From the log "TOMCAT_HOME/logs/catalina.2011-11-06.log" I found
Code: Select all
Nov 6, 2011 2:58:59 AM org.apache.catalina.core.StandardService stop
INFO: Stopping service Catalina
Nov 6, 2011 2:59:00 AM org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
SEVERE: The web application [/subsonic] registered the JDBC driver [org.hsqldb.jdbcDriver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
Nov 6, 2011 2:59:00 AM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/subsonic] appears to have started a thread named [HSQLDB Timer @1a8402c] but has failed to stop it. This is very likely to create a memory leak.
Nov 6, 2011 2:59:00 AM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/subsonic] appears to have started a thread named [Timer-0] but has failed to stop it. This is very likely to create a memory leak.
Nov 6, 2011 2:59:00 AM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/subsonic] appears to have started a thread named [pool-1-thread-1] but has failed to stop it. This is very likely to create a memory leak.
Nov 6, 2011 2:59:00 AM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/subsonic] appears to have started a thread named [pool-1-thread-2] but has failed to stop it. This is very likely to create a memory leak.
Nov 6, 2011 2:59:00 AM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/subsonic] appears to have started a thread named [pool-2-thread-1] but has failed to stop it. This is very likely to create a memory leak.
Nov 6, 2011 2:59:00 AM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/subsonic] appears to have started a thread named [pool-3-thread-1] but has failed to stop it. This is very likely to create a memory leak.
Nov 6, 2011 2:59:07 AM org.apache.coyote.http11.Http11Protocol destroy
INFO: Stopping Coyote HTTP/1.1 on http-8180


Additionally, in "TOMCAT_HOME/logs/stdout.log" I found

Code: Select all
Failed to write to subsonic.log.
java.io.FileNotFoundException: /var/subsonic/subsonic.log (Permission denied)
   at java.io.FileOutputStream.open(Native Method)
   at java.io.FileOutputStream.<init>(FileOutputStream.java:179)
   at java.io.FileWriter.<init>(FileWriter.java:90)
   at net.sourceforge.subsonic.Logger.getPrintWriter(Logger.java:162)
   at net.sourceforge.subsonic.Logger.add(Logger.java:152)
   at net.sourceforge.subsonic.Logger.info(Logger.java:112)
   at net.sourceforge.subsonic.Logger.info(Logger.java:103)
   at net.sourceforge.subsonic.dao.DaoHelper.checkDatabase(DaoHelper.java:105)
   at net.sourceforge.subsonic.dao.DaoHelper.<init>(DaoHelper.java:65)


All that I find in "/var/subsonic/subsonic.log" is

Code: Select all
[2011-11-06 03:00:00,913] INFO SearchService - Starting to create search index.
[2011-11-06 03:03:48,542] INFO PodcastService - Starting scheduled Podcast refresh.

Re: WAR Installation on FreeBSD 9.0-RC1

PostPosted: Sun Nov 06, 2011 4:37 pm
by BKKKPewsey
What version of tomcat do you have?

Re: WAR Installation on FreeBSD 9.0-RC1

PostPosted: Sun Nov 06, 2011 4:43 pm
by badhat101
I'm using tomcat6 from ports. According to http://www.freshports.org/www/subsonic/ you cannot use tomcat7 or any java other than jdk16

Re: WAR Installation on FreeBSD 9.0-RC1

PostPosted: Fri Dec 16, 2011 9:13 am
by risk
I gave up on freebsd and I'm just using the "standalone" version that has a preconfigured working jetty wrapped.

Re: WAR Installation on FreeBSD 9.0-RC1

PostPosted: Fri Dec 16, 2011 2:16 pm
by cfalzone
I gave up on freebsd and I'm just using the "standalone" version that has a preconfigured working jetty wrapped.


Me, too. The packaged jetty server works well enough for me. I only wanted to use the version from ports because it's nice to be able to update all my packages from one place.