./asadmin: 52: exec: java: not found

本文介绍了解决GlassFish4.1在启动过程中因找不到Java路径而报错的方法。通过确认Java已安装,并在asenv.conf文件中设置正确的Java路径来解决问题。

安装glassfish4.1的过程中,解压后执行./asadmin start-domain启动glassfish时报错:

./asadmin: 52: exec: java: not found

glassfish找不到java路径。

解决方法:
  • 确认已安装java
  • 修改./glassfish4/config/asenv.conf,在文件末尾添加:AS_JAVA="/usr/java/jdk1.6.0"(你的java路径)
Unable to bind Business Interface to the JNDI name: LkmNcEjbsLkmOrdersEjb_jarOrderEjb_Home, throw exception javax.naming.NameAlreadyBoundException: [EJB:011224]Unable to bind the interface com.lkm.ejb.orders.remote.OrderRemote to OrderRemote. Another EJB has already bound an interface to that name.; remaining name 'OrderRemote#com/lkm/ejb/orders/remote'. NestedException Message is :[EJB:011224]Unable to bind the interface com.lkm.ejb.orders.remote.OrderRemote to OrderRemote. Another EJB has already bound an interface to that name. [wldeploy] [wldeploy] [wldeploy] [wldeploy] at weblogic.deploy.api.tools.deployer.Jsr88Operation.report(Jsr88Operation.java:610) [wldeploy] at weblogic.deploy.api.tools.deployer.Deployer.perform(Deployer.java:140) [wldeploy] at weblogic.deploy.api.tools.deployer.Deployer.runBody(Deployer.java:88) [wldeploy] at weblogic.utils.compiler.Tool.run(Tool.java:159) [wldeploy] at weblogic.utils.compiler.Tool.run(Tool.java:116) [wldeploy] at weblogic.Deployer.run(Deployer.java:74) [wldeploy] at weblogic.Deployer.mainWithExceptions(Deployer.java:63) [wldeploy] at weblogic.ant.taskdefs.management.DeployerWrapper.main(DeployerWrapper.java:14) [wldeploy] Exception in thread "main" weblogic.Deployer$DeployerException: weblogic.deploy.api.tools.deployer.DeployerException: Task 121 failed: [Deployer:149026]deploy application LkmNcEjbs on MS1. [wldeploy] Target state: redeploy failed on Server MS1 [wldeploy] Unable to bind Business Interface to the JNDI name: LkmNcEjbsLkmOrdersEjb_jarOrderEjb_Home, throw exception javax.naming.NameAlreadyBoundException: [EJB:011224]Unable to bind the interface com.lkm.ejb.orders.remote.OrderRemote to OrderRemote. Another EJB has already bound an interface to that name.; remaining name 'OrderRemote#com/lkm/ejb/orders/remote'. NestedException Message is :[EJB:011224]Unable to bind the interface com.lkm.ejb.orders.remote.OrderRemote to OrderRemote. Another EJB has already bound an interface to that name. [wldeploy] [wldeploy] Task 121 failed: [Deployer:149026]deploy application LkmNcEjbs on MS1. [wldeploy] Target state: redeploy failed on Server MS1 [wldeploy] [wldeploy] [wldeploy] at weblogic.Deployer.run(Deployer.java:76) [wldeploy] at weblogic.Deployer.mainWithExceptions(Deployer.java:63)Unable to bind Business Interface to the JNDI name: LkmNcEjbsLkmOrdersEjb_jarOrderEjb_Home, throw exception javax.naming.NameAlreadyBoundException: [EJB:011224]Unable to bind the interface com.lkm.ejb.orders.remote.OrderRemote to OrderRemote. Another EJB has already bound an interface to that name.; remaining name 'OrderRemote#com/lkm/ejb/orders/remote'. NestedException Message is :[EJB:011224]Unable to bind the interface com.lkm.ejb.orders.remote.OrderRemote to OrderRemote. Another EJB has already bound an interface to that name. [wldeploy] [wldeploy] [wldeploy] [wldeploy] at weblogic.ant.taskdefs.management.DeployerWrapper.main(DeployerWrapper.java:14) [wldeploy] Caused by: weblogic.deploy.api.tools.deployer.DeployerException: Task 121 failed: [Deployer:149026]deploy application LkmNcEjbs on MS1. [wldeploy] Target state: redeploy failed on Server MS1 [wldeploy] Unable to bind Business Interface to the JNDI name: LkmNcEjbsLkmOrdersEjb_jarOrderEjb_Home, throw exception javax.naming.NameAlreadyBoundException: [EJB:011224]Unable to bind the interface com.lkm.ejb.orders.remote.OrderRemote to OrderRemote. Another EJB has already bound an interface to that name.; remaining name 'OrderRemote#com/lkm/ejb/orders/remote'. NestedException Message is :[EJB:011224]Unable to bind the interface com.lkm.ejb.orders.remote.OrderRemote to OrderRemote. Another EJB has already bound an interface to that name. [wldeploy] [wldeploy] [wldeploy] [wldeploy] at weblogic.deploy.api.tools.deployer.Jsr88Operation.report(Jsr88Operation.java:610) [wldeploy] at weblogic.deploy.api.tools.deployer.Deployer.perform(Deployer.java:140) [wldeploy] at weblogic.deploy.api.tools.deployer.Deployer.runBody(Deployer.java:88) [wldeploy] at weblogic.utils.compiler.Tool.run(Tool.java:159) [wldeploy] at weblogic.utils.compiler.Tool.run(Tool.java:116) [wldeploy] at weblogic.Deployer.run(Deployer.java:74) [wldeploy] ... 2 more BUILD FAILED /data/upload/domain01/domain01-ncejb.xml:28: webLogic.Deployer execution failed
最新发布
12-12
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值