• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Tomcat error

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,

I am struggling to find the cause of an issue i am facing in tomcat for the past few days. I have described the issue below. Please take a look and let me know your ideas.

I have installed tomcat and java on a linux server. And I have set up my application as well.

I am trying to access the console of my web application using a url like this: http://<localhost_IP>:8500/webasp/Login.do.

I am able to get only till the login page. My application is not able to establish a connection with the database. I have configured my jndi datasource in server.xml as below:



I am able to successfully telnet to the host and port mentioned in the url field:

I am seeing the below errors in the log files.

catalina.out file:
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hibernateSession' defined in class path resource: Invocation of init method failed; nested exception is org.hibernate.HibernateException: Could not find datasource: java:comp/env/jdbc/asp

[19 Mar 05:14:58] ERROR: Unable to post document: org.apache.commons.httpclient.HttpException: Unexpected status code 403 received from server.
org.apache.commons.httpclient.HttpException: Unexpected status code 403 received from server.

I am not sure where I am going wrong. Any help would be greatly appreciated. Thanks.

Sneha
 
Saloon Keeper
Posts: 27762
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Welcome to the JavaRanch, Sneha!

Have you defined this resource in web.xml? The Tomcat Context is an override for it.
 
reply
    Bookmark Topic Watch Topic
  • New Topic