Hi Vincent,

Because this is really a question about the verifier I'll answer it on 
jboss-user as well. In general, without permission from the JBoss 
board, I don't want to use jboss-user as a support forum for the 
MVCSoft Persistence Manager. I'll take the matter up with them to 
see if it's appropriate, when questions are posted here.

Anyway, the verifier warns about any deviation from the EJB 1.1 
spec. Home interface methods were not added TO THE SPEC until 
EJB 2.0, so you get a warning. However, home interface methods 
were added to JBoss, and so your EJB components should deploy 
and the code should work. Just ignore that warning. 

By the way, this is not a software defect at any level. The verifier is 
correctly checking EJB 1.1 compliance, and the JBoss container 
system is nicely allowing you to use an EJB 2.0 feature.


On 4 Feb 01, at 1:56, Vincent Harcq wrote:

> Hi!
> I send to both lists because
> I tried to deploy health_club, so :
> I created a test.jar using the Project Manager.
> I copied it to deploy under JBoss
> Then I got the message on 9.2.8. spec
> 
> I am using JBoss PRE2.1 from CVS last week.
> 
> The problem comes from EJBVerifier11.java
> 
>             /*
>              * Each method defined in the entity bean's home interface must
> be
>              * one of the following:
>              *
>              *    - a create method
>              *    - a finder method
>              *
>              * Spec 9.2.8
>              */
>             homeMethods = Arrays.asList(home.getMethods()).iterator();
> 
>             while (homeMethods.hasNext()) {
> 
>                 Method method = (Method)homeMethods.next();
> 
>                 // Do not check the methods of the javax.ejb.EJBHome
> interface
>                 if
> (method.getDeclaringClass().getName().equals(EJB_HOME_INTERFACE))
>                     continue;
> 
>                 if (! (isCreateMethod(method) || isFinderMethod(method)) ) {
> 
>                     fireSpecViolationEvent(entity, method, new
> Section("9.2.8.e"));
> 
>                     status = false;
>                 }
>             }
> 
> 
> I commented this and  . . . it works.
> Any ideas if that have changed recently ?
> 
> Can somebody make a change for that permanently ? Does MVCSoft have to
> provide their own Verifier ?
> 
> Not sure yet if my bean can be accessed, so maybe the Verifier is doing a
> more clever work that I think.
> 
> Vincent.
> 
> 
> Deployment message before correction
> =====================================
> 
> [Auto deploy] Starting
> [Auto deploy] Watching C:\Projects\jbosscvs\jboss\dist\deploy
> [Auto deploy] Auto deploy of
> file:/C:/Projects/jbosscvs/jboss/dist/deploy/test.jar
> [J2EE Deployer Default] Deploy J2EE application:
> file:/C:/Projects/jbosscvs/jboss/dist/deploy/test.jar
> [J2EE Deployer Default] Create application test.jar
> [J2EE Deployer Default] install module test.jar
> [J2EE Deployer Default] Starting module test.jar
> [Container factory]
> Deploying:file:/C:/Projects/jbosscvs/jboss/dist/tmp/deploy/Default/test.jar/
> ejb1001.jar
> [Verifier] Verifying
> file:/C:/Projects/jbosscvs/jboss/dist/tmp/deploy/Default/test.jar/ejb1001.ja
> r
> [Verifier]
> Bean   : HealthClubBranchEJB
> Method : public abstract strictfp String memberNames() throws
> FinderException, RemoteException
> Section: 9.2.8
> Warning: Each method defined in the entity bean's home interface must be
> either create or finder method.
> 
> [Verifier]
> Bean   : HealthClubBranchEJB
> Method : public abstract strictfp void addInstructor(String, Certification)
> throws RemoteException, CreateException
> Section: 9.2.8
> Warning: Each method defined in the entity bean's home interface must be
> either create or finder method.
> 
> [Verifier]
> Bean   : HealthClubBranchEJB
> Method : public abstract strictfp String
> zipsWhereLiveAndWorkForBranch(String) throws FinderException, RemoteExceptio
> Section: 9.2.8
> Warning: Each method defined in the entity bean's home interface must be
> either create or finder method.
> 
> [Verifier]
> Bean   : HealthClubBranchEJB
> Method : public abstract strictfp String certificationsForBranch(String)
> throws FinderException, RemoteException
> Section: 9.2.8
> Warning: Each method defined in the entity bean's home interface must be
> either create or finder method.
> 
> [Verifier]
> Bean   : HealthClubBranchEJB
> Method : public abstract strictfp String membersWhoWorkAtHome() throws
> FinderException, RemoteException
> Section: 9.2.8
> Warning: Each method defined in the entity bean's home interface must be
> either create or finder method.
> 
> [Verifier]
> Bean   : HealthClubBranchEJB
> Method : public abstract strictfp String membersInKeyZips() throws
> FinderException, RemoteException
> Section: 9.2.8
> Warning: Each method defined in the entity bean's home interface must be
> either create or finder method.
> 
> [Verifier]
> Bean   : HealthClubBranchEJB
> Method : public abstract strictfp String membersIn12306() throws
> FinderException, RemoteException
> Section: 9.2.8
> Warning: Each method defined in the entity bean's home interface must be
> either create or finder method.
> 
> [Verifier]
> Bean   : HealthClubBranchEJB
> Method : public abstract strictfp String membersWithNoClasses() throws
> FinderException, RemoteException
> Section: 9.2.8
> Warning: Each method defined in the entity bean's home interface must be
> either create or finder method.
> 
> [Verifier]
> Bean   : HealthClubBranchEJB
> Method : public abstract strictfp String classesForMember(String) throws
> FinderException, RemoteException
> Section: 9.2.8
> Warning: Each method defined in the entity bean's home interface must be
> either create or finder method.
> 
> [Verifier]
> Bean   : HealthClubBranchEJB
> Method : public abstract strictfp String membersInZipsEndingWith2() throws
> FinderException, RemoteException
> Section: 9.2.8
> Warning: Each method defined in the entity bean's home interface must be
> either create or finder method.
> 
> [Container factory] Deploying HealthClubBranchEJB
> [Container factory] Deploying CertificationEJB
> [JAWS] Created table 'CertificationEJB' successfully.
> 
> 
> 
> --
> --------------------------------------------------------------
> To subscribe:        [EMAIL PROTECTED]
> To unsubscribe:      [EMAIL PROTECTED]
> List Help?:          [EMAIL PROTECTED]
> 
> 




--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
List Help?:          [EMAIL PROTECTED]

Reply via email to