weblogic.Server to create domain but don't start it (Chef cookbook) - oracle

As i'm working with Chef for automation, i'm required to create a cookbook for weblogic. The thing is that, when the cookbook is executed it hangs at the final step, and that's totally normal since that step runs weblogic.Server Java Class to create a new domain and then it runs the server. So, i want to run weblogic.Server to only create the domain and keep going with the last steps. Is there a way to do that?
I have tried with the argument weblogic.management.startupMode = SHUTDOWN but it doesn't work. I know the argument where considered, since when do a tail -n 1000 | grep SHUTDOWN in the log file, i see:
ip-addres-root:~ # tail -n 1000 -f /opt/middleware/weblogic/mydomain/servers/myserver/logs/myserver.log | grep SHUTDOW
weblogic.management.startupMode = SHUTDOWN
I'm using this to create the domain:
$JAVA_HOME/bin/java $JAVA_OPTIONS -Xmx1024m -Dweblogic.management.username=myuser \
-Dweblogic.management.password=mypassword1 \
-Dweblogic.management.GenerateDefaultConfig=true \
-Dweblogic.management.startupMode=SHUTDOWN weblogic.Server
If i do the steps to run weblogic and i try to create a new domain (with the previous command) at the end of the output it's seen:
<06-jul-2014 04H35' UTC> <Notice> <Security> <BEA-090082> <Security initializing using security realm myrealm.>
<06-jul-2014 04H35' UTC> <Warning> <Store> <BEA-280101> <The persistent file store "_WLS_myserver" is forced to use buffered I/O and so may have significantly degraded performance. Either the OS/hardware environment does not support the chosen write policy or the native wlfileio library is missing. See store open log messages for the requested and final write policies. See the documentation on store synchronous write policy configuration for advice.>
<06-jul-2014 04H35' UTC> <Warning> <HTTP> <BEA-101296> <Unable to load the default compiler class "com.sun.tools.javac.Main". Using the default javac compiler to compile JSPs.>
<06-jul-2014 04H35' UTC> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STANDBY>
<06-jul-2014 04H35' UTC> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING>
<06-jul-2014 04H35' UTC> <Notice> <Log Management> <BEA-170027> <The Server has established connection with the Domain level Diagnostic Service successfully.>
<06-jul-2014 04H35' UTC> <Notice> <Server> <BEA-002613> <Channel "Default[2]" is now listening on 127.0.0.2:7001 for protocols iiop, t3, ldap, snmp, http.>
<06-jul-2014 04H35' UTC> <Notice> <Server> <BEA-002613> <Channel "Default" is now listening on 10.101.1.63:7001 for protocols iiop, t3, ldap, snmp, http.>
<06-jul-2014 04H35' UTC> <Notice> <Server> <BEA-002613> <Channel "Default[1]" is now listening on 127.0.0.1:7001 for protocols iiop, t3, ldap, snmp, http.>
<06-jul-2014 04H35' UTC> <Notice> <WebLogicServer> <BEA-000331> <Started WebLogic Admin Server "myserver" for domain "mydomain" running in Development Mode>
<06-jul-2014 04H35' UTC> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to ADMIN>
<06-jul-2014 04H35' UTC> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RESUMING>
<06-jul-2014 04H35' UTC> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RUNNING>
<06-jul-2014 04H35' UTC> <Notice> <WebLogicServer> <BEA-000360> <Server started in RUNNING mode>
Which makes me think the startupMode=SHUTDOWN is ignored since it says at the end <Server started in RUNNING mode>
Is there a way to create a domain but don't start it, or to tell chef, to keep going after i don't know, 15 minutes wating?

If you simply don't want to start it, one solution is to create a domain "template" with the weblogic config GUI, e.g. /opt/ora/mw/wlserver_10.3/common/bin/config.sh. Once you have a template jar file, you can call the following from Chef:
`/opt/ora/mw/wlserver_10.3/common/bin/unpack.sh -template=<path to your template.jar>
-domain=<path to where you want to install the domain`
This will create the domain but not start the server.
A quick/easy solution to the problem of the server coming up would be to background the call to create the domain and send it to a log file. Then to monitor the log for the RUNNING state to exit successfully via a bach script like:
execute "start weblogic in #{weblogic_home}/WLSDomains/#{node[:som][:domain_name]}" do
command "$JAVA_HOME/bin/java $JAVA_OPTIONS ... weblogic.Server > /tmp/start-weblogic.log 2>&1 &"
action :run
end
execute "waitForRunning -- #{weblogic_bin}/waitForRunning.sh" do
Chef::Log.debug("Waiting for WebLogic server to start")
command "waitForRunning.sh"
cwd "#{weblogic_bin}"
action :run
end
Where waitForRunning.sh will loop for X amount of time grepping your log file for the RUNNING state and then exit when it was reached or exit 1 if the time limit is reached.
Edit
2>&1 & is basically redirect standard error to stdout and both of them to a file so the process is completely backgrounded, this will cause Chef to move on to the next step. The next step, creating a script to monitor the log, you want to do a while loop and then explicitly exit out of the loop when a condition has been met, then Chef will know that step is done and move on as well.

Related

Space Issue being caused due to Weblogic Server warning messages

We have CRM running on seven clustered servers which comprises of our Front End. We have another cluster the Process Manager Cluster comprising of two other machines. These two machines are running weblogic 8.1 windows installation and random nodes on these servers are causing zero space issue due to the logs getting full as a result of a warning message.
There is no change done to the code since ages. What can be the issue here?
####<12-Mar-2007 15:29:35 o'clock GMT> <Alert> <Log Management> <Server1> <scm1-04> <ExecuteThread: '4' for queue: 'weblogic.kernel.Default'> <<anonymous>> <> <BEA-170018> <The log file has been rotated to scm1-04.log17956. Log messages will continue to be logged in D:\logs\scm1-04.log.>
####<12-Mar-2007 15:29:35 o'clock GMT> <Warning> <EJB> <Server1> <scm1-04> <ExecuteThread: '4' for queue: 'weblogic.kernel.Default'> <<anonymous>> <> <BEA-010065> <MessageDrivenBean threw an Exception in onMessage(). The exception was:
java.lang.NoClassDefFoundError.
java.lang.NoClassDefFoundError
at com.clarify.procmgr.ejb.ProcessManagerMDB.onMessage(ProcessManagerMDB.java:58)
at weblogic.ejb20.internal.MDListener.execute(MDListener.java:370)
at weblogic.ejb20.internal.MDListener.onMessage(MDListener.java:262)
at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:2678)
at weblogic.jms.client.JMSSession.execute(JMSSession.java:2598)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
>

Weblogic AdminServer Stuck at startup

