Thursday, October 29, 2015

Checking Weblogic version

To check Weblogic version go to WL_HOME/server/bin and run setWLSEnv.sh
Next run java weblogic.version

#java weblogic.version

WebLogic Server 10.3.6.0  Tue Nov 15 08:52:36 PST 2011 1441050

Use 'weblogic.version -verbose' to get subsystem information

Use 'weblogic.utils.Versions' to get version information for all modules

In Windows open cmd, go to WL_HOME\server\bin and run setWLSEnv.cmd

How to resolve: java.lang.ClassCastException: weblogic.net.http.SOAPHttpsURLConnection cannot be cast to javax.net.ssl.HttpsURLConnection

Hi. Today I will share easy recipe to resolve following error:

<org.jsfportal.shiro.FacebookRealm> <FacebookRealm> <doGetAuthenticationInfo> <Throwable: weblogic.net.http.SOAPHttpsURLConnection cannot be cast to javax.net.ssl.HttpsURLConnection> 
java.lang.ClassCastException: weblogic.net.http.SOAPHttpsURLConnection cannot be cast to javax.net.ssl.HttpsURLConnection
    at pl.windroos.shiro.FacebookRealm.readURL(FacebookRealm.java:118)
    at pl.windroos.shiro.FacebookRealm.doGetAuthenticationInfo(FacebookRealm.java:84)
    at org.apache.shiro.realm.AuthenticatingRealm.getAuthenticationInfo(AuthenticatingRealm.java:568)
    at org.apache.shiro.authc.pam.ModularRealmAuthenticator.doMultiRealmAuthentication(ModularRealmAuthenticator.java:219)
    at org.apache.shiro.authc.pam.ModularRealmAuthenticator.doAuthenticate(ModularRealmAuthenticator.java:269)
    at org.apache.shiro.authc.AbstractAuthenticator.authenticate(AbstractAuthenticator.java:198)
    at org.apache.shiro.mgt.AuthenticatingSecurityManager.authenticate(AuthenticatingSecurityManager.java:106)
    at org.apache.shiro.mgt.DefaultSecurityManager.login(DefaultSecurityManager.java:270)
    at org.apache.shiro.subject.support.DelegatingSubject.login(DelegatingSubject.java:256)
    at pl.windroos.shiro.FacebookLoginServlet.doGet(FacebookLoginServlet.java:53)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:687)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:286)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:260)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:137)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:350)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:25)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:78)
    at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:61)
    at org.apache.shiro.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:108)
    at org.apache.shiro.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:137)
    at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
    at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:66)
    at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)
    at org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)
    at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)
    at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)
    at org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383)
    at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)
    at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:78)
    at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:141)
    at java.security.AccessController.doPrivileged(Native Method)
    at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)
    at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:649)
    at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:124)
    at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:232)
    at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:94)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:78)
    at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:224)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:78)
    at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:32)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:78)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3654)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3620)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:326)
    at weblogic.security.service.SecurityManager.runAsForUserCode(SecurityManager.java:196)
    at weblogic.servlet.provider.WlsSecurityProvider.runAsForUserCode(WlsSecurityProvider.java:203)
    at weblogic.servlet.provider.WlsSubjectHandle.run(WlsSubjectHandle.java:71)
    at weblogic.servlet.internal.WebAppServletContext.doSecuredExecute(WebAppServletContext.java:2423)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2280)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2258)
    at weblogic.servlet.internal.ServletRequestImpl.runInternal(ServletRequestImpl.java:1626)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1586)
    at weblogic.servlet.provider.ContainerSupportProviderImpl$WlsRequestExecutor.run(ContainerSupportProviderImpl.java:270)
    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)

The error can occur only when you deployed your appplication to the Weblogic Server and you try to run following (or simillar) code:

URL url;
url = new URL("https://yoururl.com");
HttpsURLConnection con = (HttpsURLConnection)url.openConnection();

There are two (or maybe more) ways to bypass this problem.
  1. Fix your code. You can create URL object in a following way:
    url = new URL(null,"https://yoururl.com",new sun.net.www.protocol.https.Handler());
  2. Using a more "general" solution you can force the usage of the Sun Http Handlers instead of the Weblogic specific. To do this you should add java option: -DUseSunHttpHandler in startWeblogic.sh or startWeblogic.cmd:
    set JAVA_OPTIONS=%JAVA_OPTIONS% -DUseSunHttpHandler=true

Saturday, June 6, 2015

