You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Kevin Williams (JIRA)" <tu...@ws.apache.org> on 2006/05/16 18:19:07 UTC
[jira] Updated: (TUSCANY-385) Company web sample does not work
[ http://issues.apache.org/jira/browse/TUSCANY-385?page=all ]
Kevin Williams updated TUSCANY-385:
-----------------------------------
There should be no set up required. I completed automation of this sample last night and tested it on Windows. Looks like a problem with the path used to specify the location of the database.
'/home/delfinoj/Tuscany/apache-repos/java/distribution/tomcat-overlay/../target/tuscany-dist/apache-tomcat-5.5.17/Databases/dastest'
The build.xml in testing/samples generates the complete path for the Database modifies the tomcat server.xml accordingly. I wonder if this is an issues with the path on Linux or with the distribiution set up?
> 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
> Assignee: Kevin Williams
>
> 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