Hi,
I have deployed .war file on Tomcat server but when i am firing URL
on my browser then the browser giving me
HTTP Status 404 error
i have checked the content of .war file by extracting it and all the
required artifacts are properly created.
so if anyone has some idea that why i am not be able to access WSDL file.
I am using JWSDP 2.0 and i am developing a sample of jaxrpc
To make it very clear i am listing the commands that i have fired.
1) ant portable-web-package
2) wsdeploy -o Books.war Books-portable.war
after that i have copied the Books.war file into webapps folder of TOMCAT
server and after restarting the server i have fired the following URL in
mozila browser
http://localhost:8080/Books/BookQuery?WSDL
the error is HTTP 404 not found...
I have visited several posts but some of them are suggesting to place the
wsdl file in a '/' directory ... i even tried that but still i am not be
able access wsdl file ...
listing of web.xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application
2.3//EN" "
http://java.sun.com/j2ee/dtds/web-app_2_3.dtd">
<web-app>
<display-name>JAX-RPC Book Service</display-name>
<description>Book Service Web Application using JAX-RPC</description>
<listener>
<listener-class>com.sun.xml.rpc.server.http.JAXRPCContextListener</listener-class>
</listener>
<servlet>
<servlet-name>BookQuery</servlet-name>
<display-name>BookQuery</display-name>
<description>JAX-RPC endpoint - BookQuery</description>
<servlet-class>com.sun.xml.rpc.server.http.JAXRPCServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>BookQuery</servlet-name>
<url-pattern>/BookQuery</url-pattern>
</servlet-mapping>
<session-config>
<session-timeout>60</session-timeout>
</session-config>
</web-app>
listing of jaxrpc-ri-runtime.xml ( edited)
<?xml version="1.0" encoding="UTF-8"?>
<endpoints xmlns='
http://java.sun.com/xml/ns/jax-rpc/ri/runtime'
version='1.0'>
<endpoint
name='BookQuery'
interface='ora.jwsnut.chapter2.bookservice.BookQuery'
implementation='ora.jwsnut.chapter2.bookservice.BookServiceServant'
tie='ora.jwsnut.chapter2.bookservice.BookQuery_Tie'
model='model'
wsdl='BookService.wsdl'
service='{urn:jwsnut.chapter2.bookservice/wsdl/BookQuery}BookService'
port='{urn:jwsnut.chapter2.bookservice/wsdl/BookQuery}BookQueryPort'
urlpattern='/BookQuery'/>
</endpoints>
so please do help me on this...... Thanks a lot ....in advance......
Ntimesc
--
View this message in context: http://www.nabble.com/Not-be-able-to-access-WSDL-file-from-Tomcat-Container-%28JAXRPC%29-tf3494807.html#a9761454
Sent from the JAX-RPC - User mailing list archive at Nabble.com.