I need a litle help ... could you ?

2002-05-27 Thread Bozdoghina Nicolae



   I have a problem with cacheing when I'm trying to release a connection to a 
database. I used Resin like server and MySql like a database server. At the 
first connection to database the response is good (at the first query), but 
then, when I have trying to make a new query to database (using a JavaBean 
class) the response is the same like the previous, it is not the real response.
   Is this a problem with cacheing in the Resin server ? ... and for this what 
must I do ? 
   If you could help me, I will be very happy ...

Thanks , 
 Nick.  
(from Romania)


 


__
Do you want a free e-mail for life ? Get it at http://www.email.ro/





RE: How do you tell orion not to autocommit?

2002-05-26 Thread Alex Paransky

Wrap a transaction around your operation.  This way, the transaction will
begin when your operation starts, and commits only when your operation is
complete.  Unless, you are accessing your entity beans from a client layer.
This is one of the reasons why you need to use Stateless session beans to
wrap your model.

You should never have to touch the autoCommit property of a connection.

-AP_
http://www.myprofiles.com/member/profile/apara_personal

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of prasanth sb
Sent: Saturday, May 25, 2002 10:44 PM
To: Orion-Interest
Subject: Re: How do you tell orion not to autocommit?


Hi Keith,
 If you are using Bean managed persistence, then get the connection
object using jndi lookup, then use connection.setAutocommit(false). I am not
aware how to do this in container managed persistence.Can some great guys
explain this?Wish you a good day.
thanks,
Prasanth
God gives you more than you expect




From: Keith Kwiatek [EMAIL PROTECTED]
Reply-To: Orion-Interest [EMAIL PROTECTED]
To: Orion-Interest [EMAIL PROTECTED]
Subject: How do you tell orion not to autocommit?
Date: Wed, 17 Apr 2002 07:16:48 -0400

Hello,

I am running orion with a datasource and  some jsp's with some jdbc beans.
When I insert/update/delete it seems to be set to autocommit. How do I tell
orion not to autocommit?

Thanks,
Keith





_
Send and receive Hotmail on your mobile device: http://mobile.msn.com







CMR in EJB 2.0

2002-05-25 Thread Billy Rutledge

Hi All,

I have written a simple test web app that has two EntityEJB's (Groups and
Person, the relationship is 1-m) to learn more about using CMR with EJB 2.0
on Orion.  All code compiles and archives fine using my usual Ant build
scripts...but when I deploy my .ear file to Orion, it responds with the
following error:

Unknown ejb-relationship-role subtag: relationship-role-source

Anyone have any ideas on how to solve this?  Seen this error before?  Any
comments apprecitated.

Thamks,
-Billy

Relevant section of ejb-jar.xml:
--
relationships
  ejb-relation
 ejb-relation-nameGroups-Person/ejb-relation-name

 !-- unidirectional --
 ejb-relationship-role

ejb-relationship-role-namegroup-has-person/ejb-relationship-role-name
multiplicityOne/multiplicity
relationship-role-source
   ejb-nameGroups/ejb-name
/relationship-role-source
cmr-field
   cmr-field-namemembers/cmr-field-name
   cmr-field-typejava.util.Collection/cmr-field-type
/cmr-field
 /ejb-relationship-role
 ejb-relationship-role

ejb-relationship-role-nameperson-in-group/ejb-relationship-role-name
multiplicityMany/multiplicity
relationship-role-source
   ejb-namePerson/ejb-name
/relationship-role-source
 /ejb-relationship-role

  /ejb-relation
   /relationships






Re: How do you tell orion not to autocommit?

2002-05-25 Thread prasanth sb

Hi Keith,
 If you are using Bean managed persistence, then get the connection 
object using jndi lookup, then use connection.setAutocommit(false). I am not 
aware how to do this in container managed persistence.Can some great guys 
explain this?Wish you a good day.
thanks,
Prasanth
God gives you more than you expect




From: Keith Kwiatek [EMAIL PROTECTED]
Reply-To: Orion-Interest [EMAIL PROTECTED]
To: Orion-Interest [EMAIL PROTECTED]
Subject: How do you tell orion not to autocommit?
Date: Wed, 17 Apr 2002 07:16:48 -0400

Hello,

I am running orion with a datasource and  some jsp's with some jdbc beans.
When I insert/update/delete it seems to be set to autocommit. How do I tell
orion not to autocommit?

Thanks,
Keith





_
Send and receive Hotmail on your mobile device: http://mobile.msn.com





ANN: Atlassian JIRA 1.2

2002-05-24 Thread Mike Cannon-Brookes

Just a short note to let you all know that JIRA 1.2 has been released.

JIRA is a J2EE-based issue tracking and project management tool, which was
developed (and runs best on!) Orion. It runs as an EAR or a WAR with any
database, it's free for non-commercial  Open Source use, and very
reasonably priced for commercial use. (the same licensing ethos as Orion)

For more details, evaluation download and a live demo, see:

   http://www.atlassian.com/software/jira

Cheers,
Mike  The Atlassian Team

Mike Cannon-Brookes
[EMAIL PROTECTED]

ATLASSIAN - Your J2EE Expert Partner

 Brilliant Software - http://www.atlassian.com/software
 Legendary Services - http://www.atlassian.com/support





get chunk blowing chunks

2002-05-22 Thread Smith Jason

Hi, I am using Orion as a front end to IIS. 
When accessing a certain page, I get this error. However, I cannot reproduce
this in test, even when I point the Orion dev machine at the prod IIS
server. 
The code is exactly the same in both instances.
My tunnel servlet just connects to IIS with the request params, cookies,
headers and then writes the response to the client. 
I am using jvm 1.3.1_02

java.net.SocketException: Unexpected end of file from server 
at sun.net.www.http.HttpClient.parseHTTPHeader(Unknown Source) 
at sun.net.www.http.HttpClient.parseHTTP(Unknown Source) 
at sun.net.www.http.HttpClient.parseHTTPHeader(Unknown Source) 
at sun.net.www.http.HttpClient.parseHTTP(Unknown Source) 
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown
Source) 
at java.net.HttpURLConnection.getResponseCode(Unknown Source) 

As usual, it worked for a few weeks and then died. Have no idea why.
Any ideas?
/Jason





Re: Sessions and W98 + IE

2002-05-22 Thread David Tunkrans

OK. So how do you force 128 bit encryption? By the way take a look at this,
could be the answer to the problem...
http://www.cnet.com/software/0-3227883-8-8580844-5.html

/David

- Original Message -
From: Stephen Davidson [EMAIL PROTECTED]
To: Orion-Interest [EMAIL PROTECTED]
Sent: Sunday, May 19, 2002 6:40 PM
Subject: Re: Sessions and W98 + IE


 Hi David.
 The major errors I have come accross in IE (all tested version of 4, 5, 
6) was that the 56bit encryption package was completely broken in IE.  The
workaround was to force 128bit, or no encryption.
 I am not aware of any other issues.

 -Steve

 David Tunkrans wrote:

   Hi
  
  
  
   Im having problems with broken sessions for w98 + IE browsers. Does
   anyone know of errors in the Orion sessiontracking mechanism?
  
  
  
   /David
  









Error creating jsp-page instance

2002-05-21 Thread Ramadevi . Lanka


Hi,
I am using Oracle9ias which uses OC4j(Oracle Containers for J2EE) which is
inturn uses Orion Application Server.

For some of the JSPs I am getting the following error:
500 Internal Server Error
Error parsing JSP page /gpf/jsp/costcenter/gpfCostCenterDetails.jsp
Error creating jsp-page instance: java.lang.IllegalAccessException:
__jspPage37_jsp_costcenter_gpfCostCenterDetails

Not all JSPs are giving this problem.
Any help in resolving the above error is greatly appreciated.

Regards,
Ramadevi Lanka
I.T.Solutions(India) Pvt. Ltd.
No. 17 South End Road
Basavanagudi
Bangalore - 560 004
Tel: 6655122 Extn: 2133

---Disclaimer

The views of the author may not necessarily reflect those
of the Company. All liability is excluded to the extent
permitted by law for any claims arising as a result of the
use of this medium to transmit information by or to
IT Solutions (India) Pvt. Ltd.

We have taken precautions to minimize the risk of
transmitting software viruses, but we advise you to
carry out your own virus checks on any attachment to
this message.  We cannot accept liability for any loss or
damage caused by software viruses.

Disclaimer






Questions about commits and orion datasource connection pooling....

2002-05-21 Thread Keith Kwiatek

Hello,

I have some jsp's that are using orion's connection pooling.

When a jsp page opens the db connection (oracle) through the connection
pool, is it dedicated to that particular jsp page? Another jsp couldn't
issue a commit or rollback and somehome impact another jsp's transactions,
correct?

In other words, orion simply pre-opens the connection and then hands it off
to the jsp/bean/whatever for it's exclusive use. Correct? When it is done
with the connection, it goes back to the pool right?

Thanks,
Keith








RE: Questions about commits and orion datasource connection pooling....

2002-05-21 Thread Juan Pablo Lorandi

That's correct AFAIK, and applies to all connection pooling
schemas(JDBC, ODBC, you name it) but on most recent versions, the driver
will pool the connections itself, not Orion.

Anyhow, you got most of it right, except that another jsp page instance
may vote in a different connection. No sweat tough, you should have to
pour a lot of code to make that happen, it's called 2PC(it's a protocol)
and allows different transactions to operate as a single one(different
transactions means they may not be in the same DB/DBHost; they may even
be DB's from different vendors!).

So basically, if you're not into learning exotic protocols or
implementing exotic systems, then you're ok with Orion as is.

My 2c,

Juan Pablo Lorandi
Chief Software Architect
Code Foundry Ltd.
[EMAIL PROTECTED]

Barberstown, Straffan, Co. Kildare, Ireland.
Tel: +353-1-6012050  Fax: +353-1-6012051
Mobile: +353-86-2157900
www.codefoundry.com


 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED]] On Behalf Of 
 Keith Kwiatek
 Sent: Tuesday, May 21, 2002 2:00 PM
 To: Orion-Interest
 Subject: Questions about commits and orion datasource 
 connection pooling
 
 
 Hello,
 
 I have some jsp's that are using orion's connection pooling.
 
 When a jsp page opens the db connection (oracle) through the 
 connection pool, is it dedicated to that particular jsp page? 
 Another jsp couldn't issue a commit or rollback and somehome 
 impact another jsp's transactions, correct?
 
 In other words, orion simply pre-opens the connection and 
 then hands it off to the jsp/bean/whatever for it's exclusive 
 use. Correct? When it is done with the connection, it goes 
 back to the pool right?
 
 Thanks,
 Keith
 
 
 
 
 
 






Re: How do you tell orion not to autocommit?

2002-05-21 Thread Keith Kwiatek

But I am using connection pooling I tried this and it does not seem to
work... is it something I have to set with the connection pool?

Thanks,

Keith


- Original Message -
From: Juan Pablo Lorandi [EMAIL PROTECTED]
To: Orion-Interest [EMAIL PROTECTED]
Sent: Wednesday, April 17, 2002 12:22 PM
Subject: RE: How do you tell orion not to autocommit?


 Excerpt from the API docs for method
 java.sql.Connection.setAutoCommit(boolean autoCommit) follows

 setAutoCommit
 public void setAutoCommit(boolean autoCommit)
throws SQLException
 Sets this connection's auto-commit mode. If a connection is in
 auto-commit mode, then all its SQL statements will be executed and
 committed as individual transactions. Otherwise, its SQL statements are
 grouped into transactions that are terminated by a call to either the
 method commit or the method rollback. By default, new connections are in
 auto-commit mode. The commit occurs when the statement completes or the
 next execute occurs, whichever comes first. In the case of statements
 returning a ResultSet, the statement completes when the last row of the
 ResultSet has been retrieved or the ResultSet has been closed. In
 advanced cases, a single statement may return multiple results as well
 as output parameter values. In these cases the commit occurs when all
 results and output parameter values have been retrieved.
 Parameters:
 autoCommit - true enables auto-commit; false disables auto-commit.
 Throws:
 SQLException - if a database access error occurs

 HTH,


 Juan Pablo Lorandi
 Chief Software Architect
 Code Foundry Ltd.
 [EMAIL PROTECTED]

 Barberstown, Straffan, Co. Kildare, Ireland.
 Tel: +353-1-6012050  Fax: +353-1-6012051
 Mobile: +353-86-2157900
 www.codefoundry.com


  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED]] On Behalf Of
  Keith Kwiatek
  Sent: Wednesday, April 17, 2002 12:17 PM
  To: Orion-Interest
  Subject: How do you tell orion not to autocommit?
 
 
  Hello,
 
  I am running orion with a datasource and  some jsp's with
  some jdbc beans. When I insert/update/delete it seems to be
  set to autocommit. How do I tell orion not to autocommit?
 
  Thanks,
  Keith
 
 
 








Ejbs classPath

2002-05-20 Thread Eslam Mohamed

Hi all 
I have problem in calling remote session bean deployed on OC4J server and lookup on it 
from another server deployed on another OC4J server. I succeed in lookup the remote 
ejb from the caller one but when I typeCast it to the remote interface of the Remote 
EJB it through classCast Exception. To solve this problem I put both the HomeRemote 
Interface of the remote interface on the default classPath of the OC4J server 
j2ee/home/lib so it works but I think this is not the right way so can any one help me 
how to solve it and where we can set a classpath for an appropriate EJB . 




RE: Can I write JDBC Transactions in Bean managed entityBeans? (out of office 5/20)

2002-05-20 Thread Jennifer Goree


I will be out of the office on Monday May 20th. 
If you have an emergency problem with the website, please contact Russell Dodds. 

thanks,
Jen





Re: Ejbs classPath (out of office 5/20)

2002-05-20 Thread Jennifer Goree


I will be out of the office on Monday May 20th. 
If you have an emergency problem with the website, please contact Russell Dodds. 

thanks,
Jen





Re: Ejbs classPath

2002-05-20 Thread Jorge Jimenez C

The server that is creating the EJB is acting as a client. So, it has to
know the remote and home interfaces of the EJB as any remote client.

If you expect to use the EJBs in other applications the interfaces, should
be in a shared directory (lib) if it is not the case, you should think to
put them in the jar module.

Good luck.

JJ

- Original Message -
From: Eslam Mohamed [EMAIL PROTECTED]
To: Orion-Interest [EMAIL PROTECTED]
Sent: Monday, May 20, 2002 2:48 AM
Subject: Ejbs classPath


 Hi all
 I have problem in calling remote session bean deployed on OC4J server and
