Hi Mike,
   Thanks for you help,
But I got other errors,please help me again.
Thanks again, Happy Christmas....
yoursUrey  
 
----- Original Message -----
From: urey
Sent: Sunday, November 26, 2000 6:10 PM
Subject: Where is my data(EJB create on the Postgres DBMS) going, please help find it, thanks a lot!!!

Dear all,
   I cann't find the data that EJB create , please help me find it.
Thanks a lot,
yours Urey
 

1) E:\Urey\new p\orion1.3.8\orion>java -jar orion.jar
 Auto-unpacking E:\Urey\new p\orion1.3.8\orion\applications\testAPP.ear... done.
 Auto-deploying testAPP (New server version detected)...
 Auto-deploying beans.jar (No previous deployment found)...
 Auto-creating table: create table test (name_ VARCHAR(255) not null primary key)
 java.security.Policy: error parsing file:C:/Documents and Settings/Urey/.java.policy
 java.security.Policy: line 8: expected ';', found '/'
 done.
 Orion/1.3.8 initialized
 
file://****** I am runing Orion in PC side got errors:
          (1) Auto-creating table: create table test (name_ VARCHAR(255) not null primary key)
   (2) java.security.Policy: error parsing file:C:/Documents and Settings/Urey/.java.policy
         How could I do? *************//
 
2) E:\Urey\new p\orion1.3.8\orion\demo\ejb\ABC>p

file://****** I am runing my client, that's well, but I cann't find the data in my Postgres DBMS Server side???
        I cann't find where is the data of the EJB create ,Please help me???? ********//
      
3) E:\Urey\new p\orion1.3.8\orion\demo\ejb\ABC>java -classpath ../../../orion.jar;../../../ejb.jar;../../../jndi.jar;testAPPClient.jar;. testEJBClient
 javax.ejb.DuplicateKeyException: Entity already exists
         at com.evermind.server.rmi.bb.invokeMethod(JAX)
         at com.evermind.server.rmi.a2.invoke(JAX)
         at com.evermind.server.rmi.a3.invoke(JAX)
         at __Proxy1.create(Unknown Source)
         at testEJBClient.<init>(testEJBClient.java:20)
         at testEJBClient.main(testEJBClient.java:28)

file://********* When I run my client next time but he said the EJB alread exists,
          BUY I really cann't find it in my postgres DBMS side, Where I missed ????
          Tell me, Please.***********//
 

There are my configs on Orion:
 data-source is:
 
 
        <data-source
        class="com.evermind.sql.DriverManagerDataSource"
        schema="database-schemas/postgresql.xml"
        name="PostGreSQL"
        location="jdbc/javatest"
        xa-location="jdbc/xa/javatest"
        ejb-location="jdbc/javatest"
        connection-driver="postgresql.Driver"                ""  or   = "org.postgresql.Driver"  ""
        username="postgres"
        password=""
        url="jdbc:postgresql://192.168.0.88/javatest"
        inactivity-timeout="30"
       
    />
 
And the database-scheme is :
 

<?xml version="1.0"?>
<!DOCTYPE database-schema PUBLIC "-//Evermind//- Database schema"
"
http://www.orionserver.com/dtds/database-schemas.dtd">
 
<database-scheme name="PostGreSQL" max-table-name-length="25" not-null="not
null" null="" primary-key="primary key">
   
    <type-mapping type="java.lang.String" name="varchar" />
    <type-mapping type="java.lang.Integer" name="int8" />
    <type-mapping type="int" name="int4" />
    <type-mapping type="long" name="int8" />
    <type-mapping type="float" name="float4" />
    <type-mapping type="double" name="float8" />
    <type-mapping type="byte" name="int2" />
    <type-mapping type="char" name="char" />
    <type-mapping type="short" name="int2" />
    <type-mapping type="boolean" name="bool" />
    <type-mapping type="java.util.Date" name="date" />
    <type-mapping type="java.io.Serializable" name="oid" />
    <type-mapping type="java.math.BigDecimal" name="decimal" />
 
    <disallowed-field name="parent" />
    <disallowed-field name="password" />
    <disallowed-field name="username" />
    <disallowed-field name="date" />
    <disallowed-field name="order" />
    <disallowed-field name="old" />
    <disallowed-field name="user" />
 
</database-scheme>
 
 
 
//>>>>Not quite right, the class line is wrong - this should be the driver manager class, not the
//>>>>driver class

//>>>>i.e.
//>>>>class="com.evermind.sql.DriverManagerDataSource"

//>>>>Whether the driver is postgresql.Driver or org.postgresql.Driver depends on the driver version.
 
 

//>>>>Mike Cannon-Brookes wrote:

//>>>>Easy, the driver class is org.postgresql.Driver - fix it and you're away.Mike

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of urey
Sent: Wednesday, November 22, 2000 7:50 PM
To: Orion-Interest
Cc: Orion-Interest
Subject: Please Help Me, How to congfig Postgres DataSours on Orion?
Dear,  I used Orion 1.3.8, Postgres 6.5,and its JDBC Driver jdbc6.5-1.2.jar.I'm config the Orion DataSours:       <data-source
          name="Postgres"
          class="postgresql.Driver"
          location="jdbc/javatest"
          pooled-location="jdbc/javatest"
          xa-location="jdbc/xa/javatest"
          ejb-location="jdbc/javatest"
          url="jdbc:postgresql://192.168.0.88/javatest"
         connection-driver="postgresql.Driver"
          username="postgres"
          password=""
          schema="./database-schemas/postgresql.xml"
        />And copy the jdbc6.5-1.2.jar to Orion\Lib.But When I run Orion it's said:    "Error initializing server: Unknown DataSource type: postgresql.Driver" I don't know how to config Postgres DataSours,                and how to write the line  Class="" and connection=""?                and where can i get more info. of this?help me Please.Thank you!yoursUrey    ----- Original Message -----From: "Kays, Jeff" <[EMAIL PROTECTED]>To: "Orion-Interest" <[EMAIL PROTECTED]>Sent: Thursday, December 21, 2000 8:22 AMSubject: RE: Database behind entity beans? > We're using Postgreslql with Linux. Seems to be working great, ask again in
> a
> couple of months when we're finished with our prototype.
>
>   j
>
> > -----Original Message-----
> > From: Hegyi Tibor [SMTP:[EMAIL PROTECTED]]
> > Sent: Wednesday, December 20, 2000 4:20 AM
> > To: Orion-Interest
> > Subject: Database behind entity beans?
> >
> > Hi all,
> >
> > I just wonder what options we have for selecting the proper RDBMS/OODBMS
> > to serve as persistent storage for our BMPs/CMPs or just for being
> > accessed via JDBC. Oracle is the obvious choice, but might be rather
> > expensive.
> >
> > I would like to hear some opinion on the databases you're using with
> > Orion.
> >
> > Thanks,
> >
> > Tibor
> >
> >
> >
>
-- 
David Smith

Software Development Manager
e-Net Software Ltd
[EMAIL PROTECTED]
  
 

Reply via email to