WebLogic 11g EAR EJB Classpath and class loaders

All,
I have been having issues migrating Spring based EJB applications from OC4J to WebLogic 11g (10.3.1). I have been in communication with Oracle who has suggested a work around however I am keen to see if anyone else can suggest a solution.
The application is dependant on stateless session EJB beans that communicate with a Spring managed service tier to perform the business logic and database access. PitchFork is used to inject the Spring managers into the EJB’s using the spring-ejb-jar.xml configuration file. Note originally I was using the SpringBeanAutowiringInterceptor however I could not get this to work. See WebLogic 11g and Spring beens injected into EJB for details.
When the application is deployed packaging all the dependant jars within the APP-INF\lib folder I get a verity of errors from the following InvalidClassException, NoSuchMethodError, AbstractMethodError and IllegalArgumentException. I am using Spring 2.5.3 to match the supported WebLogic version. Note within the EAR application.xml the library-directory is set to APP-INF/lib. The issue appears to be Spring, PitchFork, commons-logging and aspectj libraries are being loaded form WebLogic and do not have visibility on jars within the application or have been modified when bundled for WebLogic. An example of this is the PitchFork jar within WebLogic has been changed excluding the spi package resulting in java.lang.ClassNotFoundException: org.springframework.jee.spi.PitchforkUtilsImpl errors.
Moving the jars to the domain library path does not resolve any of the issues. I have been unable to successfully deploy the application picking up the application jars using the prefer-application-packages configuration.
Oracle has advised me to deploy the libraries into the WebLogic system classpath by modifying the startWebLogic command to load the libraries into the classpath. I am concerned that modifying the system classpath will result in an unstable WebLogic server as I will be replacing modified jar files packages with WebLogic (such as PitchFork). This will also limit the applications that can be deployed within the server as each application must use the same libraries and versions (as the application ibraries are leing ignored).
Has anyone else hit this issue and corrected it? Can anyone think of an alternative solution?
Regards
Neil

Hi,
I am in the process of updating the tracking bug# 331569 with copies of the eclipse EAR/WAR projects and the EAR for these scenarios. Here are some details on how I got past the 2nd CCE on the org.eclipse.persistence.jpa.PersistenceProvider class (not the javax one)
https://bugs.eclipse.org/bugs/show_bug.cgi?id=331569
Essentially an SE persistence unit running both JPA 2.0 api and the 2.0 XSD schema work fine. I will next retest the EE case with variations of the 3 types of injection on the SSB or Servlet.
Update: There are 3 (possibly 4) issues here (all of these may become obsolete when the next WLS version ships)Initially I got the same 2.0 schema error and the ClassCastException on org.eclipse.persistence.jpa.PersistenceProvider
It turns out that my import of the 2 eclipse projects from my bug # 296271 for WebLogic 10.3.2.0 lost their facets(specifically the dynamic web facet) because I associated them with a different WebLogic 10.3.3.0. - this caused the CCE I was experiencing like Sri.
Anyways, after creating an EAR/Web project combination from scratch in eclipse associated with the 10.3.3.0 instance - I predeployed/deployed/ran fine - even with the 2.0 schema - in SE bootstrap mode (no EE yet).
Reproduction Procedure:
redoing project from scratch as I noticed that the war was not at the root of the ear - it was a jar in the app-inf/lib dir - my imported eclipse project was not referenced correctly as a web module facet- create empty EAR and WAR project with references
- download and open my EAR and WAR project code from bug # 296271
https://bugs.eclipse.org/bugs/show_bug.cgi?id=296271
- do essentially all the steps in the page below (I paraphrase for re-verification)
http://wiki.eclipse.org/EclipseLink/Development/JPA_2.0/weblogic#DI_1.1:_Alternative_3:_Application_Level_Shared_Library_-InUse
- copy applicationService, entity and FrontController servlet code into new projects
- create persistence.xml and MANIFEST.MF manifest in src\META-INF
- update manifest
Class-Path: APP-INF/lib/eclipselink.jar
APP-INF/lib/javax.persistence_2.0.0.v200911041116.jar
- copy both javax.persistence 2.0 and eclipselink 2.x jars to APP-INF/lib
- change ordering of WebLogic library modules classpath reference (javax.persistence 1.0) to ear reference (2.0 version)
- update web.xml with servlet tags
- update weblogic.xml with new context root
- make the persistence unit name the same in persistence.xml and ApplicationManagedService
- update weblogic-application.xml with prefer-application-packages overrides
<wls:prefer-application-packages>
<wls:package-name>javax.persistence.*</wls:package-name>
<wls:package-name>org.eclipse.persistence.*</wls:package-name>
</wls:prefer-application-packages>
- enable server redirect logging
<!-- new for 10.3.3.0 http://wiki.eclipse.org/EclipseLink/Examples/JPA/Logging#Server_Logging -->
<property name="eclipselink.logging.logger" value="DefaultLogger"/>
- start WebLogic 10.3.3.0
- deploy (run on) server from eclipse or export ear to auto deploy directory
1) JPA 2.0 XSD usage on 10.3.3.0
- I reproduced this issue with a bad EAR
- was able to use the 2.0 schema within the WAR-only application managed EAR
persistence.xml<persistence version="2.0" xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd">
<!-- persistence version="1.0" xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"-->
<persistence-unit name="example2" transaction-type="JTA">
<provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
<jta-data-source>localJTA</jta-data-source>
<class>org.eclipse.persistence.example.business.Cell</class>
<shared-cache-mode>NONE</shared-cache-mode>
<properties>
<property name="eclipselink.target-server" value="WebLogic_10"/>
<property name="eclipselink.logging.level" value="FINEST"/>
<property name="eclipselink.target-database" value="Derby"/>
<!-- new for 10.3.3.0 http://wiki.eclipse.org/EclipseLink/Examples/JPA/Logging#Server_Logging -->
<property name="eclipselink.logging.logger" value="DefaultLogger"/>
<!-- property name="javax.persistence.jdbc.driver" value="org.apache.derby.jdbc.ClientDriver"/>
<property name="javax.persistence.jdbc.url" value="jdbc:derby://127.0.0.1:1527/dataparallel;create=true"/>
<property name="javax.persistence.jdbc.user" value="APP"/>
<property name="javax.persistence.jdbc.password" value="APP"/-->
<!-- turn off DDL generation after the model is stable -->
<!-- property name="eclipselink.ddl-generation" value="drop-and-create-tables"/>
<property name="eclipselink.ddl-generation.output-mode" value="both"/-->
</properties>
</persistence-unit>
</persistence>
2) CCE on JPA provider implementation class
Error instantiating the Persistence Provider class org.eclipse.persistence.jpa.PersistenceProvider of the PersistenceUnit example2: java.lang.ClassCastException: org.eclipse.persistence.jpa.PersistenceProvider
- I reproduced and fixed this one (was Eclipse project facet issue) - EAR was wrong
- was able to run JPA 2.0 code fine on an SE PU (predeploy/deploy together)
- EE injection should not work but I will post an example EAR anyway
log[EL Example]: enterprise: JPA 2.0 Metamodel: MetamodelImpl@56287508 [ 3 Types: , 1 ManagedTypes: , 1 EntityTypes: , 0 MappedSuperclassTypes: , 0 EmbeddableTypes: ]
3) CCE on JPA spec interface class
- I could not reproduce this one
Re: WebLogic 11g EAR EJB Classpath and class loaders
Error processing persistence unit PT of module pt: Error instantiating the Persistence Provider class org.eclipse.persistence.jpa.PersistenceProvider of the PersistenceUnit PT: java.lang.ClassCastException: org.eclipse.persistence.jpa.PersistenceProvider cannot be cast to javax.persistence.spi.PersistenceProvider
4) CCE on fallback Kodo JPA provider (if an invalid say 2.1 JPA XSD schema is referenced)
java.lang.ClassCastException: kodo.persistence.PersistenceProviderImpl
at javax.persistence.Persistence.findAllProviders(Persistence.java:186)
java.lang.NoSuchMethodError: javax/persistence/EntityManager.getMetamodel()Ljavax/persistence/metamodel/Metamodel;
- reproduced by using the 1.0 javax.persistence jar (but named as the 2.0 one in APP-INF/lib)
- fixed by using either the 1.0 or 2.0 JPA XSD schema and using the correct 2.0 spec jar
thank you
/michael

