RE: Help me please domain was nul message is killing me here...

2001-04-03 Thread Alex Paransky

Ray, the problem is quite simple.  I have two Orion servers.  One server is
running an EJB application model, the other server is running JSP client
application.  From the JSP server, I try to access the EJB server, by
creating an InitialContext with the same parameters that I would if I was
trying to connect to the EJB application using a standalone client
(appplication-client.xml and ApplicationClientInitialContextFactory).  At
this point, I get a NullPointerException on the Client (JSP Server) side
telling me that the "domain was null".

The exact same code, works correctly when running as a standalone
application, however, when put into the JSP Server, produces this exception.
Some people suggested using ApplictionInitialContextFactory, however, since
ApplicationInitialContextFactory reads application.xml, I have no place to
put my ejb-ref tags to reference the objects in the EJB application.

Other people suggested playing around with rmi.xml.  This, however, hardly
seems standard.  I am trying to write code that is J2EE compliant without
having to use any of the Orion specific features.

So I am at a standstill.  It's hard to believe that no one ran into this
problem.  In many cases it does not make sense to deploy the client and
server on the same physical machine.  Our JSP clients are running on the
public internet while our EJB models are running on the private internet not
accessible from the outside.  Also, since we have many clients, we
anticipate having a "farm" of EJB servers running the model, and a "farm" of
JSP servers accessing this model. I am amazed that no one has stumbled onto
this problem.

If you have two Orion servers running, put the following code on one of the
servers:

Properties p = new Properties();
p.setProperty(Context.PROVIDER_URL,
"ormi://target-host/application-name");
p.setProperty(Context.INITIAL_CONTEXT_FACTORY,
"com.evermind.server.ApplicationClientInitialContextFactory");
p.setProperty(Context.SECURITY_PRINCIPAL, "user");
p.setProperty(Context.SECURITY_CREDENTIALS, "password");
InitialContext ctx = new InitialContext(p);

You will need to replace target-host, application-name, user and
password with values for your system.  You will need to put the
application-client.xml in to the proper directory.  For a web application,
this file should go into WEB-INF/classes/META-INF/application-client.xml.


-AP_

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Ray Harrison
Sent: Monday, April 02, 2001 8:16 PM
To: Orion-Interest
Subject: Re: Help me please "domain was nul" message is killing me
here...


Alex -
Is there any chance you could zip up a small amount of code that recreates
your problem? You had
better include examples of your orion config files too. Or at least if you
could provide lots of
information code snippets and the like - that would be great! Give us what
you can and we may be
able to help...

Cheers
Ray



--- Alex Paransky [EMAIL PROTECTED] wrote:
 Does anyone know what the "domain was null" message means?  How do I get
rid
 of it.  Where do I specify a domain?  HEELP, someone please.  I have
 been posting this question for the last 3 weeks, and still I have no
 answers.

 Please, please please, help.

 -AP_

 PS: Is this what it takes to get a question answered?  Is there a
different
 forum for paying customers?  If I pay $1500, will I get my questions
 answered faster?




__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail.
http://personal.mail.yahoo.com/?.refer=text





Re: Help me please domain was nul message is killing me here...

2001-04-03 Thread colin harris

i am also trying to get two orion servers talking to each other, on server A
i have declared an ejb-module to be remote (orion-application.xml), this
module runs on server B. Server B is declared in the rmi.xml file as another
rmi server for server A, I lookup the ejb from the remote module, and then
get a Class Cast exception when trying to narrow the object, to the home
interface.

any advice on how to get this working would be much appreciated,

colin..
- Original Message -
From: "Alex Paransky" [EMAIL PROTECTED]
To: "Orion-Interest" [EMAIL PROTECTED]
Sent: Tuesday, April 03, 2001 7:28 AM
Subject: RE: Help me please "domain was nul" message is killing me here...


 Ray, the problem is quite simple.  I have two Orion servers.  One server
is
 running an EJB application model, the other server is running JSP client
 application.  From the JSP server, I try to access the EJB server, by
 creating an InitialContext with the same parameters that I would if I was
 trying to connect to the EJB application using a standalone client
 (appplication-client.xml and ApplicationClientInitialContextFactory).  At
 this point, I get a NullPointerException on the Client (JSP Server) side
 telling me that the "domain was null".

 The exact same code, works correctly when running as a standalone
 application, however, when put into the JSP Server, produces this
exception.
 Some people suggested using ApplictionInitialContextFactory, however,
since
 ApplicationInitialContextFactory reads application.xml, I have no place to
 put my ejb-ref tags to reference the objects in the EJB application.

 Other people suggested playing around with rmi.xml.  This, however, hardly
 seems standard.  I am trying to write code that is J2EE compliant without
 having to use any of the Orion specific features.

 So I am at a standstill.  It's hard to believe that no one ran into this
 problem.  In many cases it does not make sense to deploy the client and
 server on the same physical machine.  Our JSP clients are running on the
 public internet while our EJB models are running on the private internet