I have a weblogic server running on AWS. I took a AMI backup of it and created a new instance from the AMI.
In the new instance, when I try to start the weblogic, It stuck at following state.
<Dec 11, 2018 12:00:01 AM IST> <Info> <Management> <BEA-141107> <Version: WebLogic Server 10.3.6.0 Tue Nov 15 08:52:36 PST 2011 1441050 >
<Dec 11, 2018 12:00:02 AM IST> <Notice> <WebLogicServer> <BEA-000365>
<Server state changed to STARTING>
<Dec 11, 2018 12:00:02 AM IST> <Info> <WorkManager> <BEA-002900> <Initializing self-tuning thread pool>
<Dec 11, 2018 12:00:02 AM IST> <Notice> <Log Management> <BEA-170019> <The server log file /home/weblogic/Oracle/Middleware/user_projects/domains/ClassicDomain/servers/AdminServer/logs/AdminServer.log is opened. All server side log events will be written to this file.
Also see thread dump of the JVM at https://pastebin.com/D9MYSvBj
Any help would highly appreciated.
-- Arun
Issue fixed.
From the thread dump, I found following
"[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'" daemon prio=10 tid=0x00007fda6aad4800 nid=0x6a3b runnable [0x00007fda41d5d000]
java.lang.Thread.State: RUNNABLE
at java.io.FileInputStream.readBytes(Native Method)
at java.io.FileInputStream.read(FileInputStream.java:220)
at sun.security.provider.SeedGenerator$URLSeedGenerator.getSeedBytes(SeedGenerator.java:493)
at sun.security.provider.SeedGenerator.generateSeed(SeedGenerator.java:117)
at sun.security.provider.SecureRandom$SeederHolder.<clinit>(SecureRandom.java:167)
at sun.security.provider.SecureRandom.engineNextBytes(SecureRandom.java:184)
- locked <0x00000000ece53ac0> (a sun.security.provider.SecureRandom)
at java.security.SecureRandom.nextBytes(SecureRandom.java:433)
- locked <0x00000000ece53d60> (a java.security.SecureRandom)
at oracle.ldap.util.guid.GUIDParamGenerator.generateClockSequence(GUIDParamGenerator.java:128)
Did some search in Google and found a solution to change following line in $JAVA_HOME/jre/lib/security/java.security
From
securerandom.source=file:/dev/urandom
To
securerandom.source=file:/dev/./urandom
And restarted weblogic fixed the issue.
Ref : http://ruleoftech.com/2016/avoiding-jvm-delays-caused-by-random-number-generation
Thanks
Arun

NullPointerException while deploying project on Weblogic 12.2.1

