Re: ClassCastException while doing REMOTE ejb lookup

2002-01-07 Thread Ashok Banerjee

I am working on it and will fix it in the next day or 2.
Cheers,
Ashok

Theo van Niekerk wrote:

 Hi

 I'm doing a REMOTE (not local, not same JVM, not same Orion) lookup from a servlet
 running in Orion152 application to an ejb deployed in Orion152 application on a 
remote
 and different physical machine.

 I can establish the correct Initial Context and locate the required object.
 But this object is loaded in the servlet using a ClassLoader that is
 different from the default ClassLoader of the servlet.

 The result is a ClassCastException when doing a narrow using this object and
 the class as loaded by the default ClassLoader. The narrow works fine when
 the object's ClassLoader is used to locate the class to be used for the narrow.
 However, it seems that this ClassLoader is then retrieving classes from the remote
 machine. Obviously I need the classes also on the web machine accesible by
 the default ClassLoader so that classes that depend on these remote
 classes can load and JSP's can compile.

 Any ideas will be greatly appreciated. Please reply at least to my email.

 --
 Regards
 Theo van Niekerk

 Generation 5
 tel: +27 21 883 88 58
 mob: +27 82 44 81 222

   
Part 1.2Type: application/pgp-signature





Re: Looking up an ejb from another ejb

2001-09-26 Thread Ashok Banerjee

Only way is to use RMIInitialContextFactory not
ApplicationClientInitialContextFactory - this wont use java:comp environment
but you can use absolute names.
Cheers,
Ashok

Trujillo, Kris wrote:

 Does anyone know if it is possible for an EJB in one ear file to lookup an
 EJB in another ear file WITHOUT having to set the parent attribute on the
 application in the server.xml?  What if EJBs in both ear files needed to
 perform bi-directional calls on each other? Who would be the parent in
 that case??





RMI clustering

2001-08-14 Thread Ashok Banerjee

I am trying RMI clustering and have done as Lachezar advised but I am
not sure where the client is supposed to connect. There is no frontend
like loadbalancer for http clustering. I can tell that state information
sharing or entity-cache flush command are being multicast. But where
does the application client connect?

Any help/sample would be great.






Re: Help with exception, could be classpath related

2001-08-09 Thread Ashok Banerjee

Are the 2 beans in the different applications (ear files)? If so you may want to 
specify one application as the parent of the other.
Cheers,
Ashok

[EMAIL PROTECTED] wrote:

 Hello All,
 hope you can help me with this as I'm unsure exactly what it means,
 I use a session bean to invoke methods on an entity bean, the error seems to be in 
the Entity Bean but it has been tested from a client and it works, I think it may be 
due to the classpath, as I've had to put the classes into the server.xml as  Library 
path=...file before I could see them from ejbs.
 any ideas are very welcome,
 Thanks,
 Albert.
 Here is the exception I get from the terminal I start Orion server from:

 java.lang.ClassCastException: __Proxy0
 at SimpleEntityBean.Submit(SimpleEntityBean.java:230)
 at 
SimpleEntity_EntityBeanWrapper0.Submit(SimpleEntity_EntityBeanWrapper0.java:268)
 at java.lang.reflect.Method.invoke(Native Method)
 at com.evermind._dh._gc(Unknown Source)
 at com.evermind._if.run(Unknown Source)

 Email just got more fun @ another.com
 http://another.com





Re: Datasource Question - is there a way to setup a JDBC log file?

2001-07-18 Thread Ashok Banerjee

Start OC4J with -Djdbc.debug=true this turns on Orion JDBC debug
information.
Cheers,
Ashok

Bill Clinton wrote:

 Hello,
I am curious on how to set up logging for JDBC.  I thought there
 would be a parameter in the data-source definition that would allow
 logging.  Does this exist?

 Bill

 btw: I am using oracle





Re: Help With JNDI properties

2001-07-05 Thread Ashok Banerjee

