Hello Thiago,

if you map

 <servlet>
    <servlet-name>index</servlet-name>
    <jsp-file>/index.jsp</jsp-file>
  </servlet>
  <servlet-mapping>
    <servlet-name>index</servlet-name>
    <url-pattern>/*</url-pattern>
  </servlet-mapping>

then you explicitely ask all your calls to be mapped to index servlet
so it seems ok to me.

Did I misunderstand you?



Romain Manni-Bucau
@rmannibucau
http://www.tomitribe.com
http://rmannibucau.wordpress.com
https://github.com/rmannibucau


2015-01-26 3:00 GMT+01:00 Thiago Veronezi <thi...@veronezi.org>:
> -1 -> The default servlet is catching the RS requests.
>
> Basically, in single-page-applications, I need to map the default servlet
> in a special way...
>
> .
> .
> .
>   <!-- The trick is to put all your static files under the same directory
> and map the "default" servlet to it -->
>   <servlet-mapping>
>     <servlet-name>default</servlet-name>
>     <url-pattern>/app/*</url-pattern>
>   </servlet-mapping>
>
>   <!-- Any other request will point to the "index.jsp" page. This way YUI
> will be able to manage page transitions
>         at the client side in case the user starts the application from a
> permalink. -->
>   <servlet>
>     <servlet-name>index</servlet-name>
>     <jsp-file>/index.jsp</jsp-file>
>   </servlet>
>   <servlet-mapping>
>     <servlet-name>index</servlet-name>
>     <url-pattern>/*</url-pattern>
>   </servlet-mapping>
> .
> .
> .
>
> TomEE 1.7.2 returns "index.jsp" for all my rest calls (GET
> http://localhost:8080/myapp/rest/users, for example).
>
> After reverting back these two commits, the system gets back to normal.
> https://git1-us-west.apache.org/repos/asf?p=tomee.git;a=commit;h=544806da419bc2f5ab8bc936a989ff99bc9d891b
> https://git1-us-west.apache.org/repos/asf?p=tomee.git;a=commit;h=cb135dd6344f93ed24888cafcc05d0cfbb0c62a9
>
> @Romain,
> Can you take a look? I'm not sure what was the idea.
>
> []s,
> Thiago.
>
>
> On Sun, Jan 25, 2015 at 9:36 AM, Jonathan Gallimore <
> jonathan.gallim...@gmail.com> wrote:
>
>> Hi,
>>
>> Sorry, should have added that. It's:
>> https://repository.apache.org/content/repositories/orgapachetomee-1045
>>
>> Regards
>>
>> Jon
>>
>>
>>
>> > On 25 Jan 2015, at 14:19, jieryn <jie...@gmail.com> wrote:
>> >
>> > On Sat, Jan 24, 2015 at 4:20 PM, Jonathan Gallimore
>> > <jonathan.gallim...@gmail.com> wrote:
>> >> Maven Repo: https://dist.apache.org/repos/dist/dev/tomee/staging-1045/
>> >
>> > Where is the actual Maven artifact staging repository for this? So my
>> > projects which depend on TomEE can be built and tested against the
>> > candidate. Thanks!
>>

Reply via email to