This content has been marked as final.
Show 2 replies
-
1. Re: Tomcat 7 war and Weld
fup May 3, 2011 4:06 PM (in response to aagenielsen.aagnie.gmail.com)Where did you place the beans.xml file? There are two options:
in the META-INF directory of the classpath or WEB-INF directory of the web root
.I deployed a simple example app on Tomcat 6.0.32. For exploded deployment, beans were discovered placing the beans.xml file either at /WEB-INF/ or at /WEB-INF/classes/META-INF/. But, surprisingly, in case of an unexploded war beans were discovered only if the beans.xml file was placed at /WEB-INF/classes/META-INF/. Placing it at /WEB-INF/ does not work for me.
-
2. Re: Tomcat 7 war and Weld
aagenielsen.aagnie.gmail.com May 4, 2011 3:32 AM (in response to aagenielsen.aagnie.gmail.com)Hmmmm strange - we have tried copying our (empty) beans.xml around without any luck - and we are also using Tomcat 6.0.32 not Tomcat 7 as we wrote in subject.
Are we alone in deploying only nonexploding webapps in Tomcat ?
/aage