lookup on it from another server deployed on another OC4J server. I succeed
in lookup the remote ejb from the caller one but when I typeCast it to the
remote interface of the Remote EJB it through classCast Exception. To solve
this problem I put both the HomeRemote Interface of the remote interface on
the default classPath of the OC4J server j2ee/home/lib so it works but I
think this is not the right way so can any one help me how to solve it and
where we can set a classpath for an appropriate EJB .







FW: Using ORION versus CORBA

2002-05-20 Thread David Sorf

I can ask if there is some way how to configure Orion (or that RMI) for
using remote calling
from other aplications (example in C++, Delphi, etc...) where is available
CORBA?
Have somebody some idea how to do this??

Thank you.

David Sorf, [EMAIL PROTECTED]

---
Odchoz zprva neobsahuje viry.
Zkontrolovno antivirovm systmem AVG (http://www.grisoft.cz).
Verze: 6.0.361 / Virov bze: 199 - datum vydn: 7.5.2002





Re: FW: Using ORION versus CORBA (out of office 5/20)

2002-05-20 Thread Jennifer Goree


I will be out of the office on Monday May 20th. 
If you have an emergency problem with the website, please contact Russell Dodds. 

thanks,
Jen





Re: Ejbs classPath (out of office 5/20)

2002-05-20 Thread Jennifer Goree


I will be out of the office on Monday May 20th. 
If you have an emergency problem with the website, please contact Russell Dodds. 

thanks,
Jen





Sessions and W98 + IE

2002-05-19 Thread David Tunkrans



Hi 

Im having problems with "broken" sessions for w98 + 
IE browsers. Does anyone know of errors in the Orion sessiontracking 
mechanism?

/David


XAException

2002-05-19 Thread Kiran lal

Hi
I am getting Orion connection closed exception when the load is high on the
server. It is hapening when the ejb server is going to close the connection
and commit. We are using Oracle 9iAS Server(Orion)
Any advice  will be helpful
regards
vc

com.evermind.server.rmi.OrionRemoteException: Transaction was rol
led back: Error in transaction: javax.transaction.xa.XAException:
The connection was closed: [oracle.jdbc.driver.OracleConnection
3cb129 - 146, autoCommit: false (false)]
at BackgroundProcess_StatelessSessionBeanWrapper34.calcul
ateDemurrage(BackgroundProcess_StatelessSessionBeanWrapper34.java
:1849)
at java.lang.reflect.Method.invoke(Native Method)
at com.evermind.server.rmi.RMICallHandler.run(RMICallHand
ler.java:66)
at com.evermind.util.ThreadPoolThread.run(ThreadPoolThrea
d.java:62)
at connection to localhost/127.0.0.1 as admin
at com.evermind.server.rmi.RMIConnection.EXCEPTION_ORIGIN
ATES_FROM_THE_REMOTE_SERVER(RMIConnection.java:1381)
at com.evermind.server.rmi.RMIConnection.invokeMethod(RMI
Connection.java:1304)
at com.evermind.server.rmi.RemoteInvocationHandler.invoke
(RemoteInvocationHandler.java:53)
at __Proxy5.calculateDemurrage(Unknown Source)
at com.emirates.nomad.workers.CalculateDemurrageInitiator
.action(CalculateDemurrageInitiator.java:48)
at com.emirates.nomad.workers.WorkerThread.run(WorkerThre
ad.java:217)

Nested exception is:
javax.transaction.xa.XAException: The connection was closed: [ora
cle.jdbc.driver.OracleConnection@3cb129 - 146, autoCommit: false
(false)]
at com.evermind.sql.DriverManagerXAConnection.prepare(Dri
verManagerXAConnection.java:67)
at com.evermind.server.TransactionEnlistment.prepare(Tran
sactionEnlistment.java:127)
at com.evermind.server.ApplicationServerTransaction.commi
tPhaseTwo(ApplicationServerTransaction.java:429)
at com.evermind.server.ApplicationServerTransaction.commi
t(ApplicationServerTransaction.java:379)
at com.evermind.server.ApplicationServerTransaction.end(A
pplicationServerTransaction.java:546)
at BackgroundProcess_StatelessSessionBeanWrapper34.calcul
ateDemurrage(BackgroundProcess_StatelessSessionBeanWrapper34.java
:1846)
at java.lang.reflect.Method.invoke(Native Method)
at com.evermind.server.rmi.RMICallHandler.run(RMICallHand
ler.java:66)
at com.evermind.util.ThreadPoolThread.run(ThreadPoolThrea
d.java:62)
at connection to localhost/127.0.0.1
at com.evermind.server.rmi.OrionRemoteException.receive(O
rionRemoteException.java:130)
at com.evermind.server.rmi.RMIConnection.handleMethodInvo
cationResponse(RMIConnection.java:1458)
at com.evermind.server.rmi.RMIConnection.run(RMIConnectio
n.java:471)
at java.lang.Thread.run(Thread.java:484)
com.emirates.nomad.UMSBackprocessException: Error processing.
at com.emirates.nomad.workers.CalculateDemurrageInitiator
.action(CalculateDemurrageInitiator.java:56)
at com.emirates.nomad.workers.WorkerThread.run(WorkerThre



_
Join the world’s largest e-mail service with MSN Hotmail.
http://www.hotmail.com





Cmp entity with postgresql

2002-05-19 Thread David Plante

hi 

in my postgresql database i have a table customer with a field sex witch
is a char that can be either 'M' or 'W' .My cmp entity  beans has a var
: char sex;

when i try to load the entity i get Database error: Bad Short M; witch
comes from  org.postgresql.jdbc2.ResultSet.getShort . in the
database-schema i have that entry  type-mapping type=char name=char
/
  
here's the complete error message 

com.evermind.server.rmi.OrionRemoteException: Transaction was rolled
back: Database error: Bad Short M
at
customerHome_EntityHomeWrapper2.findAll(customerHome_EntityHomeWrapper2.java:1202)
at
__jspPage0_jsp_list_jsp._jspService(__jspPage0_jsp_list_jsp.java:132)
at com.orionserver.http.OrionHttpJspPage.service(Unknown Source)
at com.evermind._ah._rad(Unknown Source)
at com.evermind.server.http.JSPServlet.service(Unknown Source)
at com.evermind._cxb._abe(Unknown Source)
at com.evermind._cxb._uec(Unknown Source)
at com.evermind._io._twc(Unknown Source)
at com.evermind._io._gc(Unknown Source)
at com.evermind._if.run(Unknown Source)

Nested exception is:
Bad Short M
at org.postgresql.jdbc2.ResultSet.getShort(ResultSet.java:232)
at
customerHome_EntityHomeWrapper2.findAll(customerHome_EntityHomeWrapper2.java:1118)
at
__jspPage0_jsp_list_jsp._jspService(__jspPage0_jsp_list_jsp.java:132)
at com.orionserver.http.OrionHttpJspPage.service(Unknown Source)
at com.evermind._ah._rad(Unknown Source)
at com.evermind.server.http.JSPServlet.service(Unknown Source)
at com.evermind._cxb._abe(Unknown Source)
at com.evermind._cxb._uec(Unknown Source)
at com.evermind._io._twc(Unknown Source)
at com.evermind._io._gc(Unknown Source)
at com.evermind._if.run(Unknown Source)


here's my complete postgresql.xml 

?xml version=1.0?
!DOCTYPE database-schema PUBLIC -//Evermind//- Database schema
http://www.orionserver.com/dtds/database-schema.dtd;

database-scheme name=PostGreSQL not-null=not null null=null
primary-key=primary key
type-mapping type=java.lang.String name=varchar(255) /
type-mapping type=int name=integer /
type-mapping type=long name=integer /
type-mapping type=float name=float /
type-mapping type=double name=double precision /
type-mapping type=byte name=smallint /
type-mapping type=char name=char /
type-mapping type=short name=integer /
type-mapping type=boolean name=bool /
type-mapping type=java.util.Date name=timestamp /
type-mapping type=java.io.Serializable name=oid /

disallowed-field name=position /
disallowed-field name=parent /
disallowed-field name=username /
disallowed-field name=date /
disallowed-field name=order /
disallowed-field named=abort /^M
disallowed-field named=analyze / ^M
disallowed-field named=binary / ^M
disallowed-field named=cluster /^M
disallowed-field named=constraint /^M
disallowed-field named=copy /^M
disallowed-field named=do / ^M
disallowed-field named=explain /^M
disallowed-field named=extend /^M
disallowed-field named=listen /^M
disallowed-field named=load /^M
disallowed-field named=lock / ^M
disallowed-field named=move / ^M
disallowed-field named=new /^M
disallowed-field named=none /^M
disallowed-field named=notify / ^M
disallowed-field named=offset / ^M
disallowed-field named=reset / ^M
disallowed-field named=setof /^M
disallowed-field named=show /^M

disallowed-field named=transaction /^M
disallowed-field named=unlisten /^M
disallowed-field named=until / ^M
disallowed-field named=vacuum /^M
disallowed-field named=verbose /^M
/database-scheme

I really dont know what it could be now.
anyone has an idea ???

David Plante






Re: Sessions and W98 + IE

2002-05-19 Thread Stephen Davidson

Hi David.
The major errors I have come accross in IE (all tested version of 4, 5,  6) was that 
the 56bit encryption package was completely broken in IE.  The workaround was to force 
128bit, or no encryption.
I am not aware of any other issues.

-Steve

David Tunkrans wrote:

  Hi
 
 
 
  Im having problems with broken sessions for w98 + IE browsers. Does
  anyone know of errors in the Orion sessiontracking mechanism?
 
 
 
  /David
 






Any advanced CMP mapping for int[] via java.sql.Array to a VARRAY col type?

2002-05-19 Thread Andy Parkman

Can anyone point me in the direction of some more detailed information on
advanced CMP mapping techniques?

I was wondering if a CMP mapping can be found which would generate JDBC code
to bind a field variable defined as an array of integer via a java.sql.Array
type to a database column defined as a varray of number under Oracle?

I have been experimenting a little in and around this area but am not
finding
much on this in the Orion documentation and am having difficulty applying
what I can find to my needs. My searches on the mailing list archives also
don't find anything on java.sql.Array or much relevant traffic on other
terms
such as 'persistence-type'.

Is there an API which allows users to provide enhancements to the facilities
provided by the current CMP implementation? If so am I missing some more
detailed documentation or useful examples on this?

Regards,
Andy Parkman







RE: Any advanced CMP mapping for int[] via java.sql.Array to a VARRAY col type?

2002-05-19 Thread Juan Pablo Lorandi

I think there's a PersistanceManager interface for this, but I remember
it not being configurable from files, that is, it seems it's not fully
implemented yet. I guess you'll have to resort to BMP for such complex
mappings.

My 2c,

Juan Pablo Lorandi
Chief Software Architect
Code Foundry Ltd.
[EMAIL PROTECTED]

Barberstown, Straffan, Co. Kildare, Ireland.
Tel: +353-1-6012050  Fax: +353-1-6012051
Mobile: +353-86-2157900
www.codefoundry.com


 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED]] On Behalf Of 
 Andy Parkman
 Sent: Sunday, May 19, 2002 6:36 PM
 To: Orion-Interest
 Subject: Any advanced CMP mapping for int[] via 
 java.sql.Array to a VARRAY col type?
 
 
 Can anyone point me in the direction of some more detailed 
 information on advanced CMP mapping techniques?
 
 I was wondering if a CMP mapping can be found which would 
 generate JDBC code to bind a field variable defined as an 
 array of integer via a java.sql.Array type to a database 
 column defined as a varray of number under Oracle?
 
 I have been experimenting a little in and around this area 
 but am not finding much on this in the Orion documentation 
 and am having difficulty applying what I can find to my 
 needs. My searches on the mailing list archives also don't 
 find anything on java.sql.Array or much relevant traffic on 
 other terms such as 'persistence-type'.
 
 Is there an API which allows users to provide enhancements to 
 the facilities provided by the current CMP implementation? If 
 so am I missing some more detailed documentation or useful 
 examples on this?
 
 Regards,
 Andy Parkman
 
 
 
 
 






Re: Sharing datasource

2002-05-19 Thread Scott Farquhar

Yes, that is true.

At the moment, there is no EJB clustering in Orion, although it may 
appear in future versions.

Cheers,
Scott

Linus Larsen wrote:
 If the same EJB application is running on lets say two servers, and are 
 sharing the same datasource. Do I have to configure the orion-ejb-
 jar.xml and set the exclusive-write-access=false for every entity 
 deployment (on both servers) sharing the datasource,  to avoid 
 inconsistency in the EJBCaching?
 
 regards
 
 /linus
 
 


-- 
Scott Farquhar :: [EMAIL PROTECTED]

Atlassian :: http://www.atlassian.com
  Supporting YOUR J2EE World





Re: Sharing datasource

2002-05-19 Thread Hani Suleiman

Erm, nope.

Orion has EJB clustering, it's just not documented, although I hear a
document about it is coming out soon...ish...

On 5/19/02 9:50 PM, Scott Farquhar [EMAIL PROTECTED] wrote:

 Yes, that is true.
 
 At the moment, there is no EJB clustering in Orion, although it may
 appear in future versions.
 
 Cheers,
 Scott
 
 Linus Larsen wrote:
 If the same EJB application is running on lets say two servers, and are
 sharing the same datasource. Do I have to configure the orion-ejb-
 jar.xml and set the exclusive-write-access=false for every entity
 deployment (on both servers) sharing the datasource,  to avoid
 inconsistency in the EJBCaching?
 
 regards
 
 /linus
 
 
 





RE: Can I write JDBC Transactions in Bean managed entity Beans?

2002-05-19 Thread Juan Pablo Lorandi

