ClassCastExceptions in EJB client: What am I missing?

2002-04-11 Thread David Moles

So I have a session bean, Home interface, Remote interface, Bean
class, the works. When I invoke it from a web application within
Orion, it works fine. When I try to invoke it from a standalone
client, I can look up the home interface but I can't narrow it.
I get:

  java.lang.ClassCastException
at 
com.sun.corba.se.internal.javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:296)
at javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:137)
  ...[etc.]

Now, it's pretty clear to me that I'm missing something on the
client side, because if after

  Object ref = jndiContext.lookup(ejb/Foo);

I add

  System.out.println(ref.getClass().getName());

on the web-app side, the working side, I get 

  FooHome_StatelessSessionHomeWrapper37

but on the standalone client side I only get

  __Proxy0

whatever that is.

Do I need to be generating the client-side stub classes somehow
and including them with the standalone client? How do I do that?
I find references in the Orion documentation to something called
an EJB client JAR but nothing on how to create one or what's
supposed to go in it.

I've seen two or three questions on this sort of ClassCastException
in the archive for this mailing list but haven't been able to find
answers to any of them. Has anyone got an answer?






RE: External EJB Client

2001-08-28 Thread Owen Fellows

You need the application-client.xml file on the client machine.
If you place it in a META-INF directory below the location where your
program is running it should be able to find it.
In the application-client.xml you need to define the resource you are trying
to look up.

If you get it working could you post the step you went through as i have
gone through the examples proved with orion and i still can not get a client
to use an ejb.

Hope this helps.

Owen Fellows

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Ed Brown
Sent: 28 August 2001 04:44
To: Orion-Interest
Subject: External EJB Client



I'm trying to call an EJB from outside of the Orion enviornment.

I get the following stack trace:

javax.naming.NamingException: META-INF/application-client.xml resource not
found
at
com.evermind.server.ApplicationClientInitialContextFactory.getInitialContext
(JAX)
at
javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:668)
at
javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:246)
at javax.naming.InitialContext.init(InitialContext.java:222)
at javax.naming.InitialContext.init(InitialContext.java:198)
at
com.ekb.email.ReceiptMailServer.getContext(ReceiptMailServer.java:62)
at com.ekb.email.ReceiptMailServer.init(ReceiptMailServer.java:85)
at com.ekb.email.ReceiptMailServer.main(ReceiptMailServer.java:224)

-

I'm using ant to build and deploy. I defined the following in the build.xml
file:
   target name=ejb-meta-inf depends=prepare
  copy file=${etc.dir}/ejb-jar.xml
tofile=${lib.dir}/ejb/META-INF/ejb-jar.xml /
  copy file=${etc.dir}/application-client.xml
tofile=${lib.dir}/ejb/META-INF/application-client.xml /
   /target


Does anyone know why I'm still getting the exception?

Thanks in advance.



Ed Brown


_
This mail sent via toadmail.com, web e-mail @ ToadNet - want to go fast?
http://www.toadmail.com





Re: External EJB Client

2001-08-28 Thread Fredrik Lindgren

It seems like you are using the ApplicationClientInitialContextFactory 
without actually packaging your code as an Application Client. The 
Application Client concept is part of the J2EE framework and an 
application Client is deployed much like other modules. One of the 
things needed is the deployment descriptor application-client.xml
It seems that you are copying this descriptor to the ejb deployment 
structure rather than to the client deployment structure.

If you intend to look up beans or other objects in the Orion JNDI tree 
from outside the server I think that you should use the 
RMIInitialContextFactory instead. I haven't used it myself so don't take 
my word for it. By the way, I'm not sure of what classes are needed in 
the client classpath to make this work. You might need to include the 
full orion.jar.

Regards

Fredrik Lindgren


Ed Brown wrote:

 I'm trying to call an EJB from outside of the Orion enviornment.
 
 I get the following stack trace:
 
 javax.naming.NamingException: META-INF/application-client.xml resource not found
 at 
com.evermind.server.ApplicationClientInitialContextFactory.getInitialContext(JAX)
 at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:668)
 at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:246)
 at javax.naming.InitialContext.init(InitialContext.java:222)
 at javax.naming.InitialContext.init(InitialContext.java:198)
 at com.ekb.email.ReceiptMailServer.getContext(ReceiptMailServer.java:62)
 at com.ekb.email.ReceiptMailServer.init(ReceiptMailServer.java:85)
 at com.ekb.email.ReceiptMailServer.main(ReceiptMailServer.java:224)
 
 -
 
 I'm using ant to build and deploy. I defined the following in the build.xml file:
target name=ejb-meta-inf depends=prepare
   copy file=${etc.dir}/ejb-jar.xml
 tofile=${lib.dir}/ejb/META-INF/ejb-jar.xml /
   copy file=${etc.dir}/application-client.xml
 tofile=${lib.dir}/ejb/META-INF/application-client.xml /
/target
 
 
 Does anyone know why I'm still getting the exception?
 
 Thanks in advance.
 
 
 
 Ed Brown
 
 
 _
 This mail sent via toadmail.com, web e-mail @ ToadNet - want to go fast?
 http://www.toadmail.com
 
 
 






RE: External EJB Client

2001-08-28 Thread Nate Cole

I had this same problem, the way I fixed it was to use a
different InitialContextFactory:

com.evermind.server.rmi.RMIInitialContextFactory

hint:  use a new Hashtable instance to provide to the
InitialContext() constructor, *not* system properties.  When I
passed in System.getProperties(), the setting wouldn't get
passed in.

Using this approach, I didn't need application-client.xml at
all, and I also needed to make sure that principals.xml was set
up for proper access.

Hope this helps,
Nate


