You might want to edit your java.policy file to make it run.
 
Seems you have something there that isnt alowed, so you are not allowed to contact the database.
 
Klaus
-----Opprinnelig melding-----
Fra: urey [mailto:[EMAIL PROTECTED]]
Sendt: 26. november 2000 11:10
Til: Orion-Interest
Emne: 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"
        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>
 

 

Reply via email to