[EJB 3.0] - Re: NullPointerException in JavaEEComponentHelper with JBoss
by jaikiran
"japase" wrote :
| I have no such message in the console window. On the other hand I have only INFO, WARNING and ERROR messages. I can start the server with DEBUG enabled, but for which category?
|
The DEBUG logs are available in server.log (as you note later in this post). We would mainly be interested in org.jboss.ejb3 DEBUG logs.
"japase" wrote :
| The server.log file, on the other hand, seems to have all the debug lines, but even there I couldn't find any such message. I can send the entire file, if necessary, but it is almost 23 MB large!
|
If possible, zip it and attach it to the JIRA issue https://jira.jboss.org/jira/browse/EJBTHREE-1751
anonymous wrote : But the EJB injection we have in our web services doesn't seem to work
Could you please post that webservice code including annotations?
anonymous wrote :
| The EJBs in this simple application don't have any mutual references, so maybe the problem lies in EJB injection?
The actual problem that we see in this issue (and the one noted in the JIRA) is related to ordering of deployment units. So if you have a EJB in one jar and the EJB depends on some other EJB in a different jar, then chances are that because of deployment ordering, the injection might fail. If both those EJBs are within the same jar then you wont be noticing this issue. This issue is specific to AS-5.x.
>From my understanding of this issue, i would have expected the mappedName attribute on @EJB injection to fix the issue with injection (even if the EJBs are in different jars).
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4225293#4225293
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4225293
17 years
[EJB 3.0] - Re: NullPointerException in JavaEEComponentHelper with JBoss
by japase
Hi,
I have no such message in the console window. On the other hand I have only INFO, WARNING and ERROR messages. I can start the server with DEBUG enabled, but for which category?
The server.log file, on the other hand, seems to have all the debug lines, but even there I couldn't find any such message. I can send the entire file, if necessary, but it is almost 23 MB large!
To create a simple application can be quite difficult because we don't really know what the problem is. I can probably create an application that would be much simpler then the one I'm trying to deploy, i.e. containing just a couple of EJBs, but is still build (generated) based on our framework. But I'm not allowed to send such application other then through Red Hat support channel.
I have already created a simple application (still based on our framework) with only one, generated EJB (totally two; one resides in the framework) and could, in fact, deploy and run this application.
But the EJB injection we have in our web services doesn't seem to work - variables defined as:
| @EJB private ifs.application.connecttestorder.TestOrderInteractionLocal local;
|
are null run time and only traditional look up is working. The EJBs in this simple application don't have any mutual references, so maybe the problem lies in EJB injection?
I can try to create a simple application with just a couple of EJBs referring to each other (with EJB injection, as we generate our code) and supply with more info/error stack.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4225288#4225288
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4225288
17 years