--- Owen Fellows [EMAIL PROTECTED] wrote:
 You need the application-client.xml file on the client
 machine.
 If you place it in a META-INF directory below the location
 where your
 program is running it should be able to find it.
 In the application-client.xml you need to define the resource
 you are trying
 to look up.
 
 If you get it working could you post the step you went
 through as i have
 gone through the examples proved with orion and i still can
 not get a client
 to use an ejb.
 
 Hope this helps.
 
 Owen Fellows
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Ed
 Brown
 Sent: 28 August 2001 04:44
 To: Orion-Interest
 Subject: External EJB Client
 
 
 
 I'm trying to call an EJB from outside of the Orion
 enviornment.
 
 I get the following stack trace:
 
 javax.naming.NamingException: META-INF/application-client.xml
 resource not
 found
 at

com.evermind.server.ApplicationClientInitialContextFactory.getInitialContext
 (JAX)
 at

javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:668)
 at

javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:246)
 at
 javax.naming.InitialContext.init(InitialContext.java:222)
 at
 javax.naming.InitialContext.init(InitialContext.java:198)
 at

com.ekb.email.ReceiptMailServer.getContext(ReceiptMailServer.java:62)
 at

com.ekb.email.ReceiptMailServer.init(ReceiptMailServer.java:85)
 at

com.ekb.email.ReceiptMailServer.main(ReceiptMailServer.java:224)
 
 -
 
 I'm using ant to build and deploy. I defined the following in
 the build.xml
 file:
target name=ejb-meta-inf depends=prepare
   copy file=${etc.dir}/ejb-jar.xml
 tofile=${lib.dir}/ejb/META-INF/ejb-jar.xml /
   copy file=${etc.dir}/application-client.xml

 tofile=${lib.dir}/ejb/META-INF/application-client.xml /
/target
 
 
 Does anyone know why I'm still getting the exception?
 
 Thanks in advance.
 
 
 
 Ed Brown
 
 

_
 This mail sent via toadmail.com, web e-mail @ ToadNet - want
 to go fast?
 http://www.toadmail.com
 
 


__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/




RE: External EJB Client

2001-08-28 Thread SAURUGGER,PETER (A-PaloAlto,ex2)

Find a nice little example in Chapter 30 of WROX Professional Java Server
Programming J2EE Edition. There are both Web and Swing Clients to an EJB
backend. Good simple stuff to get started.

--peter

-Original Message-
From: Fredrik Lindgren [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 28, 2001 4:37 AM
To: Orion-Interest
Subject: Re: External EJB Client


It seems like you are using the ApplicationClientInitialContextFactory 
without actually packaging your code as an Application Client. The 
Application Client concept is part of the J2EE framework and an 
application Client is deployed much like other modules. One of the 
things needed is the deployment descriptor application-client.xml
It seems that you are copying this descriptor to the ejb deployment 
structure rather than to the client deployment structure.

If you intend to look up beans or other objects in the Orion JNDI tree 
from outside the server I think that you should use the 
RMIInitialContextFactory instead. I haven't used it myself so don't take 
my word for it. By the way, I'm not sure of what classes are needed in 
the client classpath to make this work. You might need to include the 
full orion.jar.

Regards

Fredrik Lindgren


Ed Brown wrote:

 I'm trying to call an EJB from outside of the Orion enviornment.
 
 I get the following stack trace:
 
 javax.naming.NamingException: META-INF/application-client.xml resource not
found
 at
com.evermind.server.ApplicationClientInitialContextFactory.getInitialContext
(JAX)
 at
javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:668)
 at
javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:246)
 at javax.naming.InitialContext.init(InitialContext.java:222)
 at javax.naming.InitialContext.init(InitialContext.java:198)
 at
com.ekb.email.ReceiptMailServer.getContext(ReceiptMailServer.java:62)
 at
com.ekb.email.ReceiptMailServer.init(ReceiptMailServer.java:85)
 at
com.ekb.email.ReceiptMailServer.main(ReceiptMailServer.java:224)
 
 -
 
 I'm using ant to build and deploy. I defined the following in the
build.xml file:
target name=ejb-meta-inf depends=prepare
   copy file=${etc.dir}/ejb-jar.xml
 tofile=${lib.dir}/ejb/META-INF/ejb-jar.xml /
   copy file=${etc.dir}/application-client.xml
 tofile=${lib.dir}/ejb/META-INF/application-client.xml /
/target
 
 
 Does anyone know why I'm still getting the exception?
 
 Thanks in advance.
 
 
 
 Ed Brown
 
 
 _
 This mail sent via toadmail.com, web e-mail @ ToadNet - want to go fast?
 http://www.toadmail.com
 
 
 






Re: External EJB Client

2001-08-28 Thread Ed Brown


I packaged the application-client.xml with the client jar, and it works.

I tried using the RMIInitialContextFactory at first, and it never seemed to 
work. 

I searched Google to find out why I couldn't connect when I was using 
RMIInitialContextFactory. I saw a reference to 
ApplicationClientInitialContextFactory and decided to try that one.

Maybe it's me, but the documentation on external clients doesn't seem to be 
strong. But I've had the same issue with other application servers as well. All 
want to assume you are connecting to the EJB from within the application server.


Quoting Fredrik Lindgren [EMAIL PROTECTED]:

 It seems like you are using the ApplicationClientInitialContextFactory 
 without actually packaging your code as an Application Client. The 
 Application Client concept is part of the J2EE framework and an 
 application Client is deployed much like other modules. One of the 
 things needed is the deployment descriptor application-client.xml
 It seems that you are copying this descriptor to the ejb deployment 
 structure rather than to the client deployment structure.
 
 If you intend to look up beans or other objects in the Orion JNDI tree 
 from outside the server I think that you should use the 
 RMIInitialContextFactory instead. I haven't used it myself so don't take
 
 my word for it. By the way, I'm not sure of what classes are needed in 
 the client classpath to make this work. You might need to include the 
 full orion.jar.
 
 Regards
 
 Fredrik Lindgren
 
 
 Ed Brown wrote:
 
  I'm trying to call an EJB from outside of the Orion enviornment.
  
  I get the following stack trace:
  
  javax.naming.NamingException: META-INF/application-client.xml resource
 not found
  at
 com.evermind.server.ApplicationClientInitialContextFactory.getInitialContext