Yes, there is. Since you're not using transactions that are independent
of the app server(and thus the app server doesn't know about the
transaction at all, and isn't able to vote in it) the app server built
in transactional support is not functional. An example:

EJB A: a SLSB
EJB B: Your Entity Bean, PK=1.
EJB C: Your Entity Bean, PK=2.

If A, within a method, calls and modifies B and then C, and the calls on
C produce an exception, B will be commited to the database.

Where:

EJB A: a SLSB
EJB B: A correct Entity Bean, PK=1.
EJB C: A correct Entity Bean, PK=2.

If A, within a method, calls and modifies B and then C, and the calls on
C produce an exception, the transaction will be rolled back.

You should use either CMT or BMT in your BMP Entity Beans. Simply not
coding transactions should do, the container would automatically handle
the transactions (that's CMT).

HTH,

Juan Pablo Lorandi
Chief Software Architect
Code Foundry Ltd.
[EMAIL PROTECTED]

Barberstown, Straffan, Co. Kildare, Ireland.
Tel: +353-1-6012050  Fax: +353-1-6012051
Mobile: +353-86-2157900
www.codefoundry.com


 -Original Message-
 From: A mailing list for Enterprise JavaBeans development 
 [mailto:[EMAIL PROTECTED]] On Behalf Of Murali Mohan
 Sent: Saturday, May 18, 2002 8:28 AM
 To: [EMAIL PROTECTED]
 Subject: Can I write JDBC Transactions in Bean managed entity Beans?
 
 
 Hai,
 
 According to spec we must use declarative transactions for 
 entity beans. But I used JDBC transactions. It works fine.
 
 Is there any thing wrong?
 
 --Murali
 
 ==
 =
 To unsubscribe, send email to [EMAIL PROTECTED] and 
 include in the body of the message signoff EJB-INTEREST.  
 For general help, send email to [EMAIL PROTECTED] and 
 include in the body of the message help.
 
 






session management

2002-05-17 Thread kumarpal jain



Helloall

I am running my application on three servers. All 
are live servers . I am using dns round robin to acess them.
Now my problem or issue is thatI want to have 
session of each end user on each server.. so if one server goes down the end 
user can process toother servers with the same session.
So i guess this may be possible with RMI, and I 
also saw one xml.. rmi.xml in config folder . 

can anyone suggest me some clue about this , how i 
can achieve this goal.Does orion supports some in built help for 
RMI.

earlier i did this with loadserver, that was 
working well, but the problem in that , if the server where loadbalancer is 
running goes down , my application will be killed.


Thanks

KUmar


are there any patches for Orion ?

2002-05-17 Thread Valeri . Kireitchik
Title: are there any patches for Orion ?





Hi all,


are there any patches (patch sets, service packs, etc) for Orion ? If yes, do you know where I can take ones for Orion 1.5.2 and 1.5.4 ?

Best regards


ITC-M, SIS Company
Mr. Valeri Kireitchik 
Head of Application Software Department 


Fujitsu Siemens Computers Qualified Partner 
Microsoft Certified Partner 
Oracle Partner Program Member 


Surganova 24-406 
220012 Minsk 
Republic of Belarus 
ph.: +375 (17) 262 50 23 
fax: +375 (17) 262 55 91 
http://www.sis-group.com/ 






Re: session management

2002-05-17 Thread Mike Shoemaker



Doesn't clustering solve this problem?

Mike

  - Original Message - 
  From: 
  kumarpal 
  jain 
  To: Orion-Interest 
  Sent: Friday, May 17, 2002 2:15 AM
  Subject: session management
  
  Helloall
  
  I am running my application on three servers. All 
  are live servers . I am using dns round robin to acess them.
  Now my problem or issue is thatI want to 
  have session of each end user on each server.. so if one server goes down the 
  end user can process toother servers with the same session.
  So i guess this may be possible with RMI, and I 
  also saw one xml.. rmi.xml in config folder . 
  
  can anyone suggest me some clue about this , how 
  i can achieve this goal.Does orion supports some in built help for 
  RMI.
  
  earlier i did this with loadserver, that was 
  working well, but the problem in that , if the server where loadbalancer is 
  running goes down , my application will be killed.
  
  
  Thanks
  
  KUmar


RE: help with trans. synchronization

2002-05-17 Thread Chris Francis

Don't know if this will help, but it looks like the problem starts
with the execution of a finder query. So maybe review the sql you've set
for this query in orion-ejb-jar.xml.
Or maybe the query can return more than one row and you have it set to
return
a single entity instance in the ejb's home interface?

-Original Message-
From: Waller Anne [mailto:[EMAIL PROTECTED]]
Sent: 17 May 2002 02:35
To: Orion-Interest
Subject: help with trans. synchronization



  Can anyone give some pointers or have come across a similar problem ?

 We are currently in development and in the middle of UAT testing. The
application runs on Orion1.5.2 connecting to multiple datasources on the one
server.

  A recent test raised the following exception

java.lang.ArrayIndexOutOfBoundsException at
com.evermind.server.ApplicationServerTransactionSynchrization.getConnection(
Unknown source) .
at ChangeHome_EntityHomeWrapper267.findActive(ChangeHome_EntityHomeWrapper)
 

  The application ues stateless session beans and CMP entity beans. There
are 3 queuelisteners for transactions.

   
  Have reviewed the orion-ejb-jar and the ejb-jar for the
transaction-attributes but am still none the wiser.

  Has anyone got any suggestions on tracking this down, we have put the
profiler from HP called HPJMeter on and run with -Xprof.

  Perhaps we have too much information now but we are too inexperienced to
be able to know what the next step should be in tracking this down. Would
appreciate any advise on this one? 


  regards,

Anne.
 



 


**
This e-mail is confidential and for the sole use of the intended 
recipient(s).  If you are not the intended recipient, you are not 
authorised to disclose, use, distribute or in any other way make 
use of the information contained in it, and such activities are 
prohibited.  If you have received this e-mail in error, please 
notify the sender by reply e-mail, delete the document and destroy 
all copies of the original message.
**




Sharing datasource

2002-05-17 Thread Linus Larsen

If the same EJB application is running on lets say two servers, and are 
sharing the same datasource. Do I have to configure the orion-ejb-
jar.xml and set the exclusive-write-access=false for every entity 
deployment (on both servers) sharing the datasource,  to avoid 
inconsistency in the EJBCaching?

regards

/linus





how to set exclusive-write-access=true in orion-ejb-jar.xml

2002-05-17 Thread Valeri . Kireitchik
Title: how to set  exclusive-write-access=true in orion-ejb-jar.xml





Hi all,


can anybody help to set exclusive-write-access=true in orion-ejb-jar.xml. Enviroment: oc4j 9.0.2.0.0


My problem is that container reset it to false during deployment (other attributes are set without any problem)


I tried 
- to put orion-ejb-jar.xml in my application jar-file and to delete my application catalog in application-deployment catalog

- to change orion-ejb-jar.xml genereted by container
- all together
nothing works


Regards


ITC-M, SIS Company
Mr. Valeri Kireitchik 
Head of Application Software Department 


Fujitsu Siemens Computers Qualified Partner 
Microsoft Certified Partner 
Oracle Partner Program Member 


Surganova 24-406 
220012 Minsk 
Republic of Belarus 
ph.: +375 (17) 262 50 23 
fax: +375 (17) 262 55 91 
http://www.sis-group.com/ 






Re: session management

2002-05-17 Thread Curt Smith


 earlier i did this with loadserver, that was working well, but the
 problem in that , if the server where loadbalancer is running goes
 down , my application will be killed.


I agree that loadbalancer.jar is a great concern!

No one's told me that a product like the Cisco Redirector would'nt work.

What's wrong with DNS round robin is that it does not provide session
sticky routing of a client to the same box.  Redirector and most other
true load balancer boxes do this.

Cisco Redirector and it's equivelants are in theory more reliable than
a CPU/Box running java and loadbalancer.jar.

curt


-- 

Curt Smith
[EMAIL PROTECTED]
(w) 404-463-0973
(h) 404-294-6686







Re: how to set exclusive-write-access=true in orion-ejb-jar.xml

2002-05-17 Thread David Plante

I think orion  finds out your database doest suport this feature or its
not yet implemented for this db in orion. Exclusive-write-access default
is set to true, so i beleive that orion resets it cause its not
available.Otherwise be sure you remove orion-ejb-jar.xml before you
deploy and make sure the one you deploy in your ejb.jar META-INF is
valid . At deployment you should see a message about orion copying the
orion-ejb-jar.

I hope this helps 

David Plante

On Fri, 2002-05-17 at 15:58, [EMAIL PROTECTED] wrote:
 Hi all,
 
 can anybody help to set exclusive-write-access=true in orion-ejb-jar.xml.
 Enviroment: oc4j 9.0.2.0.0
 
 My problem is that container reset it to false during deployment (other
 attributes are set without any problem)
 
 I tried 
 - to put orion-ejb-jar.xml in my application jar-file and to delete my
 application catalog in application-deployment catalog
 - to change orion-ejb-jar.xml genereted by container
 - all together
 nothing works
 
 Regards
 
 ITC-M, SIS Company
 Mr. Valeri Kireitchik 
 Head of Application Software Department 
 
 Fujitsu Siemens Computers Qualified Partner 
 Microsoft Certified Partner 
 Oracle Partner Program Member 
 
 Surganova 24-406 
 220012 Minsk 
 Republic of Belarus 
 ph.: +375 (17) 262 50 23 
 fax: +375 (17) 262 55 91 
 http://www.sis-group.com/ 
 
 






XSLServlet

2002-05-17 Thread Ramadevi . Lanka


Hi,
I am getting a NullPointerException when I try to display my JSPs
containing XSL tags. I have 2 questions:
1. How to turn ON and turn OFF XSL transformation happening in Orion.
2. How to debug this error.

Following is the error message:

500 Internal Server Error
java.lang.NullPointerException
   at com.evermind[Oracle9iAS (1.0.2.2.1) Containers for
J2EE].servlet.StylesheetCache.getTransformer(Compiled Code)
   at com.evermind[Oracle9iAS (1.0.2.2.1) Containers for
J2EE].servlet.XSLServlet.service(Compiled Code)
   at javax.servlet.http.HttpServlet.service(Compiled Code)
   at com.evermind[Oracle9iAS (1.0.2.2.1) Containers for
J2EE].server.http.HttpRequestHandler.processRequest(Compiled Code)
   at com.evermind[Oracle9iAS (1.0.2.2.1) Containers for
J2EE].server.http.HttpRequestHandler.run(Compiled Code)
   at com.evermind[Oracle9iAS (1.0.2.2.1) Containers for
J2EE].util.ThreadPoolThread.run(Compiled Code


Regards,
Ramadevi Lanka
I.T.Solutions(India) Pvt. Ltd.
No. 17 South End Road
Basavanagudi
Bangalore - 560 004
Tel: 6655122 Extn: 2133

---Disclaimer

The views of the author may not necessarily reflect those
of the Company. All liability is excluded to the extent
permitted by law for any claims arising as a result of the
use of this medium to transmit information by or to
IT Solutions (India) Pvt. Ltd.

We have taken precautions to minimize the risk of
transmitting software viruses, but we advise you to
carry out your own virus checks on any attachment to
this message.  We cannot accept liability for any loss or
damage caused by software viruses.

Disclaimer






Cluster configuration

2002-05-16 Thread sbpodila



Hi all,
Can anybody explain the procedure for cluster 
configuration in Orion server for web applications.


Can't find servlet

2002-05-16 Thread Krishnan, Sri

Hi,
   Can someone let me know what are the values I need to specify for the
servlet-mapping and url-pattern tags in the web.xml. I am having a problem
to see the servlet from my jsp page.
Thanks
Sri

-Original Message-
From: Krishnan, Sri 
Sent: Wednesday, May 15, 2002 5:20 PM
To: Orion-Interest
Subject: Can't find servlet


Hi,
I am registering the servlet in web.xml even then, I am getting an error
saying that the servlet not found. do I need to register the servlet
anywhere else ?
this may be trivial but , could not figure out.

Thanks
Sri




help with trans. synchronization

2002-05-16 Thread Waller Anne


  Can anyone give some pointers or have come across a similar problem ?

 We are currently in development and in the middle of UAT testing. The
application runs on Orion1.5.2 connecting to multiple datasources on the one
server.

  A recent test raised the following exception

java.lang.ArrayIndexOutOfBoundsException at
com.evermind.server.ApplicationServerTransactionSynchrization.getConnection(
Unknown source) .
at ChangeHome_EntityHomeWrapper267.findActive(ChangeHome_EntityHomeWrapper)
 

  The application ues stateless session beans and CMP entity beans. There
are 3 queuelisteners for transactions.

   
  Have reviewed the orion-ejb-jar and the ejb-jar for the
transaction-attributes but am still none the wiser.

  Has anyone got any suggestions on tracking this down, we have put the
profiler from HP called HPJMeter on and run with -Xprof.

  Perhaps we have too much information now but we are too inexperienced to
be able to know what the next step should be in tracking this down. Would
appreciate any advise on this one? 


  regards,

Anne.
 



 


**
This e-mail is confidential and for the sole use of the intended 
recipient(s).  If you are not the intended recipient, you are not 
authorised to disclose, use, distribute or in any other way make 
use of the information contained in it, and such activities are 
prohibited.  If you have received this e-mail in error, please 
notify the sender by reply e-mail, delete the document and destroy 
all copies of the original message.
**




Re: Cluster configuration

2002-05-16 Thread Scott Farquhar

This document will be of help:

   http://kb.atlassian.com/content/orion/docs/http-clustering.html

Cheers,
Scott

sbpodila wrote:
 Hi all,
 
 Can anybody explain the procedure for cluster configuration in Orion 
 server for web applications.
 


-- 
Scott Farquhar :: [EMAIL PROTECTED]

Atlassian :: http://www.atlassian.com
  Supporting YOUR J2EE World





RE: Can't find servlet

2002-05-16 Thread Ian Roughley

Do you have the web application configured in the server.xml and
default-web-site.xml filers in the config directory, and using the correct
context/dir?

/Ian

From Down  Around, Inc.
Innovative IT solutions
Software Architecture * Design * Development

web:www.fdar.com
email:  [EMAIL PROTECTED]
phone:  617.821.5430


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Krishnan, Sri
Sent: Wednesday, May 15, 2002 7:20 PM
To: Orion-Interest
Subject: Can't find servlet


Hi,
I am registering the servlet in web.xml even then, I am getting an error
saying that the servlet not found. do I need to register the servlet
anywhere else ?
this may be trivial but , could not figure out.

Thanks
Sri







No rollback in case of exception in ejbStore()

2002-05-15 Thread Valeri . Kireitchik
Title: No rollback in case of exception in ejbStore()





Configuration:
Orion 1.5.2/1.5.4, Oracle 9i
1 SFSB and 2 EB, transactional attributes = Required for all beans.
Transaction is initiated by call of SFSB method updateRow(). SFSB calls 2 EB setName() methods. SFSB implements SessionSynchronization interface.
If in ejbStore() of any EB exception happens (for example throw new EJBException() or division by zero) the following happens:

- client receive the following: com.evermind.server.rmi.OrionRemoteException: Transaction was rolled back: Error preparing bean instance: com.evermind.transaction.MarshallingXAExceptionm ...
- transaction is commited !!! - checked directly in database and via afterCommit() callback.
- transaction is repeated 4 times (!) just as it was rollbacked

When such exception happens in business methods or ejbLoad() transaction is correctly rollbacked.
Test case is enclosed.
 RollbackTestCase.zip 
Note, only that table was updated that corresponds to EB whose ejbStore() did not experience exception, in other words transaction atomicity is corrupted. 

I would appreciate any help or ideas. And you may check your code - probably the same problem is sleeping there.


ITC-M, SIS Company
Mr. Valeri Kireitchik 
Head of Application Software Department 


Fujitsu Siemens Computers Qualified Partner 
Microsoft Certified Partner 
Oracle Partner Program Member 


Surganova 24-406 
220012 Minsk 
Republic of Belarus 
ph.: +375 (17) 262 50 23 
fax: +375 (17) 262 55 91 
http://www.sis-group.com/ 






RollbackTestCase.zip
Description: Binary data


ClassCastException in generated code

2002-05-15 Thread Tim Joyce

Hi,

I am getting a rather nasty ClassCastException when i try and remove a
many-to-many join (implemented like the MovieDatabase example). My question
is how do i go about debugging this? Is it possible to get access to the
generated .java files?

Thanks in advance for any advice

stack traces follow (sorry)

cheers

timj


com.evermind.server.rmi.OrionRemoteException: java.lang.ClassCastException:
ProductJoin_EntityBeanWrapper853
at com.evermind.server.ejb.EJBUtils.getUserException(.:199)
at
EntityProduct_EntityBeanWrapper838.removeBrand(EntityProduct_EntityBeanWrapp
er838.java:1805)
at com.mywds.ejb.session.LightWeightBean.updateProduct(Unknown Source)
at
LightWeight_StatelessSessionBeanWrapper834.updateProduct(LightWeight_Statele
ssSessionBeanWrapper834.java:4066)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.axis.providers.java.RPCProvider.invokeMethod(Unknown Source)
at org.apache.axis.providers.java.RPCProvider.processMessage(Unknown Source)
at org.apache.axis.providers.java.JavaProvider.invoke(Unknown Source)
at org.apache.axis.strategies.InvocationStrategy.visit(Unknown Source)
at org.apache.axis.SimpleChain.doVisiting(Unknown Source)
at org.apache.axis.SimpleChain.invoke(Unknown Source)
at org.apache.axis.server.AxisServer.invoke(Unknown Source)
at org.apache.axis.transport.http.AxisServlet.doPost(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:211)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:309)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)
at com.evermind._bxb._crd(.:501)
at com.evermind._bxb._ukb(.:170)
at com.evermind._cn._uab(.:576)
at com.evermind._cn._fm(.:189)
at com.evermind._bs.run(.:62)

Nested exception is:
java.lang.ClassCastException: ProductJoin_EntityBeanWrapper853
at
ProductJoinHome_EntityHomeWrapper1381.remove(ProductJoinHome_EntityHomeWrapp
er1381.java:16)
at com.mywds.ejb.entity.EntityProductBean.removeBrand(Unknown Source)
at
EntityProduct_EntityBeanWrapper838.removeBrand(EntityProduct_EntityBeanWrapp
er838.java:1791)
at com.mywds.ejb.session.LightWeightBean.updateProduct(Unknown Source)
at
LightWeight_StatelessSessionBeanWrapper834.updateProduct(LightWeight_Statele
ssSessionBeanWrapper834.java:4066)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.axis.providers.java.RPCProvider.invokeMethod(Unknown Source)
at org.apache.axis.providers.java.RPCProvider.processMessage(Unknown Source)
at org.apache.axis.providers.java.JavaProvider.invoke(Unknown Source)
at org.apache.axis.strategies.InvocationStrategy.visit(Unknown Source)
at org.apache.axis.SimpleChain.doVisiting(Unknown Source)
at org.apache.axis.SimpleChain.invoke(Unknown Source)
at org.apache.axis.server.AxisServer.invoke(Unknown Source)
at org.apache.axis.transport.http.AxisServlet.doPost(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:211)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:309)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)
at com.evermind._bxb._crd(.:501)
at com.evermind._bxb._ukb(.:170)
at com.evermind._cn._uab(.:576)
at com.evermind._cn._fm(.:189)
at com.evermind._bs.run(.:62)  




