Coherence Servers Weblogic 12.1.1 ClassNotFoundException - weblogic

I am following a tutorial and in some part I need set some parameter in Server Start on the Coherence Servers.
My Class Path configurations are:
/opt/Oracle/Weblogic/12.1.1/coherence_3.7/lib/coherence.jar:
/opt/Oracle/Weblogic/12.1.1/modules/javax.management_1.2.2.jar:
/opt/Oracle/Weblogic/12.1.1/modules/javax.management.remote_1.0.1.4.jar:
/opt/Oracle/Weblogic/12.1.1/coherence_3.7/lib/coherence-web-spi.war:`
and my Argument configurations are:
-Dtangosol.coherence.management.remote=true
-Dtangosol.coherence.management=all
-Dtangosol.coherence.session.localstorage=true
-Dtangosol.coherence.cacheconfig=/opt/Oracle/Weblogic/12.1.1/user_projects/domains/labs_domain/config/coherence/my_coh_cluster/session-cache-config.xml
‐Xmanagement:autodiscovery=false,authenticate=false,ssl=false,port=8291
When I tried start the server I received the following error:
<Mar 21, 2014 4:53:21 PM> <INFO> <NodeManager> <Starting Coherence server with command line: /usr/lib/jvm/jdk1.6.0_45/bin/java -Dtangosol.coherence.member=coh_server1 -Dtangosol.coherence.wka=127.0.0.1 -Dtangosol.coherence.wka.port=8888 -Dtangosol.coherence.clusterport=7777 -Dtangosol.coherence.clusteraddress=231.1.1.1 -Dtangosol.coherence.ttl=0 -Dtangosol.coherence.localport=8888 -Dtangosol.coherence.localhost=127.0.0.1 -Dtangosol.coherence.cluster=my_coh_cluster -Djava.class.path=/opt/Oracle/Weblogic/12.1.1/coherence_3.7/lib/coherence.jar: /opt/Oracle/Weblogic/12.1.1/modules/javax.management_1.2.2.jar: /opt/Oracle/Weblogic/12.1.1/modules/javax.management.remote_1.0.1.4.jar: /opt/Oracle/Weblogic/12.1.1/coherence_3.7/lib/coherence-web-spi.war: /opt/Oracle/Weblogic/12.1.1/modules/features/weblogic.server.modules.coherence.server_12.1.1.0.jar -Dtangosol.coherence.management.remote=true -Dtangosol.coherence.management=all -Dtangosol.coherence.session.localstorage=true -Dtangosol.coherence.cacheconfig=/opt/Oracle/Weblogic/12.1.1/user_projects/domains/labs_domain/config/coherence/my_coh_cluster/session-cache-config.xml ‐Xmanagement:autodiscovery=false,authenticate=false,ssl=false,port=8291 -Dweblogic.RootDirectory=/opt/Oracle/Weblogic/12.1.1/user_projects/domains/labs_domain weblogic.nodemanager.server.provider.WeblogicCacheServer >
<Mar 21, 2014 4:53:21 PM> <INFO> <NodeManager> <Working directory is '/opt/Oracle/Weblogic/12.1.1/user_projects/domains/labs_domain'>
<Mar 21, 2014 4:53:21 PM> <INFO> <NodeManager> <Server output log file is '/opt/Oracle/Weblogic/12.1.1/user_projects/domains/labs_domain/servers_coherence/coh_server1/logs/coh_server1.out'>
Exception in thread "main" java.lang.NoClassDefFoundError: ‐Xmanagement:autodiscovery=false,authenticate=false,ssl=false,port=8291
Caused by: java.lang.ClassNotFoundException: ‐Xmanagement:autodiscovery=false,authenticate=false,ssl=false,port=8291
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
Could not find the main class: ‐Xmanagement:autodiscovery=false,authenticate=false,ssl=false,port=8291. Program will exit.
<Mar 21, 2014 4:53:21 PM> <FINEST> <NodeManager> <Waiting for the process to die: null>
<Mar 21, 2014 4:53:21 PM> <INFO> <NodeManager> <Server failed during startup so will not be restarted>
<Mar 21, 2014 4:53:21 PM> <FINEST> <NodeManager> <runMonitor returned, setting finished=true and notifying waiters>
It seems that ‐Xmanagement:autodiscovery is wrong, I just don't know why, 'cause I just follow the steps

I believe the problem is you are not pointed at the JRockit JVM, which is the only JVM that will recognize the Xmanagement:autodiscovery option.
Right now you're pointed at: /usr/lib/jvm/jdk1.6.0_45/bin/java
Switch your JAVA_HOME to a JRockit install.
The other option is to try -Dcom.oracle.management.autodiscovery instead, based on the information here: http://docs.oracle.com/cd/E15289_01/doc.40/e15062/doptions.htm

Related

Apache usergrid tomcat error

I am trying to deploy apache usergrid stack on my localhost. I placed ROOT.war in to /vat/lib/tomcat7/webapps. After restart tomcat when I access http://localhost:8080 then I get nothing in response. When I checked the logs of tomcat, I get following error in localhost log.
Mar 19, 2016 5:51:10 AM org.apache.catalina.core.ApplicationContext log
INFO: No Spring WebApplicationInitializer types detected on classpath
Mar 19, 2016 5:51:10 AM org.apache.catalina.core.StandardContext listenerStart
SEVERE: Error configuring application listener of class org.apache.usergrid.rest.ShutdownListener
java.lang.UnsupportedClassVersionError: org/apache/usergrid/rest/ShutdownListener : Unsupported major.minor version 52.0 (unable to load class org.apache.usergrid.rest.ShutdownListener)
at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:2948)
at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:1208)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1688)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1569)
at org.apache.catalina.core.DefaultInstanceManager.loadClass(DefaultInstanceManager.java:529)
at org.apache.catalina.core.DefaultInstanceManager.loadClassMaybePrivileged(DefaultInstanceManager.java:511)
at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:139)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4888)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5467)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:632)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1073)
at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1857)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:701)
Mar 19, 2016 5:51:10 AM org.apache.catalina.core.StandardContext listenerStart
SEVERE: Skipped installing application listeners due to previous error(s)
If anyone has the solution please help.
The UnsupportedClassVersionError exception usually means that you are trying to run some Java code that is compiled for a newer version of Java, on an older version of Java.
Usergrid 2 requires Java 8 so make sure that you are using a Java 8 JDK.
See the Usergrid Deployment Guide for requirements and instructions:
https://usergrid.apache.org/docs/installation/deployment-guide.html

Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/projectName]]

I am getting following error while running app on tomcat-8. I am using Eclipse Luna-32 bit, tomcat-8 32 bit, Java-8 32 bit.
INFO: Starting Servlet Engine: Apache Tomcat/8.0.18
Dec 24, 2015 6:36:59 PM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor E:\PROJECTS\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\conf\Catalina\localhost\connect_afs_ui.xml
Dec 24, 2015 6:36:59 PM org.apache.catalina.startup.SetContextPropertiesRule begin
WARNING: [SetContextPropertiesRule]{Context} Setting property 'source' to 'org.eclipse.jst.jee.server:connect_afs_ui' did not find a matching property.
Dec 24, 2015 6:36:59 PM org.apache.catalina.core.ContainerBase addChildInternal
SEVERE: ContainerBase.addChild: start:
org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/connect_afs_ui]]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
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:714)
at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:581)
at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1683)
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: org.apache.catalina.LifecycleException: Failed to initialize component [org.apache.catalina.webresources.StandardRoot#146cf9f]
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:106)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:139)
at org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:4832)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:4962)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
... 10 more
Caused by: org.apache.catalina.LifecycleException: Failed to initialize component [org.apache.catalina.webresources.DirResourceSet#1679622]
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:106)
at org.apache.catalina.webresources.StandardRoot.initInternal(StandardRoot.java:657)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
... 14 more
Caused by: java.lang.IllegalArgumentException: The directory specified by base and internal path [C:\Users\ravi.suthar\git\FashionConnect\connect_afs_ui\target\test-classes]\[] does not exist.
at org.apache.catalina.webresources.DirResourceSet.checkType(DirResourceSet.java:247)
at org.apache.catalina.webresources.AbstractFileResourceSet.initInternal(AbstractFileResourceSet.java:134)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
... 16 more
Dec 24, 2015 6:36:59 PM org.apache.catalina.startup.HostConfig deployDescriptor
SEVERE: Error deploying configuration descriptor E:\PROJECTS\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\conf\Catalina\localhost\connect_afs_ui.xml
java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/connect_afs_ui]]
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:728)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:714)
at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:581)
at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1683)
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)
Dec 24, 2015 6:36:59 PM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deployment of configuration descriptor E:\PROJECTS\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\conf\Catalina\localhost\connect_afs_ui.xml has finished in 18 ms
Dec 24, 2015 6:36:59 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-nio-8080"]
Dec 24, 2015 6:36:59 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["ajp-nio-8009"]
Dec 24, 2015 6:36:59 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 303 ms
I did the following steps and the error removed.
1. Delete existing tomcat from the eclipse Server tab and remove existing tomcat directory
2. Provide new copy of tomcat in Server tab > add new server
3. Double click on tomcat from server tab
4. In tomcat overview tab, in Server Option
a. unselect > Select modules without publishing
b. unselect > Publish modules contexts to separate XML files
5. Save tomcat changes
6. Add project to tomcat
7. Publish
8. Start / Debug
I was also facing the same exception. In my case problem was, lib folder under WEB-INF was removed by me by mistake and I started to place custom jars in project main folder and referenced from there in the build path.
After spending a lot of time I realized this mistake and just corrected the directory structure and created lib folder under WEB-INF and placed custom jars in it and referenced from there. It started to work.
Please check same .java file exits in another package, if exits then delete this .java file to solve this type problem. (Eclipse IDE)

Error starting weblogic server

Starting Weblogic Server is not starting the server and the console is forced to shutdown. I couldn't figure out why this is happening. Any help is really appreciated.
I tried running the admin console and here is the error message:
Access is denied.
.
.
JAVA Memory arguments: -Xms256m -Xmx512m -XX:MaxPermSize=512m
.
WLS Start Mode=Production
.
CLASSPATH=C:\Oracle\MIDDLE~2\ORACLE~1\modules\oracle.jdbc_11.1.1\ojdbc6dms.jar;C
:\Oracle\Middleware\wlserver_10.3\server\lib\weblogic.jar;C:\Oracle\Middleware\o
racle_common\modules\oracle.dms_11.1.1\dms.jar;C:\Oracle\Middleware\oracle_commo
n\modules\oracle.jmx_11.1.1\jmxframework.jar;C:\Oracle\Middleware\oracle_common\
modules\oracle.jmx_11.1.1\jmxspi.jar;C:\Oracle\Middleware\oracle_common\modules\
oracle.odl_11.1.1\ojdl.jar;C:\Oracle\Middleware\as_1\common\wlst\lib\adf-share-m
beans-wlst.jar;C:\Oracle\Middleware\as_1\common\wlst\lib\mdswlst.jar;C:\Oracle\Middleware\as_1\common\wlst\resources\oamap_help.jar;C:\O
racle\Middleware\as_1\common\wlst\resources\oamAuthnProvider.jar;C:\Oracle\Middl
eware\as_1\common\wlst\resources\ossoiap_help.jar;C:\Oracle\Middleware\as_1\comm
on\wlst\resources\ossoiap.jar;C:\
Oracle\MIDDLE~2\ORACLE~1\soa\modules\commons-cli-1.1.jar;C:\Oracle\MIDDLE~2\ORAC
LE~1\soa\modules\oracle.soa.mgmt_11.1.1\soa-infra-mgmt.jar;C:\Oracle\MIDDLE~2\OR
ACLE~1\modules\oracle.jrf_11.1.1\jrf.jar;C:\Oracle\MIDDLE~2\WLSERV~1.3\server\li
b\xqrl.jar
.
PATH=C:\Oracle\Middleware\as_1\bin;C:\Windows\system32;C:\Windows;C:\Windows\Sys
tem32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Java\jdk
1.6.0_43;C:\Program Files\Java\jdk1.6.0_43\bin;C:\Oracle\Middleware\as_1\opmn\bi
n;C:\Oracle\Middleware\as_1\opmn\lib;C:\Oracle\Middleware\as_1\perl\bin
.
***************************************************
* 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 weblogic with Java version:
java version "1.6.0_43"
Java(TM) SE Runtime Environment (build 1.6.0_43-b01)
Java HotSpot(TM) 64-Bit Server VM (build 20.14-b01, mixed mode)
Starting WLS with line:
C:\PROGRA~1\Java\JDK16~1.0_4\bin\java -Xms256m -Xmx512m -XX:MaxPermSize=512m
-Dweblogic.Name=AdminServer -Djava.security.policy=C:\Oracle\MIDDLE~2\WLSERV~1.
3\server\lib\weblogic.policy -Dweblogic.ProductionModeEnabled=true -da -Dplat
form.home=C:\Oracle\MIDDLE~2\WLSERV~1.3 -Dwls.home=C:\Oracle\MIDDLE~2\WLSERV~1.3
\server -Dweblogic.home=C:\Oracle\MIDDLE~2\WLSERV~1.3\server -Xms512m -Xmx1024
m -XX:PermSize=256m -XX:MaxPermSize=512m -Doracle.home=C:\Oracle\Middleware\as_1
-Ddomain.home=C:\Oracle\Middleware\user_projects\domains\FormsReports -Dcommon.
components.home=C:\Oracle\MIDDLE~2\ORACLE~1 -Djrf.version=11.1.1 -Dorg.apache.co
mmons.logging.Log=org.apache.commons.logging.impl.Jdk14Logger -Ddomain.home=C:\O
racle\MIDDLE~2\USER_P~1\domains\FORMSR~1 -Djrockit.optfile=C:\Oracle\MIDDLE~2\OR
ACLE~1\modules\oracle.jrf_11.1.1\jrocket_optfile.txt -Doracle.server.config.dir=
C:\Oracle\MIDDLE~2\USER_P~1\domains\FORMSR~1\config\FMWCON~1\servers\AdminServer
-Doracle.domain.config.dir=C:\Oracle\MIDDLE~2\USER_P~1\domains\FORMSR~1\config\
FMWCON~1 -Digf.arisidbeans.carmlloc=C:\Oracle\MIDDLE~2\USER_P~1\domains\FORMSR~
1\config\FMWCON~1\carml -Digf.arisidstack.home=C:\Oracle\MIDDLE~2\USER_P~1\doma
ins\FORMSR~1\config\FMWCON~1\arisidprovider -Doracle.security.jps.config=C:\Orac
le\MIDDLE~2\USER_P~1\domains\FORMSR~1\config\fmwconfig\jps-config.xml -Doracle.d
eployed.app.dir=C:\Oracle\MIDDLE~2\USER_P~1\domains\FORMSR~1\servers\AdminServer
\tmp\_WL_user -Doracle.deployed.app.ext=\- -Dweblogic.alternateTypesDirectory=C:
\Oracle\MIDDLE~2\ORACLE~1\modules\oracle.ossoiap_11.1.1,C:\Oracle\MIDDLE~2\ORACL
E~1\modules\oracle.oamprovider_11.1.1 -Djava.protocol.handler.pkgs=oracle.mds.ne
t.protocol -Dweblogic.jdbc.remoteEnabled=false -Dwc.oracle.home=C:\Oracle\Midd
leware\as_1 -Dclassic.oracle.home=C:\Oracle\Middleware\as_1 -Dem.oracle.home=C:
\Oracle\Middleware\oracle_common -Djava.awt.headless=true -Dweblogic.management.
discover=true -Dwlw.iterativeDev=false -Dwlw.testConsole=false -Dwlw.logErrorsT
oConsole=false weblogic.Server
<Oct 7, 2015 9:30:50 AM SGT> <Info> <Security> <BEA-090905> <Disabling CryptoJ J
CE Provider self-integrity check for better startup performance. To enable this
check, specify -Dweblogic.security.allowCryptoJDefaultJCEVerification=true>
<Oct 7, 2015 9:30:50 AM SGT> <Info> <Security> <BEA-090906> <Changing the defaul
t Random Number Generator in RSA CryptoJ from ECDRBG to FIPS186PRNG. To disable
this change, specify -Dweblogic.security.allowCryptoJDefaultPRNG=true>
<Oct 7, 2015 9:30:50 AM SGT> <Info> <WebLogicServer> <BEA-000377> <Starting WebL
ogic Server with Java HotSpot(TM) 64-Bit Server VM Version 20.14-b01 from Sun Mi
crosystems Inc.>
<Oct 7, 2015 9:30:51 AM SGT> <Info> <Management> <BEA-141107> <Version: WebLogic
Server 10.3.6.0 Tue Nov 15 08:52:36 PST 2011 1441050 >
<Oct 7, 2015 9:30:52 AM SGT> <Notice> <WebLogicServer> <BEA-000365> <Server stat
e changed to STARTING>
<Oct 7, 2015 9:30:52 AM SGT> <Info> <WorkManager> <BEA-002900> <Initializing sel
f-tuning thread pool>
<Oct 7, 2015 9:30:52 AM SGT> <Notice> <Log Management> <BEA-170019> <The server
log file C:\Oracle\Middleware\user_projects\domains\FormsReports\servers\AdminSe
rver\logs\AdminServer.log is opened. All server side log events will be written
to this file.>
<Oct 7, 2015 9:30:53 AM SGT> <Error> <Socket> <BEA-000438> <Unable to load perfo
rmance pack. Using Java I/O instead. Please ensure that wlntio.dll is in: 'C:\PR
OGRA~1\Java\JDK16~1.0_4\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windo
ws;C:\Oracle\Middleware\as_1\bin;C:\Windows\system32;C:\Windows;C:\Windows\Syste
m32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Java\jdk1.
6.0_43;C:\Program Files\Java\jdk1.6.0_43\bin;C:\Oracle\Middleware\as_1\opmn\bin;
C:\Oracle\Middleware\as_1\opmn\lib;C:\Oracle\Middleware\as_1\perl\bin;C:\Program
Files\TortoiseSVN\bin;.'
>
Oct 7, 2015 9:30:56 AM oracle.security.jps.internal.credstore.ssp.CsfWalletManag
er openWallet
WARNING: Opening of wallet based credential store failed. Reason java.io.IOExcep
tion: C:\Oracle\Middleware\user_projects\domains\FormsReports\config\fmwconfig\b
ootstrap\cwallet.sso (Access is denied)
Oct 7, 2015 9:30:56 AM oracle.security.jps.internal.keystore.file.FileKeyStoreIn
tegrityChecker <init>
WARNING: Key store file integrity checker initialization failed. Reason oracle.s
ecurity.jps.service.keystore.KeyStoreServiceException: JPS-01050: Opening of wal
let based credential store failed. Reason java.io.IOException: C:\Oracle\Middlew
are\user_projects\domains\FormsReports\config\fmwconfig\bootstrap\cwallet.sso (A
ccess is denied)
Oct 7, 2015 9:30:56 AM oracle.security.jps.internal.keystore.file.FileKeyStoreMa
nager openKeyStore
WARNING: Opening of file based keystore failed.
<Oct 7, 2015 9:30:56 AM SGT> <Error> <Security> <BEA-090892> <The loading of OPS
S java security policy provider failed due to exception, see the exception stack
trace or the server log file for root cause. If still see no obvious cause, ena
ble the debug flag -Djava.security.debug=jpspolicy to get more information. Erro
r message: JPS-06514: Opening of file based keystore failed.>
<Oct 7, 2015 9:30:56 AM SGT> <Critical> <WebLogicServer> <BEA-000386> <Server su
bsystem failed. Reason: weblogic.security.SecurityInitializationException: The l
oading of OPSS java security policy provider failed due to exception, see the ex
ception stack trace or the server log file for root cause. If still see no obvio
us cause, enable the debug flag -Djava.security.debug=jpspolicy to get more info
rmation. Error message: JPS-06514: Opening of file based keystore failed.
weblogic.security.SecurityInitializationException: The loading of OPSS java secu
rity policy provider failed due to exception, see the exception stack trace or t
he server log file for root cause. If still see no obvious cause, enable the deb
ug flag -Djava.security.debug=jpspolicy to get more information. Error message:
JPS-06514: Opening of file based keystore failed.
at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.lo
adOPSSPolicy(CommonSecurityServiceManagerDelegateImpl.java:1402)
at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.in
itialize(CommonSecurityServiceManagerDelegateImpl.java:1022)
at weblogic.security.service.SecurityServiceManager.initialize(SecurityS
erviceManager.java:873)
at weblogic.security.SecurityService.start(SecurityService.java:141)
at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
Truncated. see log file for complete stacktrace
Caused By: oracle.security.jps.JpsRuntimeException: JPS-06514: Opening of file b
ased keystore failed.
at oracle.security.jps.internal.policystore.PolicyDelegationController.<
init>(PolicyDelegationController.java:167)
at oracle.security.jps.internal.policystore.JavaPolicyProvider.<init>(Ja
vaPolicyProvider.java:369)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
orAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
onstructorAccessorImpl.java:27)
Truncated. see log file for complete stacktrace
Caused By: oracle.security.jps.JpsException: JPS-06514: Opening of file based ke
ystore failed.
at oracle.security.jps.internal.policystore.PolicyUtil.getDefaultPDPServ
ice(PolicyUtil.java:2855)
at oracle.security.jps.internal.policystore.PolicyUtil.getPDPService(Pol
icyUtil.java:3097)
at oracle.security.jps.internal.policystore.PolicyDelegationController.<
init>(PolicyDelegationController.java:164)
at oracle.security.jps.internal.policystore.JavaPolicyProvider.<init>(Ja
vaPolicyProvider.java:369)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
Truncated. see log file for complete stacktrace
Caused By: oracle.security.jps.service.keystore.KeyStoreServiceException: JPS-06
514: Opening of file based keystore failed.
at oracle.security.jps.internal.keystore.file.FileKeyStoreManager.openKe
yStore(FileKeyStoreManager.java:374)
at oracle.security.jps.internal.keystore.file.FileKeyStoreServiceImpl.do
Init(FileKeyStoreServiceImpl.java:104)
at oracle.security.jps.internal.keystore.file.FileKeyStoreServiceImpl.<i
nit>(FileKeyStoreServiceImpl.java:76)
at oracle.security.jps.internal.keystore.file.FileKeyStoreServiceImpl.<i
nit>(FileKeyStoreServiceImpl.java:66)
at oracle.security.jps.internal.keystore.KeyStoreProvider.getInstance(Ke
yStoreProvider.java:157)
Truncated. see log file for complete stacktrace
>
<Oct 7, 2015 9:30:56 AM SGT> <Notice> <WebLogicServer> <BEA-000365> <Server stat
e changed to FAILED>
<Oct 7, 2015 9:30:56 AM SGT> <Error> <WebLogicServer> <BEA-000383> <A critical s
ervice failed. The server will shut itself down>
<Oct 7, 2015 9:30:56 AM SGT> <Notice> <WebLogicServer> <BEA-000365> <Server stat
e changed to FORCE_SHUTTING_DOWN>
C:\Oracle\Middleware\user_projects\domains\FormsReports>
For some reason WebLogic Server is unable to access cwallet.sso. It looks like there's a couple of other files along the way it can't access as well.
Check permissions on the domain directory structure and make sure your current user can access required files. If that doesn't help at all, try running startWebLogic as an Administrator user on the machine.
I just recently had a problem with an incorrect set of JCE Unlimited Jurisdiction files. Moving them back to the old version made this error go away.

Cannot load driver class: com.microsoft.sqlserver.jdbc.SQLServerDriver

I get success when i test it using database wizard.
But
I get the following error while i run my jsf/adf application ::
C:\Users\dev4\AppData\Roaming\JDeveloper\system11.1.1.3.37.56.60\o.j2ee\drs\sqlConnTestApp\ViewController_sqlWebApp.war
[12:55:18 PM] Wrote Enterprise Application Module to C:\Users\dev4\AppData\Roaming\JDeveloper\system11.1.1.3.37.56.60\o.j2ee\drs\sqlConnTestApp
[12:55:18 PM] Deploying Application...
<Jul 10, 2012 12:55:19 PM IST> <Warning> <J2EE> <BEA-160195> <The application version lifecycle event listener oracle.security.jps.wls.listeners.JpsAppVersionLifecycleListener is ignored because the application sqlConnTestApp is not versioned.>
<Jul 10, 2012 12:55:20 PM IST> <Error> <Deployer> <BEA-149265> <Failure occurred in the execution of deployment request with ID '1341905118356' for task '4'. Error is: 'weblogic.application.ModuleException: '
weblogic.application.ModuleException:
at weblogic.jdbc.module.JDBCModule.prepare(JDBCModule.java:290)
at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:199)
at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:507)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:41)
at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:149)
Truncated. see log file for complete stacktrace
Caused By: weblogic.common.resourcepool.ResourceSystemException: Cannot load driver class: com.microsoft.sqlserver.jdbc.SQLServerDriver
at weblogic.jdbc.common.internal.JDBCUtil.parseException(JDBCUtil.java:301)
at weblogic.jdbc.common.internal.ConnectionEnvFactory.loadDriver(ConnectionEnvFactory.java:75)
at weblogic.jdbc.common.internal.ConnectionEnvFactory.<init>(ConnectionEnvFactory.java:131)
at weblogic.jdbc.common.internal.ConnectionPool.initPooledResourceFactory(ConnectionPool.java:686)
at weblogic.common.resourcepool.ResourcePoolImpl.start(ResourcePoolImpl.java:230)
Truncated. see log file for complete stacktrace
>
<Jul 10, 2012 12:55:20 PM IST> <Warning> <Deployer> <BEA-149004> <Failures were detected while initiating deploy task for application 'sqlConnTestApp'.>
<Jul 10, 2012 12:55:20 PM IST> <Warning> <Deployer> <BEA-149078> <Stack trace for message 149004
weblogic.application.ModuleException:
at weblogic.jdbc.module.JDBCModule.prepare(JDBCModule.java:290)
at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:199)
at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:507)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:41)
at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:149)
Truncated. see log file for complete stacktrace
Caused By: weblogic.common.resourcepool.ResourceSystemException: Cannot load driver class: com.microsoft.sqlserver.jdbc.SQLServerDriver
at weblogic.jdbc.common.internal.JDBCUtil.parseException(JDBCUtil.java:301)
at weblogic.jdbc.common.internal.ConnectionEnvFactory.loadDriver(ConnectionEnvFactory.java:75)
at weblogic.jdbc.common.internal.ConnectionEnvFactory.<init>(ConnectionEnvFactory.java:131)
at weblogic.jdbc.common.internal.ConnectionPool.initPooledResourceFactory(ConnectionPool.java:686)
at weblogic.common.resourcepool.ResourcePoolImpl.start(ResourcePoolImpl.java:230)
Truncated. see log file for complete stacktrace
>
[12:55:21 PM] #### Deployment incomplete. ####
[12:55:21 PM] Remote deployment failed (oracle.jdevimpl.deploy.common.Jsr88RemoteDeployer)
#### Cannot run application sqlConnTestApp due to error deploying to IntegratedWebLogicServer.
[Application sqlConnTestApp stopped and undeployed from Server Instance IntegratedWebLogicServer]
Even i added the jar file in the classpath.I am using sqljdbc4.jar version.
Put the slqjdbc4.jar or sqljdbc.jar library file in lib folder under DefaultDomain in your IntegratedWLS installation path, if running in in IDE.
C:\Documents and Settings\user\Application Data\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain\lib -
or
C:\Users\user\AppData\Roaming\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain\lib
Previous answer worked very well for me, I'm using Jdeveloper 12c with integrated weblogic, in my case I used sqljdbc4 jar file because it provides support for java 7:
"
Put the slqjdbc4.jar or sqljdbc.jar library file in lib folder under DefaultDomain in your IntegratedWLS installation path, if running in in IDE.
C:\Documents and Settings\user\Application Data\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain\lib -
or
C:\Users\user\AppData\Roaming\JDeveloper\system11.1.1.3.37.56.60\DefaultDomain\lib
".
Commented just in case anyone is facing the same problem.

In Spring project unable to start Tomcat from IntlleiJ

I have spring project. Now i am configuring Tomcat Server in IntelliJ. When i run the Tomcat from IntelliJ, it shows the following console error.
SEVERE: Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.context.weaving.AspectJWeavingEnabler#0': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'loadTimeWeaver': Initialization of bean failed; nested exception is java.lang.IllegalStateException: ClassLoader [org.apache.catalina.loader.WebappClassLoader] does NOT provide an 'addTransformer(ClassFileTransformer)' method. Specify a custom LoadTimeWeaver or start your Java virtual machine with Spring's agent: -javaagent:org.springframework.instrument.jar
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:527)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1079)
at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:643)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:407)
at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4723)
at org.apache.catalina.core.StandardContext$1.call(StandardContext.java:5226)
at org.apache.catalina.core.StandardContext$1.call(StandardContext.java:5221)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'loadTimeWeaver': Initialization of bean failed; nested exception is java.lang.IllegalStateException: ClassLoader [org.apache.catalina.loader.WebappClassLoader] does NOT provide an 'addTransformer(ClassFileTransformer)' method. Specify a custom LoadTimeWeaver or start your Java virtual machine with Spring's agent: -javaagent:org.springframework.instrument.jar
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:527)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
at org.springframework.context.weaving.LoadTimeWeaverAwareProcessor.postProcessBeforeInitialization(LoadTimeWeaverAwareProcessor.java:95)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:394)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1413)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
... 19 more
Caused by: java.lang.IllegalStateException: ClassLoader [org.apache.catalina.loader.WebappClassLoader] does NOT provide an 'addTransformer(ClassFileTransformer)' method. Specify a custom LoadTimeWeaver or start your Java virtual machine with Spring's agent: -javaagent:org.springframework.instrument.jar
at org.springframework.context.weaving.DefaultContextLoadTimeWeaver.setBeanClassLoader(DefaultContextLoadTimeWeaver.java:83)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeAwareMethods(AbstractAutowireCapableBeanFactory.java:1436)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1408)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
... 28 more
Jul 18, 2011 2:43:51 PM com.sun.xml.ws.transport.http.servlet.WSServletContextListener contextInitialized
INFO: WSSERVLET12: JAX-WS context listener initializing
Jul 18, 2011 2:43:51 PM com.sun.xml.ws.server.MonitorBase createRoot
INFO: Metro monitoring rootname successfully set to: null
Jul 18, 2011 2:43:52 PM com.sun.xml.ws.server.MonitorBase createRoot
INFO: Metro monitoring rootname successfully set to: null
Jul 18, 2011 2:43:52 PM com.sun.xml.ws.server.MonitorBase createRoot
INFO: Metro monitoring rootname successfully set to: null
Jul 18, 2011 2:43:52 PM com.sun.xml.ws.transport.http.servlet.WSServletDelegate <init>
INFO: WSSERVLET14: JAX-WS servlet initializing
Jul 18, 2011 2:43:52 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Error listenerStart
Jul 18, 2011 2:43:52 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Context [] startup failed due to previous errors
Jul 18, 2011 2:43:52 PM com.sun.xml.ws.transport.http.servlet.WSServletDelegate destroy
INFO: WSSERVLET15: JAX-WS servlet destroyed
Jul 18, 2011 2:43:52 PM com.sun.xml.ws.transport.http.servlet.WSServletContextListener contextDestroyed
INFO: WSSERVLET13: JAX-WS context listener destroyed
Jul 18, 2011 2:43:52 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive jamon.war
Jul 18, 2011 2:43:52 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory docs
Jul 18, 2011 2:43:53 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory examples
Jul 18, 2011 2:43:53 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory host-manager
Jul 18, 2011 2:43:54 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory manager
Jul 18, 2011 2:43:54 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory resweb
Jul 18, 2011 2:43:55 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory soapui
Jul 18, 2011 2:43:55 PM org.apache.coyote.AbstractProtocolHandler start
INFO: Starting ProtocolHandler ["http-bio-8080"]
Jul 18, 2011 2:43:55 PM org.apache.coyote.AbstractProtocolHandler start
INFO: Starting ProtocolHandler ["ajp-bio-8009"]
Jul 18, 2011 2:43:55 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 10133 ms
Connected to server
Your stacktrace says
Caused by: org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'loadTimeWeaver': Initialization of bean
failed; nested exception is java.lang.IllegalStateException:
ClassLoader [org.apache.catalina.loader.WebappClassLoader] does NOT
provide an 'addTransformer(ClassFileTransformer)' method. Specify a
custom LoadTimeWeaver or start your Java virtual machine with Spring's
agent: -javaagent:org.springframework.instrument.jar
Perhaps you could do as it suggests? Add a -javaagent to the VM args in the run-config.