(JAX)
  at
 javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:668)
  at
 javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:246)
  at javax.naming.InitialContext.init(InitialContext.java:222)
  at javax.naming.InitialContext.init(InitialContext.java:198)
  at
 com.ekb.email.ReceiptMailServer.getContext(ReceiptMailServer.java:62)
  at
 com.ekb.email.ReceiptMailServer.init(ReceiptMailServer.java:85)
  at
 com.ekb.email.ReceiptMailServer.main(ReceiptMailServer.java:224)
  
  -
  
  I'm using ant to build and deploy. I defined the following in the
 build.xml file:
 target name=ejb-meta-inf depends=prepare
copy file=${etc.dir}/ejb-jar.xml
  tofile=${lib.dir}/ejb/META-INF/ejb-jar.xml /
copy file=${etc.dir}/application-client.xml
  tofile=${lib.dir}/ejb/META-INF/application-client.xml /
 /target
  
  
  Does anyone know why I'm still getting the exception?
  
  Thanks in advance.
  
  
  
  Ed Brown
  
  
 
 _
  This mail sent via toadmail.com, web e-mail @ ToadNet - want to go
 fast?
  http://www.toadmail.com
  
  
  
 
 
 



Ed Brown


_
This mail sent via toadmail.com, web e-mail @ ToadNet - want to go fast?
http://www.toadmail.com




RE: External EJB Client

2001-08-28 Thread Alex Paransky

Make sure your default directory (the directory you are in) is JUST above
the META-INF where the application-client.xml resides.  So if you are in the
default directory, and do a ls or DIR you will see META-INF.  Then, start
your client from this directory regardless of where the client is located.

-AP_

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Ed Brown
Sent: Monday, August 27, 2001 8:44 PM
To: Orion-Interest
Subject: External EJB Client



I'm trying to call an EJB from outside of the Orion enviornment.

I get the following stack trace:

javax.naming.NamingException: META-INF/application-client.xml resource not
found
at
com.evermind.server.ApplicationClientInitialContextFactory.getInitialContext
(JAX)
at
javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:668)
at
javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:246)
at javax.naming.InitialContext.init(InitialContext.java:222)
at javax.naming.InitialContext.init(InitialContext.java:198)
at
com.ekb.email.ReceiptMailServer.getContext(ReceiptMailServer.java:62)
at com.ekb.email.ReceiptMailServer.init(ReceiptMailServer.java:85)
at com.ekb.email.ReceiptMailServer.main(ReceiptMailServer.java:224)

-

I'm using ant to build and deploy. I defined the following in the build.xml
file:
   target name=ejb-meta-inf depends=prepare
  copy file=${etc.dir}/ejb-jar.xml
tofile=${lib.dir}/ejb/META-INF/ejb-jar.xml /
  copy file=${etc.dir}/application-client.xml
tofile=${lib.dir}/ejb/META-INF/application-client.xml /
   /target


Does anyone know why I'm still getting the exception?

Thanks in advance.



Ed Brown


_
This mail sent via toadmail.com, web e-mail @ ToadNet - want to go fast?
http://www.toadmail.com





RE: Questions about running an EJB client

2001-02-04 Thread Juan Lorandi (Chile)

sorry for the delay, I'll try and explain it again:

let's say I (Juan) am a bean developer. Let's say you (Eric) are the
application assembler, and let's say Lauren Commons is the deployer.

I build a bean. I package the bean in a jar, then pass it on to you. It has
some(but not all) of the info needed in ejb-jar.xml . So far it's completly
portable across servers.

You pick up my bean, add a few of your own, and repackage the .jar . You
touch ejb-jar.xml to match your assembly needs(As an example, you want to
mark some methods as TX_MANDATORY). You put the .jar in an .ear with the
rest of the application modules, and application.xml. This is still PORTABLE
across servers (As all in the spec).

Now... deployment.
A: simple deployment

Lauren takes your ear and uses a deploy tool to install the app on a given
server. She defines ejb-ref bindings
runs required SQL scripts in the DB, maps the security to a given domain
etc. To store all of these data(which is server DEPENDANT), the app server
creates some files. The app is deployed.

B: pre-deployment

