nexus资源库在安装完毕,启动时有时会出现:The nexus-webapp service was launched, but failed to start."错误

nexus资源库在安装完毕,启动时有时会出现:The nexus-webapp service was launched, but failed to start."错误
网上寻找解决方法可能并未解决我们的问题,这时我们需要查看nexus log日志文件里面会有错误信息,本人在配置的过程出现的问题如下:
 
java.lang.UnsupportedClassVersionError: Bad version number in .class file
at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) at java.net.URLClassLoader.defineClass(URLClassLoader.java:260) at java.net.URLClassLoader.access$100(URLClassLoader.java:56) at ...
 
 
引起上面原因是因为编译环境出现了问题,我项目中使的jdk1.5,不知道nexus编译文件使用的是JDK1.6版本,我从网上重新下载JDK1.6安装完,
 
在\bin\jsw\conf\warpper.config配置文件中设置wrapper.java.command= D:\Program Files\Java\jdk1.6.0_10\bin\JAVA (如果已配置环境变量,可以直接=java)    就可以 正常启动neuxus服务器了
 
官方解决方案如

When attempting to start Nexus, I received a startup error:

"The nexus-webapp service was launched, but failed to start."

The root cause:

This server (which also performs the CM builds) was reconfigured so that each "build engineer" would define the JAVA_HOME (and define JAVA_HOME in their path) in their own session contexts so they would have the ability to define the specific Java version needed for thier build requirements. Previously, the JAVA_HOME environment variable was defined as a System Variable. Becuse the JAVA_HOME System variable was removed, it caused Nexus to fail any futire restarts.

Solution:

Restored the JAVA_HOME System variable.

 
 

 
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值