From: <php...@li...> - 2015-01-09 13:28:08
|
Hi Numa, I am needing to use CakePHP with javabridge because of a Java class that I have to execute. To use CakePHP I need mod_rewrite, and the rule isn't working. I spent a lot of hours trying to solve this and nothing.... Thanks again 2015-01-09 8:53 GMT-02:00 <php...@li...>: > Hi, > > Are you sure your don’t have an error in your regexp syntax ? > The syntax below is correct, and is working. > > This error usually happens because of 2 errors: > 1/ wrong recurring regexp > 2/ rules that go into a loop, one rule triggers another, that triggers a > the first one and so forth. > > Check you rules carefully and see if there is no loop. > I never needed theses ‘webroot’ redirection rules, webroot should never > appear in your url. > > Bye. > > Numa > > Le 9 janv. 2015 à 11:13, php...@li... a > écrit : > > > Hi, > > > > I found this tópic - > > https://sourceforge.net/p/php-java-bridge/mailman/message/30163499/ and > on > > the last answer of it they posted a list of rules for the rewrite filter > > and the rule below (the 3rd rule in list) is generating an error 500 > > "Filter execution threw an exception" > > > > <rule> > >> <from>^/(.*)$</from> > >> <to>/webroot/$1</to> > >> </rule> > >> > >> > > Generated error: > > > > javax.servlet.ServletException: Filter execution threw an exception > > > org.tuckey.web.filters.urlrewrite.NormalRewrittenUrl.doRewrite(NormalRewrittenUrl.java:213) > > > org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:171) > > > org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:145) > > .... > > > > *root cause* > > > > java.lang.StackOverflowError > > > org.tuckey.web.filters.urlrewrite.RuleBase.matchesBase(RuleBase.java:205) > > > org.tuckey.web.filters.urlrewrite.NormalRule.matches(NormalRule.java:92) > > > > ... > > > > Does anyone have any idea on how I can fix it? > > > > Thanks, > > > > Junior > > > ------------------------------------------------------------------------------ > > Dive into the World of Parallel Programming! The Go Parallel Website, > > sponsored by Intel and developed in partnership with Slashdot Media, is > your > > hub for all things parallel software development, from weekly thought > > leadership blogs to news, videos, case studies, tutorials and more. Take > a > > look and join the conversation now. http://goparallel.sourceforge.net > > _______________________________________________ > > php-java-bridge-users mailing list > > php...@li... > > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > > > > ------------------------------------------------------------------------------ > Dive into the World of Parallel Programming! The Go Parallel Website, > sponsored by Intel and developed in partnership with Slashdot Media, is > your > hub for all things parallel software development, from weekly thought > leadership blogs to news, videos, case studies, tutorials and more. Take a > look and join the conversation now. http://goparallel.sourceforge.net > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > |