[Installation, Configuration & DEPLOYMENT] - Why *.war web file of JBOSSAS-4.2.0-4.GA not working on jbos
by rajeshnr
Caused by: org.jboss.xb.binding.JBossXBException: Failed to parse source: The content of element type "web-app" must match "(icon?,display-name?,description?,distributable?,context-param*,filter*,filter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-mapping*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,resource-ref*,security-constraint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb-local-ref*)". @ vfsfile:/D:/jboss-5.0.0.GA/server/default/deploy/V-Learn.war/WEB-INF/web.xml[106,11]
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4242034#4242034
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4242034
16 years, 9 months
[Microcontainer] - How to convert @Service MBean POJO to microcontainer POJO
by yashendrac
I have lot of MBean Services created using @Service and @Management annotations. I am not using -service xml instead using @Service annotation so that I can use annotations like @EJB.These Services depends on various EJBs and to get reference of ejbs from Services I am using @EJB annotation. This is how the code is:
@Service
| @Management(StartupMBean.class)
| @Depends("jboss:name=SmcBarrier,type=Barrier")
| public class UserStartup
| implements StartupMBean {
|
| @EJB
| private ObjectManagerLocal objectManager;
| @EJB
| private PropertyManagerLocal propertyManager;
| .....
| .....
| public void start() {
| .....
| .....
| }
|
|
It would be highly appreciated if anybody let me know how to achieve all these if I want convert my POJO mbeans to microcontainer beans.
Are there equivalent annotations in microcontainer for @EJB , @Depends.
Or it is not possible in microcontained bean to achieve these through annotations without using -beans.xml
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4242025#4242025
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4242025
16 years, 9 months