javaFX,添加button控件后tomcat启动报错

X红薯 发布于 2015/08/21 12:12
阅读 746
收藏 0
public class KioskBrowser extends Application {


    private Scene scene= new Scene(root, 1280, 1024, Color.web("#ffffff"));
    static Button controlArea = new Button();
    static Group root =new Group();
    private int counter=0;//控制面板计数器
    static Group loadingGp =null;
    static ProgressIndicator loading=new ProgressIndicator() ;//加载指示控件
    static Label loadingLabel = new Label();
    static HBox loadingHB = new HBox();
    static double _w=1280;
    static double _h=1024;

    @Override


项目部署到tomcat8,jdk1.8

tomcat启动时报错:

八月 21, 2015 12:05:14 下午 org.apache.catalina.core.StandardContext filterStart
严重: Exception starting filter jfinal
java.lang.ExceptionInInitializerError
at cn.com.jandar.oasis.kioskClient.webview.KioskBrowser.<clinit>(KioskBrowser.java:49)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:264)
at com.jfinal.ext.kit.ClassSearcher.extraction(ClassSearcher.java:126)
at com.jfinal.ext.kit.ClassSearcher.findInClasspathAndJars(ClassSearcher.java:118)
at com.jfinal.ext.route.AutoBindRoutes.config(AutoBindRoutes.java:78)
at com.jfinal.config.Routes.add(Routes.java:40)
at cn.com.jandar.jfinal.config.JFWebConfig.configRoute(JFWebConfig.java:49)
at com.jfinal.core.Config.configJFinal(Config.java:47)
at com.jfinal.core.JFinal.init(JFinal.java:68)
at com.jfinal.core.JFinalFilter.init(JFinalFilter.java:49)
at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:279)
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:260)
at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:105)
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4574)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5193)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:725)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717)
at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:586)
at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1750)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.IllegalStateException: Toolkit not initialized
at com.sun.javafx.application.PlatformImpl.runLater(PlatformImpl.java:273)
at com.sun.javafx.application.PlatformImpl.runLater(PlatformImpl.java:268)
at com.sun.javafx.application.PlatformImpl.setPlatformUserAgentStylesheet(PlatformImpl.java:550)
at com.sun.javafx.application.PlatformImpl.setDefaultPlatformUserAgentStylesheet(PlatformImpl.java:512)
at javafx.scene.control.Control.<clinit>(Control.java:87)
... 27 more


八月 21, 2015 12:05:14 下午 org.apache.catalina.core.StandardContext startInternal
严重: One or more Filters failed to start. Full details will be found in the appropriate container log file
八月 21, 2015 12:05:14 下午 org.apache.catalina.core.StandardContext startInternal
严重: Context [/kioskServer] startup failed due to previous errors


请问这是什么原因?添加了这些button控件后就会报这些错,不添加控件就正常。

加载中
返回顶部
顶部