Click to See Complete Forum and Search --> : Problem in running servlet on j2ee server


abhibh_1
08-28-2006, 11:22 PM
The problem is that I have deployed an application in a j2ee server having a default port 4848 in admin console , but when I run the application in the browser by typing

"http://localhost:4848/<web context>/<Aliase name>" the browser displays the message as:-
***
HTTP Status 404 - /HitCounter/HitCounter
type Status report
message /HitCounter/HitCounter
description The requested resource (/HitCounter/HitCounter) is not available.
***

So what's this error message showing.

Thanks in advance

Regards,
Abhishek

Khalid Ali
08-29-2006, 09:49 AM
your application has a configuration file WEB-INF/web.xml file.
Make sure that you add an entry there for where to find servlet.

abhibh_1
08-29-2006, 10:56 PM
Thanx for your reply .In the address bar I have used port number 8080 instead of 4848, which really solved the problem.

But while installing j2ee , I have not changed the port number , by default the port number was taken as 4848.But for running applications I have to give the port number as 8080. Why?

Regards,
Abhishek

jetbrains
08-30-2006, 01:46 AM
One is admin port,the other is application port

abhibh_1
08-31-2006, 05:28 AM
Thanx for the reply , now the problem is solved...

Regards,
Abhishek