not
 accessible from the outside.  Also, since we have many clients, we
 anticipate having a "farm" of EJB servers running the model, and a "farm"
of
 JSP servers accessing this model. I am amazed that no one has stumbled
onto
 this problem.

 If you have two Orion servers running, put the following code on one of
the
 servers:

 Properties p = new Properties();
 p.setProperty(Context.PROVIDER_URL,
 "ormi://target-host/application-name");
 p.setProperty(Context.INITIAL_CONTEXT_FACTORY,
 "com.evermind.server.ApplicationClientInitialContextFactory");
 p.setProperty(Context.SECURITY_PRINCIPAL, "user");
 p.setProperty(Context.SECURITY_CREDENTIALS, "password");
 InitialContext ctx = new InitialContext(p);

 You will need to replace target-host, application-name, user and
 password with values for your system.  You will need to put the
 application-client.xml in to the proper directory.  For a web application,
 this file should go into WEB-INF/classes/META-INF/application-client.xml.


 -AP_

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Ray Harrison
 Sent: Monday, April 02, 2001 8:16 PM
 To: Orion-Interest
 Subject: Re: Help me please "domain was nul" message is killing me
 here...


 Alex -
 Is there any chance you could zip up a small amount of code that recreates
 your problem? You had
 better include examples of your orion config files too. Or at least if you
 could provide lots of
 information code snippets and the like - that would be great! Give us what
 you can and we may be
 able to help...

 Cheers
 Ray



 --- Alex Paransky [EMAIL PROTECTED] wrote:
  Does anyone know what the "domain was null" message means?  How do I get
 rid
  of it.  Where do I specify a domain?  HEELP, someone please.  I have
  been posting this question for the last 3 weeks, and still I have no
  answers.
 
  Please, please please, help.
 
  -AP_
 
  PS: Is this what it takes to get a question answered?  Is there a
 different
  forum for paying customers?  If I pay $1500, will I get my questions
  answered faster?
 
 


 __
 Do You Yahoo!?
 Get email at your own domain with Yahoo! Mail.
 http://personal.mail.yahoo.com/?.refer=text








Re: Help me please domain was nul message is killing me here...

2001-04-03 Thread Ray Harrison

I've gone back through your emails and don't have an overall picture of your 
application. Perhaps
I am more dense than the average bear, but go ahead and give an overall picture of your
application - like:
This app is distributed over N orion server[s] and the configuration is done in the 
following
manner... and I am trying to accomplish the followingand then I get this "domain 
was null"
error, etc.

That way myself and perhaps others can help out and it won't take 4 weeks to do so. 

Just a question out of curiosity:
Have you looked at other app servers and do they support what you want to do in the 
way you want
to do it - like JBoss,WebLogic,EAServer?

Cheers!

Ray Harrison


--- Ray Harrison [EMAIL PROTECTED] wrote:
 Alex -
 Is there any chance you could zip up a small amount of code that recreates your 
problem? You had
 better include examples of your orion config files too. Or at least if you could 
provide lots of
 information code snippets and the like - that would be great! Give us what you can 
and we may be
 able to help...
 
 Cheers
 Ray 
 
 
 
 --- Alex Paransky [EMAIL PROTECTED] wrote:
  Does anyone know what the "domain was null" message means?  How do I get rid
  of it.  Where do I specify a domain?  HEELP, someone please.  I have
  been posting this question for the last 3 weeks, and still I have no
  answers.
  
  Please, please please, help.
  
  -AP_
  
  PS: Is this what it takes to get a question answered?  Is there a different
  forum for paying customers?  If I pay $1500, will I get my questions
  answered faster?
  
  
 
 
 __
 Do You Yahoo!?
 Get email at your own domain with Yahoo! Mail. 
 http://personal.mail.yahoo.com/?.refer=text
 


__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/?.refer=text




Re: Help me please domain was nul message is killing me here...

2001-04-03 Thread Peter Pontbriand

  PS: Is this what it takes to get a question answered?  Is there a
different
  forum for paying customers?  If I pay $1500, will I get my questions
  answered faster?
 
 One would assume so. Paying customers are prioritised in the support queue
 (from personal experience).

 Hani

Interesting. As another paying customer, this hasn't been my experience. I'm
ignored just as completely as non-paying customers. This ignoring includes
formal messages to Orion's support email address as well.

We're still in development, but purchased a license in the hope that
something resembling support would be forthcoming. It was a misguided
expenditure in that regard.

P. Pontbriand
Canlink Interactive Technologies Inc.






RE: Help me please domain was nul message is killing me here...

2001-04-03 Thread Bruno Baloi

I have had the same problem Alexto further muddy the matter I still
haven't figured it out. I have opted to sipmply circumvent this option
and do my own method of remote invocation (EJB in one server invoking an
EJB in a another server). What I do remember reading , is that you need
to set the "parent attribute" in the application definition in server
.xml. If you look at the docs it specifies that this kind of scenario
can be accomplished by doing just this..
i.e. the invoker is a child of the invoked.

