Post new topic   Reply to topic
Author Message
saravanan_v



Joined: Sep 29, 2006
Posts: 4

I have created a web proj.. using eclipse as the IDE..
The deployment descriptor file web.xml has all the mappings correctly..
but none of the servlets in the proj is accessible..
the servlets' class files are present in the deployed file also..
The proj was completed in one system and ported to a new system..
the proj still works fine with the old system..
all configurations pertaining to the Jboss server are correct..
 
 View user's profile Send private message  
Reply with quote Back to top
support-rkalla
Registered Member
Registered Member


Joined: Jan 06, 2004
Posts: 23817

Moving to OT > Soft Dev

_________________
Riyad
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
saravanan_v



Joined: Sep 29, 2006
Posts: 4

I understand the problem is with the configuration and not with the Project..
Because even if i create a new proj and a new servlet in it and try to access it... it is unavailable..
But i could not figure out where exactly the problem is..
The configurations are as per the tuorial downloaded from this website...
 
 View user's profile Send private message  
Reply with quote Back to top
support-rkalla
Registered Member
Registered Member


Joined: Jan 06, 2004
Posts: 23817

What is the name of the servlet? What does your web.xml file look like? And lastly, what URL are you using to try and access it?

_________________
Riyad
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
saravanan_v



Joined: Sep 29, 2006
Posts: 4

the name of the servlet is LoginServlet..
following is the section in the web.xml file corresponding to the login servlet..


<servlet>
<description>This is the description of my J2EE component</description>
<display-name>LoginServlet</display-name>
<servlet-name>LoginServlet</servlet-name>
<servlet-class>com.genuitec.portalx.web.LoginServlet</servlet-class>
</servlet>

<servlet-mapping>
<servlet-name>LoginServlet</servlet-name>
<url-pattern>/servlet/LoginServlet</url-pattern>
</servlet-mapping>

and im calling the servlet with the form's action attribute... with the URL /servlet/LoginServlet
 
 View user's profile Send private message  
Reply with quote Back to top
support-rkalla
Registered Member
Registered Member


Joined: Jan 06, 2004
Posts: 23817

you are using an absolute path, which is why you are getting the error. You need servlet/LoginServlet, because consider your path:
http://localhost:8080/myapp/login.jsp

from here, /servlet/LoginServlet will resolve to this:
http://localhost:8080/servlet/LoginServlet

which doesn't exist, what you want is:
http://localhost:8080/myapp/servlet/LoginServlet

_________________
Riyad
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
All times are GMT - 6 Hours
Post new topic   Reply to topic
® 2014 - Genuitec, LLC.