You need an application-client.xml file as in 
$ORION_HOME/demo/ejb/product/META-INF/application-client.xml.
Cheers,
Ash

[EMAIL PROTECTED] wrote:

 Hi All.
 Is there anything wrong with this set of properties I'm trying to use with Orion?
 (the username and password is correct!

 Properties p = new Properties();
 // ... Specify the JNDI properties specific to the vendor.
 
p.setProperty(java.naming.factory.initial,com.evermind.server.ApplicationClientInitialContextFactory);
 p.setProperty(java.naming.provider.url,ormi://localhost);
 p.setProperty(java.naming.security.principal,username);
 p.setProperty(java.naming.security.credentials,password);

 This compiles fine but when run gives the error:

 javax.naming.NamingException: META-INF/application-client.xml resource not found 
(see J2EE spec, application-client chapter for requirements and format of the file)
 at 
com.evermind.server.ApplicationClientInitialContextFactory.getInitialContext(Unknown 
Source)
 at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:665)
 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 Client_1.getInitialContext(Client_1.java:35)
 at Client_1.main(Client_1.java:13)

 I can't find this application-client.xml file anywhere in the primer example or the 
other examples.
 Thanks,
 Albert.

 -

 Be passionate about your email
 Just click here: http://another.com





ANYONE got CLUSTERING working on 148

2001-05-15 Thread Ashok Banerjee

Did anyone get clustering working on Orion 148? The http-clustering doc at 
orionserver worked for 145 but not for 148.

On 148 the individual nodes detect each other (I see from doing jms.debug) 
however the loadbalancer detects none of the nodes. Though each node 
mentions its own frontend.

If anyone has got it working please let me know how.

Thanks
Ashok
_
Get your FREE download of MSN Explorer at http://explorer.msn.com





Cluster in 148:not in multicast

2001-05-14 Thread Ashok Banerjee

Has anything in clustering changed in Orion148 from Orion145. The 
instructions at  http://www.orionserver.com/docs/http-clustering.html dont 
work for 148 (works for 145)

It seems that the multicasting using MulticastTopicConnection is having 
issues. The server comes back with not in multicast. OrionServer is trying 
to join at localhost:9128 (JMS port) when it needs a multicast port. How do 
I make sure it goes to the right port?

I have explicitly coded in the host,port in cluster-config.
Now the exceptions are gone but it still doesnt work.

Is there something else to configure?
Cheers,
Ash
_
Get your FREE download of MSN Explorer at http://explorer.msn.com





Resending:Orion148 Clustering fails

2001-05-14 Thread Ashok Banerjee

Is anyone able to get Orion148 clustering to work. With Orion145 it was a 
piece of cake. However for 148 the loadbalancer doesnt seem to detect the 
new servers at all. If I turn on jms.debug I can see that the individual 
nodes do get JMS messages but the loadbalancer gets no message at all.

If anyone has gotten it to work please let me know how?

Cheers,
Ashok
_
Get your FREE download of MSN Explorer at http://explorer.msn.com





Clustering and Load Balancing

2001-05-01 Thread Ashok Banerjee

My understanding:
Orion loadbalances if selectionType is set to random. If there are multiple 
islands capable of serving up the same site - then a random selection is 
done to pick the island. Within the island a server is selected at random.

Question:
1) When would you distribute the same application across islands? Load 
Balancing happens even across islands.

2) Does Orion multicast the state? If so - it is a security concern anyone 
can sniff up the packets.

3) How can a loadbalancer allow some and disallow other orionserver 
instances in the same subnet from joining its islands?

4) By default Orion loadbalancing statically binds a session to a server - 
if 1 client session makes lots of requests is there a way to distribute 
these requests across servers?

Cheers,
As
_
Get your FREE download of MSN Explorer at http://explorer.msn.com





Error starting HTTP server

2001-04-10 Thread Ashok Banerjee