Certificate chain received from graph.facebook.com - failed hostname verification check. Certificate contained *.facebook.com but check expected graph.facebook.com

How to avoid following Weblogic error when implementing "authentication and authorization via facebook":

<2015-05-17 20:59:29 CEST> <Warning> <Security> <BEA-090504> <Certificate chain received from graph.facebook.com - 31.13.93.3 failed hostname verification check. Certificate contained *.facebook.com but check expected graph.facebook.com> 

javax.net.ssl.SSLKeyException: Hostname verification failed: HostnameVerifier=weblogic.security.utils.SSLWLSHostnameVerifier, hostname=graph.facebook.com.

    at weblogic.security.SSL.jsseadapter.JaSSLEngine.doPostHandshake(JaSSLEngine.java:677)

    at weblogic.security.SSL.jsseadapter.JaSSLEngine.doAction(JaSSLEngine.java:748)

    at weblogic.security.SSL.jsseadapter.JaSSLEngine.unwrap(JaSSLEngine.java:132)

    at weblogic.socket.JSSEFilterImpl.unwrap(JSSEFilterImpl.java:603)

    at weblogic.socket.JSSEFilterImpl.unwrapAndHandleResults(JSSEFilterImpl.java:507)

    at weblogic.socket.JSSEFilterImpl.doHandshake(JSSEFilterImpl.java:96)

    at weblogic.socket.JSSEFilterImpl.doHandshake(JSSEFilterImpl.java:75)

    at weblogic.socket.JSSESocket.startHandshake(JSSESocket.java:219)

    at weblogic.net.http.HttpsClient.New(HttpsClient.java:563)

    at weblogic.net.http.HttpsClient.New(HttpsClient.java:534)

    at weblogic.net.http.HttpsURLConnection.connect(HttpsURLConnection.java:248)

    at weblogic.net.http.HttpURLConnection.getInputStream(HttpURLConnection.java:636)

    at weblogic.net.http.SOAPHttpsURLConnection.getInputStream(SOAPHttpsURLConnection.java:37)

    at java.net.URL.openStream(URL.java:1037)

    at pl.windroos.shiro.FacebookRealm.readURL(FacebookRealm.java:84)

    at pl.windroos.shiro.FacebookRealm.doGetAuthenticationInfo(FacebookRealm.java:58)

    at org.apache.shiro.realm.AuthenticatingRealm.getAuthenticationInfo(AuthenticatingRealm.java:568)

    at org.apache.shiro.authc.pam.ModularRealmAuthenticator.doMultiRealmAuthentication(ModularRealmAuthenticator.java:219)

    at org.apache.shiro.authc.pam.ModularRealmAuthenticator.doAuthenticate(ModularRealmAuthenticator.java:269)

    at org.apache.shiro.authc.AbstractAuthenticator.authenticate(AbstractAuthenticator.java:198)

    at org.apache.shiro.mgt.AuthenticatingSecurityManager.authenticate(AuthenticatingSecurityManager.java:106)

    at org.apache.shiro.mgt.DefaultSecurityManager.login(DefaultSecurityManager.java:270)

    at org.apache.shiro.subject.support.DelegatingSubject.login(DelegatingSubject.java:256)

    at pl.windroos.shiro.FacebookLoginServlet.doGet(FacebookLoginServlet.java:53)

    at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)

    at javax.servlet.http.HttpServlet.service(HttpServlet.java:844)

    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:280)

    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:254)

    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:136)

    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:346)

    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:25)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)

    at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:112)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)

    at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:588)

    at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:273)

    at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:546)

    at javax.faces.context.ExternalContextWrapper.dispatch(ExternalContextWrapper.java:93)

    at javax.faces.context.ExternalContextWrapper.dispatch(ExternalContextWrapper.java:93)

    at javax.faces.context.ExternalContextWrapper.dispatch(ExternalContextWrapper.java:93)

    at oracle.adfinternal.view.faces.config.rich.RecordRequestAttributesDuringDispatch.dispatch(RecordRequestAttributesDuringDispatch.java:44)

    at javax.faces.context.ExternalContextWrapper.dispatch(ExternalContextWrapper.java:93)

    at javax.faces.context.ExternalContextWrapper.dispatch(ExternalContextWrapper.java:93)

    at org.apache.myfaces.trinidadinternal.context.FacesContextFactoryImpl$OverrideDispatch.dispatch(FacesContextFactoryImpl.java:167)

    at com.sun.faces.application.view.JspViewHandlingStrategy.executePageToBuildView(JspViewHandlingStrategy.java:364)

    at com.sun.faces.application.view.JspViewHandlingStrategy.buildView(JspViewHandlingStrategy.java:154)

    at org.apache.myfaces.trinidad.view.ViewDeclarationLanguageWrapper.buildView(ViewDeclarationLanguageWrapper.java:94)

    at org.apache.myfaces.trinidad.view.ViewDeclarationLanguageWrapper.buildView(ViewDeclarationLanguageWrapper.java:94)

    at org.apache.myfaces.trinidadinternal.application.ViewDeclarationLanguageFactoryImpl$ChangeApplyingVDLWrapper.buildView(ViewDeclarationLanguageFactoryImpl.java:322)

    at oracle.adfinternal.view.faces.lifecycle.ResponseRenderManager._processViewDefinitionLanguage(ResponseRenderManager.java:105)

    at oracle.adfinternal.view.faces.lifecycle.ResponseRenderManager.runRenderView(ResponseRenderManager.java:41)

    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._renderResponse(LifecycleImpl.java:1095)

    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:389)

    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:255)

    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:594)

    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:280)

    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:254)

    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:136)

    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:346)

    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:25)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)

    at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:192)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)

    at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:105)

    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:502)

    at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)

    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:502)

    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:327)

    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:229)

    at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)

    at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:61)

    at org.apache.shiro.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:108)

    at org.apache.shiro.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:137)

    at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)

    at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:66)

    at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)

    at org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)

    at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)

    at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)

    at org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383)

    at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)

    at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)

    at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:137)

    at java.security.AccessController.doPrivileged(Native Method)

    at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)

    at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:460)

    at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:120)

    at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:217)

    at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:81)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)

    at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:220)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)

    at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)

    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)

    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3436)

    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3402)

    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)

    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)

    at weblogic.servlet.provider.WlsSubjectHandle.run(WlsSubjectHandle.java:57)

    at weblogic.servlet.internal.WebAppServletContext.doSecuredExecute(WebAppServletContext.java:2285)

    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2201)

    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2179)

    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1572)

    at weblogic.servlet.provider.ContainerSupportProviderImpl$WlsRequestExecutor.run(ContainerSupportProviderImpl.java:255)

    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:311)

    at weblogic.work.ExecuteThread.run(ExecuteThread.java:263)

