Where exactly is BlueBox looking for bluebox.properties?
Posted: 20 Nov 2009, 22:37
I am trying to get a standalone BlueBox running on a dedicated server. I have followed the directions in the BlueBox faq:
http://www.smartfoxserver.com/docs/docPages/blueBox/faq.html
I am running Debian linux (squeeze/testing) and performed the following:
Note that the exception shows the path to BlueBox.war as /var/lib/jetty/webapps/BlueBox.war. This is because /var/lib/jetty/webapps is a link to /usr/share/jetty/webapps.
I have tried copying bluebox.properties in any place I thought it may be accessible and restarting jetty:
There has got to be a simple answer to this, such as "copy the file to this directory". If this has never been done on Debian before, then what linux operating systems have you had success with?
http://www.smartfoxserver.com/docs/docPages/blueBox/faq.html
I am running Debian linux (squeeze/testing) and performed the following:
- Installed sun's jre: aptitude install sun-java6-jre
Installed Jetty: "aptitude install jetty"
Copied BlueBox.war to /usr/share/jetty/webapps
Modified bluebox.properties and copied it to /usr/share/jetty
674 [main] INFO org.mortbay.log - jetty-6.1.x
778 [main] INFO org.mortbay.log - Deploy /etc/jetty/contexts/javadoc.xml -> org.mortbay.jetty.handler.ContextHandler@12d7a10{/javadoc,file:/usr/share/doc/libjetty-java/api/}
45242 [main] INFO org.mortbay.log - Extract file:/var/lib/jetty/webapps/BlueBox.war to /var/cache/jetty/data/Jetty__8080_BlueBox.war__BlueBox__.mc3dy0/webapp
::::::::::: { BlueBox INITED } ::::::::::::
: :
: Version 1.0.5 -- (c) 2008 gotoAndPlay() :
: :
:::::::::::::::::::::::::::::::::::::::::::
java.io.FileNotFoundException: bluebox.properties (No such file or directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:106)
at java.io.FileInputStream.<init>(FileInputStream.java:66)
at it.gotoandplay.smartfoxserver.httpbox.util.LibUtil.<clinit>(LibUtil.java:32)
at it.gotoandplay.smartfoxserver.httpbox.filter.SessionIDFilter.init(SessionIDFilter.java:59)
at org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:97)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:662)
at org.mortbay.jetty.servlet.Context.startContext(Context.java:140)
at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1250)
at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517)
at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:467)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
at org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
at org.mortbay.jetty.Server.doStart(Server.java:224)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at org.mortbay.xml.XmlConfiguration.main(XmlConfiguration.java:985)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.mortbay.start.Main.invokeMain(Main.java:194)
at org.mortbay.start.Main.start(Main.java:534)
at org.mortbay.jetty.start.daemon.Bootstrap.start(Bootstrap.java:30)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.commons.daemon.support.DaemonLoader.start(DaemonLoader.java:177)
Note that the exception shows the path to BlueBox.war as /var/lib/jetty/webapps/BlueBox.war. This is because /var/lib/jetty/webapps is a link to /usr/share/jetty/webapps.
I have tried copying bluebox.properties in any place I thought it may be accessible and restarting jetty:
- /etc/jetty
/usr/share/jetty/webapps
/usr/share/jetty/webapps/root
/usr/share/jetty/lib
/usr/share/jetty/lib/ext
/usr/share/java/lib
/var/cache/jetty
There has got to be a simple answer to this, such as "copy the file to this directory". If this has never been done on Debian before, then what linux operating systems have you had success with?