axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "mathieu fabre" <mathieu...@gmail.com>
Subject Re: configure AxisServlet
Date Thu, 21 Feb 2008 08:23:11 GMT
Oups, sorry, i make a mistake. axisServlet will find the WEB-INF repository
by defaut, it's right.

Thanks for your answer and thanks for your time,

Mat

2008/2/21, mathieu fabre <mathieufab@gmail.com>:
>
> So, if I understand well, your solution is to set nothing about the
> repository and configuration file (xml)
> For the configuration file, it works, but for the repository, axisServlet
> will not find the repository WEB-INF by default....??
>
>
> 2008/2/20, Davanum Srinivas <davanum@gmail.com>:
> >
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA1
> >
> >
> > axis2.repository.path should be the full directory path. So i'd
> > recommend that you don't set that as well.
> >
> >
> > mathieu fabre wrote:
> > | Thanks for your answer,
> > |
> > | for axis2.xml location, axisServlet search for the path
> > | WEB-INF/conf/axis2.xml by default.
> > | So, i removed the tag <param-name>axis2.xml.path</param-name> and
it's
> > | value.
> > |
> > | But if i put the tag :
> > |
> > | <init-param>
> > |        <param-name>axis2.repository.path</param-name>
> > |        <param-value>WEB-INF</param-value>
> > | </init-param>
> > |
> > | I obtain an exception :
> > |
> > | org.apache.axis2.deployment.DeploymentException: The system cannot
> > locate
> > | the specified repository location: WEB-INF
> > |     at org.apache.axis2.deployment.DeploymentEngine.loadRepository(
> > | DeploymentEngine.java:127)
> > |     at
> > |
> > org.apache.axis2.deployment.WarBasedAxisConfigurator.getAxisConfiguration
> > (
> > | WarBasedAxisConfigurator.java:199)
> > |     at
> > |
> > org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext
> > | (ConfigurationContextFactory.java:64)
> > |     at org.apache.axis2.transport.http.AxisServlet.initConfigContext(
> > | AxisServlet.java:500)
> > |     at org.apache.axis2.transport.http.AxisServlet.init(
> > AxisServlet.java
> > | :420)
> > |     at org.mortbay.jetty.servlet.ServletHolder.initServlet(
> > | ServletHolder.java:433)
> > |     at org.mortbay.jetty.servlet.ServletHolder.doStart(
> > ServletHolder.java
> > | :256)
> > |     at org.mortbay.component.AbstractLifeCycle.start(
> > AbstractLifeCycle.java
> > | :40)
> > | ...
> > |
> > | It seem it don't work well... :(
> > |
> > | 2008/2/20, Davanum Srinivas <davanum@gmail.com>:
> >
> > | Don't specify them at all..AxisServlet looks in WEB-INF/conf for
> > axis2.xmland uses WEB-INF as the repo.
> >
> > |
> > | -- dims
> > |
> > | mathieu fabre wrote:
> > | | Hi,
> > | |
> > | | I use an AxisServlet in a webapp.
> > | |
> > | | in the web.xml i configure my axisServlet like that :
> > | |
> > | | <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>C:\....long
> > | | path....\webapp\WEB-INF\conf\axis2.xml</param-value>
> > | |     </init-param>
> > | |     <init-param>
> > | |       <param-name>axis2.repository.path</param-name>
> > | |       <param-value>C:\....long
> > path....\webapp\WEB-INF\</param-value>
> > | |     </init-param>
> > | |     <init-param>
> > | |       <param-name>contextRoot</param-name>
> > | |       <param-value>/</param-value>
> > | |     </init-param>
> > | |     <init-param>
> > | |       <param-name>servicePath</param-name>
> > | |       <param-value>services</param-value>
> > | |     </init-param>
> > | |     <load-on-startup>1</load-on-startup>
> > | |   </servlet>
> > | |
> > | | But i want to configure "axis2.xml.path" and "axis2.repository.path"
> > | with
> > | | relative path like "WEB-INF\conf\axis2.xml"
> > | |
> > | | How could I do that ? I know I must use the context of my webapp but
> > i
> > | don't
> > | | know how....
> > | |
> > | | thanks in advance,
> > | |
> > | | Mat
> > | |
> > |>
> >
> > - ---------------------------------------------------------------------
> >
> > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > For additional commands, e-mail: axis-user-help@ws.apache.org
> > |>
> > |>
> >
> >
> > -----BEGIN PGP SIGNATURE-----
> > Version: GnuPG v1.4.5 (Cygwin)
> >
> >
> > iD8DBQFHvGKugNg6eWEDv1kRAhs9AJ9+veyhEndd6IZso/feZ3XfEVGd4ACfUtGS
> > bFO7QVyqsbKhybdjoJdFPHs=
> > =Qftd
> >
> > -----END PGP SIGNATURE-----
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > For additional commands, e-mail: axis-user-help@ws.apache.org
> >
> >
>

Mime
View raw message