weblogic

In Weblogic 10.3.5, is there any way to expire an html file from cache without going through a server restart

旧城冷巷雨未停 提交于 2019-12-08 02:34:35
问题 In Weblogic 10.3.5, is there any way to expire an html file from cache without going through a server restart. I am supporting a server with frequent HTML changes and hoping to find a way not to restart the server each time the HTML is updated. Environment is supporting a PeopleSoft domain. Thanks. 回答1: There's a way indeed, the parameter "Resource Reload Check (in seconds)" which can be found on a web app setup is what you're looking for. I've setup this to 5(secondes) in order to have a

How can I create a portable Weblogic Scripting Tool application?

我们两清 提交于 2019-12-08 02:28:53
问题 I am creating WLST scripts which will be run against a server running weblogic which is fairly locked down. I only have permission to view logs and read only access to the console unless a pre-authorised change. I don't have permission to access the entire weblogic domain and run WLST. I would like to run WLST on a differernt server which has Java installed but not Weblogic. I was initially hoping to add a weblogic jar to the classpath then run the tool but it seems a bit more complicated

Each request from user call a new getConnection()?

拈花ヽ惹草 提交于 2019-12-08 02:13:16
问题 The database connection is get like below public Connection getDBConection(){ Context context = new InitialContext(); DataSource dataSource = (javax.sql.DataSource) context.lookup("java:myDataSource"); Connection conn = dataSource.getConnection(); } For a userA, is each database request should call getDBConnection() once; but no need to control all request use the same connection? That is, if userA has three database request, then userA should call getDBConnection() three times, and call

How to leverage EL 2.2 functionality on Weblogic 10.3.x?

坚强是说给别人听的谎言 提交于 2019-12-08 02:09:33
问题 I have Weblogic 10.3.5 installed. I deployed a WAR with JSF 2.0 and JSTL 1.2 on the server. But I need EL 2.2 functionality as well. What JARs do I need? It'd be great if someone can point me to a step-by-step guide from scratch as I've been trying to set this up for hours with no luck. 回答1: Easiest is to drop jboss-el.jar, which is an EL 2.1 compatible implementation offering the same features as EL 2.2, in /WEB-INF/lib and tell the JSF implementation to use that EL implementation instead.

m2e-wtp Overlay not loading into Eclipse-published EAR or WAR files

徘徊边缘 提交于 2019-12-08 00:25:47
问题 I'm having trouble getting Eclipse to properly publish overlayed WARs locally to a weblogic server. Running a maven clean package correctly assembles the EAR with the proper webapp content imported. I've found several similar questions but none appear to be recent or the same issue. Looking in my org.eclipse.wst.common.component file, the dependent-module for the overlay resource is correctly generated, as well. I'm using m2e-wtp 1.0.1.20130911-1545 Is there additional configuration that I

java.lang.NoClassDefFoundError: org/apache/cxf/jaxrs/impl/UriBuilderImpl

▼魔方 西西 提交于 2019-12-07 22:19:07
问题 I don't directly use Apache CXF in my code. I didn't even have it as a dependency. Now when upgrading to WebLogic 12c I get this exception. I previously got some other errors related to extracting a soap message body, which I got around after adding the saaj dependencies below. <dependency> <groupId>org.apache.cxf</groupId> <artifactId>cxf-bundle-jaxrs</artifactId> <version>${cxf-version}</version> </dependency> <dependency> <groupId>org.apache.cxf</groupId> <artifactId>cxf-api</artifactId>

Invoking Jython without Weblogic's WLST

你离开我真会死。 提交于 2019-12-07 21:50:24
问题 I'm using an AIX machine which has Weblogic 9.21 installed and it also has jython as part of its installation (WLST). Is there a way to run jython code without having to initialize the WLST first? I have the following jars too if they bring in any ideas: ['.', '/opt/weblogic921/weblogic92/common/lib/jython.jar', '/opt/weblogic921/weblogic92/common/lib/config.jar', '/opt/weblogic921/weblogic92/common/lib/config.jar', '/opt/weblogic921/weblogic92/server/lib/weblogic.jar', '/opt/weblogic921

weblogic部署Already connected

余生颓废 提交于 2019-12-07 19:21:27
项目在tomcat上部署没有问题,部署到weblogic中时遇到一个错误: <!-- lang: java --> java.lang.IllegalAccessError: Already connected at weblogic.net.http.HttpURLConnection.setRequestProperty(HttpURLConnection.java:761) at weblogic.net.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:237) 经过搜索各种网上的资料信息后发现需要加上: -DUseSunHttpHandler=true windows下AdminServer启动脚本: set JAVA_OPTIONS=%SAVE_JAVA_OPTIONS% -DUseSunHttpHandler=true linux下如果是使用受管服务,则在管理服务脚本中的 JAVA_OPTIONS="-Dweblogic.security.SSL.trustedCAKeyStore="/bea/weblogic/wlserver_10.3/server/lib/cacerts" ${JAVA_OPTIONS}" 下面添加一行 JAVA_OPTIONS="-DUseSunHttpHandler

Choosing an application server for web application development

孤街浪徒 提交于 2019-12-07 16:18:10
问题 My manager has asked me to suggest an application server for web application development work. What are the factors that needs to be considered before we select any application server for web application development in Java J2EE development? If I select one now and IN future and I want to change to some other application server, is that minimum effort to change? 回答1: Apache Tomcat and Jetty are the two most popular web containers. Tomcat is the reference implementation of a Java servlet

Changing HttpURLConnection in running jvm

允我心安 提交于 2019-12-07 16:10:00
问题 Is it possible to change the http handler in jax-ws? For example: from weblogic.net.http.HttpURLConnection to sun.net.www.protocol.http.HttpURLConnection. 回答1: you can try to using -DUseSunHttpHandler=true in the weblogic. manage weblogic by using WLST (non-clustered) add jvm arguments in the managered server env script under $WLS_DOMAIN_HOME/bin/setDomainEnv.sh JAVA_OPTIONS=-DUseSunHttpHandler=true export JAVA_OPTIONS manage weblogic by using Weblogic console (Clustered) Add