Re: Error running under Tomcat5
"Joe Panico" <[email protected]>
| Newsgroups | gmane.comp.web.pixory |
|---|---|
| Message-ID | <[email protected]> |
Nick, I just downloaded Tomcat 5.0, unzipped it, and started the server by running CATALINA_HOME/bin/startup.bat. Then I followed the instructions in the Pixory Readme file-- I dropped the pixory.war file in CATALINA_HOME/webapps. Tomcat automagically hot deployed the web application. Then I went to http://localhost:8080/pixory/pxapplication?service=page/AlbumBrowser and everything just worked. This was all on Windows NT 4.0 (which shouldn't make any difference). Please try following that recipe and let me know what happens. joe --- In [email protected], "Nick Silberstein" <linux-dell-laptops.5.drel@s...> wrote: > > I'm unable to run Pixory. I've copied the pixory.war file to > /usr/share/tomcat5/webapps. I then tried to access Pixory at > http://[my.ip]/pixory/pxapplication?service=page/AlbumBrowser, and got > the following stack trace. The error appears to be due to a missing > /usr/share/tomcat5/.pixory/data/pixory.properties file. There is no > .pixory directory under /usr/share/tomcat5. > > Best regards, > Nick > > 2004-10-05 11:30:37 StandardWrapperValve[pxapplication]: Allocate > exception for servlet pxapplication > javax.servlet.ServletException: > org.pixory.pxmodel.PXObjectStoreException: > net.sf.hibernate.JDBCException: Cannot open connection > at > org.pixory.pxapplication.PXApplication.init(PXApplication.java:145) > at > org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1019) > at > org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:687) > at > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:144) > at > org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) > at > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) > at > org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198) > at > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152) > at > org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) > at > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) > at > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137) > at > org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) > at > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) > at > org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102) > at > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) > at > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) > at > org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) > at > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) > at > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929) > at > org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160) > at > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:793) > at > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:702) > at > org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:571) > at > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:644) > at java.lang.Thread.run(Thread.java:534) > ----- Root Cause ----- > org.pixory.pxmodel.PXObjectStoreException: > org.pixory.pxmodel.PXObjectStoreException: > net.sf.hibernate.JDBCException: Cannot open connection > at org.pixory.pxmodel.PXObjectStore.setup(PXObjectStore.java:150) > at > org.pixory.pxapplication.PXApplication.init(PXApplication.java:88) > at > org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1019) > at > org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:687) > at > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:144) > at > org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) > at > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) > at > org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198) > at > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152) > at > org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) > at > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) > at > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137) > at > org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) > at > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) > at > org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102) > at > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) > at > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) > at > org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) > at > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) > at > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929) > at > org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160) > at > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:793) > at > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:702) > at > org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:571) > at > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:644) > at java.lang.Thread.run(Thread.java:534) > Caused by: org.pixory.pxmodel.PXObjectStoreException: > net.sf.hibernate.JDBCException: Cannot open connection > at > org.pixory.pxmodel.PXObjectStore.getTableMetadata(PXObjectStore.java:422) > at > org.pixory.pxmodel.PXObjectStore.getTableNames(PXObjectStore.java:439) > at > org.pixory.pxmodel.PXObjectStore.getUserTableNames(PXObjectStore.java:457) > at > org.pixory.pxmodel.PXObjectStoreVersion.getDatabaseVersionNumber(PXObjectStoreVersion.java:322) > at > org.pixory.pxmodel.PXObjectStoreVersion.ensureCurrent(PXObjectStoreVersion.java:544) > at org.pixory.pxmodel.PXObjectStore.setup(PXObjectStore.java:136) > ... 25 more > Caused by: net.sf.hibernate.JDBCException: Cannot open connection > at > net.sf.hibernate.impl.BatcherImpl.openConnection(BatcherImpl.java:281) > at > net.sf.hibernate.impl.SessionImpl.connect(SessionImpl.java:3264) > at > net.sf.hibernate.impl.SessionImpl.connection(SessionImpl.java:3244) > at > org.pixory.pxmodel.PXObjectStore.getTableMetadata(PXObjectStore.java:395) > ... 30 more > Caused by: java.sql.SQLException: File input/output error: > /usr/share/tomcat5/.pixory/data/pixory.properties > java.io.FileNotFoundException: > /usr/share/tomcat5/.pixory/data/pixory.properties (No such file or > directory) > at org.hsqldb.Trace.getError(Unknown Source) > at org.hsqldb.Trace.error(Unknown Source) > at org.hsqldb.HsqlDatabaseProperties.save(Unknown Source) > at org.hsqldb.Log.create(Unknown Source) > at org.hsqldb.Log.open(Unknown Source) > at org.hsqldb.Database$Logger.openLog(Unknown Source) > at org.hsqldb.Database.open(Unknown Source) > at org.hsqldb.Database.<init>(Unknown Source) > at org.hsqldb.jdbcConnection.openStandalone(Unknown Source) > at org.hsqldb.jdbcConnection.<init>(Unknown Source) > at org.hsqldb.jdbcDriver.connect(Unknown Source) > at java.sql.DriverManager.getConnection(DriverManager.java:512) > at java.sql.DriverManager.getConnection(DriverManager.java:140) > at > net.sf.hibernate.connection.DriverManagerConnectionProvider.getConnection(DriverManagerConnectionProvider.java:95) > at > net.sf.hibernate.impl.BatcherImpl.openConnection(BatcherImpl.java:278) > ... 33 more ------------------------ Yahoo! Groups Sponsor --------------------~--> $9.95 domain names from Yahoo!. Register anything. http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/EGnolB/TM --------------------------------------------------------------------~-> Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/pixory-beta/ <*> To unsubscribe from this group, send an email to: [email protected] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/