The problem I had, with this , is that I could never get it to work; I
could never figure out the syntax.- parent ="ParentApp". - This only
works if the other application is on the same physical server. The
moment you try to append a server name to this application name i.e.
parent = "remote-host/ParentApp" or even parent =
"ormi://remote-host/ParentApp" this goes to hell !!! If this is supposed
to work, that implies that the syntax  tried out was wrong

Anyway this might not be of any help, but you may want to try
investigating the parent deal further (in server.xml when you define the
application). It might lead to some undiscovered truth 

If you do find out, could you please let me know as well !!  I developed
a kludge to bypass this scenariowhich I would like to rep-lace with
a functional soloution

Good Luck !

Bruno Baloi
[EMAIL PROTECTED]
 



-Original Message-
From:   Alex Paransky [SMTP:[EMAIL PROTECTED]]
Sent:   Tuesday, April 03, 2001 2:28 AM
To: Orion-Interest
    Subject:    RE: Help me please "domain was nul" message is
killing me here...

Ray, the problem is quite simple.  I have two Orion servers.
One server is
running an EJB application model, the other server is running
JSP client
application.  From the JSP server, I try to access the EJB
server, by
creating an InitialContext with the same parameters that I would
if I was
trying to connect to the EJB application using a standalone
client
(appplication-client.xml and
ApplicationClientInitialContextFactory).  At
this point, I get a NullPointerException on the Client (JSP
Server) side
telling me that the "domain was null".

The exact same code, works correctly when running as a
standalone
application, however, when put into the JSP Server, produces
this exception.
Some people suggested using ApplictionInitialContextFactory,
however, since
ApplicationInitialContextFactory reads application.xml, I have
no place to
put my ejb-ref tags to reference the objects in the EJB
application.

Other people suggested playing around with rmi.xml.  This,
however, hardly
seems standard.  I am trying to write code that is J2EE
compliant without
having to use any of the Orion specific features.

So I am at a standstill.  It's hard to believe that no one ran
into this
problem.  In many cases it does not make sense to deploy the
client and
server on the same physical machine.  Our JSP clients are
running on the
public internet while our EJB models are running on the private
internet not
accessible from the outside.  Also, since we have many clients,
we
anticipate having a "farm" of EJB servers running the model, and
a "farm" of
JSP servers accessing this model. I am amazed that no one has
stumbled onto
this problem.

If you have two Orion servers running, put the following code on
one of the
servers:

Properties p = new Properties();
p.setProperty(Context.PROVIDER_URL,
"ormi://target-host/application-name");
p.setProperty(Context.INITIAL_CONTEXT_FACTORY,
"com.evermind.server.ApplicationClientInitialContextFactory");
p.setProperty(Context.SECURITY_PRINCIPAL, "user");
p.setProperty(Context.SECURITY_CREDENTIALS, "password");
InitialContext ctx = new InitialContext(p);

You will need to replace target-host, application-name,
user and
password with values for your system.  You will need to put
the
application-client.xml in to the proper directory.  For a web
application,
this file should go into
WEB-INF/classes/META-INF/application-client.xml.


-AP_

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Ray
Harrison
        Sent: Monday, April 02, 2001 8:16 PM
To: Orion-Interest
Subject: Re: Help me please "domain was nul" message is killing
me
here...


Alex -
Is there any chance you could zip up a small amount of code that
recreates
your problem? You had
better include examples of your orion config files too. Or at
least if you
c

Re: Help me please domain was nul message is killing me here...

2001-04-02 Thread Ashok Banerjee

orion/config/default-web-site.xml should do it. If it doesnt work please send a
bit more info. on the problem like when you get the problem if you have a small
sample app just zip it up.

Cheers,
Ash

Alex Paransky wrote:

 Does anyone know what the "domain was null" message means?  How do I get rid
 of it.  Where do I specify a domain?  HEELP, someone please.  I have
 been posting this question for the last 3 weeks, and still I have no
 answers.

 Please, please please, help.

 -AP_

 PS: Is this what it takes to get a question answered?  Is there a different
 forum for paying customers?  If I pay $1500, will I get my questions
 answered faster?





Re: Help me please domain was nul message is killing me here...

2001-04-02 Thread Ray Harrison

Alex -
Is there any chance you could zip up a small amount of code that recreates your 
problem? You had
better include examples of your orion config files too. Or at least if you could 
provide lots of
information code snippets and the like - that would be great! Give us what you can and 
we may be
able to help...

Cheers
Ray 



--- Alex Paransky [EMAIL PROTECTED] wrote:
 Does anyone know what the "domain was null" message means?  How do I get rid
 of it.  Where do I specify a domain?  HEELP, someone please.  I have
 been posting this question for the last 3 weeks, and still I have no
 answers.
 
 Please, please please, help.
 
 -AP_
 
 PS: Is this what it takes to get a question answered?  Is there a different
 forum for paying customers?  If I pay $1500, will I get my questions
 answered faster?
 
 


__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/?.refer=text