You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@nutch.apache.org by "AJ Banck (JIRA)" <ji...@apache.org> on 2005/08/15 13:31:54 UTC

[jira] Created: (NUTCH-81) Webapp only works when deployed in root

Webapp only works when deployed in root
---------------------------------------

         Key: NUTCH-81
         URL: http://issues.apache.org/jira/browse/NUTCH-81
     Project: Nutch
        Type: Bug
  Components: web gui  
 Environment: Windows 2000 / Jakarta Tomcat 5.0.25 / JDK 1.5 / 0.7-dev from SVN.
    Reporter: AJ Banck


Index.jsp does a redirect (not forward) to the language folder.
The links in the html however are relative to the language folder, not the application root.

Not sure what the desired behavoir is, change the html (where is it generated?) or the redirect.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Assigned: (NUTCH-81) Webapp only works when deployed in root

Posted by "Sami Siren (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/NUTCH-81?page=all ]

Sami Siren reassigned NUTCH-81:
-------------------------------

    Assign To: Sami Siren

> Webapp only works when deployed in root
> ---------------------------------------
>
>          Key: NUTCH-81
>          URL: http://issues.apache.org/jira/browse/NUTCH-81
>      Project: Nutch
>         Type: Bug
>   Components: web gui
>  Environment: Windows 2000 / Jakarta Tomcat 5.0.25 / JDK 1.5 / 0.7-dev from SVN.
>     Reporter: AJ Banck
>     Assignee: Sami Siren
>  Attachments: nutch_indexjsp_redirect.txt
>
> Index.jsp does a redirect (not forward) to the language folder.
> The links in the html however are relative to the language folder, not the application root.
> Not sure what the desired behavoir is, change the html (where is it generated?) or the redirect.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Updated: (NUTCH-81) Webapp only works when deployed in root

Posted by "Michael Nebel (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/NUTCH-81?page=all ]

Michael Nebel updated NUTCH-81:
-------------------------------

    Attachment: fix-faq-url.diff

with the move from sf to apache the old faq isn' accessable any more. This patch changes the link from http://www.nutch.org/faq.html to
http://wiki.apache.org/nutch/FAQ

> Webapp only works when deployed in root
> ---------------------------------------
>
>          Key: NUTCH-81
>          URL: http://issues.apache.org/jira/browse/NUTCH-81
>      Project: Nutch
>         Type: Bug
>   Components: web gui
>  Environment: Windows 2000 / Jakarta Tomcat 5.0.25 / JDK 1.5 / 0.7-dev from SVN.
>     Reporter: AJ Banck
>     Assignee: Sami Siren
>      Fix For: 0.8-dev
>  Attachments: fix-faq-url.diff, nutch_indexjsp_redirect.txt
>
> Index.jsp does a redirect (not forward) to the language folder.
> The links in the html however are relative to the language folder, not the application root.
> Not sure what the desired behavoir is, change the html (where is it generated?) or the redirect.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (NUTCH-81) Webapp only works when deployed in root

Posted by "Michael Nebel (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/NUTCH-81?page=comments#action_12365052 ] 

Michael Nebel commented on NUTCH-81:
------------------------------------

After changing the $NUTCH_WEBAPPDIR/index.jsp as described (substitute the jsp:forward with response.sendRedirect()), nutch can be deployed in any tomcat-webapp-context. Most of the links used are relative, so all the images are found. 

Just on point: in the search.jsp it must be

   <jsp:include page="<%=  "/include/footer.html"%>"/>

instead of 

  <jsp:include page="<%=  "../include/footer.html"%>"/>
                                                ^^^^

there was a copy and paste to much :-)

The fix is trivial - and well known. It would make the initual setup for beginners a little bit more comfortable. So I strongly suggest to commit it.  

BTW: in the default template is a link to 

                         http://www.nutch.org/faq.html

this gots redirected to :

                        http://lucene.apache.org/nutch/faq.html