Deployment is in the corporate HQ of HAL, Inc. If you fuck up there, you're
toast.
Lauren works with a sturdy, fast server called orion. Regretably, it doesn't
include a deploy tool (no, deploytool doesn't work... yet), so she wants to
pre-deploy as much as possible about this app in order to have less work to
do in the final deployment. So she deploys her app in a test machine.
orion-xx.xml files are created. How does she use these files? She
REPACKAGES the App, storing the new files alongside its counter-part
(orion-application.xml and application.xml go in the same dir), except in
the case of ejb-jar.xml, which goes in an orion directory inside the ejb
jar. This app is still portable across servers, but it contains now some
information on how to deploy on orion-servers. The same process could be
done for J2EERI and WLS 6.0, making the actual deployment very accesible.

When Lauren deploys this modified .ear, orion will find the orion-xxx files
inside the ear, and instead of creating deployment files from scratch, using
defaults, it will use the in-ear files to create the actual,
$orion\application-deployment resident, orion-xx.xml files.


I sure do hope this helps...

JP


PS: Lauren... may I stick my tongue in your ear?



 -Original Message-
 From: Eric Hodges [mailto:[EMAIL PROTECTED]]
 Sent: Jueves, 01 de Febrero de 2001 19:20
 To: Orion-Interest
 Subject: Re: Questions about running an EJB client
 
 
 
 - Original Message -
 From: "Juan Lorandi (Chile)" [EMAIL PROTECTED]
 To: "Orion-Interest" [EMAIL PROTECTED]
 Sent: Thursday, February 01, 2001 3:33 PM
 Subject: RE: Questions about running an EJB client
 
 
  Read the j2ee spec again.
 
  orion-x.xml files are deployment info; deployment info is server
  dependant (in contrast to bean developer info  assembly 
 info); deployment
  info may override  complete
  for j2eeri, files are named j2eeri-.xml
 
  basically, there's one of these per every .xml in the specs:
 
  SPEC file Orion file packageplace
  application.xml orion-application.xml   \YOURAPP.ear\META-INF\
  ejb-jar.xml orion-ejb-jar.xml
  \YOURAPP.ear\YOUREJB.jar\orion
  web.xml orion-web.xml \YOURAPP.ear\YOURWAR.war\WEB-INF\
 
 I don't really understand what you just typed.
 
 So orion-application.xml gets its info from application.xml?  
 If so, do I
 just stick this namespace stuff in application.xml?
 
 
 
 




Re: Questions about running an EJB client

2001-02-02 Thread Eric Hodges

OK, I got the security problem resolved.  Thanks Juan!  Now I've got another
problem:

javax.naming.NamingException: Error reading application-client descriptor:
No location specified and no suitable instance of the type 'AgentRegistrar'
found for the ejb-ref AgentRegistrar

Where is it looking for the application-client descriptor location?






Re: Questions about running an EJB client

2001-02-02 Thread Eric Hodges


- Original Message -
From: "Juan Lorandi (Chile)" [EMAIL PROTECTED]
To: "Orion-Interest" [EMAIL PROTECTED]
Sent: Thursday, February 01, 2001 3:33 PM
Subject: RE: Questions about running an EJB client


 Read the j2ee spec again.

 orion-x.xml files are deployment info; deployment info is server
 dependant (in contrast to bean developer info  assembly info); deployment
 info may override  complete
 for j2eeri, files are named j2eeri-.xml

 basically, there's one of these per every .xml in the specs:

 SPEC file Orion file packageplace
 application.xml orion-application.xml   \YOURAPP.ear\META-INF\
 ejb-jar.xml orion-ejb-jar.xml
 \YOURAPP.ear\YOUREJB.jar\orion
 web.xml orion-web.xml \YOURAPP.ear\YOURWAR.war\WEB-INF\

I don't really understand what you just typed.

So orion-application.xml gets its info from application.xml?  If so, do I
just stick this namespace stuff in application.xml?







Re: Questions about running an EJB client

2001-02-02 Thread Eric Hodges

It still doesn't work.  I get the same error message.


My orion-application.xml file looks like this:

?xml version="1.0"?
!DOCTYPE orion-application PUBLIC "-//Evermind//DTD J2EE Application
runtime 1.2//EN" "http://www.orionserver.com/dtds/orion-application.dtd"
orion-application deployment-version="1.3.8"
 ejb-module remote="false" path="AgentRegistrar.jar" /
 persistence path="persistence" /
 principals path="principals.xml" /
 log
  file path="application.log" /
 /log
 namespace-access
  read-access
  namespace-resource root=""
   security-role-mapping name="lt;jndi-user-rolegt;"
group name="Administrator" /
   /security-role-mapping
  /namespace-resource
  /read-access
  write-access
  namespace-resource root=""
   security-role-mapping
group name="Administrator" /
   /security-role-mapping
  /namespace-resource
  /write-access
 /namespace-access

/orion-application

Administrator is defined in orion/config/principals.xml.  I added it to the
principals.xml for my EAR as well, with no luck.






Re: Questions about running an EJB client

2001-02-02 Thread Eric Hodges

Where did this file come from?  I didn't put it in my EJB jar or my EAR
file.  It doesn't look like yours (there's no name attribute on the
security-role-mapping tag), so once I edit it how will I stick it back in my
EAR?

That sounds odd, doesn't it?

Thanks for the help.


- Original Message -
From: "Juan Lorandi (Chile)" [EMAIL PROTECTED]
To: "Orion-Interest" [EMAIL PROTECTED]
Sent: Thursday, February 01, 2001 11:51 AM
Subject: RE: Questions about running an EJB client


 in orion-application.xml (you can find it in
 $orion\application-deployments\YOURAPP\)

 there should be a namespace tag; below is mine's form an app:
 namespace-access
 read-access
 namespace-resource root=""
 security-role-mapping
 name="lt;jndi-user-rolegt;"
 group name="admin" /
 /security-role-mapping
 /namespace-resource
 /read-access
 write-access
 /write-access
 /namespace-access

 then, whenever the current user belongs to group admin, you have read
access
 for ALL resources.
 I believe that something on the line of

 group name="admin" impliesAll="true" /

 would grant everybody read access;

 AFAIK Orion's JNDI imp. doesn't support writing, so the write-access part
is
 irrelevant


 HTH

 JP

  -Original Message-
  From: Eric Hodges [mailto:[EMAIL PROTECTED]]
  Sent: Mircoles, 31 de Enero de 2001 20:14
  To: Orion-Interest
  Subject: Questions about running an EJB client
 
 
 
  I'm trying to set up an EJB (my first time) on Orion.  I have
  the .EAR file
  running, I just need to get the client to test it.  When I
  try to run the
  client, it fails on the constructor for InitialContext().
  Here's the error:
 
  java.lang.SecurityException: Not allowed to look up
  java:comp/ResourceFinder, check the namespace-access tag setting in
  orion-application.xml for details
   at com.evermind.server.rmi.bb.f_(JAX)
   at com.evermind.server.rmi.RMIServer.f_(JAX)
   at com.evermind.server.rmi.RMIContext.lookup(JAX)
   at com.evermind.server.administration.LazyResourceFinder.f_(JAX)
   at
  com.evermind.server.administration.LazyResourceFinder.getEJBHome(JAX)
   at com.evermind.server.Application.ap7(JAX)
   at
  com.evermind.server.ApplicationClientInitialContextFactory.get
  InitialContext
  (JAX)
   at
  javax.naming.spi.NamingManager.getInitialContext(NamingManager
  .java:668)
   at
  javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:246)
   at javax.naming.InitialContext.init(InitialContext.java:222)
   at javax.naming.InitialContext.init(InitialContext.java:198)
   at
  com.mongoosetech.agent.AgentBase.registerWithServer(AgentBase.
  java:100)
   at com.mongoosetech.agent.AgentBase.register(AgentBase.java:71)
   at com.mongoosetech.agent.AgentBase.init(AgentBase.java:58)
   at
  com.mongoosetech.agent.jdbcagent.JDBCAgent.init(JDBCAgent.java:81)
   at
  com.mongoosetech.agent.jdbcagent.JDBCFramgent.init(JDBCFramg
  ent.java:21)
   at
  com.mongoosetech.agent.jdbcagent.JDBCFramgent.main(JDBCFramgen
  t.java:73)
 
  The problem is that I don't have a file called
  "orion-application.xml".
  From the docs, I get the impression this is an Orion specific
  version of
  application.xml.  I have that, but I don't see a way to make
  it let me look
  up java:comp/ResourceFinder.
 
  Any clues?
 
 
 