Begging for help

2002-05-15 Thread Jon Bricker

I'm begging for some help on this set up.  I'm using Glue Standard for using
SOAP calls.  Anyone that has used Glue with Orion before please help me out.

I've gotten the orion example from glue working. Now I'm trying to do something
practical. I've set up an app on Orion. It had to be a separate app because it
will be using EJBs that are already deployed.

So in server.xml I have

application name=cande path=../applications/cande.ear parent=catd /

catd is the application with the EJB I need. I need this to have the apps
share EJBs.

I have the GLUE-STD.jar in my WEB-INF/lib

my web.xml looks like this:
web-app

!-- Description --
servlet
servlet-name http /servlet-name
servlet-class electric.server.http.ServletServer /servlet-class

init-param
param-name electric.commands /param-name
param-value /orion-files/glue/commands.xml /param-value
/init-param

load-on-startup 1 /load-on-startup
/servlet

servlet-mapping
servlet-name http /servlet-name
url-pattern /* /url-pattern
/servlet-mapping

ejb-ref
ejb-ref-nameejb/CanDEDataMgr/ejb-ref-name
ejb-ref-typeSession/ejb-ref-type
homecom.lilly.javaatg.catd.ejb.CanDEDataMgrHome/home
remotecom.lilly.javaatg.catd.ejb.CanDEDataMgr/remote
/ejb-ref

/web-app

It is the same as the webapps/glue web.xml except for the file location of the
commands.xml and the reference to my EJB.

My commands.xml looks like this:
commands
invoke electric.registry.Registry.publishInstance( urn:cande, 
com.lilly.javaatg.catd.cande.DataLoadImpl ) /invoke
/commands

I wrote a test program to try this out. The main calls look like this:

String url = 
http://duke1.d51.lilly.com:8088/cande/urn:cande.wsdl;;

RemoteDataLoader dataLoad = (RemoteDataLoader) 
Registry.bind( url, RemoteDataLoader.class );
boolean answer = dataLoad.isUserValid(userID,password);

When I run it I get this error:
could not bind to path: 
http://duke1.d51.lilly.com:8088/cande/urn:cande.wsdl
Exception:
electric.registry.RegistryException: could not bind to path: 
http://duke1.d51.lilly.com:8088/cande/urn:cande.wsdl
at electric.net.soap.SOAPRegistry.bind(Unknown Source)
at electric.registry.compound.CompoundRegistry.bind(Unknown Source)
at electric.registry.Registry.bind(Unknown Source)
at electric.registry.Registry.bind(Unknown Source)
at ejbtest.main(ejbtest.java:78)
Caused by: java.io.IOException: HTTP GET error: 
http://duke1.d51.lilly.com:8088/cande/urn:cande.wsdl Internal Server 
Error. Response code: 500: unable to load file 
http://duke1.d51.lilly.com:8088/cande/urn:cande.wsdl

I've tried generating the wsdl and pointing the console to it but that does not
work. 

What am I missing to make this work? 


=
Jon Bricker

You should never settle for the lesser of two Weasels.

__
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com




test - please not reply

2002-05-15 Thread Valeri . Kireitchik
Title: test - please not reply








ITC-M, SIS Company
Mr. Valeri Kireitchik 
Head of Application Software Department 


Fujitsu Siemens Computers Qualified Partner 
Microsoft Certified Partner 
Oracle Partner Program Member 


Surganova 24-406 
220012 Minsk 
Republic of Belarus 
ph.: +375 (17) 262 50 23 
fax: +375 (17) 262 55 91 
http://www.sis-group.com/ 






RE: ClassCastException in generated code

2002-05-15 Thread Greg Davis

Did you change your bean recently? It sounds like your remotes are out of
date. Ensure you remotes on the client side match up properly.  Also ensure
any Serialiazable classes you pass via method calls are not updated in only
the client of server.  This error normally happens when you either try to
cast the wrong object (I.e. in Collections this can happen easily if you are
not careful) and serialized objects (when the new class doesn't match up to
the old one).  These will compile fine, but break during runtime.

Without any other information, this is all I can add. 

Hope this helps.

Greg

-Original Message-
From: Tim Joyce [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 15, 2002 4:16 AM
To: Orion-Interest
Subject: ClassCastException in generated code


Hi,

I am getting a rather nasty ClassCastException when i try and remove a
many-to-many join (implemented like the MovieDatabase example). My question
is how do i go about debugging this? Is it possible to get access to the
generated .java files?

Thanks in advance for any advice

stack traces follow (sorry)

cheers

timj


com.evermind.server.rmi.OrionRemoteException: java.lang.ClassCastException:
ProductJoin_EntityBeanWrapper853
at com.evermind.server.ejb.EJBUtils.getUserException(.:199)
at
EntityProduct_EntityBeanWrapper838.removeBrand(EntityProduct_EntityBeanWrapp
er838.java:1805)
at com.mywds.ejb.session.LightWeightBean.updateProduct(Unknown Source)
at
LightWeight_StatelessSessionBeanWrapper834.updateProduct(LightWeight_Statele
ssSessionBeanWrapper834.java:4066)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.axis.providers.java.RPCProvider.invokeMethod(Unknown Source)
at org.apache.axis.providers.java.RPCProvider.processMessage(Unknown Source)
at org.apache.axis.providers.java.JavaProvider.invoke(Unknown Source)
at org.apache.axis.strategies.InvocationStrategy.visit(Unknown Source)
at org.apache.axis.SimpleChain.doVisiting(Unknown Source)
at org.apache.axis.SimpleChain.invoke(Unknown Source)
at org.apache.axis.server.AxisServer.invoke(Unknown Source)
at org.apache.axis.transport.http.AxisServlet.doPost(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:211)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:309)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)
at com.evermind._bxb._crd(.:501)
at com.evermind._bxb._ukb(.:170)
at com.evermind._cn._uab(.:576)
at com.evermind._cn._fm(.:189)
at com.evermind._bs.run(.:62)

Nested exception is:
java.lang.ClassCastException: ProductJoin_EntityBeanWrapper853
at
ProductJoinHome_EntityHomeWrapper1381.remove(ProductJoinHome_EntityHomeWrapp
er1381.java:16)
at com.mywds.ejb.entity.EntityProductBean.removeBrand(Unknown Source)
at
EntityProduct_EntityBeanWrapper838.removeBrand(EntityProduct_EntityBeanWrapp
er838.java:1791)
at com.mywds.ejb.session.LightWeightBean.updateProduct(Unknown Source)
at
LightWeight_StatelessSessionBeanWrapper834.updateProduct(LightWeight_Statele
ssSessionBeanWrapper834.java:4066)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.axis.providers.java.RPCProvider.invokeMethod(Unknown Source)
at org.apache.axis.providers.java.RPCProvider.processMessage(Unknown Source)
at org.apache.axis.providers.java.JavaProvider.invoke(Unknown Source)
at org.apache.axis.strategies.InvocationStrategy.visit(Unknown Source)
at org.apache.axis.SimpleChain.doVisiting(Unknown Source)
at org.apache.axis.SimpleChain.invoke(Unknown Source)
at org.apache.axis.server.AxisServer.invoke(Unknown Source)
at org.apache.axis.transport.http.AxisServlet.doPost(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:211)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:309)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)
at com.evermind._bxb._crd(.:501)
at com.evermind._bxb._ukb(.:170)
at com.evermind._cn._uab(.:576)
at com.evermind._cn._fm(.:189)
at com.evermind._bs.run(.:62)  




RE: Begging for help

2002-05-15 Thread Satter, Rabi

Can you point a browser at the url and get the wsdl? 

Are you trying to access the EJB directly? If so you need pro which can talk
to stateless session beans. 

Probably doesn't matter but you might try putting the jar file in the
orion/lib directory.

Hopes this helps.

-Original Message-
From: Jon Bricker [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 15, 2002 7:56 AM
To: Orion-Interest
Subject: Begging for help


I'm begging for some help on this set up.  I'm using Glue Standard for using
SOAP calls.  Anyone that has used Glue with Orion before please help me out.

I've gotten the orion example from glue working. Now I'm trying to do
something
practical. I've set up an app on Orion. It had to be a separate app because
it
will be using EJBs that are already deployed.

So in server.xml I have

application name=cande path=../applications/cande.ear parent=catd /

catd is the application with the EJB I need. I need this to have the apps
share EJBs.

I have the GLUE-STD.jar in my WEB-INF/lib

my web.xml looks like this:
web-app

!-- Description --
servlet
servlet-name http /servlet-name
servlet-class electric.server.http.ServletServer /servlet-class

init-param
param-name electric.commands /param-name
param-value /orion-files/glue/commands.xml /param-value
/init-param

load-on-startup 1 /load-on-startup
/servlet

servlet-mapping
servlet-name http /servlet-name
url-pattern /* /url-pattern
/servlet-mapping

ejb-ref
ejb-ref-nameejb/CanDEDataMgr/ejb-ref-name
ejb-ref-typeSession/ejb-ref-type
homecom.lilly.javaatg.catd.ejb.CanDEDataMgrHome/home
remotecom.lilly.javaatg.catd.ejb.CanDEDataMgr/remote
/ejb-ref

/web-app

It is the same as the webapps/glue web.xml except for the file location of
the
commands.xml and the reference to my EJB.

My commands.xml looks like this:
commands
invoke electric.registry.Registry.publishInstance( urn:cande, 
com.lilly.javaatg.catd.cande.DataLoadImpl ) /invoke
/commands

I wrote a test program to try this out. The main calls look like this:

String url = 
http://duke1.d51.lilly.com:8088/cande/urn:cande.wsdl;;

RemoteDataLoader dataLoad = (RemoteDataLoader) 
Registry.bind( url, RemoteDataLoader.class );
boolean answer = dataLoad.isUserValid(userID,password);

When I run it I get this error:
could not bind to path: 
http://duke1.d51.lilly.com:8088/cande/urn:cande.wsdl
Exception:
electric.registry.RegistryException: could not bind to path: 
http://duke1.d51.lilly.com:8088/cande/urn:cande.wsdl
at electric.net.soap.SOAPRegistry.bind(Unknown Source)
at electric.registry.compound.CompoundRegistry.bind(Unknown Source)
at electric.registry.Registry.bind(Unknown Source)
at electric.registry.Registry.bind(Unknown Source)
at ejbtest.main(ejbtest.java:78)
Caused by: java.io.IOException: HTTP GET error: 
http://duke1.d51.lilly.com:8088/cande/urn:cande.wsdl Internal Server 
Error. Response code: 500: unable to load file 
http://duke1.d51.lilly.com:8088/cande/urn:cande.wsdl

I've tried generating the wsdl and pointing the console to it but that does
not
work. 

What am I missing to make this work? 


=
Jon Bricker

You should never settle for the lesser of two Weasels.

__
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com




Can't find servlet

2002-05-15 Thread Krishnan, Sri

Hi,
I am registering the servlet in web.xml even then, I am getting an error
saying that the servlet not found. do I need to register the servlet
anywhere else ?
this may be trivial but , could not figure out.

Thanks
Sri




SV: Orion and JSP

2002-05-14 Thread magnus . rydin

There is a beginners guide available at
www.orionserver.com/docs/beginners-guide.xml
That helps you get started with the Orion Application Server.

With regards,
Magnus Rydin

 -Ursprungligt meddelande-
 Från: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED]] För Krishnan, Sri
 Skickat: den 14 maj 2002 00:16
 Till: Orion-Interest
 Ämne: Orion and JSP
 
 
 Hi,
   I am trying to use jsp s with Orion. Can anyone let me know 
 how do I get the JSP compiled and displayed on the web 
 browser ?. I know that OC4J compiles the JSP, just could not 
 figure out how to get the orion do that.
 
 Thanks alot for your help
 Sri
 





RE: Dynamic Proxies for remote interface wrapper?

2002-05-14 Thread Justin Wood

Implement clases conforming to the EJBUserManager API and overide the permission 
checking methods with logic that does that kind of checking ...  then deploy like so: 
http://www.orionsupport.com/articles/ejbusermanager.html


Justin


-Original Message-
From: Pletka, John [mailto:[EMAIL PROTECTED]]
Sent: 13 May 2002 09:25 PM
To: Orion-Interest
Subject: Dynamic Proxies for remote interface wrapper?


I'm trying to integrate a third-party security product that allows rules
like can only call methodX on objectY between 9:00 am and 5:00 pm.  It
ties into Weblogic and WebSphere cleanly, but does not have a way to get
into orion.  What I would like to be able to do is either:
1) setup my ejb-jar.xml file to point to a Dynamic Proxy class that
could do the security checks before forwarding the call on to the real class
2) or somehow override the wrappers that orion generates with my own
code.  

Does anyone know of a way to do this?  I can see the java code orion creates
for the wrappers (RemoteInterfaceName_StatelessSessionBeanWrapperXXX.java.)
That would be a perfect place to place the code if it was allowed.  It looks
like it uses a class com.evermind.server.RuntimeSecurityRole to test
whether the call is allowed or not.  I could probably hack this class and
override the logic, but I would think there would be a legitimate way of
accomplishing this.





Re: Orion and JSP

2002-05-14 Thread Joseph Ottinger

Well, you haven't said what Orion is telling you, but typically the first
thing you do is follow the installation instructions, every step of
them, which includes copying tools.jar to $ORION. That's alkl you have to
do. One wonders why the three steps are as complicated as they are.

-
Joseph B. Ottinger [EMAIL PROTECTED]
http://enigmastation.comIT Consultant

On Mon, 13 May 2002, Krishnan, Sri wrote:

 Hi,
   I am trying to use jsp s with Orion. Can anyone let me know how do I get
 the JSP compiled and displayed on the web browser ?. I know that OC4J
 compiles the JSP, just could not figure out how to get the orion do that.

 Thanks alot for your help
 Sri







Next Release

2002-05-14 Thread @Basebeans.com

Subject: Next Release
From: alt.cybercafes [EMAIL PROTECTED]
 ===
When will the next release of orion by available to the general public. ?
Will it support ejb 2.0 completely.
thanks







Tracking of JSP errors

2002-05-14 Thread Konstantns Dorodovs

Hi,

(OC4J 1.0.2.2.1)

When I have one JSP page included in the other JSP. (% include tag was
used)
and the included one produces compilation error then
I receive no compilation error in my browser just Parent JSP skips output
of the included one.

Strange thing, but a coworker can see in his browser that there is a
compilation error
He runs the same version of the server, and points to the same file.

(MSIE option show friendly error messages is disabled)

Did anyone struggle with such problem?

Kostja





Orion Client jar files for remote application client

2002-05-14 Thread Pedro Garcia Lopez

Hi all,

Unlike many other application servers like jboss, Orion does not
officially provide a list of jar files required to run remote Java
Application clients. This enforces developers to include a lot of files
found in the Orion root directory.

Are there any plans to provide a minimum set of jar files required for
remote applicacion clients ? orion-client.jar, orion-jndi.jar ...


Thank you in advance

Pedro





RE: Orion Client jar files for remote application client

2002-05-14 Thread The elephantwalker

Pedro,

This is the minimum list:

orion.jar
activation.jar
jndi.jar
ejb.jar

Its also a good idea to include a jar with the home and remote interfaces of
the ejb's you will be using.

With kind regards,

the elephantwalker
www.elephantwalker.com


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Pedro Garcia
Lopez
Sent: Tuesday, May 14, 2002 1:13 PM
To: Orion-Interest
Subject: Orion Client jar files for remote application client


Hi all,

Unlike many other application servers like jboss, Orion does not
officially provide a list of jar files required to run remote Java
Application clients. This enforces developers to include a lot of files
found in the Orion root directory.

Are there any plans to provide a minimum set of jar files required for
remote applicacion clients ? orion-client.jar, orion-jndi.jar ...


Thank you in advance

Pedro






example of data-source.xml for Oracle 9i needed

2002-05-13 Thread Valeri . Kireitchik
Title: example of data-source.xml for Oracle 9i needed





Hi all, 
may somebody provide me with example of of data-source.xml for Oracle 9i that supports CMT (container managed transactions) for Orion 1.5.2 ?

Thank you in advance


ITC-M, SIS Company
Mr. Valeri Kireitchik 
Head of Application Software Department 


Fujitsu Siemens Computers Qualified Partner 
Microsoft Certified Partner 
Oracle Partner Program Member 


Surganova 24-406 
220012 Minsk 
Republic of Belarus 
ph.: +375 (17) 262 50 23 
fax: +375 (17) 262 55 91 
http://www.sis-group.com/ 






RV: Some questions about orion-ejb-xml.jar

2002-05-13 Thread Andrés Escudero Apesteguía
Title: Firma tb solutions Diseño de fondo





I've been 
testing Orion the last three weeks. In Orion web, I've read to put 
orion-ejb-jar.xml under orion directory for an EJB. In some other sites, this 
file must reside under META-INF directory. Which is the correct place to put 
orion-ejb-jar.xml?

I've assumed that the correct answer to my first question is orion. When 
Orion deploys my application, it respects some of the parameters I've written, 
but it deletes some of them. Can anyone help me on this 
problem?

And the last question. Is there any relation between orion-ejb-jar.xml, 
ejb-jar.xml (under META-INF), and the parameters location and name of an EJB. 
I've tried to put a location which was different to its ejb name and Orion has 
not noticed the change.

Thank in advance,
 Andrs.




Andrs Escudero 
ApesteguaTB SolutionsDesarrollo 
eBanking[EMAIL PROTECTED]tlf: +34 948 173 319fax: +34 948 
172 235web: http://www.tb-solutions.com


Re: example of data-source.xml for Oracle 9i needed

2002-05-13 Thread Darren Senel

This is what I use:

data-source class=com.evermind.sql.DriverManagerDataSource
name=OracleDS 
location=jdbc/OracleCoreDS 
xa-location=jdbc/xa/OracleXADS 
ejb-location=jdbc/OracleDS 
connection-driver=oracle.jdbc.driver.OracleDriver 
username=dsenel 
password=mypassword 
url=jdbc:oracle:thin:@172.25.10.132:1521:mydb 
inactivity-timeout=30 
connection-retry-interval=1 / 

 [EMAIL PROTECTED] 05/13/02 03:51AM 
Hi all, 
may somebody provide me with example of of data-source.xml for Oracle
9i
that supports CMT (container managed transactions) for Orion 1.5.2 ?

Thank you in advance

ITC-M, SIS Company
Mr. Valeri Kireitchik 
Head of Application Software Department 

Fujitsu Siemens Computers Qualified Partner 
Microsoft Certified Partner 
Oracle Partner Program Member 

Surganova 24-406 
220012 Minsk 
Republic of Belarus 
ph.: +375 (17) 262 50 23 
fax: +375 (17) 262 55 91 
http://www.sis-group.com/ 






AW: example of data-source.xml for Oracle 9i needed

2002-05-13 Thread Michael Maurer
Title: example of data-source.xml for Oracle 9i needed









Place the classes12.zip which comes with
the Oracle 9i in the lib directory an configure the datasources xml like that:



?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=jdbc/DataSource

      schema=database-schemas/oracle.xml

      location=jdbc/DataSource

      xa-location=jdbc/xa/DataSource

      ejb-location=jdbc/DataSource

      connection-driver=oracle.jdbc.driver.OracleDriver

      username=username

      password=pwd

      url=jdbc:oracle:thin:@localhost:1521:oracle

      inactivity-timeout=30

     /



/data-sources





cheers Michael



-Ursprngliche
Nachricht-
Von:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] Im
Auftrag von [EMAIL PROTECTED]
Gesendet: Montag, 13. Mai 2002
09:51
An: Orion-Interest
Betreff: example of
data-source.xml for Oracle 9i needed



Hi all, 
may
somebody provide me with example of of data-source.xml for Oracle 9i that
supports CMT (container managed transactions) for Orion 1.5.2 ?

Thank you in advance 

ITC-M, SIS Company 
Mr. Valeri Kireitchik 
Head
of Application Software Department 

Fujitsu Siemens Computers
Qualified Partner 
Microsoft
Certified Partner 
Oracle
Partner Program Member 

Surganova 24-406 
220012
Minsk 
Republic
of Belarus 
ph.:
+375 (17) 262 50 23 
fax:
+375 (17) 262 55 91 
http://www.sis-group.com/ 










Glue and Orion classpath

2002-05-13 Thread Jon Bricker

I'm trying to set up Glue to work on Orion with an app that will use EJBs.  At
this point I made it a web app( .war file) but when I run it it can not fine
things in javax.ejb.*.

Do I need to make the app into an .ear and add my classes to a jar file as
well?  There are no EJBs in the app but it contacts existing EJBs from another
application. 

=
Jon Bricker

You should never settle for the lesser of two Weasels.

__
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com




Re: example of data-source.xml for Oracle 9i needed

2002-05-13 Thread Matthew E. Porter

Darren:
  Does this configuration provide any sort of connection pooling?


-matthew

On Mon, 13 May 2002, Darren Senel wrote:

 This is what I use:

 data-source class=com.evermind.sql.DriverManagerDataSource
 name=OracleDS
 location=jdbc/OracleCoreDS
 xa-location=jdbc/xa/OracleXADS
 ejb-location=jdbc/OracleDS
 connection-driver=oracle.jdbc.driver.OracleDriver
 username=dsenel
 password=mypassword
 url=jdbc:oracle:thin:@172.25.10.132:1521:mydb
 inactivity-timeout=30
 connection-retry-interval=1 /

  [EMAIL PROTECTED] 05/13/02 03:51AM 
 Hi all,
 may somebody provide me with example of of data-source.xml for Oracle
 9i
 that supports CMT (container managed transactions) for Orion 1.5.2 ?

 Thank you in advance

 ITC-M, SIS Company
 Mr. Valeri Kireitchik
 Head of Application Software Department

 Fujitsu Siemens Computers Qualified Partner
 Microsoft Certified Partner
 Oracle Partner Program Member

 Surganova 24-406
 220012 Minsk
 Republic of Belarus
 ph.: +375 (17) 262 50 23
 fax: +375 (17) 262 55 91
 http://www.sis-group.com/









Dynamic Proxies for remote interface wrapper?

2002-05-13 Thread Pletka, John

I'm trying to integrate a third-party security product that allows rules
like can only call methodX on objectY between 9:00 am and 5:00 pm.  It
ties into Weblogic and WebSphere cleanly, but does not have a way to get
into orion.  What I would like to be able to do is either:
1) setup my ejb-jar.xml file to point to a Dynamic Proxy class that
could do the security checks before forwarding the call on to the real class
2) or somehow override the wrappers that orion generates with my own
code.  

Does anyone know of a way to do this?  I can see the java code orion creates
for the wrappers (RemoteInterfaceName_StatelessSessionBeanWrapperXXX.java.)
That would be a perfect place to place the code if it was allowed.  It looks
like it uses a class com.evermind.server.RuntimeSecurityRole to test
whether the call is allowed or not.  I could probably hack this class and
override the logic, but I would think there would be a legitimate way of
accomplishing this.




Orion and JSP

2002-05-13 Thread Krishnan, Sri

Hi,
  I am trying to use jsp s with Orion. Can anyone let me know how do I get
the JSP compiled and displayed on the web browser ?. I know that OC4J
compiles the JSP, just could not figure out how to get the orion do that.

Thanks alot for your help
Sri





Re: Orion and JSP

2002-05-13 Thread Corey Graham

It's simple if you have Orion running successfully.

1.  In you orion's config directory you need to set up a web-app. 
 Usually you use  default-web-site.xml to do this.  For instance add a 
line like:

web-app application=bank name=/home/user/dev/pages 
root=/online-banking /

This holds your JSPs.

2.  Then you can set up an application in your server.xml where all of 
your java classes go,  (you may not need this just to get JSP's to 
work-I'm not sure):

application name=bank path=/home/user/dev/com /

3.  In the location you set up for your web-app in 
default-web-site.xml you need to put a WEB-INF directory that has a 
file called web.xml.  It doesn't have to be very complicated:

?xml version=1.0?
!DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 
2.3//EN http://java.sun.com/j2ee/dtds/web-app_2_3.dtd;

web-app
  display-nameOnline Banking Application/display-name
  descriptionOnline Banking Application/description

  welcome-file-list
welcome-fileindex.jsp/welcome-file
  /welcome-file-list
/web-app

4.  Finally, you must have a META-INF directory where you specified 
your application in step 2, and it has to have a file called 
application.xml:

?xml version=1.0?
!DOCTYPE application PUBLIC -//Sun Microsystems, Inc.//DTD J2EE 
Application 1.2//EN
http://java.sun.com/j2ee/dtds/application_1_2.dtd;

application

  display-nameOnline Banking Application/display-name

  module
web
  web-uri/home/user/dev/pages/web-uri
  context-root//context-root
/web
  /module

5.  Then just use your Orion default URL + the Root you specified 
earlier in step 1 in the form 
http://host_name:port_number/online-banking (if you use default 
port 80 then don't put the : and port number):

http://banking_server.com:8080/online-banking

it should load the index.jsp you specified in web.xml as a default 
home page!  Now just add pages, and change the URL to include a new page:

http://banking_server.com:8080/online-banking/CheckingAccount.jsp

It should load that new page.

Good luck,

Corey


Krishnan, Sri wrote:

Hi,
  I am trying to use jsp s with Orion. Can anyone let me know how do I get
the JSP compiled and displayed on the web browser ?. I know that OC4J
compiles the JSP, just could not figure out how to get the orion do that.

Thanks alot for your help
Sri


-- 
Corey J. Graham - Software Developer
Keystroke Technology Solutions
1511 3rd Ave.  Suite 700, Seattle, Wa 98101
(206) 576-4557







Re: RV: Some questions about orion-ejb-xml.jar

2002-05-13 Thread Scott Farquhar

The correct place is to place them in the META-INF directory, next to 
your other deployment files.  It *used* to be the orion directory, but 
that was changed a long time ago.

This tutorial should help you understand the orion xml files more:

   http://kb.atlassian.com/content/atlassian/howto/orionxml.jsp

Cheers,
Scott

Andrés Escudero Apesteguía wrote:
 
 I've been testing Orion the last three weeks. In Orion web, I've read to 
 put orion-ejb-jar.xml under orion directory for an EJB. In some other 
 sites, this file must reside under META-INF directory. Which is the 
 correct place to put orion-ejb-jar.xml?
 
  
 
 I've assumed that the correct answer to my first question is orion. When 
 Orion deploys my application, it respects some of the parameters I've 
 written, but it deletes some of them. Can anyone help me on this problem?
 
  
 
 And the last question. Is there any relation between orion-ejb-jar.xml, 
 ejb-jar.xml (under META-INF), and the parameters location and name of an 
 EJB. I've tried to put a location which was different to its ejb name 
 and Orion has not noticed the change.
 
  
 
 Thank in advance,
 
 Andrés.
 
  
 
  
 
  
 
 
 
 Andrés Escudero Apesteguía
 TB Solutions
 Desarrollo eBanking
 [EMAIL PROTECTED]
 tlf: +34 948 173 319
 fax: +34 948 172 235
 web: http://www.tb-solutions.com http://www.tb-solutions.com/
 
 


-- 
Scott Farquhar :: [EMAIL PROTECTED]

Atlassian :: http://www.atlassian.com
  Supporting YOUR J2EE World





RE: Dynamic Proxies for remote interface wrapper?

2002-05-13 Thread The elephantwalker

The orion-ejb-jar has the wrapper class noted. You can replace this class
with your own, as long as you forward to the wrapper.

With kind regards,

the elephantwalker
www.elephantwalker.com


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Pletka, John
Sent: Monday, May 13, 2002 12:25 PM
To: Orion-Interest
Subject: Dynamic Proxies for remote interface wrapper?


I'm trying to integrate a third-party security product that allows rules
like can only call methodX on objectY between 9:00 am and 5:00 pm.  It
ties into Weblogic and WebSphere cleanly, but does not have a way to get
into orion.  What I would like to be able to do is either:
1) setup my ejb-jar.xml file to point to a Dynamic Proxy class that
could do the security checks before forwarding the call on to the real class
2) or somehow override the wrappers that orion generates with my own
code.

Does anyone know of a way to do this?  I can see the java code orion creates
for the wrappers (RemoteInterfaceName_StatelessSessionBeanWrapperXXX.java.)
That would be a perfect place to place the code if it was allowed.  It looks
like it uses a class com.evermind.server.RuntimeSecurityRole to test
whether the call is allowed or not.  I could probably hack this class and
override the logic, but I would think there would be a legitimate way of
accomplishing this.





Re: testing

2002-05-13 Thread sudha parimala
 
 David Tunkrans [EMAIL PROTECTED] wrote: 




What are u testing for
  
   Yahoo! Autos - everything you wanted to know about cars and bikes 


Re: example of data-source.xml for Oracle 9i needed

2002-05-13 Thread gottfried

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Mon, 13 May 2002, Matthew E. Porter wrote:

 Darren:
   Does this configuration provide any sort of connection pooling?

nop, the pooled-location is missing. we have setup a datasource
like this and i hope this is the correct way. sorry, but this
example is for oracle 8.1.7. i think this should also work for
oracle 9 but i am not sure.

data-source
class=com.evermind.sql.DriverManagerDataSource
name=Oracle Datasource MessageLogger
location=jdbc/MessageLogger
pooled-location=jdbc/pooled/MessageLogger
connection-driver=oracle.jdbc.driver.OracleDriver
username=user
password=pass
url=jdbc:oracle:thin:1.2.3.4:1521:DATABASE
max-connections=5
min-connections=2
inactivity-timeout=30
schema=database-schemas/oracle.xml /


- -- 
cu,
goofy

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.4 (GNU/Linux)
Comment: pgpenvelope 2.10.2 - http://pgpenvelope.sourceforge.net/

iD8DBQE84Jg1rMda10jkyDYRAqqFAKCyE+W8OQj8upIn1oSMee9NGfSDZQCglOhw
ErgUx741TU2GLU2xRSw823I=
=B1b9
-END PGP SIGNATURE-





RE: Linux + Orion + IBM DB2

2002-05-12 Thread The elephantwalker

Denis,

Take a look at this message, it may help you. Specifically, you need to use
a db2.xml schema in your config/data-base-schemas directory, and refer to
this schema in your data-sources.xml file. I would also test out your
network configuration by using a jdbc client (netbeans, for example, has an
excellent client for jdbc in the netbeans ide).

http://www.mail-archive.com/orion-interest%40orionserver.com/msg16991.html

With kind regards,

the elephantwalker
www.elephantwalker.com


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Denis Litvinov
Sent: Saturday, May 11, 2002 9:53 PM
To: Orion-Interest
Subject: Linux + Orion + IBM DB2


Hello!
Can anyone describe in details a running configuration of the subject?
I try to deploy an application which works on Windows perfectly. But on
Linux Orion sometimes can't start up normally (it seems a deadlock),
sometimes it gives out errors like SQL10007N (DB2) etc.
I think the problem is in configuration, but don't know how to configure
properly. The application with HSQL works fine.

Denis







testing

2002-05-12 Thread David Tunkrans






SV: tool to print all remote method invokations of EJBs

2002-05-03 Thread Jesper Rasmussen
Title: tool to print all remote method invokations of EJBs



Why 
not use a logger?
I find 
using a logger extremly helpfull in tracking how both the clients and the server 
acts.
I use 
Log4J, but in j2sdk 1.4 the logging package is also 
available.
As far 
as i can see,itdoes not matter much which one, one 
chooses.
I 
chooseapaches log4j as i have some tools using jdk 1.3,and it has 
alot more features thanthe sun one.

cheers
Jesper

  -Oprindelig meddelelse-Fra: 
  [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]]Sendt: 2. maj 2002 
  09:34Til: Orion-InterestEmne: tool to print all remote 
  method invokations of EJBs 
  Hi all, 
  can somebody recommend any toll that allows to 
  print all (or selected) remote method invokations of EJBs on Orion 1.5.2. I 
  need to have it in real-time so step-by-step tracing is not a 
  solution.
  Thank you in advance 
  ITC-M, SIS Company Mr. Valeri Kireitchik Head 
  of Application Software Department 
  
  Fujitsu Siemens Computers Qualified 
  Partner Microsoft Certified Partner Oracle Partner Program Member 
  Surganova 24-406 220012 
  Minsk Republic of Belarus ph.: +375 
  (17) 262 50 23 fax: +375 
  (17) 262 55 91 http://www.sis-group.com/ 


Starting Orion as a service in Solaris 8

2002-05-03 Thread Vu Le Hung

Hi all,
I've been trying to start Orion as a service in SunOS 5.8 as follow but
it failed:
- Create an executable script file /etc/rc.d/init.d/orion
containing following lines
#!/bin/sh
#Change to orion directory
cd /usr/local/orion
#Start orion application server
java -jar orion.jar
After booting up the system, I can goto Orion welcome page by typing
http://myhost/ but I cannot get any JSP pages displayed properly.
Any ideas ? Maybe the servlet engine did not start ?
Thanks for your help in advance.

Yours,

Vu












SV: Starting Orion as a service in Solaris 8

2002-05-03 Thread Magnus Rydin

How did it fail? 
What error message did you get?
What does the logs tell you?

With regards,
Magnus Rydin

 -Ursprungligt meddelande-
 Från: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED]] För Vu Le Hung
 Skickat: den 3 maj 2002 09:44
 Till: Orion-Interest
 Ämne: Starting Orion as a service in Solaris 8
 
 
 Hi all,
 I've been trying to start Orion as a service in SunOS 5.8 as 
 follow but it failed:
   - Create an executable script file 
 /etc/rc.d/init.d/orion containing following lines
   #!/bin/sh
   #Change to orion directory
   cd /usr/local/orion
   #Start orion application server
   java -jar orion.jar
 After booting up the system, I can goto Orion welcome page by 
 typing http://myhost/ but I cannot get any JSP pages 
 displayed properly. Any ideas ? Maybe the servlet engine did 
 not start ? Thanks for your help in advance.
 
 Yours,
 
 Vu
 
 
 
 
 
 
 
 





Re: Starting Orion as a service in Solaris 8

2002-05-03 Thread Johan Fredriksson

Did you start the service as root? And did you remember to copy tools.jar to
the /usr/local/orion ?

- Original Message -
From: Vu Le Hung [EMAIL PROTECTED]
To: Orion-Interest [EMAIL PROTECTED]
Sent: Friday, May 03, 2002 9:44 AM
Subject: Starting Orion as a service in Solaris 8


 Hi all,
 I've been trying to start Orion as a service in SunOS 5.8 as follow but
 it failed:
   - Create an executable script file /etc/rc.d/init.d/orion
 containing following lines
 #!/bin/sh
 #Change to orion directory
 cd /usr/local/orion
 #Start orion application server
 java -jar orion.jar
 After booting up the system, I can goto Orion welcome page by typing
 http://myhost/ but I cannot get any JSP pages displayed properly.
 Any ideas ? Maybe the servlet engine did not start ?
 Thanks for your help in advance.

 Yours,

 Vu















Re: Starting Orion as a service in Solaris 8

2002-05-03 Thread Leon John


put the port also

From: Vu Le Hung [EMAIL PROTECTED]
Reply-To: Orion-Interest [EMAIL PROTECTED]
To: Orion-Interest [EMAIL PROTECTED]
Subject: Starting Orion as a service in Solaris 8
Date: Fri, 3 May 2002 14:44:14 +0700

Hi all,
I've been trying to start Orion as a service in SunOS 5.8 as follow but
it failed:
   - Create an executable script file /etc/rc.d/init.d/orion
containing following lines
   #!/bin/sh
   #Change to orion directory
   cd /usr/local/orion
   #Start orion application server
   java -jar orion.jar
After booting up the system, I can goto Orion welcome page by typing
http://myhost/ but I cannot get any JSP pages displayed properly.
Any ideas ? Maybe the servlet engine did not start ?
Thanks for your help in advance.

Yours,

Vu











_
Join the world’s largest e-mail service with MSN Hotmail.
http://www.hotmail.com





RE: Please Unsubscribe me!!!!

2002-05-03 Thread Krishnan, Sri

Hi
  Could somebody point to the right place to find
about the tag libs that orion provides for the Database 
hookup

Thanks
Sri

-Original Message-
From: Krishnan, Sri 
Sent: Monday, April 29, 2002 11:15 AM
To: Orion-Interest
Subject: Please Unsubscribe me


Please Unsubscribe me




what is LDAP ???

2002-05-02 Thread gusl



Hi all,
What is LDAP ??? How to use iplanet directory server 
???
Who know some articles or linksabout that 
???


SV: Initial context problem.

2002-05-02 Thread Jesper Rasmussen

Hi Alex,
Thanks - i got an answer from Scott that solved the problem. I did not
want to burden the list so i did not send reply to the list, as i do
now.

No the code is not the correct code, but pseudo real code - that is a
bit copy-paste and a bit of editing.
It was only ment to be informative.
Heh and no the code in the catch block is not there. I just pasted it so
simulate/explain the problem.

Next time (if a such arises) ill be sure to paste correct code :)

cheers
Jesper

-Oprindelig meddelelse-
Fra: Alex Paransky [mailto:[EMAIL PROTECTED]]
Sendt: 1. maj 2002 17:06
Til: Orion-Interest
Emne: RE: Initial context problem.


Not sure if the code you pasted is correct, however, you are missing a
new
keyword in front of the InitialContext().  Also, in your second
try/catch
block you are missing a call to new InitialContext().  I might be picky,
but
the source code you posted is not at all the source code that you are
using
(unless are you using a strange version of the Java Complier).

Can you isolate your problem into a small piece of code that works, and
try
to post again?

Thanks.

-AP_
http://www.alexparansky.com
Java/J2EE Architect/Consultant
http://www.myprofiles.com/member/profile/apara_personal

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Jesper
Rasmussen
Sent: Wednesday, May 01, 2002 3:10 AM
To: Orion-Interest
Subject: Initial context problem.


Hi all,
Im trying to make an application which askes for the login and password
to connect to the application deployed on 1.5.4 orion server.

It works fine if i specify the correct login(admin). However if I uses
some wrong cridentials(admin1) i get an exception which also is fine.

HOWEVER when i try to login again, without restarting the application)
using the correct info I still get the old exception
(javax.naming.AuthenticationException: Invalid username/password for
beansApp (admin1)).

If i close the app and login again with the correct it works fine.

to me it seems like the enviroment i pass to the constructor of
InitialContext is ignored the second time.

I have tried to use close() to no avail.

Does anyone have a clue?? Thanks!

cheers
JEsper

--more or less the code that cause the bug!
server=ormi://127.0.0.1/beansApp;
login=admin1;
password=123;
env = new java.util.Hashtable();
env.put(java.naming.provider.url,server);
env.put(java.naming.factory.initial,com.evermind.server.ApplicationCl
ientInitialContextFactory);
env.put(java.naming.security.principal,login);
env.put(java.naming.security.credentials,password);
InitialContext initial;

try {
   initial = InitialContext(env);
catch(NamingException e) {
   try {
  login=admin;
  env = new java.util.Hashtable();
  env.put(java.naming.provider.url,server);

env.put(java.naming.factory.initial,com.evermind.server.ApplicationCl
ientInitialContextFactory);
  env.put(java.naming.security.principal,login);
  env.put(java.naming.security.credentials,password);
   } catch(NamingException ex) {
//ACK. chould not get here!!!
   }







Remove me

2002-05-02 Thread rajender anand

Please remove me from the orion interest list

thanks
rajender anand
_
Click below to visit monsterindia.com and review jobs in India or 
Abroad
http://monsterindia.rediff.com/jobs





Variable contained illegal space Error on CMP Bean deploy????

2002-05-02 Thread Mike Shoemaker

Anyone run into this error?  What does it mean?  

Thanks
Mike





SV: Remove me

2002-05-02 Thread Magnus Rydin

Please use the unsubscribe function at our site for unsubscription or
send a mail to [EMAIL PROTECTED] with a body of
unsubscribe to unsubscribe, do not bother the readers of this list
with unsubscribe requests.

 -Ursprungligt meddelande-
 Från: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED]] För rajender anand
 Skickat: den 2 maj 2002 14:35
 Till: Orion-Interest
 Ämne: Remove me
 
 
 Please remove me from the orion interest list
 
 thanks
 rajender anand 
 _
 Click below to visit monsterindia.com and review jobs in India or 
 Abroad
 http://monsterindia.rediff.com/jobs
 





RE: how to shutdown orion app server?

2002-05-02 Thread Michael C. Han



You 
can shut it down by binding the the 
ApplicationServerAdministrator.

/** 
OrionServerAdmin.java** Created on May 1, 2002, 10:55 
PM*/

