*
The moose likes JSP and the fly likes Login problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Login problem" Watch "Login problem" New topic
Author

Login problem

dhanya mohan
Greenhorn

Joined: Mar 12, 2012
Posts: 4
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

Joined: Apr 25, 2010
Posts: 507

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..


Regards, Prasad
SCJP 5 (93%)
dhanya mohan
Greenhorn

Joined: Mar 12, 2012
Posts: 4
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

Joined: Apr 25, 2010
Posts: 507

Please post the JSP code and the servlet.. Please use code tags while posting to forums..
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60782
    
  65

See the ServletsFaq and make sure that you have followed all instructions fro properly setting up and accessing the servlet.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
wood burning stoves
 
subject: Login problem
 
Similar Threads
import database
unable to run webapplications in tomcat
HTTP Status 404:Error for my Sevlet Class.please Help
Running servlet in Tomcat
404 error while compiling the servlet