How to successfully deploy a library shared the ADF?

I have created a library that depends on the length of JSP, JSF 2.0, ADF Model DURATION etc., JSTL 1.2. When I try to use a class of this library in an application, (I added a ref library to weblogic application. The app XML) I get the following error:

>java.lang.NoClassDefFoundError: org/apache/myfaces/trinidad/model/RowKeySet

How am I supposed to properly deploy my library / specify dependencies, so that weblogic server might find them? MANIFESTO. MF in the container of the library, made by JDeveloper, contains only the manifest-Version headers and hand-Class.

Under subsection 38.2 in the Guide Oracle® Fusion Middleware Fusion developer Oracle Application Development Framework 11 g Release 2

> If you are packaging a component with dependent jars, such as third party jars, you have two options:

> 1. If the environment of your exercises control over the placement of the jars, you can place the ADF library JAR and its dependent jars in a JDeveloper Extension Library. The advantage of using a > JDeveloper Extension Library, it is that they do not clutter your project with specific references to the dependent jars.

> 2. If using Extension Library JDeveloper is not possible, you can place the dependent jars in the same location as the ADF library JAR and include an entry manifest classpath for each person dependent > JAR.

I hope that I don't need to include all the pots to jsf/adf/bc4j in the container in my library, I do?

Well, I finally managed to make it work. You need a war with the shared library jar under WEB-INF/lib, and then reference it in the application weblogic.xml.

Tags: Java