Best solution is using the Wildcarded Host Name Verifier.
  1. In the left pane of the Console, expand Environment and select Servers.
  2. Click the name of the server for which you want to disable host name verification.
  3. Select Configuration > SSL , and click Advanced at the bottom of the page.
  4. Set the Hostname Verification field to Custom Hostname Verifier.
  5. Set the Custom Hostname Verifier to 
Not recommended but more general solution is disabling host name verification at all. To do this go to Weblogic console and :
  1. In the left pane of the Console, expand Environment and select Servers.
  2. Click the name of the server for which you want to disable host name verification.
  3. Select Configuration > SSL , and click Advanced at the bottom of the page.
  4. Set the Hostname Verification field to None.
You can disable hostname verification also via commandline of an SSL client by entering the following argument: -Dweblogic.security.SSL.ignoreHostnameVerification=true

Saturday, May 23, 2015

Replacement for $( document ).ready() in ADF

A page can't be manipulated safely until the document is "ready." To detect this state of readiness you must use some javascriprt code.
As I think the most “famous” approach is to use jQuery $( document ).ready(). The code will only run once the page Document Object Model (DOM) is ready for JavaScript code to execute.
Another function, $( window ).load(function() { ... }) will run once the entire page (images or iframes), not just the DOM, is ready.
Typical “plain” javascript replacement for $(document).ready() looks like:
document.addEventListener("DOMContentLoaded", function() {

  // code...

});
But for IE8 and older you should use:
document.attachEvent("onreadystatechange", function(){

  if (document.readyState === "complete"){

    document.detachEvent( "onreadystatechange", arguments.call );

    // code ...

  }
});
If we need call our function after full page load (with images and so on) we can use window.load which is “replacement” for $( window ).load().

Ok. But what with ADF? Of course we can use any of above approaches. But we have also dedicated ADF mechanism.
We could use an ADF clientListener operation with load type, to identify when ADF UI is loaded. This listener should be added to the ADF UI document tag and it will be invoked at the end of page rendering. Through clientListener, we could invoke our custom JavaScript method:
    …

