+1

On 10/2/06, Saminda Abeyruwan <[EMAIL PROTECTED]> wrote:
Hi Devs,

If an .aar contains a "www" folder with web resources (html, js, css, etc),
in embeddable version (war), resource urls will not work due to the
following reason.

In the web.xml  provided, there exists the following entry,

<welcome-file-list>
      <welcome-file>/axis2-web/index.jsp</welcome-file>
 </welcome-file-list>

This will cause the following problem.

Say, user deployed a foo.aar which has a "www" folder with web resources.
Then, deployment mechanism will copy the web resources under "axis2/foo"
folder.

Thus one will have the following,

{tomcat.home}
      -  webapps
                    - axis2
                       -  foo
                            - index.html
                             - ...
                        - WEB-INF
                              - ...
                        - ...
If user  uses the url  http://localhost:8080/axis2/foo this will cause
unknown resources due to "/axis2-web/index.jsp" context path.

Thus,  in order to overcome this, user has to do  the following

<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>

Shall we add this to the default web.xml that provide with axis2. Thus, this
would cover the 90% web resources usage.

Thank you

Saminda



--
Davanum Srinivas : http://www.wso2.net (Oxygen for Web Service Developers)

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to