Similar Messages

  • Weblogic 11g (10.3.6) and SecureAuth

    We have SecureAuth deployed in our national environment, and are using it for 2 form authentication with numerous applications. However, I have not been able to determine how to use it with WebLogic. I have contacted SecureAuth as well, but no response yet.
    Has anyone succeeded in using SecureAuth in a Weblogic environment? If so, can you point me to documentation on how this was done?
    Thanks for any assistance.
    Regards,
    John

    We are facing the same problem. I have an EAR that has a packed WAR containing two EJBs. One of them can be configured without a problem, but the other one cannot. The same exception is thrown. Interestingly, we have the same application on our test server environment and there it works without a problem.

  • JDeveloper 11g Using EJB, JPA AND ADF DOES NOT WORK IN VERSION 11.1.1.1.0

    Hi all,
    I'm facing serious problems after the migration from jdev 11.1.1.0 version to new release 11.1.1.1.0, as i published with a sample at
    Problems with create new record o in JDev 11 R1
    is this a big bug in the ide? Should i return to previous version?
    Thanks in advance
    Enrique

    Hi,
    my best recommendation is to work with customer supports in this testcase.
    Frank

  • Error while deploying web-determinations in 10gR3 & weblogic 11g

    Hi,
    I am installing OPA 10.0.1 for configuring Siebel connector, for this on Linux I am deploying web-determinations & determination-server on 10gR3.
    I was able to successfully deploy determination-server and I am facing error while deploying web-determinations
    I am facing below error when accessing web-determinations URL after deploying in 10gR3 ( 10.1.3.3 ).
    ===================
    500 Internal Server Error
    Servlet error: An exception occurred. The current application deployment descriptors do not allow for including it in this response. Please consult the application log for details
    ===================
    No error is being logged in while application logs.
    I also tried deploying in weblogic 11g (10.3.1) and I have below error ,
    ===================
    [HTTP:101216]Servlet: "WebDeterminationsServlet" failed to preload on startup in Web application: "web-determinations.war". com.oracle.determinations.interview.engine.exceptions.EngineConfigurationException: No rulebase directory specified at com.oracle.determinations.interview.engine.local.FileRulebaseService.<init>(FileRulebaseService.java:49) at com.oracle.determinations.interview.engine.local.LocalInterviewEngine.initialise(LocalInterviewEngine.java:91) at com.oracle.determinations.interview.engine.local.LocalInterviewEngine.<init>(LocalInterviewEngine.java:34) at com.oracle.determinations.interview.engine.InterviewEngineFactory.createInstance(InterviewEngineFactory.java:19) at com.oracle.determinations.web.platform.servlet.WebDeterminationsServletContext.init(WebDeterminationsServletContext.java:163) at com.oracle.determinations.web.platform.servlet.WebDeterminationsServletContext.<init>(WebDeterminationsServletContext.java:91) at com.oracle.determinations.web.platform.servlet.WebDeterminationsServlet.init(WebDeterminationsServlet.java:51) at weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(StubSecurityHelper.java:283) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321) at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121) at weblogic.servlet.internal.StubSecurityHelper.createServlet(StubSecurityHelper.java:64) at weblogic.servlet.internal.StubLifecycleHelper.createOneInstance(StubLifecycleHelper.java:58) at weblogic.servlet.internal.StubLifecycleHelper.<init>(StubLifecycleHelper.java:48) at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:521) at weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletContext.java:1913) at weblogic.servlet.internal.WebAppServletContext.loadServletsOnStartup(WebAppServletContext.java:1887) at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1805) at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:3041) at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1374) at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:452) at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:204) at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37) at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:60) at weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:200) at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:117) at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:204) at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37) at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:60) at weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:27) at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:629) at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37) at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:206) at weblogic.application.internal.SingleModuleDeployment.activate(SingleModuleDeployment.java:40) at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:161) at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:79) at weblogic.deploy.internal.targetserver.operations.AbstractOperation.activate(AbstractOperation.java:569) at weblogic.deploy.internal.targetserver.operations.ActivateOperation.activateDeployment(ActivateOperation.java:140) at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doCommit(ActivateOperation.java:106) at weblogic.deploy.internal.targetserver.operations.AbstractOperation.commit(AbstractOperation.java:323) at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentCommit(DeploymentManager.java:844) at weblogic.deploy.internal.targetserver.DeploymentManager.activateDeploymentList(DeploymentManager.java:1253) at weblogic.deploy.internal.targetserver.DeploymentManager.handleCommit(DeploymentManager.java:440) at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.commit(DeploymentServiceDispatcher.java:163) at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doCommitCallback(DeploymentReceiverCallbackDeliverer.java:181) at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$100(DeploymentReceiverCallbackDeliverer.java:12) at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$2.run(DeploymentReceiverCallbackDeliverer.java:67) at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:516) at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201) at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    =====================
    Pls let us know any configuration needs to be done.
    Pls advise.

    Hey Suni,
    It appears that there is a section missing out of the current installation guide for Web Determinations. The reason you're getting that error is because you are deploying to application to WebLogic which doesn't expand the war by default so you need to configure the rulebase loader. Before you add proceed with the steps in the install guide you need to:
    # Unpack the web-determinations.war file
    # Copy the rulebases you wish to install to <webroot>/WEB-INF/classes/rulebases
    # Edit the following setting in the application.properties file (<webroot>/WEB-INF/classes/configuration):
    load.rulebase.from.classpath =true
    rulebase.path                    =rulebases# Repack the war file
    # Proceed with the installation steps as set out in the installation guide
    I'll have the installation guide fixed and updated as soon as possible.
    Thanks,
    Kristy

  • Weblogic 5.1 jsp vs. weblogic 6.1 ejb

    Hello,
    Can weblogic 5.1 jsp talk to weblogic 6.1 ejb? And can weblogic 5.1 jsp talk to
    a web service published on weblogic 6.1 via GLUE 2.3?
    Thanks.

    Hello Shane,
              See http://e-docs.bea.com/wls/docs61///////interop/interop.html
              Regards
              Stephane
              Shane Yan wrote:
              > Hello,
              >
              > Can weblogic 5.1 jsp talk to weblogic 6.1 ejb? And can weblogic 5.1 jsp talk to
              > a web service published on weblogic 6.1 via GLUE 2.3?
              >
              > Thanks.
              

  • WebLogic 11g and Spring beens injected into EJB

    All,
    I am getting an error injecting spring managed beans into EJB's within WebLogic 11g. I am using an interceptor extending the SpringBeanAutowiringInterceptor to set the context name by overriding the getBeanFactoryLocatorKey method. This is configured within the ejb-jar.xml file as an interceptor-binding for all ejb's. The beanRefContext.xml is in the root of the ejb jar and on the class path.
    The application deploys however when I can the remote ejb interface the following error occurs. The remote interface and model passed on the method call are deployed within a ejb-client jar file that within both the ejb and web applications class path. The ejb and web app are deployed separately i.e. the web app is deployed as a war out with the ejb ear.
    Does anyone have an idea on what is causing this? I suspect it is something to do with the class loaders / classpath and where the sping managed context is being loaded from. The Spring jars are deployed within the root of the ear and referenced within the Class-Path manifest.
    Regards
    Neil
    javax.ejb.EJBException: A error occurred the server; nested exception is:
         weblogic.utils.AssertionError: ***** ASSERTION FAILED *****[ cannot unmarshaling throwable ]; nested exception is: java.rmi.ServerError: A error occurred the server; nested exception is:
         weblogic.utils.AssertionError: ***** ASSERTION FAILED *****[ cannot unmarshaling throwable ]
         at weblogic.ejb.container.internal.RemoteBusinessIntfProxy.unwrapRemoteException(RemoteBusinessIntfProxy.java:112)
         at weblogic.ejb.container.internal.RemoteBusinessIntfProxy.invoke(RemoteBusinessIntfProxy.java:91)
         at $Proxy212.validatePostcode(Unknown Source)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
         at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:198)
         at $Proxy213.validatePostcode(Unknown Source)
         at sandpit.web.PostcodeValidationController.onSubmit(PostcodeValidationController.java:59)
         at org.springframework.web.servlet.mvc.SimpleFormController.processFormSubmission(SimpleFormController.java:267)
         at org.springframework.web.servlet.mvc.CancellableFormController.processFormSubmission(CancellableFormController.java:140)
         at org.springframework.web.servlet.mvc.AbstractFormController.handleInvalidSubmit(AbstractFormController.java:671)
         at org.springframework.web.servlet.mvc.AbstractFormController.handleRequestInternal(AbstractFormController.java:272)
         at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
         at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)
         at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:875)
         at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:807)
         at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:571)
         at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:511)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:202)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3588)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2200)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2106)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1428)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Caused by: java.rmi.ServerError: A error occurred the server; nested exception is:
         weblogic.utils.AssertionError: ***** ASSERTION FAILED *****[ cannot unmarshaling throwable ]
         at weblogic.rmi.internal.ServerRequest.sendReceive(ServerRequest.java:220)
         at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:345)
         at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:259)
         at sandpit.ejb.address.AddressEJB_vk8fj2_AddressEJBImpl_1031_WLStub.validatePostcode(Unknown Source)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at weblogic.ejb.container.internal.RemoteBusinessIntfProxy.invoke(RemoteBusinessIntfProxy.java:73)
         ... 36 more
    Caused by: weblogic.utils.AssertionError: ***** ASSERTION FAILED *****[ cannot unmarshaling throwable ]
         at weblogic.rmi.internal.ServerRequest.unmarshalThrowable(ServerRequest.java:357)
         at weblogic.rmi.internal.ServerRequest.getThrowable(ServerRequest.java:62)
         at weblogic.rmi.internal.ServerRequest.sendReceive(ServerRequest.java:203)
         ... 44 more
    Caused by: java.io.InvalidClassException: org.springframework.beans.BeansException; local class incompatible: stream classdesc serialVersionUID = 5951866628951717299, local class serialVersionUID = -2725566157126749441
         at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:562)
         at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1583)
         at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1496)
         at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1583)
         at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1496)
         at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1583)
         at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1496)
         at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1732)
         at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
         at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947)
         at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871)
         at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
         at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
         at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947)
         at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871)
         at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
         at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
         at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947)
         at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871)
         at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
         at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
         at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
         at weblogic.rmi.extensions.server.CBVInputStream.readObject(CBVInputStream.java:64)
         at weblogic.rmi.internal.ServerRequest.unmarshalThrowable(ServerRequest.java:352)
         ... 46 more

    After some tinkering with this I am now getting a different error. I believe the error has changed as I am now deploying Spring 2.5.3 with my EJB. Does anyone have an idea on what is causing this?
    Note I have also deployed the code onto OC4J and it works fine.
    Regards
    Neil
    Error 500--Internal Server Error
    javax.ejb.EJBException: EJB Exception: ; nested exception is:
         org.springframework.jee.interfaces.LifecycleCallbackException: Failure to invoke public void org.springframework.ejb.interceptor.SpringBeanAutowiringInterceptor.autowireBean(javax.interceptor.InvocationContext) on bean class class sandpit.ejb.interceptor.SandpitSpringBeanAutowiringInterceptor_ei72e8_Impl with args: [com.bea.core.repackaged.springframework.jee.intercept.InterceptionMetadata$LifecycleEventCallbackInvocationContext@bc6ac]; nested exception is: org.springframework.jee.interfaces.LifecycleCallbackException: Failure to invoke public void org.springframework.ejb.interceptor.SpringBeanAutowiringInterceptor.autowireBean(javax.interceptor.InvocationContext) on bean class class sandpit.ejb.interceptor.SandpitSpringBeanAutowiringInterceptor_ei72e8_Impl with args: [com.bea.core.repackaged.springframework.jee.intercept.InterceptionMetadata$LifecycleEventCallbackInvocationContext@bc6ac]
         at weblogic.ejb.container.internal.RemoteBusinessIntfProxy.unwrapRemoteException(RemoteBusinessIntfProxy.java:109)
         at weblogic.ejb.container.internal.RemoteBusinessIntfProxy.invoke(RemoteBusinessIntfProxy.java:91)
         at $Proxy156.validatePostcode(Unknown Source)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
         at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:198)
         at $Proxy97.validatePostcode(Unknown Source)
         at sandpit.web.PostcodeValidationController.onSubmit(PostcodeValidationController.java:56)
         at org.springframework.web.servlet.mvc.SimpleFormController.processFormSubmission(SimpleFormController.java:267)
         at org.springframework.web.servlet.mvc.CancellableFormController.processFormSubmission(CancellableFormController.java:140)
         at org.springframework.web.servlet.mvc.AbstractFormController.handleInvalidSubmit(AbstractFormController.java:671)
         at org.springframework.web.servlet.mvc.AbstractFormController.handleRequestInternal(AbstractFormController.java:272)
         at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
         at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)
         at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:875)
         at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:809)
         at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:523)
         at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:463)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:202)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3588)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2200)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2106)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1428)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Caused by: org.springframework.jee.interfaces.LifecycleCallbackException: Failure to invoke public void org.springframework.ejb.interceptor.SpringBeanAutowiringInterceptor.autowireBean(javax.interceptor.InvocationContext) on bean class class sandpit.ejb.interceptor.SandpitSpringBeanAutowiringInterceptor_ei72e8_Impl with args: [com.bea.core.repackaged.springframework.jee.intercept.InterceptionMetadata$LifecycleEventCallbackInvocationContext@bc6ac]
         at com.bea.core.repackaged.springframework.jee.inject.Jsr250Metadata.invokeLifecycleMethod(Jsr250Metadata.java:335)
         at com.bea.core.repackaged.springframework.jee.intercept.InterceptionMetadata.invokeLifecycleMethods(InterceptionMetadata.java:580)
         at com.bea.core.repackaged.springframework.jee.intercept.InterceptionMetadata$AdvisorChainProxyControl.invokeLifecycleMethod(InterceptionMetadata.java:547)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
         at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:106)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at com.bea.core.repackaged.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
         at $Proxy157.invokeLifecycleMethod(Unknown Source)
         at weblogic.ejb.container.pool.StatelessSessionPool.createBean(StatelessSessionPool.java:196)
         at weblogic.ejb.container.pool.StatelessSessionPool.getBean(StatelessSessionPool.java:121)
         at weblogic.ejb.container.manager.StatelessManager.preInvoke(StatelessManager.java:148)
         at weblogic.ejb.container.internal.BaseRemoteObject.preInvoke(BaseRemoteObject.java:227)
         at weblogic.ejb.container.internal.StatelessRemoteObject.preInvoke(StatelessRemoteObject.java:52)
         at sandpit.ejb.address.AddressEJB_vk8fj2_AddressEJBImpl.validatePostcode(AddressEJB_vk8fj2_AddressEJBImpl.java:39)
         at sandpit.ejb.address.AddressEJB_vk8fj2_AddressEJBImpl_WLSkel.invoke(Unknown Source)
         at weblogic.rmi.internal.ServerRequest.sendReceive(ServerRequest.java:174)
         at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:345)
         at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:259)
         at sandpit.ejb.address.AddressEJB_vk8fj2_AddressEJBImpl_1031_WLStub.validatePostcode(Unknown Source)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at weblogic.ejb.container.internal.RemoteBusinessIntfProxy.invoke(RemoteBusinessIntfProxy.java:73)
         ... 36 more
    Caused by: java.lang.reflect.InvocationTargetException
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.bea.core.repackaged.springframework.jee.inject.Jsr250Metadata.invokeLifecycleMethod(Jsr250Metadata.java:332)
         ... 63 more
    Caused by: java.lang.NoSuchMethodError: org.springframework.util.ReflectionUtils.findMethod(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/reflect/Method;
         at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.determineRequiredStatus(AutowiredAnnotationBeanPostProcessor.java:347)
         at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$1.doWith(AutowiredAnnotationBeanPostProcessor.java:294)
         at org.springframework.util.ReflectionUtils.doWithFields(ReflectionUtils.java:283)
         at org.springframework.util.ReflectionUtils.doWithFields(ReflectionUtils.java:260)
         at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.findAutowiringMetadata(AutowiredAnnotationBeanPostProcessor.java:287)
         at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.processInjection(AutowiredAnnotationBeanPostProcessor.java:268)
         at org.springframework.ejb.interceptor.SpringBeanAutowiringInterceptor.autowireBean(SpringBeanAutowiringInterceptor.java:101)
         ... 68 more

  • Using Session EJB from MDB in Weblogic 11G

    I am having trouble with what should be a very simple operation. I have created an MDB and deployed it successfully on the Weblogic managed server. Then in a separate application, I created a Stateless session bean that I would also like to call from the MDB. My SSB deploys and works fine. I added an @EJB annotation to the MDB so I could instantiate and access the SSB from the MDB. In order to resolve the interface class in jDeveloper, I went to my MDB project properties under libraries and classpath and added the jar file for my ejb.
    When I try to redeploy the MDB, I get a java.lang.ClassNotFoundException on the SSB interface class.
    Is there an example somewhere of how to properly create and configure all of the deployment packages and refereneces I need on the weblogic server? The SSB is a common service that going to be called by a lot of other MDBs in my system. Optimally, what I would like to do is to deploy the ejb-client.jar as a shared library so all of my MDBs can use it.
    Thanks for any pointers!

    I am using jDeveloper 11g, so both my MDB and SLSB were built and deployed using the wizzards in the IDE.
    The MDB is inside of an ejb-jar and deployed to a managed server. I am doing my development on a box that is resource challenged so I setup my WLS on a different box. There is an admin server (AdminServer) and a separate soa server (soa_server1) on which I have installed all of the SOA Suite packages.
    The SLSB represents a primary service for the system I am building. Service1SessionBean is deployed targeted to soa_server1. The MDB is also deployed to soa_server1. At least it was until I tried to add the EJB reference. Now it won't deploy at all.
    I would like to avoid packaging the Service1SessionBean client jar in with the MDB because there are several other EJBs that will also need to call the service. I would like to deploy the client jar as a shared library on soa_server1 so that any EJB artifacts that need to call it may do so, I have tried to deploy the client jar as a shared library using jDeveloper but when it deploys, it seems to be under the name "j2ee-app" rather than Service1SessionBean.

  • Classpath configuration in weblogic 11g

    Where can we set the classpath order in weblogic 11g? By default the ear loads the classes from the jar files in lib folder. But we have some classes which have same names in two jar files. We need to set the order of jar file loading so that we can configure classes from which jar file should be loaded first? Does anyone know if we can configure this in server or in any configuration file?
    thanks,
    Gitanjali.

    Hi Gitanjali,
    You can use ClassLoader-filtering feature of WebLogic...
    by using "prefer-web-inf-classes" tag in "weblogic.xml" at WAR Level
    or
    by using "prefer-application-packages" tag in "weblogic-application.xml" in your EAR Level.
    for more informations on it you can refer to :
    http://download.oracle.com/docs/cd/E12840_01/wls/docs103/programming/classloading.html#wp1082452
    And
    http://m-button.blogspot.com/2008/08/how-to-use-weblogic-filteringclassloade.html
    Thanks
    Jay SenSharma
    http://jaysensharma.wordpress.com/2009/08/15/weblogic-10-3-1-new-feature/ (Resource Filtering)

  • Inject EJB using @EJB in Servlet Filter on Weblogic 11g

    Hi All,
    I want to inject the EJB (Local interface) into the Servlet Filter and the EAR is deployed on Weblogic 11g.
    My question is:
    Shall the @EJB Annotation work on Weblogic 11g or it will be ignored in case of Servlet or Servlet Filter?
    OR
    I have to do look up as below and mention the references in web.xml and weblogic xml file:
    I know below code should be used when you have remote interface.
    Hashtable env = new Hashtable();
    env.put( Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory" );
    Context ctx = new InitialContext( env );
    ctx.lookup( "myejb" );
    Thanks

    Hi,
    It should work in 11g.
    Regards,
    Kal

  • Error ejb weblogic 11g - method remove

    Hi,
    When trying to deploy an ejb in weblogic 11g me the following error.
    Unable to deploy EJB: ConceptType from ejb-admin.jar:
    [EJB:010101]A mismatch exists between the bean code and generated code.Clase(Application: ejb-jar, EJBComponent: ejb-jar) . Please rerun appc on the bean code. The error was java.lang.NoSuchFieldException: md_ejbRemoveClaseTipo_L
         at java.lang.Class.getField(Class.java:1520)
         at weblogic.ejb.container.deployer.BeanInfoImpl.setHomeMDField(BeanInfoImpl.java:896)
         at weblogic.ejb.container.deployer.BeanInfoImpl.setMDField(BeanInfoImpl.java:861)
         at weblogic.ejb.container.deployer.BeanInfoImpl.setMethodDescriptor(BeanInfoImpl.java:794)
         at weblogic.ejb.container.deployer.ClientDrivenBeanInfoImpl.setMethodDescriptor(ClientDrivenBeanInfoImpl.java:784)
         at weblogic.ejb.container.deployer.ClientDrivenBeanInfoImpl.setMethodDescriptors(ClientDrivenBeanInfoImpl.java:758)
         at weblogic.ejb.container.deployer.ClientDrivenBeanInfoImpl.setMethodDescriptors(ClientDrivenBeanInfoImpl.java:657)
         at weblogic.ejb.container.deployer.ClientDrivenBeanInfoImpl.prepare(ClientDrivenBeanInfoImpl.java:1072)
         at weblogic.ejb.container.deployer.EntityBeanInfoImpl.prepare(EntityBeanInfoImpl.java:67)
         at weblogic.ejb.container.deployer.EJBDeployer.setupBeanInfos(EJBDeployer.java:1031)
         at weblogic.ejb.container.deployer.EJBDeployer.prepare(EJBDeployer.java:1288)
         at weblogic.ejb.container.deployer.EJBModule.prepare(EJBModule.java:442)
         at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:199)
         at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:518)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
         at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:159)
         at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:47)
         at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.java:649)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
         at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:191)
         at weblogic.application.internal.SingleModuleDeployment.prepare(SingleModuleDeployment.java:44)
         at weblogic.application.internal.DeploymentStateChecker.prepare(DeploymentStateChecker.java:154)
         at weblogic.deploy.internal.targetserver.AppContainerInvoker.prepare(AppContainerInvoker.java:60)
         at weblogic.deploy.internal.targetserver.operations.ActivateOperation.createAndPrepareContainer(ActivateOperation.java:209)
         at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doPrepare(ActivateOperation.java:98)
         at weblogic.deploy.internal.targetserver.operations.AbstractOperation.prepare(AbstractOperation.java:217)
         at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentPrepare(DeploymentManager.java:749)
         at weblogic.deploy.internal.targetserver.DeploymentManager.prepareDeploymentList(DeploymentManager.java:1216)
         at weblogic.deploy.internal.targetserver.DeploymentManager.handlePrepare(DeploymentManager.java:250)
         at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.prepare(DeploymentServiceDispatcher.java:160)
         at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doPrepareCallback(DeploymentReceiverCallbackDeliverer.java:171)
         at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$000(DeploymentReceiverCallbackDeliverer.java:13)
         at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$1.run(DeploymentReceiverCallbackDeliverer.java:47)
         at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:545)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
    . NestedException Message is :md_ejbRemoveClaseTipo_L
    Anyone know why?

    There's a null pointer at:
    mil.ahrs.emilpo.ejb.entity.personnelaccounting.SoldrasgtPK.equals(SoldrasgtPK.java:24)
    If you need more help debugging this, you'll have to show me the source code for that class.
    -- Rob
    Vy Nguyen wrote:
    I'm using WLS 6.1SP2. When I called ejbRemove() method passing the PK, and I got the following error:
    EJB Exception: ; nested exception is: java.lang.NullPointerException Start server side stack trace: java.rmi.RemoteException: EJB Exception: ; nested exception is: java.lang.NullPointerException java.lang.NullPointerException at mil.ahrs.emilpo.ejb.entity.personnelaccounting.SoldrasgtPK.equals(SoldrasgtPK.java:24) at java.util.HashMap.remove(HashMap.java:380) at weblogic.utils.SoftHashMap.remove(SoftHashMap.java:242) at java.util.Collections$SynchronizedMap.remove(Collections.java:1440) at weblogic.ejb20.internal.EntityEJBLocalHome.releaseEO(EntityEJBLocalHome.java:406) at weblogic.ejb20.internal.EntityEJBLocalHome.remove(EntityEJBLocalHome.java:233) at mil.ahrs.emilpo.ejb.entity.personnelaccounting.SoldrasgtBean_8m4rrx_LocalHomeImpl.remove(SoldrasgtBean_8m4rrx_LocalHomeImpl.java:169) at mil.ahrs.emilpo.ejb.session.personnelaccounting.AssignmentServicesBean.removeCurrentAssignment
    I saw someone on-line had a similar issue and about CR044294_600sp2rp12.jar causing the error. How do I overcome this problem?
    THANK YOU.
    Vy--
    AVAILABLE NOW!: Building J2EE Applications & BEA WebLogic Server
    by Michael Girdley, Rob Woollen, and Sandra Emerson
    http://learnWebLogic.com
    [att1.html]

  • Develop in JDev 10.1.3.5, test and deploy to Oracle Weblogic 11g

    Hi,
    I have run into some important issues when trying to migrate my Jdev 10.1.3.5 applications to JDev 11g for deployment to the latest Oracle Weblogic Application server version, see threads:
    Thread: migration problems ADF/ Struts 10.1.3 -> 11.1.1.3
    migration problems ADF/ Struts 10.1.3 -> 11.1.1.3
    Thread: ADF/Swing/JClient application migration problem from 10.1.3.5 to 11.1.1.3
    Re: ADF/Swing/JClient application migration problem from 10.1.3.5 to 11.1.1.3
    - so using JDev 10.1.3.5 with deployment to Oracle Weblogic 11g is a must for us.
    Questions:
    1) Is there a way to use Oracle WEBLOGIC 10.3 for debugging inside JDev 10.1.3.5?
    2) Can I develop with JDev 10.1.3.5 + JDK 1.5 and create an ear to deploy to Oracle WEBLOGIC 10.3 Application server with JDK 1.6 64bits?
    3) Which version of ADF should I install on Oracle WEBLOGIC 10.3 to run my 10.1.3.5 application?
    Your help will be appreciated
    Fred

    Is there a way to use Oracle WEBLOGIC 10.3 for debugging inside JDev 10.1.3.5?While you can't replace the embedded OC4J - you can use an external WLS server and do remote debugging on it. http://www.oracle.com/technetwork/developer-tools/jdev/remotedebugwls-086628.html
    From inside JDeveloper you can also deploy directly to the WLS server.
    Can I develop with JDev 10.1.3.5 + JDK 1.5 and create an ear to deploy to Oracle WEBLOGIC 10.3 Application server with JDK 1.6 64bits?Yes you can. Note that so far we haven't officially certified ADF 10.1.3 on WLS 10.3 - but from various customers and testings we think it works ok. We might certify this combination in the future.
    Follow these steps to get the deployment working:
    http://www.oracle.com/technetwork/developer-tools/jdev/deployingwls-091640.html
    Which version of ADF should I install on Oracle WEBLOGIC 10.3 to run my 10.1.3.5 application?You always install the version of ADF that matches the one your application was developed and compiled with.

  • What is the use of have 3 Class loaders and why not only one

    In java we have 3 class loaders i.e BootStrap loader, Extension loader and System loader. Why can't we have just one?
    And what is the user of Extension loader?

    user7041221 wrote:
    In java we have 3 class loaders i.e BootStrap loader, Extension loader and System loader. Why can't we have just one?
    And what is the user of Extension loader?This has to do with one of the most advantages of OOP, reusability.
    First comes the Bootstrap class loader, it loads the classes contained in java.lang
    Next comes the Extention classloader, which loads vendor specific classes, like in case of SUN jvm the extention classloader will load the jars contained
    in /jre/lib/ext, that is why if you place any jar file in this directory, it will automatically be loaded at runtime. Suppose you place log4j.jar in this directory in this directory, now if you check the classpath[if you use eclipse, it is very easy to find out],log4j jar willl be there, you will now not have to explicitly add the jar in the classpath again. If any other vendor supplies JVM ,he/she will place their vendor specific classes in this directory.
    Last but not the least, the system classloader, it loads the classes in your application, example can be, when you use jdbc and do this :
    Class.forName("")
    system classloader is loading the class for you, there are two types: static and dynamic class loading.
    Now all these classloader follow the same rule, first it asks its parent classloader to load a class for it, system classloader will ask the extention classloader
    to load a class when needed, and if the extention classloader has already loaded the class, that class will not be loaded again. If the class could not be loaded by ext class loader, the the system classloader tries to load it. Relation between ext and bootstrap class loader is same. If the class not found ClassNotFoundException is thrown..
    For more details..check the specification.

  • Building+Deploying EAR, EJB and WS Proxy DCs

    Hi,
    I have three types of DCs in my track:-
    1. Deployable Web Service ProxyDC
    2. EJB Module DC (which uses classes from Deployable WS Proxy DC)
    3. EAR Application DC (for above EJB DC)
    I am able to build and deploy EAR of WS Proxy DC successfully.
    But I am not able to deployEAR of EJB DC as its unable to locate classes in WS Proxy DC. It gives NoClassDefFoundError while deployment of EAR..
    Do I need to make some changes to ejb-j2ee-engine.xml file in EJB DC and application-j2ee-engine.xml file in EAR DC?
    Please help.
    Thanks and regards,
    Amey Mogare

    Hi Jan,
    I am totally confused here.
    EAR DC contains--> EJB DC uses--> WS Proxy DC
    Lets start from root DC ie WS Proxy DC.
    1. For WS Proxy DC, what public par should I create? and how?
    2. I know that for EJB DC, I need only compilation public part.
    3. What should be done for EAR? How do I link Web Service proxy DC to EAR DC?
    Thanks and regards,
    Amey Mogare

  • EAR + EJB + Spring Class-Path problem

    Hi,
    I'd been using JDeveloper for a few years, but this is the firstime I package an EJB application. I have two jars (the ejb.jar and api.jar) both are using the Spring 2.0 Library that JDeveloper provides.... but when I package the EJB as an EAR everything seems to be OK:
    -ear
    - META-INF
    - application.xml
    - ejb.ar
    - api.jar
    - spring.jar
    But when I try to publish the EAR in the OC4J standalone management console, this error is thrown:
    oracle.classloader.util.AnnotatedNoClassDefFoundError:      Class not found: org.springframework.ejb.support.AbstractStatelessSessionBean.     Dependent Class sv.com.sti.ebs.sgd.ejb.SgdTrxSessionBean
         Cargador: sgd-ear.root:0.0.1
    (Failure analysis caught java.lang.NullPointerException)
    So I Think the ejb is not using the spring libraries located in the EAR's root or maybe I have to add the classes to the ejb's manifest.....But JDeveloper ejb jar deployment doesn't add any entries in the Manifest Class-Path entry....
    Please Help.

    Hi
    Try putting the utility classes in an EJB JAR file, then putting a Class-Path attribute in the MANIFEST.MF for that JAR far. That is
    Class-Path: lib/myutils.jar
    It doesn't matter where you put the utility JAR, so long as it's somewhere in the EJB JAR and you specify it in Class-Path. This should make the utility classes accessible to servlets as well. Note that classes defined in a WAR file's ./lib directory willl not be accessible to EJBs, as a matter of policy.
    Best wishes
    Kevin

  • WebLogic 11g R2 and OSGI

    Hi there,
    We are running Oracle WebCenter Sites 11g on top of WebLogic 11g R2 and we would like to have different versions of the same library running together, one for OWCS itself and other to some Java code we are developing (which will be part of the new website).
    Is that possible?
    The real question is: How can we have a current version of a library (for isntance, Spring MVC) running side by side with a (much) older version of that library which is required by OWCS? Some people said we could wrap the application (running on top of a current version of Spring) into an EJB, but that sounds like a lot of overhead.
    Cheers

    Hi,
    I do not think domain will be an issue. Did you install Oracle 11gR2 at home 32 bit or 64 bit version. Your server also may not be same. So there are so many factor which are different, causing it not to work at work, but work in a small setup at home.
    Regards

Maybe you are looking for

  • I cloud   won't download on pc

    Have tryed three times to get I cloud controll panel to download and keep getting the fix problem or remove from comupter options....will not install ???

  • Matrix Layout in Forms

    I want to represent the query results just as the report editor would in a matrix style. How do I do it? I don't want to use the spread table facility. tks null

  • Scheduled shutdown immediate and full database export

    Hi all, The database is Oracle 10g. How to make a scheduled shutdown immediate and full database export ? I want to use a batch file for it so I can make a sheduled task from the windows control panel everyday at 2 am. So what to write in the batch f

  • CRS & RAC  with 3 node

    Hi EveryBody, I am planing to install the Rac in my home, i mentioned the following information below. i am using 3 system with windows 2000 server, i wan to install the oracle 10gR1 RAC. my question is, for all nodes they need to install the CRS sof

  • Maintaining sub element Costs for the Service Activity

    Dear Experts & MM Gurus, Requirement is to maintain the Sub Cost Elements for the activity and to maintain different unit & Rate for the sub cost elements . Scenario is explained below. 1. while making Purchase Requisition for Services       in Servi