Hi Romain, still no luck, I've got your latest commits and build a snapshot again but it didn't help, context was not initialized.
Also note that it works with JavaEE war files inside the ear, here's an ear <http://s000.tinyupload.com/download.php?file_id=01150630056700489302&t=0115063005670048930256792> with other 2 wars that work. After deploying it you can access: http://localhost:8080/rest-ws-cdi/api/message and http://localhost:8080/rest-ws-ejb/api/message. The problem seems to be related to spring's WebApplicationListener <https://github.com/spring-projects/spring-framework/blob/master/spring-web/src/main/java/org/springframework/web/WebApplicationInitializer.java> which is not being invoked when the application is inside an ear. thanks for the prompt reply. 2016-02-02 9:04 GMT-02:00 Romain Manni-Bucau [via TomEE & OpenEJB] < [email protected]>: > Hi Rafael, > > I guess it is related to https://issues.apache.org/jira/browse/TOMEE-1703 > > > Romain Manni-Bucau > @rmannibucau <https://twitter.com/rmannibucau> | Blog > <http://rmannibucau.wordpress.com> | Github < > https://github.com/rmannibucau> | > LinkedIn <https://www.linkedin.com/in/rmannibucau> | Tomitriber > <http://www.tomitribe.com> > > 2016-02-02 11:14 GMT+01:00 Rafael Pestano <[hidden email] > <http:///user/SendEmail.jtp?type=node&node=4677558&i=0>>: > > > Hi guys, > > > > > > I'm trying to deploy a spring-mvc application as an ear on > Tomee7-SNAPSHOT > > (built it yesterday) but the spring context isn't initialized. > > > > If I extract the war from the ear and deploy it then the spring context > > starts and I can access the rest endpoint: > > *http://localhost:8080/rest-ws-spring/api/message > > <http://localhost:8080/rest-ws-spring/api/message>*. > > > > Here is the log for the ear deployment: http://pastebin.com/nRT0knmm (no > > > spring context initialization is triggered) > > > > and here is log for war deploy: http://pastebin.com/Li4jHkeY > > > > In the war deploy I get spring initialization logs: > > INFO - FrameworkServlet 'spring-mvc-dispatcher': initialization started > > INFO - FrameworkServlet 'spring-mvc-dispatcher': initialization > completed > > in 17 ms > > > > > > You can get the ear here: > > http://s000.tinyupload.com/?file_id=05217187591843118884 > > <http://s000.tinyupload.com/?file_id=05217187591843118884> > > > > Any help is appreciated. > > > > -- > > <http://www.advancedit.com.br/>Att, > > > > Rafael M. Pestano > > > > Desenvolvedor Java Cia. de Processamento de Dados do Rio Grande do Sul > > http://rpestano.wordpress.com/ > > @realpestano <https://twitter.com/realpestano> > > > > > ------------------------------ > If you reply to this email, your message will be added to the discussion > below: > > http://tomee-openejb.979440.n4.nabble.com/Help-deploying-spring-app-inside-ear-tp4677557p4677558.html > To start a new topic under TomEE Users, email > [email protected] > To unsubscribe from TomEE Users, click here > <http://tomee-openejb.979440.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=979441&code=cm1wZXN0YW5vQGdtYWlsLmNvbXw5Nzk0NDF8MTE1OTM0ODgyNg==> > . > NAML > <http://tomee-openejb.979440.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> > -- <http://www.advancedit.com.br/>Att, Rafael M. Pestano Desenvolvedor Java Cia. de Processamento de Dados do Rio Grande do Sul http://rpestano.wordpress.com/ @realpestano <https://twitter.com/realpestano> -- View this message in context: http://tomee-openejb.979440.n4.nabble.com/Help-deploying-spring-app-inside-ear-tp4677557p4677559.html Sent from the TomEE Users mailing list archive at Nabble.com.
