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





HTTP Clustering works only for default-web-app!!

2001-09-10 Thread Ashok Banerjee

Has anyone gotten Orion HTTP clustering to work for any application
besides the default-web-app? I saw mchristoff's chain on this topic but
the only solution that resulted from the discussion was to put in
config/application.xml a module as

 which is again putting in the default application my own application's
web component as a web-module.

Is there any way to provide cluster an app that is not the
default-web-application?


Thanks
Ashok





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  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: Oracle JDBC problems

2001-07-18 Thread Ashok Banerjee

Your error is in the trace
NETCMN: invalid driver designator.
Please check the JDBC URL.
Cheers,
Ashok

Mong Kon Mo wrote:

> I've been trying to setup Orion to communicate with our Oracle database,
> but have had little success. We are using Oracle 8.0.5.1 and have
> installed the Oracle 8.1.7 JDBC drivers (the 8.0.5.2 drivers were giving
> us problems).  Now we get the following error:
>
> com.evermind[Orion/1.5.2 (build 10460)].server.rmi.OrionRemoteException:
> Transaction was rolled back: javax.ejb.EJBException: Unable to get
> zipcode: java.sql.SQLException: SystemException: Failed to add the
> resource due to error in the resource
> at
> HIT_StatelessSessionBeanWrapper0.getZipcode(HIT_StatelessSessionBeanWrapper0.java:97)
>
> at /result.jsp._jspService(/result.jsp.java:72) (JSP page line
> 52)
> at com.orionserver[Orion/1.5.2 (build
> 10460)].http.OrionHttpJspPage.service(Unknown Source)
> at com.evermind[Orion/1.5.2 (build 10460)]._ah._rad(Unknown
> Source)
> at com.evermind[Orion/1.5.2 (build
> 10460)].server.http.JSPServlet.service(Unknown Source)
> at com.evermind[Orion/1.5.2 (build 10460)]._cxb._abe(Unknown
> Source)
> at com.evermind[Orion/1.5.2 (build 10460)]._cxb._uec(Unknown
> Source)
> at com.evermind[Orion/1.5.2 (build 10460)]._io._twc(Unknown
> Source)
> at com.evermind[Orion/1.5.2 (build 10460)]._io._gc(Unknown
> Source)
> at com.evermind[Orion/1.5.2 (build 10460)]._if.run(Unknown
> Source)
> Nested exception is:
> com.evermind[Orion/1.5.2 (build
> 10460)].transaction.MarshallingXAException: SQL Error: ORA-06401:
> NETCMN: invalid driver designator
> at com.evermind[Orion/1.5.2 (build 10460)]._vo.start(Unknown
> Source)
> at com.evermind[Orion/1.5.2 (build 10460)]._fvb.(Unknown
> Source)
> at com.evermind[Orion/1.5.2 (build
> 10460)].server.ApplicationServerTransaction.enlistResource(Unknown
> Source)
>at com.evermind[Orion/1.5.2 (build
> 10460)].server.ApplicationServerTransaction.enlistResource(Unknown
> Source)
> at com.evermind[Orion/1.5.2 (build 10460)]._wp._bl(Unknown
> Source)
> at com.evermind[Orion/1.5.2 (build
> 10460)]._lo.prepareStatement(Unknown Source)
> at Hit.beans.hit.HITBean.getZipcode(HITBean.java:102)
> at
> HIT_StatelessSessionBeanWrapper0.getZipcode(HIT_StatelessSessionBeanWrapper0.java:66)
>
> at /result.jsp._jspService(/result.jsp.java:72) (JSP page line
> 52)
> at com.orionserver[Orion/1.5.2 (build
> 10460)].http.OrionHttpJspPage.service(Unknown Source)
> at com.evermind[Orion/1.5.2 (build 10460)]._ah._rad(Unknown
> Source)
> at com.evermind[Orion/1.5.2 (build
> 10460)].server.http.JSPServlet.service(Unknown Source)
> at com.evermind[Orion/1.5.2 (build 10460)]._cxb._abe(Unknown
> Source)
> at com.evermind[Orion/1.5.2 (build 10460)]._cxb._uec(Unknown
> Source)
> at com.evermind[Orion/1.5.2 (build 10460)]._io._twc(Unknown
> Source)
> at com.evermind[Orion/1.5.2 (build 10460)]._io._gc(Unknown
> Source)
> at com.evermind[Orion/1.5.2 (build 10460)]._if.run(Unknown
> Source)
> Nested exception is:
> java.sql.SQLException: ORA-06401: NETCMN: invalid driver designator
> at
> oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:168)
> at
> oracle.jdbc.oci8.OCIDBAccess.check_error(OCIDBAccess.java:1597)
> at oracle.jdbc.oci8.OCIDBAccess.logon(OCIDBAccess.java:354)
> at
> oracle.jdbc.driver.OracleConnection.(OracleConnection.java:249)
> at
> oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:365)
>
> at
> oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:260)
> at com.evermind[Orion/1.5.2 (build
> 10460)].sql.DriverManagerDataSource.getConnection(Unknown Source)
> at com.evermind[Orion/1.5.2 (build
> 10460)].sql.DriverManagerConnectionPoolDataSource.getPooledConnection(Unknown
> Source)
> at com.evermind[Orion/1.5.2 (build
> 10460)].sql.OrionPooledDataSource._bgb(Unknown Source)
> at com.evermind[Orion/1.5.2 (build 10460)]._jb._bgb(Unknown
> Source)
> at com.evermind[Orion/1.5.2 (build
> 10460)].sql.OrionPooledDataSource.getConnection(Unknown Source)
> at com.evermind[Orion/1.5.2 (build
> 10460)].sql.DriverManagerXADataSource._bwc(Unknown Source)
> at com.evermind[Orion/1.5.2 (build 10460)]._vo.start(Unknown
> Source)
> at com.evermind[Orion/1.5.2 (build 10460)]._fvb.(Unknown
> Source)
> at com.evermind[Orion/1.5.2 (build
> 10460)].server.ApplicationServerTransaction.enlistResource(Unknown
> Source)
> at com.evermind[Orion/1.5.2 (build
> 10460)].server.ApplicationServerTransaction.enlistResource(Unknown
> Source)
> at com.evermind[Orion/1.5.2 (build 10460)]._wp._bl(Unknown
> Source)
> at com.evermind[Orion/1.5.2 (build
> 10460)]._lo.prepareStatement(Unknown Source)
> 

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





