weblogic12c

How to find out the current version of Mojarra which my WebLogic is using?

烈酒焚心 提交于 2019-11-30 08:37:30
问题 I'm trying to identify the current version of Mojarra my WebLogic 12c is using. How can I find out that? 回答1: One way would be to programmatically extract the implementation detail from the Package information of an arbitrary JSF class, such as FacesContext . Package p = FacesContext.class.getPackage(); System.out.println(p.getImplementationTitle() + " " + p.getImplementationVersion()); Another way would be to explore the JSF module in /wlserver/modules folder of WebLogic installation. In my

javax.naming.NameNotFoundException: Unable to resolve 'MyDB'. Resolved '' Weblogic 12.1.3. c

走远了吗. 提交于 2019-11-30 08:23:45
问题 While migrating from Tomcat to Weblogic 12.1.3 I got this exception javax.naming.namenotfoundexception while trying to look up then I have tried the following : NameNotFoundException: While trying to lookup 'jdbc' only when publishing from Eclipse Kepler but not Indigo and How to access JNDI data source defined in weblogic 10.3.6 I got the in titled error now My lookup code ds = (DataSource) initContext.lookup("MyDB"); in weblogic JNDI Name MyDB Any help please? 回答1: Unlike Tomcat, weblogic

ERROR: Cannot load this JVM TI agent twice starting Oracle WebLogic Server 12.1.3.0

余生长醉 提交于 2019-11-30 01:17:59
问题 I am starting Oracle WebLogic Server 12.1.3.0 where I have hosted some WEb applications, but I can not start it because I have an error echo starting weblogic with Java version: %JAVA_HOME%\bin\java %JAVA_VM% -version if "%WLS_REDIRECT_LOG%"=="" ( echo Starting WLS with line: echo %JAVA_HOME%\bin\java %JAVA_VM% %MEM_ARGS% -Dweblogic.Name=%SERVER_NAME% -Djava.security.policy=%WLS_POLICY_FILE% %JAVA_OPTIONS% %PROXY_SETTINGS% %SERVER_CLASS% %JAVA_HOME%\bin\java %JAVA_VM% %MEM_ARGS% -Dweblogic

How can I use Weblogic (12 C) without the application context in the URL?

僤鯓⒐⒋嵵緔 提交于 2019-11-29 14:32:38
I am working on a web project that requires Weblogic server and the only way I can view the site after deploying (on my Macbook Pro) is by specifying the application name as a prefix to the entire site. E.g. http://localhost:7001/myapp-weblogic/ This breaks a ton of styling and JavaScript code that access resources with root URLs (e.g. /images/example.png) While I can programmatically add "/my-app" to content in a .jsp, I can't do that in my .css files. I tried setting the "Default WebApp Context Root:" in Weblogic > console > Environment > Servers > myserver > Protocols > HTTP - But that did

Guava 15.0 jar conflict in WebLogic 12c

你离开我真会死。 提交于 2019-11-29 07:46:07
I updated from guava 14.0.1 to 15.0 in an application that deploys on WebLogic 12c, and I get a java.lang.NoSuchMethodException during deployment that I've been unable to resolve: Caused By: java.lang.NoSuchMethodException: com.google.common.base.internal.Finalizer.startFinalizer(java.lang.Class, java.lang.ref.ReferenceQueue, java.lang.ref.PhantomReference) at java.lang.Class.getMethod(Class.java:1624) at com.google.common.base.FinalizableReferenceQueue.getStartFinalizer(FinalizableReferenceQueue.java:302) at com.google.common.base.FinalizableReferenceQueue.<clinit>(FinalizableReferenceQueue

Intercept JAX-RS web service request to add JSON field

耗尽温柔 提交于 2019-11-29 00:30:23
I have a JAX-RS web service that returns a takes JSON request parameters (which map to Parameter object) as shown below (it is running in WebLogic 12.2.1). Is it possible to write an interceptor or filter, such that when the web service is called, it will add an extra field in the JSON request message, so that the below method will get that extra field in the requestParameters? @POST @Consumes(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON) @Path("LogIn") public Response logIn(@Context HttpServletRequest request, Parameters requestParameters) {...} Thanks! Interceptors It

Deploy Spring Boot app in Weblogic

这一生的挚爱 提交于 2019-11-28 05:07:36
I'm having a trouble deploying a Spring boot application in webLogic 12C. 10.4.4 403 Forbidden The server understood the request, but is refusing to fulfill it. Authorization will not help and the request SHOULD NOT be repeated. If the request method was not HEAD and the server wishes to make public why the request has not been fulfilled, it SHOULD describe the reason for the refusal in the entity. This status code is commonly used when the server does not wish to reveal exactly why the request has been refused, or when no other response is applicable. I was wondering if someone can help with

Prevent Weblogic 12c from using system's slf4j binding

孤者浪人 提交于 2019-11-28 04:25:21
We're building new systen using slf4j as logging facade. When deploying on newly Weblogic 12c, we found this error on console log: SLF4J: Class path contains multiple SLF4J bindings. SLF4J: Found binding in [jar:file:/opt/Oracle/Middleware2/modules/org.slf4j.jdk14_1.6.1.0.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: Found binding in [zip:/opt/Oracle/Middleware2/user_projects/domains/m3/servers/AdminServer/tmp/_WL_user/test/t030q4/war/WEB-INF/lib/slf4j-log4j12-1.6.4.jar!/org/slf4j/impl/StaticLoggerBinder.class] after googling, we found that this is just a warning, slf4j will bind first

NameNotFoundException: While trying to lookup 'jdbc' only when publishing from Eclipse Kepler but not Indigo

a 夏天 提交于 2019-11-28 03:34:19
问题 I'm able to publish my web-app to an Oracle Weblogic 12c (12.1.1) AdminServer from Eclipse Indigo 3.7.2 with oepe 12.1.1.1.1 However, the exact same web-app imported into Eclipse Kepler 4.3.1 with oepe 12.1.2.2 fails to publish with the following (fairly well trodden) exception and I'm trying to work out why?... NameNotFoundException: While trying to lookup 'jdbc.oraclexe' didn't find subcontext 'jdbc'. Resolved ''; remaining name 'jdbc/oraclexe']; Link Remaining Name: 'jdbc/oraclexe' The

Spring Boot exception: Could not open ServletContext resource [/WEB-INF/dispatcherServlet-servlet.xml]

依然范特西╮ 提交于 2019-11-27 22:14:42
I have developed this proof of concept https://github.com/DISID/disid-proofs/tree/master/spring-boot-weblogic to test the deployment of Spring Boot applications in Weblogic 12c (12.2.1). The application deploys and starts successfully, but when I try to connect to it (i.e. /accounts?number=1234 ) the error below is shown: Error 500--Internal Server Error From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1: 10.5.1 500 Internal Server Error The server encountered an unexpected condition which prevented it from fulfilling the request. And the log file has the exception: org.springframework