[ http://issues.apache.org/jira/browse/TUSCANY-385?page=comments#action_12412002 ]
Raymond Feng commented on TUSCANY-385: -------------------------------------- We configure the DB when the tomcat server is pre-configured during the distro build. The path is not correct since it points to the build environment. I'm not sure if Tomcat supports the relative path. Kevin may have some information on this. > Company web sample does not work > -------------------------------- > > Key: TUSCANY-385 > URL: http://issues.apache.org/jira/browse/TUSCANY-385 > Project: Tuscany > Type: Bug > Components: Java DAS Samples > Versions: Java-M1 > Environment: Fedora Core 5 > Reporter: Simon Laws > > The company web sample returns the following when you visit > http://localhost:8080/sample-companyweb-incubating-M1/Company.jsp: > It may be that there is more setup to do but it is not clear from the > instructions what you are required to do for the binary distribution. > I'll try following some of the setup steps and see if I can get it to run. > =================================== > HTTP Status 500 - > type Exception report > message > description The server encountered an internal error () that prevented it > from fulfilling this request. > exception > org.apache.jasper.JasperException: Exception in JSP: /Company.jsp:120 > 117: <tbody> > 118: > 119: <% > 120: CompanyClient companyClient = new CompanyClient(); > 121: java.util.Iterator i = > companyClient.getCompaniesWithDepartments().iterator(); > 122: while (i.hasNext()) { > 123: DataObject company = (DataObject)i.next(); > Stacktrace: > > org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:504) > > org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:375) > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) > org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) > javax.servlet.http.HttpServlet.service(HttpServlet.java:802) > root cause > javax.servlet.ServletException: > org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create > PoolableConnectionFactory (Database > '/home/delfinoj/Tuscany/apache-repos/java/distribution/tomcat-overlay/../target/tuscany-dist/apache-tomcat-5.5.17/Databases/dastest' > not found.) > > org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:858) > > org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:791) > org.apache.jsp.Company_jsp._jspService(Company_jsp.java:217) > org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) > javax.servlet.http.HttpServlet.service(HttpServlet.java:802) > > org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332) > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) > org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) > javax.servlet.http.HttpServlet.service(HttpServlet.java:802) > root cause > java.lang.Error: org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot > create PoolableConnectionFactory (Database > '/home/delfinoj/Tuscany/apache-repos/java/distribution/tomcat-overlay/../target/tuscany-dist/apache-tomcat-5.5.17/Databases/dastest' > not found.) > > org.apache.tuscany.das.rdb.impl.CommandGroupImpl.initViaDataSource(CommandGroupImpl.java:170) > > org.apache.tuscany.das.rdb.impl.CommandGroupImpl.initializeConnection(CommandGroupImpl.java:126) > > org.apache.tuscany.das.rdb.impl.CommandGroupImpl.getConnection(CommandGroupImpl.java:114) > > org.apache.tuscany.das.rdb.impl.CommandGroupImpl.initialize(CommandGroupImpl.java:68) > > org.apache.tuscany.das.rdb.impl.CommandGroupImpl.<init>(CommandGroupImpl.java:55) > > org.apache.tuscany.das.rdb.impl.CommandGroupFactoryImpl.createCommandGroup(CommandGroupFactoryImpl.java:28) > > org.apache.tuscany.samples.das.companyweb.CompanyClient.<init>(CompanyClient.java:35) > org.apache.jsp.Company_jsp._jspService(Company_jsp.java:158) > org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) > javax.servlet.http.HttpServlet.service(HttpServlet.java:802) > > org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332) > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) > org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) > javax.servlet.http.HttpServlet.service(HttpServlet.java:802) -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
