This needs to be in some docs as a potential pitfall.
On Tue, Jun 7, 2011 at 21:33, Jaikiran Pai <jpai(a)redhat.com> wrote:
On Wednesday 08 June 2011 04:12 AM, Stuart Douglas wrote:
>
>>
>> I guess that it is not good. How will AS7 solves deploying old EJB3
>> application?
>>
>> I am new in JBoss AS 7 world, and right now I am trying to deploy some
>> old applications. For instance I saw this warning:
>>
>> 21:37:17,430 WARN [org.jboss.as.server.deployment.module] (MSC service
>> thread 1-2) META-INF directory
>> /content/jboss-seam-jpa.war/WEB-INF/classes/META-INF ignored as it is
>> not a valid location for META-INF
>>
>> Why the location is not valid?
>>
>
> It should be in war/META-INF, not war/WEB-INF/classes/META-INF.
>
Note that the WARN is a bit misleading because (only) the JPA spec
allows the persistence.xml file to be in .war/WEB-INF/classes/META-INF
(section 8.2 of JPA spec). That file infact will be picked up by AS7.
It's just warning that the rest of the metadata should come from
.war/META-INF. The .war/WEB-INF/classes/META-INF location is just for
JPA persistence.xml
-Jaikiran
_______________________________________________
seam-dev mailing list
seam-dev(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/seam-dev
--
Jason Porter
http://lightguard-jp.blogspot.com
http://twitter.com/lightguardjp
Software Engineer
Open Source Advocate
Author of Seam Catch - Next Generation Java Exception Handling
PGP key id: 926CCFF5
PGP key available at:
keyserver.net,
pgp.mit.edu