External Jars referencing error

I followed all the following steps which were discussed in forum to referencemy 9 external jars, my DC build was succeded in NWDI and has been deployed onto portal server. I got error message "DeploymentException:Clusterwide Exception:Failed to prepare application.....check the reference....." while running that ear file from portal.
Steps i followed to reference external library:
1) Created externallibrary DC, plces jars and made them as public (<b>here i made one public part for all jars, do i need to create different public part for different jars)...</b>
2) Created library DC and added the above DC as used dc for build time and runtime reference,then deployed onto server i can see the service in visual admin with alljars in it.
3) Created webdynpro DC and added above library DC as used DC, I added library reference tooo, build was succeded and above getting runtime error. <b>Iam giving the exact reference which is copied from visual admin.</b>
I removed the library reference but iam still getting the same error.we running on NW'04s SP8,Any help is appreciated.
Thanks,
Damodhar.

Hi Damodhar,
Please check the posting
https://forums.sdn.sap.com/click.jspa?searchID=216037&messageID=2563001.
from the posting::
"you need public part with type "compilation". Also you need to open project properties, go to "Web Dynpro References -> Web Dynpro Application" and add run-time reference to DC that exposes component"
Regards, Anilkumar

Similar Messages

  • External jar introspection error in ALBPM 5.7

    Hi,
    We are using ALBPM 5.7.Here the scenario,
    We have java application for front end and ALBPM for backend(Business Process) and having two way communication.
    The java application converted into jar and intropected in ALBPM and using the java method inside the ALBPM.
    While introspect jar i am getting the error like
    **"class not found" ,[Error] Introspection error: 'Class 'com.comcast.commsales.bl.AttributeServices' cannot be loaded because there was a problem running the class static member ',Error] Introspection error: 'It is not possible to load class 'com.comcast.commsales.bl.bpm.NewOrderProcessServices' since it references another class 'com/comcast/commsales/notification/task/TaskRequestDocument$TaskRequest'that is not in the classpath.'..**
    Even when i try to execute the flow, im getting the below error,
    "*A component failed while executing activity '/CreateCaseProcess#Default-1.0/RetrieveCasesByContract' (BP-method Retrieve Cases By Contract) over instance '/CreateCaseProcess#Default-1.0/2/0'.*
    *Details:*
    *The method 'CIL_retrieveCasesByContract' from class 'Comcast_Commercial_Systems.CreateCaseProcess.Default_1_0.Instance' could not be successfully executed.*
    *Caused by: java.lang.ExceptionInInitializerError*
    *Caused by: java.lang.NullPointerException*
    *fuego.lang.ComponentExecutionException: The method 'CIL_retrieveCasesByContract' from class 'Comcast_Commercial_Systems.CreateCaseProcess.Default_1_0.Instance' could not be successfully executed.*
    *at fuego.component.ExecutionThreadContext.invokeMethod(ExecutionThreadContext.java:498)*
    *at fuego.component.ExecutionThreadContext.invokeMethod(ExecutionThreadContext.java:251)*
    *at fuego.fengine.FEEngineExecutionContext.invokeMethodAsCil(FEEngineExecutionContext.java:214)*
    *at fuego.server.execution.EngineExecutionContext.runCil(EngineExecutionContext.java:1068)*
    *at fuego.server.execution.TaskExecution.invoke(TaskExecution.java:389)*
    *at fuego.server.execution.TaskExecution.executeCIL(TaskExecution.java:481)*
    *at fuego.server.execution.TaskExecution.executeTask(TaskExecution.java:655)*
    *at fuego.server.execution.TaskExecution.executeTask(TaskExecution.java:616)*
    *at fuego.server.execution.TaskExecution.executeTask(TaskExecution.java:152)*
    *at fuego.server.execution.activities.XAutomatic.execute(XAutomatic.java:60)*
    *at fuego.metadata.Activity.execute(Activity.java:1022)*
    *at fuego.server.execution.ToDoItemAutomatic.execute(ToDoItemAutomatic.java:35)*
    *at fuego.server.execution.DefaultEngineExecution$AtomicExecutionTA.runTransaction(DefaultEngineExecution.java:290)*
    *at fuego.transaction.TransactionAction.startBaseTransaction(TransactionAction.java:462)*
    *at fuego.transaction.TransactionAction.startTransaction(TransactionAction.java:540)*
    *at fuego.transaction.TransactionAction.start(TransactionAction.java:213)*
    *at fuego.server.execution.DefaultEngineExecution.executeImmediate(DefaultEngineExecution.java:117)*
    *at fuego.server.execution.DefaultEngineExecution.executeAutomaticWork(DefaultEngineExecution.java:57)*
    *at fuego.server.execution.EngineExecution.executeAutomaticWork(EngineExecution.java:42)*
    *at fuego.server.execution.ToDoItem.executeAutomaticWork(ToDoItem.java:264)*
    *at fuego.server.execution.ToDoItem.run(ToDoItem.java:531)*
    *at fuego.component.ExecutionThread.processMessage(ExecutionThread.java:754)*
    *at fuego.component.ExecutionThread.processBatch(ExecutionThread.java:734)*
    *at fuego.component.ExecutionThread.doProcessBatch(ExecutionThread.java:140)*
    *at fuego.component.ExecutionThread.doProcessBatch(ExecutionThread.java:132)*
    *at fuego.fengine.ToDoQueueThread$PrincipalWrapper.processBatch(ToDoQueueThread.java:432)*
    *at fuego.component.ExecutionThread.work(ExecutionThread.java:818)*
    *at fuego.component.ExecutionThread.run(ExecutionThread.java:397)*
    *Caused by: java.lang.ExceptionInInitializerError*
    *at com.comcast.commsales.hibernate.HibernateConfig.getSessionFactory(HibernateConfig.java:1331)*
    *at com.comcast.commsales.hibernate.HibernateConfig.getSession(HibernateConfig.java:1469)*
    *at com.comcast.commsales.bl.SubcaseControl.getParentCaseForContract(SubcaseControl.java:1527)*
    *at Comcast_Commercial_Systems.CreateCaseProcess.Default_1_0.Instance.CIL_retrieveCasesByContract(Instance.java:1121)*
    *at Comcast_Commercial_Systems.CreateCaseProcess.Default_1_0.Instance.CIL_retrieveCasesByContract(Instance.java:1141)*
    *at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)*
    *at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)*
    *at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)*
    *at java.lang.reflect.Method.invoke(Unknown Source)*
    *at fuego.component.ExecutionThreadContext.invokeMethod(ExecutionThreadContext.java:491)*
    *... 27 more*
    *Caused by: java.lang.NullPointerException*
    *at com.comcast.commsales.hibernate.HibernateUtils.getAllTableMaps(HibernateUtils.java:826)*
    *at com.comcast.commsales.hibernate.HibernateUtils.<clinit>(HibernateUtils.java:531)*
    *... 37 more"*
    Is because of the jar is not properly introspected into ALBPM? or Is not mandatory to introspect the jar into BPM.
    Could you please anyone help us to resolve the above issue
    Regards,
    Anandh P

    It mean there is problem in the jar file.Due to that im getting the error while doing introspect, is my understanding right?>
    No. As Ariel pointed out, this error:
    A component failed while executing activity
    '/CreateCaseProcess#Default-1.0/RetrieveCasesByContract'
    (BP-method Retrieve Cases By Contract) over instance '/CreateCaseProcess#Default-1.0/2/0'can only occur when you are running an instance through a method insid the RetrieveCasesByContract activity which is inside of your CreateCaseProcess. You might still have a misbehaving Jar file, but the error you got did not occur when you were introspecting the Jar file. It happend when you ran the work item instance through that activity in the process.
    Start by adding logMessage statements at various points in the method you are calling.
    Dan

  • Getting error while calling external Jars in BPEL by using Java embedding activity in soa 12c

    Hi,
    I am trying to use an external Jars for the business logic implementation. Here I need to pass XML as input and
    and I expect the "Password " field has to be return.
    Following are the steps I have followed:
    1) Created a java project with sample class and added the external jars into the project "Libraries &Classpath".
    2) Created a jar file out of it.
    3) Created a BPEL project with Java Embedding.
    4)Wrote the java code in java embedding activity.
    4) Added the above created jar file to the BPEL project's lib/jar  and added in SCA-INF/lib project folder as well.
    5) Imported the package with the class as in the jar (e.g <bpelx:exec
    import="pkg.testInterface"/>)
    6) Deploy the BPEL project.
    while deploying the SOA build is sucessful but my depoyment is incomplete.
    error:
    advices will be great....
    Regards,
    Dilip

    Hi,
    Can you confirm if the BPEL Version is 1.1 or 2.0.
    If you are using BPEL 2.0 you need to import the required jar/class file as:
    <import importtype="http://schemas.oracle.com/bpel/extension/java" location="pkg.testInterface"/>
    For BPEL 1.1 the syntax to import other jar/class file is:
    <bpelx:exec import="pkg.testInterface"/>
    If you import the classes in the correct format you will not face any deployment error.

  • [Linker Error] Unresolved external 'niScope_init' referenced from C:\ALUNOS\ALLAN\EVA\BUILDER2.0B\UNIT1.OBJ

    Hi,
    First of all I'm sorry about my English. I'm developing a software on Builder C++ by Borland and we bought an NI DAQ 5112 PCI. I'd like to know if is possible to use the high-level functions from niScope (such as niScope_init, _AutoSetup, _close...) on this plataform. I'm asking it 'cause I could run every "example program" on it whithout any problem. But when I try to use it on my own project the message below is shown: unresolved external "niScope_init" referenced from "path_of_my_project".
    thanks,
    Allan

    Make sure you're linking to the niScope inport library.  I'm attaching the Borland import library from NI-SCOPE 2.9.1.
    (These forums won't let me attach a .lib.  So download this file, and rename it "niScope.lib")
    Attachments:
    niScope.txt ‏72 KB

  • ADD EXTERNAL .JAR

    Good morning.
          I need to add an external library to my project. The library is the Apache POI (http://poi.apache.org/). Anyway, I do not know how to do it because it gives me many problems. I tried modifying the classpath and placing it in the lib folder of the project from "Navigator". Also project properties, add. jar outside, and throws me the following error:
    The project not was built STI Since classpath is incomplete. Can not find the file class for java.lang.Iterable. Fix the classpath Rebuilding Then try this project. "LocalDevelopment ~ name ~ vendor."
    Also this:
    Indirectly this compilation unit references the missing type java.lang.Iterable (typically Some required class file is referencing a type Outside the classpath).
    Given these errors, I know my includes without problems and I can instantiate objects from library classes, but these errors I can not deploy.
    I read the following link:
    /people/bertram.ganz/blog/2008/11/24/how-to-use-external-jar-files-in-web-dynpro-development-components
    but my version is 2.0.14 NetWeaver. On the other hand, did not understand because they do not know how to add "External Library DC. "
    Infinitely appreciate any help. Thank you very much.

    I'm trying to work with POI that can be found in http://poi.apache.org/. The. jar I'm adding are
    commons-logging-1.1.jar
    junit-3.8.1.jar
    log4j-1.2.13.jar
    poi-3.7-20101029.jar
    poi-examples-3.7-20101029.jar
    poi-OOXML-3.7-20101029.jar
    poi-OOXML-schemas-3.7-20101029.jar
    poi-scratchpad-3.7-20101029.jar
    Of the code is
    HSSFWorkbook HSSFWorkbook book = new ();
    / / Create a sheet inside the book
    HSSFSheet libro.createSheet leaf = ();
    / / Create a row within the sheet
    HSSFRow row = hoja.createRow (0);
    / / Create a cell within the row
    HSSFCell fila.createCell cell = ((short) 0);
    / / Create the contents of the cell and gets into it.
    HSSFRichTextString HSSFRichTextString text = new ("hello world");
    When I look for the "Organize Imports" I do not recognize any other additional library
    Edited by: Daynet1840 on Feb 26, 2011 3:19 PM

  • External table and error: ORA-01036: illegal variable name/number

    using the following script I get the referenced error:
    create table dol_sch_c_part2
    (DLN NUMBER(14) ,
    PAGE_ID VARCHAR2(20),
    PAGE_SEQ VARCHAR2(20),
    PAGE_ROW_NUM VARCHAR2(20),
    ROW_NUM VARCHAR2(20),
    IMAGE_FORM_ID VARCHAR2(20),
    PROVIDER_TERM_01_NAME VARCHAR2(35),
    PROVIDER_TERM_01_EIN VARCHAR2(9) ,
    PROVIDER_TERM_01_POSITION VARCHAR2(25),
    PROVIDER_TERM_01_STR_ADDRESS VARCHAR2(35),
    PROVIDER_TERM_01_CITY VARCHAR2(20),
    PROVIDER_TERM_01_STATE VARCHAR2(2),
    PROVIDER_TERM_01_ZIP_CODE VARCHAR2(9),
    PROVIDER_TERM_01_PHONE_NUM VARCHAR2(10),
    PROVIDER_TERM_01_TEXT VARCHAR2(250)
    ORGANIZATION EXTERNAL
    ( type oracle_loader
    default directory data_dir
    access parameters
    RECORDS FIXED 510
    FIELDS
    DLN(1:14) char(14),
    PAGE_ID(15:34) char(20) NULLIF PAGE_ID=BLANKS,
    PAGE_SEQ(35:54) char(20) NULLIF PAGE_SEQ=BLANKS,
    PAGE_ROW_NUM(55:74) char(20) NULLIF PAGE_ROW_NUM=BLANKS,
    ROW_NUM(75:94) char(20) NULLIF ROW_NUM=BLANKS,
    IMAGE_FORM_ID(95:114) char(20) NULLIF IMAGE_FORM_ID=BLANKS,
    PROVIDER_TERM_01_NAME(115:149) char(35) NULLIF PROVIDER_TERM_01_NAME=BLANKS,
    PROVIDER_TERM_01_EIN(150:158) char(9) NULLIF PROVIDER_TERM_01_EIN=BLANKS,
    PROVIDER_TERM_01_POSITION(159:183) char(25) NULLIF PROVIDER_TERM_01_POSITION=BLANKS,
    PROVIDER_TERM_01_STR_ADDRESS(184:218) char(35) NULLIF PROVIDER_TERM_01_STR_ADDRESS=BLANKS,
    PROVIDER_TERM_01_CITY(219:238) char(20) NULLIF PROVIDER_TERM_01_CITY=BLANKS,
    PROVIDER_TERM_01_STATE(239:240) char(2) NULLIF PROVIDER_TERM_01_STATE=BLANKS,
    PROVIDER_TERM_01_ZIP_CODE(241:249) char(9) NULLIF PROVIDER_TERM_01_ZIP_CODE=BLANKS,
    PROVIDER_TERM_01_PHONE_NUM(250:259) char(10) NULLIF PROVIDER_TERM_01_PHONE_NUM=BLANKS,
    PROVIDER_TERM_01_TEXT(260:509) char(250) NULLIF PROVIDER_TERM_01_TEXT=BLANKS
    location ('f_dol_sch_c_part2.txt')
    I've tried it with and without the char(*) in the fields section - no change
    thanks

    *** SCRIPT START : Session:GLEN_SELF@RAMBO(8) 8/31/2006 12:16:48 PM ***
    Processing ...
    create or replace directory data_dir as 'c:\dol\'
    create table dol_sch_c_part2
    (DLN NUMBER(14) ,
    PAGE_ID VARCHAR2(20),
    PAGE_SEQ VARCHAR2(20),
    PAGE_ROW_NUM VARCHAR2(20),
    ROW_NUM VARCHAR2(20),
    IMAGE_FORM_ID VARCHAR2(20),
    PROVIDER_TERM_01_NAME VARCHAR2(35),
    PROVIDER_TERM_01_EIN VARCHAR2(9),
    PROVIDER_TERM_01_POSITION VARCHAR2(25),
    PROVIDER_TERM_01_STR_ADDRESS VARCHAR2(35),
    PROVIDER_TERM_01_CITY VARCHAR2(20),
    PROVIDER_TERM_01_STATE VARCHAR2(2),
    PROVIDER_TERM_01_ZIP_CODE VARCHAR2(9),
    PROVIDER_TERM_01_PHONE_NUM VARCHAR2(10),
    PROVIDER_TERM_01_TEXT VARCHAR2(250)
    ORGANIZATION EXTERNAL
    ( type oracle_loader
    default directory data_dir
    logfile 'ext_tab.log'
    access parameters
    RECORDS FIXED 510
    FIELDS
    DLN(1:14),
    PAGE_ID(15:34),
    PAGE_SEQ(35:54),
    PAGE_ROW_NUM(55:74),
    ROW_NUM(75:94),
    IMAGE_FORM_ID(95:114),
    PROVIDER_TERM_01_NAME(115:149),
    PROVIDER_TERM_01_EIN(150:158),
    PROVIDER_TERM_01_POSITION(159:183),
    PROVIDER_TERM_01_STR_ADDRESS(184:218),
    PROVIDER_TERM_01_CITY(219:238),
    PROVIDER_TERM_01_STATE(239:240),
    PROVIDER_TERM_01_ZIP_CODE(241:249),
    PROVIDER_TERM_01_PHONE_NUM(250:259),
    PROVIDER_TERM_01_TEXT(260:509)
    location ('f_dol_sch_c_part2.txt')
    create or replace directory data_dir as 'c:\dol\'
    ORA-01036: illegal variable name/number
    *** Script stopped due to error ***
    *** SCRIPT END : Session:GLEN_SELF@RAMBO(8) 8/31/2006 12:16:49 PM ***

  • How to import external jars in a CAF project?

    Hello Experts!
    Could you help me find out the way to import external jars in a CAF project. I have tried to import the jars
    in ejbmodule using "java build path--->libraries". But while trying to build the project it's displaying error and all the imported jars automatically get removed from the list.
    I have read that creation DC of type "External Library" can help me.
    1) Create a DC of type external library
    2) Copy my jars to folder "libraries"
    What should I do next? And how can I import my DC of type "External Library" to my CAF project?
    Looking forward for your suggestion.
    Thanks & Regards
    Vitaly

    Hi,
    This article will guide you how to deploy the external jar files to the application server.
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/60a0f850-c451-2c10-a6a6-ddcabfa3a65b&overridelayout=true
    Add the library project to the public part of your caf project to use the jar files.
    Regards,
    Gayathri

  • Exception while adding External Jar files in NWDS

    Dear Friends,
                            Actually i am adding an external Jar file in my EJB Module in NWDS.I am using this jar file for converting XML to flat file and i am calling this module from Receiver ommunication channel.For this process, i am importing dom4j.jar file in the EJB Module.
                          Now i have created an external Library project for the cause that i have used the external jar file, and i have made following code in the provider.xml file
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE provider-descriptor SYSTEM "library.provider.dtd">
    <provider-descriptor>
         <display-name>
          XML2EDI_Library
        </display-name>
         <component-name>
          XML2EDI_Library
        </component-name>
         <major-version>6</major-version>
         <minor-version>40</minor-version>
         <micro-version>0</micro-version>
         <provider-name>
          dom4j.org
        </provider-name>
         <references>
              <reference
                   provider-name="dom4j.org"
                   strength="weak"
                   type="library">org.dom4j.Document</reference>
              <reference
                   provider-name="dom4j.org"
                   strength="weak"
                   type="library">org.dom4j.DocumentException</reference>
              <reference
                   provider-name="dom4j.org"
                   strength="weak"
                   type="library">org.dom4j.Element</reference>
              <reference
                   provider-name="dom4j.org"
                   strength="weak"
                   type="library">org.dom4j.io.SAXReader</reference>
         </references>
         <jars>
              <jar-name>EDI_Module.jar</jar-name>
         </jars>
    </provider-descriptor>
    I have included 4 references because i have imported following in my ejb module.
    import org.dom4j.Document;
    import org.dom4j.DocumentException;
    import org.dom4j.Element;
    import org.dom4j.io.SAXReader;
    I am not sure of wht to include in reference target and provider name, I am getting the following exceptions in Message monitoring:
    1. AO: Document Exception: org.dom4j.DocumentException: E:\usr\sap\BWS\DVEBMGS00\j2ee\cluster\server0\
    2. Nested exception: E:\usr\sap\BWS\DVEBMGS00\j2ee\cluster\server0\
    Help me in this issue..
    Thanks in advance
    N.Jayanth Kumar

    thanks for you help sidharth.
    i have now jar files in the server and the application  referring to the jar files. everything is deployed fine. however, when i start the application..i get the error -"package jcifs.smb does not exist". the jar i am using is jcifs-1.2.7.jar. in my web module when i expand the jar i see the package and the .class files inside. what am i missing?
    Also, i din't define a SharingReference to usermanagement in portalapp.xml as i am working towards a pure j2ee enterprise application. the web module (DC) referes to the jar files. is there any step similar to defining the sharing reference for the web module DC?
    please help. thanks - sowmiyar

  • External Jars in program

    Hello,
    Sorry I know it's not an eclipse forum, but I couldn't get answers anywhere, so I hope someone here can help.
    I have browsed the net a lot, and found that a lot of people are having similar issues, however I did not manage to make this work .
    I have an rcp application which is just a GUI for using my application.
    I also have another eclipse java project which has the core classes.
    I want people to be able to use either the GUI or directly the JAR file created out of the second project.
    Now the troubles :
    the second project uses external jars, which I do NOT want to be packaged. I want the users to get those jar separatly and place them in the appropriate folder.
    The first one (GUI) uses the second project (well it uses its jar file).
    Inside eclipse I can make it work fine, problems come whenever I want to export either the GUI or the JAR from the second project.
    What I would like to achieve is the following :
    1) If they want to use the GUI, then there is a lib folder in its tree where they have to place all the external jars (and maybe the second project jar too, well I guess)
    2) If they want to import the second projet jar in their own application, they have to get the external jars too and place them .... (somewhere? same directory I believe)
    Now I have tried everything I found on the net without success : Add External Jars, add Jar, runtime tab, build-path, class-path, Project dependency, manifest etc ... in second or both projects.
    I know the solution is somehow in those, but I just can't get it to work. Usually I get export errors on the RCP, sometimes its during execution.
    If anyone could explain me step by step what I should do to achieve what I need, I would greatly appreciate it because it's kind of driving me mad.
    Marh

    On 22-Jun-11 06:11, [email protected] wrote:
    > Hi,
    >
    > I am new to Java world and surely to eclipse, after years using Delphi.
    > I am learning to become a real Java developer utilizing eclipse. In my
    > starting pace I found so amuzed and also confused about Java. Every try
    > to write a simple program I always use so many external JARs in my Java
    > project. Is there any pitfall using exessive external JARs in a project
    > ? And how can I know not to use certain external JAR without
    > try-and-error removing one by one ?
    >
    > Thanks in advance,
    > Zhou.X.B.
    Don't worry about how many JAR files you end up using. Don't go out of
    your way to add JARs unless you know you need them. Typically, you write
    code based on what you learn from research and add the JARs you need.
    Usually, you won't acquire a lot of unnecessary JARs, but even if you
    do, it doesn't hurt (except for a bit of diskspace).
    Later, you'll discover which JARs you did or didn't need.
    In short, don't worry about this. Just move ahead. You're on the right
    track since you chose Java in the first place.
    ;-)

  • External jars in Web Dynpro for Java CE 7.1.1

    Hi there,
    Can you give me some guidance for including external jars in Web Dynpro for Java (CE 7.1.1)?
    I vainly tried for some hours now to get my external jars running in the new version of web dynpro (part fo Composition Environment 7.1.1).
    The routines described in some other threads didn't help me. For example, in CE 7.1.1 there's no DC Metadata that would allow me to add an external library.
    FYI, in the error message during build it simply says the package is not found.
    My error is javac ERROR: D:\test.jdi\LocalDevelopment\DCs\demo.sap.com\retail\_comp\src\packages\com\sap\demo\retail\javafiles\DomParser.java:12: package com.sap.semprom.retail.sc does not exist
    javac ERROR: import com.sap.semprom.retail.sc.BoundEvent;
    Thx in advance!
    Holger

    See http://help.sap.com/saphelp_nwce10/helpdata/en/d7/fc139ba1549047a5372ad3c0d540ea/frameset.htm
    under "External library".
    Armin

  • Adding external jars

    Hi,
    I have a jar file in the ext folder of BPEL. When i use the class in java embedding activity it says class not found error how do i solve it. Or please tell me the procedure of adding external jars
    Edited by: user10545499 on Nov 5, 2008 9:40 PM

    To make external Jar files available in your BPEL PM, you could put the files in:
    [ORACLE_HOME]\bpel\system\classes
    Restart the server, you they are read when BPEL PM is started. If you want them available in the whole J2EE environement, you sould place them in the j2ee enviornment.
    Marc

  • Adding External Jar files

    Hello,
    I have successfully created and deployed a portal application project (par file) that required adding as an external jar the file com.sap.portal.usermanagementapi.jar. Now I am re-doing the project as a development component in NWDI and I can add the external jar file fine and the source code shows no errors. However as soon as I build the DC I get a  source error that says the import to com.sap.ip.portal.service.ume.IUserManagementEngine can not be resolved. If I go back to the java build path the usermanagementapi.jar is no longer there.
    Do I have to handle the adding of external jar files in a different way for a DC as opposed to a par project?
    Thanks,
    Bert

    thanks for you help sidharth.
    i have now jar files in the server and the application  referring to the jar files. everything is deployed fine. however, when i start the application..i get the error -"package jcifs.smb does not exist". the jar i am using is jcifs-1.2.7.jar. in my web module when i expand the jar i see the package and the .class files inside. what am i missing?
    Also, i din't define a SharingReference to usermanagement in portalapp.xml as i am working towards a pure j2ee enterprise application. the web module (DC) referes to the jar files. is there any step similar to defining the sharing reference for the web module DC?
    please help. thanks - sowmiyar

  • Problem using Jar to include external jars in an application

    Ok so, I've just completed a project, and i want to be able to jar it up so its executable by just using the jar file. I can do this, and it will load the first screen. However, i used eclipse to develop it so I just added two files to the eclipse path and it all worked. But when I jar up my application (and include the two external jars in my app), and try to use any class that needs the external jar, it dies and says java.lang.NoClassDefinitionError: javax/servlet/http/HttpServlet
    How do i set it up so it actually finds the classes in the external jar?? Its fairly important that i get this to work :)

    If this app is not running as part of Tomcat, you have two options. One, as ejp pointed out, is to put the missing jars into your $JAVA_HOME/lib/ext dir. If you've already tried that and it's not working, then the jars your putting there do not have the necessary classes in them. Use 'jar -tf <jarname>' to see a list of the classes in the jar.
    The second approach, which it sounds like you've already tried, is using the Class-Path entry in the Manifest file. You must make sure that the jar you're referencing (servlet.jar) has the missing classes in it, and that the jar is in the same directory as the application jar. Another potential gotcha with this approach is to make sure that the jar is not indexed (they're not indexed by default).

  • Migrating prject with external jars from 10g to 11g

    Hi..
    I am migrating a project which is using external jar files. I have included jar files in sca-inf/lib folder as well as on server directory. But i am getting error that the particular class in jar cannot be intialized. Error is given below:-
    Could not initialize class com.ge.realestate.ea.framework.util.FrameworkXMLUtils;

    Thanks for replying...
    I have already followed all the steps in that document. But i am unable to access classes in the jars included in the project. May be I have to recompile all the jars in 11g with ant. Because I am able to access only those classes which are not importing any classes. The imports used in the specific class are given below:-
    import java.io.BufferedReader;
    import java.io.FileReader;
    import java.io.StringWriter;
    import java.util.ArrayList;
    import java.util.Iterator;
    import java.util.List;
    import oracle.xml.parser.v2.XMLLSSerializer;
    import org.apache.log4j.Logger;
    import org.w3c.dom.Attr;
    import org.w3c.dom.Element;
    import org.w3c.dom.NamedNodeMap;
    import org.w3c.dom.Node;
    import org.w3c.dom.NodeList;
    import com.collaxa.xml.XMLHelper;
    import com.oracle.bpel.client.BPELFault;
    I am not sure if importing one of these is causing the problem.

  • Deploying external jar files in CE 7.1

    Hi All,
    I am using CE 7.1 SP01 NWDS to develop my applications.
    Now I want deploy one external jar files to J2ee engine.
    I know how to do the same in NWDS 2004s. But here the steps seems to be little bit different.
    I referred the following blog for doing this in CE 7.1
    /people/raphael.vogel/blog/2008/05/05/how-to-use-external-libraries-in-the-sap-component-model-part-ii
    But, still I am getting Classnotfound exception, when i try to use the jar file in dc applications. There, I posted some queries, but I didnt get any solution.
    Can any one help me on this please.
    Thanks,
    Fahad Hamsa

    Hi  Fahad,
    I am facing the same problem, but am  not able to get the solution.
    I am following the below steps..
    1) Created a Webdynpro DC - "testProj" to which i need to add the external library DC.
    2) Created a DC of type "External Library" called "externaljar"
    3)Added Public Parts of type assembly and compilation to the "externaljar" DC (Component Properties Tab -> Public Parts)
    4) Right click on the  assembly Public Part name -> Manage entities, and added the JAR files as archive.
    5)Right click on the compilation Public Part name -> Manage entities, and added the JAR files as archive.
    6)Go to Webdynpro DC "testProj" .
    Under Component Properties Tab -> Dependencies tab  -> Add -> selected the "externaljar" DC  -> Next ->  for "externaljar" DC checked Deploy time and Run time.
    For assembly Public Part  and compilation Public Part "build" is selected by default.
    7) I did build of both the DC's and deployed it.
    Im getting "Class not found" error.
    Please let me know where i am going wrong.
    Thanks,
    Shilpa.

Maybe you are looking for