wood burning stoves 2.0*
The moose likes Tomcat and the fly likes Tomcat 6 to Tomcat 7 upgradation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat 6 to Tomcat 7 upgradation" Watch "Tomcat 6 to Tomcat 7 upgradation" New topic
Author

Tomcat 6 to Tomcat 7 upgradation

jas preet
Ranch Hand

Joined: Mar 31, 2010
Posts: 78

Can you please let me know what is the problem in my web.xml. When I try to deploy my application i get the below stacktrace

<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.4"
xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">

<servlet>
<servlet-name>ComponentProcessServlet</servlet-name>
<servlet-class>
com.manage.process.ComponentProcessServlet
</servlet-class>
<init-param>
<param-name>app-properties</param-name>
<param-value>TestEnv.properties</param-value>
</init-param>
<init-param>
<param-name>inet_project_id</param-name>
<param-value>TestEnv</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet>
<servlet-name>upload</servlet-name>
<servlet-class>
com.manage.process.FileUploadServlet
</servlet-class>
</servlet>

<servlet-mapping>
<servlet-name>ComponentProcessServlet</servlet-name>
<url-pattern>*.do</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>upload</servlet-name>
<url-pattern>/upload</url-pattern>
</servlet-mapping>

<!--
<security-constraint>
<web-resource-collection>
<web-resource-name>Automatic SLL Forwarding</web-resource-name>
<url-pattern>/*</url-pattern>
</web-resource-collection>
<user-data-constraint>
<transport-guarantee>
CONFIDENTIAL
</transport-guarantee>
</user-data-constraint>
</security-constraint>
-->

<session-config id="TestEnv">
<session-timeout>240</session-timeout>
</session-config>

<welcome-file-list>
<welcome-file>ManageIndex.jsp</welcome-file>
</welcome-file-list>

<!--
<resource-env-ref>
<description>
Object factory for MyBean instances.
</description>
<resource-env-ref-name>
jdbc/lawyersinsurancedb
</resource-env-ref-name>
<resource-env-ref-type>
javax.sql.DataSource
</resource-env-ref-type>
<res-auth>Container</res-auth>
</resource-env-ref>
-->



<resource-ref id="resource1">
<description>DB Connection</description>
<res-ref-name>jdbc/lawyersinsurancedb</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>


</web-app>


and below is the error that I get when I deploy my application.

parse error while creating jndi resource .. If you can please help me.


Thanks Jaspreet ----- Nothing is permanent
jas preet
Ranch Hand

Joined: Mar 31, 2010
Posts: 78

For all you out there it is working now. I had a problem with my libraries. I was including the catalina and servlet jars that was causing the problem. I removed all of these and it deployed on Tomcat 7 .

Thanks
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Tomcat 6 to Tomcat 7 upgradation