ADF application unable to reference external jar deployed as library

I am using jdeveloper 11.1.1.3.
My problem is as folows : I have a JAR deployed in weblogic 11g as a library and i want my ADF application to refer it as this inhouse developed library has some utility methods in it.
In my ADF application i have referenced the library in weblogic-application.xml as below..
<library-ref>
<library-name>beansCBB</library-name>
</library-ref>
But still my my jsps are failing to compile
Please guide me on how to provide library reference while deployment.
Zeeshan

Hi Zee,
Try to select the "Deployed by Default" option on the Library.
Just to see if the application is working on the server.
If It is working, it seems that the application can't find the library.... on the weblogic server.
Then unselect the "Deployed by Default" option on the Library.
And try to add
<library-ref>
<library-name>beansCBB</library-name>
<exact-match>false</exact-match>
</library-ref>
in the "weblogic.xml" file
Please confirm that the name of the Library (on the server\Deployments) is "beansCBB".
When you have deployed the library on the weblogic server, did you select the same "server" (when asking to Select deployment targets) ???
Regards
Nicolas

Similar Messages

  • Deploying ADF application to the cloud

    I had been deploying a simple adf application to the cloud trying to get simple basic authentication working with cloud based roles.  Yesterday I made a change and the application failed to deploy, and despite reverting changes I still am unable to deploy.
    I have since created new ADF applications, and cannot get them to deploy in the cloud either, while they do deploy on my local wls instance.  The error in the service log is
    User defined listener com.sun.faces.config.ConfigureListener failed: java.lang.InternalError: oracle/adfinternal/controller/resource/AdfcMessagesArb.<clinit>()V.
    Googling on the error shows it to be an issue with versions, or a corruption of a jar file.  I did get a similar error deploying to my local when I forgot to add the library-ref for jsf 1.2 to my weblogic.xml.
    Jdev version is 11.1.1.6, java cloud service version is 13.1.
    Is there any way to get more logging that what is returned by the cloud sdk client for the service log?
    I'm going to try a reinstall of jdev.  Any other suggestions?

    I uninstalled jdev, deleted the entire dir <user>/AppData/Roaming/Jdeveloper, and reinstalled jdev.
    After this I am able to deploy again.

  • Deploying ADF Application to remote Weblogic server

    Hi Everyone,
    I created an ADF Application 11.1.1.2 and deployed it successfully to the remote weblogic server 10.3.3 in same instance.
    I want to know can we create ADF application in one instance and deploy it in remote weblogic server creating Data Source for different instance?
    Let me put it in differently.
    I created ADF Application using test instance and now i want to move it to PROD but i dont have access to PROD Database but i can make the DBA's run the database scripts in PROD that are needed for the application to run successfully ,is there away so that i can create application using test instance and create DataSource in weblogic server giving PROD database details ?
    Is there a way i can give DBA's access to enter the database connection details for my application like changing any file in ADF Application like Model.jpx?
    Please provide me with solutions?
    Thanks.

    Your application should be using a WebLogic DataSource - then you can define that datasource on any server you want pointing to any database you need.
    Info here:
    http://download.oracle.com/docs/cd/E17904_01/web.1111/b31974/bcservices.htm#CHDJDBJB

  • Create ADF applications for GlassFish runtime not possible?

    I am running Eclipse with OEPE 12.1.1.2 and want to build an ADF Essentials application for GlassFish.
    I have GlassFish installed into Eclipse (GlassFish Server Open Source Edition 3 (Java EE 6)) and running.
    I have installed ADF Essentials as instructed in FMW Admin Guide 11.1.2.3 appendix C (copied jars to lib directory of domain, set JVM parameters).
    Now when I try to create an ADF Application in Eclipse, I cannot create a GlassFish target runtime. The only options I see are WebLogic 10.3.4, 10.3.5 and 10.3.6.
    The "Download additional server adapters" link doesn't give me any GlassFish options.
    How do I set up a GlassFish ADF Essentials runtime environment in Eclipse? Any pointers appreciated.
    Best regards
    Sten Vesterli
    Edited by: Sten Vesterli on Feb 24, 2013 2:51 PM

    The version of OEPE you are using supports ADF 11g applications that can be deplyed to Weblogic Server. It doesn't support deployment of ADF applications to GlassFish and also doen't support the ADF Essentials version of ADF. These are planned for an upcoming release of OEPE.
    Is the ADF application you would like to build/deploy a pure ADF Faces application or does it include ADF TaskFlow, ADF DataControls and ADF Binding?
    -Raghu

  • Packaging ADF application with Libraries

    Hi Experts,
    I was exploring on packaging/ bundling an ADF application with all required libraries, so that this application can be deployed on any J2EE server.
    I have gone through another thread on similar topic - Error while deploying ADF application to a standalone weblogic server
    Above thread says that installation of run-time libraries are must. But I want to dig little deeper into the reasoning.
    What are libraries that can't be added into Application WAR file? (Normally J2EE developed application can be bundled and deployed on any of these servers (Weblogic/ tomcat/websphere)).
    Is it possible to bundle ADF application with all libraries and then deploy it to Websphere server directly (without installing 3rd party libraries)?
    Any help on this is appreciated.
    Thanks,
    Randhir

    Timo / Frank / Shay,
    Thanks for your help.
    Websphere server is being used by other applications. So the intention of bundling libs was to check ADF application funcationality on Websphere server without installing 3rd party ADF libraries (installation may conflict other libraries and some application can stop working).
    I gave a try on bundling all libraries with ADF application, but still I can see some error messages about missing libraries.
    What is your suggestion on installing 3rd party libs on Websphere server? Will this impact any deployed application?
    Thanks,
    Randhir

  • ADF application as WAR

    i am using jdeveloper 11.1.1.3.
    I would like to know whether i can have my ADF application bundled as a war and deployed , as i want to enable session sharing in my EAR, which has more than one WAR in it and this ADF application will also be as a WAR inside the same EAR , so that session sharing is possible.
    Zeeshan

    "make sure to deploy the ADF application as an EAR file – not as a WAR file. "
    http://technology.amis.nl/blog/6167/deploying-and-running-adf-11g-applications-on-weblogic-11g

  • How to use external jars in NW2004

    Hello Experts,
    can i use the same approach mentioned in the below Weblog for using the external jars in NW2004.
    /people/bertram.ganz/blog/2008/11/24/how-to-use-external-jar-files-in-web-dynpro-development-components
    and if not then what will be the best way to achieve it in  NW2004.
    Please provide your inputs on above.
    Regards,
    Siddharth

    Hi Sidharth,
    If you are using web dynpro DC perspective then you need to follow the following points to use the external jar files in it.
    1. Create a external library project.
    2. copy the external jars in the library folder os the projects.
    3.) Select all the jars from the u201CLibrariesu201D folder, Right click and then select Development Component and click on Add to Public Part
    4.Select the first Radio Button (Provides an API)and give some nameto it.
    5. Repeat the step no 3 but now select the second radio button other than as selected in step no 4.
    6. Now build your lirary DC.
    7. Now create a j2ee DC project.
    8. ) Expand the node DC Definition and Right Click on Used DC. Select Add Used DC.
    9. Select the External Library DC with build time dependency.
    10.Right click on the J2EE DC and then select Development Component followed by Build
    11. Right click on the J2EE DC and then select Development Component followed by Deploy
    now you can use both the libary DC and the j2ee DC in your web dynpro DC as used DC.
    But if you have created a web dynpro project only(but not DC) than you can directly add the external jars in java build path
    hope this will help
    regards
    Narendra
    Edited by: Narendra Singh on Oct 27, 2009 11:22 AM

  • How to access external JAR in EJB ?

    In Web applications, we can keep external jars used in WEB-INF/lib directory.
    How to achieve same in an EJB ?
    Thanks,
    George

    "George" <[email protected]> wrote in message news:[email protected]..
    In Web applications, we can keep external jars used in WEB-INF/lib directory.
    How to achieve same in an EJB ?If you are on weblogic 8.1, you can put the jars into APP-INF/lib in ear. If it's not the case, you should refer the
    jars in MANIFEST.MF of corresponding ejb-jars.
    HTH.
    Regards,
    Slava Imeshev

  • Unable to deploy ADF application to weblogic server

    Hi,
    We are developing ADF application using jDeveloper 11.1.1.1 and deploying to Weblogic Server 10.3.1. The application is working without any problems on 10.3.1 wblogic platform.
    We procured new 64 bit hardware and installed weblogic 10.3.2 and jdeveloper 11.1.1.2 on windows platform. When we are deploying the application developed using jdeveloper 11.1.1.1 on the new platform we are getting the following exception.
    An error occurred during activation of changes, please see the log for details.
    [J2EE:160149]Error while processing library references. Unresolved application library references, defined in weblogic-application.xml: [Extension-Name: adf.oracle.domain, Implementation-Version: 11.1.1.1.0, exact-match: false], [Extension-Name: oracle.jsp.next, exact-match: false].
    Can you please provide some suggestions to debug the problem.
    Thanks and Regards,
    S R Prasad

    Hi,
    I have tried deploying the application using jdeveloper 11.1.1.2.0, But this time I am getting the following error after commenting the following lines in weblogic-application.xml. I have removed the following lines as I am getting classnot found exception for oracle.adf.share.weblogic.listeners.ADFApplicationLifecycleListener and oracle.mds.lcm.weblogic.WLLifecycleListener.
    If I deployed the application on the admin server, The application is working with out any problems. I am having problems only on Managed Server at the time of deployment.
    <listener>
    <listener-class>oracle.adf.share.weblogic.listeners.ADFApplicationLifecycleListener</listener-class>
    </listener>
    <listener>
    <listener-class>oracle.mds.lcm.weblogic.WLLifecycleListener</listener-class>
    </listener>
    java.lang.NoClassDefFoundError: oracle/adf/share/logging/ADFLogger
    at java.lang.Class.getDeclaredFields0(Native Method)
    at java.lang.Class.privateGetDeclaredFields(Class.java:2291)
    at java.lang.Class.getDeclaredFields(Class.java:1743)
    at weblogic.j2ee.dd.xml.BaseJ2eeAnnotationProcessor.getFields(BaseJ2eeAnnotationProcessor.java:973)
    at weblogic.j2ee.dd.xml.BaseJ2eeAnnotationProcessor.getFields(BaseJ2eeAnnotationProcessor.java:966)
    Truncated. see log file for complete stacktrace
    Caused By: java.lang.NoClassDefFoundError: oracle/adf/share/logging/ADFLogger
    at java.lang.Class.getDeclaredFields0(Native Method)
    at java.lang.Class.privateGetDeclaredFields(Class.java:2291)
    at java.lang.Class.getDeclaredFields(Class.java:1743)
    at weblogic.j2ee.dd.xml.BaseJ2eeAnnotationProcessor.getFields(BaseJ2eeAnnotationProcessor.java:973)
    at weblogic.j2ee.dd.xml.BaseJ2eeAnnotationProcessor.getFields(BaseJ2eeAnnotationProcessor.java:966)
    Truncated. see log file for complete stacktrace
    I installed weblogic with the following steps.
    1. Install weblogic 10.3.2 (64 bit)
    2. Install jdeveloper (ADF runtime only)
    3. Launch configuration wizard.
    4. create domain.
    5. extend domain with jrf libraries.
    5. create managed server
    Thanks and Regards,
    S R Prasad

  • Unable to deploy/run adf application in jdeveloper/ satandalone server

    Hi
    I am trying to deploy a simple ADF application (Fusion Web application) in
    Jdeveloper IDE (Integrated WL server)  - In this case, the server state is changing to RUNNING but no signs that the application is deployed and no Target URL is seen.
    Deploying it on a standalone server: In  this case, I get the following error: Remote deployment failed (oracle.jdevimpl.deploy.common.Jsr88RemoteDeployer).
    Can anyone please suggest...
    Thanks a lot

    Hi Shay
    Thanks a ton for responding.
    My application is a basic taskflow app - to display the values of a form on the following page (splash page)...
    when I tried to deploy it on a stand alone wl server( 2nd case) - deployment status = Failed with the error message I mentioned above.
    a) i tried running on standalone using the jdeveloper and
    B) i took the war file and deployed it - I get the same error with Deployment Status = Failed.
    the strange part is that the same application is running fine on my friends machine - she is able to see the Target URL and the deployment is successful.

  • Deploying a jdeveloper adf application to a desktop jar file

    I have a problem when trying to run an .adf Form that is in the jar.
    My Manifest.mf looks like this
    Manifest-Version: 1.0
    Main-Class: dfg.model.FormUsr1View1
    When I change it to run a none .adf form like
    Manifest-Version: 1.0
    Main-Class: dfg.model.Form1
    it runs with no problems.
    At both cases I use commnd line like this:
    java -jar  dfg.jar
    I have also a libs folder in my jar (including all adf jars) and also tried using the following Manifest.MF
    Manifest-Version: 1.0
    Class-Path: \libs
    Main-Class: dfg.model.FormUsr1View1
    I 'd appreciate any help!
    Edited by: Georgekl on 26 Ιαν 2011 5:20 μμ

    I am now stuck getting the following with my .jar
    java -jar dfg.jarException in thread "main" java.lang.NoClassDefFoundError: oracle/adf/model/binding/DCErrorHandler
    Caused by: java.lang.ClassNotFoundException: oracle.adf.model.binding.DCErrorHandler
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClassInternal(Unknown Source)
    Could not find the main class: dfg.model.FormUsr1View1. Program will exit

  • Error while deploying ADF application to a standalone weblogic

    jdeveloper version: 11.1.2.2
    Issue: I have built a standalone weblogic server (10.3.5.0) and am trying to deploy my ADF application to it. The deployment fails with the following message. The stand alone server I have built is on the same machine where jdeveloper is installed and I am using same weblogic that came with jdeveloper install. The aplication runs fine on integrated server. I have researched this issue and have got more or less same answer of installing ADF run time libraries. Can someone please help me with exactly what I need to install and how?
    Thanks,
    Saurabh.
    [09:49:44 AM] Unable to determine the target platform from the Profile. Using default
    [09:49:44 AM] ---- Deployment started. ----
    [09:49:44 AM] Target platform is (Weblogic 10.3).
    [09:49:55 AM] Retrieving existing application information
    [09:49:55 AM] Running dependency analysis...
    [09:49:55 AM] Building...
    [09:50:18 AM] Deploying profile...
    [09:50:20 AM] Wrote Web Application Module to C:\JDeveloper\mywork\EmployeeTrack\ViewController\deploy\EmployeeTrack_ViewController_webapp.war
    [09:50:20 AM] Deploying Application...
    [09:50:24 AM] [Deployer:149191]Operation 'deploy' on application 'EmployeeTrack_ViewController_webapp' is initializing on 'ADFServer'
    [09:50:26 AM] [Deployer:149193]Operation 'deploy' on application 'EmployeeTrack_ViewController_webapp' has failed on 'ADFServer'
    [09:50:26 AM] [Deployer:149034]An exception occurred for task [Deployer:149026]deploy application EmployeeTrack_ViewController_webapp on ADFServer.: Failed to load webapp: 'EmployeeTrack_ViewController_webapp.war'.
    [09:50:26 AM] Weblogic Server Exception: weblogic.application.ModuleException: Failed to load webapp: 'EmployeeTrack_ViewController_webapp.war'
    [09:50:26 AM] Caused by: weblogic.management.DeploymentException: Error: Unresolved Webapp Library references for "ServletContext@29261813[app:EmployeeTrack_ViewController_webapp module:EmployeeTrack_ViewController_webapp.war path:/alonedemo spec-version:2.5]", defined in weblogic.xml [Extension-Name: adf.oracle.domain.webapp, exact-match: false], [Extension-Name: jstl, Specification-Version: 1.2, exact-match: false], [Extension-Name: jsf, Specification-Version: 2, exact-match: false]
    [09:50:26 AM] See server logs or server console for more details.
    [09:50:26 AM] weblogic.application.ModuleException: Failed to load webapp: 'EmployeeTrack_ViewController_webapp.war'
    [09:50:26 AM] Deployment cancelled.
    [09:50:26 AM] ---- Deployment incomplete ----.
    [09:50:26 AM] Remote deployment failed (oracle.jdevimpl.deploy.common.Jsr88RemoteDeployer)

    Thanks Timo.. You were right.. Those setting helped me fix the initial issue.. Now I have another issue and was wondering if you have seen this as well?
    [11:35:13 AM] Unable to determine the target platform from the Profile. Using default
    [11:35:13 AM] ---- Deployment started. ----
    [11:35:13 AM] Target platform is (Weblogic 10.3).
    [11:35:13 AM] Retrieving existing application information
    [11:35:13 AM] Running dependency analysis...
    [11:35:13 AM] Building...
    [11:35:20 AM] Deploying profile...
    [11:35:21 AM] Wrote Web Application Module to C:\JDeveloper\mywork\EmployeeTrack\ViewController\deploy\EmployeeTrack_ViewController_webapp.war
    [11:35:21 AM] Deploying Application...
    [11:35:23 AM] [Deployer:149191]Operation 'deploy' on application 'EmployeeTrack_ViewController_webapp' is initializing on 'ADFServer'
    [11:35:25 AM] [Deployer:149193]Operation 'deploy' on application 'EmployeeTrack_ViewController_webapp' has failed on 'ADFServer'
    [11:35:25 AM] [Deployer:149034]An exception occurred for task [Deployer:149026]deploy application EmployeeTrack_ViewController_webapp on ADFServer.: Failed to load webapp: 'EmployeeTrack_ViewController_webapp.war'.
    [11:35:25 AM] Weblogic Server Exception: weblogic.application.ModuleException: Failed to load webapp: 'EmployeeTrack_ViewController_webapp.war'
    [11:35:25 AM] Caused by: java.lang.ClassNotFoundException: oracle.adf.library.webapp.ResourceServlet
    [11:35:25 AM] See server logs or server console for more details.
    [11:35:25 AM] weblogic.application.ModuleException: Failed to load webapp: 'EmployeeTrack_ViewController_webapp.war'
    [11:35:25 AM] Deployment cancelled.
    [11:35:25 AM] ---- Deployment incomplete ----.
    [11:35:25 AM] Remote deployment failed (oracle.jdevimpl.deploy.common.Jsr88RemoteDeployer)

  • Error Deploying ADF application to ADF Server

    Hi Team,
    Iam unable to deploy the ADF application to server.
    The following is the log :
    *[08:25:11 PM] ---- Deployment started. ----*
    *[08:25:11 PM] Target platform is (Weblogic 10.3).*
    *[08:25:11 PM] Retrieving existing application information*
    *[08:25:11 PM] Running dependency analysis...*
    *[08:25:11 PM] Building...*
    *[08:25:15 PM] Deploying profile...*
    *[08:25:15 PM] Wrote Web Application Module to D:\sridhar\SampleADF\ADFWorld\ViewController\deploy\ADFWorld_ViewController_webapp1.war*
    *[08:25:15 PM] Deploying Application...*
    *[08:25:16 PM] [Deployer:149191]Operation 'deploy' on application 'ADFWorld_ViewController_webapp1' is initializing on 'ADFServer'*
    *[08:25:17 PM] [Deployer:149193]Operation 'deploy' on application 'ADFWorld_ViewController_webapp1' has failed on 'ADFServer'*
    *[08:25:17 PM] [Deployer:149034]An exception occurred for task [Deployer:149026]deploy application ADFWorld_ViewController_webapp1 on ADFServer.: Failed to load webapp: 'ADFWorld_ViewController_webapp1.war'.*
    *[08:25:17 PM] Weblogic Server Exception: weblogic.application.ModuleException: Failed to load webapp: 'ADFWorld_ViewController_webapp1.war'*
    *[08:25:17 PM] Caused by: weblogic.management.DeploymentException: Error: Unresolved Webapp Library references for "ServletContext@6261447[app:ADFWorld_ViewController_webapp1 module:ADFWorld_ViewController_webapp1.war path:/ADFWorld spec-version:2.5]", defined in weblogic.xml [Extension-Name: adf.oracle.domain.webapp, exact-match: false], [Extension-Name: jstl, Specification-Version: 1.2, exact-match: false], [Extension-Name: jsf, Specification-Version: 1.2, exact-match: false]*
    *[08:25:17 PM] See server logs or server console for more details.*
    *[08:25:17 PM] weblogic.application.ModuleException: Failed to load webapp: 'ADFWorld_ViewController_webapp1.war'*
    *[08:25:17 PM] #### Deployment incomplete. ####*
    *[08:25:17 PM] Remote deployment failed (oracle.jdevimpl.deploy.common.Jsr88RemoteDeployer)*
    Please suggest me what is the error.
    Regards
    Sridhar Yerram

    Hi Sridhar,
    Try to get more details from your Server related to Deployer:149026.
    This indicates failure of app due some issues on your services.
    paste the error stack to get the clue of issue.
    Regards,
    Kal

  • How to add external jars when deploying webapp via worksop for wls 9.2

    While attempting to deploy my web application using Workshop for WLS 9.2, WLS complains it is unavailable to resolve references to a 3rd party JAR(tomhawk.jar) which is being referenced by the JSPs. I have added the JAR via the J2EE module dependancy tab in workshop but that does not seem to be helping the deployment.
    If i build the web application outside workshop and include the tomhawk.jar in the WEB-INF/lib folder of the deployed WAR file, the app works fine.
    I have attempted to copy the tomhawk.jar into the <domain>/lib folder and restart the weblogic server. But this does not seem to help resolve the references.
    Any clues on how i could achieve iterative deployments via workshop for WLS 9.2 pickup references to external JARs being referenced by the JSPs.
    Thanks
    Ramdas

    Raj,
    Thanks for your suggestion. The link that you sent out was useful. I was actually able to get the webapp to resolve its references to the 3rd party classes by adding the tomhawk.jar as an external jar via the "build path" property for the web project. I tested this by running the app in the WLS instance hosted by workshop and looks like the JAR from the build path gets somehow referenced during run time too. Not sure how this works?
    Thanks
    Ramdas

  • Deploy external jar to WAS 6.40

    Hi all,
    I'm trying to deploy an external jar file (classes12.jar - an oracle jar). I've followed the instructions on 'defining libraries' found on sdn -http://help.sap.com/saphelp_nw04/helpdata/en/ee/6ede3f7bc1eb06e10000000a1550b0/frameset.htm
    But I cannot access the deployed project/jar, although I do see its definition using the visual administrator.
    Any help would be appreciated,
      Aviad

    Hi Aviad,
    You have deployed these Library files using Library project.
    And i guess, you are accessing these library files from your webdynpro application.
    If yes, then goto properties and there choose webdynpro references.
    Here, choose library references tab, and make entry of your library project like this:
    sap.com/<library project name>
    If your are using these Jar files in J2ee application then make entry in your application-j2ee-enjine.xml file under J2ee Application project.
    Regards,
    Bhavik

Maybe you are looking for