You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Andrés Nates <an...@nuevosmedios.ws> on 2006/08/23 00:23:34 UTC
problem integration tapestry with servlets
We are using tapestry and hibernate, and our database connection was defined
like the definition that is in the book "Enjoying Web Development with
Tapestry" Chapter 14 Using Hibernate.
now we have a simple java servlet (that consults the database) it returns an
xml data, but the connection was defined using the example in the "hibernate
3 reference".
We have to join this servlet to the other application made with tapestry,
but when we define the servlet like an abstract class (to use the connection
of book) it shows the following error:
22/08/2006 04:26:47 PM org.apache.catalina.core.StandardContext start
GRAVE: Error listenerStart
22/08/2006 04:26:47 PM org.apache.catalina.core.StandardContext start
GRAVE: Fall¾ en arranque del Contexto [/QL] debido a errores previos
our web.xml is defined like this:
<?xml version="1.0"?>
<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/TR/xmlschema-1/"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
version="2.4">
<display-name>QL</display-name>
<servlet>
<servlet-name>QL</servlet-name>
<servlet-class>org.apache.tapestry.ApplicationServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>QL</servlet-name>
<url-pattern>/app</url-pattern>
</servlet-mapping>
<resource-ref>
<res-ref-name>jdbc/bankDataSource</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
<listener>
<listener-class>ws.nuevosmedios.servlets.DataScorm</listener-class>
</listener>
<listener>
<listener-class>ws.nuevosmedios.servlets.AjaxFunctions</listener-class>
</listener>
<servlet>
<servlet-name>DataScorm</servlet-name>
<servlet-class>ws.nuevosmedios.servlets.DataScorm</servlet-class>
</servlet>
<servlet>
<servlet-name>AjaxFunctions</servlet-name>
<servlet-class>ws.nuevosmedios.servlets.AjaxFunctions</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>DataScorm</servlet-name>
<url-pattern>/DataScorm</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>AjaxFunctions</servlet-name>
<url-pattern>/AjaxFunctions</url-pattern>
</servlet-mapping>
</web-app>
Cordialmente,
~_~_~_~_~_~_~_~_~_~_~_~_~_~_~_~_~
ANDRÉS NATES M.
Director de implantación e infraestructura.
Nuevos Medios
Calle 25 No. 127-220 Autopista Cali-Jamundí Km. 7
Tel: (572) - 524 07 77 Ext. 2173
Email: <ma...@nuevosmedios.wsCali>
andres.nates@nuevosmedios.ws
Cali <ma...@nuevosmedios.wsCali> - Colombia
POLÍTICA DE CALIDAD
Proveer soluciones tecnológicas de software para la gestión del
conocimiento cumpliendo lo pactado con los clientes mediante el
mejoramiento continuo y la innovación, apoyado en la sinergia
corporativa de Parquesoft.
Re: problem integration tapestry with servlets
Posted by "hv @ Fashion Content" <in...@fashioncontent.com>.
I think you need to provide a more detailed error output.
"Andr�s Nates" <an...@nuevosmedios.ws> skrev i en meddelelse
news:200608222223.k7MMNX6S020365@mail.parquesoft.com...
We are using tapestry and hibernate, and our database connection was defined
like the definition that is in the book "Enjoying Web Development with
Tapestry" Chapter 14 Using Hibernate.
now we have a simple java servlet (that consults the database) it returns an
xml data, but the connection was defined using the example in the "hibernate
3 reference".
We have to join this servlet to the other application made with tapestry,
but when we define the servlet like an abstract class (to use the connection
of book) it shows the following error:
22/08/2006 04:26:47 PM org.apache.catalina.core.StandardContext start
GRAVE: Error listenerStart
22/08/2006 04:26:47 PM org.apache.catalina.core.StandardContext start
GRAVE: Fall� en arranque del Contexto [/QL] debido a errores previos
our web.xml is defined like this:
<?xml version="1.0"?>
<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/TR/xmlschema-1/"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
version="2.4">
<display-name>QL</display-name>
<servlet>
<servlet-name>QL</servlet-name>
<servlet-class>org.apache.tapestry.ApplicationServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>QL</servlet-name>
<url-pattern>/app</url-pattern>
</servlet-mapping>
<resource-ref>
<res-ref-name>jdbc/bankDataSource</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
<listener>
<listener-class>ws.nuevosmedios.servlets.DataScorm</listener-class>
</listener>
<listener>
<listener-class>ws.nuevosmedios.servlets.AjaxFunctions</listener-class>
</listener>
<servlet>
<servlet-name>DataScorm</servlet-name>
<servlet-class>ws.nuevosmedios.servlets.DataScorm</servlet-class>
</servlet>
<servlet>
<servlet-name>AjaxFunctions</servlet-name>
<servlet-class>ws.nuevosmedios.servlets.AjaxFunctions</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>DataScorm</servlet-name>
<url-pattern>/DataScorm</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>AjaxFunctions</servlet-name>
<url-pattern>/AjaxFunctions</url-pattern>
</servlet-mapping>
</web-app>
Cordialmente,
~_~_~_~_~_~_~_~_~_~_~_~_~_~_~_~_~
ANDR�S NATES M.
Director de implantaci�n e infraestructura.
Nuevos Medios
Calle 25 No. 127-220 Autopista Cali-Jamund� Km. 7
Tel: (572) - 524 07 77 Ext. 2173
Email: <ma...@nuevosmedios.wsCali>
andres.nates@nuevosmedios.ws
Cali <ma...@nuevosmedios.wsCali> - Colombia
POL�TICA DE CALIDAD
Proveer soluciones tecnol�gicas de software para la gesti�n del
conocimiento cumpliendo lo pactado con los clientes mediante el
mejoramiento continuo y la innovaci�n, apoyado en la sinergia
corporativa de Parquesoft.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org