Questions about running an EJB client

2001-02-01 Thread Eric Hodges


I'm trying to set up an EJB (my first time) on Orion.  I have the .EAR file
running, I just need to get the client to test it.  When I try to run the
client, it fails on the constructor for InitialContext().  Here's the error:

java.lang.SecurityException: Not allowed to look up
java:comp/ResourceFinder, check the namespace-access tag setting in
orion-application.xml for details
 at com.evermind.server.rmi.bb.f_(JAX)
 at com.evermind.server.rmi.RMIServer.f_(JAX)
 at com.evermind.server.rmi.RMIContext.lookup(JAX)
 at com.evermind.server.administration.LazyResourceFinder.f_(JAX)
 at com.evermind.server.administration.LazyResourceFinder.getEJBHome(JAX)
 at com.evermind.server.Application.ap7(JAX)
 at
com.evermind.server.ApplicationClientInitialContextFactory.getInitialContext
(JAX)
 at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:668)
 at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:246)
 at javax.naming.InitialContext.init(InitialContext.java:222)
 at javax.naming.InitialContext.init(InitialContext.java:198)
 at com.mongoosetech.agent.AgentBase.registerWithServer(AgentBase.java:100)
 at com.mongoosetech.agent.AgentBase.register(AgentBase.java:71)
 at com.mongoosetech.agent.AgentBase.init(AgentBase.java:58)
 at com.mongoosetech.agent.jdbcagent.JDBCAgent.init(JDBCAgent.java:81)
 at
com.mongoosetech.agent.jdbcagent.JDBCFramgent.init(JDBCFramgent.java:21)
 at com.mongoosetech.agent.jdbcagent.JDBCFramgent.main(JDBCFramgent.java:73)

The problem is that I don't have a file called "orion-application.xml".
From the docs, I get the impression this is an Orion specific version of
application.xml.  I have that, but I don't see a way to make it let me look
up java:comp/ResourceFinder.

Any clues?






Questions about running an EJB client

2001-02-01 Thread Eric Hodges


I'm trying to set up an EJB (my first time) on Orion.  I have the .EAR file
running, I just need to get the client to test it.  When I try to run the
client, it fails on the constructor for InitialContext().  Here's the error:

java.lang.SecurityException: Not allowed to look up
java:comp/ResourceFinder, check the namespace-access tag setting in
orion-application.xml for details
 at com.evermind.server.rmi.bb.f_(JAX)
 at com.evermind.server.rmi.RMIServer.f_(JAX)
 at com.evermind.server.rmi.RMIContext.lookup(JAX)
 at com.evermind.server.administration.LazyResourceFinder.f_(JAX)
 at com.evermind.server.administration.LazyResourceFinder.getEJBHome(JAX)
 at com.evermind.server.Application.ap7(JAX)
 at
com.evermind.server.ApplicationClientInitialContextFactory.getInitialContext
(JAX)
 at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:668)
 at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:246)
 at javax.naming.InitialContext.init(InitialContext.java:222)
 at javax.naming.InitialContext.init(InitialContext.java:198)
 at com.mongoosetech.agent.AgentBase.registerWithServer(AgentBase.java:100)
 at com.mongoosetech.agent.AgentBase.register(AgentBase.java:71)
 at com.mongoosetech.agent.AgentBase.init(AgentBase.java:58)
 at com.mongoosetech.agent.jdbcagent.JDBCAgent.init(JDBCAgent.java:81)
 at
com.mongoosetech.agent.jdbcagent.JDBCFramgent.init(JDBCFramgent.java:21)
 at com.mongoosetech.agent.jdbcagent.JDBCFramgent.main(JDBCFramgent.java:73)

The problem is that I don't have a file called "orion-application.xml".
From the docs, I get the impression this is an Orion specific version of
application.xml.  I have that, but I don't see a way to make it let me look
up java:comp/ResourceFinder.

Any clues?






RE: Questions about running an EJB client

2001-02-01 Thread Juan Lorandi (Chile)

in orion-application.xml (you can find it in
$orion\application-deployments\YOURAPP\)

there should be a namespace tag; below is mine's form an app:
namespace-access
read-access
namespace-resource root=""
security-role-mapping
name="lt;jndi-user-rolegt;"
group name="admin" /
/security-role-mapping
/namespace-resource
/read-access
write-access
/write-access
/namespace-access

then, whenever the current user belongs to group admin, you have read access
for ALL resources.
I believe that something on the line of

group name="admin" impliesAll="true" /

would grant everybody read access;

AFAIK Orion's JNDI imp. doesn't support writing, so the write-access part is
irrelevant


HTH

