• Post Reply Bookmark Topic Watch Topic
  • New Topic

Webservice URL gives Error 404

 
asmita singh
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello!

I have created a webservice but when I try to access the URL, it gives me error 404. the plugin when regenerated doesn't pick up CMSService. My URL is https://dev7.something.com:8462/usws/CMSService
My web.xml is
- <web-app id="WebApp_ID" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<display-name>usws</display-name>
- <servlet>
<description />
<servlet-name>CMSServiceSOAPImpl</servlet-name>
<servlet-class>com.jaxws.CMSServiceSOAPImpl</servlet-class>
- <init-param>
<param-name>log4j-init-file</param-name>
<param-value>log4j.properties</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
- <servlet-mapping>
<servlet-name>CMSServiceSOAPImpl</servlet-name>
<url-pattern>/CMSService</url-pattern>
</servlet-mapping>
- <welcome-file-list>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
<welcome-file>index.jsp</welcome-file>
<welcome-file>default.html</welcome-file>
<welcome-file>default.htm</welcome-file>
<welcome-file>default.jsp</welcome-file>
</welcome-file-list>
</web-app>

what could possibly be wrong? Please help. Thanks
 
Vivek SharmaJi
Ranch Hand
Posts: 38
Eclipse IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your context does't have usws please try without this. https://dev7.something.com:8462/CMSService
 
asmita singh
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Vivek SharmaJi wrote:Your context does't have usws please try without this. https://dev7.something.com:8462/CMSService


The context root has usws. I deployed a JSP -> https://dev7.something.com:8462/usws/JSP/TestJNDI.jsp, and it works, but Webservice URL doesnt.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
404 means "Not Available" - possible causes:

1. Something is wrong with the URL - the server can not use it to locate your code
2. Your service started but died - the URL is correct but it is not running
3. Something is wrong with your deployment - the server does not recognize it as a web application

First thing to do is check log files for errors.

Bill
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!