Puxa cara muito obrigado pela ajuda ja estou caminhando aki
Poderia me dar mais uma ajudinha
Meu script fiz assim:
[code]
[/code]
meus Selects:
<div class="menuSelect">
<!--######Destinatario###### -->
<select name="destinatarios" id="destinatarios">
<c:forEach var="destinatario" items="${usuarioLogado.usuario.listaParceria }">
<option value="${destinatario.caixaPostalDestinatario}">${destinatario.caixaPostalDestinatario}</option>
</c:forEach>
</select>
<!--######Tipo de Arquivo###### -->
<select name="tpArquivo" id="tpArquivo">
</select>
<!--######Tipo Documento######-->
<select name="tp_Documento">
<c:forEach var="tp_Documento"
items="${usuarioLogado.usuario.listaParceria }">
<option value=""></option>
</c:forEach>
</select>
</div>
Meu controller
@Post @Path("/carregaTpDocumentos")
public void carregaTpDocumentos(String destinatario) throws IOException {
System.out.println("####################chamou controller listacombo...##############################");
List<ParceriaVO> parceriaVOs = this.usuarioLogado.getUsuario().getListaParceria();
for (ParceriaVO parceriaVO : parceriaVOs) {
Set<TipoDocumentoParceriaVO> documentoParceriaVOs = parceriaVO.getListaTipoDocumentoParceria();
for (TipoDocumentoParceriaVO tipoDocumentoParceriaVO : documentoParceriaVOs) {
System.out.println(tipoDocumentoParceriaVO.getTipoDocumento().getNomeTipoDocumento());
result.use(Results.json()).withoutRoot().from(tipoDocumentoParceriaVO).serialize();
}
}
}
Esta me mostrando e seguinte exception:
2:15:40,470 DEBUG [VRaptor ] VRaptor received a new request
12:15:40,542 DEBUG [VRaptor ] VRaptor received a new request
12:15:41,091 DEBUG [ToInstantiateInterceptorHandler] Invoking interceptor ResourceLookupInterceptor
12:15:41,091 DEBUG [ToInstantiateInterceptorHandler] Invoking interceptor ResourceLookupInterceptor
12:15:41,092 DEBUG [DefaultResourceTranslator] trying to access /home
12:15:41,092 DEBUG [DefaultResourceTranslator] trying to access /home/login
12:15:41,103 DEBUG [DefaultResourceTranslator] found resource [DefaultResourceMethod: HomeController.homeHomeController.home()]
12:15:41,103 DEBUG [DefaultResourceTranslator] found resource [DefaultResourceMethod: HomeController.loginHomeController.login(String, String)]
12:15:41,119 DEBUG [ToInstantiateInterceptorHandler] Invoking interceptor FlashInterceptor
12:15:41,119 DEBUG [ToInstantiateInterceptorHandler] Invoking interceptor FlashInterceptor
12:15:41,140 DEBUG [ToInstantiateInterceptorHandler] Invoking interceptor ExceptionHandlerInterceptor
12:15:41,140 DEBUG [ToInstantiateInterceptorHandler] Invoking interceptor ExceptionHandlerInterceptor
12:15:41,165 DEBUG [ToInstantiateInterceptorHandler] Invoking interceptor InstantiateInterceptor
12:15:41,200 DEBUG [InjectionBeanPostProcessor] Autowiring by type from bean name 'homeController' to bean named 'autenticadorImpl'
12:15:41,223 DEBUG [ToInstantiateInterceptorHandler] Invoking interceptor AutorizacaoInterceptor
12:15:41,257 DEBUG [ToInstantiateInterceptorHandler] Invoking interceptor ExecuteMethodInterceptor
12:15:41,257 DEBUG [ExecuteMethodInterceptor] Invoking HomeController.home()
12:15:41,306 DEBUG [ToInstantiateInterceptorHandler] Invoking interceptor ForwardToDefaultViewInterceptor
12:15:41,307 DEBUG [ForwardToDefaultViewInterceptor] forwarding to the dafault page for this logic
12:15:41,319 DEBUG [IogiParametersProvider] IogiParametersProvider is up
12:15:41,363 DEBUG [LazyInterceptorHandler] Invoking interceptor ParametersInstantiatorInterceptor
12:15:41,381 DEBUG [DefaultPageResult ] forwarding to /WEB-INF/jsp/home/home.jsp
12:15:41,388 DEBUG [DefaultStaticContentHandler] Deferring request to container: /NEWEDI_ediweb/WEB-INF/jsp/home/home.jsp
12:15:41,420 DEBUG [ParanamerNameProvider] Found parameter names with paranamer for HomeController.login(String, String) as [login, senha]
12:15:41,446 DEBUG [IogiParametersProvider] getParametersFor() called with parameters Parameters(Parameter(login -> LX222T), Parameter(senha -> newedi123)) and targets [Target(name=login, type=class java.lang.String), Target(name=senha, type=class java.lang.String)].
12:15:41,452 DEBUG [ParametersInstantiatorInterceptor] Parameter values for [DefaultResourceMethod: HomeController.loginHomeController.login(String, String)] are [LX222T, newedi123]
12:15:41,457 DEBUG [ToInstantiateInterceptorHandler] Invoking interceptor InstantiateInterceptor
12:15:41,474 DEBUG [ToInstantiateInterceptorHandler] Invoking interceptor ExecuteMethodInterceptor
12:15:41,474 DEBUG [ExecuteMethodInterceptor] Invoking HomeController.login(String, String)
12:15:41,583 DEBUG [VRaptor ] VRaptor ended the request
12:15:43,171 DEBUG [VRaptor ] VRaptor received a new request
12:15:43,265 DEBUG [ToInstantiateInterceptorHandler] Invoking interceptor ResourceLookupInterceptor
12:15:43,266 DEBUG [DefaultResourceTranslator] trying to access /arquivos
12:15:43,266 DEBUG [DefaultResourceTranslator] found resource [DefaultResourceMethod: TransmitirArquivosController.transmitirArquivosTransmitirArquivosController.transmitirArquivos()]
12:15:43,278 DEBUG [ToInstantiateInterceptorHandler] Invoking interceptor FlashInterceptor
12:15:43,285 DEBUG [ToInstantiateInterceptorHandler] Invoking interceptor ExceptionHandlerInterceptor
12:15:43,288 DEBUG [ToInstantiateInterceptorHandler] Invoking interceptor InstantiateInterceptor
12:15:43,324 DEBUG [ToInstantiateInterceptorHandler] Invoking interceptor AutorizacaoInterceptor
12:15:43,329 DEBUG [ToInstantiateInterceptorHandler] Invoking interceptor ExecuteMethodInterceptor
12:15:43,329 DEBUG [ExecuteMethodInterceptor] Invoking TransmitirArquivosController.transmitirArquivos()
12:15:43,333 DEBUG [ToInstantiateInterceptorHandler] Invoking interceptor ForwardToDefaultViewInterceptor
12:15:43,333 DEBUG [ForwardToDefaultViewInterceptor] forwarding to the dafault page for this logic
12:15:43,395 DEBUG [DefaultPageResult ] forwarding to /WEB-INF/jsp/transmitirArquivos/transmitirArquivos.jsp
12:15:43,417 DEBUG [DefaultStaticContentHandler] Deferring request to container: /NEWEDI_ediweb/WEB-INF/jsp/transmitirArquivos/transmitirArquivos.jsp
20/07/2012 12:15:44 org.apache.jasper.compiler.TldLocationsCache tldScanJar
INFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
log4j:WARN No appenders could be found for logger (org.hibernate.cfg.Environment).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
12:15:50,965 DEBUG [VRaptor ] VRaptor ended the request
12:15:51,310 DEBUG [VRaptor ] VRaptor received a new request
12:15:51,520 DEBUG [ToInstantiateInterceptorHandler] Invoking interceptor ResourceLookupInterceptor
12:15:51,521 DEBUG [DefaultResourceTranslator] trying to access /js/cors/jquery.xdr-transport.js
12:15:51,521 DEBUG [VRaptor ] VRaptor ended the request
12:15:51,729 DEBUG [VRaptor ] VRaptor received a new request
12:15:51,821 DEBUG [ToInstantiateInterceptorHandler] Invoking interceptor ResourceLookupInterceptor
12:15:51,821 DEBUG [DefaultResourceTranslator] trying to access /upload
12:15:51,830 DEBUG [ResourceLookupInterceptor] Method GET is not allowed for requested URI. Allowed Methods are [POST]
br.com.caelum.vraptor.http.route.MethodNotAllowedException: Method GET is not allowed for requested URI. Allowed Methods are [POST]
at br.com.caelum.vraptor.http.route.DefaultRouter.routesMatchingUriAndMethod(DefaultRouter.java:110)
at br.com.caelum.vraptor.http.route.DefaultRouter.parse(DefaultRouter.java:83)
at br.com.caelum.vraptor.http.DefaultResourceTranslator.translate(DefaultResourceTranslator.java:59)
at br.com.caelum.vraptor.interceptor.ResourceLookupInterceptor.intercept(ResourceLookupInterceptor.java:66)
at br.com.caelum.vraptor.core.ToInstantiateInterceptorHandler.execute(ToInstantiateInterceptorHandler.java:54)
at br.com.caelum.vraptor.core.DefaultInterceptorStack.next(DefaultInterceptorStack.java:54)
at br.com.caelum.vraptor.core.ToInstantiateInterceptorHandler.execute(ToInstantiateInterceptorHandler.java:56)
at br.com.caelum.vraptor.core.DefaultInterceptorStack.next(DefaultInterceptorStack.java:54)
at br.com.caelum.vraptor.core.EnhancedRequestExecution.execute(EnhancedRequestExecution.java:44)
at br.com.caelum.vraptor.VRaptor$1.insideRequest(VRaptor.java:91)
at br.com.caelum.vraptor.ioc.spring.SpringProvider.provideForRequest(SpringProvider.java:58)
at br.com.caelum.vraptor.VRaptor.doFilter(VRaptor.java:88)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:225)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1001)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:585)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
12:15:51,965 DEBUG [VRaptor ] VRaptor ended the request
eu mudei para Post mas num adiantou?? o que poderia ser ?