weblogic

Why does my FacesContext.getCurrentInstance().getExternalContext().getUserPrincipal() code runs to NullPointer?

大憨熊 提交于 2019-12-11 03:33:39
问题 I have a stateless bean which has a method, where I want to get the current/logged user. My code to get it: Principal p1 = FacesContext.getCurrentInstance().getExternalContext().getUserPrincipal(); But I am getting nullpointer exception on this. Why is that? Or is there any other way to get the logged user? I am using weblogic. 回答1: You're not supposed to grab the FacesContext in an EJB. Even more, your EJBs should be completely free from any JSF dependencies. In other words, you should not

Failed to connect from jdeveloper to weblogic server jsr 160 failed

纵然是瞬间 提交于 2019-12-11 03:25:19
问题 I'm trying to connect from Jdeveloper to a remote Weblogic server. This is what I get when testing the connection. Some say that one should disable jdeveloper's proxy settings. I did so, and it didn't change anything. Any help ! 回答1: Try to run your JDeveloper as administrator (it's a common 'mistake' for Windows users). If that doesn't work you should read this blog post: http://sathyam-soa.blogspot.be/2012/06/jdeveloper-11g-cannot-establish-app.html 回答2: Add the server's host name in the

Find out specific weblogic process running

孤街醉人 提交于 2019-12-11 03:23:34
问题 I need to find the weblogic instances which are up and running. My unix box has both java 5 and 6 and have more than one weblogic domain. I need to kill the java instance of one particular domain. Here is the out put for ps -ef | grep java command, but couldn't figure out which PID is for which domain instance. Please help. ps -ef | grep java weblogic 16374 21956 0 23:30:33 ? 1:00 /app/bea/jdk1.6.0_33/bin/java -Xmx1024m -Xms256m -Dlog4j.configuration=file:/// root 22733 22732 0 Apr 29 ? 123

Weblogic 12.2.1.2 - How to tune the object Serializer to use Jackson 2 and strange phenomena on jaxrs enablement for application/json endpoints

大憨熊 提交于 2019-12-11 03:23:09
问题 On Weblogic JEE 7 (version 12.2.1.2), I am finding it quite strange to understand the behavior of the application server in relation to the enablement and configuration of the JAX-RS web services. The first point that I am trying to understand is a phenomena that I find quite inexplicable. On a sample application where I was testing a trivial jax-rs web service where initially there were only to components: Component (A) @ApplicationPath("rest") public class RestApplication extends

ClassCastException with GWT/RequestFactory on WebLogic

◇◆丶佛笑我妖孽 提交于 2019-12-11 03:16:24
问题 I'm setting up a GWT application based on GWT/RequestFactory on client side, and JPA/EclipseLink over WebLogic on server side. However, during development, everytime I change something on the server-side code (it can be an entity, the DAO, or even a comment in a Java file!), I get a ClassCastException between 2 apparently similar classes when I try to use my application, and the only way to get rid of it is to restart my WebLogic server. Even redeploying the application doesn't help. Feb 10,

How to solve adfContext leak on oracle-bi or enable adfContext finest logging?

雨燕双飞 提交于 2019-12-11 03:02:39
问题 In our Weblogic server log we get "ADFContext Leak" error and our app freezes. How to enable ADFContext finest logging on oralce BI? Or how to solve this ADFContext leak? 回答1: Here is the answer to your first question: Enable ADFContext finest logging on Oracle BI? Log on to Enterprise Manager console. Expand: Target Navigation > WebLogic Domain > Server Cluster Right Click: Server from the Server Cluster Click: Logs > Log Configuration Follow the screenshot for setting the desired logging

How to apply interceptors and filters to restful services on Weblogic 12c

徘徊边缘 提交于 2019-12-11 02:48:26
问题 I understand that Weblogic 12c v12.2.1 uses Jersey as a JAX-RS implementation. So I followed the instructions on this page but I haven't succeeded to declare an interceptor whether by using name binding or dynamic binding (i.e. more info in the mentioned link) My application is working normally because I can actually call the restful services, but I can't apply filters or interceptors, they are never involved in the process. I didn't edit web.xml at all, all I have is an javax.ws.rs.core

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

天大地大妈咪最大 提交于 2019-12-11 02:25:31
问题 As i'm working with Chef for automation, i'm required to create a cookbook for weblogic. The thing is that, when the cookbook is executed it hangs at the final step, and that's totally normal since that step runs weblogic.Server Java Class to create a new domain and then it runs the server. So, i want to run weblogic.Server to only create the domain and keep going with the last steps. Is there a way to do that? I have tried with the argument weblogic.management.startupMode = SHUTDOWN but it

Link to file outside context root of weblogic

醉酒当歌 提交于 2019-12-11 01:38:13
问题 If I want to display an image in my webpage and its src is a file outside context root. At the IDE, the image is shown to be loaded. But when I test the web page, nothing displayed. How can I config weblogic server to allow the image to be displayed. If not is there anyway to run around this problem. Thanks a lot. 回答1: You can use the Virtual Directory Mapping feature (that you declare in the weblogic.xml ): Using the virtual directory mapping feature, you can create one directory to serve

java.lang.NoSuchMethodError during Elastic search start

和自甴很熟 提交于 2019-12-11 01:04:25
问题 I am getting the following error while deploying in my EAR. The exception is coming during Elastic search connection. In my EAR I have using guava version 18. Which is the recommended version for ES 2.0+ ( I am using ES 2.3.3) weblogic.application.ModuleException: java.lang.NoSuchMethodError: com.google.common.util.concurrent.MoreExecutors.directExecutor()Ljava/util/concurrent/Executor; at weblogic.application.internal.ExtensibleModuleWrapper.start(ExtensibleModuleWrapper.java:140) at