无法运行Optaplanner Webexamples

时间:2016-02-17 20:53:30

标签: optaplanner

我无法在Tomcat 6或Tomcat 7上运行OPtaplanner 6.3。

12:23:37,710 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] 安装到PostClassLoader时出错:name = vfs:/// F:/axaroDev/.metadata/.plugins/org。 jboss.ide.eclipse.as.core / JBoss_6 .x_Runtime_Server1455858893652 / deploy / optaplanner-webexamples-6.3.0.Final.war state = ClassLoader mode = Manual requiredState = PostClassLoader:org.jboss.deployers.spi.DeploymentException :部署期间出错:vfs:/// F:/axaroDev/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_6.x_Runtime_Server1455858893652/deploy/optaplanner-webexamples-6.3.0.Final.war     at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)[:2.2.2.GA]     在org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:185)[:2.2.2.GA]     在org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1832)[:2.2.2.GA]     在org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1550)[:2.2.2.GA]

引起:java.lang.Error:访问错误&#34; / F:/axaroDev/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_6.x_Runtime_Server1455858893652/deploy /optaplanner-webexamples-6.3.0.Final.war/WEB-INF/lib/optaplanner-core-6.3.0.Final.jar/org/optaplanner/core/config/score/director/ScoreDirectorFactoryConfig.class" < /强>     在org.jboss.classloading.plugins.vfs.VFSResourceVisitor.visit(VFSResourceVisitor.java:268)[jboss-classloading-vfs.jar:2.2.1.GA]     在org.jboss.vfs.VirtualFile.visit(VirtualFile.java:409)[jboss-vfs.jar:3.0.1.GA]     在org.jboss.vfs.VirtualFile.visit(VirtualFile.java:411)[jboss-vfs.jar:3.0.1.GA]     在org.jboss.vfs.VirtualFile.visit(VirtualFile.java:411)[jboss-vfs.jar:3.0.1.GA]

... 69 more

引起:java.lang.RuntimeException:访问资源时出错:VFSResourceContext @ org / optaplanner / core / config / score / director / ScoreDirectorFactoryConfig.class / BaseClassLoader @ 63920fcc {vfs:/// F:/ axaroDev /.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_6.x_Runtime_Server1455858893652/deploy/optaplanner-webexamples-6.3.0.Final.war} ,visitor:org.jboss.scanning。 annotations.plugins.GenericAnnotationVisitor@2412ad77     at org.jboss.scanning.plugins.visitor.IgnoreSetErrorHandler.handleError(IgnoreSetErrorHandler.java:56)[:1.0.0.GA]     在org.jboss.scanning.plugins.visitor.ReflectResourceVisitor.visit(ReflectResourceVisitor.java:91)[:1.0.0.GA]

引起:java.lang.RuntimeException:检索注释属性值时出错     在org.jboss.reflect.plugins.AnnotationValueFactory.createAnnotationValue(AnnotationValueFactory.java:124)[jboss-reflect.jar:2.2.1.SP1]     at org.jboss.reflect.plugins.introspection.IntrospectionTypeInfoFactoryImpl.createAnnotationValue(IntrospectionTypeInfoFactoryImpl.java:124)[jboss-reflect.jar:2.2.1.SP1]     at org.jboss.reflect.plugins.introspection.IntrospectionTypeInfoFactoryImpl.getAnnotations(IntrospectionTypeInfoFactoryImpl.java:117)[jboss-reflect.jar:2.2.1.SP1]     at org.jboss.reflect.plugins.introspection.IntrospectionTypeInfoFactoryImpl $ 1.run(IntrospectionTypeInfoFactoryImpl.java:177)[jboss-reflect.jar:2.2.1.SP1]     at org.jboss.reflect.plugins.introspection.IntrospectionTypeInfoFactoryImpl $ 1.run(IntrospectionTypeInfoFactoryImpl.java:166)[jboss-reflect.jar:2.2.1.SP1]     at java.security.AccessController.doPrivileged(Native Method)[:1.6.0_45]

引起:java.lang.RuntimeException:未处理数组组件类型字节     at org.jboss.reflect.plugins.AnnotationValueFactory.getArray(AnnotationValueFactory.java:220)[jboss-reflect.jar:2.2.1.SP1]     at org.jboss.reflect.plugins.AnnotationValueFactory.createValue(AnnotationValueFactory.java:61)[jboss-reflect.jar:2.2.1.SP1]     at org.jboss.reflect.plugins.AnnotationValueFactory.createAnnotationValue(AnnotationValueFactory.java:119)[jboss-reflect.jar:2.2.1.SP1]     ... 97更多

1 个答案:

答案 0 :(得分:2)

特定的war文件,optaplanner-webexamples 6.3或更高版本需要支持JAX-RS的app服务器,例如WildFly,JBoss EAP,Weblogic,Websphere,......

OptaPlanner本身(optaplanner-core等)在tomcat,Jetty等上运行良好。