You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Simon Laws (JIRA)" <tu...@ws.apache.org> on 2006/05/16 17:59:05 UTC
[jira] Created: (TUSCANY-385) Company web sample does not work
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
[jira] Commented: (TUSCANY-385) Company web sample does not work
Posted by "Raymond Feng (JIRA)" <tu...@ws.apache.org>.
[ 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
[jira] Updated: (TUSCANY-385) Company web sample does not work
Posted by "Raymond Feng (JIRA)" <tu...@ws.apache.org>.
[ http://issues.apache.org/jira/browse/TUSCANY-385?page=all ]
Raymond Feng updated TUSCANY-385:
---------------------------------
Attachment: distro.patch
The same fix has to go to distro (configureTomcat.xml). Here's the patch.
Thanks,
Raymond
> 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
> Fix For: Java-M1
> Attachments: distro.patch
>
> 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
[jira] Updated: (TUSCANY-385) Company web sample does not work
Posted by "ant elder (JIRA)" <tu...@ws.apache.org>.
[ http://issues.apache.org/jira/browse/TUSCANY-385?page=all ]
ant elder updated TUSCANY-385:
------------------------------
Fix Version: Java-M1
> 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
> Fix For: Java-M1
>
> 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
[jira] Closed: (TUSCANY-385) Company web sample does not work
Posted by "Kevin Williams (JIRA)" <tu...@ws.apache.org>.
[ http://issues.apache.org/jira/browse/TUSCANY-385?page=all ]
Kevin Williams closed TUSCANY-385:
----------------------------------
Verified with revision 407039
> 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
> Fix For: Java-M1
>
> 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
[jira] Commented: (TUSCANY-385) Company web sample does not work
Posted by "Kevin Williams (JIRA)" <tu...@ws.apache.org>.
[ http://issues.apache.org/jira/browse/TUSCANY-385?page=comments#action_12412012 ]
Kevin Williams commented on TUSCANY-385:
----------------------------------------
Thanks Simon. So, I see two possible solutions:
1) Get relative paths working in resorce definitions with Tomcat
2) Make Sebastiens machine available to host the database for the samples :-)
I'll work on #1.
> 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
[jira] Commented: (TUSCANY-385) Company web sample does not work
Posted by "Rick Rineholt (JIRA)" <tu...@ws.apache.org>.
[ http://issues.apache.org/jira/browse/TUSCANY-385?page=comments#action_12412014 ]
Rick Rineholt commented on TUSCANY-385:
---------------------------------------
As a hack I think this can work if in the sever.xml we use :
<Resource name="jdbc/dastest" type="javax.sql.DataSource" auth="Container" description="Derby database for DAS Company sample" maxActive="100" maxIdle="30" maxWait="10000" username="" password="" driverClassName="org.apache.derby.jdbc.EmbeddedDriver" url="jdbc:derby:../Databases/dastest"/>
> 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
[jira] Commented: (TUSCANY-385) Company web sample does not work
Posted by "Kevin Williams (JIRA)" <tu...@ws.apache.org>.
[ http://issues.apache.org/jira/browse/TUSCANY-385?page=comments#action_12412005 ]
Kevin Williams commented on TUSCANY-385:
----------------------------------------
Well, Rick just answered my question and the problem is my construction of an absolute path in the build.xml. I was not able to get this workng with relative paths last night but I will go back to the drawing board.
> 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
[jira] Commented: (TUSCANY-385) Company web sample does not work
Posted by "Rick Rineholt (JIRA)" <tu...@ws.apache.org>.
[ http://issues.apache.org/jira/browse/TUSCANY-385?page=comments#action_12412016 ]
Rick Rineholt commented on TUSCANY-385:
---------------------------------------
just double checked .. this does assume your starting tomcat from the bin dir ... is this a reasonable assumption?
> 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
> Fix For: Java-M1
>
> 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
[jira] Updated: (TUSCANY-385) Company web sample does not work
Posted by "Kevin Williams (JIRA)" <tu...@ws.apache.org>.
[ 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
[jira] Commented: (TUSCANY-385) Company web sample does not work
Posted by "Simon Laws (JIRA)" <tu...@ws.apache.org>.
[ http://issues.apache.org/jira/browse/TUSCANY-385?page=comments#action_12412006 ]
Simon Laws commented on TUSCANY-385:
------------------------------------
The problem is the url of the JDBC resource JNI entry. In the binary build it is an absolute path to somewhere on jsdelfino's machine. I fixed to an absolute path to the tomcat/Databases directory and it worked. Don't know how to make that a relative path though
> 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
[jira] Assigned: (TUSCANY-385) Company web sample does not work
Posted by "Kevin Williams (JIRA)" <tu...@ws.apache.org>.
[ http://issues.apache.org/jira/browse/TUSCANY-385?page=all ]
Kevin Williams reassigned TUSCANY-385:
--------------------------------------
Assign To: Kevin Williams
> 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
[jira] Resolved: (TUSCANY-385) Company web sample does not work
Posted by "Kevin Williams (JIRA)" <tu...@ws.apache.org>.
[ http://issues.apache.org/jira/browse/TUSCANY-385?page=all ]
Kevin Williams resolved TUSCANY-385:
------------------------------------
Resolution: Fixed
> 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
> Fix For: Java-M1
>
> 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