Hi, I am having the same problem with 1.1.31. I have this same message in
the demo cart ejb's.

I have looked at the code and think that this is an issue with this version.

Thanks,
Steve Naples
----- Original Message -----
From: "Jeremy Cowgar" <[EMAIL PROTECTED]>
To: "Orion-Interest" <[EMAIL PROTECTED]>
Sent: Monday, July 24, 2000 2:55 PM
Subject: ejbmaker.jar -- and -- tutorial


> I downloaded the latest stable release, and my ejbmaker program does not
> look at all like, nor have the functionality of the one described in the
> tutorial. The one in the tutorial, is that in an unstable code release? If
> so, how do I get the newest version that I hear everyone on the list
> speaking of.
>
> Thanks!
>
> Jeremy - [EMAIL PROTECTED]
> Christian Brotherhood Newsletter
>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of KirkYarina
> Sent: Monday, July 24, 2000 10:43 AM
> To: Orion-Interest
> Subject: 1.1.31 problem?
>
>
> 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.ApplicationClientInitialCont
> extFactory
> 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