JP

 -Original Message-
 From: Eric Hodges [mailto:[EMAIL PROTECTED]]
 Sent: Mircoles, 31 de Enero de 2001 20:14
 To: Orion-Interest
 Subject: Questions about running an EJB client
 
 
 
 I'm trying to set up an EJB (my first time) on Orion.  I have 
 the .EAR file
 running, I just need to get the client to test it.  When I 
 try to run the
 client, it fails on the constructor for InitialContext().  
 Here's the error:
 
 java.lang.SecurityException: Not allowed to look up
 java:comp/ResourceFinder, check the namespace-access tag setting in
 orion-application.xml for details
  at com.evermind.server.rmi.bb.f_(JAX)
  at com.evermind.server.rmi.RMIServer.f_(JAX)
  at com.evermind.server.rmi.RMIContext.lookup(JAX)
  at com.evermind.server.administration.LazyResourceFinder.f_(JAX)
  at 
 com.evermind.server.administration.LazyResourceFinder.getEJBHome(JAX)
  at com.evermind.server.Application.ap7(JAX)
  at
 com.evermind.server.ApplicationClientInitialContextFactory.get
 InitialContext
 (JAX)
  at 
 javax.naming.spi.NamingManager.getInitialContext(NamingManager
 .java:668)
  at 
 javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:246)
  at javax.naming.InitialContext.init(InitialContext.java:222)
  at javax.naming.InitialContext.init(InitialContext.java:198)
  at 
 com.mongoosetech.agent.AgentBase.registerWithServer(AgentBase.
 java:100)
  at com.mongoosetech.agent.AgentBase.register(AgentBase.java:71)
  at com.mongoosetech.agent.AgentBase.init(AgentBase.java:58)
  at 
 com.mongoosetech.agent.jdbcagent.JDBCAgent.init(JDBCAgent.java:81)
  at
 com.mongoosetech.agent.jdbcagent.JDBCFramgent.init(JDBCFramg
 ent.java:21)
  at 
 com.mongoosetech.agent.jdbcagent.JDBCFramgent.main(JDBCFramgen
 t.java:73)
 
 The problem is that I don't have a file called 
 "orion-application.xml".
 From the docs, I get the impression this is an Orion specific 
 version of
 application.xml.  I have that, but I don't see a way to make 
 it let me look
 up java:comp/ResourceFinder.
 
 Any clues?
 
 
 




Re: Questions about running an EJB client

2001-02-01 Thread Lauren Commons

never stick ANYTHING in your ear


--- Eric Hodges [EMAIL PROTECTED] wrote:
 Where did this file come from?  I didn't put it in
 my EJB jar or my EAR
 file.  It doesn't look like yours (there's no name
 attribute on the
 security-role-mapping tag), so once I edit it how
 will I stick it back in my
 EAR?

 That sounds odd, doesn't it?

 Thanks for the help.


 - Original Message -
 From: "Juan Lorandi (Chile)" [EMAIL PROTECTED]
 To: "Orion-Interest"
 [EMAIL PROTECTED]
 Sent: Thursday, February 01, 2001 11:51 AM
 Subject: RE: Questions about running an EJB client


  in orion-application.xml (you can find it in
  $orion\application-deployments\YOURAPP\)
 
  there should be a namespace tag; below is mine's
 form an app:
  namespace-access
  read-access
  namespace-resource root=""
  security-role-mapping
  name="lt;jndi-user-rolegt;"
  group name="admin" /
  /security-role-mapping
  /namespace-resource
  /read-access
  write-access
  /write-access
  /namespace-access
 
  then, whenever the current user belongs to group
 admin, you have read
 access
  for ALL resources.
  I believe that something on the line of
 
  group name="admin" impliesAll="true" /
 
  would grant everybody read access;
 
  AFAIK Orion's JNDI imp. doesn't support writing,
 so the write-access part
 is
  irrelevant
 
 
  HTH
 
  JP
 
   -Original Message-
   From: Eric Hodges [mailto:[EMAIL PROTECTED]]
   Sent: Miércoles, 31 de Enero de 2001 20:14
   To: Orion-Interest
   Subject: Questions about running an EJB client
  
  
  
   I'm trying to set up an EJB (my first time) on
 Orion.  I have
   the .EAR file
   running, I just need to get the client to test
 it.  When I
   try to run the
   client, it fails on the constructor for
 InitialContext().
   Here's the error:
  
   java.lang.SecurityException: Not allowed to look
 up
   java:comp/ResourceFinder, check the
 namespace-access tag setting in
   orion-application.xml for details
at com.evermind.server.rmi.bb.f_(JAX)
at com.evermind.server.rmi.RMIServer.f_(JAX)
at
 com.evermind.server.rmi.RMIContext.lookup(JAX)
at

com.evermind.server.administration.LazyResourceFinder.f_(JAX)
at
  

com.evermind.server.administration.LazyResourceFinder.getEJBHome(JAX)
at com.evermind.server.Application.ap7(JAX)
at
  

com.evermind.server.ApplicationClientInitialContextFactory.get
   InitialContext
   (JAX)
at
  

javax.naming.spi.NamingManager.getInitialContext(NamingManager
   .java:668)
at
  

javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:246)
at

javax.naming.InitialContext.init(InitialContext.java:222)
at

javax.naming.InitialContext.init(InitialContext.java:198)
at
  

com.mongoosetech.agent.AgentBase.registerWithServer(AgentBase.
   java:100)
at

com.mongoosetech.agent.AgentBase.register(AgentBase.java:71)
at

com.mongoosetech.agent.AgentBase.init(AgentBase.java:58)
at
  

com.mongoosetech.agent.jdbcagent.JDBCAgent.init(JDBCAgent.java:81)
at
  

com.mongoosetech.agent.jdbcagent.JDBCFramgent.init(JDBCFramg
   ent.java:21)
at
  

com.mongoosetech.agent.jdbcagent.JDBCFramgent.main(JDBCFramgen
   t.java:73)
  
   The problem is that I don't have a file called
   "orion-application.xml".
   From the docs, I get the impression this is an
 Orion specific
   version of
   application.xml.  I have that, but I don't see a
 way to make
   it let me look
   up java:comp/ResourceFinder.
  
   Any clues?
  
  
  
 




__
Get personalized email addresses from Yahoo! Mail - only $35
a year!  http://personal.mail.yahoo.com/