We have a JSF application that was on Weblogic 10.3.6 and that we try to deploy on Weblogic 12.2.1.
For information, we succeeded in deploying on Weblogic 12.1.3 without any changes in the project.
We are facing a NullPointerException while deploying on Weblogic 12.2.1 :
.
.
JAVA Memory arguments: -Xms256m -Xmx512m -XX:CompileThreshold=8000
.
CLASSPATH=C:\tools\java8\JDK18~1.0_1\lib\tools.jar;C:\BEA122~1.1\wlserver\server\lib\weblogic.jar;C:\BEA122~1.1\oracle_common\modules\net.sf.antcontrib_1.1.0.0_1-0b3\lib\ant-contrib.jar;C:\BEA122~1.1\wlserver\modules\features\oracle.wls.common.nodemanager.jar;C:\BEA122~1.1\oracle_common\modules\com.oracle.cie.config-wls-online_8.2.0.0.jar;C:\BEA122~1.1\wlserver\common\derby\lib\derbyclient.jar;C:\BEA122~1.1\wlserver\common\derby\lib\derby.jar;C:\PROGRA~2\INSTAN~1\ojdbc14.jar
.
PATH=C:\BEA122~1.1\USER_P~1\domains\myDomain\bin;;C:\BEA122~1.1\wlserver\server\native\win\x64;C:\BEA122~1.1\wlserver\server\bin;C:\BEA122~1.1\oracle_common\modules\org.apache.ant_1.9.2\bin;C:\tools\java8\JDK18~1.0_1\jre\bin;C:\tools\java8\JDK18~1.0_1\bin;C:\PROGRA~3\Oracle\Java\javapath;C:\Windows\System32;C:\Windows;C:\Windows\System32\wbem;C:\Windows\System32\WINDOW~1\v1.0\;C:\PROGRA~2\QUICKT~1\QTSystem;C:\PROGRA~2\INSTAN~1\;C:\PROGRA~1\TORTOI~1\bin;C:\tools\org\apache\maven\maven\303812~1.3\bin;C:\tools\com\sun\java\jdk\6U23-W~1\bin;C:\PROGRA~2\NETCDF~1;C:\BEA122~1.1\wlserver\server\native\win\x64\oci920_8
.
***************************************************
* To start WebLogic Server, use a username and *
* password assigned to an admin-level user. For *
* server administration, use the WebLogic Server *
* console at http:\\hostname:port\console *
***************************************************
Starting WLS with line:
C:\tools\java8\JDK18~1.0_1\bin\java -server -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,address=8453,server=y,suspend=n -Djava.compiler=NONE -Xms256m -Xmx512m -XX:CompileThreshold=8000 -Dweblogic.Name=AdminServer -Djava.security.policy=C:\BEA122~1.1\wlserver\server\lib\weblogic.policy -Xverify:none -Djava.system.class.loader=com.oracle.classloader.weblogic.LaunchClassLoader -javaagent:C:\BEA122~1.1\wlserver\server\lib\debugpatch-agent.jar -ea -da:com.bea... -da:javelin... -da:weblogic... -ea:com.bea.wli... -ea:com.bea.broker... -ea:com.bea.sbconsole... -Dwls.home=C:\BEA122~1.1\wlserver\server -Dweblogic.home=C:\BEA122~1.1\wlserver\server weblogic.Server
Listening for transport dt_socket at address: 8453
<30 déc. 2016 10 h 11 CET> <Info> <Security> <BEA-090905> <Disabling the CryptoJ JCE Provider self-integrity check for better startup performance. To enable this check, specify -Dweblogic.security.allowCryptoJDefaultJCEVerification=true.>
<30 déc. 2016 10 h 11 CET> <Info> <Security> <BEA-090906> <Changing the default Random Number Generator in RSA CryptoJ from ECDRBG128 to HMACDRBG. To disable this change, specify -Dweblogic.security.allowCryptoJDefaultPRNG=true.>
<30 déc. 2016 10 h 11 CET> <Info> <WebLogicServer> <BEA-000377> <Starting WebLogic Server with Java HotSpot(TM) 64-Bit Server VM Version 25.112-b15 from Oracle Corporation.>
<30 déc. 2016 10 h 11 CET> <Info> <RCM> <BEA-2165021> <"ResourceManagement" is not enabled in this JVM. Enable "ResourceManagement" to use the WebLogic Server "Resource Consumption Management" feature. To enable "ResourceManagement", you must specify the following JVM options in the WebLogic Server instance in which the JVM runs: -XX:+UnlockCommercialFeatures -XX:+ResourceManagement.>
<30 déc. 2016 10 h 11 CET> <Info> <Management> <BEA-141107> <Version: WebLogic Server 12.2.1.0.0 Tue Oct 6 10:05:47 PDT 2015 1721936>
<30 déc. 2016 10 h 11 CET> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING.>
<30 déc. 2016 10 h 11 CET> <Info> <WorkManager> <BEA-002900> <Initializing self-tuning thread pool.>
<30 déc. 2016 10 h 11 CET> <Info> <WorkManager> <BEA-002942> <CMM memory level becomes 0. Setting standby thread pool size to 256.>
<30 déc. 2016 10 h 11 CET> <Notice> <Log Management> <BEA-170019> <The server log file weblogic.logging.FileStreamHandler instance=892551724
Current log file=C:\bea12.2.1\user_projects\domains\myDomain\servers\AdminServer\logs\AdminServer.log
Rotation dir=C:\bea12.2.1\user_projects\domains\myDomain\servers\AdminServer\logs
is opened. All server side log events will be written to this file.>
<30 déc. 2016 10 h 11 CET> <Notice> <Security> <BEA-090946> <Security pre-initializing using security realm: myrealm>
<30 déc. 2016 10 h 11 CET> <Notice> <Security> <BEA-090947> <Security post-initializing using security realm: myrealm>
<30 déc. 2016 10 h 11 CET> <Notice> <Security> <BEA-090082> <Security initialized using administrative security realm: myrealm>
<30 déc. 2016 10 h 11 CET> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STANDBY.>
<30 déc. 2016 10 h 11 CET> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING.>
<30 déc. 2016 10 h 11 CET> <Notice> <Log Management> <BEA-170036> <The Logging monitoring service timer has started to check for logged message counts every 30 seconds.>
<30 déc. 2016 10 h 11 CET> <Notice> <Log Management> <BEA-170027> <The server has successfully established a connection with the Domain level Diagnostic Service.>
<30 déc. 2016 10 h 11 CET> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to ADMIN.>
<30 déc. 2016 10 h 11 CET> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RESUMING.>
<30 déc. 2016 10 h 11 CET> <Notice> <Server> <BEA-002613> <Channel "Default[1]" is now listening on 127.0.0.1:7001 for protocols iiop, t3, ldap, snmp, http.>
<30 déc. 2016 10 h 11 CET> <Warning> <Server> <BEA-002611> <The hostname "DSP0761974.atlas.edf.fr", maps to multiple IP addresses: 163.81.65.152, 0:0:0:0:0:0:0:1.>
<30 déc. 2016 10 h 11 CET> <Notice> <Server> <BEA-002613> <Channel "Default" is now listening on 163.81.65.152:7001 for protocols iiop, t3, ldap, snmp, http.>
<30 déc. 2016 10 h 11 CET> <Notice> <WebLogicServer> <BEA-000331> <Started the WebLogic Server Administration Server "AdminServer" for domain "myDomain" running in development mode.>
<30 déc. 2016 10 h 11 CET> <Notice> <Server> <BEA-002613> <Channel "Default[2]" is now listening on 0:0:0:0:0:0:0:1:7001 for protocols iiop, t3, ldap, snmp, http.>
<30 déc. 2016 10 h 11 CET> <Notice> <Server> <BEA-002613> <Channel "Default[1]" is now listening on 127.0.0.1:7001 for protocols iiop, t3, ldap, snmp, http.>
<30 déc. 2016 10 h 11 CET> <Notice> <Server> <BEA-002613> <Channel "Default" is now listening on 163.81.65.152:7001 for protocols iiop, t3, ldap, snmp, http.>
<30 déc. 2016 10 h 11 CET> <Notice> <Server> <BEA-002613> <Channel "Default[2]" is now listening on 0:0:0:0:0:0:0:1:7001 for protocols iiop, t3, ldap, snmp, http.>
<30 déc. 2016 10 h 11 CET> <Notice> <WebLogicServer> <BEA-000360> <The server started in RUNNING mode.>
<30 déc. 2016 10 h 11 CET> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RUNNING.>
<30 déc. 2016 10 h 12 CET> <Error> <Deployer> <BEA-149265> <Failure occurred in the execution of deployment request with ID "1668134555370" for task "0" on [partition-name: DOMAIN]. Error is: "weblogic.application.ModuleException: java.lang.NullPointerException"
weblogic.application.ModuleException: java.lang.NullPointerException
at weblogic.application.internal.ExtensibleModuleWrapper.prepare(ExtensibleModuleWrapper.java:114)
at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:100)
at weblogic.application.internal.flow.ModuleStateDriver$1.next(ModuleStateDriver.java:196)
at weblogic.application.internal.flow.ModuleStateDriver$1.next(ModuleStateDriver.java:191)
at weblogic.application.utils.StateMachineDriver$ParallelChange.run(StateMachineDriver.java:83)
Truncated. see log file for complete stacktrace
Caused By: java.lang.NullPointerException
at java.util.concurrent.ConcurrentHashMap.putVal(ConcurrentHashMap.java:1011)
at java.util.concurrent.ConcurrentHashMap.put(ConcurrentHashMap.java:1006)
at weblogic.spring.monitoring.instrumentation.SpringClassPreprocessor.createSpringInstrumentorEngineIfNecessary(SpringClassPreprocessor.java:67)
at weblogic.spring.monitoring.instrumentation.SpringClassPreprocessor.<init>(SpringClassPreprocessor.java:26)
at weblogic.spring.monitoring.instrumentation.SpringInstrumentationUtils.addSpringInstrumentor(SpringInstrumentationUtils.java:87)
Truncated. see log file for complete stacktrace
>
<30 déc. 2016 10 h 12 CET> <Warning> <Deployer> <BEA-149004> <Failures were detected while initiating deploy task for application "MyProject-ear".>
<30 déc. 2016 10 h 12 CET> <Warning> <Deployer> <BEA-149078> <Stack trace for message 149004
weblogic.application.ModuleException: java.lang.NullPointerException
at weblogic.application.internal.ExtensibleModuleWrapper.prepare(ExtensibleModuleWrapper.java:114)
at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:100)
at weblogic.application.internal.flow.ModuleStateDriver$1.next(ModuleStateDriver.java:196)
at weblogic.application.internal.flow.ModuleStateDriver$1.next(ModuleStateDriver.java:191)
at weblogic.application.utils.StateMachineDriver$ParallelChange.run(StateMachineDriver.java:83)
Truncated. see log file for complete stacktrace
Caused By: java.lang.NullPointerException
at java.util.concurrent.ConcurrentHashMap.putVal(ConcurrentHashMap.java:1011)
at java.util.concurrent.ConcurrentHashMap.put(ConcurrentHashMap.java:1006)
at weblogic.spring.monitoring.instrumentation.SpringClassPreprocessor.createSpringInstrumentorEngineIfNecessary(SpringClassPreprocessor.java:67)
at weblogic.spring.monitoring.instrumentation.SpringClassPreprocessor.<init>(SpringClassPreprocessor.java:26)
at weblogic.spring.monitoring.instrumentation.SpringInstrumentationUtils.addSpringInstrumentor(SpringInstrumentationUtils.java:87)
Truncated. see log file for complete stacktrace
Here is the full stacktrace :
weblogic.application.ModuleException: java.lang.NullPointerException
at weblogic.application.internal.ExtensibleModuleWrapper.prepare(ExtensibleModuleWrapper.java:114)
at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:100)
at weblogic.application.internal.flow.ModuleStateDriver$1.next(ModuleStateDriver.java:196)
at weblogic.application.internal.flow.ModuleStateDriver$1.next(ModuleStateDriver.java:191)
at weblogic.application.utils.StateMachineDriver$ParallelChange.run(StateMachineDriver.java:83)
at weblogic.application.utils.StateMachineDriver.nextStateInParallel(StateMachineDriver.java:144)
at weblogic.application.internal.flow.ModuleStateDriver.parallelPrepare(ModuleStateDriver.java:50)
at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:76)
at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:56)
at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.java:730)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:45)
at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:242)
at weblogic.application.internal.EarDeployment.prepare(EarDeployment.java:67)
at weblogic.application.internal.DeploymentStateChecker.prepare(DeploymentStateChecker.java:158)
at weblogic.deploy.internal.targetserver.AppContainerInvoker.prepare(AppContainerInvoker.java:61)
at weblogic.deploy.internal.targetserver.operations.ActivateOperation.createAndPrepareContainer(ActivateOperation.java:229)
at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doPrepare(ActivateOperation.java:103)
at weblogic.deploy.internal.targetserver.operations.AbstractOperation.prepare(AbstractOperation.java:237)
at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentPrepare(DeploymentManager.java:792)
at weblogic.deploy.internal.targetserver.DeploymentManager.prepareDeploymentList(DeploymentManager.java:1306)
at weblogic.deploy.internal.targetserver.DeploymentManager.handlePrepare(DeploymentManager.java:264)
at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.prepare(DeploymentServiceDispatcher.java:177)
at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doPrepareCallback(DeploymentReceiverCallbackDeliverer.java:171)
at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$000(DeploymentReceiverCallbackDeliverer.java:13)
at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$1.run(DeploymentReceiverCallbackDeliverer.java:46)
at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:643)
at weblogic.invocation.ComponentInvocationContextManager._runAs(ComponentInvocationContextManager.java:348)
at weblogic.invocation.ComponentInvocationContextManager.runAs(ComponentInvocationContextManager.java:333)
at weblogic.work.LivePartitionUtility.doRunWorkUnderContext(LivePartitionUtility.java:54)
at weblogic.work.PartitionUtility.runWorkUnderContext(PartitionUtility.java:41)
at weblogic.work.SelfTuningWorkManagerImpl.runWorkUnderContext(SelfTuningWorkManagerImpl.java:617)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:397)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:346)
Caused By: java.lang.NullPointerException
at java.util.concurrent.ConcurrentHashMap.putVal(ConcurrentHashMap.java:1011)
at java.util.concurrent.ConcurrentHashMap.put(ConcurrentHashMap.java:1006)
at weblogic.spring.monitoring.instrumentation.SpringClassPreprocessor.createSpringInstrumentorEngineIfNecessary(SpringClassPreprocessor.java:67)
at weblogic.spring.monitoring.instrumentation.SpringClassPreprocessor.<init>(SpringClassPreprocessor.java:26)
at weblogic.spring.monitoring.instrumentation.SpringInstrumentationUtils.addSpringInstrumentor(SpringInstrumentationUtils.java:87)
at weblogic.servlet.internal.WebAppInternalModuleExtension$SpringInstrumentationExtension.doInstrumentation(WebAppInternalModuleExtension.java:113)
at weblogic.servlet.internal.WebAppInternalModuleExtension$SpringInstrumentationExtension.access$400(WebAppInternalModuleExtension.java:102)
at weblogic.servlet.internal.WebAppInternalModuleExtension.prePrepare(WebAppInternalModuleExtension.java:57)
at weblogic.application.internal.ExtensibleModuleWrapper$PrepareStateChange.next(ExtensibleModuleWrapper.java:293)
at weblogic.application.internal.ExtensibleModuleWrapper$PrepareStateChange.next(ExtensibleModuleWrapper.java:285)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:45)
at weblogic.application.internal.ExtensibleModuleWrapper.prepare(ExtensibleModuleWrapper.java:109)
at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:100)
at weblogic.application.internal.flow.ModuleStateDriver$1.next(ModuleStateDriver.java:196)
at weblogic.application.internal.flow.ModuleStateDriver$1.next(ModuleStateDriver.java:191)
at weblogic.application.utils.StateMachineDriver$ParallelChange.run(StateMachineDriver.java:83)
at weblogic.application.utils.StateMachineDriver.nextStateInParallel(StateMachineDriver.java:144)
at weblogic.application.internal.flow.ModuleStateDriver.parallelPrepare(ModuleStateDriver.java:50)
at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:76)
at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:56)
at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.java:730)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:45)
at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:242)
at weblogic.application.internal.EarDeployment.prepare(EarDeployment.java:67)
at weblogic.application.internal.DeploymentStateChecker.prepare(DeploymentStateChecker.java:158)
at weblogic.deploy.internal.targetserver.AppContainerInvoker.prepare(AppContainerInvoker.java:61)
at weblogic.deploy.internal.targetserver.operations.ActivateOperation.createAndPrepareContainer(ActivateOperation.java:229)
at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doPrepare(ActivateOperation.java:103)
at weblogic.deploy.internal.targetserver.operations.AbstractOperation.prepare(AbstractOperation.java:237)
at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentPrepare(DeploymentManager.java:792)
at weblogic.deploy.internal.targetserver.DeploymentManager.prepareDeploymentList(DeploymentManager.java:1306)
at weblogic.deploy.internal.targetserver.DeploymentManager.handlePrepare(DeploymentManager.java:264)
at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.prepare(DeploymentServiceDispatcher.java:177)
at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doPrepareCallback(DeploymentReceiverCallbackDeliverer.java:171)
at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$000(DeploymentReceiverCallbackDeliverer.java:13)
at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$1.run(DeploymentReceiverCallbackDeliverer.java:46)
at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:643)
at weblogic.invocation.ComponentInvocationContextManager._runAs(ComponentInvocationContextManager.java:348)
at weblogic.invocation.ComponentInvocationContextManager.runAs(ComponentInvocationContextManager.java:333)
at weblogic.work.LivePartitionUtility.doRunWorkUnderContext(LivePartitionUtility.java:54)
at weblogic.work.PartitionUtility.runWorkUnderContext(PartitionUtility.java:41)
at weblogic.work.SelfTuningWorkManagerImpl.runWorkUnderContext(SelfTuningWorkManagerImpl.java:617)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:397)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:346)
As you can see in the stacktrace, all classes involved are weblogic's classes and no class from my project.
Does anyone have an idea for this problem ?
Thanks in advance
I finally got the solution from Oracle :
Cause
The InvalidPointcutException was raised because of java.lang.ClassCastException message: "antlr.CommonToken cannot be cast to
antlr.Token".
The reason being the jar antlr-2.7.6.jar packaged with the ear file conflicting with the default class loader
Solution
Add the parameter -DANTLR_USE_DIRECT_CLASS_LOADING=true to last occurence of JAVA_OPTIONS in setDomainEnv.cmd file
Stop all the servers
rename tmp and cache folders under each server directory.
Restart the servers.
Deploy the application