Similar Questions

  • Debugging code inside the library of the ADF

    Hello

    I use JDeveloper 11.1.2.1

    I created the library of the ADF with general code for my project.
    Is it possible to tracking within this library code ADF from a project that use this library for debugging this project?

    Anatolii

    Hello

    A library contains the class files, you must have the source of debug and trace.

    For more information about debugging:

    http://download.Oracle.com/docs/CD/E12839_01/Web.1111/b31974/web_testdebug.htm

    Hope this will help.

    -Prasad

  • Taskflow-ADF are not displayed in the library of the ADF

    Hi all

    I use Jdev 11.1.6

    I have deployed my project (contains model and View Controller) such as ADF library Jar. then I created the new connection file added this pot. It does not project taskflows show. Even as a sample project, I created and deployed as ADF library jar. added this pot on connection files. It shows the workflow. why it shows no taskflows for the first project. You can help me pls.

    Thank you

    Hello

    Check if you have followed these steps:

    • In the ADF wondering where you have the task of flow select View Controller project and go to the deployment project properties tab
    • Then create an ADF library JAR file
    • Generate the jar
    • Go to your first application, select the view controller project and go to the libraries tab
    • Select the pot that you have previously built
    • Refresh your project, you can even close your JDev.
    • From the components tab, you will find your library
  • How can I scan multiple pages in the ADF to a pdf file?

    I have wireless scan documents of several double-sided pages, 37 pages generally, using an ADF (automatic document feeder) of my HP Officejet Pro 8600 N911g to my MacBook Pro. The scanner works well except it tries to save files as files separated from 37 and neither she nor the MacBook is running out of memory as it transforms into a huge file, 300 MB or more. How can I get it just from the scanner in a single file? I have the quality to 300 dpi setting.

    Webbo51

    Just thought that I had fill the gap Waterboy, HP support were able to sort all this by reinstalling the software.

    Thanks again for your efforts.

    Steve

  • How to display cusror busy waiting in the ADF during processing

    In my application, I used an af:query element and the result is displayed in an af:table component.
    When executing the jspx in the browser page when I hit the search button there is no way user could know whether or not the research is the treatment
    After a while, his shows as "Recovery" in the item table and finally the result is displayed.

    Is it possible that I can show the busy cursor (hourglass) immediately after the strike of the search key so that the user knows that he clicked on
    successfully button and wait for the result.

    If there is no change in the cursor after hitting the user may search button thinking, there was no result found.

    Note: until now the only way to know if the treatment or not is that hitting the reset button.if does not work, it means that research is ongoing.

    Otherwise if is not possible to show the busy cursor is anyway to display the text "searching...". "somewhere in the page and remove the text from the result comes.

    I use Jdev 11.1.1.1.0.
    I'd appreciate any help.

    Thank you
    Neil

    have you tried the af: statusIndicator to see if it meets your needs? If so, no code or Javascript not needed, just drop them on your page and you're done.

    John

  • How can I manage hierarchical multi in the ADF

    Hello

    I have three View object based on the table.

    EmployeeHdr - EmployeeVo

    LeaveApplyHdr - LeaveHdrVo

    LeaveApplyDet - LeaveDetVo


    now how to handle type of master detail hierarchy between these table.


    ) a foreign key relationship b/w EmployeeHdr and from LeaveApplyHdr to EmployeeHdr.empcd = LeaveApplyHdr.empcd

    (b) foreign key relationship b/w LeaveApplyHd and LeaveApplyDet based on LeaveApplyHdr.apply_no = LeaveApplyDet.apply_no


    I already create association and viewlink to these relationships.


    now can I handle this in the jsf page unique.

    Check http://tompeez.wordpress.com/2012/04/18/jdeveloper-adf-multiple-cascading-tables/ which shows how to do this.

    Timo

  • How to implement selection casading lists in the ADF?

    I have three selection list, when the select list 1 is changed to appropriate value must registered in select list 2 and similarly when the 2 selection list has changed, 3 select list must be filled. I am a newbie to ADF, all ideas are appreciated. In addition, much appreciate if someone can point some sample application that demonstrates some of these features.

    Kind regards
    Surya

    This will help http://tinyurl.com/26b735s

  • ADF Mobile: Deploy my project to the APK file

    Hello...

    How can I deploy my project to the APK file.

    Thank you very much

    Right-click your application > Deploy > new profile of deployment
    Select ADF Mobile for Android and give it a name, press 'OK '.
    Right-click your application > Deploy > here you will see the profile of your freshly prepared deployment, click on it choose to "Deploy a package" press next and finish wait JDev build.
    Now, you will find your .apk file "deploy" of your application.

  • What is the difference between the ADF and ADF Essentials?

    What is the difference between the ADF and ADF Essentials?

    and how to ensure that the essentials of the ADF is enough for the project rather then ADF.

    Thanks in advance.

    Hello

    The main problem is, you are not allowed to deploy critical applications of the ADF in the clustered environment.

    Kuba

  • Objects of the class defined by the user for an element of the ADF (button, inputfield)

    How to set a class object defined by the user for objects of the ADF?
    My requirement is that when I make a change to the object of the class, it should get reflectected to all instances on my page.
    For example:-I'll have the class object clsInputField, and all my fields entry in my pages are based on this object. So when I change clsInputField it should get reflected to all my controls based on this class object.
    Help, please!

    It's the classic use of a library of component declarative ADF.
    Put your postal code entry filed in an adf library, as well as any other code you will need to manage the entry, pack it as a library of the adf and reuse the item (and its formatting, validation) on each page as you like.
    If you change the component changes are global to all instances of the component.

    Take a look at this demo

    Timo

  • Number of the sequence in the form of the ADF.

    Hi all

    I have a table with ID as primary key and have a sequence created for the primary key and have a trigger to generate the sequence number when the record is inserted in the table.
    How can I map this sequence in the ADF so when inserting record in the form I can skip the ID column.

    Kind regards
    Suresh kumar

    Change the attribute of the entity and assign it the value

    (new oracle.jbo.server.SequenceImpl ("YOUR_SEQ", object.getDBTransaction ()) .getSequenceNumber)

  • How to deploy taskflow as shared library and register as a producer of portlet

    Dear all,


    I have a taskflow using some popup dialog boxes to get feedback from users.


    I noticed that when I have this deployment as a portlet and then I created a page and then unmold the portlet
    in this document, I note that the popup is only inside the iFrame portlet. Not sure but I think it's normal.

    Research on the forum, they say it is better to deploy as a library shared on the webcenter spaces so that
    the popup not be limited on the iFrame portlet but rather to be displayed in the window of webcenter together.

    But I don't know how can I deploy this taskflow as a shared library and then save it as a portlet on my groupspace producer?
    Googled around, but can't find a good resource on how to do it.

    Sorry for my newbie question...

    Thank you.

    Neliel says:

    Bijesh Krishnadas wrote:
    To be clear, if you plan to use the ADF taskflows directly in spaces, you do not save a producer of portlet. You deploy the taskflow as a shared library and add the taskflow to the catalog of resources.

    Hi Laura, thanks for the link.
    Just one question though, if I deploy my example project as a shared library and then save it as a catalogue of resources. Can I automatically deposited as a portlet in my pages Webcenter spaces?

    Thank you

    Yes, you add the taskflow via the mode of the composer.

  • Attempt to package a jar of shared library in the ear file. error wlappc

    I try to deploy files jar like shared libraries and decided to follow the recommendation to wrap the pots inside the separate ear files. I include all the modules in the ear, because each of them is designed to be deployed as a shared library. Jar files are placed in the APP-INF/lib directory. The manifest file in the directory META-INF of the ear contains name information and the version of the extension that I would use for these pots. When I run wlappc in my build the wlappc generates an error. I ran weblogic. DDConverter on the ear and the same error was generated. See below. Apparently, the error is caused by the fact that I do not declare all modules in the application.xml file. I found several examples of how package libraries with the help of a war. Even looking at the files in the C:\bea10.3.3\wlserver_10.3\common\deployable-libraries . I found no examples using the Archives of the ear.

    My question is how can I do this. I'd rather do not creation of dummy modules. The documentation seems unclear to me in this area. I would really appreciate the help on this ASAP.

    I use Weblogic Server 10.3.3


    DDConverter error message

    + < 30 August 2010 11:12:00 CEST > < error > < J2EE > < BEA-160197 > < cannot load the descriptor weblogic.application.ddconvert.ConvertCtx$VJarResourceLoader@17590db finder: weblogic.utils.classloaders.CodeGenClassFinder@17943a4 annotation: null module /META-INF/application.xml. The error is weblogic.descriptor.DescriptorException: VALIDATION of the PROBLEMS have BEEN FOUND.
    problem: cvc-complex - type. 2.4 c: expected for item 'module @http://java.sun.com/xml/ns/javaee' before the end of the item application @http://java.sun.com/xml/ns/javaee content: < null >
    + weblogic.descriptor.internal.MarshallerFactory$ 1.evaluateResults(MarshallerFactory.java:245) +.
    + weblogic.descriptor.internal.MarshallerFactory$ 1.evaluateResults(MarshallerFactory.java:231) +.
    + weblogic.descriptor.internal.MarshallerFactory$ 1.createDescriptor(MarshallerFactory.java:155) +.
    + weblogic.descriptor.BasicDescriptorManager.createDescriptor(BasicDescriptorManager.java:323) +.
    + weblogic.application.descriptor.AbstractDescriptorLoader2.getDescriptorBeanFromReader(AbstractDescriptorLoader2.java:788) +.
    + weblogic.application.descriptor.AbstractDescriptorLoader2.createDescriptorBean(AbstractDescriptorLoader2.java:409) +.
    + weblogic.application.descriptor.AbstractDescriptorLoader2.loadDescriptorBeanWithoutPlan(AbstractDescriptorLoader2.java:759) +.
    + weblogic.application.descriptor.AbstractDescriptorLoader2.loadDescriptorBean(AbstractDescriptorLoader2.java:768) +.
    + weblogic.application.ApplicationDescriptor.getApplicationDescriptor(ApplicationDescriptor.java:301) +.
    + weblogic.application.ddconvert.EarConverter.convertDDs(EarConverter.java:59) +.
    + weblogic.application.ddconvert.DDConverter.runBody(DDConverter.java:155) +.
    + weblogic.utils.compiler.Tool.run(Tool.java:158) +.
    + weblogic.utils.compiler.Tool.run(Tool.java:115) +.
    + weblogic.application.ddconvert.DDConverter.main(DDConverter.java:175) +.
    + weblogic. DDConverter.main (DDConverte +)

    My Application.xml. The problem persists once I deleted the < library-directory > element.

    + <? XML version = "1.0" encoding = "UTF - 8"? > +.
    + < application xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance" +.
    xmlns = "http://java.sun.com/xml/ns/javaee" xmlns:application = "http://java.sun.com/xml/ns/javaee/application_5.xsd".
    xsi: schemaLocation = "http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/application_5.xsd".
    ID = 'Application_ID' version '5' = >
    + < display name > coreEar < / name >.
    + coreEar < description > < / description >.
    + APP-INF/lib < library-directory > < / library-directory > +.
    + < / application > +.

    My weblogic application. XML

    + <? XML version = "1.0" encoding = "UTF-8"? > +.
    + < wls:weblogic - application xmlns:wls = "http://xmlns.oracle.com/weblogic/weblogic-application" xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance" xsi: schemaLocation = "http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/javaee_5.xsd http://xmlns.oracle.com/weblogic/weblogic-application http://xmlns.oracle.com/weblogic/weblogic-application/1.1/weblogic-application.xsd" > +.
    + < wls:application - param > +.
    + < wls:param - name > webapp.encoding.default < / wls:param - name > +.
    + < wls:param - value > UTF-8 < / wls:param - value > +.
    + < / wls:application - param > +.
    + < wls:fast - swap > +.
    + < wls: activated > true < / wls: activated > +.
    + < / wls:fast - swap > +.
    + < / wls:weblogic - application > +.

    My EAR/META-INF / "MANIFEST. MF.

    Manifest-Version: 1.0
    Ant-Version: Apache Ant 1.8.1
    Created by: 1.6.0_21 - b07 (Sun Microsystems Inc.)
    Built by: weblogic
    Specification-title: coreEar
    Specification-vendor: Picot Entertainment Systems, Inc.
    Specification-Version: 1.0
    Implementation-title: coreEar
    Implementation-vendor: Picot Entertainment Systems, Inc.
    Implementation-Version: 1.0
    Extension name: com.picot.sempre
    WebLogic-Application-Version: v0.1b

    My APP-INF/lib/corelib.jar/META-INF/ manifesto

    Manifest-Version: 1.0
    Ant-Version: Apache Ant 1.8.1
    Created by: 1.6.0_21 - b07 (Sun Microsystems Inc.)
    Built by: weblogic


    My EAR archives broken

    coreEar.ear
    + > APP - INF +.
    -> classes
    -> lib
    -= coreLib.jar
    -> META-INF
    -= MANIFESTO. MF
    -> com /.

    + > META-INF +.
    -= MANIFESTO. MF
    -= application.xml
    -= weblogic.application.xml

    You must create at least a model Module...
    Because the Standard EAR file must contain at least one valid... WAR... EJB jar... .or an ordinary Java Module.

    Please rerfer to: http://weblogic-wonders.com/weblogic/2010/06/22/how-to-build-ear-application-for-weblogic/
    Your Exception clearly said... There is no present valid Module in your "application.xml" file which is the root cause of this issue.

    NOTE: Still, if you do not want to create a Module inside your Application of EAR... then you can go ahead with the optional Packages. Optional packages also provides the same functionality as shared libraries... In this fit you can deploy a Plain Jar file on the server as an optional package, and other Applications can make reference to it. Like this: http://weblogic-wonders.com/weblogic/2009/12/06/optional-packages/

    To see an example of it, you can do refers to: http://forums.oracle.com/forums/thread.jspa?messageID=4439423 during the last answer of mine I have Pasted a link to Test case that I've developed for demonstration... http://www.4shared.com/file/aaudoKO-/Hibernate_Shared_Lib_Demo.html (around of-2, 1 MB size)

    The J2EE specification says: you must have a valid Module (war, ejbjar or simple Module Java) defined in the application ".» XML"of your Enterprise Application.
    .
    .
    Thank you
    Jay SenSharma
    http://WebLogic-wonders.com/WebLogic/ (WebLogic wonders are here)

  • How to add a dependency to the library for the java service modules?

    Hello

    I try to add Google gson jar as a dependency of the sample of chassis (/ chassisRackVSphere-service) and I'm facing some problems with the installation of osgi.

    ////////////////////////////////////////////////////////////////////////////////////////

    Report of resolver:

    A Package Import could not be resolved. Resolver error data < Import-Package: com.google.gson; version = "0.0.0" >. Caused by the constraint missing bundled < com.vmware.samples.chassisrackvsphereservice_1.0.0 >

    constraint: Import-Package: com.google.gson; version = "0.0.0" >

    at org.eclipse.virgo.kernel.install.pipeline.stage.resolve.internal.QuasiResolveStage.process(QuasiResolveStage.java:46)

    at org.eclipse.virgo.kernel.install.pipeline.internal.StandardPipeline.doProcessGraph(StandardPipeline.java:62)

    at org.eclipse.virgo.kernel.install.pipeline.internal.CompensatingPipeline.doProcessGraph(CompensatingPipeline.java:73)

    at org.eclipse.virgo.kernel.install.pipeline.stage.AbstractPipelineStage.process(AbstractPipelineStage.java:41)

    at org.eclipse.virgo.kernel.install.pipeline.internal.StandardPipeline.doProcessGraph(StandardPipeline.java:62)

    at org.eclipse.virgo.kernel.install.pipeline.stage.AbstractPipelineStage.process(AbstractPipelineStage.java:41)

    at org.eclipse.virgo.kernel.deployer.core.internal.PipelinedApplicationDeployer.driveInstallPipeline(PipelinedApplicationDeployer.java:359)

    ////////////////////////////////////////////////////////////////////////////////////////

    Here are the things I did based on the addition of the gson - 2.2.4.jar to the list of libraries (which I'll use my service module).

    1 added gson - 2.2.4.jar to chassisRackVSphere-service\lib

    2. added gson - 2.2.4.jar to the list of libraries referenced in STS.

    3. fixed the ANT build file to add this jar to the classpath

    < target name = "java-compilation" depends = "clean" description = "do not select objective in-house." >

    < javac includeantruntime = 'false' destdir = fork "${CLASSES}" = "true" debug = "on" >

    < path src = "${basedir} / src/main/java" / >

    <!-< path src = "${basedir} / src/test/java" / > for future test-> files

    < classpath >

    <! - remove this if you are not using the SDK with java - >

    < pathelement path="${VSPHERE_SDK_HOME}/libs/vsphere-client-lib.jar"/ >

    < pathelement path="lib/commons-logging-1.1.1.jar"/ >

    < pathelement path="lib/gson-2.2.4.jar"/ >

    < / classpath >

    < / javac >

    < / target >

    4. fixed the manifest file to include the package gson

    /////////////////////////////////////////////////////////////////////////////////////////

    Import-Package: org.apache.commons.logging,.

    com.google.Gson,

    com VMware.vise.Data,

    com VMware.vise.Data.Query,

    com VMware.vise.Data.Uri,

    com VMware.vise.vim.Data

    /////////////////////////////////////////////////////////////////////////////////////////

    I don't know what I'm missing. How can I add third-party libraries for the service module (in this case chassisRackVSphere-service)? Any help is appreciated.

    Thank you

    Shankar

    You forgot a step described in the FAQ ""How to use 3rd party java libraries?', that is to make your available on the server gson library. "  An excerpt from the FAQ:

    Formatted as OSGI bundles libraries should be in a known location on the server:

    • In development mode you can copy in Server/repository/usr, one of the default directories for the loading of libraries (you must restart the server).
    • If the server is already running you can copy also in Server/Pick-up because the beams will be deployed hot (i.e. without having to restart, but this requires you to deploy your plugin after the library, see Note 2 below).
    • Finally, you can keep in their current location and add a path in server/configuration/com.springsource.repository.properties.
    • In production mode , that your plugin is installed as a plugin package, it is neither practical nor recommended to add libraries to server/Pick-up or Server/repository/usr on your production server. Instead you must include them in the directory plugins of your package and your .war and .jar packages. You will also need to list Bundle-SymbolicName of plugin libraries - package.xml.
  • How to access resources in a shared library for a space webcenter Portal

    Dear all,

    I packed all my images in a shared library, ADF and I deployed as a shared library in WLS.

    Now, I create a custom in my Webcenter spaces appearance. How is it possible to obtain or access these images in my application of webcenter spaces?

    This is so that I could use it as a background image.

    Advice

    Thank you

    It works like PortalWebAssets project in a WebCenter Portal Application.

    If you have a Web content-> images folder, you can access with /images/myimage.png

    Don't forget that your shared library JAR needs to be referenced by weblogic.xml

    Kind regards.

Maybe you are looking for

  • Is it possible to remove providers ranked game 5?

    Hi all I have a new HP desktop computer that included a HP/Wild Tangent game with trial games console, but I uninstalled it through uninstall programs. However, when I click on the games on the start menu, the following screen shows 5 suppliers of ga

  • System protection: unable to create a restore point

    Hello I would like to create a restore point before installing new programs. In Control Panel-> system of-> System Protection, under Protection settings - all I see is 'Search'... "under available drives. Because it hangs in the search, I can't go an

  • HOW TO MOVE, COPY, AND DOWNLOAD FILES

    How to move a folder?  Unlike XPwhere you can manage files and folders to any location using the navigation bar on the side I can't find how to do this.Therefore, I can't copy something on my desk which is located in the document or image folder.I ca

  • I can't pin folders to the taskbar,

    When I drag a folder in Windows Explorer, it disappears.  He was pinned to the Windows Explorer in the taskbar when I right-click.  Then one day all my added items disappeared and now I can't pin anything here. Is this a known bug?  Is a fix?

  • Using new plugin error: error starting module. Of verification errors.

    I use eclipse Galileo and the latest version of the plugin. I created a project, and I was able to debug it about 50 or so times. After that, I can't run the project on the Simulator again. He complains saying this: Starting MiApp Module 'MiApp' has