package 
com.objectparadigms.util.admin;

import 
com.objectparadigms.util.exception.InitializationException;

import 
com.evermind.server.administration.ApplicationServerAdministrator;import 
java.rmi.RemoteException;import java.util.Arrays;import 
java.util.List;import java.util.Properties;import 
javax.naming.Context;import javax.naming.InitialContext;import 
javax.rmi.PortableRemoteObject;

/ @author Michael C. 
Han* @version $Revision: 1.1 $*/public class 
OrionServerAdmin {

 private static final String 
_ORION_CTX_FACTORY =  
"com.evermind.server.rmi.RMIInitialContextFactory"; 
private ApplicationServerAdministrator _admin; 
 private static final String _HOST_PARAM = 
"-h"; private static final String _PORT_PARAM = 
"-p"; private static final String _USERNAME_PARAM = 
"-u"; private static final String _PASSWORD_PARAM = 
"-pwd"; private static final String _ACTION_PARAM = 
"-action"; private static final String _STOP_ACTION = 
"stop"; private static final String _RESTART_ACTION = 
"restart";  private static String 
_getParam(String paramKey, List paramsList) 
{ int index = 
paramsList.indexOf(paramKey); if 
(index == -1) 
{ 
showUsage(); 
} return 
(String)paramsList.get(index + 1); } 
 private static void showUsage() 
{ System.out.println("Usage: 
OrionServerAdmin -h hostname " + 
 
"-p port -u username -pwd password " 
+ 
" -action restart | 
stop"); 
System.exit(1); } 
 public static final void main(String[] args) 
{ if (args.length != 10) 
{ 
showUsage(); 
} List argsList = 
Arrays.asList(args); String host = 
_getParam(_HOST_PARAM, argsList); 
String port = _getParam(_PORT_PARAM, 
argsList); String userName = 
_getParam(_USERNAME_PARAM, 
argsList); String password = 
_getParam(_PASSWORD_PARAM, 
argsList); String action = 
_getParam(_ACTION_PARAM, argsList);

 try 
{ 
OrionServerAdmin svrAdmin = 
 
new OrionServerAdmin(host, port, userName, 
password); 
if (action.equals(_RESTART_ACTION)) 
{ 
svrAdmin.restart(); 
} else if 
(action.equals(_STOP_ACTION)) 
{ 
svrAdmin.stop(); 
} else 
{ 
showUsage(); 
} 
} catch (Exception e) 
{ 
e.printStackTrace(); 
} } /** Creates new OrionServerAdmin 
*/ public OrionServerAdmin(String host, String 
port, 
String userName, String password)  throws 
InitializationException { 
Properties props = new 
Properties(); 
props.setProperty(Context.INITIAL_CONTEXT_FACTORY, 
_ORION_CTX_FACTORY); String url = 
"ormi://" + host + ":" + port; 
props.setProperty(Context.PROVIDER_URL, 
url); 
props.setProperty(Context.SECURITY_PRINCIPAL, 
userName); 
props.setProperty(Context.SECURITY_CREDENTIALS, 
password); try 
{ Context 
initialCtx = new 
InitialContext(props); 
Object obj = 
initialCtx.lookup("java:comp/ServerAdministrator"); 
_admin 
= 
(ApplicationServerAdministrator) 
PortableRemoteObject.narrow(obj, 
 
ApplicationServerAdministrator.class); 
} catch (Exception e) 
{ throw 
new 
InitializationException(e.toString()); 
} }  public 
void stop() throws RemoteException 
{ _admin.shutdown("localhost", 
true); }  
public void restart() throws RemoteException 
{ 
_admin.restart("localhost"); }

}

  -Original Message-From: 
  [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]]On Behalf Of 
  marsSent: Wednesday, May 01, 2002 9:02 PMTo: 
  Orion-InterestSubject: Re: how to shutdown orion app 
  server?
  use the follow command 
  killall -15 java
  
  