<f:facet name=”metaContainer”>

    <af:resource type=”javascript”>

        Function myCustomMethod(){

            alert(“Page loaded !!!”);

        }

    </af:resource>

    </f:facet>

    <af:clientListener type=”load” method=”myCustomMethod”/>

</af:document>

</f:view>

No suitable driver found for jdbc:postgresql://127.0.0.1:5432/... or jdbc:mysql://127.0.0.1/...

Today about simple but burdensome exception from ADF model tester. This exception is usually "guaranteed" when you try to run Model tester against non-Oracle database and do not set up your Model project properly:
C:\Oracle\Middleware2\Oracle_Home\oracle_common\jdk\bin\javaw.exe -server -classpath C:\Oracle\Middleware2\Oracle_Home\oracle_common\jdk\jre\lib\resources.jar;C:\Oracle\Middleware2\Oracle_Home\oracle_common\jdk\jre\lib\rt.jar;C:\Oracle\Middleware2\Oracle_Home\oracle_common\jdk\jre\lib\sunrsasign.jar;C:\Oracle\Middleware2\Oracle_Home\oracle_common\jdk\jre\lib\jsse.jar;C:\Oracle\Middleware2\Oracle_Home\oracle_common\jdk\jre\lib\jce.jar;C:\Oracle\Middleware2\Oracle_Home\oracle_common\jdk\jre\lib\charsets.jar;C:\Oracle\Middleware2\Oracle_Home\oracle_common\jdk\jre\lib\jfr.jar;C:\Oracle\Middleware2\Oracle_Home\oracle_common\jdk\jre\classes;C:\JDeveloper\mywork\reposvn\FunZone1\.adf;C:\JDeveloper\mywork\reposvn\FunZone1\Model\classes;C:\Oracle\Middleware2\Oracle_Home\oracle_common\modules\oracle.adf.share_12.1.3\adf-share-support.jar;C:\Oracle\Middleware2\Oracle_Home\oracle_common\modules\oracle.adf.share.ca_12.1.3\adf-share-ca.jar;C:\Oracle\Middleware2\Oracle_Home\oracle_common\modules\oracle.adf.share.ca_12.1.3\adf-share-base.jar;C:\Oracle\Middleware2\Oracle_Home\oracle_common\modules\oracle.adf.share_12.1.3\adflogginghandler.jar;C:\Oracle\Middleware2\Oracle_Home\oracle_common\modules\oracle.adf.share_12.1.3\adfsharembean.jar;C:\Oracle\Middleware2\Oracle_Home\oracle_common\modules\oracle.jmx_12.1.3\jmxframework.jar;C:\Oracle\Middleware2\Oracle_Home\oracle_common\modules\oracle.jmx_12.1.3\jmxspi.jar;C:\Oracle\Middleware2\Oracle_Home\oracle_common\modules\oracle.idm_12.1.3\identitystore.jar;C:\Oracle\Middleware2\Oracle_Home\oracle_common\modules\oracle.adf.model_12.1.3\adfm.jar;C:\Oracle\Middleware2\Oracle_Home\oracle_common\modules\oracle.adf.model_12.1.3\bc4j-mbeans.jar;C:\Oracle\Middleware2\Oracle_Home\oracle_common\modules\groovy-all-2.1.6.jar;C:\Oracle\Middleware2\Oracle_Home\oracle_common\modules\oracle.xdk_12.1.3\xmlparserv2.jar;C:\Oracle\Middleware2\Oracle_Home\oracle_common\modules\oracle.adf.model_12.1.3\db-ca.jar;C:\Oracle\Middleware2\Oracle_Home\oracle_common\modules\oracle.adf.model_12.1.3\jdev-cm.jar;C:\Oracle\Middleware2\Oracle_Home\oracle_common\modules\oracle.ldap_12.1.3\ojmisc.jar;C:\Oracle\Middleware2\Oracle_Home\oracle_common\modules\oracle.adf.share_12.1.3\commons-el.jar;C:\Oracle\Middleware2\Oracle_Home\oracle_common\modules\oracle.adf.share_12.1.3\jsp-el-api.jar;C:\Oracle\Middleware2\Oracle_Home\oracle_common\modules\oracle.adf.share_12.1.3\oracle-el.jar;C:\Oracle\Middleware2\Oracle_Home\oracle_common\modules\oracle.javatools_12.1.3\resourcebundle.jar;C:\Oracle\Middleware2\Oracle_Home\oracle_common\modules\javax.mail_2.0.0.0_1-4-4.jar;C:\Oracle\Middleware2\Oracle_Home\oracle_common\modules\oracle.adf.model_12.1.3\adftransactionsdt.jar;C:\Oracle\Middleware2\Oracle_Home\oracle_common\modules\oracle.adf.view_12.1.3\adf-dt-at-rt.jar;C:\Oracle\Middleware2\Oracle_Home\oracle_common\modules\oracle.adf.model_12.1.3\adfdt_common.jar;C:\Oracle\Middleware2\Oracle_Home\oracle_common\modules\oracle.adf.model_12.1.3\adflibrary.jar;C:\Oracle\Middleware2\Oracle_Home\oracle_common\modules\oracle.adf.security_12.1.3\adf-share-security.jar;C:\Oracle\Middleware2\Oracle_Home\oracle_common\modules\oracle.adf.security_12.1.3\adf-controller-security.jar;C:\Oracle\Middleware2\Oracle_Home\oracle_common\modules\oracle.mds_12.1.3\mdsrt.jar;C:\Oracle\Middleware2\Oracle_Home\oracle_common\modules\oracle.mds_12.1.3\oramds.jar;C:\Oracle\Middleware2\Oracle_Home\oracle_common\modules\javax.servlet_2.2.0.0_3-0.jar;C:\Oracle\Middleware2\Oracle_Home\oracle_common\modules\javax.jsp_4.0.0.0_2-2.jar;C:\Oracle\Middleware2\Oracle_Home\jdeveloper\ide\macros\..\..\..\oracle_common\modules\oracle.jdbc_12.1.0\ojdbc6dms.jar;C:\Oracle\Middleware2\Oracle_Home\oracle_common\jlib\commons-cli-1.0.jar;C:\Oracle\Middleware2\Oracle_Home\oracle_common\modules\oracle.bali.share_12.1.3\share.jar;C:\Oracle\Middleware2\Oracle_Home\oracle_common\modules\oracle.xmlef_12.1.3\xmlef.jar;C:\Oracle\Middleware2\Oracle_Home\oracle_common\modules\oracle.dms_12.1.3\dms.jar;C:\Oracle\Middleware2\Oracle_Home\oracle_common\modules\oracle.xdk_12.1.3\xml.jar;C:\Oracle\Middleware2\Oracle_Home\oracle_common\modules\oracle.nlsrtl_12.1.0\orai18n.jar;C:\Oracle\Middleware2\Oracle_Home\coherence\lib\coherence.jar;C:\Oracle\Middleware2\Oracle_Home\oracle_common\modules\oracle.ucp_12.1.0.jar;C:\Oracle\Middleware2\Oracle_Home\oracle_common\modules\oracle.odl_12.1.3\ojdl.jar;C:\Oracle\Middleware2\Oracle_Home\oracle_common\modules\oracle.javatools_12.1.3\javatools-nodeps.jar;C:\Oracle\Middleware2\Oracle_Home\oracle_common\modules\javax.management.j2ee_1.2.0.0.jar;C:\Oracle\Middleware2\Oracle_Home\oracle_common\modules\oracle.toplink_12.1.3\eclipselink.jar;C:\Oracle\Middleware2\Oracle_Home\oracle_common\modules\oracle.jdbc_12.1.0\ojdbc6dms.jar;C:\Oracle\Middleware2\Oracle_Home\oracle_common\modules\oracle.ldap_12.1.3\ldapjclnt11.jar;C:\Oracle\Middleware2\Oracle_Home\oracle_common\modules\oracle.jps_12.1.3\jps-api.jar;C:\Oracle\Middleware2\Oracle_Home\oracle_common\modules\oracle.jps_12.1.3\jps-common.jar;C:\Oracle\Middleware2\Oracle_Home\oracle_common\modules\oracle.jps_12.1.3\jps-ee.jar;C:\Oracle\Middleware2\Oracle_Home\oracle_common\modules\oracle.jps_12.1.3\jps-internal.jar;C:\Oracle\Middleware2\Oracle_Home\oracle_common\modules\oracle.jps_12.1.3\jps-unsupported-api.jar;C:\Oracle\Middleware2\Oracle_Home\oracle_common\modules\oracle.jps_12.1.3\jps-manifest.jar;C:\Oracle\Middleware2\Oracle_Home\oracle_common\modules\oracle.jps_12.1.3\jacc-spi.jar;C:\Oracle\Middleware2\Oracle_Home\oracle_common\modules\oracle.pki_12.1.3\oraclepki.jar;C:\Oracle\Middleware2\Oracle_Home\oracle_common\modules\oracle.osdt_12.1.3\osdt_core.jar;C:\Oracle\Middleware2\Oracle_Home\oracle_common\modules\oracle.osdt_12.1.3\osdt_cert.jar;C:\Oracle\Middleware2\Oracle_Home\oracle_common\modules\oracle.osdt_12.1.3\osdt_xmlsec.jar;C:\Oracle\Middleware2\Oracle_Home\oracle_common\modules\oracle.osdt_12.1.3\osdt_ws_sx.jar;C:\Oracle\Middleware2\Oracle_Home\oracle_common\modules\oracle.iau_12.1.3\fmw_audit.jar;C:\Oracle\Middleware2\Oracle_Home\wlserver\modules\javax.security.jacc_1.2.0.0_1-1.jar;C:\Oracle\Middleware2\Oracle_Home\oracle_common\modules\oracle.adf.model.generic_12.1.3\bc4jdomgnrc.jar;C:\Oracle\Middleware2\Oracle_Home\oracle_common\modules\oracle.adf.view_12.1.3\dvt-jclient.jar;C:\Oracle\Middleware2\Oracle_Home\oracle_common\modules\oracle.adf.view_12.1.3\dvt-utils.jar;C:\Oracle\Middleware2\Oracle_Home\oracle_common\modules\oracle.adf.view_12.1.3\dvt-jclient-adf.jar;;C:\Oracle\Middleware2\Oracle_Home\jdeveloper\BC4J\jlib\bc4jtester.jar;C:\Oracle\Middleware2\Oracle_Home\jdeveloper\BC4J\jlib\bc4jrecorder.jar;C:\Oracle\Middleware2\Oracle_Home\oracle_common\modules\oracle.adf.model_12.1.3\adfm-debugger.jar;C:\Oracle\Middleware2\Oracle_Home\oracle_common\modules\oracle.adf.model_12.1.3\regexp.jar;C:\Oracle\Middleware2\Oracle_Home\oracle_common\modules\oracle.help_5.0\ohj.jar;C:\Oracle\Middleware2\Oracle_Home\oracle_common\modules\oracle.help_5.0\help-share.jar;C:\Oracle\Middleware2\Oracle_Home\jdeveloper\jlib\jewt4.jar;C:\Oracle\Middleware2\Oracle_Home\oracle_common\modules\oracle.help_5.0\oracle_ice.jar;C:\Oracle\Middleware2\Oracle_Home\jdeveloper\ide\lib\idert.jar;C:\Oracle\Middleware2\Oracle_Home\jdeveloper\ide\lib\javatools.jar;C:\Oracle\Middleware2\Oracle_Home\jdeveloper\ide\lib\peek.jar;C:\Oracle\Middleware2\Oracle_Home\jdeveloper\ide\lib\uic.jar;C:\Oracle\Middleware2\Oracle_Home\jdeveloper\ide\lib\TimingFramework.jar;C:\Oracle\Middleware2\Oracle_Home\oracle_common\modules\oracle.javatools_12.1.3\oicons.jar;C:\Oracle\Middleware2\Oracle_Home\wlserver\server\lib\weblogic.jar;C:\Oracle\Middleware2\Oracle_Home\oracle_common\modules\oracle.jrf_12.1.3\jrf-api.jar;C:\Oracle\Middleware2\Oracle_Home\jdeveloper\BC4J\jlib\jpda-examples-1.6.0_21.jar; -Djavax.net.ssl.trustStore=C:\Users\Mariusz\AppData\Local\Temp\trustStore5333221060235758664.jks -XX:MaxPermSize=128M -Dbc4jtester_port=23322 -Djdev.range=100 -Dmodel_project_file_path=/C:/JDeveloper/mywork/reposvn/FunZone1/Model/Model.jpr -Doracle.mds.cache=simple -Duser.language=en -Duser.country=US -Duser.variant= -Doracle.security.jps.config=/C:/JDeveloper/mywork/reposvn/FunZone1/src/META-INF/\jps-config.xml -Duser.language=en -Duser.country=US -Duser.variant= -Doracle.security.jps.config=/C:/JDeveloper/mywork/reposvn/FunZone1/src/META-INF/\jps-config.xml -Duser.language=en -Duser.country=US -Duser.variant= -Doracle.security.jps.config=/C:/JDeveloper/mywork/reposvn/FunZone1/src/META-INF/\jps-config.xml -Duser.language=en -Duser.country=US -Duser.variant= -Doracle.security.jps.config=/C:/JDeveloper/mywork/reposvn/FunZone1/src/META-INF/\jps-config.xml -Duser.language=en -Duser.country=US -Duser.variant= -Doracle.security.jps.config=/C:/JDeveloper/mywork/reposvn/FunZone1/src/META-INF/\jps-config.xml -Duser.language=en -Duser.country=US -Duser.variant= -Doracle.security.jps.config=/C:/JDeveloper/mywork/reposvn/FunZone1/src/META-INF/\jps-config.xml oracle.jbo.jbotester.MainFrame -X 14D7BFF4B90
May 22, 2015 4:20:44 PM oracle.security.jps.JpsStartup start
INFO: Jps initializing.
May 22, 2015 4:20:45 PM oracle.security.jps.JpsStartup start
INFO: Jps started.
oracle.jbo.DMLException: JBO-26061: Error while opening JDBC connection.
    at oracle.jbo.server.ConnectionPool.createConnection(ConnectionPool.java:204)
    at oracle.jbo.server.ConnectionPool.instantiateResource(ConnectionPool.java:163)
    at oracle.jbo.pool.ResourcePool.createResource(ResourcePool.java:581)
    at oracle.jbo.pool.ResourcePool.useResource(ResourcePool.java:314)
    at oracle.jbo.server.ConnectionPool.getConnectionInternal(ConnectionPool.java:99)
    at oracle.jbo.server.ConnectionPool.getConnection(ConnectionPool.java:63)
    at oracle.jbo.server.ConnectionPoolManagerImpl.getConnection(ConnectionPoolManagerImpl.java:53)
    at oracle.jbo.server.URLConnectionHelper.getConnection(URLConnectionHelper.java:172)
    at oracle.jbo.server.URLConnectionHelper.getConnection(URLConnectionHelper.java:45)
    at oracle.jbo.server.ConnectionPoolDataSource.getConnection(ConnectionPoolDataSource.java:74)
    at oracle.jbo.server.DBTransactionImpl.establishNewConnection(DBTransactionImpl.java:998)
    at oracle.jbo.server.DBTransactionImpl.initTransaction(DBTransactionImpl.java:1183)
    at oracle.jbo.server.DBTransactionImpl.initTxn(DBTransactionImpl.java:7091)
    at oracle.jbo.server.DBTransactionImpl2.connectToDataSource(DBTransactionImpl2.java:297)
    at oracle.jbo.server.DBTransactionImpl2.connectToDataSource(DBTransactionImpl2.java:328)
    at oracle.jbo.common.ampool.DefaultConnectionStrategy.connect(DefaultConnectionStrategy.java:202)
    at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolConnect(ApplicationPoolMessageHandler.java:630)
    at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolMessage(ApplicationPoolMessageHandler.java:426)
    at oracle.jbo.server.ApplicationModuleImpl.doPoolMessage(ApplicationModuleImpl.java:9542)
    at oracle.jbo.common.ampool.ApplicationPoolImpl.sendPoolMessage(ApplicationPoolImpl.java:4526)
    at oracle.jbo.common.ampool.ApplicationPoolImpl.prepareApplicationModule(ApplicationPoolImpl.java:2453)
    at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:2263)
    at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:3162)
    at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:590)
    at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:523)
    at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:518)
    at oracle.adf.model.bc4j.DCJboDataControl.initializeApplicationModule(DCJboDataControl.java:637)
    at oracle.adf.model.bc4j.DCJboDataControl.getApplicationModule(DCJboDataControl.java:1010)
    at oracle.jbo.jbotester.binding.TesterBinding.getConnectionInfo(TesterBinding.java:135)
    at oracle.jbo.jbotester.MainFrame.initializeDataControl(MainFrame.java:1107)
    at oracle.jbo.jbotester.MainFrame.loadConfiguration(MainFrame.java:740)
    at oracle.jbo.jbotester.MainFrame.processArgs(MainFrame.java:716)
    at oracle.jbo.jbotester.MainFrame.main(MainFrame.java:533)
