weblogic-10.x

Apache-Weblogic 404 configuration

。_饼干妹妹 提交于 2019-12-11 05:04:40
问题 I've searched around for this quite a bit and found similar questions but not exactly the same, but nonetheless I apologize if this is a duplicate question. Basically, I am trying to handle HTTP error responses (i.e. 404) with a custom error page (i.e. 404.html) when my application is down, but weblogic is still up. I am using Apache 2.2 with the weblogic module. I have set the ErrorDocument directive for Apache as well as the ErrorPage parameter within the block. I have also set the location

weblogic stuck issue

╄→尐↘猪︶ㄣ 提交于 2019-12-11 04:35:50
问题 We have encountered an issue as below we don't know if the problem are: 1.socket reading from database is too long that reach the StuckThreadMaxTime 600s 2.database query is running too long 2.locking on database or other objects any suggestions will be greatly appreciated! Thread-36 "[STUCK] ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'" { jrockit.net.SocketNativeIO.readBytesPinned(SocketNativeIO.java:???) jrockit.net.SocketNativeIO.socketRead(SocketNativeIO.java:31)

ClassCastException with Weblogic 10.3.3/Pitchfork

不问归期 提交于 2019-12-11 04:16:01
问题 We're trying to deploy a spring application to Weblogic 10.3.3. We created a war file, which works nicely with tomcat, but, when trying to package it up as an ear to use with weblogic, we're getting an issue with Pitchfork: java.lang.ClassCastException : org.springframework.jee.spi.PitchforkUtilsImpl cannot be cast to com.oracle.pitchfork.interfaces.PitchforkUtils Why is Weblogic trying to cast this, and what are we doing wrong? Thanks. 回答1: Notice that the error message mentions two

What and where is mdimport

余生长醉 提交于 2019-12-11 02:55:05
问题 Does anybody with weblogic portal knowledge know what jar file has the "mdimport" ant task definition. It's part of the build file created by the ant export script for wls10.0 but no longer works for 10.3. Any clue or ideas where to find the definition of this 回答1: You can find it here. your-portal-home"/workshop/com.bea.workshop.cmdline.ant.core_1.0.200.200906102316/workshop-antlib.jar 回答2: The mdimport task is defined in the xml file antlib.xml. This will be defined in a different jar file

Remove HTTP Response headers in Java

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-11 02:22:30
问题 Is there a way to remove HTTP response headers like Server and X-Powered-By? My application is using a Weblogic server. I'm programming in Java using the Spring MVC framework and Hibernate, and using JSP for views. 回答1: Depends on where the headers are added. If inside your app, you can use a Spring MVC Interceptor to remove them after your controller calls. If outside your app, you might be able to try a Java EE filter configured in web.xml (the example is security, but the approach will

@EJB injection with Arquillian on WebLogic 10.3.5 doesn't work

蹲街弑〆低调 提交于 2019-12-11 02:01:52
问题 I am using Arquillian to run a basic unit test on WebLogic 10.3.5. Unfortunately, @EJB injection does not work for me, and get a NullPointerException when the EJB is invoked. The examples I found don't require an ejb-jar.xml to be added, but I added one. In any case, a NullPointerException is thrown. Any ideas? The unit test: import static org.testng.Assert.assertEquals; import java.io.File; import javax.ejb.EJB; import org.jboss.arquillian.container.test.api.Deployment; import org.jboss

Exclude jar from war Maven 3

梦想的初衷 提交于 2019-12-11 00:41:44
问题 We need to exclude few jars from war ...we are using maven 3 in weblogic. I tried <packagesourceexludes>...and <warsournceexludes..> but didn't work. Any other way to do this. Thanks Vijay 回答1: <dependency> <groupId>xerces</groupId> <artifactId>xerces</artifactId> <version>2.4.0</version> <scope>provided</scope> </dependency> So doesn't need to exclude from every dependency.. This solved my problem...Thanks for all your answer... 回答2: You need to use <packagingExcludes> as documented here.

How to update application using wlst

不羁的心 提交于 2019-12-10 17:48:17
问题 From the console If 1 were to update the application what 1 does is.. 1. Click on deployments. 2. Selects the application name and clicks update option. 3. Here he may change: i. Source Path ii. Deployment Plan Now in my application No Plan path is specified so to update the application I only change the source path. The application gets successfully updated. I want to update the application using wlst command by giving the new source path. Is it possible? like updateApplication('backoffice',

Get list of all applications deployed on a weblogic server

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-10 15:56:06
问题 Using the following code, I am able to connect to the weblogic server. Now I want to get a list of all the applications deployed on the server. listapplications() from the command prompt lists the applications, but I am not able to store the output into a variable when I execute interpreter.exec(listapplications()) because interpreter.exec returns a void. Any ideas on how can I store the applications list in a collection/array? Any other alternative or leads would also help. import org.python

How to do parallel processing in Unix Shell script?

孤者浪人 提交于 2019-12-10 14:59:02
问题 I have a shell script that transfers a build.xml file to a remote unix machine ( devrsp02 ) and executes the ANT task wldeploy on that machine ( devrsp02 ). Now, this wldeploy task takes around 15 minutes to complete and while this is running, the last line at the unix console is - "task {some digit} initialized". Once this task is complete, we get a "task Completed" msg and the next task in the script is executed only after that. But sometimes, there might be a problem with the weblogic