From: Jon A. <jon...@du...> - 2010-07-02 15:03:51
|
Ok, so I fixed this issue. You can verify by following this URL: http://www.treebase.org/treebase-web/tree_for_phylowidget/TB2:Tr6839 Please see the blog post here: http://notwastingtime.blogspot.com/2010/06/solved-orgtuckeywebfiltersurlrewritecon.html So what I did was: 1) updated WEB-INF/urlrewrite.xml as follows: Changed <!DOCTYPE urlrewrite PUBLIC "-//tuckey.org//DTD UrlRewrite 3.2//EN" "http://tuckey.org/res/dtds/urlrewrite3.2.dtd"> to <!DOCTYPE urlrewrite PUBLIC "-//tuckey.org//DTD UrlRewrite 3.2//EN" "./dtd/urlrewrite3.2.dtd"> 2) created dtd folder in WEB-INF folder and created urlrewrite3.2.dtd file with contents as specified on blog: <!ELEMENT urlrewrite ((rule|class-rule)*, outbound-rule*, catch*)> <!ATTLIST urlrewrite use-query-string (true|false) "false" use-context (true|false) "false" decode-using CDATA #IMPLIED default-match-type (regex|wildcard) #IMPLIED> <!ELEMENT rule (name?, note?, condition*, from, set*, run*, to?)> <!ATTLIST rule enabled (true|false) "true" match-type (regex|wildcard) #IMPLIED> <!ELEMENT class-rule EMPTY> <!ATTLIST class-rule class CDATA #IMPLIED method CDATA "matches" last (true|false) "true"> <!ELEMENT outbound-rule (name?, note?, condition*, from, set*, run*, to?)> <!ATTLIST outbound-rule enabled (true|false) "true" encodefirst (true|false) "false" match-type (regex|wildcard) #IMPLIED> I probably could have downloaded the dtd file from tuckey.org and put it in the local dtd folder as well, since the example is of an older version (3.0) 3) restarted Tomcat I was able to determine the issue by Googling the errors in this page: http://www.treebase.org/treebase-web/rewrite-status The fix should probably be incorporated into the build. According to the blog, it is a random error that occurs when the tuckey.org site is temporarily inaccessible, which is beyond our control. Silly, huh? -Jon On Jul 1, 2010, at 10:25 PM, William Piel wrote: > > On Jul 1, 2010, at 2:18 PM, Jon Auman wrote: > >> Don't know what it means. Possibly something is hardcoded to a path that only exists on dev. Production and dev are not identical with regards to their location on the file system. > > I don't know that that's related. > > Basically the way this works is that this URL: > > http://www.treebase.org/treebase-web/tree_for_phylowidget/TB2:Tr6839 > > ... gets turned into this URL: > > http://www.treebase.org/treebase-web/phylows/tree/TB2:Tr6839?format=nexus > > ... using the "Url Rewrite Filter" (http://www.tuckey.org/urlrewrite/) with the remapping rules defined here: > > trunk/treebase-web/src/main/webapp/WEB-INF/urlrewrite.xml > > ... and urlrewrite should be defined as a dependency in /treebase-web/porn.xml > > The 404 error would seem to indicate that urlrewrite is not working on production, for some reason. > > > bp > > ------------------------------------------------------- Jon Auman Systems Administrator National Evolutionary Synthesis Center Duke University http:www.nescent.org jon...@ne... ------------------------------------------------------ |