RE: Questions about running an EJB client

2001-02-01 Thread Juan Lorandi (Chile)

Read the j2ee spec again.

orion-x.xml files are deployment info; deployment info is server
dependant (in contrast to bean developer info  assembly info); deployment
info may override  complete 
for j2eeri, files are named j2eeri-.xml

basically, there's one of these per every .xml in the specs:

SPEC file   Orion file  packageplace
application.xml orion-application.xml   \YOURAPP.ear\META-INF\
ejb-jar.xml orion-ejb-jar.xml
\YOURAPP.ear\YOUREJB.jar\orion
web.xml orion-web.xml   \YOURAPP.ear\YOURWAR.war\WEB-INF\

At deployment time, orion creates a counter-part of your SPEC files in
$orion\application-deployments\
for this it may use templates bundled in your package (if found in
packageplace)

HTH

JP

 -Original Message-
 From: Eric Hodges [mailto:[EMAIL PROTECTED]]
 Sent: Jueves, 01 de Febrero de 2001 15:50
 To: Orion-Interest
 Subject: Re: Questions about running an EJB client
 
 
 Where did this file come from?  I didn't put it in my EJB jar 
 or my EAR
 file.  It doesn't look like yours (there's no name attribute on the
 security-role-mapping tag), so once I edit it how will I 
 stick it back in my
 EAR?
 
 That sounds odd, doesn't it?
 
 Thanks for the help.
 
 
 - Original Message -
 From: "Juan Lorandi (Chile)" [EMAIL PROTECTED]
 To: "Orion-Interest" [EMAIL PROTECTED]
 Sent: Thursday, February 01, 2001 11:51 AM
 Subject: RE: Questions about running an EJB client
 
 
  in orion-application.xml (you can find it in
  $orion\application-deployments\YOURAPP\)
 
  there should be a namespace tag; below is mine's form an app:
  namespace-access
  read-access
  namespace-resource root=""
  security-role-mapping
  name="lt;jndi-user-rolegt;"
  group name="admin" /
  /security-role-mapping
  /namespace-resource
  /read-access
  write-access
  /write-access
  /namespace-access
 
  then, whenever the current user belongs to group admin, you 
 have read
 access
  for ALL resources.
  I believe that something on the line of
 
  group name="admin" impliesAll="true" /
 
  would grant everybody read access;
 
  AFAIK Orion's JNDI imp. doesn't support writing, so the 
 write-access part
 is
  irrelevant
 
 
  HTH
 
  JP
 
   -Original Message-
   From: Eric Hodges [mailto:[EMAIL PROTECTED]]
   Sent: Mircoles, 31 de Enero de 2001 20:14
   To: Orion-Interest
   Subject: Questions about running an EJB client
  
  
  
   I'm trying to set up an EJB (my first time) on Orion.  I have
   the .EAR file
   running, I just need to get the client to test it.  When I
   try to run the
   client, it fails on the constructor for InitialContext().
   Here's the error:
  
   java.lang.SecurityException: Not allowed to look up
   java:comp/ResourceFinder, check the namespace-access tag 
 setting in
   orion-application.xml for details
at com.evermind.server.rmi.bb.f_(JAX)
at com.evermind.server.rmi.RMIServer.f_(JAX)
at com.evermind.server.rmi.RMIContext.lookup(JAX)
at com.evermind.server.administration.LazyResourceFinder.f_(JAX)
at
   
 com.evermind.server.administration.LazyResourceFinder.getEJBHome(JAX)
at com.evermind.server.Application.ap7(JAX)
at
   com.evermind.server.ApplicationClientInitialContextFactory.get
   InitialContext
   (JAX)
at
   javax.naming.spi.NamingManager.getInitialContext(NamingManager
   .java:668)
at
   
 javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:246)
at javax.naming.InitialContext.init(InitialContext.java:222)
at javax.naming.InitialContext.init(InitialContext.java:198)
at
   com.mongoosetech.agent.AgentBase.registerWithServer(AgentBase.
   java:100)
at com.mongoosetech.agent.AgentBase.register(AgentBase.java:71)
at com.mongoosetech.agent.AgentBase.init(AgentBase.java:58)
at
   
 com.mongoosetech.agent.jdbcagent.JDBCAgent.init(JDBCAgent.java:81)
at
   com.mongoosetech.agent.jdbcagent.JDBCFramgent.init(JDBCFramg
   ent.java:21)
at
   com.mongoosetech.agent.jdbcagent.JDBCFramgent.main(JDBCFramgen
   t.java:73)
  
   The problem is that I don't have a file called
   "orion-application.xml".
   From the docs, I get the impression this is an Orion specific
   version of
   application.xml.  I have that, but I don't see a way to make
   it let me look
   up java:comp/ResourceFinder.
  
   Any clues?
  
  
  
 
 
 




Error in the first time a EJB client access a remote EJB, but not in the second time

2000-11-28 Thread Guilherme Ceschiatti

Hi!

I'm using a client that access a remote EJB. In the first time I try to acces
it, I get the following error, but in the next try I get no errors. Any idea
to solve it?

javax.naming.NamingException: IO Error: Disconnected
at com.evermind.server.rmi.RMIContext.unbind(JAX)
at com.evermind.server.hl.unbind(JAX)
at com.evermind.server.rmi.RMIContext.lookup(JAX)
at javax.naming.InitialContext.lookup(InitialContext.java:351)
at guiga.wap.util.UtilEJB.getAgenteFixoHome(UtilEJB.java:88)
at
guiga.wap.controle.web.ProcessadorDePedidos.processaPedido(ProcessadorDePedid
os.java:205) at
__jspPage37_Principal_jsp._jspService(__jspPage37_Principal_jsp.java:91)
at com.orionserver.http.OrionHttpJspPage.service(JAX)
at com.evermind.server.http.d3.so(JAX)
at com.evermind.server.http.d3.sm(JAX)
at com.evermind.server.http.ef.su(JAX)
at com.evermind.server.http.ef.dn(JAX)
at com.evermind.util.f.run(JAX)

