linux - Does Tomcat uses the java under the symbolic link /usr/bin/java? -
i have 2 linux servers having tomcat 7.0.42 running 2 java applications packaged in 2 war files. i'm using jdk7u25 on linux, 1 of them still has symbolic link jdk1.4.2 (i have no admin rights, can't change it).
the linux server has correct symbolic link /usr/bin/java --> jdk 7, works fine. applications running without issues.
the other linux server has /usr/bin/java --> jdk1.4.2, has java_home in tomcat set jdk 7, (java_home=//jdk_1.7.0.25/), throws me error when deploying apps. apps need forkjoin api (available in jdk 7).
the difference noticed between these 2 servers, symbolic links.
i copied working tomcat (directory + apps + jdk) not working server, , set java_home imported working jdk, still not working... keeps throwing me error message , can't run apps.
here logs, although think it's not explicit enough understand doing.
warning: exception encountered when executing asynchronous task com.quartetfs.fwk.quartetruntimeexception: com.quartetfs.biz.pivot.mergeexception: [rcpcn0c-29706] not merge commit 2 bonyslnoncashcollateralscube( r9szn0c-50673) in bonyslnoncashcollateralsdistributedcube @ com.quartetfs.biz.pivot.distribution.impl.distributeddimensionsmanager$applyinitialmessagetask.consume(distributeddimensionsmanager.java:493) @ com.quartetfs.biz.pivot.distribution.impl.distributeddimensionsmanager$applyinitialmessagetask.consume(distributeddimensionsmanager.java:408) @ jsr166.impl.singleconsumerqueue.tryconsume(singleconsumerqueue.java:249) @ com.quartetfs.biz.pivot.distribution.impl.distributeddimensionsmanager$applyinitialmessagetask.compute(distributeddimensionsmanager.java:439) @ jsr166.cancellable.impl.cancellablerecursiveaction.executetask(cancellablerecursiveaction.java:28) @ jsr166.cancellable.impl.cancellableforkjointask.exec(cancellableforkjointask.java:79) @ jsr166e.forkjointask.doexec(forkjointask.java:264) @ jsr166e.forkjoinpool$workqueue.runtask(forkjoinpool.java:990) @ jsr166e.forkjoinpool.runworker(forkjoinpool.java:1631) @ jsr166e.forkjoinworkerthread.run(forkjoinworkerthread.java:108) caused by: com.quartetfs.biz.pivot.mergeexception: [rcpcn0c-29706] not merge commit 2 bonyslnoncashcollateralscube( r9szn0c-50673) in bonyslnoncashcollateralsdistributedcube @ com.quartetfs.biz.pivot.impl.adistributedactivepivot$distributedtransactionmanager.mergedimensionsincube(adistributedactivepivot.java:1014) @ com.quartetfs.biz.pivot.impl.adistributedactivepivot$distributedtransactionmanager.oninitialremotecommit(adistributedactivepivot.java:861) @ com.quartetfs.biz.pivot.distribution.impl.distributeddimensionsmanager$applyinitialmessagetask.consume(distributeddimensionsmanager.java:479) ... 9 more caused by: java.lang.illegalargumentexception: measure collateralvalue.sum belongs more 1 cube @ com.quartetfs.biz.pivot.distribution.impl.polymorphiclocalityidentifier.validateandcontribute(polymorphiclocalityidentifier.java:235) @ com.quartetfs.biz.pivot.impl.adistributedactivepivot$mergedimensionstask.compute(adistributedactivepivot.java:770) @ jsr166.cancellable.impl.cancellablerecursiveaction.executetask(cancellablerecursiveaction.java:28) @ jsr166.cancellable.impl.cancellableforkjointask.exec(cancellableforkjointask.java:79) @ jsr166e.forkjointask.doexec(forkjointask.java:264) @ jsr166e.forkjointask.doinvoke(forkjointask.java:360) @ jsr166e.forkjointask.invoke(forkjointask.java:691) @ com.quartetfs.biz.pivot.impl.adistributedactivepivot$distributedtransactionmanager.mergedimensionsincube(adistributedactivepivot.java:1009) ... 11 more aug 07, 2013 8:18:11 pm com.quartetfs.tech.distribution.messenger.impl.safebroadcastingtask compute info: exception encountered during broadcasting task. retrying ... com.quartetfs.fwk.quartetruntimeexception: java.util.concurrent.executionexception: com.quartetfs.fwk.quartetruntimeexception: com.quartetfs.biz.pivot.mergeexception: [rcpcn0c-29706] not merge commit 2 bonyslnoncashcollateralscube( r9szn0c-50673) in bonyslnoncashcollateralsdistributedcube @ com.quartetfs.biz.pivot.distribution.impl.remoteinstancedistributionmanager.onmemberschanged(remoteinstancedistributionmanager.java:217) @ com.quartetfs.tech.distribution.messenger.impl.adistributedmessenger$membersnotificationaction$1.compute(adistributedmessenger.java:1046) @ jsr166e.recursiveaction.exec(recursiveaction.java:161) @ jsr166e.forkjointask.doexec(forkjointask.java:264) @ jsr166e.forkjointask.dojoin(forkjointask.java:345) @ jsr166e.forkjointask.invokeall(forkjointask.java:756) @ com.quartetfs.tech.distribution.messenger.impl.adistributedmessenger$membersnotificationaction.execute(adistributedmessenger.java:1050) @ jsr166.impl.deferredactionqueue$consumerprocedure.consume(deferredactionqueue.java:181) @ jsr166.impl.deferredactionqueue$consumerprocedure.consume(deferredactionqueue.java:157) @ jsr166.impl.singleconsumerqueue.tryconsume(singleconsumerqueue.java:249) @ jsr166.impl.deferredactionqueue.executeall(deferredactionqueue.java:68) @ jsr166.impl.deferredactionqueue$deferredexecutionaction.compute(deferredactionqueue.java:274) @ jsr166e.recursiveaction.exec(recursiveaction.java:161) @ jsr166e.forkjointask.doexec(forkjointask.java:264) @ jsr166e.forkjointask.doinvoke(forkjointask.java:360) @ jsr166e.forkjointask.invoke(forkjointask.java:691) @ com.quartetfs.tech.distribution.messenger.impl.safebroadcastingtask.compute(safebroadcastingtask.java:101) @ jsr166e.recursivetask.exec(recursivetask.java:65) @ jsr166e.forkjointask.doexec(forkjointask.java:264) @ jsr166e.forkjoinpool$workqueue.runtask(forkjoinpool.java:990) @ jsr166e.forkjoinpool.runworker(forkjoinpool.java:1631) @ jsr166e.forkjoinworkerthread.run(forkjoinworkerthread.java:108) caused by: java.util.concurrent.executionexception: com.quartetfs.fwk.quartetruntimeexception: com.quartetfs.biz.pivot.mergeexception: [rcpcn0c-29706] not merge commit 2 bonyslnoncashcollateralscube( r9szn0c-50673) in bonyslnoncashcollateralsdistributedcube @ com.quartetfs.tech.distribution.messenger.future.impl.acompositefuture.getresult(acompositefuture.java:155) @ com.quartetfs.tech.distribution.messenger.future.impl.acompositefuture.getorcancel(acompositefuture.java:251) @ com.quartetfs.tech.distribution.messenger.impl.adistributedmessenger.sendmessages(adistributedmessenger.java:793) @ com.quartetfs.tech.distribution.messenger.impl.adistributedmessenger.sendmessage(adistributedmessenger.java:864) @ com.quartetfs.biz.pivot.distribution.impl.remoteinstancedistributionmanager.onmemberschanged(remoteinstancedistributionmanager.java:215) ... 21 more caused by: com.quartetfs.fwk.quartetruntimeexception: com.quartetfs.biz.pivot.mergeexception: [rcpcn0c-29706] not merge commit 2 bonyslnoncashcollateralscube( r9szn0c-50673) in bonyslnoncashcollateralsdistributedcube @ com.quartetfs.biz.pivot.distribution.impl.distributeddimensionsmanager$applyinitialmessagetask.consume(distributeddimensionsmanager.java:493) @ com.quartetfs.biz.pivot.distribution.impl.distributeddimensionsmanager$applyinitialmessagetask.consume(distributeddimensionsmanager.java:408) @ jsr166.impl.singleconsumerqueue.tryconsume(singleconsumerqueue.java:249) @ com.quartetfs.biz.pivot.distribution.impl.distributeddimensionsmanager$applyinitialmessagetask.compute(distributeddimensionsmanager.java:439) @ jsr166.cancellable.impl.cancellablerecursiveaction.executetask(cancellablerecursiveaction.java:28) @ jsr166.cancellable.impl.cancellableforkjointask.exec(cancellableforkjointask.java:79) ... 4 more caused by: com.quartetfs.biz.pivot.mergeexception: [rcpcn0c-29706] not merge commit 2 bonyslnoncashcollateralscube( r9szn0c-50673) in bonyslnoncashcollateralsdistributedcube @ com.quartetfs.biz.pivot.impl.adistributedactivepivot$distributedtransactionmanager.mergedimensionsincube(adistributedactivepivot.java:1014) @ com.quartetfs.biz.pivot.impl.adistributedactivepivot$distributedtransactionmanager.oninitialremotecommit(adistributedactivepivot.java:861) @ com.quartetfs.biz.pivot.distribution.impl.distributeddimensionsmanager$applyinitialmessagetask.consume(distributeddimensionsmanager.java:479) ... 9 more caused by: java.lang.illegalargumentexception: measure collateralvalue.sum belongs more 1 cube @ com.quartetfs.biz.pivot.distribution.impl.polymorphiclocalityidentifier.validateandcontribute(polymorphiclocalityidentifier.java:235) @ com.quartetfs.biz.pivot.impl.adistributedactivepivot$mergedimensionstask.compute(adistributedactivepivot.java:770) @ jsr166.cancellable.impl.cancellablerecursiveaction.executetask(cancellablerecursiveaction.java:28) @ jsr166.cancellable.impl.cancellableforkjointask.exec(cancellableforkjointask.java:79) @ jsr166e.forkjointask.doexec(forkjointask.java:264) @ jsr166e.forkjointask.doinvoke(forkjointask.java:360) @ jsr166e.forkjointask.invoke(forkjointask.java:691) @ com.quartetfs.biz.pivot.impl.adistributedactivepivot$distributedtransactionmanager.mergedimensionsincube(adistributedactivepivot.java:1009) ... 11 more
and other repeated log error:
severe: hellomessage [hellomessage-rcpcn0c-47329-62] not transmitted java.util.concurrent.cancellationexception @ com.quartetfs.tech.distribution.messenger.future.impl.acompositefuture.getresult(acompositefuture.java:159) @ com.quartetfs.tech.distribution.messenger.future.impl.acompositefuture.getorcancel(acompositefuture.java:251) @ com.quartetfs.tech.distribution.messenger.impl.adistributedmessenger.sendmessages(adistributedmessenger.java:793) @ com.quartetfs.tech.distribution.messenger.impl.adistributedmessenger.sendmessage(adistributedmessenger.java:864) @ com.quartetfs.tech.distribution.messenger.impl.adistributedmessenger.broadcast(adistributedmessenger.java:881) @ com.quartetfs.tech.distribution.messenger.impl.jgroupsmessenger.ensurememberscommunication(jgroupsmessenger.java:174) @ com.quartetfs.tech.distribution.messenger.impl.adistributedmessenger$membersnotificationaction.execute(adistributedmessenger.java:1004) @ jsr166.impl.deferredactionqueue$consumerprocedure.consume(deferredactionqueue.java:181) @ jsr166.impl.deferredactionqueue$consumerprocedure.consume(deferredactionqueue.java:157) @ jsr166.impl.singleconsumerqueue.tryconsume(singleconsumerqueue.java:249) @ jsr166.impl.deferredactionqueue.executeall(deferredactionqueue.java:68) @ jsr166.impl.deferredactionqueue$deferredexecutionaction.compute(deferredactionqueue.java:274) @ jsr166e.recursiveaction.exec(recursiveaction.java:161) @ jsr166e.forkjointask.doexec(forkjointask.java:264) @ jsr166e.forkjointask.doinvoke(forkjointask.java:360) @ jsr166e.forkjointask.invoke(forkjointask.java:691) @ com.quartetfs.tech.distribution.messenger.impl.safebroadcastingtask.compute(safebroadcastingtask.java:101) @ jsr166e.recursivetask.exec(recursivetask.java:65) @ jsr166e.forkjointask.doexec(forkjointask.java:264) @ jsr166e.forkjoinpool$workqueue.runtask(forkjoinpool.java:990) @ jsr166e.forkjoinpool.runworker(forkjoinpool.java:1631) @ jsr166e.forkjoinworkerthread.run(forkjoinworkerthread.java:108) aug 07, 2013 8:18:29 pm com.quartetfs.tech.distribution.messenger.impl.safebroadcastingtask compute info: exception encountered during broadcasting task. retrying ... com.quartetfs.fwk.quartetruntimeexception: not connect remote instances @ com.quartetfs.tech.distribution.messenger.impl.jgroupsmessenger.ensurememberscommunication(jgroupsmessenger.java:188) @ com.quartetfs.tech.distribution.messenger.impl.adistributedmessenger$membersnotificationaction.execute(adistributedmessenger.java:1004) @ jsr166.impl.deferredactionqueue$consumerprocedure.consume(deferredactionqueue.java:181) @ jsr166.impl.deferredactionqueue$consumerprocedure.consume(deferredactionqueue.java:157) @ jsr166.impl.singleconsumerqueue.tryconsume(singleconsumerqueue.java:249) @ jsr166.impl.deferredactionqueue.executeall(deferredactionqueue.java:68) @ jsr166.impl.deferredactionqueue$deferredexecutionaction.compute(deferredactionqueue.java:274) @ jsr166e.recursiveaction.exec(recursiveaction.java:161) @ jsr166e.forkjointask.doexec(forkjointask.java:264) @ jsr166e.forkjointask.doinvoke(forkjointask.java:360) @ jsr166e.forkjointask.invoke(forkjointask.java:691) @ com.quartetfs.tech.distribution.messenger.impl.safebroadcastingtask.compute(safebroadcastingtask.java:101) @ jsr166e.recursivetask.exec(recursivetask.java:65) @ jsr166e.forkjointask.doexec(forkjointask.java:264) @ jsr166e.forkjoinpool$workqueue.runtask(forkjoinpool.java:990) @ jsr166e.forkjoinpool.runworker(forkjoinpool.java:1631) @ jsr166e.forkjoinworkerthread.run(forkjoinworkerthread.java:108) caused by: java.util.concurrent.cancellationexception @ com.quartetfs.tech.distribution.messenger.future.impl.acompositefuture.getresult(acompositefuture.java:159) @ com.quartetfs.tech.distribution.messenger.future.impl.acompositefuture.getorcancel(acompositefuture.java:251) @ com.quartetfs.tech.distribution.messenger.impl.adistributedmessenger.sendmessages(adistributedmessenger.java:793) @ com.quartetfs.tech.distribution.messenger.impl.adistributedmessenger.sendmessage(adistributedmessenger.java:864) @ com.quartetfs.tech.distribution.messenger.impl.adistributedmessenger.broadcast(adistributedmessenger.java:881) @ com.quartetfs.tech.distribution.messenger.impl.jgroupsmessenger.ensurememberscommunication(jgroupsmessenger.java:174) ... 16 more
can java under /usr/bin/javaeven if have set java_home right place? can't find how tomcat uses java...
tomcat, stephen indicated, uses multiple different ways, depending on server configuration, determine java being used.
in cases, start checking on working server existence of $java_home, custom $path settings. check usual suspects: /etc/profile, /etc/profile.d/, .bash, .profile or like.
you may find java_home specified both @ user level, @ service level in init scripts if running actual service.
at moment, there many variables unanswered in question:
1.) running process same user in both locations? 2.) users configured identically in both locations, same path precedence , env variables? 3.) init scripts same?
by providing detail possible, can provide more complete/thorough response.
Comments
Post a Comment