我下载了TomEE 1.7.1并已安装。在启动服务器时会抛出IllegalArgumentException。
由于我还没有部署任何应用程序,可能会出现什么问题。
INFO: Using 'openejb.jdbc.datasource- creator=org.apache.tomee.jdbc.TomEEDataSourceCreator'
java.lang.IllegalArgumentException
at java.util.EventObject.<init>(EventObject.java:52)
at java.beans.PropertyChangeEvent.<init>(PropertyChangeEvent.java:41)
at org.apache.tomee.catalina.GlobalListenerSupport$MoniterableHashMap.put(GlobalListenerSupport.java:412)
at java.util.HashMap.putAllImpl(HashMap.java:746)
at java.util.HashMap.putAll(HashMap.java:736)
at java.util.LinkedHashMap.<init>(LinkedHashMap.java:112)
at org.apache.tomee.catalina.GlobalListenerSupport$MoniterableHashMap.<init>(GlobalListenerSupport.java:403)
at org.apache.tomee.catalina.GlobalListenerSupport.addContextListener(GlobalListenerSupport.java:380)
at org.apache.tomee.catalina.GlobalListenerSupport.engineAdded(GlobalListenerSupport.java:224)
at org.apache.tomee.catalina.GlobalListenerSupport.serviceAdded(GlobalListenerSupport.java:201)
at org.apache.tomee.catalina.GlobalListenerSupport.start(GlobalListenerSupport.java:181)
at org.apache.tomee.catalina.TomcatWebAppBuilder.start(TomcatWebAppBuilder.java:409)
at org.apache.tomee.catalina.TomcatLoader.initialize(TomcatLoader.java:223)
at org.apache.tomee.catalina.ServerListener.install(ServerListener.java:168)
at org.apache.tomee.catalina.ServerListener.lifecycleEvent(ServerListener.java:55)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:402)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:110)
at org.apache.catalina.startup.Catalina.load(Catalina.java:638)
at org.apache.catalina.startup.Catalina.load(Catalina.java:663)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:611)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:280)
这是抛出的所有堆栈跟踪。
答案 0 :(得分:0)
检查el JRE_HOME变量环境。 JRE_HOME大部分时间都是5。 例如,Tomcat EE显示:
E:\Users\yo\Documents\apache-tomee-webprofile-1.7.4\bin>startup.bat
Using CATALINA_BASE: "E:\Users\yo\Documents\apache-tomee-webprofile-1.7.4"
Using CATALINA_HOME: "E:\Users\yo\Documents\apache-tomee-webprofile-1.7.4"
Using CATALINA_TMPDIR: "E:\Users\yo\Documents\apache-tomee-webprofile-1.7.4\temp"
Using JRE_HOME: "C:\Program Files\Java\jre7"
Using CLASSPATH: "E:\Users\yo\Documents\apache-tomee-webprofile-1.7.4\bin\bootstrap.jar;E:\Users\yo\Documents\ejecutables\apac
he-tomee-webprofile-1.7.4\bin\tomcat-juli.jar"
检查JRE的版本
- RevisalaversióndelJRE