You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Fawad Nazir <fa...@nicta.com.au> on 2007/01/07 05:35:00 UTC
Re: Not able to see http://localhost:8080/axis2/... instead
http://localhost:8080/axis2/services/ appears...
Hi Martin,
i think i have all the entries that you have mentioned + some more. BTW,
the have not changes this file at all, this is just as it was in the
distribution.
This is my web.xml file:
------------------------------------
<?xml version="1.0" encoding="ISO-8859-1"?>
<!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>Apache-Axis2</display-name>
<servlet>
<servlet-name>AxisServlet</servlet-name>
<display-name>Apache-Axis Servlet</display-name>
<servlet-class>
org.apache.axis2.transport.http.AxisServlet</servlet-class>
<!--<init-param>-->
<!--<param-name>axis2.xml.path</param-name>-->
<!--<param-value>/WEB-INF/conf/axis2.xml</param-value>-->
<!--<param-name>axis2.xml.url</param-name>-->
<!--<param-value>http://localhot/myrepo/axis2.xml</param-value>-->
<!--<param-name>axis2.repository.path</param-name>-->
<!--<param-value>/WEB-INF</param-value>-->
<!--<param-name>axis2.repository.url</param-name>-->
<!--<param-value>http://localhot/myrepo</param-value>-->
<!--</init-param>-->
<load-on-startup>1</load-on-startup>
</servlet>
<servlet>
<servlet-name>AxisRESTServlet</servlet-name>
<display-name>Apache-Axis Servlet (REST)</display-name>
<servlet-class>
org.apache.axis2.transport.http.AxisRESTServlet</servlet-class>
</servlet>
<servlet>
<servlet-name>AxisAdminServlet</servlet-name>
<display-name>Apache-Axis AxisAdmin Servlet (REST)</display-name>
<servlet-class>
org.apache.axis2.transport.http.AxisAdminServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>AxisRESTServlet</servlet-name>
<url-pattern>/rest/*</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>AxisServlet</servlet-name>
<url-pattern>/servlet/AxisServlet</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>AxisServlet</servlet-name>
<url-pattern>*.jws</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>AxisServlet</servlet-name>
<url-pattern>/services/*</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>AxisAdminServlet</servlet-name>
<url-pattern>/axis2-admin/*</url-pattern>
</servlet-mapping>
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
<welcome-file>index.html</welcome-file>
<welcome-file>/axis2-web/index.jsp</welcome-file>
</welcome-file-list>
<error-page>
<error-code>404</error-code>
<location>/axis2-web/Error/error404.jsp</location>
</error-page>
<error-page>
<error-code>500</error-code>
<location>/axis2-web/Error/error500.jsp</location>
</error-page>
</web-app>
------------------------------------
> please confirm the following servlet-name / servlet-class /
> servlet-mapping entries in /WEB-INF/web.xml
>
> (These are the entries I have)
> <web-app>
> <display-name>Apache-Axis2</display-name>
> <servlet>
> <servlet-name>AxisServlet</servlet-name>
> <display-name>Apache-Axis Servlet</display-name>
> <servlet-class>
> org.apache.axis2.transport.http.AxisServlet</servlet-class>
>
> <servlet-mapping>
> <servlet-name>AxisServlet</servlet-name>
> <url-pattern>/services/*</url-pattern>
> </servlet-mapping>
>
> M-
> ---------------------------------------------------------------------------
> This e-mail message (including attachments, if any) is intended for the
> use of the individual or entity to which it is addressed and may contain
> information that is privileged, proprietary , confidential and exempt from
> disclosure. If you are not the intended recipient, you are notified that
> any dissemination, distribution or copying of this communication is
> strictly prohibited.
> ---------------------------------------------------------------------------
> Le présent message électronique (y compris les pièces qui y sont annexées,
> le cas échéant) s'adresse au destinataire indiqué et peut contenir des
> renseignements de caractère privé ou confidentiel. Si vous n'êtes pas le
> destinataire de ce document, nous vous signalons qu'il est strictement
> interdit de le diffuser, de le distribuer ou de le reproduire.
> ----- Original Message -----
> From: "Fawad Nazir" <fa...@nicta.com.au>
> To: <ax...@ws.apache.org>
> Sent: Saturday, January 06, 2007 9:34 PM
> Subject: Not able to see http://localhost:8080/axis2/... instead
> http://localhost:8080/axis2/services/ appears...
>
>
>>
>> Hi All,
>>
>> This is my first time configuring Axis2. I installed it and everything
>> is
>> working finw i think.
>>
>> This link (http://localhost:8080/axis2/services) works fine and the
>> following is the output:
>> Deployed services
>> Version
>> Available operations
>>
>> * getVersion
>>
>> After this the tutorial says : Drop the war in the webapps folder of
>> the
>> servlet container.
>>
>> I did this:
>> 1. fawad@fawad-desktop:~/project/cobra/axis/axis2-1.1/webapp$ ant
>> create.war
>> 2. fawad@fawad-desktop:~/project/cobra/axis/axis2-1.1/dist$ cp
>> axis2.war
>> ../webapp/.
>>
>> and the restarted the axis2: axis2server.sh
>>
>> But now when i try to access http://localhost:8080/axis2/ web-page it
>> automatically redirects me to http://localhost:8080/axis2/services/.
>>
>> How can i solve this problem?
>>
>> Regards,
>> Fawad.
>>
>>
>>
>>
>> --
>> Fawad Nazir
>>
>>
>> --------------------------------------------------------------------------
>> This email and any attachments may be confidential. They may contain
>> legally
>> privileged information or copyright material. You should not read,
>> copy,
>> use or disclose them without authorisation. If you are not an intended
>> recipient, please contact us at once by return email and then delete
>> both
>> messages. We do not accept liability in connection with computer virus,
>> data corruption, delay, interruption, unauthorised access or
>> unauthorised
>> amendment. This notice should not be removed.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> For additional commands, e-mail: axis-user-help@ws.apache.org
>>
>>
--
Fawad Nazir
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org