File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JBoss and the fly likes Eclipse Jboss Problem Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Products » JBoss
Reply Bookmark "Eclipse Jboss Problem" Watch "Eclipse Jboss Problem" New topic
Author

Eclipse Jboss Problem

Sergio Barreros
Greenhorn

Joined: Sep 09, 2003
Posts: 21
I am using jboss, with the MyEclipse plugin and I created an ejb and deployed it to jboss with no problem, in one of my methods I am returning a String but then I changed it to return an integer and jboss is giving me the error message at the bottom.
I have deleted my remote interfaces rebuilt them and all the method signatures match and everything builds fine, but everytime I deploy it to jboss I get the error message, I've even decompiled the class files and made sure that the method signatures are the same. I am really frustraded with this, if anybody can give a clue at what could be wrong I would really appreciate it.
Thanks
12:37:46,903 INFO [MainDeployer] Starting deployment of package: file:/D:/jboss
-3.2.2/server/default/deploy/webxnetejb.jar/
12:37:47,153 WARN [verifier] EJB spec violation:
Bean : UserUtilitiesBean
Method : public abstract String Login(String, String) throws RemoteException
Section: 7.10.5
Warning: The methods defined in the remote interface must have a matching method
in the bean's class with the same name and same number and types of arguments.
12:37:47,153 ERROR [MainDeployer] could not create deployment: file:/D:/jboss-3.
2.2/server/default/deploy/webxnetejb.jar/
org.jboss.deployment.DeploymentException: Verification of Enterprise Beans faile
d, see above for error messages.
Jeremy Davis
Greenhorn

Joined: Feb 07, 2003
Posts: 17
I had the same thing happen with the same setup, JBoss 3.2.2, MyEclipse plugin to Eclipse. I found some references here:
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3831850#3831850

I haven't found a solution. If I do I'll reply.

Jeremy
Tom Hoornaert
Greenhorn

Joined: Dec 17, 2004
Posts: 1
I had the same error,
it was because the method was specified as private in my Bean class
[ December 17, 2004: Message edited by: Tom Hoornaert ]
Rafael Forte
Greenhorn

Joined: Dec 07, 2004
Posts: 8
You can disable the ejb deployer verification using the following mbean

<mbean code="org.jboss.ejb.EJBDeployer"
name="jboss.ejb:service=EJBDeployer">
<attribute name="VerifyDeployments">false</attribute>
<attribute name="ValidateDTDs">false</attribute>
<attribute name="MetricsEnabled">false</attribute>
<attribute name="VerifierVerbose">false</attribute>
</mbean>

The mbean defined above is located in conf/jboss-service.xml (jb3.X) setting in jboss-service.xml or in deploy/ejb-deployer.xml (jb4).

If you want to verify j2ee compatibility, use sun j2eeverifier tool packed with sun j2ee ri.

Regards,
Rafael Forte.
 
 
subject: Eclipse Jboss Problem
 
Threads others viewed
EJBAdaptorBean not found
xpetstore deployment in JBoss 3.2.3
Problem with Jboss 3.0
Eclipse Jboss Problem
not getting jmx console
developer file tools