- Original Message - 
From: 
gusl 
To: Orion-Interest 
Sent: Sunday, April 28, 2002 11:25 
AM
Subject: how to shutdown orion app 
server?

Hi all,
 I want to know how to shutdown orion 
app server ??? Use kill ???(under 
linux)


Re: what is LDAP ???

2002-05-02 Thread Giuseppe Galli

a tutorial
http://java.sun.com/products/jndi/tutorial/ldap/models/v2.html

and a ldap programming in Java
http://developer.java.sun.com/developer/Books/ldap/

HTH
Pino

At 16.37 02/05/2002, gusl wrote:
Hi all,
What is LDAP ??? How to use iplanet directory server ???
Who know some articles or links about that ???





Re: Variable contained illegal space Error on CMP Bean deploy????

2002-05-02 Thread Ray Harrison
 Mike -
I've never come across this error, but perhaps if you provide more information (maybe your ejb-jar.xml) we can take a look.

Cheers
Ray
 Mike Shoemaker [EMAIL PROTECTED] wrote: 
Anyone run into this error? What does it mean? ThanksMikeDo You Yahoo!?
Yahoo! Health - your guide to health and wellness

RE: Unsubscription and autoreplies

2002-05-02 Thread Linda Lott

NEITHER ONE OF THOSE WORK!!!  I HAVE BEEN TRYING FOR WEEKS TO GET OFF THIS
LIST!

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Magnus Rydin
Sent: Thursday, May 02, 2002 12:30 AM
To: Orion-Interest
Subject: Unsubscription and autoreplies


