• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Login problem

 
dhanya mohan
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
I'm new to JSP.I want to configure a JSP project.The Web server used is Tomcat and database is postgresql.

First copied the project folder to the webapps folder.then port the database also.

Here my problem is i can't login to the application.By giving username an d password ,the follwing error occured.

'test' is my project folder

HTTP Status 404 - /test/servlet/build.com.test.Login.SrvLogon

type Status report

message /test/servlet/build.com.test.Login.SrvLogon

description The requested resource (/test/servlet/build.com.test.Login.SrvLogon) is not available.
Apache Tomcat/7.0.26


what is the reason for this error?Any help please....
 
Prasad Krishnegowda
Ranch Hand
Posts: 671
4
Eclipse IDE Java Spring
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dhaya, welcome to coderanch..
Seeing the error message, i guess its an issue with servlet url mapping.. please post your web.xml, servlet class and the JSP.
please see this, TellTheDetails..
 
dhanya mohan
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Prasad Krishnegowda wrote:Dhaya, welcome to coderanch..
Seeing the error message, i guess its an issue with servlet url mapping.. please post your web.xml, servlet class and the JSP.
please see this, TellTheDetails..



sir

here is the web.xml

<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">

<web-app>
<session-config>
<session-timeout>
30
</session-timeout>
</session-config>
<welcome-file-list>
<welcome-file>
login.jsp
</welcome-file>
<welcome-file>
login.html
</welcome-file>
<welcome-file>
login.htm
</welcome-file>
</welcome-file-list>
<resource-ref>

<description>DB Connection</description>
<res-ref-name>jdbc/testdb</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
</web-app>
 
Prasad Krishnegowda
Ranch Hand
Posts: 671
4
Eclipse IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please post the JSP code and the servlet.. Please use code tags while posting to forums..
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65216
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
See the ServletsFaq and make sure that you have followed all instructions fro properly setting up and accessing the servlet.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic