Hello everyone!

A strange problem arises when trying to execute a client application (see
below). Exactly the same error happened when executing the news-client
sample, after having rebuilt and rejared it using an appropriate
jndi.properties file at the jar-root level.
The file dummy.jar contains the home and remote interfaces. The manifest
classpath points to orion.jar.
Also interesting is that a web application using the same EJB works just
fine, using exactly the same ejb-ref notation in its descriptor.

It may be a newbie or trivial error from my side, but maybe also a bug in
Orion (I posted another message yesterday and it was solved 6 hours later
when I made an autoupdate........ ;-)

Any help in this matter would be greatly appreciated.

Environment:
JDK 1.3
Windows 98
Orion 1.1.37

/August


======== Execution/exception

<Start orion server, the dummy ejb deploys fine, looks ok in web app too>
D:\orion>java -jar dummy.jar
<Login works ok, jndi.properties file should be ok, right?>
<After 2 seconds ....>
Exception in thread "main" javax.naming.NamingException: Error reading
applicati
on-client descriptor: No location specified and no suitable instance of the
type
 'com.dewire.application.dummy.DummyBean' found for the ejb-ref ejb/Dummy
        at
com.evermind.server.ApplicationClientInitialContextFactory.getInitial
Context(JAX)
        at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)
        at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
        at javax.naming.InitialContext.init(Unknown Source)
        at javax.naming.InitialContext.<init>(Unknown Source)
        at com.dewire.application.dummy.WebBean.getfoobar(WebBean.java:25)
        at com.dewire.application.dummy.WebBean.main(WebBean.java:42)

======== application-client.xml (in non-working client app)

<?xml version="1.0"?>
<!DOCTYPE application-client PUBLIC "-//Sun Microsystems, Inc.//DTD J2EE
Application Client 1.2//EN"
"http://java.sun.com/j2ee/dtds/application-client_1_2.dtd">
<application-client>
      <display-name>Unnamed</display-name>
      <ejb-ref>
            <ejb-ref-name>ejb/Dummy</ejb-ref-name>
            <ejb-ref-type>Session</ejb-ref-type>
            <home>com.dewire.application.dummy.DummyHome</home>
            <remote>com.dewire.application.dummy.Dummy</remote>
      </ejb-ref>
</application-client>

======== web.xml (in working web app)

<?xml version="1.0"?>
<!DOCTYPE web-application SYSTEM "web-application.dtd">

<web-app>
................
<ejb-ref>
  <ejb-ref-name>ejb/Dummy</ejb-ref-name>
  <ejb-ref-type>Session</ejb-ref-type>
  <home>com.dewire.application.dummy.DummyHome</home>
  <remote>com.dewire.application.dummy.Dummy</remote>
</ejb-ref>

</web-app>

======== jndi.properties (from client jar file)

java.naming.factory.initial=com.evermind.server.ApplicationClientInitialCont
extFactory
java.naming.provider.url=ormi://10.1.1.11
java.naming.security.principal=admin

======== MANIFEST.MF

Manifest-Version: 1.0
Name: "Dummy Demo"
Implementation-Version: "1.0.0"
Specification-Version: "1.0.0"
Implementation-Title: "Dummy"
Main-Class: com.dewire.application.dummy.WebBean
Created-By: 1.2 (Sun Microsystems Inc.)
Class-Path: orion.jar
Implementation-Vendor: "Dewire"
Specification-Vendor: "Dewire"



Reply via email to