my dog learned polymorphism*
The moose likes JBoss/WildFly and the fly likes invoker-mbean missing Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "invoker-mbean missing" Watch "invoker-mbean missing" New topic
Author

invoker-mbean missing

uttam kumar
Ranch Hand

Joined: Jan 27, 2009
Posts: 128

Hi,

I have an ear which contains several ejb jar and one war file. In the war file we have defined references to some ejb inside the web.xml. The problem is when I am deploying the ear into Oracle App Server its working fine but as soon as I deploy it into JBoss 5.0.1 GA it throws error.




There is no file such as users.properties or defaultUsers.properties. I made following entry into standardjboss.xml to solve this problem, but its of no use



Any help would be appreciated.

Thanks,
Uttam Kumar
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5836
    
    7

Did you even look at he error messages? Here are the first two lines:



Apparently the web app is configured for access control but you haven't provided the necessary file.

By the way, always fix the first error before attempting to look at other errors because the first error might be causing the others.



JBoss In Action
uttam kumar
Ranch Hand

Joined: Jan 27, 2009
Posts: 128

Hi Peter,

There is no such file in the ear and the ear is working fine when I deploy that into Oracle App Server. I tried over google too but didnt find any satisfactory answer to why this error is coming.
What kind of file you want me to add and what should be its content?

Thanks,
Uttam Kumar
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10146
    
165

You are using UsersRolesLoginModule which expects a users.properties and a roles.properties in your application classpath (usually packaged within the application). Do you have one? If not, see this for some details.

[My Blog] [JavaRanch Journal]
uttam kumar
Ranch Hand

Joined: Jan 27, 2009
Posts: 128

Hi Jai/Peter,

Thanks for your input. I created the files user.properties and roles.properties and the first problem wiped out. Still I am getting the following problem while ear is getting deployed



As told earlier, I tried making an entry of entity-rmi-invoker into standardjboss.xml but the problem still persist. Please suggest.

Thanks,
Uttam Kumar
uttam kumar
Ranch Hand

Joined: Jan 27, 2009
Posts: 128

Any guess ??
uttam kumar
Ranch Hand

Joined: Jan 27, 2009
Posts: 128

I even made the following entry into each jboss.xml still its of no use:


I am stuck. Please suggest.

Thanks,
Uttam Kumar
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5836
    
    7

The last list of "errors" you posted is the deployment report that the deployer prints out at the end of deployment phase. This report rarely provides any information on root causes. You should instead look for the first ERROR log entry in the console log or in server.log and post that ERROR entry, including the full stack trace. Including the dozen or some lines from before the ERROR entry sometimes also helps.
uttam kumar
Ranch Hand

Joined: Jan 27, 2009
Posts: 128

Hi Peter,

There is no other error in the server.log as well as in boot.log. The logging level is DEBUG and I have investigated it thoroughly. The error shows only in the deployment report that the deployer prints out at the end of deployment phase. Please suggest.

Regards,
Uttam Kumar
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10146
    
165

1) Who's using that jboss:service=invoker,type=rmi?
2) Post your entire jboss.xml (with that invoker-proxy-binding that you added) and also the new logs which you see after adding that binding.
uttam kumar
Ranch Hand

Joined: Jan 27, 2009
Posts: 128

Hi Jai, here is the complete jboss.xml



The logs are same as I've already posted above.

Thanks,
Uttam Kumar
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10146
    
165

Remove this:



By adding that you are telling the server to wait till a MBean with that name is deployed. I think you are after the unified invoker MBean, for which you have to use:



(For an example, search the standardjboss.xml in AS5.1 for jboss:service=invoker,type=unified).


uttam kumar
Ranch Hand

Joined: Jan 27, 2009
Posts: 128

So you mean that we can replace with and it will work perfectly.
uttam kumar
Ranch Hand

Joined: Jan 27, 2009
Posts: 128

Yes, it resolved the error. Thanks Jai for your support.

Thanks,
Uttam Kumar
 
GeeCON Prague 2014
 
subject: invoker-mbean missing