Unable to set the activation state to true for the application: weblogic.application.ModuleException:

C:\snapshotviews\app_ant2maven_view1\app_vob\app\app\app-ear>mvn antrun:run
Picked up _JAVA_OPTIONS: -Djava.net.preferIPv4Stack=true
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building WebLogic app ear 1.0.4-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-antrun-plugin:1.7:run (default-cli) # app-ear ---
[INFO] Executing tasks
deploy-weblogic:
[java]
[java] Initializing WebLogic Scripting Tool (WLST) ...
[java]
[java] Welcome to WebLogic Server Administration Scripting Shell
[java]
[java] Type help() for help on available commands
[java]
[java]
[java]
[java] Build number : 1.0.4-SNAPSHOT.-SNAPSHOT
[java] Build label : app_1.0.4-SNAPSHOT
[java]
[java]
[java]
[java]
[java] Admin Port : 7001
[java] Domain Directory : currentDomainDirectory
[java] Domain Name : app7001
[java]
[java]
[java] Starting weblogic server ...
[java] WLST-WLS-1462290651259: <May 3, 2016 10:50:51 AM CDT> <Info> <Security> <BEA-090905> <Disabling CryptoJ JCE Provider self-integrity check for better startup performance. To enable t
his check, specify -Dweblogic.security.allowCryptoJDefaultJCEVerification=true>
[java] WLST-WLS-1462290651259: <May 3, 2016 10:50:51 AM CDT> <Info> <Security> <BEA-090906> <Changing the default Random Number Generator in RSA CryptoJ from ECDRBG to FIPS186PRNG. To disa
ble this change, specify -Dweblogic.security.allowCryptoJDefaultPRNG=true>
[java] WLST-WLS-1462290651259: <May 3, 2016 10:50:51 AM CDT> <Info> <WebLogicServer> <BEA-000377> <Starting WebLogic Server with Java HotSpot(TM) 64-Bit Server VM Version 24.51-b03 from Or
acle Corporation>
[java] WLST-WLS-1462290651259: <May 3, 2016 10:50:52 AM CDT> <Info> <Management> <BEA-140013> <C:\snapshotviews\e872st_DeviA_app_ant2maven_view1\app_vob\app\app\app-ear\target\de
ploy\app7001\config\config.xml not found>
[java] WLST-WLS-1462290651259: <May 3, 2016 10:50:52 AM CDT> <Info> <Management> <BEA-141254> <Generating new domain directory in C:\snapshotviews\e872st_DeviA_app_ant2maven_view1\app_
vob\app\app\app-ear\target\deploy\app7001>
[java] WLST-WLS-1462290651259: <May 3, 2016 10:50:55 AM CDT> <Info> <Management> <BEA-141255> <Domain generation completed in 2,886 milliseconds.>
[java] WLST-WLS-1462290651259: <May 3, 2016 10:50:55 AM CDT> <Info> <Management> <BEA-141107> <Version: WebLogic Server 10.3.4.0 Fri Dec 17 20:47:33 PST 2010 1384255 >
[java] WLST-WLS-1462290651259: <May 3, 2016 10:50:55 AM CDT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING>
[java] WLST-WLS-1462290651259: <May 3, 2016 10:50:55 AM CDT> <Info> <WorkManager> <BEA-002900> <Initializing self-tuning thread pool>
[java] WLST-WLS-1462290651259: <May 3, 2016 10:50:55 AM CDT> <Notice> <Log Management> <BEA-170019> <The server log file C:\snapshotviews\e872st_DeviA_app_ant2maven_view1\app_vob\app
\app\app-ear\target\deploy\app7001\servers\admin7001\logs\admin7001.log is opened. All server side log events will be written to this file.>
[java] WLST-WLS-1462290651259: <May 3, 2016 10:50:55 AM CDT> <Error> <Socket> <BEA-000438> <Unable to load performance pack. Using Java I/O instead. Please ensure that wlntio.dll is in: 'C
:\Program Files\Java\jdk1.7.0_51\jre\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\Program Files (x86)\IBM\RationalSDLC\common;C:\Program Files\Java\jdk1.7.0_51\bin;C:\Program F
iles (x86)\IBM\RationalSDLC\common;C:\oracle\product\client\11gR4\bin;C:\Program Files (x86)\Business Objects\Common\3.5\bin\NOTES\;C:\Program Files (x86)\CURL;C:\WINDOWS\SysWOW64\;C:\WINDOWS;C
:\WINDOWS\SysWOW64\Wbem;C:\WINDOWS\SysWOW64\WindowsPowerShell\v1.0;C:\Program Files (x86)\AdminStudio\10.0\Common;C:\CYGWIN\BIN;C:\Program Files\TortoiseGit\bin;C:\Program Files (x86)\IBM\Ratio
nalSDLC\ClearCase\bin;C:\Program Files (x86)\IBM\gsk8\lib;C:\Program Files (x86)\IBM\gsk8\bin;C:\Program Files (x86)\IBM\RationalSDLC\ClearCase\RemoteClient\cteapis;C:\Program Files (x86)\IBM\R
ationalSDLC\common;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\SysWOW64\;C:\WINDOWS\SysWOW64\Wbem;C:\WINDOWS\SysWOW64\WindowsP
owerShell\v1.0;C:\Program Files\TortoiseGit\bin;C:\Program Files (x86)\IBM\gsk8\lib;C:\Program Files (x86)\IBM\gsk8\bin;C:\Program Files (x86)\IBM\RationalSDLC\ClearCase\bin;C:\Program Files (x
86)\IBM\RationalSDLC\ClearCase\RemoteClient\cteapis;C:\snapshotviews\maven\apache-maven-3.3.9\bin;c:\windows\system32\wbem;;.'
[java] WLST-WLS-1462290651259: >
[java] WLST-WLS-1462290651259: <May 3, 2016 10:50:56 AM CDT> <Notice> <Security> <BEA-090082> <Security initializing using security realm myrealm.>
[java] .WLST-WLS-1462290651259: <May 3, 2016 10:50:57 AM CDT> <Warning> <Store> <BEA-280101> <The persistent file store "_WLS_admin7001" is forced to use buffered I/O and so may have signi
ficantly degraded performance. Either the OS/hardware environment does not support the chosen write policy or the native wlfileio library is missing. See store open log messages for the request
ed and final write policies. See the documentation on store synchronous write policy configuration for advice.>
[java] WLST-WLS-1462290651259: <May 3, 2016 10:50:58 AM CDT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STANDBY>
[java] WLST-WLS-1462290651259: <May 3, 2016 10:50:58 AM CDT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING>
[java] WLST-WLS-1462290651259: <May 3, 2016 10:50:58 AM CDT> <Notice> <Log Management> <BEA-170027> <The Server has established connection with the Domain level Diagnostic Service successf
ully.>
[java] WLST-WLS-1462290651259: <May 3, 2016 10:50:58 AM CDT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to ADMIN>
[java] WLST-WLS-1462290651259: <May 3, 2016 10:50:58 AM CDT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RESUMING>
[java] WLST-WLS-1462290651259: <May 3, 2016 10:50:58 AM CDT> <Notice> <Server> <BEA-002613> <Channel "Default" is now listening on 127.0.0.1:7001 for protocols iiop, t3, ldap, snmp, http.>
[java] WLST-WLS-1462290651259: <May 3, 2016 10:50:58 AM CDT> <Notice> <WebLogicServer> <BEA-000331> <Started WebLogic Admin Server "admin7001" for domain "app7001" running in Development
Mode>
[java] WLST-WLS-1462290651259: <May 3, 2016 10:50:58 AM CDT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RUNNING>
[java] WLST-WLS-1462290651259: <May 3, 2016 10:50:58 AM CDT> <Notice> <WebLogicServer> <BEA-000360> <Server started in RUNNING mode>
[java] Server started successfully.
[java] Connecting to t3://127.0.0.1:7001 with userid wlsboot ...
[java] Successfully connected to Admin Server 'admin7001' that belongs to domain 'app7001'.
[java]
[java] Warning: An insecure protocol was used to connect to the
[java] server. To ensure on-the-wire security, the SSL port or
[java] Admin port should be used instead.
[java]
[java] Location changed to edit tree. This is a writable tree with
[java] DomainMBean as the root. To make changes you will need to start
[java] an edit session via startEdit().
[java]
[java] For more help, use help(edit)
[java]
[java] Starting an edit session ...
[java] Started edit session, please be sure to save and activate your
[java] changes once you are done.
[java] --- Creating Password Validator attributes
[java] Saving all your changes ...
[java] Saved all your changes successfully.
[java] Activating all your changes, this may take a while ...
[java] The edit lock associated with this edit session is released
[java] once the activation is completed.
[java] Activation completed
[java]
[java]
[java] Starting an edit session ...
[java] Started edit session, please be sure to save and activate your
[java] changes once you are done.
[java] Creating Serveradmin7001
[java] Creating JDBC Connection PoolErmaDataSource
[java] target admin7001
[java] Creating JDBC Connection PoolIceDataSource
[java] target admin7001
[java] Creating JDBC Connection PoolLegacyDataSource
[java] target admin7001
[java] Saving all your changes ...
[java] Saved all your changes successfully.
[java] Activating all your changes, this may take a while ...
[java] The edit lock associated with this edit session is released
[java] once the activation is completed.
[java] WLST-WLS-1462290651259: <May 3, 2016 10:51:17 AM CDT> <Warning> <Management> <BEA-141239> <The non-dynamic attribute InternalAppsDeployOnDemandEnabled on weblogic.management.configu
ration.DomainMBeanImpl#30e793cd([app7001]) has been changed. This may require redeploying or rebooting configured entities>
[java] WLST-WLS-1462290651259: <May 3, 2016 10:51:17 AM CDT> <Warning> <Management> <BEA-141238> <A non-dynamic change has been made which affects the server admin7001. This server must be
rebooted in order to consume this change.>
[java] WLST-WLS-1462290651259: <May 3, 2016 10:51:17 AM CDT> <Warning> <Management> <BEA-141239> <The non-dynamic attribute FileName on weblogic.management.configuration.LogMBeanImpl#efb4c
328([app7001]/Log[app7001]) has been changed. This may require redeploying or rebooting configured entities>
[java] WLST-WLS-1462290651259: <May 3, 2016 10:51:17 AM CDT> <Warning> <Management> <BEA-141238> <A non-dynamic change has been made which affects the server admin7001. This server must be
rebooted in order to consume this change.>
[java] WLST-WLS-1462290651259: <May 3, 2016 10:51:17 AM CDT> <Warning> <Management> <BEA-141239> <The non-dynamic attribute AnonymousAdminLookupEnabled on weblogic.management.configuration
.SecurityConfigurationMBeanImpl#efb4c332([app7001]/SecurityConfiguration[app7001]) has been changed. This may require redeploying or rebooting configured entities>
[java] WLST-WLS-1462290651259: <May 3, 2016 10:51:17 AM CDT> <Warning> <Management> <BEA-141238> <A non-dynamic change has been made which affects the server admin7001. This server must be
rebooted in order to consume this change.>
[java] WLST-WLS-1462290651259: <May 3, 2016 10:51:17 AM CDT> <Warning> <Management> <BEA-141239> <The non-dynamic attribute ControlFlag on weblogic.security.providers.authentication.Defaul
tAuthenticatorMBeanImpl#c5b97457([app7001]/SecurityConfiguration[app7001]/Realms[myrealm]/AuthenticationProviders[DefaultAuthenticator]) has been changed. This may require redeploying or re
booting configured entities>
[java] WLST-WLS-1462290651259: <May 3, 2016 10:51:17 AM CDT> <Warning> <Management> <BEA-141238> <A non-dynamic change has been made which affects the server admin7001. This server must be
rebooted in order to consume this change.>
[java] WLST-WLS-1462290651259: <May 3, 2016 10:51:17 AM CDT> <Warning> <Management> <BEA-141239> <The non-dynamic attribute InterfaceAddress on weblogic.management.configuration.ServerMBea
nImpl#2193d17b([app7001]/Servers[admin7001]) has been changed. This may require redeploying or rebooting configured entities>
[java] WLST-WLS-1462290651259: <May 3, 2016 10:51:17 AM CDT> <Warning> <Management> <BEA-141238> <A non-dynamic change has been made which affects the server admin7001. This server must be
rebooted in order to consume this change.>
[java] WLST-WLS-1462290651259: <May 3, 2016 10:51:17 AM CDT> <Warning> <Management> <BEA-141239> <The non-dynamic attribute FileName on weblogic.management.configuration.LogMBeanImpl#74f7f
cc0([app7001]/Servers[admin7001]/Log[admin7001]) has been changed. This may require redeploying or rebooting configured entities>
[java] WLST-WLS-1462290651259: <May 3, 2016 10:51:17 AM CDT> <Warning> <Management> <BEA-141238> <A non-dynamic change has been made which affects the server admin7001. This server must be
rebooted in order to consume this change.>
[java] WLST-WLS-1462290651259: <May 3, 2016 10:51:17 AM CDT> <Warning> <Management> <BEA-141239> <The non-dynamic attribute FileName on weblogic.management.configuration.WebServerLogMBeanI
mpl#243a6de4([app7001]/Servers[admin7001]/WebServer[admin7001]/WebServerLog[admin7001]) has been changed. This may require redeploying or rebooting configured entities>
[java] WLST-WLS-1462290651259: <May 3, 2016 10:51:17 AM CDT> <Warning> <Management> <BEA-141238> <A non-dynamic change has been made which affects the server admin7001. This server must be
rebooted in order to consume this change.>
[java]
[java] The following non-dynamic attribute(s) have been changed on MBeans
[java] that require server re-start:
[java] MBean Changed : com.bea:Name=admin7001,Type=Server
[java] Attributes changed : InterfaceAddress, ListenAddress
[java]
[java] MBean Changed : com.bea:Name=admin7001,Type=Log,Server=admin7001
[java] Attributes changed : FileName, RotateLogOnStartup, RotationType
[java]
[java] MBean Changed : Security:Name=myrealmDefaultAuthenticator
[java] Attributes changed : ControlFlag
[java]
[java] MBean Changed : com.bea:Name=app7001,Type=Domain
[java] Attributes changed : InternalAppsDeployOnDemandEnabled, ProductionModeEnabled
[java]
[java] MBean Changed : com.bea:Name=admin7001,Type=WebServerLog,Server=admin7001,WebServer=admin7001
[java] Attributes changed : FileName, RotateLogOnStartup, RotationType
[java]
[java] MBean Changed : com.bea:Name=app7001,Type=SecurityConfiguration
[java] Attributes changed : AnonymousAdminLookupEnabled
[java]
[java] MBean Changed : com.bea:Name=app7001,Type=Log
[java] Attributes changed : FileName, RotateLogOnStartup, RotationType
[java]
[java] Activation completed
[java] Creating Libraryjstl
[java] Deploying application from C:\bea1034\wlserver1034\server\..\common\deployable-libraries\jstl-1.2.war to targets admin7001 (upload=false) ...
[java] <May 3, 2016 10:51:19 AM CDT> <Info> <J2EE Deployment SPI> <BEA-260121> <Initiating deploy operation for application, jstl [archive: C:\bea1034\wlserver1034\server\..\common\deploya
ble-libraries\jstl-1.2.war], to admin7001 .>
[java] .Completed the deployment of Application with status completed
[java] Current Status of your Deployment:
[java] Deployment command type: deploy
[java] Deployment State : completed
[java] Deployment Message : no message
[java] Creating Applicationapp
[java] Deploying application from C:\snapshotviews\e872st_DeviA_app_ant2maven_view1\app_vob\app\app\app-ear\target\app.ear to targets admin7001 (upload=false) ...
[java] <May 3, 2016 10:51:22 AM CDT> <Info> <J2EE Deployment SPI> <BEA-260121> <Initiating deploy operation for application, app [archive: C:\snapshotviews\e872st_DeviA_app_ant2maven_v
iew1\app_vob\app\app\app-ear\target\app.ear], to admin7001 .>
[java] ...Completed the deployment of Application with status completed
[java] Current Status of your Deployment:
[java] Deployment command type: deploy
[java] Deployment State : completed
[java] Deployment Message : no message
[java] Shutting down the server admin7001 with force=true while connected to admin7001 ...
[java] WLST-WLS-1462290651259: <May 3, 2016 10:51:32 AM CDT> <Alert> <WebLogicServer> <BEA-000396> <Server shutdown has been requested by wlsboot>
[java] WLST-WLS-1462290651259: <May 3, 2016 10:51:32 AM CDT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to FORCE_SUSPENDING>
[java] WLST-WLS-1462290651259: <May 3, 2016 10:51:32 AM CDT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to ADMIN>
[java] WLST-WLS-1462290651259: <May 3, 2016 10:51:32 AM CDT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to FORCE_SHUTTING_DOWN>
[java] WLST-WLS-1462290651259: <May 3, 2016 10:51:32 AM CDT> <Notice> <Server> <BEA-002607> <Channel "Default" listening on 127.0.0.1:7001 was shutdown.>
[java] WLST-WLS-1462290651259: Picked up _JAVA_OPTIONS: -Djava.net.preferIPv4Stack=true
[java] WLST-WLS-1462290651259: Stopped draining WLST-WLS-1462290651259
[java] WLST-WLS-1462290651259: Stopped draining WLST-WLS-1462290651259
[java] WLST lost connection to the WebLogic Server that you were
[java] connected to, this may happen if the server was shutdown or
[java] partitioned. You will have to re-connect to the server once the
[java] server is available.
[java] Disconnected from weblogic server: admin7001
[java] Disconnected from weblogic server:
[java]
[java]
[java] Exiting WebLogic Scripting Tool.
[java]
[java] Picked up _JAVA_OPTIONS: -Djava.net.preferIPv4Stack=true
[java] <May 3, 2016 10:51:47 AM CDT> <Warning> <JNDI> <BEA-050001> <WLContext.close() was called in a different thread than the one in which it was created.>
[delete] Deleting directory C:\snapshotviews\e872st_DeviA_app_ant2maven_view1\app_vob\app\app\app-ear\target\deploy\app7001\servers\admin7001\data\store\default
[java] Listening for transport dt_socket at address: 9810
[java] <May 3, 2016 10:51:48 AM CDT> <Info> <Security> <BEA-090905> <Disabling CryptoJ JCE Provider self-integrity check for better startup performance. To enable this check, specify -Dweb
logic.security.allowCryptoJDefaultJCEVerification=true>
[java] <May 3, 2016 10:51:48 AM CDT> <Info> <Security> <BEA-090906> <Changing the default Random Number Generator in RSA CryptoJ from ECDRBG to FIPS186PRNG. To disable this change, specify
-Dweblogic.security.allowCryptoJDefaultPRNG=true>
[java] <May 3, 2016 10:51:48 AM CDT> <Info> <WebLogicServer> <BEA-000377> <Starting WebLogic Server with Java HotSpot(TM) 64-Bit Server VM Version 24.51-b03 from Oracle Corporation>
[java] <May 3, 2016 10:51:49 AM CDT> <Info> <Management> <BEA-141107> <Version: WebLogic Server 10.3.4.0 Fri Dec 17 20:47:33 PST 2010 1384255 >
[java] <May 3, 2016 10:51:49 AM CDT> <Warning> <Management> <BEA-141275> <Development mode has specified at the command line by setting the weblogic.ProductionModeEnabled system property t
o false. This system property overrides the production mode setting contained in config.xml. However, the console and WLST show the attribute values and defaults that correspond to the producti
on mode specified in config.xml.>
[java] <May 3, 2016 10:51:50 AM CDT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING>
[java] <May 3, 2016 10:51:50 AM CDT> <Info> <WorkManager> <BEA-002900> <Initializing self-tuning thread pool>
[java] <May 3, 2016 10:51:50 AM CDT> <Notice> <Log Management> <BEA-170019> <The server log file C:\snapshotviews\e872st_DeviA_app_ant2maven_view1\app_vob\app\app\app-ear\target\
deploy\logs\app7001\admin7001\weblogic.log is opened. All server side log events will be written to this file.>
[java] <May 3, 2016 10:51:50 AM CDT> <Error> <Socket> <BEA-000438> <Unable to load performance pack. Using Java I/O instead. Please ensure that wlntio.dll is in: 'C:\Program Files\Java\jdk
1.7.0_51\jre\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\Program Files (x86)\IBM\RationalSDLC\common;C:\Program Files\Java\jdk1.7.0_51\bin;C:\Program Files (x86)\IBM\RationalS
DLC\common;C:\oracle\product\client\11gR4\bin;C:\Program Files (x86)\Business Objects\Common\3.5\bin\NOTES\;C:\Program Files (x86)\CURL;C:\WINDOWS\SysWOW64\;C:\WINDOWS;C:\WINDOWS\SysWOW64\Wbem;
C:\WINDOWS\SysWOW64\WindowsPowerShell\v1.0;C:\Program Files (x86)\AdminStudio\10.0\Common;C:\CYGWIN\BIN;C:\Program Files\TortoiseGit\bin;C:\Program Files (x86)\IBM\RationalSDLC\ClearCase\bin;C:
\Program Files (x86)\IBM\gsk8\lib;C:\Program Files (x86)\IBM\gsk8\bin;C:\Program Files (x86)\IBM\RationalSDLC\ClearCase\RemoteClient\cteapis;C:\Program Files (x86)\IBM\RationalSDLC\common;C:\WI
NDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\SysWOW64\;C:\WINDOWS\SysWOW64\Wbem;C:\WINDOWS\SysWOW64\WindowsPowerShell\v1.0;C:\Progra
m Files\TortoiseGit\bin;C:\Program Files (x86)\IBM\gsk8\lib;C:\Program Files (x86)\IBM\gsk8\bin;C:\Program Files (x86)\IBM\RationalSDLC\ClearCase\bin;C:\Program Files (x86)\IBM\RationalSDLC\Cle
arCase\RemoteClient\cteapis;C:\snapshotviews\maven\apache-maven-3.3.9\bin;c:\windows\system32\wbem;;.'
[java] >
[java] <May 3, 2016 10:51:51 AM CDT> <Notice> <Security> <BEA-090082> <Security initializing using security realm myrealm.>
[java] <May 3, 2016 10:51:51 AM CDT> <Warning> <Store> <BEA-280101> <The persistent file store "_WLS_admin7001" is forced to use buffered I/O and so may have significantly degraded perform
ance. Either the OS/hardware environment does not support the chosen write policy or the native wlfileio library is missing. See store open log messages for the requested and final write polici
es. See the documentation on store synchronous write policy configuration for advice.>
[java] <May 3, 2016 10:51:51 AM CDT> <Warning> <Management> <BEA-141277> <The JMX MBean PlatformMBeanServerUsed attribute is true, but the Platform MBeanServer was created without the hook
s for the WLS security infrastructure. The Platform MBeanServer will NOT be used and Platform MBeans will NOT be available via the WLS Runtime or Domain Runtime MBeanServers. This can occur if
you have defined Platform MBeanServer system properties or JVM options (-Dcom.sun.management.jmxremote or JRockit -XManagement).
[java] To allow the Platform MBeanServer to be used, you must either remove the system properties/JVM options or start WLS with the following system property:
[java] -Djavax.management.builder.initial=weblogic.management.jmx.mbeanserver.WLSMBeanServerBuilder
[java] If you want to eliminate this log error and do not need Platform MBeans to be available via WLS, then set the PlatformMBeanUsed attribute in the JMXMBean to false.>
[java] <May 3, 2016 10:51:52 AM CDT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STANDBY>
[java] <May 3, 2016 10:51:52 AM CDT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING>
[java] <May 3, 2016 10:51:58 AM CDT> <Warning> <HTTP> <BEA-101162> <User defined listener org.springframework.web.context.ContextLoaderListener failed: java.lang.NullPointerException.
[java] java.lang.NullPointerException
[java] at org.springframework.core.SerializableTypeWrapper$TypeProxyInvocationHandler.invoke(SerializableTypeWrapper.java:239)
[java] at org.springframework.core.$Proxy54.hashCode(Unknown Source)
[java] at org.springframework.util.ObjectUtils.nullSafeHashCode(ObjectUtils.java:273)
[java] at org.springframework.core.ResolvableType.hashCode(ResolvableType.java:811)
[java] at org.springframework.util.ConcurrentReferenceHashMap.getHash(ConcurrentReferenceHashMap.java:214)
[java] Truncated. see log file for complete stacktrace
[java] >
[java] <May 3, 2016 10:51:58 AM CDT> <Error> <Deployer> <BEA-149231> <Unable to set the activation state to true for the application 'app'.
[java] weblogic.application.ModuleException:
[java] at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1510)
[java] at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:482)
[java] at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)
[java] at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
[java] at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
[java] Truncated. see log file for complete stacktrace
[java] Caused By: java.lang.NullPointerException
[java] at org.springframework.core.SerializableTypeWrapper$TypeProxyInvocationHandler.invoke(SerializableTypeWrapper.java:239)
[java] at org.springframework.core.$Proxy54.hashCode(Unknown Source)
[java] at org.springframework.util.ObjectUtils.nullSafeHashCode(ObjectUtils.java:273)
[java] at org.springframework.core.ResolvableType.hashCode(ResolvableType.java:811)
[java] at org.springframework.util.ConcurrentReferenceHashMap.getHash(ConcurrentReferenceHashMap.java:214)
[java] Truncated. see log file for complete stacktrace
[java] >
[java] <May 3, 2016 10:51:58 AM CDT> <Notice> <Log Management> <BEA-170027> <The Server has established connection with the Domain level Diagnostic Service successfully.>
[java] <May 3, 2016 10:51:59 AM CDT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to ADMIN>
[java] <May 3, 2016 10:51:59 AM CDT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RESUMING>
[java] <May 3, 2016 10:51:59 AM CDT> <Notice> <Server> <BEA-002613> <Channel "Default" is now listening on 10.32.120.50:7001 for protocols iiop, t3, ldap, snmp, http.>
[java] <May 3, 2016 10:51:59 AM CDT> <Notice> <Server> <BEA-002613> <Channel "Default[1]" is now listening on 127.0.0.1:7001 for protocols iiop, t3, ldap, snmp, http.>
[java] <May 3, 2016 10:51:59 AM CDT> <Notice> <WebLogicServer> <BEA-000331> <Started WebLogic Admin Server "admin7001" for domain "app7001" running in Development Mode>
[java] <May 3, 2016 10:51:59 AM CDT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RUNNING>
[java] <May 3, 2016 10:51:59 AM CDT> <Notice> <WebLogicServer> <BEA-000360> <Server started in RUNNING mode>
Weblogic server started in RUNNING mode but the above error occured,
Is it because of the permission issue with a jdbc config file for one of the data sources ??
Unable to set the activation state to true for the application. weblogic.application.ModuleException and Truncated. see log file for complete stacktrace Caused By: java.lang.NullPointerException
Thanks!

