You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by "Morten Haraldsen (Issue Comment Edited) (JIRA)" <ji...@apache.org> on 2012/04/11 12:54:18 UTC

[jira] [Issue Comment Edited] (MTOMCAT-139) All static resources gives error 404

    [ https://issues.apache.org/jira/browse/MTOMCAT-139?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13251465#comment-13251465 ] 

Morten Haraldsen edited comment on MTOMCAT-139 at 4/11/12 10:52 AM:
--------------------------------------------------------------------

AbstractRunMojo.java (trunk):

/**
     * The static context
     *
     * @parameter expression="${maven.tomcat.staticContextPath}" default-value="/"
     * @since 2.0
     */
    private String staticContextPath;

    /**
     * The static context docroot base fully qualified path
     * if <code>null</code> static context won't be added
     *
     * @parameter expression="${maven.tomcat.staticContextPath}"
     * @since 2.0
     */
    private String staticContextDocbase;

Looking at the above, the code shows parameter expression="${maven.tomcat.staticContextPath} for both fields staticContextDocbase and staticContextPath. 
                
      was (Author: xaer):
    AbstractRunMojo.java (trunk):

/**
     * The static context
     *
     * @parameter expression="${maven.tomcat.staticContextPath}" default-value="/"
     * @since 2.0
     */
    private String staticContextPath;

    /**
     * The static context docroot base fully qualified path
     * if <code>null</code> static context won't be added
     *
     * @parameter expression="${maven.tomcat.staticContextPath}"
     * @since 2.0
     */
    private String staticContextDocbase;

Looking at the above, the code shows parameter expression="${maven.tomcat.staticContextPath} for both fields staticContextDocbase and staticContextPath. Also, staticContextPath can never be null, as it is set to default "/"
                  
> All static resources gives error 404
> ------------------------------------
>
>                 Key: MTOMCAT-139
>                 URL: https://issues.apache.org/jira/browse/MTOMCAT-139
>             Project: Apache Tomcat Maven Plugin
>          Issue Type: Bug
>          Components: tomcat7
>    Affects Versions: 2.0
>            Reporter: Morten Haraldsen
>            Assignee: Olivier Lamy (*$^¨%`£)
>
> Using beta-1 it works fine, but using SNAPSHOT gives 404 for all static resources.
> Looking at https://issues.apache.org/jira/browse/MTOMCAT-137 and the code I suspect this is the culprit. (I'm not using the static context feature)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org