Please use the unsubscribe function at our site for unsubscription or
send a mail to [EMAIL PROTECTED] with a body of
unsubscribe to unsubscribe, do not bother the readers of this list
with unsubscribe requests.

Please turn off auto-reply functionality for messages sent from this
list if you are using your mail-clients auto-reply functionality. There
is no standard header to identify an auto-reply by, and therefore its
hard for us to scan for such messages successfully (besided the varity
of words used in subject by different clients, there is also varity
amongst different locale versions of these clients and so on).

With regards,
Magnus Rydin







Re: Variable contained illegal space Error on CMP Bean deploy????

2002-05-02 Thread Mike Shoemaker

This was due to having a custom primary key class and specifying both
prim-key-class and primkey-field in the ejb-jar.xml

Once I removed the primkey-field, it deployed without a problem.  

Mike
- Original Message - 
From: Mike Shoemaker [EMAIL PROTECTED]
To: Orion-Interest [EMAIL PROTECTED]
Sent: Thursday, May 02, 2002 8:19 AM
Subject: Variable contained illegal space Error on CMP Bean deploy


 Anyone run into this error?  What does it mean?  
 
 Thanks
 Mike
 
 





RE: ORION 1.5.4 session bean serialization failed

2002-05-01 Thread Dvornikov Victor
Title: Meddelande



Am I 
alone with this problem?

Serialization of the session bean : JNDI lookup in the 
getEJBObject failed as if there is no the name sought.
I 
checked the name inside the readObject. It's OK. 
Although thisproblem (I fear to say bug)is 
not fatal. It's annoying.


 private void 
readObject(ObjectInputStream s) throws IOException, 
ClassNotFoundException { 
s.defaultReadObject(); Handle handle = 
(Handle)s.readObject();
 Object obj= 
handle.getEJBObject();myRef = 
(Fluid)PortableRemoteObject.narrow(obj,MyClass.class);
 }Sincerely,

Victor Dvornikov,
IDE 
Technologies



Please Unsubscribe me

2002-05-01 Thread Abhishek Agrawal,ASDC Chennai
Title: Please Unsubscribe me





Please Unsubscribe me


 
Disclaimer: 
This document is intended for transmission to the named recipient only. If you are not that person, you should note that legal rights reside in this document and you are not authorized to access, read, disclose, copy, use or otherwise deal with it and any such actions are prohibited and may be unlawful. The views expressed in this document are not necessarily those of HCL Technologies Ltd. Notice is hereby given that no representation, contract or other binding obligation shall be created by this e-mail, which must be interpreted accordingly. Any representations, contractual rights or obligations shall be separately communicated in writing and signed in the original by a duly authorized officer of the relevant company. If you received this email in error, please immediately notify: [EMAIL PROTECTED] 







RE: URGENT: Big issues with CMP 2.x and application-client !!!!

2002-05-01 Thread Gavin Spurling

I believe it only does this on fields named password as this can be a
reserved word in some DBs, it will do this if its autogenerating the
tables for you. You can always edit the orion-ejb-jar.xml file and
change the mapping to what suits you.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Vincent
Faidherbe
Sent: 30 April 2002 15:12
To: Orion-Interest
Subject: URGENT: Big issues with CMP 2.x and application-client 


Hello,

I'm running Orion on a SuSe Linux 7.0 with a Sun JDK 1.3.1_03. I've 
encountered two problems :
1. When using CMP 2.x entity bean, Orion adds  an underscore to the name

of some fields for the persitence-name and consequently, the generated 
SQL doesn't work ... Example : cmp-field-mapping name=password 
persistence-name=password_ /
2. I've written n command-line client to different EJBs. If the 
application-client.xml bound with the client refers to an unknown remote

interface, the JVM of orion crashes with a stack overflow error.

Any idea ?

-- 
Vincent Faidherbe
icogs

Do you think C++ is lovable? Unless you're into SM (Software
Masochism), probably not. (JLG)






Initial context problem.

2002-05-01 Thread Jesper Rasmussen

Hi all,
Im trying to make an application which askes for the login and password
to connect to the application deployed on 1.5.4 orion server.

It works fine if i specify the correct login(admin). However if I uses
some wrong cridentials(admin1) i get an exception which also is fine.

HOWEVER when i try to login again, without restarting the application)
using the correct info I still get the old exception
(javax.naming.AuthenticationException: Invalid username/password for
beansApp (admin1)).

If i close the app and login again with the correct it works fine.

to me it seems like the enviroment i pass to the constructor of
InitialContext is ignored the second time.

I have tried to use close() to no avail.

Does anyone have a clue?? Thanks!

cheers
JEsper

--more or less the code that cause the bug!
server=ormi://127.0.0.1/beansApp;
login=admin1;
password=123;
env = new java.util.Hashtable();
env.put(java.naming.provider.url,server);
env.put(java.naming.factory.initial,com.evermind.server.ApplicationCl
ientInitialContextFactory);
env.put(java.naming.security.principal,login);
env.put(java.naming.security.credentials,password);
InitialContext initial;