Caused by: java.sql.SQLException: No suitable driver found for jdbc:postgresql://127.0.0.1:5432/abcdefg?defaultAutoCommit=false&debug=2
    at java.sql.DriverManager.getConnection(DriverManager.java:596)
    at java.sql.DriverManager.getConnection(DriverManager.java:215)
    at oracle.jbo.server.URLConnectionHelper.getConnection(URLConnectionHelper.java:187)
    at oracle.jbo.server.URLConnectionHelper.getConnectionFromDriver(URLConnectionHelper.java:50)
    at oracle.jbo.server.ConnectionPool.createConnection(ConnectionPool.java:192)
    ... 32 more
## Detail 0 ##
java.sql.SQLException: No suitable driver found for jdbc:postgresql://127.0.0.1:5432/abcdefg?defaultAutoCommit=false&debug=2
    at java.sql.DriverManager.getConnection(DriverManager.java:596)
    at java.sql.DriverManager.getConnection(DriverManager.java:215)
    at oracle.jbo.server.URLConnectionHelper.getConnection(URLConnectionHelper.java:187)
    at oracle.jbo.server.URLConnectionHelper.getConnectionFromDriver(URLConnectionHelper.java:50)
    at oracle.jbo.server.ConnectionPool.createConnection(ConnectionPool.java:192)
    at oracle.jbo.server.ConnectionPool.instantiateResource(ConnectionPool.java:163)
    at oracle.jbo.pool.ResourcePool.createResource(ResourcePool.java:581)
    at oracle.jbo.pool.ResourcePool.useResource(ResourcePool.java:314)
    at oracle.jbo.server.ConnectionPool.getConnectionInternal(ConnectionPool.java:99)
    at oracle.jbo.server.ConnectionPool.getConnection(ConnectionPool.java:63)
    at oracle.jbo.server.ConnectionPoolManagerImpl.getConnection(ConnectionPoolManagerImpl.java:53)
    at oracle.jbo.server.URLConnectionHelper.getConnection(URLConnectionHelper.java:172)
    at oracle.jbo.server.URLConnectionHelper.getConnection(URLConnectionHelper.java:45)
    at oracle.jbo.server.ConnectionPoolDataSource.getConnection(ConnectionPoolDataSource.java:74)
    at oracle.jbo.server.DBTransactionImpl.establishNewConnection(DBTransactionImpl.java:998)
    at oracle.jbo.server.DBTransactionImpl.initTransaction(DBTransactionImpl.java:1183)
    at oracle.jbo.server.DBTransactionImpl.initTxn(DBTransactionImpl.java:7091)
    at oracle.jbo.server.DBTransactionImpl2.connectToDataSource(DBTransactionImpl2.java:297)
    at oracle.jbo.server.DBTransactionImpl2.connectToDataSource(DBTransactionImpl2.java:328)
    at oracle.jbo.common.ampool.DefaultConnectionStrategy.connect(DefaultConnectionStrategy.java:202)
    at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolConnect(ApplicationPoolMessageHandler.java:630)
    at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolMessage(ApplicationPoolMessageHandler.java:426)
    at oracle.jbo.server.ApplicationModuleImpl.doPoolMessage(ApplicationModuleImpl.java:9542)
    at oracle.jbo.common.ampool.ApplicationPoolImpl.sendPoolMessage(ApplicationPoolImpl.java:4526)
    at oracle.jbo.common.ampool.ApplicationPoolImpl.prepareApplicationModule(ApplicationPoolImpl.java:2453)
    at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:2263)
    at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:3162)
    at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:590)
    at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:523)
    at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:518)
    at oracle.adf.model.bc4j.DCJboDataControl.initializeApplicationModule(DCJboDataControl.java:637)
    at oracle.adf.model.bc4j.DCJboDataControl.getApplicationModule(DCJboDataControl.java:1010)
    at oracle.jbo.jbotester.binding.TesterBinding.getConnectionInfo(TesterBinding.java:135)
    at oracle.jbo.jbotester.MainFrame.initializeDataControl(MainFrame.java:1107)
    at oracle.jbo.jbotester.MainFrame.loadConfiguration(MainFrame.java:740)
    at oracle.jbo.jbotester.MainFrame.processArgs(MainFrame.java:716)
    at oracle.jbo.jbotester.MainFrame.main(MainFrame.java:533)
May 22, 2015 4:20:55 PM oracle.jbo.jbotester.MainFrame exit
INFO: BC4J Tester exit code(-3)
Process exited with exit code -3.
To resolve this issue you should add appriopriate JDBC driver to the classpath of the Model project: