Re: EJB client on Solaris.

2000-08-08 Thread Karl Avedal

Hello Rick,

You are using code from the J2EE RI it seems (com.sun.corba.ee.internal.*
classes). Get rid of j2ee.jar or any other J2EE RI jars. Orion is not the one
complaing, but the J2EE RI ORB.

Regards,
Karl Avedal

Rick Bos wrote:

 When I try to run a simple console client application accessing an
 EJB,
 I get this error :

 __Proxy1
 ERROR! Shared library ioser12 could not be found.
 Exception in thread "main" java.lang.UnsatisfiedLinkError:
 specialLoadClass
 at
 com.sun.corba.ee.internal.util.JDKClassLoader.loadClass(JDKClassLoader.java:
 59)
 at
 com.sun.corba.ee.internal.util.JDKBridge.loadClassM(JDKBridge.java:269)
 at
 com.sun.corba.ee.internal.util.JDKBridge.loadClass(JDKBridge.java:109)
 at javax.rmi.CORBA.Util.loadClass(Util.java:216)
 at
 javax.rmi.CORBA.Util.createDelegateIfSpecified(Util.java:307)
 at Unloaded Method
 at
 javax.rmi.PortableRemoteObject.createDelegateIfSpecified(PortableRemoteObjec
 t.java:183)
 at Unloaded Method
 at ApplicantClient.init(ApplicantClient.java:22)
 at ApplicantClient.main(ApplicantClient.java:52)

 This is my jndi.properties file:


 java.naming.factory.initial=com.evermind.server.ApplicationClientInitialCont
 extFactory
 java.naming.provider.url=ormi://apsu.ocas.on.ca/bos
 java.naming.security.principal=admin
 java.naming.security.credentials=123

 I tried putting libioser12.so in my PATH, but this did not work.
 I have orion.jar and j2ee.jar in my CLASSPATH.

 I am using JDK1.2.2.

 Thanks.





RE: EJB client on Solaris.

2000-08-08 Thread John Moore


Try to add it to your LD_LIBRARY_PATH instead of your path.There is a
file in /etc/ that you can add the reference to that will add it for all
accounts, think it's ld.so.conf.

John Moore



-Original Message-
From: Rick Bos [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 08, 2000 5:58 AM
To: Orion-Interest
Subject: EJB client on Solaris.


When I try to run a simple console client application accessing an
EJB, 
I get this error :

__Proxy1
ERROR! Shared library ioser12 could not be found.
Exception in thread "main" java.lang.UnsatisfiedLinkError:
specialLoadClass
at
com.sun.corba.ee.internal.util.JDKClassLoader.loadClass(JDKClassLoader.java:
59)
at
com.sun.corba.ee.internal.util.JDKBridge.loadClassM(JDKBridge.java:269)
at
com.sun.corba.ee.internal.util.JDKBridge.loadClass(JDKBridge.java:109)
at javax.rmi.CORBA.Util.loadClass(Util.java:216)
at
javax.rmi.CORBA.Util.createDelegateIfSpecified(Util.java:307)
at Unloaded Method
at
javax.rmi.PortableRemoteObject.createDelegateIfSpecified(PortableRemoteObjec
t.java:183)
at Unloaded Method
at ApplicantClient.init(ApplicantClient.java:22)
at ApplicantClient.main(ApplicantClient.java:52)

This is my jndi.properties file:


java.naming.factory.initial=com.evermind.server.ApplicationClientInitialCont
extFactory
java.naming.provider.url=ormi://apsu.ocas.on.ca/bos
java.naming.security.principal=admin
java.naming.security.credentials=123

I tried putting libioser12.so in my PATH, but this did not work.
I have orion.jar and j2ee.jar in my CLASSPATH.

I am using JDK1.2.2.




Thanks. 




RE: EJB client on Solaris.

2000-08-08 Thread Rick Bos



OK, removing the j2ee.jar fixed the ioser12 error.

Now, I am getting this error:

Exception in thread "main" java.lang.InstantiationError: No location
specified for ejb-ref Applicant

This is my application-client.xml :



?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-nameApplicant/display-name
ejb-ref
ejb-ref-nameApplicant/ejb-ref-name
ejb-ref-typeEntity/ejb-ref-type
homeApplicantHome/home
remoteApplicant/remote
/ejb-ref
/application-client




Re: EJB CLIENT

2000-07-30 Thread Damian Guy

I am having a similar problem. My jndi.properties file seems correct,
but when I try:
java -classpath blah.. mfg.client.test

a javax.naming.NameNotFoundExcpetion is thrown.

Any ideas ?

TIA,

Damian

wim veninga wrote:
 
 Hi David,
 
 I suppose you have given your application (on the server side)
 a name in application.xml.
 For instance :
 
 application
 display-nameYour_Name/display-name
 module ... etc
 
 /application
 
 So then in your jndi.properties file it has to say
 java.naming.factory.initial=com.evermind.server.ApplicationClientInitialCont
 extFactory
 java.naming.provider.url=ormi://localhost/Your_Name   {---  The name of
 your application}
 java.naming.security.principal=admin
 
 Hope this helps,
 
 Wim Veninga
 [EMAIL PROTECTED]
 
 -Original Message-
 From: David Sierra Fernandez [EMAIL PROTECTED]
 To: Orion-Interest [EMAIL PROTECTED]
 Date: Friday, July 28, 2000 9:22 PM
 Subject: EJB CLIENT
 
 Hi all, I'm very worried 'cause i'm not able to make a EJB client to work.
 I've deployed my app without problems but I can't execute the client.
 
 I've created the client-application.xml:
 
 ?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-nameCliente AGENDA ORION/display-name
 ejb-ref
 ejb-ref-nameMyAgendaS/ejb-ref-name
 ejb-ref-typeSession/ejb-ref-type
 homeAgendaSHome/home
 remoteAgendaS/remote
 /ejb-ref
 /application-client
 
 Then I tried to include a jndi.properties file in my app as i read in FAQ:
 
 java.naming.factory.initial=com.evermind.server.
 ApplicationClientInitialContextFactory
 java.naming.provider.url=ormi://localhost
 java.naming.security.principal=admin
 
 but it still does not work. When I tried to execute the client this the
 error I get:
 
 C:\orion\APPLIC~1\Agenda\Agenda-ejbjava -classpath
 .;C:\orion\orion.jar;C:\orio
 n\ejb.jar;C:\orion\jndi.jar; AgendaSClient
 Lanzada una excepcion.
 javax.naming.NamingException: Error reading application-client
 descriptor: No lo
 cation specified and no suitable instance of the type 'AgendaS' found for
 the ej
 b-ref MyAgendaS
 at
 com.evermind.server.ApplicationClientInitialContextFactory.getInitial
 Context(JAX, Compiled Code)
 at
 javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:6
 72)
 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 AgendaSClient.main(AgendaSClient.java:16)
 
 I WILL APPRECIATE ALL OF YOUR HELP OR CLUES !
 
 -
 David Sierra Fern ndez
 Ingeniero Tecnico de Telecomunicaci¢n
 AULA RETECAL (CEDETEL)   Universidad de Valladolid
 Campus Miguel Delibes   E-Mail: [EMAIL PROTECTED]
 47011 Valladolid (SPAIN)
 --
 
 -- Sierr@ --




Re: EJB CLIENT

2000-07-29 Thread wim veninga

Hi David,

I suppose you have given your application (on the server side)
a name in application.xml.
For instance :

application
display-nameYour_Name/display-name
module ... etc

/application

So then in your jndi.properties file it has to say
java.naming.factory.initial=com.evermind.server.ApplicationClientInitialCont
extFactory
java.naming.provider.url=ormi://localhost/Your_Name   {---  The name of
your application}
java.naming.security.principal=admin

Hope this helps,

Wim Veninga
[EMAIL PROTECTED]



-Original Message-
From: David Sierra Fernandez [EMAIL PROTECTED]
To: Orion-Interest [EMAIL PROTECTED]
Date: Friday, July 28, 2000 9:22 PM
Subject: EJB CLIENT




Hi all, I'm very worried 'cause i'm not able to make a EJB client to work.
I've deployed my app without problems but I can't execute the client.

I've created the client-application.xml:

?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-nameCliente AGENDA ORION/display-name
ejb-ref
ejb-ref-nameMyAgendaS/ejb-ref-name
ejb-ref-typeSession/ejb-ref-type
homeAgendaSHome/home
remoteAgendaS/remote
/ejb-ref
/application-client


Then I tried to include a jndi.properties file in my app as i read in FAQ:

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

but it still does not work. When I tried to execute the client this the
error I get:

C:\orion\APPLIC~1\Agenda\Agenda-ejbjava -classpath
.;C:\orion\orion.jar;C:\orio
n\ejb.jar;C:\orion\jndi.jar; AgendaSClient
Lanzada una excepcion.
javax.naming.NamingException: Error reading application-client
descriptor: No lo
cation specified and no suitable instance of the type 'AgendaS' found for
the ej
b-ref MyAgendaS
at
com.evermind.server.ApplicationClientInitialContextFactory.getInitial
Context(JAX, Compiled Code)
at
javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:6
72)
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 AgendaSClient.main(AgendaSClient.java:16)



I WILL APPRECIATE ALL OF YOUR HELP OR CLUES !




-
David Sierra Fern ndez
Ingeniero Tecnico de Telecomunicaci¢n
AULA RETECAL (CEDETEL)   Universidad de Valladolid
Campus Miguel Delibes   E-Mail: [EMAIL PROTECTED]
47011 Valladolid (SPAIN)
--

-- Sierr@ --