Re: Error in deploying EJBs on OC4J

2001-06-13 Thread Ashok Banerjee

Look inside the jar most likely you dont have ejb-jar.xml under META-INF
directory.
Cheers,
Ash

Venkata_Nallam wrote:

> Hello,
> While I am deploying EJB in OC4J, following error has occured.
> Entrmine is my application.mysessionbean.jar is my sessionbean.
>
>  Web war files are working fine.
>
> Any suggestion in this regard will be appreciated.
>
> Error in application Entrmine: Error loading package at
> file:/E:/OC4J/j2ee/home/applications/Entrmin
> e/mysessionbean.jar, Unable to find/read assembly info for
> E:\OC4J\j2ee\home\applications\Entrmine/m
> ysessionbean.jar (META-INF/ejb-jar.xml)
>
> Regards
> kumar





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





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





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





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





JNDI entries in JSP for datasource

2001-04-16 Thread Ashok Banerjee

Hello All,
I am trying to look up a datasource from a JSP page. The datasource is 
defined in datasources.xml as jdbc/ds1. I can look up the datasource as 
jdbc/ds1 but I want to be able to look it up as java:comp/env/jdbc/ds1.

How can this be achieved?
Thanks
Ash
_
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





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





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\product>java -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



http://www.orionserver.com/dtds/data-sources.dtd">


 










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.