weblogic启动报错<log4j:WARN Error during default initialization> ?

最开始weblogic能起成功,我接手的时候weblogic启动失败有报错,然后我重新导入oracle数据库,出现了日志中的错误,排查结果:weblogic单独启动没问题,weblogic部署中数据源测试也是成功的,jar包也一直没动过 最后日志如下

<Sep 11, 2019 10:59:06 AM CST> <Notice> <Stdout> <BEA-000000> <Bundle依赖校验耗时(ms):2> 
<Sep 11, 2019 10:59:06 AM CST> <Notice> <Stdout> <BEA-000000> <没有不满足的依赖。> 
<Sep 11, 2019 10:59:06 AM CST> <Notice> <StdErr> <BEA-000000> <log4j:WARN Error during default initialization> 
<Sep 11, 2019 10:59:06 AM CST> <Notice> <StdErr> <BEA-000000> <java.lang.NoClassDefFoundError: org/w3c/dom/Node> 
<Sep 11, 2019 10:59:06 AM CST> <Notice> <StdErr> <BEA-000000> <at java.lang.Class.getDeclaredConstructors0(Native Method)> 
<Sep 11, 2019 10:59:06 AM CST> <Notice> <StdErr> <BEA-000000> <at java.lang.Class.privateGetDeclaredConstructors(Class.java:2398)> 
<Sep 11, 2019 10:59:06 AM CST> <Notice> <StdErr> <BEA-000000> <at java.lang.Class.getConstructor0(Class.java:2708)> 
<Sep 11, 2019 10:59:06 AM CST> <Notice> <StdErr> <BEA-000000> <at java.lang.Class.newInstance0(Class.java:328)> 
<Sep 11, 2019 10:59:06 AM CST> <Notice> <StdErr> <BEA-000000> <at java.lang.Class.newInstance(Class.java:310)> 
<Sep 11, 2019 10:59:06 AM CST> <Notice> <StdErr> <BEA-000000> <at org.apache.log4j.helpers.OptionConverter.instantiateByClassName(OptionConverter.java:330)> 
<Sep 11, 2019 10:59:06 AM CST> <Notice> <StdErr> <BEA-000000> <at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:460)> 
<Sep 11, 2019 10:59:06 AM CST> <Notice> <StdErr> <BEA-000000> <at org.apache.log4j.LogManager.<clinit>(LogManager.java:125)> 
<Sep 11, 2019 10:59:06 AM CST> <Notice> <StdErr> <BEA-000000> <at org.apache.log4j.Logger.getLogger(Logger.java:105)> 
<Sep 11, 2019 10:59:06 AM CST> <Notice> <StdErr> <BEA-000000> <at org.apache.commons.logging.impl.Log4JLogger.getLogger(Log4JLogger.java:289)> 
<Sep 11, 2019 10:59:06 AM CST> <Notice> <StdErr> <BEA-000000> <at org.apache.commons.logging.impl.Log4JLogger.<init>(Log4JLogger.java:109)> 
<Sep 11, 2019 10:59:06 AM CST> <Notice> <StdErr> <BEA-000000> <at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)> 
<Sep 11, 2019 10:59:06 AM CST> <Notice> <StdErr> <BEA-000000> <at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)> 
<Sep 11, 2019 10:59:06 AM CST> <Notice> <StdErr> <BEA-000000> <at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)> 
<Sep 11, 2019 10:59:06 AM CST> <Notice> <StdErr> <BEA-000000> <at java.lang.reflect.Constructor.newInstance(Constructor.java:513)> 
<Sep 11, 2019 10:59:06 AM CST> <Notice> <StdErr> <BEA-000000> <at org.apache.commons.logging.impl.LogFactoryImpl.createLogFromClass(LogFactoryImpl.java:1116)> 
<Sep 11, 2019 10:59:06 AM CST> <Notice> <StdErr> <BEA-000000> <at org.apache.commons.logging.impl.LogFactoryImpl.discoverLogImplementation(LogFactoryImpl.java:914)> 
<Sep 11, 2019 10:59:06 AM CST> <Notice> <StdErr> <BEA-000000> <at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:604)> 
<Sep 11, 2019 10:59:06 AM CST> <Notice> <StdErr> <BEA-000000> <at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:336)> 
<Sep 11, 2019 10:59:06 AM CST> <Notice> <StdErr> <BEA-000000> <at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:310)> 
<Sep 11, 2019 10:59:06 AM CST> <Notice> <StdErr> <BEA-000000> <at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:685)> 
<Sep 11, 2019 10:59:06 AM CST> <Notice> <StdErr> <BEA-000000> <at com.ygsoft.ecp.service.osgi.starter.env.SystemConfigurator.<clinit>(SystemConfigurator.java:34)> 
<Sep 11, 2019 10:59:06 AM CST> <Notice> <StdErr> <BEA-000000> <at com.ygsoft.ecp.service.osgi.starter.Activator.start(Activator.java:51)> 
<Sep 11, 2019 10:59:06 AM CST> <Notice> <StdErr> <BEA-000000> <at org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(BundleContextImpl.java:1015)> 
<Sep 11, 2019 10:59:06 AM CST> <Notice> <StdErr> <BEA-000000> <at java.security.AccessController.doPrivileged(Native Method)> 
<Sep 11, 2019 10:59:06 AM CST> <Notice> <StdErr> <BEA-000000> <at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:1009)> 
<Sep 11, 2019 10:59:06 AM CST> <Notice> <StdErr> <BEA-000000> <at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:984)> 
<Sep 11, 2019 10:59:06 AM CST> <Notice> <StdErr> <BEA-000000> <at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:348)> 
<Sep 11, 2019 10:59:06 AM CST> <Notice> <StdErr> <BEA-000000> <at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:357)> 
<Sep 11, 2019 10:59:06 AM CST> <Notice> <StdErr> <BEA-000000> <at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1074)> 
<Sep 11, 2019 10:59:06 AM CST> <Notice> <StdErr> <BEA-000000> <at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:616)> 
<Sep 11, 2019 10:59:06 AM CST> <Notice> <StdErr> <BEA-000000> <at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:508)> 
<Sep 11, 2019 10:59:06 AM CST> <Notice> <StdErr> <BEA-000000> <at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:299)> 
<Sep 11, 2019 10:59:06 AM CST> <Notice> <StdErr> <BEA-000000> <at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:489)> 
<Sep 11, 2019 10:59:06 AM CST> <Notice> <StdErr> <BEA-000000> <at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:211)> 
<Sep 11, 2019 10:59:06 AM CST> <Notice> <StdErr> <BEA-000000> <at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:321)> 
<Sep 11, 2019 10:59:06 AM CST> <Notice> <StdErr> <BEA-000000> <Caused by: java.lang.ClassNotFoundException: BundleLoader[org.apache.log4j_1.2.15.v201005080500].loadBundleClass(org.w3c.dom.Node)> 
<Sep 11, 2019 10:59:06 AM CST> <Notice> <StdErr> <BEA-000000> <at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:407)> 
<Sep 11, 2019 10:59:06 AM CST> <Notice> <StdErr> <BEA-000000> <at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:387)> 
<Sep 11, 2019 10:59:06 AM CST> <Notice> <StdErr> <BEA-000000> <at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:87)> 
<Sep 11, 2019 10:59:06 AM CST> <Notice> <StdErr> <BEA-000000> <at java.lang.ClassLoader.loadClass(ClassLoader.java:247)> 
<Sep 11, 2019 10:59:06 AM CST> <Notice> <StdErr> <BEA-000000> <... 36 more> 
<Sep 11, 2019 10:59:06 AM CST> <Notice> <StdErr> <BEA-000000> <Caused by: java.lang.ClassNotFoundException: org.w3c.dom.Node> 
<Sep 11, 2019 10:59:06 AM CST> <Notice> <StdErr> <BEA-000000> <at org.eclipse.osgi.framework.internal.core.BundleLoader.findClassInternal(BundleLoader.java:491)> 
<Sep 11, 2019 10:59:06 AM CST> <Notice> <StdErr> <BEA-000000> <at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:404)> 
<Sep 11, 2019 10:59:06 AM CST> <Notice> <StdErr> <BEA-000000> <... 39 more> 
<Sep 11, 2019 10:59:06 AM CST> <Notice> <StdErr> <BEA-000000> <log4j:WARN No appenders could be found for logger (com.ygsoft.ecp.service.osgi.starter.env.SystemConfigurator).> 
<Sep 11, 2019 10:59:06 AM CST> <Notice> <StdErr> <BEA-000000> <log4j:WARN Please initialize the log4j system properly.> 
<Sep 11, 2019 10:59:06 AM CST> <Notice> <Log Management> <BEA-170027> <The Server has established connection with the Domain level Diagnostic Service successfully.> 
<Sep 11, 2019 10:59:06 AM CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to ADMIN> 
<Sep 11, 2019 10:59:06 AM CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RESUMING> 
<Sep 11, 2019 10:59:06 AM CST> <Warning> <Server> <BEA-002611> <Hostname "localhost", maps to multiple IP addresses: 127.0.0.1, 0:0:0:0:0:0:0:1> 
<Sep 11, 2019 10:59:06 AM CST> <Notice> <Server> <BEA-002613> <Channel "Default[3]" is now listening on 0:0:0:0:0:0:0:1:17001 for protocols iiop, t3, ldap, snmp, http.> 
<Sep 11, 2019 10:59:06 AM CST> <Notice> <Server> <BEA-002613> <Channel "Default[2]" is now listening on 127.0.0.1:17001 for protocols iiop, t3, ldap, snmp, http.> 
<Sep 11, 2019 10:59:06 AM CST> <Notice> <Server> <BEA-002613> <Channel "Default[1]" is now listening on fe80:0:0:0:250:56ff:fe96:d83:17001 for protocols iiop, t3, ldap, snmp, http.> 
<Sep 11, 2019 10:59:06 AM CST> <Notice> <Server> <BEA-002613> <Channel "Default" is now listening on 172.16.2.174:17001 for protocols iiop, t3, ldap, snmp, http.> 
<Sep 11, 2019 10:59:06 AM CST> <Notice> <WebLogicServer> <BEA-000329> <Started WebLogic Admin Server "AdminServer" for domain "invoice_domain" running in Production Mode> 
<Sep 11, 2019 10:59:06 AM CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RUNNING> 
<Sep 11, 2019 10:59:06 AM CST> <Notice> <WebLogicServer> <BEA-000360> <Server started in RUNNING mode> 
<Sep 11, 2019 10:59:07 AM CST> <Notice> <Stdout> <BEA-000000> <注销服务{org.springframework.beans.factory.xml.NamespaceHandlerResolver}={spring.osgi.core.bundle.id=422, spring.osgi.core.bundle.timestamp=1568170745417, service.id=22}> 
<Sep 11, 2019 10:59:07 AM CST> <Notice> <Stdout> <BEA-000000> <注销服务{org.xml.sax.EntityResolver}={spring.osgi.core.bundle.id=422, spring.osgi.core.bundle.timestamp=1568170745417, service.id=23}> 
<Sep 11, 2019 11:04:06 AM CST> <Notice> <StdErr> <BEA-000000> <Exception in thread "OSGiStartLog Timer" java.lang.ExceptionInInitializerError> 
<Sep 11, 2019 11:04:06 AM CST> <Notice> <StdErr> <BEA-000000> <at com.ygsoft.ecp.service.osgi.starter.core.OSGiStartLogTimerTask.run(OSGiStartLogTimerTask.java:54)> 
<Sep 11, 2019 11:04:06 AM CST> <Notice> <StdErr> <BEA-000000> <at java.util.TimerThread.mainLoop(Timer.java:512)> 
<Sep 11, 2019 11:04:06 AM CST> <Notice> <StdErr> <BEA-000000> <at java.util.TimerThread.run(Timer.java:462)> 
<Sep 11, 2019 11:04:06 AM CST> <Notice> <StdErr> <BEA-000000> <Caused by: org.apache.commons.logging.LogConfigurationException: java.lang.NoClassDefFoundError: sun/reflect/ConstructorAccessorImpl (Caused by java.lang.NoClassDefFoundError: sun/ref
lect/ConstructorAccessorImpl)> 
<Sep 11, 2019 11:04:06 AM CST> <Notice> <StdErr> <BEA-000000> <at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:637)> 
<Sep 11, 2019 11:04:06 AM CST> <Notice> <StdErr> <BEA-000000> <at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:336)> 
<Sep 11, 2019 11:04:06 AM CST> <Notice> <StdErr> <BEA-000000> <at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:310)> 
<Sep 11, 2019 11:04:06 AM CST> <Notice> <StdErr> <BEA-000000> <at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:685)> 
<Sep 11, 2019 11:04:06 AM CST> <Notice> <StdErr> <BEA-000000> <at com.ygsoft.ecp.service.osgi.starter.util.WebLogicUtil.<clinit>(WebLogicUtil.java:27)> 
<Sep 11, 2019 11:04:06 AM CST> <Notice> <StdErr> <BEA-000000> <... 3 more> 
<Sep 11, 2019 11:04:06 AM CST> <Notice> <StdErr> <BEA-000000> <Caused by: java.lang.NoClassDefFoundError: sun/reflect/ConstructorAccessorImpl> 
<Sep 11, 2019 11:04:06 AM CST> <Notice> <StdErr> <BEA-000000> <at sun.misc.Unsafe.defineClass(Native Method)> 
<Sep 11, 2019 11:04:06 AM CST> <Notice> <StdErr> <BEA-000000> <at sun.reflect.ClassDefiner.defineClass(ClassDefiner.java:45)> 
<Sep 11, 2019 11:04:06 AM CST> <Notice> <StdErr> <BEA-000000> <at sun.reflect.MethodAccessorGenerator$1.run(MethodAccessorGenerator.java:381)> 
<Sep 11, 2019 11:04:06 AM CST> <Notice> <StdErr> <BEA-000000> <at java.security.AccessController.doPrivileged(Native Method)> 
<Sep 11, 2019 11:04:06 AM CST> <Notice> <StdErr> <BEA-000000> <at sun.reflect.MethodAccessorGenerator.generate(MethodAccessorGenerator.java:377)> 
<Sep 11, 2019 11:04:06 AM CST> <Notice> <StdErr> <BEA-000000> <at sun.reflect.MethodAccessorGenerator.generateConstructor(MethodAccessorGenerator.java:76)> 
<Sep 11, 2019 11:04:06 AM CST> <Notice> <StdErr> <BEA-000000> <at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:30)> 
<Sep 11, 2019 11:04:06 AM CST> <Notice> <StdErr> <BEA-000000> <at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)> 
<Sep 11, 2019 11:04:06 AM CST> <Notice> <StdErr> <BEA-000000> <at java.lang.reflect.Constructor.newInstance(Constructor.java:513)> 
<Sep 11, 2019 11:04:06 AM CST> <Notice> <StdErr> <BEA-000000> <at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:608)> 
<Sep 11, 2019 11:04:06 AM CST> <Notice> <StdErr> <BEA-000000> <... 7 more> 
<Sep 11, 2019 11:04:06 AM CST> <Notice> <StdErr> <BEA-000000> <Caused by: java.lang.ClassNotFoundException: BundleLoader[org.apache.commons.logging_1.1.1].loadBundleClass(sun.reflect.ConstructorAccessorImpl)> 
<Sep 11, 2019 11:04:06 AM CST> <Notice> <StdErr> <BEA-000000> <at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:407)> 
<Sep 11, 2019 11:04:06 AM CST> <Notice> <StdErr> <BEA-000000> <at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:387)> 
<Sep 11, 2019 11:04:06 AM CST> <Notice> <StdErr> <BEA-000000> <at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:87)> 
<Sep 11, 2019 11:04:06 AM CST> <Notice> <StdErr> <BEA-000000> <at java.lang.ClassLoader.loadClass(ClassLoader.java:247)> 
<Sep 11, 2019 11:04:06 AM CST> <Notice> <StdErr> <BEA-000000> <... 17 more> 
<Sep 11, 2019 11:04:06 AM CST> <Notice> <StdErr> <BEA-000000> <Caused by: java.lang.ClassNotFoundException: sun.reflect.ConstructorAccessorImpl> 
<Sep 11, 2019 11:04:06 AM CST> <Notice> <StdErr> <BEA-000000> <at org.eclipse.osgi.framework.internal.core.BundleLoader.findClassInternal(BundleLoader.java:491)> 
<Sep 11, 2019 11:04:06 AM CST> <Notice> <StdErr> <BEA-000000> <at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:404)> 
<Sep 11, 2019 11:04:06 AM CST> <Notice> <StdErr> <BEA-000000> <... 20 more> 
<Sep 11, 2019 11:09:06 AM CST> <Notice> <StdErr> <BEA-000000> <Exception in thread "OSGiStartLog Timer" java.lang.NoClassDefFoundError: Could not initialize class com.ygsoft.ecp.service.osgi.starter.util.WebLogicUtil> 
<Sep 11, 2019 11:09:06 AM CST> <Notice> <StdErr> <BEA-000000> <at com.ygsoft.ecp.service.osgi.starter.core.OSGiStartLogTimerTask.run(OSGiStartLogTimerTask.java:54)> 
<Sep 11, 2019 11:09:06 AM CST> <Notice> <StdErr> <BEA-000000> <at java.util.TimerThread.mainLoop(Timer.java:512)> 
<Sep 11, 2019 11:09:06 AM CST> <Notice> <StdErr> <BEA-000000> <at java.util.TimerThread.run(Timer.java:462)> 
<Sep 11, 2019 11:10:24 AM CST> <Warning> <netuix> <BEA-423420> <Redirect is executed in begin or refresh action. Redirect url is /console/console.portal?_nfpb=true&_pageLabel=JdbcDatasourcesJDBCDataSourceConfigTabPage&JdbcDatasourcesJDBCDataSourc
eConfigPortlethandle=com.bea.console.handles.JMXHandle%28%22com.bea%3AName%3DJDBC+Data+Source-1%2CType%3Dweblogic.j2ee.descriptor.wl.JDBCDataSourceBean%2CParent%3D%5Binvoice_domain%5D%2FJDBCSystemResources%5BJDBC+Data+Source-1%5D%2CPath%3DJDBCRes
ource%5BJDBC+Data+Source-1%5D%22%29.> 
<Sep 11, 2019 11:14:06 AM CST> <Notice> <StdErr> <BEA-000000> <Exception in thread "OSGiStartLog Timer" java.lang.NoClassDefFoundError: Could not initialize class com.ygsoft.ecp.service.osgi.starter.util.WebLogicUtil> 
<Sep 11, 2019 11:14:06 AM CST> <Notice> <StdErr> <BEA-000000> <at com.ygsoft.ecp.service.osgi.starter.core.OSGiStartLogTimerTask.run(OSGiStartLogTimerTask.java:54)> 
<Sep 11, 2019 11:14:06 AM CST> <Notice> <StdErr> <BEA-000000> <at java.util.TimerThread.mainLoop(Timer.java:512)> 
<Sep 11, 2019 11:14:06 AM CST> <Notice> <StdErr> <BEA-000000> <at java.util.TimerThread.run(Timer.java:462)> 
<Sep 11, 2019 2:21:40 PM CST> <Warning> <netuix> <BEA-423420> <Redirect is executed in begin or refresh action. Redirect url is /console/console.portal?_nfpb=true&_pageLabel=JdbcDatasourcesJDBCDataSourceConfigTabPage&JdbcDatasourcesJDBCDataSource
ConfigPortlethandle=com.bea.console.handles.JMXHandle%28%22com.bea%3AName%3DJDBC+Data+Source-1%2CType%3Dweblogic.j2ee.descriptor.wl.JDBCDataSourceBean%2CParent%3D%5Binvoice_domain%5D%2FJDBCSystemResources%5BJDBC+Data+Source-1%5D%2CPath%3DJDBCReso
urce%5BJDBC+Data+Source-1%5D%22%29.> 
<Sep 11, 2019 3:19:01 PM CST> <Error> <JDBC> <BEA-001112> <Test "SELECT 1 FROM DUAL" set up for pool "JDBC Data Source-1" failed with exception: "java.lang.NullPointerException".> 
<Sep 11, 2019 3:19:02 PM CST> <Notice> <Stdout> <BEA-000000> <tcp connect from (172.16.2.174:55154) to (172.16.7.3:18600) take 0 seconds for test ok, from nari―jdbc> 
<Sep 11, 2019 3:19:02 PM CST> <Notice> <Stdout> <BEA-000000> <tcp connect from (172.16.2.174:55155) to (172.16.7.3:18600) take 0 seconds for test ok, from nari―jdbc> 

2个回答

zxml_kdl
zxml_kdl 不是这个问题,日志显示的是jar包和数据源的问题
4 个月之前 回复
Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问