Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

EJB3.0 on JBOSS 5.0 Deployment problem

 
Bhavik patel
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello friends,

My EJB3.0 project gets deployed well on JBOSS4.0.4.GA but for the same project I am getting Following deployment exception.

org.jboss.deployment.DeploymentException:
No Attribute found with name: PolicyConfigurationFacadeMBean for jboss.jacc:service=jacc,id="vfszip:/home/C_Drive/jboss-5.0.0.CR2/server/D2K-NG/deploy/SearchEngine.jar/META-INF/",parent="SearchEngine.jar", attributes: [JaccContextID, PolicyConfiguration]

Help me if anyone has a clue...
Thanks
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bhavik,

This is one of the exceptions that was reported here by an user earlier. However the JBoss developers weren't able to reproduce this since they did not have a sample application.

What does your application consist, how is it packaged? Would it be possible for you to upload to some place, a simple application which demonstrates this issue?
 
Bhavik patel
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using NetBeans to create EJBModule
Following is the package structure.
I have not edited Jboss.xml file. It was generated by the IDE and it is at its respective place.

org/test/ejb/MySessionBEan.java
org/test/ejb/MySessionRemote.java
org/test/ejb/MySessionLocal.java

Project is compiled to SearchEngine.jar and it has dependancy with utility files ibatis.jar and DTO.jar

I have placed,

-->SearchEngine.jar in deploy directory of my domain in jboss server
-->ibatis.jar and DTO.jar in lib directory of my domain in jboss server

When I start JBoss5 it raises this exception.

But,

One more thing ,
I created one sample ejb module and deployed it on JBOSS5. This module does not have any jar dependancy. ( Simple hello world application). This works fine.


I hope this will be of help...
Thanks again
 
Bhavik patel
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Jaikiran Pai ,

Well , I have managed to resolve this issue by now.

The ebjs which were not getting deployed had following structure in their jar file.

SearchEngine.jar-------METAINF ( directory)
--------MANIFEST.MF ( file )
--------Jboss.xml
-------org ( and other package)


I removed this METAINF ( directory) from src -> conf

and compiled the ejb project, and placed resulted SearchEngine.jar in Deploy directory of Jboss5 serve and previous exception is gone.

Thanks to my friend Jitu to get me out of this trouble....
Thank you again...
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bhavik,

Thanks for explaining your folder structure and the worked around you followed to get this issue resolved. Let me see if i can reproduce this on my setup.
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just one more question - are the contents of the jboss.xml empty? If not, can you post the contents here?
 
Bhavik patel
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The jboss.xml contains


<?xml version="1.0" encoding="UTF-8"?>
<jboss/>
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Bhavik!

I haven't yet been able to reproduce this though.
 
Aleksander Adamowski
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bhavik patel wrote:
Well , I have managed to resolve this issue by now.

The ebjs which were not getting deployed had following structure in their jar file.

SearchEngine.jar-------METAINF ( directory)
--------MANIFEST.MF ( file )
--------Jboss.xml
-------org ( and other package)


I removed this METAINF ( directory) from src -> conf

and compiled the ejb project, and placed resulted SearchEngine.jar in Deploy directory of Jboss5 serve and previous exception is gone.


Hi!

I had a similar problem when porting an application from JBoss 4.2.

See this JIRA comment for detailed explanation:
https://jira.jboss.org/browse/JBAS-5980?focusedCommentId=12543977&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12543977

In short, one of EJB JARs had a leftover jboss.xml descriptor which didn't contain any significant data. It seems that on JBoss 5 its presence borks the deployment process.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic