• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

Tomcat 6 to Tomcat 7 upgradation

 
Ranch Hand
Posts: 78
Eclipse IDE Tomcat Server Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.

 
jas preet
Ranch Hand
Posts: 78
Eclipse IDE Tomcat Server Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
reply
    Bookmark Topic Watch Topic
  • New Topic