weblogic-10.x

Share interface classes using the same classloader on J2EE/Weblogic 10, without using the system classpath

Hi, I have a "framework" running on a Weblogic 10.0 (or 10.3) appserver, where the framework consists of multiple enterprise apps, each responsible for a different resource adapter. A client application gets deployed into the domain, uses JNDI to obtain reference to one of the resource adapter Connector classes, does its invocations and...

Need help understanding JNDI and a particular ClassCastException in J2EE

Hi! I have an enterprise application A and B deployed (in WLS 10.0). A is the "framework", B is a client app. The client issues the following calls: Object o = ctx.lookup(jndiName); // line 1 cf = (ConnectionFactory) o; // line 2 ConnectionFactory is an interface, defined as: public interface ConnectionFactory extends java.io.S...

JSP compilation fails on Weblogic 10.3 but works on Weblogic 10

I have below piece of code in one my JSP <%@ page language="java" import = "import com.ecc.SiteAdmin.servlets.*" %> This file compiles and works fine on Weblogic 10 with Sun JDK 5, but fails with below message on Weblogic 10.3 with JRockit 6 SiteAdminLogin.jsp:1:36: No type with this name could be found at this location. <%@ pag...

Fix external library ThreadLocal leak in WebLogic 10

In a web application running in WebLogic, we are using a (commercial) library which doesn't free the ThreadLocal variables it uses. Each time a method in the library API is used, some Kbs of information are leaked in the Thread that processes the request. We are in the way of getting rid of the library but, in the meantime, we would lik...

Does the StuckThreadMaxTime parameter in Weblogic 10.3 aborts the thread ?

I get below message on application console when a some process takes unusually long time to complete. I am having doubt whether this message implies that my thread is aborted or can it continue after this ? <[STUCK] ExecuteThread: '0' for q ueue: 'weblogic.kernel.Default (self-tuning)' has been busy for "609" seconds working on...

Web service client prog for a weblogic ws

Solved building a stand-alone client for a jax-ws web service on Weblogic 10.3.1. The web service: @WebService(portName = "Port", serviceName = "Service", targetNamespace = "tns/web", wsdlLocation = "/wsdls/org.wsdl", endpointInterface = "tns.web.PortType") @BindingType("http://schemas.xmlsoap.org/wsdl/soap/http") public class ServiceP...

Classloader in WEBLOGIC SERVER

I did ear deployment in weblogic 10.It conatins war, ejb jar, APP-INF, META-INF. Now When I am calling the service from war, I am getting classnot found exception.When I deploy the war file , without using ear file this service works absoulutely fine. How to resolve this problem. How classloader will check for jars ...

Weblogic 10.3.0 : Loosing a stateless session bean in the bean pool

Hi, We have a strange situation where we loose a Stateless SessionBean in a Bean Pool in Weblogic 10.3.0 Since we only have one bean in the pool, this effectively hangs all incoming calls. We do not want more than one instance in the pool because of application restrictions. In the Weblogic admin console, we can see that there are 1 i...

Deploying a Django app to Weblogic: Cannot find modjy

I'm trying to deploy a django app to Weblogic and it cannot find modjy. I looked in the jython.jar that is included in the generated war file, and the modjy servlet is indeed there. Below is the error the server gets when deploying the app. <Feb 18, 2010 11:18:49 AM EST> <Error> <HTTP> <BEA-101216> <Servlet: "modjy" failed to preload o...

What to do in "Error 404--Not Found" situation created by weblogic URL handling ?

I have a J2EE Struts app deployed on Weblogic 10.3. When clicking on one of the link it throws "Error 404--Not Found" however the same link works fine when the app is deployed on Weblogic 8.1. I have checked there is no change in the JSP code recently and JSP is copied correctly in the application directory. Please advise what I am miss...

Axis Fault - axis (401)Unauthorized

I am trying to create a simple axis web service. I am using axis 1.2.1, JDK 6, Weblogic. Everything seems to be fine except invoking the web service. When I try to invoke the service it gives me an 'Unauthorized' error. Any ideas of what am I doing wrong? AxisFault faultCode: {http://xml.apache.org/axis/}HTTP faultSubcode: ...

How to map commonj.work.WorkManager with weblogic 10.3 Work Manager

Hi! I am trying to use WorkManagers in Weblogic 10.3. I have defined work managers in weblogic-ejb-jar.xml. I declared a resource reference for commonj.work.WorkManager in ejb-jar.xml with the res-ref-name same as the Work manager defined in weblogic-ejb-jar.xml. Here I am posting the code MDB package test; import javax.annotation.Re...

weblogic 10.3 custom authenticator

we are migrating weblogic from 8.1 to 10.3. We had custom authenticator provider. Is there any standard way to migrate custom authenticator from 8.1 to 10.3? In fact, I could not find the wlManagement.jar in 10.3. I did find a wlManagement.jar file but it only contains .java files, no .class files. Please advise. ...

XSLT transfer fails because Weblogic cannot find a class located in rt.jar

We have encountered a very strange class not found problem in our web app running on Weblogic 10.3. In our code we do a pretty standard XSLT transformation. UtilRequestManagerBean.java: TransformerFactory tFactory = TransformerFactory.newInstance(); Transformer transformer = tFactory.newTransformer(new StreamSource(new StringReader(xsl...

[Closed] Oracle JDBC connection with Weblogic 10 datasource mapping, giving problem java.sql.SQLException: Closed Connection

Oracle JDBC connection with Weblogic 10 datasource mapping, giving problem java.sql.SQLException: Closed Connection I am using weblogic 10 JNDI datasource to create JDBC connections, below is my config <?xml version="1.0" encoding="UTF-8"?> <jdbc-data-source xmlns="http://www.bea.com/ns/weblogic/90" xmlns:sec="http://www.bea.com/ns/web...

Weblogic EJB calls start to fail under moderate load with OptionalDataException

Our system setup consists of two Weblogic 10.3 servers: one hosts the presentation layer and the other hosts the EJBs. The system runs fine under moderate load for some time (one to several days) after which EJB method calls from the presentation server to the EJB server start to fail with the following error: java.rmi.RemoteException: ...

How to purge/delete message from weblogic JMS queue

Is there and way (apart from consuming the message) I can purge/delete message programmatically from JMS queue. Even if it is possible by wlst command line tool, it will be of much help. ...

Weblogic 10.0: SAMLSignedObject.verify() failed to validate signature value

I've been having this problem for a while and it's driving me nuts. I'm trying to create a client (in C# .NET 2.0) that will use SAML 1.1 to sign on to a WebLogic 10.0 server (i.e., a Single Sign-On scenario, using browser/post profile). The client is on a WinXP machine and the WebLogic server is on a RHEL 5 box. I based my client larg...

Weblogic server 10.0 - Managed Server shutting down

We have a weblogic server 10.0 instance which has a cluster with one managed server. Every Monday at 5am (or few seconds after), it shuts down on its own. The logs do not show any errors except the following message: JVM called WLS shutdown hook. The server will force shutdown now. JVM has a -Xnohup option and using JRockit. There is ...

How do I set up ServletForwardingController to intercept for jsp requests on weblogic

My end goal is to be able to use the spring message tag with configured messageSource on a legacy app using a model-1 architecture. I've done this in tomcat with something like <bean id="messageSource" class="org.springframework.context.support.ReloadableResourceBundleMessageSource"> <property name="basename" value="WEB-IN...