启动JBoss Server时出错

时间:2014-09-11 09:09:38

标签: java eclipse hibernate jboss

我正在研究一个简单的Struts Hibernate集成应用程序并尝试在JBoss服务器上运行它。但是当尝试启动服务器时,我遇到了错误;请检查错误报告

INFO  [AbstractServer] Starting: JBossAS [6.0.0.Final "Neo"]
INFO  [ServerInfo] Java version: 1.6.0_38,Sun Microsystems Inc.
INFO  [ServerInfo] Java Runtime: Java(TM) SE Runtime Environment (build  1.6.0_38-b05)
INFO  [ServerInfo] Java VM: Java HotSpot(TM) Client VM 20.13-b02,Sun Microsystems Inc.
INFO  [ServerInfo] OS-System: Windows 7 6.1,x86
INFO  [ServerInfo] VM arguments: -Dprogram.name=run.bat -Xms128m -Xmx512m -   XX:MaxPermSize=256m -Dfile.encoding=Cp1252 
INFO  [JMXKernel] Legacy JMX core initialized
INFO  [AbstractServerConfig] JBoss Web Services - Stack CXF Server 3.4.1.GA
INFO  [JSFImplManagementDeployer] Initialized 3 JSF configurations: [Mojarra-1.2, MyFaces-2.0, Mojarra-2.0]

ERROR [AbstractKernelController] Error installing to Instantiated: name=PostEjbJarMetadataDeployer state=Described: java.lang.NoSuchMethodError: javax.annotation.Resource.lookup()Ljava/lang/String;

请帮忙。

如果需要任何其他代码,请询问,我会发布。提前致谢。

N.B:

  • IDE:Eclipse Indigo
  • 动态网络模块:2.5
  • Java:1.6
  • JBoss:6.0

已编辑:

在将此-djava.endorsed.dirs =“路径到我的jboss6 home”/ lib / endorsed添加到服务器配置页面中的VM参数后,错误消失了。但是服务器仍然无法启动。

  Scheduler class: 'org.quartz.core.QuartzScheduler' - running locally.
  NOT STARTED.
  Currently in standby mode.
  Number of jobs executed: 0
  Using thread pool 'org.quartz.simpl.SimpleThreadPool' - with 10 threads.
  Using job-store 'org.quartz.simpl.RAMJobStore' - which does not support persistence. and is not clustered.

知道我的朋友吗?请帮忙。

1 个答案:

答案 0 :(得分:0)