WAR Installation on FreeBSD 9.0-RC1

Need help? Post your questions here.

Moderator: moderators

WAR Installation on FreeBSD 9.0-RC1

Postby badhat101 » Sun Nov 06, 2011 4:37 am

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?
badhat101
 
Posts: 4
Joined: Sun Jan 02, 2011 1:46 am

Re: WAR Installation on FreeBSD 9.0-RC1

Postby powderedegg » Sun Nov 06, 2011 12:04 pm

What are the error logs saying?
powderedegg
 
Posts: 5
Joined: Fri Aug 26, 2011 10:12 am

Re: WAR Installation on FreeBSD 9.0-RC1

Postby badhat101 » Sun Nov 06, 2011 3:42 pm

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.
badhat101
 
Posts: 4
Joined: Sun Jan 02, 2011 1:46 am

Re: WAR Installation on FreeBSD 9.0-RC1

Postby BKKKPewsey » Sun Nov 06, 2011 4:37 pm

What version of tomcat do you have?
Everyone is entitled to be stupid, Image but some abuse the privilege!

Due to the confusion from too many genres of music, we have decided to put both country music and rap music into the genre of Crap music.
User avatar
BKKKPewsey
 
Posts: 2080
Joined: Mon May 23, 2011 12:16 pm
Location: United Kingdom

Re: WAR Installation on FreeBSD 9.0-RC1

Postby badhat101 » Sun Nov 06, 2011 4:43 pm

I'm using tomcat6 from ports. According to http://www.freshports.org/www/subsonic/ you cannot use tomcat7 or any java other than jdk16
badhat101
 
Posts: 4
Joined: Sun Jan 02, 2011 1:46 am

Re: WAR Installation on FreeBSD 9.0-RC1

Postby risk » Fri Dec 16, 2011 9:13 am

I gave up on freebsd and I'm just using the "standalone" version that has a preconfigured working jetty wrapped.
risk
 
Posts: 3
Joined: Thu May 26, 2011 6:01 am

Re: WAR Installation on FreeBSD 9.0-RC1

Postby cfalzone » Fri Dec 16, 2011 2:16 pm

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.
cfalzone
 
Posts: 4
Joined: Sun Feb 06, 2011 5:13 am


Return to Help

Who is online

Users browsing this forum: No registered users and 43 guests