java - glassfish 4.1 and cluster with JMS -
i have create cluster "mycluster", 2 local instance , resources jms/queue1, jms/queue2 , jms/topic target server , cluster.
so in way created cluster:
create-cluster mycluster
create-instance --node localhost-domain1 --cluster mycluster instance01
create-instance --node localhost-domain1 --cluster mycluster instance02
[...]
start-cluster mycluster
deploy --target mycluster coo.ear
application deployed name coo.
warning: command _deploy did not complete on server instance instance01: remote failure: failed load application on instance instance01. application not run properly. please fix application , redeploy.
exception while loading app : ejb container initialization error. please see server.log more details.
warning: command _deploy did not complete on server instance instance02: remote failure: failed load application on instance instance02. application not run properly. please fix application , redeploy.
exception while loading app : ejb container initialization error. please see server.log more details. command deploy completed warnings.
[...]
on [server]: hostname:8080/fe-war/ right.
on [instance01 cluster] hostname:28080/fe-war
and
on [instance02 cluster] hostname:28081/fe-war
i desperate http status 404 - not found ((((
complete logs file server, instance01, instance02, [...]:
https://drive.google.com/folderview?id=0b7cqu8774dg8rgx0vkrveezxcle&usp=sharing
2016-02-06t17:00:24.593+0100] [glassfish 4.1] [severe] [] [org.eclipse.persistence.session./file:/home/glassfish/glassfish4/glassfish/nodes/localhost-domain1/coo1/applications/ejb-timer-service-app/web-inf/classes/___ejb__timer__app.ejb] [tid: _threadid=22 _threadname=runlevelcontrollerthread-1454774410800] [timemillis: 1454774424593] [levelvalue: 1000] [[
local exception stack: exception [eclipselink-4002] (eclipse persistence services - 2.6.1.v20150605-31e8258): org.eclipse.persistence.exceptions.databaseexception internal exception: java.sql.sqlexception: error in allocating connection. cause: connection not allocated because: java.net.connectexception: errore di connessione al server localhost sulla porta 1527 con messaggio connessione rifiutata. error code: 0 [...]
your database/datasource not configured correctly. wants connect database on localhost:1527, means each instance try connect database local itself. not want - want app connect same database no matter instance being used.
you need edit datasource in cluster config use proper hostname each instance connects to, example, dbserver:1527 and, if production deployment, change database derby else (e.g. mysql, mariadb, postgresql etc). apache derby not appropriate production use.
Comments
Post a Comment