2016-02-17 50 views
1

我無法在Tomcat 6或Tomcat 7.運行OPtaplanner 6.3無法運行Optaplanner Webexamples

12:23:37710 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.ret hrowAsDeploymentException(DeploymentException.java:49)[:2.2.2.GA] at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:185)[:2.2.2.GA] at org。 jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1832)[:2.2.2.GA] at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1550)[: 2.2.2.GA]

造成的:java.lang.Error的錯誤:訪問「/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「 at org.jboss.classloading.plugins.vfs.VFSResourceVisitor.visit(VFSResourceVisitor.java:268)[jboss-classloading-vfs.jar:2.2.1.GA] at org.jboss.vfs.VirtualFile.visit(VirtualFile .java:409)[jboss-vfs.jar:3.0.1.GA] at 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:[email protected]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] 處的註釋屬性值 時出錯。 jboss.reflect.plugins.introspection.Introspec tionTypeInfoFactoryImpl.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

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

OptaPlanner本身(optaplanner核等)完美的作品在Tomcat,Jetty的等

+1

感謝傑弗裏..只是一個建議 - 爲什麼不optaplanner隊舉辦在線的例子某處網絡? –

+0

好點。因爲我們需要保持這種運行狀態,並且這需要花費很少的時間:)我在openshift上進行了webexamples戰爭,但是之後2個月後它停止工作,因爲我沒有從調試日誌記錄更改並且我們的文件配額已達到(免費帳戶)。我打算再次設置它,這確實是有用的。我首先想要進一步充實VRP地圖的例子。 –

+0

哦,是的 - vrp地圖的例子,結合谷歌地圖,使用我的免費谷歌API密鑰。這是另一個問題,因爲這也有配額限制... –