Pots in the path of a custom component class

I use the dom4j - 1.6.1.jar in a custom component library, but my JBoss server has dom4j.jar in jboss\server\all\lib.  My custom component is throwing the following error message:

DefFoundError message: org/dom4j/xpath/DefaultXPath during the call to service XmlToCsvService and convert operation and no way fault proved be configured.

This makes me suspect that the Dom4J version in the server lib directory is takes precedence over that of my component.  Any suggestions for how to manage this?  Thank you.

Jared Langdon

Even the suggestion of Marcel does not always work, but it is certainly worth a quick try.  I remember nothing but try and find one of LiveCycle EAR files has a version of dom4j buried in it (I don't remember which version of LC it was).

Of course change an Adobe provided EAR is not recommended and can break your support agreement. There is an alternative, however; If you change the JBoss lib folder does not work.  To avoid conflict, you can use Victor to rename the package within the DOM4J class and deploy the jar in your component to avoid the conflict.

http://code.Google.com/p/jarjar/

You would then use the classes renamed in your component:

Import org.mypackage.dom4j.Document;

Import org.mypackage.dom4j.DocumentException;

Import org.mypackage.dom4j.DocumentHelper;

Import org.mypackage.dom4j.Element;

Import org.mypackage.dom4j.Node;

Import org.mypackage.dom4j.io.DOMReader;

Import org.mypackage.dom4j.io.DOMWriter;

Tags: Adobe LiveCycle

Similar Questions

  • Question about the use of the custom component class define what declarative component

    12.1.3 jdev

    I'm trying to define a declarative component with my custom component class.

    This is the code for my component jsf declarative. I'm trying to use the label on selectManyListbox attribute to pass queryClass for my component class name. It does not work. I also try to use f: attribute to my component class. It does not work too. Question 1: how to move my declarative component attribute to my class of component?

    < af:panelLabelAndMessage label = "#{attrs.displayLabel}" id = "dc_plam1" > "

    < af:switcher id = "dc_s1" defaultFacet = "a lot" facetName = "#{attrs.single eq 'true'?' unique ': 'a lot'}" >

    < f: facet name = "a lot" >

    < af:selectManyListbox id = "namingp1" simple = "true" label = "#{attrs.queryClass}" "

    ' autoSubmit Binding = "#{dropListComp.selectManyListBox}" = "true" valueChangeListener = "#{dropListComp.selectManyValueChange}" >

    < f: attribute name = "queryClass" value = "#{attrs.queryClass}" / >

    < / af:selectManyListbox >

    < / f: facet >

    < f: facet "single" = name >

    < af:selectOneListbox id = "sl_2" simple = "true" label = "#{attrs.queryClass} '"

    autoSubmit Binding = "#{dropListComp.selectOneListBox}" = "true" valueChangeListener = "#{dropListComp.selectOneValueChange}" > "

    < / af:selectOneListbox >

    < / f: facet >

    < / af:switcher >

    < / af:panelLabelAndMessage >

    That's how I try to retrieve the label or f: attribute queryClass in my component class. I get null for both directions.

    {} public void setSelectManyListBox (RichSelectManyListbox selectManyListBox)
    this.selectManyListBox = selectManyListBox;
    If (this.selectManyListBox.getChildCount () == 0) {}
    queryClass = (String) this.selectManyListBox.getLabel ();
    System.out.println (".. queryClass of the label..." + queryClass);
    If (queryClass is nothing)
    {
    queryClass = (String) this.selectManyListBox.getAttributes () .get ("queryClass");
    System.out.println (".. queryClass of attr..." + queryClass);
    }
    If (queryClass is nothing)
    queryClass = "glog.server.query.powerdata.InvolvedPartyQualQuery";
    this.selectManyListBox.getChildren () .addAll (buildDropListSelectItems (queryClass));
    }
    }

    Thank you.

    Hello

    If your declarative component has a defined class of request attribute then #{attrs.name_of_attribute} called from Java should be able to solve

    Frank

  • Changing the State of the application from a custom component

    Hello, I have several custom components that are included in the original application.

    When I try to change the State of a custom component, I get an error saying "undefined state: name of the State." How can I change the State of the application from a custom component? All States are defined in the original application.

    @linrsvp,.

    If you are using Flex3 try Application.application.currentState = "somestate;

    If you use Flex4 try FlexGlobas.topLevelApplication.currentState = "somestate;

    Don't forget to import the namespaces corresponding to the above.

    Thank you

    Jean Claude

  • Helps the creation of a custom component.

    Hello. I created a very simple custom component called myComp. It's a simple canvas 100 pixels x 100 Basic with a component of Image control.
    < mx:Canvas >
    < mx:Image id = "image1" >
    < / mx:Canvas >

    After the instantiation of the component in Main.mxml for example. var pic1:myComp = new myComp(); I'm having a problem setting the source property of the Image element.

    "image1" is the id of the mx:Image in the custom compoenent, then I tried pic1.image1.source = ' assets/ball.jpg' but I get a runtime error ' Error #1009: cannot access a property or method of a null object reference.

    Don't really know what I'm doing wrong.

    Any help please!


    In your custom component, try adding a public var bindable that contains the path to your image. In addition, the value the image.source this var.
    In your main application, set the var within the tags in the custom component. Since this is a public var, it will appear in the indication of the code. You can also now change the var of the image of the main application whenever you like using ActionScript code.

  • How to change the State of a custom component

    HI (sorry for my English)

    I am new to flex and actionscript...

    I hava a < Application > with 3 States.

    I also create and a custom component that I use in the 'Phase A '.

    Inside the element, I have a < LinkButton > click = "" currentState = "" but do not work. "

    I know that the easy solution is to get out the < LinkButton > component and put it on 'Stage-A' in the Application <>

    Please any other solution?

    Thank you

    You must add an import or you can use it like this

    mx.core.Application.application.currentState = "

    Sincerely,

    Michael

    Sent from my iPhone

    El 20/06/2009, a las 16:27, Ant - will [email protected]> escribio:

    >

    It gives me an error

    «1120: access of undefined property Application.»

    >

    I think I need to change the Application.application. But what?

    >

    Thank you

    >

  • What pot contains the oracle.iam.oil.client.OILConnectionInf class


    Hi all

    which jar file contains the oracle.iam.oil.client.OILConnectionInf class?

    $OIM_HOME/server/apps/oim.ear/APP-INF/lib/oil-client.jar

  • How to align my text on the LEFT in this custom component?

    package {
         import mx.controls.LinkButton;
         import flash.text.TextLineMetrics;
     
         public class multiLineLinkButton extends LinkButton {
              override protected function createChildren():void {
                   super.createChildren();
                   if (textField){
                        textField.wordWrap = true;
                        textField.multiline = true;
                        
                   }
              }
     
              override public function measureText(s:String):TextLineMetrics {
                   textField.text = s;
                   var lineMetrics:TextLineMetrics = textField.getLineMetrics(0);
                   lineMetrics.width = 700;
                   lineMetrics.height = textField.textHeight;
                   
                   
                   return lineMetrics;
              }
         }
    }
    

    I found this component that encapsulates LinkButton.

    When I use this component it makes centered

    I tried autosize up there, but it doesn't work here.

    Try this-

    Just add these lines.

    public function multiLineLinkButton (): void {/ / constructor}
    this.setStyle ("textAlign", "left");
    }

  • Custom component classes

    Hi all

    I learned flex a few months now and absolutely love it!
    But there is one thing that I can't get my head round. I use mostly for a Flash user, which is probably why I'm confused...
    I want to be able to make custom components that use a custom class.
    For example, I have the canvas custom components that are 'pages' that I'm loading dynamically if necessary. When they do, I want that they fade by using the fade effect. So far, I wrote the code to do this on each component, which is quite annoying because I have a lot of pages.
    I would like a custom class with the code in it for the bland, whose each component uses "page", so each will fade when loading.
    I have this could very easily using clips in flash, but flex looks different. Maybe I'm confused in what concerns paintings and MovieClips.

    Please can someone help me? :)

    You can do this one of two ways

    If your base class "custom components" is a canvas you can tell



    or you can just create a custom catalog as _funkyboy DESCRIBED, and then create instances of it as you normally would for other tags mx. Flex builder should be smart enough to put in all of the import statements if you don't understand how

    Hope this has helped

    -A

  • How to get the path of the directory component in custom filter

    How to get the path of the directory component in a custom filter?
    final String absoluteComponentPath = CompInstallUtils.computeAbsoluteComponentLocation( "yourComponentName" );
    
  • Need to include classes in the custom component

    Dear Experts,

    I have created custom components, for custom components, I used some different classes and jars and libs and now I want to include these pots, the lib and classes in the generation of custom component file.

    Please advise me how can I add these files in the component so that when I create the zip file included in the zip file.

    Please send me a link where I can get this information.

    Any help will be really appreciated.

    Kind regards

    Elena

    See the tutorial Services Intradoc

  • How to import the custom component exported from flash cs3

    Hello

    I exported a custom component that I designed in flash cs3 as a SWC file. How to import it in my project flex and how to use it?

    Sorry if this is a stupid question. I'm new to flex. Thank you.

    You must add the swc file in your path of the project. Please check the following URL for more information about how to import Flash components in Flex project.
    http://www.Adobe.com/devnet/flash/articles/flex_component_workflow.html

    I hope this helps.

  • Sets the path to the custom jar file

    Hello

    I have a jar (Blowfish.jar) custom file I put the path in classpath.bat in the IOM Java client. IOM is able to read the jar file and call the methods while creating users. All this are happening successfully in the windows environment.

    The same jar file I copied in the linux environment and set the path to the IOM java client (that we can not install on a linux machine). But when I create the user his throw
    InvocationTargetException.

    Where can I put the path to the jar file in linux environment to read this jar file.

    This is not at all related to ScheduleTask/JavaTask/ThirdParty records as it is a custom jar file.


    Thank you
    KK

    Why can't put this pot in ThirdParty folder?

    ldapbp is the external jar file that we put in third. I think it should work

  • Getting the list of Custom Component ListView

    Hello

    I'm trying to figure out how to get the 'checked' property of a custom component of QML.

    Basically, it's the same as the first example on https://developer.blackberry.com/cascades/documentation/ui/custom_components/index.html

    This is a list, with a listItemComponents, whose type: "item" contains a check box and the label.

    I have an ActionItem whose job is to take all elements that are enabled and do something.

    The ActionItem triggers a C++ code that should get this list.

    Problem is, I can't figure out how to get the selected items. I tried the selected() function but it returns empty.

    I have to turn this into a multiple selection?

    I got so far is the back of GroupModel, after selection, but this does not include anything other than what I fed in the first place. Which makes sense.

    There are a lot of similarities between this issue and the other. Should help to my code and comments in this post, I think: http://supportforums.blackberry.com/t5/Cascades-Development/LstItemComponent-doesn-t-track-the-model...

  • ADF: How to get the path of the file when you use component InputFile

    Hi all

    I use jdeveloper 11.1.1.5.0 version.

    in my case, I created program Mail Client mail where I used the ADF InputFile component for attach file mail.

    but problem is this return path only component InputFile from the file (only the filename get)

    and in my mailer class DataSource uses the full path name of file access.

    UploadedFile uploadfile=(UploadedFile) actionEvent.getNewValue();
         String fname= uploadfile.getFilename();//this line only get file name.
    

    so, how can I get the full path using adf InputFile component or any other way to respond to my request.

    Thank you

    Manish

    Try this (I did not, so I can't promise it will work):

    MimeBodyPart messageBodyPart = new MimeBodyPart(uploadFile.getInputStream());
    messageBodyPart .setFileName(uploadFile.getFilename());
    messageBodyPart.setContent(multipart);
    

    It does use the inputStream from the downloaded file as the content of the file attached. You shouldn't need a full path, since you're not going to use a file object to provide the content.  And it shouldn't be necessary to define the DataHandler.

    But if that doesn't work, I go back to my first answer.  Use uploadFile.getInputStream () to get the inputStream from the downloaded file, create an outputStream to write the file to the file system of the application server.  Then you have a file with a known path that you can subscribe to the DataHandler.  You can delete the file when you're done with him.

  • GET_SEARCH_RESULTS the inside of the custom component

    Greetings,

    I work with a custom component and have led to a question in the process. Basically, inside my component I have references of hyperlink to items in my content server (ex: [! - $wcmUrl ('resource', 'SAMPLE_CONTENT_ID')-].) Now, is in view of the content of an element ID, possible to find this element web site? I scoured all the possible metadata fields and not seen one, but maybe I'm a lack?

    Also, I have some experience with CRMI services available. However, when I try and run these services thanks to a component, my 'validateCheckInData' filter is not able to be executed. I guess that's due to a conflict between types DataBinder. I am able to easily enter the location of a given element web content on my local machine ID by using the code below:

    IdcClientManager Manager = new IdcClientManager();

    IdcClient idcClient = (idc_host) manager.createClient;

    UserContext IdcContext = new IdcContext (idc_user);

    DataBinder binding = idcClient.createBinder ();

    binder.putLocal ("IdcService", "GET_SEARCH_RESULTS");

    binder.putLocal ("QueryText", "dDocName < match >" "+ CONTENTID +"'");

    RequestResponse ServiceResponse = idcClient.sendRequest (userContext, binder);

    DataBinder serverBinder = requestResponse.getResponseAsBinder ();

    DataResultSet dataresultset = serverBinder.getResultSet ("SearchResults");

    DataObject dataobject = dataresultset.getRows () .get (0);

    String url = dataobject.get ('URL');

    If the web site field is not metadata, is it possible for me to run the service GET_SEARCH_RESULTS of my component? The lines above in bold indicate the issues I have with my code by copying and pasting from my local machine to my component code that is executed on the server.

    Thank you!

    > Would you mind critical code in my original post?

    Your code is absolutely horrible, just a joke, I would not dare to criticize the work of others.

    > A million Red flags arose when I had to start my DataBinder object Cast to point to the RIDC jar

    In general, I would not advise to use RIDC leave within a component. CRMI is a client-side technology, while the components (or filters) reside on the server. You use better intradoc API (see http://jonathanhult.com/blog/2012/12/where-are-the-intradoc-java-classes-located/)

Maybe you are looking for