-- 

[]s
Guilherme Ceschiatti
http://listando.net
[EMAIL PROTECTED]




Error in the first time a EJB client access a remote EJB, but not in the second time

2000-11-26 Thread Guilherme Ceschiatti

Hi!

I'm using a client that access a remote EJB. In the first time I try to acces 
it, I get the following error, but in the next try I get no errors. Any idea 
to solve it?

javax.naming.NamingException: IO Error: Disconnected
at com.evermind.server.rmi.RMIContext.unbind(JAX)
at com.evermind.server.hl.unbind(JAX)
at com.evermind.server.rmi.RMIContext.lookup(JAX)
at javax.naming.InitialContext.lookup(InitialContext.java:351)
at guiga.wap.util.UtilEJB.getAgenteFixoHome(UtilEJB.java:88)
at 
guiga.wap.controle.web.ProcessadorDePedidos.processaPedido(ProcessadorDePedidos.java:205)
at 
__jspPage37_Principal_jsp._jspService(__jspPage37_Principal_jsp.java:91)
at com.orionserver.http.OrionHttpJspPage.service(JAX)
at com.evermind.server.http.d3.so(JAX)
at com.evermind.server.http.d3.sm(JAX)
at com.evermind.server.http.ef.su(JAX)
at com.evermind.server.http.ef.dn(JAX)
at com.evermind.util.f.run(JAX)
-- 

[]s
Guilherme Ceschiatti
http://listando.net
[EMAIL PROTECTED]




How-To(newbie): J2EE RI vs. Orion (EJB Client JAR)

2000-09-07 Thread Richard Landon

I have a EJB client that works under the J2EE RI. I have deployed the EAR
containing the EJB JAR onto Orion. How do I acquire the client jar file for
the 
client (or do I)? I have also packaged utility classes used by the EJB and
the clients
into this JAR. Under the J2EE RI, I tell the deployer here to place the
client
jar when I processes the EAR. No such under Orion? If so, where and how do I
get
this JAR file? Now I see an EJB JAR file in the applications directory for
Orion.
I want to move that file onto an arbitrary client via a command, so  the
client
can execute? How? Please explain how Orion is different than the J2EE RI it
this
regards. (My client is actually a JUNIT test case of the beans in the JAR)

Thnaks, Rick Landon




EJB Client Classes

2000-08-16 Thread Dan Winfield

When creating an EJB client connecting to Orion from another JVM on a
different machine what should the java.naming.factory.initial be? And if it
is com.evermind.server.ApplicationClientInitialContextFactory, then how
should these classes be packaged? Should we use a different
java.naming.factory.initial such as the Sun RMI one?

Dan Winfield






EJB Client

2000-08-14 Thread Rick Bos

I am trying to access my EJB from a Unix command line client.
I am on Solaris using JDK 1.2.2.


When I create my initial context, I get this exception :

java.lang.ClassFormatError: __Proxy1 (Repeative method name/signature)

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



This is my code:

  try { InitialContext context = new InitialContext(); }
  catch ( Exception e ) { System.out.println(e) ; }

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-nameApplicantClient/display-name

ejb-ref
ejb-ref-nameResponse/ejb-ref-name
homeResponseHome/home
ejb-ref-typeEntity/ejb-ref-type
/ejb-ref
/application-client

This is my jndi.properties:

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

This is the full exception :

java.lang.ClassFormatError: __Proxy1 (Repeative method name/signature)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass0(Compiled Code)
at java.lang.ClassLoader.defineClass(Compiled Code)
at java.lang.ClassLoader.defineClass(Compiled Code)
at com.evermind.net.if.findClass(Compiled Code)
at java.lang.ClassLoader.loadClass(Compiled Code)
at java.lang.ClassLoader.loadClass(Compiled Code)
at java.lang.ClassLoader.loadClassInternal(Compiled Code)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName0(Compiled Code)
at java.lang.Class.forName(Compiled Code)
at com.evermind.reflect.Proxy.aks(JAX)
at com.evermind.reflect.Proxy.akr(JAX)
at com.evermind.reflect.Proxy.akp(JAX)
at com.evermind.server.rmi.a8.f3(Compiled Code)
at com.evermind.server.rmi.a5.resolveObject(JAX)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:383)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:232)
at com.evermind.server.rmi.a5.fi(JAX)
at com.evermind.server.rmi.a8.gr(JAX)
at com.evermind.server.rmi.a8.run(Compiled Code)
at java.lang.Thread.run(Thread.java:479)
Exception in thread "main" java.lang.InstantiationError: No location
specified for ejb-ref Response
at java.lang.Throwable.fillInStackTrace(Native Method)
at java.lang.Throwable.fillInStackTrace(Compiled Code)
at java.lang.Throwable.init(Compiled Code)
at java.lang.Error.init(Error.java:50)
at java.lang.LinkageError.init(LinkageError.java:43)
at
java.lang.IncompatibleClassChangeError.init(IncompatibleClassChangeError.j
ava:43)
at java.lang.InstantiationError.init(InstantiationError.java:47)
at com.evermind.server.Application.akc(Compiled Code)
at
com.evermind.server.ApplicationClientInitialContextFactory.getInitialContext
(Compiled Code)
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 ApplicantClient.init(ApplicantClient.java:16)
at ApplicantClient.main(ApplicantClient.java:24)




EJB client on Solaris.

2000-08-08 Thread Rick Bos

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 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




ejb client problem

2000-07-31 Thread Adam Cassar

would anyone have any idea what this exception means?

err: java.lang.ClassCastException: __Proxy2

The error occurs when I call the home create method.


-- 

Adam Cassar
Senior Web Developer
___
NetRegistry http://www.netregistry.au.com
Tel: +61 2 9699 6099 | Fax: +61 2 9699 6088
PO Box 270 Broadway NSW 2007 Australia





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@ --