cancel
Showing results for 
Search instead for 
Did you mean: 

ServletNotFoundException

Former Member
0 Kudos

Hi,

I have migrated the java/j2ee application into nwdi, local project is running fine,

i have created the external library with all jar files.

But, DC projrct is givng below Servlet not found Exception

here csfxmlapp is my dispatcher servlet name.

**404 Not Found**

*SAP J2EE Engine/7.00*

*The request cannot be processed.*

*Details: com.sap.engine.services.servlets_jsp.server.exceptions.ServletNotFoundException: Requested resource [csfxmlapp/servlet/csfxmlapp] not found.*

*Exception id: [CEF600006137003D000000000036A0120004A7C50CFD9852]*

how to resolve this error?

can anybody give suggestions to this problem?

Thanks,

Jyothi

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Check "Used DC" references in your DC....

Second...look in the direction of setting runtime references for your external libraries..

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/60d99678-1a29-2d10-94b4-9d9a67b71...

Former Member
0 Kudos

Hi,

I have followed this document

may be this error is not related to external library

still getting same error

thanks,

Jyothi

Edited by: gaddamjyothi on Jul 12, 2011 8:35 AM

Former Member
0 Kudos

Hi,

Can you paste the code of servelet name which you have declared in web.xml

May be you have not declared the servlet name with correct path in web.xml, please check once.

Regards,

Saleem Mohammad.

Former Member
0 Kudos

Hi,

local project is working , where as Dc project is giving error.

in web.xml,

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

<display-name>CSF</display-name>

<description>Client Selection Framework</description>

<context-param>

<param-name>log4jConfigLocation</param-name>

<param-value>/WEB-INF/log4j.properties</param-value>

</context-param>

<listener>

<listener-class>org.springframework.web.util.Log4jConfigListener</listener-class>

</listener>

<listener>

<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>

</listener>

<servlet>

<servlet-name>csfxmlapp</servlet-name>

<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>

<init-param>

<param-name>contextConfigLocation</param-name>

<param-value>/WEB-INF/csf-servlet.xml</param-value>

</init-param>

<load-on-startup>2</load-on-startup>

</servlet>

<servlet-mapping>

<servlet-name>csfxmlapp</servlet-name>

<url-pattern>*.htm</url-pattern>

</servlet-mapping>

<welcome-file-list>

<welcome-file>index.html</welcome-file>

</welcome-file-list>

</web-app>

Thanks,

jyothi

Former Member
0 Kudos

Hi Jyothi,

web.xml looks fine.

I hope you have created a J2EE server component --> library and deployed (check-in and activated) in the server after adding the public part of External library DC as a used DC.

Once you deploy this J2EE server component, then add this as a used dc to your web module and build & deploy the webmodule.

please cross check the steps provided in the link..and see wether you have followed all the steps.

Hope this helps you...

Regards,

Saleem Mohammad

Former Member
0 Kudos

Hi,

Thanks for giving reply

now i am getting different error

com.sap.engine.services.servlets_jsp.server.exceptions.ServletNotFoundException: Cannot load the requested servlet [xmlapp/servlet/xmlapp].

Thanks,

Jyothi

Former Member
0 Kudos

Try

<load-on-startup>1</load-on-startup>

in web.xml....

you have set it as 2.....

I am not sure whether it will work or not...but you can give it a try.....

second, try to access index.html from URL.........see if it gets loaded......

Former Member
0 Kudos

No use.........