ok, found the issue,
we use xbean to find jars (i use a shortcut but that's not important for
you i think) and we rely on META-INF presence or not to find jars. In your
com.github.play2war... jars you have META-INF/MANIFEST which doesn't answer
to getResources("META-INF") so the jars are not scanned.
An easy workaround is to add META-INF/empty for instance.
I'll see how to fix it for next xbean release
*Romain Manni-Bucau*
*Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
*Blog: **http://rmannibucau.wordpress.com/*<http://rmannibucau.wordpress.com/>
*LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
*Github: https://github.com/rmannibucau*
2013/4/17 Romain Manni-Bucau <[email protected]>
> I just tested on the snapshot and
> http://localhost:8080/a-play2war-sample-servlet25-1.0-SNAPSHOT/ works
> super fine, the servlet 30 has an issue (i guess the file @WebServlet is
> skipped), checking ATM why
>
>
> *Romain Manni-Bucau*
> *Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
> *Blog: **http://rmannibucau.wordpress.com/*<http://rmannibucau.wordpress.com/>
> *LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
> *Github: https://github.com/rmannibucau*
>
>
>
> 2013/4/17 Romain Manni-Bucau <[email protected]>
>
>> can you share a built war? i have classcast exception with sbt ATM and no
>> real time to look deeper
>>
>>
>> BTW did you check you don't use servlet3.0 (@WebServlet) + servlet 2.5
>> (through web.xml) at the same time?
>>
>> *Romain Manni-Bucau*
>> *Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
>> *Blog:
>> **http://rmannibucau.wordpress.com/*<http://rmannibucau.wordpress.com/>
>> *LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
>> *Github: https://github.com/rmannibucau*
>>
>>
>>
>> 2013/4/17 dorwin <[email protected]>
>>
>>> Hi, Romain
>>>
>>> We found a workaround by using 1.5.2 with Tomcat 7.0.34 merged in.
>>>
>>> I tried using the 1.6.0-SNAPSHOT and got the same result. It worked
>>> correctly when I deployed to Tomcat 7.0.39, however. So it seems only the
>>> combination of tomee and tomcat produce the problem. I looked and
>>> couldn't
>>> find evidence of the WebServlet annotation being present in more than one
>>> place, however, there may still be an issue with the play2war plugin:
>>> https://github.com/dlecan/play2-war-plugin
>>>
>>> Thank you,
>>>
>>> Dorwin
>>>
>>>
>>>
>>> --
>>> View this message in context:
>>> http://openejb.979440.n4.nabble.com/war-file-fails-to-deploy-servlet-loaded-twice-tp4662288p4662308.html
>>> Sent from the OpenEJB User mailing list archive at Nabble.com.
>>>
>>
>>
>