Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Not able to run Java Petstore sample with oracle
thisi is my build.properties file:
javac.debug=off
db.name=pets db.host=my host db.port=1521 db.SID=${db.name},new mail.host=localhost
#Please comment/uncomment the following lines depending on your OS
#Script suffixes on unix
j2ee-script-suffix=
jwsdp-script-suffix=.sh
#Script suffixes on windows #j2ee-script-suffix=.bat #jwsdp-script-suffix=.bat
the users needed by the instal are created,the driver is in the server's lib directory and from server's log :<[INFO][j2eesdk1.4_beta2][][][10][javax.enterprise.resource.resourceadapter][10.September.2003 11:48:22:875 EEST][RAR5060: Install JDBC Datasources ...]>
then i run: asant deploy-ora and i'm geting this :
Buildfile: build.xml
build_classpath:
init:
envpassword:
readpassword:
setpassword:
oracle-specific-resources:
[echo] Registering jdbc-connection-pool petstorepool.
build_classpath:
init:
create-jdbc-connection-pool:
[sun-appserv-admin] Executing: create-jdbc-connection-pool --instance
server --p
ort 4848 --host www --password mypass --user admin
--datasourceclassname orac
le.jdbc.xa.client.OracleXADataSource --restype javax.sql.XADataSource
petstorepo
ol
[sun-appserv-admin] Created the JDBC connection pool resource with id
= petstore
pool
[sun-appserv-admin] Executing: set --port 4848 --host www --password
mypass -
-user admin server.jdbc-connection-pool.petstorepool.property.URL=jdbc:oracle:th
in:@myhost:1521:pets,new
[sun-appserv-admin] Unable to read system environment. No system
environment wil
l be used.
[sun-appserv-admin] Attribute property.URL set to
jdbc:oracle:thin:@myhost:1521:pets,new
[sun-appserv-admin] Executing: set --port 4848 --host www --password
mypass -
-user admin server.jdbc-connection-pool.petstorepool.property.User=petstore
[sun-appserv-admin] Unable to read system environment. No system
environment wil
l be used.
[sun-appserv-admin] Attribute property.User set to petstore
[sun-appserv-admin] Executing: set --port 4848 --host www --password
mypass -
-user admin server.jdbc-connection-pool.petstorepool.property.Password=petstore
[sun-appserv-admin] Unable to read system environment. No system
environment wil
l be used.
[sun-appserv-admin] Attribute property.Password set to petstore
general-resources:
[echo] Registering jdbc resource jdbc/Oracle
build_classpath:
init:
create-jdbc-resource:
[sun-appserv-admin] Executing: create-jdbc-resource --instance server
--port 484
8 --host www --password mypass --user admin --connectionpoolid
petstorepool -
-enabled=true jdbc/Oracle
[sun-appserv-admin] Unable to read system environment. No system
environment wil
l be used.
[sun-appserv-admin] Created the external JDBC resource with jndiname =
jdbc/Orac
le
[echo] Registering jdbc resource jdbc/opc/OPCDB
build_classpath:
init:
create-jdbc-resource:
[sun-appserv-admin] Executing: create-jdbc-resource --instance server
--port 484
8 --host www --password mypass --user admin --connectionpoolid opcpool
--enab
led=true jdbc/opc/OPCDB
[sun-appserv-admin] Unable to read system environment. No system
environment wil
l be used.
[sun-appserv-admin] Could not create the external JDBC resource
BUILD FAILED
file:E:/J2EESD~1.4_B/samples/BLUEPR~1/PETSTO~1.1_0/src/build.xml:510:
An excepti
on occurred while running the command. The exception message is:
Cannot add res
ource. The connection pool, (opcpool) does not exist.
Total time: 4 seconds
E:\J2EESD~1.4_B\samples\BLUEPR~1\PETSTO~1.1_0\src>
the oracle server is in linux box i'm running with j2ee1.4 beta2
so when i config it to run with pointbase everything's fine but with oracle not where am i wrong...10x in advance Received on Wed Sep 10 2003 - 08:49:13 CDT
![]() |
![]() |