tag:blogger.com,1999:blog-81454045583394117582024-03-14T06:40:38.043+01:00My Java PlanetImpressions and experiences from Java EE developer. If you are interested in java enterprise development, adf, java server faces, servlets, portlets and so on , this blog may be interesting for you.Anonymoushttp://www.blogger.com/profile/11881425139511219607noreply@blogger.comBlogger137125tag:blogger.com,1999:blog-8145404558339411758.post-20485788842848110272016-07-22T21:20:00.001+02:002016-08-03T15:35:32.197+02:00JDeveloper 12c error javax.naming.NameNotFoundException: While trying to lookup 'jdbc.LocalSvcTblDataSource' Today I noticed mysterious error when I run any web application in my JDeveloper 12.2.1. This is the stack trace:
[ecid: badadddc-e435-47c7-9b26-b7a8c0331704-00000048,0] [partition-name: DOMAIN] [tenant-name: GLOBAL] CCW auto-republish services error [[
com.oracle.cie.servicetable.external.ServiceTableException: javax.naming.NameNotFoundException: While trying to lookup 'Anonymoushttp://www.blogger.com/profile/11881425139511219607noreply@blogger.com0tag:blogger.com,1999:blog-8145404558339411758.post-62301810748714465982016-03-16T18:24:00.000+01:002016-07-22T22:00:15.696+02:00class.getResources()
getClass().getResource()
searches relative to the .class file
while
getClass().getClassLoader().getResource()
searches relative to the classpath root.
To obtain current path you can run
public game(){
String currentPath = this.getClass().getResource("").getPath();
System.out.println(currentPath);
}
or respectively
public game(){
String currentPath = this.getClass().Anonymoushttp://www.blogger.com/profile/11881425139511219607noreply@blogger.com0tag:blogger.com,1999:blog-8145404558339411758.post-89704940384461874912016-03-16T18:23:00.000+01:002016-07-22T22:00:35.453+02:00WebcenterSites Failed gateway redirect java.io.UnsupportedEncodingException: Redirect failed due to illegal URL http://192.168.0.100:7007/sites/wem/fatwire/wem/WelcomeSometimes after installation and configuration of Webcenter Sites, when we try to log in, we get the 500 error with message:
javax.servlet.ServletException: Failed gateway redirect java.io.UnsupportedEncodingException: Redirect failed due to illegal URL http://172.31.129.214:7007/sites/wem/fatwire/wem/Welcome
at com.fatwire.wem.sso.cas.filter.CASFilter.sendResponse(CASFilter.java:681)
at Anonymoushttp://www.blogger.com/profile/11881425139511219607noreply@blogger.com0tag:blogger.com,1999:blog-8145404558339411758.post-68733440970045101462015-10-29T07:55:00.000+01:002016-07-22T22:00:48.108+02:00Checking Weblogic versionTo 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.cmdAnonymoushttp://www.blogger.com/profile/11881425139511219607noreply@blogger.com0tag:blogger.com,1999:blog-8145404558339411758.post-56220652550879113172015-10-29T07:54:00.000+01:002016-07-22T22:01:05.348+02:00How to resolve: java.lang.ClassCastException: weblogic.net.http.SOAPHttpsURLConnection cannot be cast to javax.net.ssl.HttpsURLConnectionHi. 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
 Anonymoushttp://www.blogger.com/profile/11881425139511219607noreply@blogger.com3tag:blogger.com,1999:blog-8145404558339411758.post-70835842749786995012015-06-06T18:23:00.002+02:002016-07-22T22:01:23.721+02:00Certificate chain received from graph.facebook.com - failed hostname verification check. Certificate contained *.facebook.com but check expected graph.facebook.comHow 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>
Anonymoushttp://www.blogger.com/profile/11881425139511219607noreply@blogger.com1tag:blogger.com,1999:blog-8145404558339411758.post-80891272121261162372015-05-23T15:30:00.000+02:002016-07-22T22:01:46.145+02:00Replacement for $( document ).ready() in ADFA 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 entireAnonymoushttp://www.blogger.com/profile/11881425139511219607noreply@blogger.com0tag:blogger.com,1999:blog-8145404558339411758.post-75874016620707384702015-05-23T15:24:00.001+02:002016-07-22T22:04:29.559+02:00No 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\Anonymoushttp://www.blogger.com/profile/11881425139511219607noreply@blogger.com0tag:blogger.com,1999:blog-8145404558339411758.post-30640003168980742452015-05-06T20:32:00.000+02:002016-07-22T22:04:47.283+02:00Oracle SOA/BPM: Exception oracle.sysman.emSDK.app.exception.EMSystemException in Enterprise ManagerToday my new deployed composite doesn't appeared in EM under soa-infra tree, but when I clicked on the partition branch it was visible in the list of the applications. Unfortunatelly when I clicked on my composite then appeared an horrible:) exception:
2015-05-06T18:42:36.852+02:00] [AdminServer] [ERROR] [] [oracle.adfinternal.view.faces.config.rich.RegistrationConfigurator] [tid: [ACTIVE].Anonymoushttp://www.blogger.com/profile/11881425139511219607noreply@blogger.com3tag:blogger.com,1999:blog-8145404558339411758.post-76065186141808661872015-04-21T20:05:00.001+02:002016-07-22T22:05:14.847+02:00ADF Essentials: Error "No credential could be loaded for Reference = Reference Class Name: oracle.jdeveloper.db.adapter.DatabaseProvider" after deployment ADF 12.3 application to Glassfish 3.1.2Today about horrible error message:
[#|2015-03-31T15:46:47.729+0200|WARNING|glassfish3.1.2|oracle.adf.share.jndi.ReferenceStoreHelper|_ThreadID=198;_ThreadName=Thread-2;|No credential could be loaded for Reference = Reference Class Name: oracle.jdeveloper.db.adapter.DatabaseProvider
Type: subtype
Content: thirdParty
Type: user
Content: funzone
, SecureRefAddr = password. Setting default value Anonymoushttp://www.blogger.com/profile/11881425139511219607noreply@blogger.com3tag:blogger.com,1999:blog-8145404558339411758.post-13171946105321777642015-03-31T12:43:00.000+02:002015-03-31T12:44:07.725+02:00ADF and PostgreSQL: how to change database collation to non-english on debianFew days ago I encountered following issue:
I have to install and run my ADF application based on PostgreSQL 9.4 on Debian Wheezy. After I installed Postgre I noticed I can't create database with collation different than en_US.UTF8.
"Unfortunatelly" my application needs Polish Collation pl_PL.UTF8.
After some googling I found solution, the steps of which I describe bellow:
1. Log in as root (orAnonymoushttp://www.blogger.com/profile/11881425139511219607noreply@blogger.com0tag:blogger.com,1999:blog-8145404558339411758.post-16281196878605068672015-03-01T17:23:00.002+01:002015-03-01T17:51:47.923+01:00ADF how to: debugging ADF applicationsThis message has been inspired by the question from ADF exam:
You are debugging an application module method that seems to be causing an error
when the argument value is anything but "2". How could you most efficiently debug this issue?
A. Set a breakpoint on the first line of the method implementation and set the
breakpoint property to break only for threads named oracie.jbo.Exception.
B. Set Anonymoushttp://www.blogger.com/profile/11881425139511219607noreply@blogger.com0tag:blogger.com,1999:blog-8145404558339411758.post-43636785809182863502015-03-01T17:15:00.002+01:002015-03-01T17:15:12.497+01:00ADF exam question: Identify five things that you can do with the declarative validation featuresSolving exam questions can sometimes refresh your knowledge on technology. Recently fell into my hands following question:
Identify five things that you can do with the declarative validation features of ADF Business Components?
A. Define declarative validation rules at an attribute level and an entity level.
B. Define whether a validation rule is either an error or a warning.
C. Define whetherAnonymoushttp://www.blogger.com/profile/11881425139511219607noreply@blogger.com1tag:blogger.com,1999:blog-8145404558339411758.post-59015648973283874282015-02-25T21:10:00.000+01:002016-07-22T22:07:18.315+02:00ADF 12c: JBO-25152: Calling the constructor for class oracle.jbo.Key is not permitted.What to do, when in JDeveloper 12c you encountered following error:
Exception in thread "AWT-EventQueue-0" oracle.jbo.JboException: JBO-29000: Unexpected exception caught: org.codehaus.groovy.control.MultipleCompilationErrorsException, msg=startup failed:
General error during semantic analysis: JBO-25152: Calling the constructor for class oracle.jbo.Key is not permitted.
Anonymoushttp://www.blogger.com/profile/11881425139511219607noreply@blogger.com0tag:blogger.com,1999:blog-8145404558339411758.post-35331337380575458632015-01-06T11:16:00.000+01:002016-07-22T22:07:48.310+02:00Error 'java.lang.ClassNotFoundException: javax.faces.context.FacesContextFactory' when debugging ADF Faces applicationDescribed error can be observer when you try to run ADF application on built-in Weblogic. Error message can look:
2015-01-02 16:28:33 CET> <Error> <Deployer> <BEA-149265> <Failure occurred in the execution of deployment request with ID '1420212508286' for task '0'. Error is: 'java.lang.ClassNotFoundException: javax.faces.context.FacesContextFactory'
Anonymoushttp://www.blogger.com/profile/11881425139511219607noreply@blogger.com0tag:blogger.com,1999:blog-8145404558339411758.post-28609528076981586562014-11-02T15:18:00.001+01:002014-11-02T15:18:27.148+01:00BPM getLastPerformer() issue (continued): Error when evaluating workflow service XPath extension function, ORABPEL-30043 Long time ago I described my problem with getLastPerformer() xpatch function. Content of this artice you can find here: http://my-java-planet.blogspot.com/2012/11/bpm-getlastperformer-issue-error-in.html
Yesterday I encountered this problem once again. And again, I forget cause of this issue. After some googling, I found my own blog post regarding getLastPerformer().
Fortunatelly, today I know,Anonymoushttp://www.blogger.com/profile/11881425139511219607noreply@blogger.com0tag:blogger.com,1999:blog-8145404558339411758.post-50906888145571873302014-06-06T22:21:00.002+02:002016-07-22T22:09:30.111+02:00ADF how to: errors related to bind variablesI accidentally had found an old manual relating to errors related to "bind variables", so I decided share its fragments:
JBO-27122: SQL error during statement preparation
You need to ensure that the
list of named bind variables that you reference in your SQL statement
matches the list of named bind variables that you've defined on the Bind Variables
page of the View Object Editor. Failure toAnonymoushttp://www.blogger.com/profile/11881425139511219607noreply@blogger.com0tag:blogger.com,1999:blog-8145404558339411758.post-37473397377429428662014-06-06T21:49:00.005+02:002014-06-06T21:49:45.866+02:00ADF how to: service methodsAll, what do we find regarding "service methods" in ADF BC documentation can be summarized as follows:
"An application module can expose its data model of view objects to
clients without requiring any custom Java code. This allows client code
to use the ApplicationModule, ViewObject, RowSet, and Row interfaces in the oracle.jbo package to work directly with any view object in the data model. Anonymoushttp://www.blogger.com/profile/11881425139511219607noreply@blogger.com0tag:blogger.com,1999:blog-8145404558339411758.post-65048698924092717792014-05-29T22:35:00.002+02:002015-01-06T11:17:38.847+01:00ADF how to: how to deal with base class that extends oracle.jbo.server.ApplicationModuleImplI have here one ADF exercise:
An application module is named MyAppModule. No Java component is defined for
the module but the application does define a base class that extends oracle.jbo.server.ApplicationModuleImpl.
Which two statements are true in this scenario?
A. Code In the base class will only be implemented if MyAppModuleAppl.java extends the base class.
B. Any code in the base class willAnonymoushttp://www.blogger.com/profile/11881425139511219607noreply@blogger.com0tag:blogger.com,1999:blog-8145404558339411758.post-32251790027928424582014-05-29T20:11:00.003+02:002014-06-01T21:00:34.648+02:00ADF how to: What effect does setting ChangeEventPolicy property to pprIn this article I would like to solve one of the many issues regarding ADF: what effect does setting ChangeEventPolicy property to ppr.
In the Internet you can find following issue:
You select a binding in the page definition file and set the ChangeEventPolicy property to ppr.
What effect does this action have on the way the page is rendered?
A. It allows a component to partially refresh Anonymoushttp://www.blogger.com/profile/11881425139511219607noreply@blogger.com4tag:blogger.com,1999:blog-8145404558339411758.post-64796787959132811962014-04-30T20:14:00.003+02:002014-04-30T20:19:46.313+02:00Which WebLogic optimization allows one non-XA resourceI was asked about the solution of the following task:
Which WebLogic optimization allows one non-XA resource to participate in a distributed
transaction? Select correct answer:
enabling Pinned to Thread
enabling Logging Last Resource
increasing the Statement cache size
setting the statement cache type to LRU
setting the initial and maximum capacity to the same number&Anonymoushttp://www.blogger.com/profile/11881425139511219607noreply@blogger.com0tag:blogger.com,1999:blog-8145404558339411758.post-31438991983212269282014-04-27T12:37:00.001+02:002014-04-27T12:37:51.208+02:00Weblogic AGL Transaction Affinity vs. Web Session Affinity In the world of JEE Application servers the term of "sesssion affinity" denotes that within a cluster of servers,
requests from the same client always get routed back to the same server.
Web Session Affinity in Active Grid Link provides analogous functionality, eg. the session affinity policy is used to ensure that all the data base operations for a web session, including transactions, are Anonymoushttp://www.blogger.com/profile/11881425139511219607noreply@blogger.com0tag:blogger.com,1999:blog-8145404558339411758.post-53797663503522319702014-04-04T16:00:00.001+02:002014-04-15T13:39:37.540+02:00ADF XML FilesOracle ADF documentation describes a lot of XML files used internally in each ADF application. As documentation says the files are used by applications to:
Specify the parameters, methods, and return values available to your application's Oracle ADF data control usages
Create objects in the Oracle ADF binding context and define the runtime behavior of those objects
Define configuration Anonymoushttp://www.blogger.com/profile/11881425139511219607noreply@blogger.com0tag:blogger.com,1999:blog-8145404558339411758.post-7336137249312033782014-04-03T19:06:00.002+02:002016-07-22T22:12:02.963+02:00Problem with ADF and IE11A new browser version released by Microsoft is not supported by ADF and what is worse, ADF web pages are not rendered at all. When you run ADF webpage in IE11, you will see message box:
The problem is caused by ADF javascript layer, because in IE 11 the browser's User-Agent header has changed, and ADF no longer even recognizes the browser's product family. Additionally Oracle says, that "...Anonymoushttp://www.blogger.com/profile/11881425139511219607noreply@blogger.com4tag:blogger.com,1999:blog-8145404558339411758.post-56004719226419242352014-02-04T19:10:00.006+01:002014-02-04T19:10:44.504+01:00Glassfish: Secure Admin must be enabled to access the DAS remotelySome times ago I wrote article about installation of Glassfish server 3.1.x on Debian.or Ubuntu. You can find this article here.
But in the fresh installation you can't run administration console from remote IP. If you try this, you will see an message: "Secure Admin must be enabled to access the DAS remotely".
To activate Secure Admin, you have to:
start Glassfish server
go to you Glassfish Anonymoushttp://www.blogger.com/profile/11881425139511219607noreply@blogger.com0