Weblogic AdminServer achieves state 'RUNNING' only when network connection is disabled (localhost)

Running WebLogic 10.3.6 on localhost with nothing deployed yet, the state of the AdminServer is always 'SHUTDOWN' and I get this console message:
<08-Aug-2013 12:24:06 o'clock IST> <Warning> <Log Management> <BEA-170011> <The LogBroadcaster on this server failed to broadcast log messages to the admin server. The Admin server may not be running. Message broadcasts to the admin server will be disabled.>
<08-Aug-2013 12:24:07 o'clock IST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RUNNING>
<08-Aug-2013 12:24:07 o'clock IST> <Notice> <WebLogicServer> <BEA-000360> <Server started in RUNNING mode>
When I disconnect from the network, the AdminServer state is 'RUNNING', but I get an exception because my remote jdbc connection can't be achieved.
<08-Aug-2013 12:28:28 o'clock IST> <Error> <Deployer> <BEA-149205> <Failed to initialize the application 'JDBC Data Source-0' due to error weblogic.application.ModuleException: .
weblogic.application.ModuleException:
at weblogic.jdbc.module.JDBCModule.prepare(JDBCModule.java:327)
Caused By: weblogic.common.ResourceException: weblogic.common.ResourceException: Could not create pool connection. The DBMS driver exception was: IO Error: Unknown host specified
at weblogic.jdbc.common.internal.ConnectionEnvFactory.createResource(ConnectionEnvFactory.java:283)
Followed by the same notice that the server is 'Running'
<08-Aug-2013 12:28:41 o'clock IST> <Notice> <WebLogicServer> <BEA-000360> <Server started in RUNNING mode>
Why is it that I get issues for jdbc or the AdminServer but cannot have both working simultaneously? Also, what does the message that the 'Server state has changed to RUNNING' when in the WL Console it says that AdminServer is not running?

Resources