On NT Orion is running great but on Solaris JDK1.2.2 when I do java -jar 
orion.jar I get an error message flagging a problem with HTTP 
initialization.
How do I debug/trouble shoot this.

Are there any debug flags?
Cheers,
Ash



% java -jar orion.jar
Error starting HTTP-Server: Permission denied
Orion/1.4.5 initialized
_
Get your FREE download of MSN Explorer at http://explorer.msn.com





Orion CMP

2001-04-05 Thread Ashok Banerjee

Where does Orion store its CMP data? I know it uses HSQL and I believe
HSQL - where are the HSQL datafiles physically located?

If I change in data-source.xml does that mean my CMP data is also now
going to go to a different database? I modified data-sources.xml
as below and yet I keep getting

D:\Orion\orion\demo\ejb\productjava -classpath
.;..\..\..\orion.jar;..\..\..\ej
b.jar;..\..\..\jndi.jar ProductClient
Communication error: Error reading application-client descriptor: Error
looking
up EJBHome: Lookup error: java.net.ConnectException: Connection refused:
no furt
her information; nested exception is:
java.net.ConnectException: Connection refused: no further
information

Any further information on configuring orion to use Oracle DB as
persistent store would help.
Cheers,
Ash


?xml version="1.0"?
!DOCTYPE data-sources PUBLIC "Orion data-sources"
"http://www.orionserver.com/dtds/data-sources.dtd"

data-sources
 !--
  An example/default DataSource that uses an ordinary
  JDBC-driver (in this case hsql) to create the connections.
  This tag creates all the needed kinds
  of data-sources, transactional, pooled and EJB-aware sources.
  The source generally used in application code is the "EJB"
  one - it provides transactional safety and connection pooling.
 --
!-- data-source
  class="com.evermind.sql.DriverManagerDataSource"
  name="Hypersonic"
  location="jdbc/HypersonicCoreDS"
  xa-location="jdbc/xa/HypersonicXADS"
  ejb-location="jdbc/HypersonicDS"
  connection-driver="org.hsql.jdbcDriver"
  username="sa"
  password=""
  url="jdbc:HypersonicSQL:./database/defaultdb"
  inactivity-timeout="30"
 /--
data-source
  class="com.evermind.sql.DriverManagerDataSource"
  name="Oracle"
  location="jdbc/OracleCoreDS"
  xa-location="jdbc/xa/OracleXADS"
  ejb-location="jdbc/OracleDS"
  connection-driver="oracle.jdbc.driver.OracleDriver"
  username="orion"
  password="orion"
  url="jdbc:oracle:thin:@mysun-box:1521:mydb"
  inactivity-timeout="30"
 /

/data-sources






CMP default datasource

2001-04-05 Thread Ashok Banerjee

I could change the cmt datasource (from HyperSonic to mySql) by changing in 
the application-deployments directory (thanks to pointer from UnicMan).

But does anyone know what one can do in ones own ejbs to have the CMP bean 
persisted to mySql by default.

Cheers,
Ash

_
Get your FREE download of MSN Explorer at http://explorer.msn.com





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: ejb-jar file location

2001-03-31 Thread Ashok Banerjee

Put the ear file path or directory path in orion/config/server.xml.
This will enable orion to find your server class.

Now for the client to find it use application.xml and orion-application.xml.
These files are under META-INF just below client root directory.

If orion server is in a remote box modify jndi.properties accordingly.

Cheers,
Ash

Frank LaRosa wrote:

 Hi,

 I'm just getting started with Orion, but I have experience with Weblogic
 server.

 I created a simple EJB jar file which I'd like to deploy on Orion and access
 via an external client. I'm stuck trying to figure out where I need to place
 my jar file in the server's directory structure and which, if any, of the
 configuration files I need to update to let Orion know it's there.

 I tried a variety of locations, but all I am able to get is a JNDI not-found
 error when I try to look up the home interface. I am not even sure where I
 specify the JNDI name? In Weblogic this is done through a weblogic-specific
 deployment file.

 Thanks.