-
1. Re: Migrating Application from JBOSS 6.0 to JBOSS 7.1.1
nickarls Nov 9, 2012 1:41 AM (in response to savast01)What produces/defines the stuff for
@Inject
@CMTEJBServiceQualifier
private ABCService abcService;
and what do you mean "injected from outside"? What is the packaging of the application?
-
2. Re: Migrating Application from JBOSS 6.0 to JBOSS 7.1.1
savast01 Nov 9, 2012 3:19 PM (in response to nickarls)Hi Nicklas,
Thanks for replying.
From injected from outside I mean that container will instationate it.
The flow is like this ....
@Stateless(name = "ABCService", mappedName = "ABCService")
@TransactionAttribute(TransactionAttributeType.NOT_SUPPORTED)
@Interceptors(ExceptionTranslationInterceptor.class)
@EJBServiceQualifier
public class ABCServiceEntryImpl implements ABCService
{
/**
* A ABCService implementation instance, which is injected from outside.
*/
@Inject
@CMTEJBServiceQualifier
private ABCService abcService;
}
Then flows goes to ..
@Stateless(name = "ABCService", mappedName = "ABCService")
@CMTEJBServiceQualifier
public class ABCCMTImpl implements ABCService
{
/**
* A ABCService implementation instance, which is injected from outside.
*/
@Inject
@CoreServiceQualifier
private ABCService abcService;
}
And @CoreServiceQualifier goes to ...
//This is the class where business logic is written...
@CoreServiceQualifier
public class ABCServiceImpl implements ABCService
{
/**
* SimpleDAO instance, which is injected from outside.
*/
@Inject
private SimpleDAO dao;
}
Here ABCService inteface is my Web Service interface which is implemented everywhere even in EJB's it's like this ..
@WebService(name = "ABCService", targetNamespace = "http://aa.aa.aaa")
@XmlSeeAlso({ ObjectFactory.class })
public interface ABCService
{
//some methods ....
}
Packaging of application is like this ...
SomeApplication.war
--META-INF
--MANIFEST.MF, which has Class-Path: reference to all jars under WEB-INF/lib
--WEB-INF
--classes
--ExceptionTranslation
--lib
--Has all the jars of my application, In every .jar there is MANIFEST.MF file under META-INF which points to jars needed by them. But there is no jar inside any jar.
--wsdl
--xsd
--beans.xml
--web.xml
Sahil..
-
3. Re: Migrating Application from JBOSS 6.0 to JBOSS 7.1.1
savast01 Nov 16, 2012 12:01 AM (in response to savast01)Can anybody please reply to this..
-
4. Re: Migrating Application from JBOSS 6.0 to JBOSS 7.1.1
nickarls Nov 16, 2012 2:31 AM (in response to savast01)Can you attach a minimal sample?
-
5. Re: Migrating Application from JBOSS 6.0 to JBOSS 7.1.1
nickarls Nov 16, 2012 2:47 AM (in response to nickarls)Is there something wrong with CMTEJBServiceQualifier so that it's not considered a CDI qualifier? That's the only way I could think of that ABCWebServiceImpl would be considered for injection at that point. Even then, it should produce and ambiguous resolve. If nothing else helps. Place a debug breakpoint in the Weld BeanManager where it does the injection and look at what it really is trying to inject when the exception occurs.
-
6. Re: Migrating Application from JBOSS 6.0 to JBOSS 7.1.1
savast01 Mar 12, 2014 11:59 PM (in response to nickarls)It was a packaging problem with JBoss 7.
I mean JBOSS 7.0 does not support the packaging which I was using, and which I mentioned in my previous threads.
When I moved to JBOSS 6.1 Final version it worked.