can someone in charge of nutch.org change this redirect to:

                         http://wiki.apache.org/nutch/FAQ

?

> Webapp only works when deployed in root
> ---------------------------------------
>
>          Key: NUTCH-81
>          URL: http://issues.apache.org/jira/browse/NUTCH-81
>      Project: Nutch
>         Type: Bug
>   Components: web gui
>  Environment: Windows 2000 / Jakarta Tomcat 5.0.25 / JDK 1.5 / 0.7-dev from SVN.
>     Reporter: AJ Banck
>  Attachments: nutch_indexjsp_redirect.txt
>
> Index.jsp does a redirect (not forward) to the language folder.
> The links in the html however are relative to the language folder, not the application root.
> Not sure what the desired behavoir is, change the html (where is it generated?) or the redirect.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Resolved: (NUTCH-81) Webapp only works when deployed in root

Posted by "Sami Siren (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/NUTCH-81?page=all ]
     
Sami Siren resolved NUTCH-81:
-----------------------------

    Fix Version: 0.8-dev
     Resolution: Fixed

this is now applied, thanks

> Webapp only works when deployed in root
> ---------------------------------------
>
>          Key: NUTCH-81
>          URL: http://issues.apache.org/jira/browse/NUTCH-81
>      Project: Nutch
>         Type: Bug
>   Components: web gui
>  Environment: Windows 2000 / Jakarta Tomcat 5.0.25 / JDK 1.5 / 0.7-dev from SVN.
>     Reporter: AJ Banck
>     Assignee: Sami Siren
>      Fix For: 0.8-dev
>  Attachments: nutch_indexjsp_redirect.txt
>
> Index.jsp does a redirect (not forward) to the language folder.
> The links in the html however are relative to the language folder, not the application root.
> Not sure what the desired behavoir is, change the html (where is it generated?) or the redirect.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Updated: (NUTCH-81) Webapp only works when deployed in root

Posted by "AJ Banck (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/NUTCH-81?page=all ]

AJ Banck updated NUTCH-81:
--------------------------

    Attachment: nutch_indexjsp_redirect.txt

Possible solution for working from a non-root application. This by doing a redirect with the language path. This changes the URL in the browser. If this is not desired all xml files have to be edited to work from the root of the webapp, not relative to the language folder.

> Webapp only works when deployed in root
> ---------------------------------------
>
>          Key: NUTCH-81
>          URL: http://issues.apache.org/jira/browse/NUTCH-81
>      Project: Nutch
>         Type: Bug
>   Components: web gui
>  Environment: Windows 2000 / Jakarta Tomcat 5.0.25 / JDK 1.5 / 0.7-dev from SVN.
>     Reporter: AJ Banck
>  Attachments: nutch_indexjsp_redirect.txt
>
> Index.jsp does a redirect (not forward) to the language folder.
> The links in the html however are relative to the language folder, not the application root.
> Not sure what the desired behavoir is, change the html (where is it generated?) or the redirect.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (NUTCH-81) Webapp only works when deployed in root

Posted by "AJ Banck (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/NUTCH-81?page=comments#action_12318805 ] 

AJ Banck commented on NUTCH-81:
-------------------------------

Description is inaccurate, the current index.jsp does a forward not a redirect. If doing forward is needed the xsl or xml must be changed.

> Webapp only works when deployed in root
> ---------------------------------------
>
>          Key: NUTCH-81
>          URL: http://issues.apache.org/jira/browse/NUTCH-81
>      Project: Nutch
>         Type: Bug
>   Components: web gui
>  Environment: Windows 2000 / Jakarta Tomcat 5.0.25 / JDK 1.5 / 0.7-dev from SVN.
>     Reporter: AJ Banck
>  Attachments: nutch_indexjsp_redirect.txt
>
> Index.jsp does a redirect (not forward) to the language folder.
> The links in the html however are relative to the language folder, not the application root.
> Not sure what the desired behavoir is, change the html (where is it generated?) or the redirect.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira