aspose file tools*
The moose likes JBoss/WildFly and the fly likes EJB3.0 on JBOSS 5.0  Deployment problem  Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "EJB3.0 on JBOSS 5.0  Deployment problem  " Watch "EJB3.0 on JBOSS 5.0  Deployment problem  " New topic
Author

EJB3.0 on JBOSS 5.0 Deployment problem

Bhavik patel
Ranch Hand

Joined: Feb 20, 2007
Posts: 49
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


Bhavik Patel
Glassfish Consultancy service At http://www.jmatrix.in
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10210
    
166

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?


[My Blog] [JavaRanch Journal]
Bhavik patel
Ranch Hand

Joined: Feb 20, 2007
Posts: 49
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

Joined: Feb 20, 2007
Posts: 49
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

Joined: Jul 20, 2005
Posts: 10210
    
166

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

Joined: Jul 20, 2005
Posts: 10210
    
166

Just one more question - are the contents of the jboss.xml empty? If not, can you post the contents here?
Bhavik patel
Ranch Hand

Joined: Feb 20, 2007
Posts: 49
The jboss.xml contains


<?xml version="1.0" encoding="UTF-8"?>
<jboss/>
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10210
    
166

Thanks Bhavik!

I haven't yet been able to reproduce this though.
Aleksander Adamowski
Greenhorn

Joined: Jun 25, 2008
Posts: 3
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.

--<br />Aleksander Adamowski<br /> <a href="http://olo.org.pl" target="_blank" rel="nofollow">http://olo.org.pl</a>
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: EJB3.0 on JBOSS 5.0 Deployment problem