try {
   initial = InitialContext(env);
catch(NamingException e) {
   try {
  login=admin;
  env = new java.util.Hashtable();
  env.put(java.naming.provider.url,server);
 
env.put(java.naming.factory.initial,com.evermind.server.ApplicationCl
ientInitialContextFactory);
  env.put(java.naming.security.principal,login);
  env.put(java.naming.security.credentials,password);   
   } catch(NamingException ex) {
//ACK. chould not get here!!!
   }




Re: SOAP and Orion

2002-05-01 Thread Jon Bricker

Please forward me on to whomever solved this.  I'm using orion 1.5.4 so an
upgrade is out of the question.

I would like to talk to someone and see how they set up orion, their
application and their classpath.

--- [EMAIL PROTECTED] wrote:
 Hi Jon,
 We had a similar sounding problem with SOAP and when
 we upgraded to orion 1.5.2 the problem was fixed.  I
 wasn't the one working on the problem so I don't have
 much more info.
 Hope this helps.
 
 -Heath
 
 --- Jon Bricker [EMAIL PROTECTED] wrote:
  I really need some help getting a SOAP application
  to work on orion.
  
  I have an application set up with a servlet front
  that will call the SOAP
  rpcrouter.  All in all the application is simular to
  the one in the Java SOAP
  book by Hernry Bequet. I put the soap.jar in my
  WEB-INF/lib in my application.
  
  The problem I'm having is that the SOAP call can
  never find my class that is in
  my deployment discriptor. I've heard that this is a
  classpath issue but I just
  can not figure out what the problem is.
  
  
  here is the error:
  Ouch, the call failed: 
Fault Code   = SOAP-ENV:Server.BadTargetObjectURI
Fault String = Unable to resolve target object:
  com.lilly.javaatg.catd.servlet.DataLoaderImpl
  
  
  
  I have soap in one location on my machine
  
  Here is the deploymentDescriptor.xml
  isd:service
 
 xmlns:isd=http://xml.apache.org/xml-soap/deployment;
  id=urn:CanDEDataMgr
isd:provider type=java scope=Request
  methods=isUserValid
isd:java
 
 class=com.lilly.javaatg.catd.servlet.DataLoaderImpl
  static=false/  
/isd:provider
 
 

isd:faultListenerorg.apache.soap.server.DOMFaultListener/isd:faultListener
  /isd:service
  
  Here is the call I use to deploy it
  
  java org.apache.soap...
  http://localhost:8088/servlet/rpcrouter deploy
  deplymentDescriptor.xml
  
  here is my test code to call it.
  
  URL url = new
 
 URL(http://localhost:8088/cande/servlet/rpcrouter;);
  // Build the call.
  Call call = new Call ();
  call.setTargetObjectURI (urn:CanDEDataMgr);
  call.setMethodName (isUserValid);
  Vector params = new Vector ();
  params.addElement (new Parameter(userID,
  String.class, userID,
  Constants.NS_URI_SOAP_ENC));
  params.addElement (new Parameter(password,
  String.class, password,
  Constants.NS_URI_SOAP_ENC));
  call.setParams (params);
  
  Here is my web.xml mappings
  servlet
  servlet-namecandeLoad/servlet-name
  display-nameCATD CanDE Patient Data load
  Servlet/display-name
  descriptionno description/description
 
 

servlet-classcom.lilly.javaatg.catd.servlet.CanDEDataLoad.CanDELoadServlet/servlet-class
/servlet
!-- SOAP rpcrouter servlet --
  servlet
  servlet-namerpcrouter/servlet-name
  display-nameApache-SOAP RPC
  Router/display-name
  descriptionno description/description
 
 
 servlet-classorg.apache.soap.server.http.RPCRouterServlet/servlet-class
  init-param
param-namefaultListener/param-name
   
 
 param-valueorg.apache.soap.server.DOMFaultListener/param-value
  /init-param
/servlet

  !-- Servlet Name to URL Pattern Recognition Mapping
  --
   servlet-mapping
  servlet-namecandeLoad/servlet-name
  url-pattern/candeLoad/url-pattern
/servlet-mapping
servlet-mapping
  servlet-namerpcrouter/servlet-name
  url-pattern/rpcrouter/url-pattern
/servlet-mapping
  
  =
  Jon Bricker
  
  You should never settle for the lesser of two
  Weasels.
  
  __
  Do You Yahoo!?
  Yahoo! Health - your guide to health and wellness
  http://health.yahoo.com
  
 
 
 __
 Do You Yahoo!?
 Yahoo! Health - your guide to health and wellness
 http://health.yahoo.com
 


=
Jon Bricker

You should never settle for the lesser of two Weasels.

__
Do You Yahoo!?
Yahoo! Health - your guide to health and wellness
http://health.yahoo.com




RE: URGENT: Big issues with CMP 2.x and application-client !!!!

2002-05-01 Thread Ray Harrison
 Hi
For #1 below - adding the '_' for persistence names is likely due to the database schema definition in your config/database-schemas directory for your particular data source. It probably has 'password' as a disallowed field and hence will add the '_' to the field name - if you have an existing table which does in fact have the field 'password', then remove this from your disallowed field list, make the change in orion-ejb-jar.xml and restart Orion and that should take of it.
For#2 - haven't seen that one before.
Cheers
Ray
 Gavin Spurling [EMAIL PROTECTED] wrote: 
I believe it only does this on fields named "password" as this can be areserved word in some DBs, it will do this if its autogenerating thetables for you. You can always edit the orion-ejb-jar.xml file andchange the mapping to what suits you.-Original Message-From: [EMAIL PROTECTED][mailto:[EMAIL PROTECTED]] On Behalf Of VincentFaidherbeSent: 30 April 2002 15:12To: Orion-InterestSubject: URGENT: Big issues with CMP 2.x and application-client Hello,I'm running Orion on a SuSe Linux 7.0 with a Sun JDK 1.3.1_03. I've encountered two problems :1. When using CMP 2.x entity bean, Orion adds an underscore to the nameof some fields for the persitence-name and consequently, the generated SQL doesn't work ... Example : persistence!
-name="password_" /2. I've written n command-line client to different EJBs. If the application-client.xml bound with the client refers to an unknown remoteinterface, the JVM of orion crashes with a stack overflow error.Any idea ?-- Vincent Faidherbeicogs"Do you think C++ is lovable? Unless you're into SM (SoftwareMasochism), probably not." (JLG)Do You Yahoo!?
Yahoo! Health - your guide to health and wellness

RE: Initial context problem.

2002-05-01 Thread Alex Paransky

Not sure if the code you pasted is correct, however, you are missing a new
keyword in front of the InitialContext().  Also, in your second try/catch
block you are missing a call to new InitialContext().  I might be picky, but
the source code you posted is not at all the source code that you are using
(unless are you using a strange version of the Java Complier).

Can you isolate your problem into a small piece of code that works, and try
to post again?

Thanks.

-AP_
http://www.alexparansky.com
Java/J2EE Architect/Consultant
http://www.myprofiles.com/member/profile/apara_personal

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Jesper
Rasmussen
Sent: Wednesday, May 01, 2002 3:10 AM
To: Orion-Interest
Subject: Initial context problem.


Hi all,
Im trying to make an application which askes for the login and password
to connect to the application deployed on 1.5.4 orion server.

It works fine if i specify the correct login(admin). However if I uses
some wrong cridentials(admin1) i get an exception which also is fine.

HOWEVER when i try to login again, without restarting the application)
using the correct info I still get the old exception
(javax.naming.AuthenticationException: Invalid username/password for
beansApp (admin1)).

If i close the app and login again with the correct it works fine.

to me it seems like the enviroment i pass to the constructor of
InitialContext is ignored the second time.

I have tried to use close() to no avail.

Does anyone have a clue?? Thanks!

cheers
JEsper

--more or less the code that cause the bug!
server=ormi://127.0.0.1/beansApp;
login=admin1;
password=123;
env = new java.util.Hashtable();
env.put(java.naming.provider.url,server);
env.put(java.naming.factory.initial,com.evermind.server.ApplicationCl
ientInitialContextFactory);
env.put(java.naming.security.principal,login);
env.put(java.naming.security.credentials,password);
InitialContext initial;

try {
   initial = InitialContext(env);
catch(NamingException e) {
   try {
  login=admin;
  env = new java.util.Hashtable();
  env.put(java.naming.provider.url,server);

env.put(java.naming.factory.initial,com.evermind.server.ApplicationCl
ientInitialContextFactory);
  env.put(java.naming.security.principal,login);
  env.put(java.naming.security.credentials,password);
   } catch(NamingException ex) {
//ACK. chould not get here!!!
   }






Please unsubscribe me

2002-05-01 Thread Erinn Freypons




__
Get your FREE personalized e-mail at http://www.canada.com




Please Unsubscribe me

2002-05-01 Thread korosh

Please Unsubscribe me





EJB Caching

2002-05-01 Thread Derek Akers

How do I remove a particular EJB instance (SLSB) from orion's EJB cache?

I acquire a handle to the EJB through:

Context context = new InitialContext();
Object boundObject = context.lookup(MyEJB);
MyEJBHome myEjbh =
(MyEJBHome)PortableRemoteObject.narrow(boundObject,MyEJBHome.class);
MyEJBRemote myEjbr = procCon.create();

I then store this remote reference in the user session by:

session.setAttribute(myBean, myEjbr);

When I am finished with the EJB, I call:

session.removeAttribute(myBean);

This seems to work fine if the code handled by the EJB executes
properly.  However, if an error is encountered by the EJB, future
attempts to use this part of the application instead of a new EJB
instance being created for use, the former cached EJB is used, and it is
still in its error state.  Logging the user out and back in again seems
to have no effect.  Any ideas on how to remove this EJB (and only this
EJB) from orion's EJB container cache?

Derek Akers
Director of Product Development
Eldan Software LImited
(416) 341-0070
www.eldan.com
-
We build software for people, not computers


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Alex Paransky
Sent: Wednesday, May 01, 2002 11:06 AM
To: Orion-Interest
Subject: RE: Initial context problem.


Not sure if the code you pasted is correct, however, you are missing a
new keyword in front of the InitialContext().  Also, in your second
try/catch block you are missing a call to new InitialContext().  I might
be picky, but the source code you posted is not at all the source code
that you are using (unless are you using a strange version of the Java
Complier).

Can you isolate your problem into a small piece of code that works, and
try to post again?

Thanks.

-AP_
http://www.alexparansky.com
Java/J2EE Architect/Consultant
http://www.myprofiles.com/member/profile/apara_personal

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Jesper
Rasmussen
Sent: Wednesday, May 01, 2002 3:10 AM
To: Orion-Interest
Subject: Initial context problem.


Hi all,
Im trying to make an application which askes for the login and password
to connect to the application deployed on 1.5.4 orion server.

It works fine if i specify the correct login(admin). However if I uses
some wrong cridentials(admin1) i get an exception which also is fine.

HOWEVER when i try to login again, without restarting the application)
using the correct info I still get the old exception
(javax.naming.AuthenticationException: Invalid username/password for
beansApp (admin1)).

If i close the app and login again with the correct it works fine.

to me it seems like the enviroment i pass to the constructor of
InitialContext is ignored the second time.

I have tried to use close() to no avail.

Does anyone have a clue?? Thanks!

cheers
JEsper

--more or less the code that cause the bug!
server=ormi://127.0.0.1/beansApp;
login=admin1;
password=123;
env = new java.util.Hashtable();
env.put(java.naming.provider.url,server);
env.put(java.naming.factory.initial,com.evermind.server.ApplicationCl
ientInitialContextFactory);
env.put(java.naming.security.principal,login);
env.put(java.naming.security.credentials,password);
InitialContext initial;

try {
   initial = InitialContext(env);
catch(NamingException e) {
   try {
  login=admin;
  env = new java.util.Hashtable();
  env.put(java.naming.provider.url,server);

env.put(java.naming.factory.initial,com.evermind.server.ApplicationCl
ientInitialContextFactory);
  env.put(java.naming.security.principal,login);
  env.put(java.naming.security.credentials,password);
   } catch(NamingException ex) {
//ACK. chould not get here!!!
   }







Re: how to shutdown orion app server?

2002-05-01 Thread mars



use the follow command 
killall -15 java


  - Original Message - 
  From: 
  gusl 
  To: Orion-Interest 
  Sent: Sunday, April 28, 2002 11:25 
AM
  Subject: how to shutdown orion app 
  server?
  
  Hi all,
   I want to know how to shutdown orion app 
  server ??? Use kill ???(under linux)


Unsubscription and autoreplies

2002-05-01 Thread Magnus Rydin

Please use the unsubscribe function at our site for unsubscription or
send a mail to [EMAIL PROTECTED] with a body of
unsubscribe to unsubscribe, do not bother the readers of this list
with unsubscribe requests.

Please turn off auto-reply functionality for messages sent from this
list if you are using your mail-clients auto-reply functionality. There
is no standard header to identify an auto-reply by, and therefore its
hard for us to scan for such messages successfully (besided the varity
of words used in subject by different clients, there is also varity
amongst different locale versions of these clients and so on).

With regards,
Magnus Rydin






RE: Message Driven Beans

2002-04-30 Thread Justin Wood

Implementing a Message-Driven Bean in Orion.

(Tested with orion 1.5.4)

1.) ==  The MDB code - LogBean

package mycode.ejb.mdb;

import javax.ejb.*;
import javax.jms.*;

public class LogBean implements MessageDrivenBean, MessageListener {

 protected MessageDrivenContext ctx;

 public void setMessageDrivenContext(MessageDrivenContext ctx) {
  this.ctx = ctx;
 }

 public void ejbCreate() {
  System.out.println(ejbCreate());
 }

 public void onMessage(Message msg) {

  TextMessage tm = (TextMessage) msg;

  try {
   String text = tm.getText();
   System.out.println(Received new message :  + text);
  }
  catch(JMSException e) {
   e.printStackTrace();
  }
 }

 public void ejbRemove() {
  System.out.println(ejbRemove());
 }
}

2.) == The deployment descriptor (ejb.jar)

?xml version=1.0?
!DOCTYPE ejb-jar PUBLIC -//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 1.2//EN 
http://java.sun.com/j2ee/dtds/ejb-jar_1_2.dtd;

ejb-jar
display-nameTest Message Bean/display-name
descriptionA test of message beans/description
enterprise-beans
 message-driven

 !-- The name for the bean - used in binding with jms --
 ejb-nameLog/ejb-name

 !-- The fully qualified package name of the bean class --
 ejb-classmycode.ejb.mdb.LogBean/ejb-class

 !-- The type of transaction supported (see Chapter 10) --
 transaction-typeContainer/transaction-type

 !-- Whether I'm listening to a topic or a queue --
 message-driven-destination
destination-typejavax.jms.Queue/destination-type
 /message-driven-destination

/message-driven

/enterprise-beans
assembly-descriptor

/assembly-descriptor
/ejb-jar



3.) ==  Activate (uncomment) jms in server.xml



4.) ==  Update jms.xml to include the queue

queue name=Log location=jms/theLog
descriptionTest queue for MDB LogBean/description
/queue


5.) ==  Update web.xml to include the resource references to 
jms factory and queue


resource-ref
res-ref-namejms/theQueueConnectionFactory/res-ref-name
res-typejavax.jms.QueueConnectionFactory/res-type
res-authContainer/res-auth
/resource-ref

resource-ref
res-ref-namejms/theLog/res-ref-name
res-typejavax.jms.Queue/res-type
res-authContainer/res-auth
/resource-ref

6.) ==  Send a message to the jms queue from application code 
(jsp in this case)


%@ page import=javax.naming.* %
%@ page import=javax.jms.* %

%

try
{
Context context = new InitialContext();
  QueueConnectionFactory factory = 
(QueueConnectionFactory)context.lookup(java:comp/env/jms/theQueueConnectionFactory);


QueueConnection connection = factory.createQueueConnection();
Queue queue = (Queue)context.lookup(java:comp/env/jms/theLog);
connection.start();

QueueSession sess = connection.createQueueSession(false, 
QueueSession.AUTO_ACKNOWLEDGE);

QueueSender sender = sess.createSender(queue);

int delivery_mode = DeliveryMode.PERSISTENT;
TextMessage message = sess.createTextMessage(well hello there...);
sender.send(message, delivery_mode, 1, 0);

sess.close();
connection.close();

} catch(JMSException e) {
System.err.println(JMS Communication error:  + e.getMessage());
} catch(NamingException e) {
System.err.println(Naming Error looking up objects:  + 
e.getMessage());
}

%

html
head
titleAsp Services - Test/title
link rel =stylesheet type=text/css href=./stylesheet.css title=Style
style

/style
/head
body
Done.
/body
/html

7.) ==  Done. 

Note: LogBean example was taken from Mastering Enterprise Beans II (draft) from 
theServerSide.com



 


-Original Message-
From: Michael Maurer [mailto:[EMAIL PROTECTED]]
Sent: 29 April 2002 01:20 PM
To: Orion-Interest
Subject: Message Driven Beans 



I am trying to deploy a message driven bean on the Oracle9iAS
(9.0.3.0.0) 

Are there some good examples where all necessary settings are described?
(Starting from jms.xml to orion-ejb-jar.xml!)

Or can anybody help me out with some important hints ?

 
Regards Michael








Re: Please Unsubscribe Me

2002-04-30 Thread Sorin Pop

remove me





  1   2   3   4   5   6   7   8   9   10   >