weblogic

How configure the HTTP Headers in Weblogic Response

我的梦境 提交于 2019-12-12 12:18:35
问题 Using Weblogic 11g and want to be able to add headers to all files served up by weblogic. There is no seperate web server sitting in front of weblogic. Cannot find a way to configure weblogic to add header to the HTTP response. In IIS you can easily do this by choosing the server and clicking to add headers. Looking for the equivalent way to do this in weblogic. 回答1: I dont think this is configurable. You would have to write a Filter to manipulate the headers as you need. As a hint, you could

slf4j warning about the same binding being duplicate

微笑、不失礼 提交于 2019-12-12 12:02:55
问题 SLF4J complains about multiple bindings, but those look exactly the same: SLF4J: Class path contains multiple SLF4J bindings. SLF4J: Found binding in [zip:C:/bea_domains/my_service_domain/servers/AdminServer/tmp/_WL_user/my-shared-app-lib/obaz3z/APP-INF/lib/slf4j-log4j12-1.6.1.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: Found binding in [zip:C:/bea_domains/my_service_domain/servers/AdminServer/tmp/_WL_user/my-shared-app-lib/obaz3z/APP-INF/lib/slf4j-log4j12-1.6.1.jar!/org/slf4j/impl

Session timeout in Java EE

有些话、适合烂在心里 提交于 2019-12-12 11:21:04
问题 In which ways the time for session timeout can be defined in Java EE? I am looking beyond obvious ways, such as setting session timeout in web.xml or HttpSession.setMaxInactiveInterval(). I am currently reviewing a Java EE application, but I can't find anything related to session timeout definition. The web app is in Weblogic. I am assuming that since there is no session timeout definition, the session will never expire. 回答1: As you're looking for how the session can be timed out in Weblogic,

WebLogic 10gR3 - UnsupportedEncodingException parsing Content-Type header for multipart/form-data

好久不见. 提交于 2019-12-12 11:03:10
问题 My application is receiving multi-part content through an HTTP POST, on WebLogic 10gR3. Whenever clients specify the charset attribute before other attributes on the Content-Type header (e.g. Content-Type: multipart/form-data; charset=utf-8; boundary=a_random_boundary ), WebLogic is throwing the following exception (caught in my managed server's log): Unsupported encoding: "utf-8; boundary=a_random_boundary" specified. java.io.UnsupportedEncodingException: Unsupported Encoding utf-8; boundary

how is it possible, 3 threads are in blocked state waiting same monitor, and there is no thread owned that monitor

天大地大妈咪最大 提交于 2019-12-12 09:20:24
问题 In our production environment, weblogic server hangs for half an hour, It looks like it has dead-locked threads. But after investigating thread dumps, 3 threads are blocked for the same lock, but no other threads own this lock.. Here is the stacktrace.. Do you have any reasonable explanation for this stiuation?. Here is the blocked threads; "pool-1013-thread-5" prio=7 tid=600000000842be00 nid=17280 lwp_id=518677 waiting for monitor entry [9fffffffe6aff000..9fffffffe6b00bd0] java.lang.Thread

Injecting EJB into servlet

六眼飞鱼酱① 提交于 2019-12-12 08:49:49
问题 I googled without luck trying to understand why Weblogic 10.3.4 does not inject EJB into annoted field in servlet. Ear contains ejb.jar defining DAO EJB and web.war with TestServlet. PluginDataDAO.java @Stateless public class PluginDataDAO implements IPluginDataDAO { } IPluginDataDAO.java @Local public interface IPluginDataDAO { } TestServlet.java public class TestServlet extends HttpServlet { @EJB(mappedName = "PluginDataDAO") private IPluginDataDAO pluginDataDAO; } web.xml <web-app version=

Weblogic: Call DB2 stored procedure without schema name (property currentSchema)

穿精又带淫゛_ 提交于 2019-12-12 08:03:21
问题 I have a Java application that runs on Weblogic. The application needs to access a stored procedure in a DB2 data base, therefore a JDBC data source is configured and accessed by its JNDI name. Data source: ClassDriver: com.ibm.db2.jcc.DB2Driver Properties: user=MYUSER DatabaseName=MYDB The following example works as expected. Context env = null; DataSource pool = null; Hashtable ht = new Hashtable(); ht.put(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory"); ht.put

JDBC PreparedStatement Batch continue insert on error

*爱你&永不变心* 提交于 2019-12-12 07:59:30
问题 Hello guy I create a Batch with a PreparedStatement in java like this for(Item item: list){ ps.setString(1, item.getSome()); ps.setString(2, item.getFoo()); ps.setString(3, item.getBatman()); statement.addBatch(); if (++count % batchSize == 0) { results = ps.executeBatch(); //execute parcial batch if (results != null) System.out.println(results.length); } } results= ps.executeBatch(); //execute rest of batch The datebase server is a MySQL, in table to insert I have several restrictions By

Logback can't find all applications running on weblogic using insertFromJNDI

回眸只為那壹抹淺笑 提交于 2019-12-12 06:17:42
问题 I'm having a real struggle finding out whats wrong. I have a weblogic 10.3.5.0 server where I have deployed three apps. One yui app and two custom java-apps. These are located on a test server. The apps are working fine when you use them, but only yui is logging (logback 1.1.2). I have a identical app deployed locally where everything works as intended. I use inserFromJNDI in logback.xml and it loads: <?xml version="1.0" encoding="UTF-8"?> <configuration scan="true"> <insertFromJNDI env-entry

Drools 6.1.0 DefaultFactHandle NotSerializable exception

纵饮孤独 提交于 2019-12-12 05:48:20
问题 We are running drools 6.1.0 on Weblogic 12.1.2 as a stateless EJB 3.0 Bean. The bean returns the following exception when there is more load on the server during the initialization process when it is creating new instances in the pool. EJB Exception: : java.lang.RuntimeException: java.io.NotSerializableException: org.drools.core.common.DefaultFactHandle at org.drools.core.util.ClassUtils.deepClone(ClassUtils.java:514) at org.drools.core.definitions.impl.KnowledgePackageImpl