Ordem dos intercepts

27 views
Skip to first unread message

Eric Sobral

unread,
Aug 29, 2013, 11:14:31 PM8/29/13
to caelum-vr...@googlegroups.com
Na versão 3.3.1 do vraptor eu usava assim:

@Intercepts(after=OtherInterceptor.class)

Atualmente estou tentando usar a versão 3.5.1 do vraptor mas não consegui definir a ordem.

Lucas Cavalcanti

unread,
Aug 29, 2013, 11:25:59 PM8/29/13
to caelum-vraptor-dev
O que acontece?

ele não usa a sua ordem? Dá erro?


--
You received this message because you are subscribed to the Google Groups "caelum-vraptor-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to caelum-vraptor-...@googlegroups.com.
To post to this group, send email to caelum-vr...@googlegroups.com.
Visit this group at http://groups.google.com/group/caelum-vraptor-dev.
For more options, visit https://groups.google.com/groups/opt_out.

Otávio Garcia

unread,
Aug 29, 2013, 11:26:14 PM8/29/13
to caelum-vr...@googlegroups.com
Eric, segue da mesma forma, definindo o after e before. Qual o problema você teve?


On Fri, Aug 30, 2013 at 12:14 AM, Eric Sobral <erics...@gmail.com> wrote:

--

Eric Sobral

unread,
Aug 29, 2013, 11:34:11 PM8/29/13
to caelum-vr...@googlegroups.com
Mensagem do netbeans:

Cannot find symbol
symbol: method after()
location: @interface Intercepts

Lucas Cavalcanti

unread,
Aug 29, 2013, 11:37:25 PM8/29/13
to caelum-vraptor-dev
Estranho... vc importou o Intercepts do VRaptor mesmo?

tem mais de um jar do VRaptor no classpath?

tenta dar um clean no servidor e no projeto.


Otávio Garcia

unread,
Aug 29, 2013, 11:37:30 PM8/29/13
to caelum-vr...@googlegroups.com
Você está importando o Intercepts do pacote br.com.caelum.vraptor?


Eric Sobral

unread,
Aug 29, 2013, 11:46:11 PM8/29/13
to caelum-vr...@googlegroups.com

Sim, estou usando o pacote correto (que foi copiado e colado do projeto antigo).

import br.com.caelum.vraptor.Intercepts;

Não tenho outro vraptor nesse projeto, pois comecei ele do zero. Existe outra maneira de configurar a ordem dos interceptors?

Eric Sobral

unread,
Aug 30, 2013, 12:00:44 AM8/30/13
to caelum-vr...@googlegroups.com
Consegui resolver!

Estava tentando começar pelo projeto vraptor-blank-project-3.5.1 mas ele utiliza a versão 3.1.2 no pom.

Por isso a confusão. Obrigado pela ajuda pessoal. :)
Reply all
Reply to author
Forward
0 new messages