I have a small set of BMP tests that I run on every new Orion 
version.  These worked on 1.1.24, but now seem to be broken and fail in the 
first getInitialContext().  Normally I just do an autoupdate, delete the 
applications-deployment directory, and run the test, but I've tried a full 
recompile with the same results.

I suspect this means  a problem on my part, but I can't find it.  I'd be 
grateful if someone could point out any obvious mistakes.

Thanks!

Kirk Yarina

Platform is Win98/JDK 1.2.2/Hypersonic.

The error:

 >java -Djava.compiler=NONE -classpath 
c:/java/testsuite/bean;c:/java/orion/orion.jar;c:/java/orion/ejb.jar;c:/java/orion/jndi.jar
 
mhi.ejb.person.TestSuite2

-- Getting Initial Context --
javax.naming.NamingException: Error reading application-client descriptor: 
No EJBHome found at Sequence as specified by ejb-ref mhi.Sequence
         at 
com.evermind.server.ApplicationClientInitialContextFactory.getInitial
Context(JAX)
         at 
javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:672)
         at 
javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:250)
         at javax.naming.InitialContext.init(InitialContext.java:226)
         at javax.naming.InitialContext.<init>(InitialContext.java:182)
         at mhi.ejb.person.TestSuite2.getInitialContext(TestSuite2.java:544)
         at mhi.ejb.person.TestSuite2.runTestSuite(TestSuite2.java:79)
         at mhi.ejb.person.TestSuite2.main(TestSuite2.java:60)



The client code that fails:

                 try {
                         this.iCtx = new InitialContext( );
                         }
                 catch ( Exception ex )
                         {
                         System.err.println( "-- Getting Initial Context --" );
                         ex.printStackTrace( System.err );
                         System.exit(2);
                         }
                 }


The beginning of the home interface:

package mhi.ejb.seq;

import java.rmi.RemoteException;
import java.util.Enumeration;
import javax.ejb.CreateException;
import javax.ejb.EJBHome;
import javax.ejb.FinderException;

/**
  * The SequenceHome interface.
  */

public
interface       SequenceHome
extends         EJBHome
         {
         /**
          * Creates a new Sequence with the give name, and sets its
          * next ID to the initial sequence parameter.
          *
          * @param name The name of the new Sequence.
          * @param initSeq The initial next ID for this sequence.
          */

         public Sequence
         create( String name, long initSeq )
                 throws RemoteException, CreateException;


The client's jndi.properties:

java.naming.factory.initial=com.evermind.server.ApplicationClientInitialContextFactory
java.naming.provider.url=ormi://localhost/testsuite
java.naming.security.principal=admin
java.naming.security.credentials=123



And the relevant section of ejb-jar.xml:

         <enterprise-beans>

                 <session>
                         <description>
                         Sequence Performance Test
                         </description>

                         <ejb-name>SequenceMgr</ejb-name>
                         <home>mhi.ejb.seq.SequenceMgrHome</home>
                         <remote>mhi.ejb.seq.SequenceMgr</remote>
                         <ejb-class>mhi.ejb.seq.SequenceMgrBean</ejb-class>
                         <session-type>Stateless</session-type>

                         <ejb-ref>
                                 <ejb-ref-name>mhi.Sequence</ejb-ref-name>
                                 <ejb-ref-type>Entity</ejb-ref-type>
                                 <home>mhi.ejb.seq.SequenceHome</home>
                                 <remote>mhi.ejb.seq.Sequence</remote>
                         </ejb-ref>
                 </session>

                 <entity>
                         <description>
                         Unique ID sequence generator
                         </description>

                         <ejb-name>Sequence</ejb-name>
                         <home>mhi.ejb.seq.SequenceHome</home>
                         <remote>mhi.ejb.seq.Sequence</remote>
                         <ejb-class>mhi.ejb.seq.SequenceBean</ejb-class>
                         <primkey-class>java.lang.String</primkey-class>
                         <reentrant>True</reentrant>
                         <persistence-type>Bean</persistence-type>
                 </entity>



Kirk Yarina
[EMAIL PROTECTED]


Reply via email to