A
amitg
Hi I am trying to install java Petstore(v1.4) applicaion with
SUNWappserver. Follwed every step as mentioned in the
petstore_home/docs/install.html file viz
export J2EE_HOME to SUNWappserver directory
export PATH to SUNWappserver/bin directory
start Pointbase server
$pointbase_home/tools/serveroption/startserver.sh
start application server on domain1
$J2EE_HOME/bin/asadmin start-domain domain1
$petstore_home/src/asant undeploy
$petstore_home/src/asant
journey this far was smooth. Everything worked just fine.
next I did
$asant deploy
after executing the above command the output was something like
this(not the complete output, just the error part)
-------------------
deploy-opc:
[echo] deploying ../src/apps/opc/build/opc.ear
[exec] CLI171 Command deploy failed : Deploying application in
domain failed; No local string defined -- Inconsistent Module State
[exec] ; requested operation cannot be completed
[exec] Result: 1
deploy_common:
[echo] Deploying ../src/apps/supplier/build/supplier.ear.
[exec] Command deploy executed successfully with following warning
messages:
[exec] JDO76611: Cannot connect to database via JNDI name
'jdo/supplier': java.sql.SQLException: Connection could not be
allocated because: Cannot find the user "SUPPLIER" ..
[exec] JDO76611: Cannot connect to database via JNDI name
'jdo/supplier': java.sql.SQLException: Connection could not be
allocated because: Cannot find the user "SUPPLIER" ..
deploy_common:
[echo] Deploying ../src/apps/petstore/build/petstore.ear.
[exec] Command deploy executed successfully with following warning
messages:
[exec] JDO76611: Cannot connect to database via JNDI name
'jdo/petstore': java.sql.SQLException: Connection could not be
allocated because: Cannot find the user "PETSTORE" ..
[exec] JDO76611: Cannot connect to database via JNDI name
'jdo/petstore': java.sql.SQLException: Connection could not be
allocated because: Cannot find the user "PETSTORE" ..
[exec] JDO76611: Cannot connect to database via JNDI name
'jdo/petstore': java.sql.SQLException: Connection could not be
allocated because: Cannot find the user "PETSTORE" ..
deploy:
BUILD SUCCESSFUL
Total time: 6 minutes 3 seconds
-----------------------------------------------
The pointbase database is up and running, I am unable to understand how
to remove these errors. Am I missing some step in the installation
procedure ? Any pointers in this regard will be highly appreciated.
tia,
Amit
SUNWappserver. Follwed every step as mentioned in the
petstore_home/docs/install.html file viz
export J2EE_HOME to SUNWappserver directory
export PATH to SUNWappserver/bin directory
start Pointbase server
$pointbase_home/tools/serveroption/startserver.sh
start application server on domain1
$J2EE_HOME/bin/asadmin start-domain domain1
$petstore_home/src/asant undeploy
$petstore_home/src/asant
journey this far was smooth. Everything worked just fine.
next I did
$asant deploy
after executing the above command the output was something like
this(not the complete output, just the error part)
-------------------
deploy-opc:
[echo] deploying ../src/apps/opc/build/opc.ear
[exec] CLI171 Command deploy failed : Deploying application in
domain failed; No local string defined -- Inconsistent Module State
[exec] ; requested operation cannot be completed
[exec] Result: 1
deploy_common:
[echo] Deploying ../src/apps/supplier/build/supplier.ear.
[exec] Command deploy executed successfully with following warning
messages:
[exec] JDO76611: Cannot connect to database via JNDI name
'jdo/supplier': java.sql.SQLException: Connection could not be
allocated because: Cannot find the user "SUPPLIER" ..
[exec] JDO76611: Cannot connect to database via JNDI name
'jdo/supplier': java.sql.SQLException: Connection could not be
allocated because: Cannot find the user "SUPPLIER" ..
deploy_common:
[echo] Deploying ../src/apps/petstore/build/petstore.ear.
[exec] Command deploy executed successfully with following warning
messages:
[exec] JDO76611: Cannot connect to database via JNDI name
'jdo/petstore': java.sql.SQLException: Connection could not be
allocated because: Cannot find the user "PETSTORE" ..
[exec] JDO76611: Cannot connect to database via JNDI name
'jdo/petstore': java.sql.SQLException: Connection could not be
allocated because: Cannot find the user "PETSTORE" ..
[exec] JDO76611: Cannot connect to database via JNDI name
'jdo/petstore': java.sql.SQLException: Connection could not be
allocated because: Cannot find the user "PETSTORE" ..
deploy:
BUILD SUCCESSFUL
Total time: 6 minutes 3 seconds
-----------------------------------------------
The pointbase database is up and running, I am unable to understand how
to remove these errors. Am I missing some step in the installation
procedure ? Any pointers in this regard will be highly appreciated.
tia,
Amit