MyEclipse Forums
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
saravanan_v
Post subject: servlet is currently unavailable ?????????  PostPosted: Sep 29, 2006 - 12:46 PM



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
Post subject:   PostPosted: Sep 29, 2006 - 05:48 PM
Registered Member
Registered Member


Joined: Jan 06, 2004
Posts: 23818

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
Post subject:   PostPosted: Sep 30, 2006 - 06:14 AM



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
Post subject:   PostPosted: Sep 30, 2006 - 03:23 PM
Registered Member
Registered Member


Joined: Jan 06, 2004
Posts: 23818

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
Post subject:   PostPosted: Oct 03, 2006 - 10:45 AM



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
Post subject:   PostPosted: Oct 04, 2006 - 10:23 PM
Registered Member
Registered Member


Joined: Jan 06, 2004
Posts: 23818

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
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits