ICode9

精准搜索请尝试: 精确搜索
首页 > 编程语言> 文章详细

java – 无法重启glassfish 3服务器

2019-08-24 00:00:34  阅读:623  来源: 互联网

标签:java glassfish-3


我们在Windows机器上的glassfish3服务器上部署了应用程序.
服务器和应用程序运行正常.在glassfish控制台中,我重新启动了服务器但它没有重新启动.

我也尝试从命令提示符(作为管理员),但得到以下错误日志:

C:\glassfish3\glassfish\bin> asadmin -p 4841 start-domain domain1
Waiting for domain1 to start ..Error starting domain domain1. The
server exited prematurely with exit code 1. Before it died, it
produced the following output:

Launching GlassFish on Felix platform ERROR: Error parsing system
bundle export statement: org.osgi.framework; version=1.6.0,
org.osgi.framework.launch; versi on=1.0.0, org.osgi.framework.wiring;
version=1.0.0, org.osgi.framework.startlevel; version=1.0.0,
org.osgi.framework.hoo ks.bundle; version=1.0.0,
org.osgi.framework.hooks.resolver; version=1.0.0,
org.osgi.framework.hooks.service; version=1.
1.0, org.osgi.framework.hooks.weaving; version=1.0.0, org.osgi.service.packageadmin; version=1.2.0, org.osgi.service.sta
rtlevel; version=1.1.0, org.osgi.service.url; version=1.0.0,
org.osgi.util.tracker; version=1.5.0, , org.glassfish.embed
dable;org.glassfish.embeddable.spi;version=3.1.1
(org.osgi.framework.BundleException: Exported package names cannot be
z ero length.) ERROR: Unable to re-install
file:/C:/glassfish3/glassfish/modules/javax.transaction.jar
(org.osgi.framework.BundleExcept ion: Could not create bundle object.)
ERROR: Unable to re-install
file:/C:/glassfish3/glassfish/modules/webservices-extra-jdk-packages.jar
(org.osgi.framework .BundleException: Could not create bundle object.)
ERROR: Unable to re-install
file:/C:/glassfish3/glassfish/modules/flashlight-extra-jdk-packages.jar
(org.osgi.framework. BundleException: Could not create bundle object.)
ERROR: Unable to re-install
file:/C:/glassfish3/glassfish/modules/glassfish-corba-omgapi.jar
(org.osgi.framework.BundleE xception: Could not create bundle object.)
ERROR: Unable to re-install
file:/C:/glassfish3/glassfish/modules/glassfish-extra-jre-packages.jar
(org.osgi.framework.B undleException: Could not create bundle object.)
ERROR: Unable to re-install
file:/C:/glassfish3/glassfish/modules/glassfish-oracle-jdbc-driver-packages.jar
(org.osgi.fr amework.BundleException: Could not create bundle object.)
ERROR: Bundle jaxb-api [2] Error starting
file:/C:/glassfish3/glassfish/modules/endorsed/jaxb-api-osgi.jar
(org.osgi.fra mework.BundleException: Unresolved constraint in bundle
jaxb-api [2]: Unable to resolve 2.0: missing requirement [2.0] o
sgi.wiring.package; (osgi.wiring.package=javax.activation)) ERROR:
Bundle org.glassfish.metro.webservices-api-osgi [3] Error starting
file:/C:/glassfish3/glassfish/modules/endorsed
/webservices-api-osgi.jar (org.osgi.framework.BundleException:
Unresolved constraint in bundle org.glassfish.metro.webse
rvices-api-osgi [3]: Unable to resolve 3.0: missing requirement [3.0]
osgi.wiring.package; (&(osgi.wiring.package=javax.
xml.bind)(version>=2.2.0)) [caused by: Unable to resolve 2.0: missing
requirement [2.0] osgi.wiring.package; (osgi.wirin
g.package=javax.activation)]) ERROR: Bundle
org.glassfish.main.core.glassfish [101] Error starting
file:/C:/glassfish3/glassfish/modules/glassfish.jar
(org.osgi.framework.BundleException: Activator start error in bundle
org.glassfish.main.core.glassfish [101].) ERROR: Bundle
org.glassfish.hk2.osgi-adapter [202] Error starting
file:/C:/glassfish3/glassfish/modules/osgi-adapter.jar
(org.osgi.framework.BundleException: Unresolved constraint in bundle
org.glassfish.hk2.osgi-adapter [202]: Unable to re solve 202.0:
missing requirement [202.0] osgi.wiring.package;
(&(osgi.wiring.package=com.sun.enterprise.module)(version>
=1.1.0)) [caused by: Unable to resolve 121.0: missing requirement [121.0] osgi.wiring.package; (&(osgi.wiring.package=or
g.jvnet.hk2.config)(version>=1.1.0)) [caused by: Unable to resolve
37.0: missing requirement [37.0] osgi.wiring.package; (osgi.wiring.package=javax.management)]]) …. ….

解决方法:

我在为Java 8配置JAVA_HOME时正在安装Glassfish 3(随JAVA EE 6一起提供).解决方案是修改./glassfish/config/asenv.conf并将AS_JAVA设置为指向Java 7

标签:java,glassfish-3
来源: https://codeday.me/bug/20190823/1702684.html

本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享;
2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关;
3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关;
4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除;
5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有