Hi Mike,
Thanks for you help,
But I got other errors,please help me
again.
Thanks again, Happy Christmas....
yoursUrey
----- Original Message -----
From: urey
To: Orion-Interest
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. //>>>>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
-- David Smith Software Development Manager e-Net Software Ltd [EMAIL PROTECTED] |