Kevlarso
asked on
I have CATALINA_HOME, AXIS_HOME, where is the webapps directory of the servlet engine ? Please help me out. I copied axis2.war to every webapps directory possible, but still can not get to AXIS2.
I have run "ant create.war" to create axis2.war.
I copied axis2.war to CATALINA_HOME\webapps , could not get http://localhost:8080/axis2 , it always flips to http://localhost:8080/axis2/services
I copied axis2.war to AXIS2_HOME\webapps, it still does the same.
I don't know what it means by "sevlet engine" where is that engine ? where is the webapps directory of that engine ?
I copied axis2.war to CATALINA_HOME\webapps , could not get http://localhost:8080/axis2 , it always flips to http://localhost:8080/axis2/services
I copied axis2.war to AXIS2_HOME\webapps, it still does the same.
I don't know what it means by "sevlet engine" where is that engine ? where is the webapps directory of that engine ?
ASKER
Hi Savant,
Thanks for extending a helpful hand.
the web.xml in D:\Apa_Tom\Tomcat 5.5\webapps\ROOT\WEB-INF which is also
D:\CATALINA_HOME\webapps\R OOT\WEB-IN F is the following :
<?xml version="1.0" encoding="ISO-8859-1"?>
<web-app 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"
version="2.4">
<display-name>Welcome to Tomcat</display-name>
<description>
Welcome to Tomcat
</description>
<!-- JSPC servlet mappings start -->
<servlet>
<servlet-name>org.apache.j sp.index_j sp</servle t-name>
<servlet-class>org.apache. jsp.index_ jsp</servl et-class>
</servlet>
<servlet-mapping>
<servlet-name>org.apache.j sp.index_j sp</servle t-name>
<url-pattern>/index.jsp</u rl-pattern >
</servlet-mapping>
<!-- JSPC servlet mappings end -->
</web-app>
Please let know if this is not the web.xml that you mentioned.
No other application is running.
Thanks
Kevlarso
Thanks for extending a helpful hand.
the web.xml in D:\Apa_Tom\Tomcat 5.5\webapps\ROOT\WEB-INF which is also
D:\CATALINA_HOME\webapps\R
<?xml version="1.0" encoding="ISO-8859-1"?>
<web-app 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"
version="2.4">
<display-name>Welcome to Tomcat</display-name>
<description>
Welcome to Tomcat
</description>
<!-- JSPC servlet mappings start -->
<servlet>
<servlet-name>org.apache.j
<servlet-class>org.apache.
</servlet>
<servlet-mapping>
<servlet-name>org.apache.j
<url-pattern>/index.jsp</u
</servlet-mapping>
<!-- JSPC servlet mappings end -->
</web-app>
Please let know if this is not the web.xml that you mentioned.
No other application is running.
Thanks
Kevlarso
is there one in D:\Apa_Tom\Tomcat 5.5\webapps\axis2\WEB-INF
is D:\Apa_Tom\Tomcat 5.5\webapps where you deployed
is D:\Apa_Tom\Tomcat 5.5\webapps where you deployed
ASKER
Hi Savant,
You are right, there is a web.xml in D:\Apa_Tom\Tomcat 5.5\webapps\axis2\WEB-INF
and I copied it here:
<?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-n ame>
<display-name>Apache-Axis Servlet</display-name>
<servlet-class>org.apache. axis2.tran sport.http .AxisServl et</servle t-class>
<!--<init-param>-->
<!--<param-name>axis2.xml. path</para m-name>-->
<!--<param-value>/WEB-INF/ conf/axis2 .xml</para m-value>-- >
<!--<param-name>axis2.xml. url</param -name>-->
<!--<param-value>http://localhot/myrepo/axis2.xml</param-v alue>-->
<!--<param-name>axis2.repo sitory.pat h</param-n ame>-->
<!--<param-value>/WEB-INF< /param-val ue>-->
<!--<param-name>axis2.repo sitory.url </param-na me>-->
<!--<param-value>http://localhot/myrepo</param-v alue>-->
<!--</init-param>-->
<load-on-startup>1</load-o n-startup>
</servlet>
<servlet>
<servlet-name>AxisAdminSer vlet</serv let-name>
<display-name>Apache-Axis AxisAdmin Servlet (Web Admin)</display-name>
<servlet-class>
org.apache.axis2.transport .http.Axis AdminServl et</servle t-class>
</servlet>
<servlet-mapping>
<servlet-name>AxisServlet< /servlet-n ame>
<url-pattern>/servlet/Axis Servlet</u rl-pattern >
</servlet-mapping>
<servlet-mapping>
<servlet-name>AxisServlet< /servlet-n ame>
<url-pattern>*.jws</url-pa ttern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>AxisServlet< /servlet-n ame>
<url-pattern>/services/*</ url-patter n>
</servlet-mapping>
<servlet-mapping>
<servlet-name>AxisAdminSer vlet</serv let-name>
<url-pattern>/axis2-admin/ *</url-pat tern>
</servlet-mapping>
<mime-mapping>
<extension>inc</extension>
<mime-type>text/plain</mim e-type>
</mime-mapping>
<welcome-file-list>
<welcome-file>index.jsp</w elcome-fil e>
<welcome-file>index.html</ welcome-fi le>
<welcome-file>/axis2-web/i ndex.jsp</ welcome-fi le>
</welcome-file-list>
<error-page>
<error-code>404</error-cod e>
<location>/axis2-web/Error /error404. jsp</locat ion>
</error-page>
<error-page>
<error-code>500</error-cod e>
<location>/axis2-web/Error /error500. jsp</locat ion>
</error-page>
</web-app>
Yes, I copied axis2.war into D:\Apa_Tom\Tomcat 5.5\webapps
then typed the URL http://localhost:8080/axis2/
the URL changed automatically to http://localhost:8080/axis2/services/
and the browser body page shows:
Deployed services
Version
Available operations
getVersion
Thanks for help
Kevlarso
You are right, there is a web.xml in D:\Apa_Tom\Tomcat 5.5\webapps\axis2\WEB-INF
and I copied it here:
<?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
<servlet>
<servlet-name>AxisServlet<
<display-name>Apache-Axis Servlet</display-name>
<servlet-class>org.apache.
<!--<init-param>-->
<!--<param-name>axis2.xml.
<!--<param-value>/WEB-INF/
<!--<param-name>axis2.xml.
<!--<param-value>http://localhot/myrepo/axis2.xml</param-v
<!--<param-name>axis2.repo
<!--<param-value>/WEB-INF<
<!--<param-name>axis2.repo
<!--<param-value>http://localhot/myrepo</param-v
<!--</init-param>-->
<load-on-startup>1</load-o
</servlet>
<servlet>
<servlet-name>AxisAdminSer
<display-name>Apache-Axis AxisAdmin Servlet (Web Admin)</display-name>
<servlet-class>
org.apache.axis2.transport
</servlet>
<servlet-mapping>
<servlet-name>AxisServlet<
<url-pattern>/servlet/Axis
</servlet-mapping>
<servlet-mapping>
<servlet-name>AxisServlet<
<url-pattern>*.jws</url-pa
</servlet-mapping>
<servlet-mapping>
<servlet-name>AxisServlet<
<url-pattern>/services/*</
</servlet-mapping>
<servlet-mapping>
<servlet-name>AxisAdminSer
<url-pattern>/axis2-admin/
</servlet-mapping>
<mime-mapping>
<extension>inc</extension>
<mime-type>text/plain</mim
</mime-mapping>
<welcome-file-list>
<welcome-file>index.jsp</w
<welcome-file>index.html</
<welcome-file>/axis2-web/i
</welcome-file-list>
<error-page>
<error-code>404</error-cod
<location>/axis2-web/Error
</error-page>
<error-page>
<error-code>500</error-cod
<location>/axis2-web/Error
</error-page>
</web-app>
Yes, I copied axis2.war into D:\Apa_Tom\Tomcat 5.5\webapps
then typed the URL http://localhost:8080/axis2/
the URL changed automatically to http://localhost:8080/axis2/services/
and the browser body page shows:
Deployed services
Version
Available operations
getVersion
Thanks for help
Kevlarso
it may be meant to do that. theres nothing in web.xml mapped to /
whats in D:\Apa_Tom\Tomcat 5.5\webapps\axis2
whats in D:\Apa_Tom\Tomcat 5.5\webapps\axis2
ASKER
Dear Savant,
It still does not work.
I am going to re-install axis2.
Thanks
Kevlarso
It still does not work.
I am going to re-install axis2.
Thanks
Kevlarso
ok
ASKER
I re-installed axis2 on a new laptop and it is working now.
This issue has been resolved.
Thanks
This issue has been resolved.
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Savant,
Thank you for help
Please close the question
Thank you for help
Please close the question
ASKER
close it please
what does your web.xml look like?
what other applications are running in tomcat